CN117348780A - Text selection method, device and storage medium - Google Patents

Text selection method, device and storage medium Download PDF

Info

Publication number
CN117348780A
CN117348780A CN202210742143.4A CN202210742143A CN117348780A CN 117348780 A CN117348780 A CN 117348780A CN 202210742143 A CN202210742143 A CN 202210742143A CN 117348780 A CN117348780 A CN 117348780A
Authority
CN
China
Prior art keywords
text
function option
identification
identifier
option identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210742143.4A
Other languages
Chinese (zh)
Inventor
杨飘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210742143.4A priority Critical patent/CN117348780A/en
Publication of CN117348780A publication Critical patent/CN117348780A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

The disclosure relates to a text selection method and a text selection device, relates to the technical field of text information processing, and is used for selecting multiple sections of texts at one time, so that the operation efficiency is improved. The method comprises the following steps: in response to detecting the first text selection operation, selecting the first text based on the first text selection operation and setting the first text to a selected state; if it is determined that the second text selection operation is detected in the case where the first text information is in the selected state, the second text is selected based on the second text selection operation, and the second text is set to the selected state.

Description

Text selection method, device and storage medium
Technical Field
The disclosure relates to the technical field of text processing, and in particular relates to a text selection method, a text selection device and a storage medium.
Background
With the rapid development of the mobile terminal, the virtual keyboard gradually replaces the physical keyboard, and a user can input information by operating the virtual keyboard, so that the input mode is convenient. However, when a user needs to copy information displayed in a screen of a mobile terminal, there is still a disadvantage in the copy manner.
In the current copy-paste method, if a text is to be copied from a plurality of editing controls on one interface, the text is pasted into a plurality of editing controls on another interface, and the text needs to be selected one by one for copy-paste. The current copy and paste functions are too limited, and can not meet the requirements in some scenes, so that the user operation is very inconvenient.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a text selection method, apparatus, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a text selection method, applied to a terminal, the method including: in response to detecting a first text selection operation, selecting a first text based on the first text selection operation and setting the first text to a selected state; and if the first text information is in the selected state, selecting a second text based on the second text selection operation if the second text selection operation is determined to be detected, and setting the second text to the selected state.
In one embodiment, the determining that the second text selection operation is detected includes: determining that a touch signal is detected in a set display area of the terminal; the set display area is an area in which text content is displayed in a text display interface of the terminal but is different from the area in which the first text is displayed. In another embodiment, the determining that the touch signal is detected in the setting display area of the terminal includes: and determining that a touch signal is detected in a set display area of the terminal, and the duration of detecting the touch signal is longer than a preset duration.
In yet another embodiment, the method further comprises: in response to detecting the function option triggering operation, displaying a function option identifier; the function option identifiers comprise a first function option identifier for controlling the first text and/or a second function option identifier for controlling the second text; alternatively, the function option identification includes a third function option identification for controlling the first text and the second text; the function option identification comprises at least one of the following: copy identification, cut identification, edit identification, send identification.
In yet another embodiment, the method further comprises: in response to detecting that a target function option identifier is triggered, executing a function option operation corresponding to the target function option identifier; the target function option identifier comprises the first function option identifier and/or the second function option identifier; alternatively, the target function option identifier includes the third function option identifier.
In yet another embodiment, the target function option identifier includes the first function option identifier and the second function option identifier; in response to detecting that a target function option identifier is triggered, performing a function option operation corresponding to the target function option identifier, including: in response to detecting that a first function option identifier is triggered, executing a first function option operation corresponding to the first function option identifier, and setting the first text to a non-selection state after the first function option operation is executed; and in response to detecting that the second function option identifier is triggered, executing a second function option operation corresponding to the second function option identifier.
According to a second aspect of embodiments of the present disclosure, there is provided a text selection apparatus, applied to a terminal, the apparatus including: a selection module for selecting a first text based on a first text selection operation in response to detecting the first text selection operation, and setting the first text to a selected state; and the processing module is used for selecting a second text based on the second text selection operation and setting the second text into a selected state if the second text selection operation is determined to be detected under the condition that the first text information is in the selected state.
In an embodiment, the processing module is specifically configured to determine that a touch signal is detected in a set display area of the terminal; the set display area is an area in which text content is displayed in a text display interface of the terminal but is different from the area in which the first text is displayed. In another embodiment, the processing module is specifically further configured to determine that a touch signal is detected in a set display area of the terminal, and a duration of detecting the touch signal is greater than a preset duration.
In yet another embodiment, the apparatus further comprises a display module; the display module is used for responding to the detection of the function option triggering operation and displaying the function option identification; the function option identifiers comprise a first function option identifier for controlling the first text and/or a second function option identifier for controlling the second text; alternatively, the function option identification includes a third function option identification for controlling the first text and the second text; the function option identification comprises at least one of the following: copy identification, cut identification, edit identification, send identification.
In yet another embodiment, the processing module is further configured to perform a function option operation corresponding to the target function option identifier in response to detecting that the target function option identifier is triggered; the target function option identifier comprises the first function option identifier and/or the second function option identifier; alternatively, the target function option identifier includes the third function option identifier.
In yet another embodiment, the target function option identifier includes the first function option identifier and the second function option identifier;
the processing module is specifically configured to respond to detection that a first function option identifier is triggered, execute a first function option operation corresponding to the first function option identifier, and set the first text to a non-selection state after the execution of the first function option operation; and in response to detecting that the second function option identifier is triggered, executing a second function option operation corresponding to the second function option identifier.
According to a third aspect of embodiments of the present disclosure, there is provided a text selection apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: a text selection method as claimed in any one of the above first aspect and embodiments thereof is performed.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform the text selection method as described in any one of the first aspect and embodiments thereof.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: if the second text selection operation is detected under the condition that the first text information is in the selected state, the second text is selected based on the second text selection operation, and the second text is set to the selected state, so that a user can select multiple sections of text at one time, move or copy the multiple sections of text, and the operation efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a text selection method according to an exemplary embodiment.
Fig. 2 is a schematic view of a scenario illustrating a text selection method according to an exemplary embodiment.
Fig. 3 is a schematic view of a scenario illustrating another text selection method according to an exemplary embodiment.
Fig. 4 is a schematic view of a scenario illustrating yet another text selection method according to an exemplary embodiment.
Fig. 5 is a schematic view of a scenario illustrating yet another text selection method according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a text selection apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a device for text selection according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
With the rapid development of mobile terminals, users can input information by copying and pasting. Current copy-paste methods require copy-paste from one piece to another if it is desired to copy text from multiple editing controls on one interface and paste to multiple editing controls on another interface. If copying is carried out on different pages, if one of the original back pages is already pasted, the content which is already pasted on the back page is lost because the back page is returned again, and the situation of content selection interruption occurs. It can be seen that the current copy and paste functions are too limited, and cannot meet the requirements in some scenes, so that the user operation is very inconvenient.
Therefore, it is important to propose a scheme that can copy a plurality of text contents at a time and can selectively paste the text contents after going to another page based on the convenience.
Based on the text selection method, a user can select multiple sections of text at one time, move or copy the multiple sections of text, and the like, so that the operation efficiency is improved.
The text selection method provided by the embodiment of the present disclosure may be a terminal or a functional module or a functional entity capable of implementing the method in the terminal, where the terminal in the embodiment of the present disclosure includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a wearable device, and the like. The embodiment of the present disclosure does not particularly limit the specific form of the terminal. The text selection method provided in the embodiment of the present disclosure is described below by taking a terminal as an execution subject.
Fig. 1 is a flowchart illustrating a text selection method according to an exemplary embodiment, which is used in a terminal as shown in fig. 1, and includes the following steps.
In step S101, in response to detecting the first text selection operation, the first text is selected based on the first text selection operation, and the first text is set to the selected state.
The first text selection operation includes a touch operation, a click operation, a press operation, a slide operation, or the like on a text display interface, where the text display interface is any interface including text, such as a memo, a word document, a web page, or the like, and embodiments of the present disclosure are not limited herein.
Optionally, after the first text selection operation is detected, a text selection identifier is first displayed based on the first text selection operation, where the text selection identifier is used to determine a text range of the first text. Specifically, the text selection identifier includes a start identifier for determining a start position of the first text and an end identifier for determining an end position of the first text.
By way of example, the text selection indicator may be an indicator in the form of a slide bar, cursor, or the like. For example, the start identification of the start position of the first text may be as the first slide bar 21 shown in fig. 2 and the end identification of the end position may be as the second slide bar 22 shown in fig. 2.
Further, when a mobile operation of the user on the text selection identifier is received, determining a text range of the first text according to the mobile operation of the user, and then the first text is in a selected state.
In some embodiments, the background color of the text in the selected state is different from the background color of the text that is not selected. Illustratively, as shown in fig. 3, the user moves the first slide bar 21 and the second slide bar 22, and the area between the first slide bar and the second slide bar after the movement is the text range of the first text, and the background color of the text range of the first text is darker than the background color of the unselected text.
Alternatively, after the first text is in the selected state, if the user clicks the text range of the first text again, the selected state may be canceled from the first text.
In step S102, in the case where the first text information is in the selected state, if it is determined that the second text selection operation is detected, the second text is selected based on the second text selection operation, and the second text is set to the selected state.
Optionally, the operation procedure for selecting the second text is the same as the operation procedure for selecting the first text in step S101, and will not be described in detail here.
According to the embodiment of the disclosure, when the first text information is in the selected state, if the second text selection operation is detected, the second text is selected based on the second text selection operation, and the second text is set to the selected state, so that a user can select multiple sections of texts at one time, move or copy the multiple sections of texts, and the operation efficiency is improved.
In some embodiments, detecting the second text selection operation includes detecting a touch signal at a setup display area of the terminal.
The display area is set to be an area in which text content is displayed in a text display interface of the terminal but is different from the area in which the first text is displayed.
It should be appreciated that the region of the first text includes a region in which the text selection indicator of the first text is located.
In the embodiment of the disclosure, by limiting the second text selection operation, the second text selection operation can only be an operation in the setting display area, so that the terminal is prevented from taking any operation of the user as the second text selection operation.
Further, after the touch signal is detected in the set display area of the terminal, judging whether the duration of the detected touch signal is longer than a preset duration, and determining that the second text selection operation is detected when the duration of the touch signal is longer than the preset duration.
For example, as shown in fig. 4, the user has selected the first text information 401 in the text display interface through the first text operation, at this time, the touch signal 402 of the user is designated to be received, the touch signal 402 is a touch operation, the duration of detecting the touch signal 402 is 1.5s, the display area of the touch signal 402 is an area in which text content is displayed in the text display interface of the terminal but is different from the area in which the first text is displayed, and if the preset duration is 1s, it may be determined that the touch signal 402 of this time is the second text selection operation.
The embodiment of the disclosure further illustrates a specific implementation process of the second text selection operation by limiting the duration of detecting the touch signal, so that any operation of a user is prevented from being used as the second text selection operation by the terminal.
In some embodiments, the present disclosure displays a function option identification in response to detecting a function option trigger operation.
In one implementation, the function option identifications include a first function option identification for controlling the first text and/or a second function option identification for controlling the second text;
optionally, the first function option identifier is displayed at a first text and the second function option identifier is displayed at a second text.
Illustratively, as shown in FIG. 5, the text display interface includes a first text at which the first function option identifier 501 is displayed and a second text at which the second function option identifier 502 is displayed.
In another implementation, the function option identification includes a third function option identification for controlling the first text and the second text.
That is, when only one third function option identifier is displayed in response to detecting the function option trigger operation, the first text and the second text may be simultaneously controlled by the third function option identifier. The third function option identifier may be displayed at the first text in the selected state, at the last text in the selected state, or in any area of the text display interface.
Alternatively, the function option trigger operation may be a text selection operation, and the function option identification is displayed when text is selected based on the text selection operation. The function option triggering operation may also be an operation of automatically triggering the function option identification after selecting the text based on the text selection operation, i.e. automatically triggering the display of the function option identification after the first text is set to the selected state.
Wherein the function option identification comprises at least one of the following: copy identification, cut identification, edit identification, send identification.
Specifically, the copy identifier is used for copying the text in the selected state into the paste board, the cut identifier is used for cutting the text in the selected state into the cut board, the edit identifier is used for performing a series of edits such as fonts, colors, translations and the like on the text in the selected state, and the send identifier is used for sending the text in the selected state to a position appointed by a user through an application in the terminal. Of course, the function option identifier may also include other identifiers, and embodiments of the present disclosure are not limited herein.
Further, in response to detecting that the target function option identifier is triggered, a function option operation corresponding to the target function option identifier is performed.
Wherein the target function option identifier comprises a first function option identifier and/or a second function option identifier; alternatively, the target function option identification includes a third function option identification.
As a first possible implementation, when the target function option identifier includes a first function option identifier and/or a second function option identifier, that is, when the function option identifiers are displayed at each text in the selected state, the user may cause the first text and the second text to perform different function option operations by triggering the first function option identifier at the first text and the second function option identifier at the second text, respectively.
Specifically, in response to detecting that the first function option identifier is triggered, executing a first function option operation corresponding to the first function option identifier, and setting the first text to a non-selection state after the first function option operation is executed. And in response to detecting that the second function option identifier is triggered, performing a second function option operation corresponding to the second function option identifier.
For example, in response to detecting that the copy flag at the first text is triggered, the first text is copied to the paste board, and when the user performs the paste operation, the first text is pasted from the paste board to a position designated by the user, after the copy operation is performed, the text is returned to the text display interface, the first text is switched from the selected state to the non-selected state, and the background color of the first text is switched to the same color as the text display interface. At this time, the second text on the text selection interface is still in a selected state, when the cutting mark of the second text is detected to be triggered, the second text is copied into the cutting board, the second text is copied to a position appointed by a user when the user executes cutting operation, after the cutting operation is executed, the second text is returned to the text display interface, and the second text is switched from the selected state to a blank state.
It should be noted that, when the text display area of the terminal includes more than two texts in the selected state, when the user needs to perform different operations on the texts, the texts that need to perform the same operation trigger the same function option identifier, so as to realize a function of selecting multiple texts at a time to perform different operations.
For example, the text display interface includes 5 texts in a selected state, the user wants to perform a copy operation on the first two texts and perform a send operation on the last three texts, and then the user first copies the first two texts to the target location by triggering copy identifiers at the first two texts respectively, then returns to the text display interface, triggers send identifiers at the last three texts respectively, and sends the last three texts to the target location.
As a second possible implementation, when the target function option identifier includes a third function option identifier, that is, the function option identifier is displayed only at the first or last text in the selected state, the user may cause the text in all the selected states to perform the function option operation by triggering the function option identifier at the one text.
In the embodiment of the disclosure, the user selects a plurality of texts at a time to perform copying, cutting and other operations by setting the position of the function option mark, so that the time of the user is saved.
Based on the same conception, the embodiment of the disclosure also provides a text selection device.
It will be appreciated that, in order to implement the above-described functions, the text selection device provided in the embodiments of the present disclosure includes corresponding hardware structures and/or software modules that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 6 is a block diagram of a text selection device, according to an exemplary embodiment. Referring to fig. 6, the apparatus includes a selection module 601, a processing module 602, and a display module 603.
A selection module 601, configured to select a first text based on a first text selection operation and set the first text to a selected state in response to detecting the first text selection operation;
the processing module 602 is configured to, if it is determined that the second text selection operation is detected in the case where the first text information is in the selected state, select the second text based on the second text selection operation, and set the second text to the selected state.
In an embodiment, the processing module 602 is specifically configured to determine that a touch signal is detected in a set display area of the terminal; the display area is set to be an area in which text content is displayed in the text display interface of the terminal but is different from the area in which the first text is displayed.
In another embodiment, the processing module 602 is specifically configured to determine that a touch signal is detected in a set display area of the terminal, and a duration of detecting the touch signal is greater than a preset duration.
In yet another embodiment, the display module 603 is configured to display a function option identifier in response to detecting a function option triggering operation; the function option identifiers comprise a first function option identifier for controlling the first text and/or a second function option identifier for controlling the second text; alternatively, the function option identifier includes a third function option identifier for controlling the first text and the second text; the function option identification includes at least one of: copy identification, cut identification, edit identification, send identification.
In yet another embodiment, the processing module 602 is further configured to perform a function option operation corresponding to the target function option identifier in response to detecting that the target function option identifier is triggered; the target function option identification comprises a first function option identification and/or a second function option identification; alternatively, the target function option identification includes a third function option identification.
In yet another embodiment, the target function option identifier includes a first function option identifier and a second function option identifier; the processing module 602 is specifically configured to execute a first function option operation corresponding to the first function option identifier in response to detecting that the first function option identifier is triggered, and set the first text to a non-selection state after the first function option operation is executed; and in response to detecting that the second function option identifier is triggered, performing a second function option operation corresponding to the second function option identifier.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram illustrating an apparatus 100 for text selection according to an exemplary embodiment. For example, the apparatus 100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
The apparatus 100 may include one or more of the following components: a processing component 102, a memory 104, a power component 106, a multimedia component 108, an audio component 110, an input/output (I/O) interface 112, a sensor component 114, and a communication component 116.
The processing component 102 generally controls overall operation of the device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 102 may include one or more processors 120 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 102 can include one or more modules that facilitate interactions between the processing component 102 and other components. For example, the processing component 102 may include a multimedia module to facilitate interaction between the multimedia component 108 and the processing component 102.
The memory 104 is configured to store various types of data to support operations at the apparatus 100. Examples of such data include instructions for any application or method operating on the device 100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 104 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 106 provides power to the various components of the device 100. The power components 106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 100.
The multimedia component 108 includes a screen between the device 100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 108 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 100 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 110 is configured to output and/or input audio signals. For example, the audio component 110 includes a Microphone (MIC) configured to receive external audio signals when the device 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 104 or transmitted via the communication component 116. In some embodiments, the audio component 110 further comprises a speaker for outputting audio signals.
Input/output (I/O) interface 112 provides an interface between processing component 102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 114 includes one or more sensors for providing status assessment of various aspects of the device 100. For example, the sensor assembly 114 may detect the on/off state of the device 100, the relative positioning of the components, such as the display and keypad of the device 100, the sensor assembly 114 may also detect a change in position of the device 100 or a component of the device 100, the presence or absence of user contact with the device 100, the orientation or acceleration/deceleration of the device 100, and a change in temperature of the device 100. The sensor assembly 114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 114 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 116 is configured to facilitate communication between the apparatus 100 and other devices in a wired or wireless manner. The device 100 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 116 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 104, including instructions executable by processor 120 of apparatus 100 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (14)

1. A text selection method, characterized in that it is applied to a terminal, the method comprising:
in response to detecting a first text selection operation, selecting a first text based on the first text selection operation and setting the first text to a selected state;
and if the first text information is in the selected state, selecting a second text based on the second text selection operation if the second text selection operation is determined to be detected, and setting the second text to the selected state.
2. The method of claim 1, wherein the determining that a second text selection operation is detected comprises:
determining that a touch signal is detected in a set display area of the terminal;
the set display area is an area in which text content is displayed in a text display interface of the terminal but is different from the area in which the first text is displayed.
3. The method of claim 2, wherein the determining that a touch signal is detected in the set display area of the terminal comprises:
and determining that a touch signal is detected in a set display area of the terminal, and the duration of detecting the touch signal is longer than a preset duration.
4. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
in response to detecting the function option triggering operation, displaying a function option identifier;
the function option identifiers comprise a first function option identifier for controlling the first text and/or a second function option identifier for controlling the second text;
alternatively, the function option identification includes a third function option identification for controlling the first text and the second text;
the function option identification comprises at least one of the following: copy identification, cut identification, edit identification, send identification.
5. The method according to claim 4, wherein the method further comprises:
in response to detecting that a target function option identifier is triggered, executing a function option operation corresponding to the target function option identifier;
the target function option identifier comprises the first function option identifier and/or the second function option identifier; alternatively, the target function option identifier includes the third function option identifier.
6. The method of claim 5, wherein the target function option identification comprises the first function option identification and the second function option identification;
in response to detecting that a target function option identifier is triggered, performing a function option operation corresponding to the target function option identifier, including:
in response to detecting that a first function option identifier is triggered, executing a first function option operation corresponding to the first function option identifier, and setting the first text to a non-selection state after the first function option operation is executed;
and in response to detecting that the second function option identifier is triggered, executing a second function option operation corresponding to the second function option identifier.
7. A text selection apparatus, characterized by being applied to a terminal, the apparatus comprising:
a selection module for selecting a first text based on a first text selection operation in response to detecting the first text selection operation, and setting the first text to a selected state;
and the processing module is used for selecting a second text based on the second text selection operation and setting the second text into a selected state if the second text selection operation is determined to be detected under the condition that the first text information is in the selected state.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to determine that a touch signal is detected in a set display area of the terminal;
the set display area is an area in which text content is displayed in a text display interface of the terminal but is different from the area in which the first text is displayed.
9. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to determine that a touch signal is detected in a set display area of the terminal, and a duration of detecting the touch signal is greater than a preset duration.
10. The apparatus according to any one of claims 7 to 9, further comprising a display module;
the display module is used for responding to the detection of the function option triggering operation and displaying the function option identification; the function option identifiers comprise a first function option identifier for controlling the first text and/or a second function option identifier for controlling the second text; alternatively, the function option identification includes a third function option identification for controlling the first text and the second text; the function option identification comprises at least one of the following: copy identification, cut identification, edit identification, send identification.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
the processing module is further used for responding to the detection that the target function option identifier is triggered and executing the function option operation corresponding to the target function option identifier;
the target function option identifier comprises the first function option identifier and/or the second function option identifier; alternatively, the target function option identifier includes the third function option identifier.
12. The apparatus of claim 11, wherein the target function option identification comprises the first function option identification and the second function option identification;
the processing module is specifically configured to respond to detection that a first function option identifier is triggered, execute a first function option operation corresponding to the first function option identifier, and set the first text to a non-selection state after the execution of the first function option operation; and in response to detecting that the second function option identifier is triggered, executing a second function option operation corresponding to the second function option identifier.
13. A text selection apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: a text selection method as claimed in any one of claims 1-6.
14. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the text selection method of any of claims 1-6.
CN202210742143.4A 2022-06-28 2022-06-28 Text selection method, device and storage medium Pending CN117348780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210742143.4A CN117348780A (en) 2022-06-28 2022-06-28 Text selection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210742143.4A CN117348780A (en) 2022-06-28 2022-06-28 Text selection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN117348780A true CN117348780A (en) 2024-01-05

Family

ID=89361842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210742143.4A Pending CN117348780A (en) 2022-06-28 2022-06-28 Text selection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117348780A (en)

Similar Documents

Publication Publication Date Title
US10728196B2 (en) Method and storage medium for voice communication
US10942616B2 (en) Multimedia resource management method and apparatus, and storage medium
RU2636135C2 (en) Method and device for switching applications
CN107908351B (en) Application interface display method and device and storage medium
US20180088784A1 (en) Method and Device for Sharing Content
EP3232340A1 (en) Method for operating a display device and display device for displaying pages of an application program
CN109600303B (en) Content sharing method and device and storage medium
CN111381739B (en) Application icon display method and device, electronic equipment and storage medium
CN104317402B (en) Description information display method and device and electronic equipment
CN106126025B (en) Interactive method and device for copying and pasting
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
CN109951379B (en) Message processing method and device
CN106775202B (en) Information transmission method and device
CN111381737B (en) Dock display method and device and storage medium
US11836342B2 (en) Method for acquiring historical information, storage medium, and system
CN106527886B (en) Picture display method and device
US20240045583A1 (en) Page display method, electronic device and storage medium
CN112068764B (en) Language switching method and device for language switching
CN107179837B (en) Input method and device
EP3731078A1 (en) Method and apparatus for responding to gesture operation and storage medium
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
CN107885571B (en) Display page control method and device
CN111092971A (en) Display method and device for displaying
CN107832112B (en) Wallpaper setting method and device
CN110929484B (en) Text processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination