WO2019120191A1 - 多段文本复制方法及移动终端 - Google Patents
多段文本复制方法及移动终端 Download PDFInfo
- Publication number
- WO2019120191A1 WO2019120191A1 PCT/CN2018/121745 CN2018121745W WO2019120191A1 WO 2019120191 A1 WO2019120191 A1 WO 2019120191A1 CN 2018121745 W CN2018121745 W CN 2018121745W WO 2019120191 A1 WO2019120191 A1 WO 2019120191A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- input
- text
- target
- control
- text editing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Definitions
- a user when browsing a webpage, a user needs to copy a plurality of pieces of text at different positions in the webpage, and the user needs to copy each piece of text one by one, and paste the copied text segment one by one to the target location.
- the mobile terminal needs to perform multiple copy and paste operations in order to complete the copying of information.
- Each text editing control includes a text selection identifier and a control addition identifier, where N is an integer greater than 1, and the N segment target texts are not adjacent to each other.
- a first acquiring module configured to acquire N pieces of target text respectively selected by the N text editing controls displayed by the first display module
- the present disclosure provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement any of the plurality of text copies described above The steps in the method.
- the present disclosure provides a computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of any of the plurality of text copying methods described above.
- 1-1 is a display interface diagram of a mobile terminal provided by an embodiment of the present disclosure
- 1-2 is a second display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
- 1-3 is a third display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
- 1-4 is a fourth display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 2 is a structural diagram of a mobile terminal according to an embodiment of the present disclosure
- FIG. 3 is a second structural diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 1 is a flowchart of a multi-segment text copying method according to an embodiment of the present disclosure. As shown in FIG. 1, the method includes the following steps:
- the mobile terminal can receive the N input of the user, wherein the specific value of N can correspond to the number of segments of the text to be copied. For example, when two pieces of text need to be copied, the user can perform two operations on the mobile terminal.
- the N inputs can be the same or different inputs, specifically click input, press input or slide input.
- the second text information may be text information in the text to be copied.
- the first input may be the first input made by the user in the process of copying the text information, and the input may be an input at any position in the display interface.
- Step 102 Display N text editing controls respectively in response to the N times of input, wherein each text editing control includes a text selection identifier and a control addition identifier.
- the first text editing control is displayed at the input position of the first input.
- the input position of the first input may be a position corresponding to the screen when the user inputs, and the mobile terminal may display a text editing control, that is, the first text editing control, at the position.
- the user can manipulate the text edit control to determine the text content that the text edit control needs to select. For example, the user can drag the text selection identifier in the text editing control to adjust the specific position of the text editing control in the second text information, thereby determining the text content to be selected.
- the user can determine the number of times of inputting the text information according to the number of segments of the text information to be copied.
- the number of text segments to be selected is small, the number of input by the user is small; when the number of selected text segments is required, the user inputs More times. In this way, the way of text selection is more flexible and the user is convenient to operate.
- the receiving user further includes: receiving an Nth input of the user on the first target text editing control in the N-1 text editing controls;
- the N text editing controls are respectively displayed in response to the N times of inputting, including: in response to the Nth input, displaying an Nth text editing control at an input end position of the Nth input.
- the first target text editing control can be understood as any one of the N-1 text editing controls that have been displayed; the input end position of the Nth input can be understood as the user inputs the Nth time.
- the position corresponding to the screen when the user's finger is released. For example, when a user performs a drag operation, the position of the finger on the screen at the end of the drag operation.
- the user performs the first input on the text information, and the mobile terminal displays a text editing control 1 in response to the user's input, the text editing control 1 including the text selection identifier 11 and the control addition identifier 12 .
- the user can adjust the position of the displayed text selection identifier to determine the range of text to be selected. If it is necessary to select a plurality of pieces of text, the user can continue to perform the second input on the control adding identifier 12 on the text editing control 1, and the mobile terminal displays one text editing control 2 in response to the second input, as shown in FIG. 1-2. Shown.
- the mobile terminal displays the Nth text edit control at the input end position.
- the user can input multiple times according to actual needs, thereby selecting multiple pieces of text information, the information selection mode is flexible, and the user operation is convenient.
- the Nth input is a sliding operation that is identified as a sliding start position by a control of the first target text editing control
- the sliding operation in response to the Nth input, the sliding operation
- the end position of the slide shows the Nth text edit control.
- five text editing controls have been displayed in the text, and the user can add a logo to the controls of any of the five text editing controls to perform the sliding operation.
- the control adds a logo move, and when the user's finger leaves the screen, a text edit control is displayed where the user's finger leaves the screen. At this point, the user can continue to adjust the position of the text edit control to accurately select the text to be copied.
- the user can determine the display position of the text editing control by adding the drag end position of the identifier through the control control, so that the selected text can be quickly selected. And the user can add text editing controls one by one, and can adjust the position of the text editing control to obtain the text content to be selected, and the user operation is convenient.
- each text editing control further includes a symbol selection identifier; after the N text editing controls are respectively displayed in response to the N times of input, the method further includes: receiving the user in the second target text editing control a drag input on the symbol selection identifier; controlling, in response to the drag input, a symbol selection identifier movement of the second target text editing control; acquiring a drag end position of the drag input; receiving the user in the a second input on the symbol selection identifier of the second target text editing control; adding the target symbol in the second input selection to the drag end position.
- a plurality of symbols may be included in the symbol selection identifier, and the user may input on the symbol selection identifier.
- the symbols may be punctuation marks, emoticons or other symbols.
- the user may perform drag input on the symbol selection identifier of the second target text editing control.
- the mobile terminal may acquire the end position of the drag input, and the drag end position is when the user's finger leaves the screen.
- the location which is the location where you need to add a symbol.
- the user can perform a second input on any symbol in the symbol selection identifier, and the mobile terminal can determine the second input selected target symbol and add the target symbol to the drag end position.
- the user can also directly input the drag on the target symbol in the symbol selection identifier.
- the mobile terminal can acquire the position where the drag ends and add the target symbol to the drag end position.
- the symbol selection identifier is expanded, the mobile terminal can display more symbols, and the user can input any of the symbols to add a symbol to the text. In this way, the user can input the symbol selection identifier of the text editing control to quickly add symbols in the text, and the operation mode is flexible and convenient.
- the text editing control includes a symbol selection identifier 13, and the user can drag input on the symbol selection identifier of the text editing control, thereby dragging the symbol selection identifier 13 to the text editing control. Anywhere in the text, where you need to add symbols.
- the user can continue to move the finger onto the symbol in the symbol selection identifier, select the symbol to be added, and when the user's finger is released, the mobile terminal adds the selected symbol to the determined position.
- the user can also release the finger and input again on the symbol to be added in the symbol selection identifier, and the mobile terminal adds the selected symbol to the determined position, thereby completing the text. segmentation.
- the user can press the added punctuation to hide the punctuation and cancel the split.
- the user can add symbols to the plurality of pieces of text in the selected plurality of pieces of text, thereby editing the text, and the user's operation mode is flexible and convenient, thereby improving the efficiency of information editing.
- the method further includes: displaying a preset cursor on a preset side of the symbol selection identifier; The preset cursor follows the symbol selection identifier to move; the movement end position of the preset cursor is determined as the drag end position.
- the preset cursor may be an identifier for indicating a position of the symbol selection identifier in the text, and the position where the preset cursor is located is a position where the symbol needs to be added, so that the user can accurately obtain the position of the symbol to be added.
- a cursor when the symbol selection identifier is dragged, a cursor may be displayed on the side of the symbol selection identifier to indicate the position of the symbol selection identifier in the text in real time.
- the preset cursor moves in the direction of the movement of the symbol selection control in the text.
- the preset cursor can be displayed between two adjacent texts, and along with the symbol selection control Move to jump between the gaps of the text.
- the preset cursor is displayed in the text, so that the user can view the position of the symbol selection identifier in the text, thereby quickly and accurately adding the symbol in the symbol selection identifier to the position of the symbol to be added.
- the method further includes: receiving, by the user, a control of the third target text editing control in the N text editing controls. a third input on the identifier; in response to the third input, deleting the third target text editing control and canceling the target text selected by the third target text editing control.
- the third target text editing control may be any text editing control in the N text editing controls, and the user may perform a third input on the control adding identifier of the third target text editing control, thereby deleting the third text editing control.
- the target text in the third text edit control selection is no longer selected.
- the user can slide the control add identifier to the edge of the screen to enable the deletion of the text edit control.
- the user can move the control addition identifiers respectively located at the start and end positions of the text edit control to the same position in the screen, and the mobile terminal deletes the third target text in response to the user input. Edit the control.
- the partial text segments can be canceled by inputting on the control addition identifier of the third target text editing control.
- the operation mode is simple, the user is convenient to operate, and the text editing method is flexible.
- the third target text edit control is deleted in response to the third input, and the first The target text selected by the three-target text editing control includes: deleting the third target text editing control if the drag speed of the drag operation is greater than a preset threshold and the drag end position is located in the preset area, And canceling the target text selected in the third target text editing control.
- the mobile terminal may detect the drag speed of the drag operation, and determine whether the drag speed is greater than a preset threshold, where
- the preset threshold may be a speed value preset and stored by the mobile terminal.
- the mobile terminal may further detect the end position of the drag operation, which may specifically be the position of the user when the finger leaves the screen during the drag operation.
- the mobile terminal determines whether the end position of the drag operation is in the preset area, where the preset area may be a position preset and stored by the mobile terminal, and the location may be any area within the display interface of the mobile terminal, for example, close to The preset area at the edge of the screen.
- the mobile terminal deletes the third target text edit control and cancels the target text selected by the third target text edit control. After canceling the selection of the target text, the mobile terminal may delete the selected identifier of the target text.
- the mobile terminal can also judge the drag speed and the drag end position of the drag operation at the same time. If the drag speed and the drag end position satisfy the preset condition, the third target text edit control is deleted, and the target is cancelled. text.
- the mobile terminal can quickly delete the text segments that do not need to be selected, thereby completing the quick editing of the text, and the user operation is convenient.
- the third target text editing control includes a first control adding identifier and a second control adding identifier
- the third input is a drag operation of the user adding an identifier to the first control, the responding to the Three inputs, deleting the third target text editing control, and canceling the target text selected by the third target text editing control, comprising: controlling the first control to add an identification movement in response to the third input; If the movement ending position of the first control addition identifier and the second control addition identifier have an overlapping area, deleting the third target text editing control, and canceling the selected target of the third target text editing control text.
- the mobile terminal may display the first control addition identifier and the second control addition identifier respectively at the start position and the end position of the selected Chinese text of the third target text editing control, and the user may add the identifier to the first control and The second control adds an identifier for the drag operation.
- the user may add an identifier to the first control to perform a drag operation, or may add an identifier to the second control to perform a drag operation, and may also add an identifier to the first control and a second control to add an identifier to perform the drag operation.
- the user can simultaneously add the identifier 12 to the two controls of the start position and the end position of the text selected by the text editing control 1 to drag, or add the identifier 12 to any one of the controls. In this way, the user can operate according to the operating habits, and the operation mode is flexible.
- the first control When the user drags the first control to add the identifier, the first control adds the identifier to move with the user's finger, and when the movement ends, that is, when the user's finger leaves the screen, if the first control adds the identifier and the second control adds the identifier overlap In the area, the third target text editing control is deleted, and the target text selected by the third target text editing control is canceled.
- the user can quickly cancel the text segment that does not need to be selected and delete the text editing control by adding an identifier to the control, thereby quickly completing the editing of the text, and the user operation is convenient.
- the method further includes: receiving a drag input of the fourth text editing control by the user; and responding to the drag input, Controlling the fourth text editing control to move; in a case where the moving end position of the fourth text editing control has an overlapping area with the fifth text editing control, the first target text selected by the fourth text editing control The continuous text between the first character of the second character and the last character of the second target text selected by the fifth text editing control is merged into a piece of target text.
- the fourth text editing control moves with the user's finger, and when the movement ends, that is, when the user's finger leaves the screen, if the fourth text editing control and the fifth text If there is an overlapping area of the editing control, the text selected by the fourth text editing control, the text selected by the fifth text editing control, and the text between the fourth text editing control and the fifth text editing control are merged into one piece of text.
- the user can also drag the fifth text editing control, if the dragging ends, the fifth text editing control and the fourth text editing control have overlapping regions, or the text selected by the fifth text editing control and If the selected text of the fourth text editing control has overlapping text, the text selected by the fourth text editing control, the text selected by the fifth text editing control, and the text between the fourth text editing control and the fifth text editing control Merged into a piece of text.
- the user can quickly combine multiple pieces of text into one piece of text by inputting a text editing control.
- the user can also drag the fourth text editing control and the fifth text editing control at the same time. If the fourth text editing control and the fifth text editing control have overlapping regions when the dragging ends, the fourth The text selected by the text edit control, the text selected by the fifth text edit control, and the text between the fourth text edit control and the fifth text edit control are merged into a piece of text.
- the mobile terminal can quickly merge the texts, which can improve the text editing efficiency.
- the method further includes: receiving a fourth input of the user on the N text editing controls; Four inputs, sorting the N pieces of target text respectively selected by the N text editing controls; displaying the sorted N pieces of target text.
- the user can input the N pieces of target text or N text editing controls to sort the N pieces of target text.
- the mobile terminal displays the sorted N-segment target text, which is convenient for the user to process the sorted text, and the text editing mode is flexible.
- the N pieces of target text respectively selected by the N text editing controls in response to the fourth input includes: obtaining a clicking order of the clicking operation; and adjusting an order of the N pieces of target text respectively selected by the N text editing controls according to the clicking order.
- the user needs to sort the three pieces of text, and the user sequentially clicks the second text editing control corresponding to the second piece of text, the first text editing control corresponding to the first piece of text, and the third text editing control corresponding to the third piece of text. Then, the mobile terminal adjusts the order of the three pieces of text to: the second piece of text, the first piece of text, and the third piece of text. In this way, the sorting method is simple and convenient for the user to operate.
- the mobile terminal may also sort only the selected text of the selected text editing control, and the unselected text segments are arranged behind the selected text in the original arrangement order.
- the user only needs to adjust the order of the partial text segments, only a part of the text segments can be clicked, the implementation is simple, and the efficiency of text editing can be improved.
- the mobile terminal may display a sorting control on the screen, and the sorting control is used to indicate that the user can sort the N-segment target text to prompt the user to sort the text.
- the fourth input is a drag operation of the N text editing controls by the user
- the N pieces of target text respectively selected by the N text editing controls are sorted, including Responding to the drag operation, controlling N pieces of target text movement respectively selected by the N text editing controls.
- the user can drag each text editing control in the N text editing controls to sort the N pieces of target text.
- the text selected by the text editing control moves with the user dragging operation, and when the drag operation ends, that is, when the user's finger leaves the screen, the text selected by the text editing control stays at The position of the user's finger when it leaves the screen, which is the position where the text is arranged.
- the mobile terminal determines the sorting order according to the arrangement positions of the pieces of text.
- the mobile terminal sequentially displays the first piece of text, the second piece of text, and the third piece of text in sequence, and if the user drags the text editing control corresponding to the third piece of text, the position of the third piece of text is located first.
- the order of the above three paragraphs of text is in order: the third paragraph of text, the first paragraph of text and the second paragraph of text.
- the user only needs to adjust the order of the partial text segments, that is, the order of the text segments can be changed, and the sorting method is fast and intuitive.
- Step 103 Acquire N pieces of target text respectively selected by the N text editing controls, and the N pieces of target texts are not adjacent to each other.
- each target text editing control includes a text selection identifier
- the mobile terminal can obtain a start position and an end position of each text selection identifier in the text, and can select text between the start position and the end position as text selection. Identifies the target text in the selected text edit control selection.
- the N segment target text After obtaining the N segment target text, the N segment target text can be copied, forwarded, and collected.
- Step 104 Receive a first input of a user at a target location of the first text information.
- the first text information may be information in the current display interface of the mobile terminal, or may be information displayed after switching the display interface.
- the target location can be any location in the first textual information.
- the user can make a first input at the target location, and the first input may specifically be a sliding input, a pressing input, or a click input.
- the copying the N pieces of target text to the target position in response to the first input includes: acquiring a target feature point of the target track; and copying the N piece of target text to a target position in the first text information indicated by the target feature point.
- the target trajectory may specifically be a sliding trajectory when the user performs a sliding operation at the target position.
- the target feature point of the target trajectory may be a point on the target trajectory having a position indicating feature.
- the target trajectory of the sliding operation is “V” type
- the mobile terminal can acquire the target feature point of the target trajectory, that is, “V”.
- the inflection point of the type and determines the position of the inflection point position in the first text information, that is, the target position, thereby copying the N pieces of target text at the target position.
- the operation mode is simple, the user operation is convenient, and the text editing efficiency can be improved.
- the copying the N-segment target text to the The target position includes: displaying a preset cursor at the target position in response to the pressing input; copying the N-segment target text to a position where the preset cursor is located.
- the mobile terminal when the user performs a press input on the target position of the first text information, the mobile terminal displays the preset cursor at the position where the input is pressed, and the position of the preset cursor may be between two adjacent texts.
- the mobile terminal pastes the N segment target text to the position where the preset cursor is located, thereby completing the addition of the text.
- the first text information includes the content of “receiving voice input”.
- the preset cursor is displayed between the mobile terminal “received” and “language”, and the mobile terminal will The N-segment target text is pasted between "received” and "language”. In this way, the user can accurately obtain the position of the text to be pasted.
- the user can drag the preset cursor to adjust the position of the preset cursor, thereby obtaining a more accurate pasting position.
- the user can input again, so that the mobile terminal pastes the N-segment target text to the position where the preset cursor is located.
- the user can accurately copy the N-stage target text to the position where the text needs to be added by inputting in the text, and the operation mode is simple, and the user operation is convenient.
- the method further includes: displaying a preset virtual keyboard at the target location in response to the first input; receiving the user Character input on the virtual keyboard; in response to the character input, the user-entered character is added to the target location.
- the target position may be a target feature point of the operation track corresponding to the first input.
- the mobile terminal may display the “V” type inflection point position.
- the mobile terminal can also display the virtual keyboard at other locations on the interface being displayed, and display a cursor at the target location to confirm the location of the user to add text.
- the user can quickly call up the virtual keyboard by inputting in the text, and the text can be inserted at any position at any time, the text is added in a simple manner, and the text editing mode is flexible.
- Step 105 Copy the N-segment target text to the target location in response to the first input.
- the N-stage target text is added to the target position, thereby completing the copying of the multi-segment text, and the text editing mode is flexible.
- the multi-segment text copying method may be applied to a mobile terminal, such as a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile device.
- a mobile terminal such as a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile device.
- PDA personal digital assistant
- MID Mobile Internet Device
- Wearable Device any mobile Internet Device (MID) or Wearable Device.
- the multi-segment text copying method of the embodiment of the present disclosure receives N times of input by the user; in response to the N times of input, respectively displays N text editing controls; and acquires N pieces of target text respectively selected by the N text editing controls; Receiving a first input of a user at a target location of the first textual information; copying the N-segment target text to the target location in response to the first input; wherein each textual edit control includes a textual selection identifier and a control An identifier is added, N is an integer greater than 1, and the N pieces of target text are not adjacent to each other. In this way, the user can quickly select a plurality of pieces of text that are not adjacent in the text, thereby copying the plurality of pieces of text, thereby improving the efficiency of text copying.
- FIG. 2 is a structural diagram of a mobile terminal according to an embodiment of the present disclosure.
- the mobile terminal 200 includes: a first receiving module 201, a first display module 202, a first acquiring module 203, and a second The receiving module 204 and the copying module 205.
- the first receiving module 201 is connected to the first display module 202
- the first display module 202 is connected to the first obtaining module 203
- the first obtaining module 203 is connected to the second receiving module 204
- the second receiving module 204 and the copying module 205 are connected. connection.
- the first receiving module 201 is configured to receive N times of input by the user
- the first display module 202 is configured to respectively display N text editing controls in response to the N times of input received by the first receiving module 201;
- the first obtaining module 203 is configured to acquire N pieces of target text respectively selected by the N text editing controls displayed by the first display module 202;
- a second receiving module 204 configured to receive a first input of a user at a target location of the first text information
- a copying module 205 configured to copy the N pieces of target text to the target location in response to the first input received by the second receiving module 204;
- Each text editing control includes a text selection identifier and a control addition identifier, where N is an integer greater than 1, and the N segment target texts are not adjacent to each other.
- the first receiving module is specifically configured to receive a first input of the user on the second text information
- the first display module is specifically configured to display the first text editing control at the input position of the first input in response to the first input.
- the mobile terminal further includes:
- a third receiving module configured to receive an Nth input of the user on the first target text editing control in the N-1 text editing controls
- the first display module is specifically configured to display an Nth text editing control at an input end position of the Nth input in response to the Nth input.
- the Nth input is: adding a sliding operation identified as a sliding start position by a control of the first target text editing control;
- the first display module is specifically configured to display an Nth text editing control at a sliding end position of the sliding operation in response to the Nth input.
- each text editing control further includes a symbol selection identifier
- a fourth receiving module configured to receive a drag input of the user on the symbol selection identifier of the second target text editing control
- a first moving module configured to control a symbol selection identifier movement of the second target text editing control in response to the drag input received by the fourth receiving module
- a second obtaining module configured to acquire a drag end position of the drag input
- a fifth receiving module configured to receive a second input of the user on the symbol selection identifier of the second target text editing control
- a first adding module configured to add the target symbol selected by the fifth input module to the drag end position.
- the mobile terminal further includes:
- the preset cursor follows the symbol selection identifier to move
- the second acquiring module is specifically configured to determine a moving end position of the preset cursor displayed by the second display module as the drag end position.
- the mobile terminal further includes:
- a sixth receiving module configured to receive a third input on a control addition identifier of a third target text editing control of the N text editing controls
- a deleting module configured to delete the third target text editing control in response to the third input received by the sixth receiving module, and cancel the target text selected by the third target text editing control.
- the third input is: a drag operation of the user adding an identifier to a control of the third target text editing control;
- the deleting module is specifically configured to: when the drag speed of the drag operation is greater than a preset threshold and the drag end position is located in the preset area, delete the third target text edit control, and cancel the first The target text in the selection of the three-target text edit control.
- the third target text editing control includes a first control adding identifier and a second control adding identifier, and the third input is: a drag operation of the user adding an identifier to the first control;
- the deleting module includes:
- a mobile submodule configured to control the first control to add an identification movement in response to the third input
- a deleting sub-module configured to delete the third target text editing control when the moving sub-module moves the mobile control end-adding identifier and the second control adding identifier has an overlapping area, and The target text selected in the third target text editing control is canceled.
- the mobile terminal further includes:
- a seventh receiving module configured to receive a drag input of the fourth text editing control by the user
- a second moving module configured to control movement of the fourth text editing control in response to the drag input received by the seventh receiving module
- a merging module configured to: in a case where the moving end position of the fourth text editing control moved by the second moving module has an overlapping area with the fifth text editing control, the first target selected by the fourth text editing control The continuous text between the first character of the text and the last character of the second target text selected by the fifth text edit control is merged into a piece of target text.
- the mobile terminal further includes:
- An eighth receiving module configured to receive a fourth input of the user on the N text editing controls
- a sorting module configured to sort the N pieces of target text respectively selected by the N text editing controls in response to the fourth input received by the eighth receiving module;
- the third display module is configured to display the N pieces of target text after the sorting module is sorted.
- the fourth input is a click operation of the user on the N text editing controls
- the sorting module includes:
- a first obtaining submodule configured to acquire a clicking order of the clicking operation
- a adjusting submodule configured to adjust an order of the N pieces of target text respectively selected by the N text editing controls according to the clicking order obtained by the first obtaining submodule.
- the fourth input is a user drag operation on the N text editing controls
- the sorting module is specifically configured to, in response to the dragging operation, control N pieces of target text movement respectively selected by the N text editing controls.
- the first input is: a target trajectory input by the user at a target location of the first text information
- the replication module includes:
- a second acquiring submodule configured to acquire a target feature point of the target trajectory
- a first copy sub-module configured to copy the N-segment target text to a target location in the first text information indicated by the target feature point acquired by the second acquisition sub-module.
- the first input is: a user pressing input on a target position of the first text information
- the replication module includes:
- a first display submodule configured to display a preset cursor at the target position in response to the pressing input
- a second copy sub-module configured to copy the N-segment target text to a location of the preset cursor displayed by the first display sub-module.
- the mobile terminal further includes:
- a fourth display module configured to display a preset virtual keyboard at the target location in response to the first input
- a ninth receiving module configured to receive a character input by the user on the virtual keyboard displayed by the fourth display module
- a second adding module configured to add the input character of the user to the target location in response to the character input received by the ninth receiving module.
- the mobile terminal 200 of the embodiment of the present disclosure can implement various processes implemented by the mobile terminal in the foregoing method embodiments. To avoid repetition, details are not described herein again.
- the embodiment of the present disclosure receives N times of input of the user; in response to the N times of input, respectively displays N text editing controls; acquires N pieces of target text respectively selected by the N text editing controls; and receives the user at the first a first input of a target location of the textual information; in response to the first input, copying the N-segment target text to the target location; wherein each textual edit control includes a textual selection identifier and a control addition identifier, N is An integer greater than 1, the N segments of target text are not adjacent to each other.
- the user can select multiple pieces of text that are not adjacent in the text to be copied at one time, so that the content in the information can be quickly obtained, and the efficiency of text copying can be improved.
- the mobile terminal 300 includes, but is not limited to, a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, and a display unit. 306.
- the mobile terminal structure shown in FIG. 3 does not constitute a limitation of the mobile terminal, and the mobile terminal may include more or less components than those illustrated, or combine some components, or different components.
- the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car mobile terminal, a wearable device, a pedometer, and the like.
- the processor 310 is configured to receive N times of input of the user; in response to the N times of input, respectively display N text editing controls; acquire N pieces of target text respectively selected by the N text editing controls; and receive users a first input at a target location of the first textual information; in response to the first input, copying the N-segment target text to the target location; wherein each textual edit control includes a textual selection identifier and a control addition identifier , N is an integer greater than 1, and the N pieces of target text are not adjacent to each other.
- the user can select multiple pieces of text that are not adjacent in the text to be copied at one time, so that the content in the information can be quickly obtained, and the efficiency of text copying can be improved.
- the processor 310 is further configured to receive a first input of the user on the second text information; and in response to the first input, display the first text at the input position of the first input Edit the control.
- the processor 310 is further configured to receive an Nth input of the user on the first target text editing control in the N-1 text editing controls; and in response to the Nth input, in the Nth The input end position of the secondary input displays the Nth text editing control.
- the Nth input is: adding a sliding operation identified as a sliding start position by a control of the first target text editing control; the processor 310 is further configured to, in response to the Nth input, At the slide end position of the slide operation, the Nth text edit control is displayed.
- each text editing control further includes a symbol selection identifier
- the processor 310 is further configured to: receive a drag input of the user on the symbol selection identifier of the second target text editing control; and control the drag input, control a symbol selection identifier movement of the second target text editing control; acquiring a drag end position of the drag input; receiving a second input of a user on a symbol selection identifier of the second target text edit control; The second input selected target symbol is added to the drag end position.
- the processor 310 is further configured to receive, by the user, a third input on the control addition identifier of the third target text editing control in the N text editing controls; in response to the third input, deleting the The third target text editing control cancels the target text selected by the third target text editing control.
- the third input is: a drag operation of the user adding an identifier to the control of the third target text editing control; the processor 310 is further configured to: when the dragging speed of the drag operation is greater than a preset threshold When the drag end position is in the preset area, the third target text editing control is deleted, and the target text selected by the third target text editing control is canceled.
- the third target text editing control includes a first control adding identifier and a second control adding identifier, where the third input is: a drag operation in which the user adds an identifier to the first control; the processor 310 further And responsive to the third input, controlling the first control to add an identifier movement; in a case where the movement end position of the first control addition identifier and the second control addition identifier have an overlap area, deleting the The third target text editing control is described, and the target text selected in the third target text editing control is canceled.
- the processor 310 is further configured to: receive a drag input of the fourth text editing control by the user; and control the movement of the fourth text editing control in response to the drag input; in the fourth text editing control The first character of the first target text selected by the fourth text editing control and the second selected by the fifth text editing control in a case where the moving end position has an overlapping area with the fifth text editing control The continuous text between the last character of the target text is merged into a piece of target text.
- the processor 310 is further configured to receive a fourth input of the user on the N text editing controls; and in response to the fourth input, select N segments of the N text editing controls respectively Sort the text; display the sorted N-segment target text.
- the processor 310 is further configured to: obtain a click order of the click operation; and adjust an order of the N pieces of target text respectively selected by the N text edit controls according to the click order.
- the fourth input is a user drag operation on the N text editing controls; the processor 310 is further configured to, in response to the drag operation, control the N selected by the N text editing controls respectively Segment target text moves.
- the first input is: a target trajectory input of a user at a target position of the first text information; the processor 310 is further configured to: acquire a target feature point of the target trajectory; and copy the N segment target text a target position in the first text information indicated by the target feature point.
- the first input is: a pressing input of a user on a target position of the first text information; the processor 310 is further configured to: display a preset cursor at the target position in response to the pressing input Copying the N-segment target text to the location of the preset cursor.
- the processor 310 is further configured to: in response to the first input, display a preset virtual keyboard at the target location; receive a character input of the user on the virtual keyboard; and in response to the character input, The character input by the user is added to the target location.
- the radio frequency unit 301 can be used for receiving and transmitting signals during the transmission and reception of information or during a call, and specifically, after receiving downlink data from the base station, processing the data to the processor 310; The uplink data is sent to the base station.
- radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio unit 301 can also communicate with the network and other devices through a wireless communication system.
- the mobile terminal provides the user with wireless broadband Internet access through the network module 302, such as helping the user to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 303 can convert the audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as a sound. Moreover, the audio output unit 303 can also provide audio output (eg, call signal reception sound, message reception sound, etc.) related to a specific function performed by the mobile terminal 300.
- the audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 304 is for receiving an audio or video signal.
- the input unit 304 may include a graphics processing unit (GPU) 3041 and a microphone 3042 that images an still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
- the data is processed.
- the processed image frame can be displayed on the display unit 306.
- the image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio unit 301 or the network module 302.
- the microphone 3042 can receive sound and can process such sound as audio data.
- the processed audio data can be converted to a format output that can be transmitted to the mobile communication base station via the radio unit 301 in the case of a telephone call mode.
- the mobile terminal 300 also includes at least one type of sensor 305, such as a light sensor, motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 3061 when the mobile terminal 300 moves to the ear. / or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games).
- sensor 305 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors and the like are not described here.
- the display unit 306 is for displaying information input by the user or information provided to the user.
- the display unit 306 can include a display panel 3061.
- the display panel 3061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the user input unit 307 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal.
- the user input unit 307 includes a touch panel 3071 and other input devices 3072.
- the touch panel 3071 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 3071 or near the touch panel 3071. operating).
- the touch panel 3071 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the touch panel 3071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the user input unit 307 may also include other input devices 3072.
- the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
- the touch panel 3071 may be overlaid on the display panel 3061. After the touch panel 3071 detects a touch operation on or near the touch panel 3071, the touch panel 3071 transmits to the processor 310 to determine the type of the touch event, and then the processor 310 according to the touch. The type of event provides a corresponding visual output on display panel 3061.
- the touch panel 3071 and the display panel 3061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated. The input and output functions of the mobile terminal are implemented, and are not limited herein.
- the interface unit 308 is an interface in which an external device is connected to the mobile terminal 300.
- the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
- the interface unit 308 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 300 or can be used at the mobile terminal 300 and externally Data is transferred between devices.
- an external device eg, data information, power, etc.
- Memory 309 can be used to store software programs as well as various data.
- the memory 309 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
- memory 309 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the processor 310 is a control center of the mobile terminal that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 309, and recalling data stored in the memory 309.
- the mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal.
- the processor 310 may include one or more processing units; optionally, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution
- the processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 310.
- the mobile terminal 300 may further include a power source 311 (such as a battery) for supplying power to the various components.
- a power source 311 such as a battery
- the power source 311 may be logically connected to the processor 310 through the power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the mobile terminal 300 includes some functional modules not shown, and details are not described herein again.
- an embodiment of the present disclosure further provides a mobile terminal, including a processor 310, a memory 309, a computer program stored on the memory 309 and executable on the processor 310, and the computer program is executed by the processor 310.
- a mobile terminal including a processor 310, a memory 309, a computer program stored on the memory 309 and executable on the processor 310, and the computer program is executed by the processor 310.
- the embodiment of the present disclosure further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements various processes of the foregoing multi-segment text copying method embodiment, and can achieve the same Technical effects, to avoid repetition, will not be repeated here.
- the computer readable storage medium such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
- the instructions include a number of instructions for causing a mobile terminal (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
一种多段文本复制方法及移动终端,该方法包括:接收用户的N次输入(101);响应于所述N次输入,分别显示N个文本编辑控件(102);获取所述N个文本编辑控件所分别选中的N段目标文本(103);接收用户在第一文本信息的目标位置的第一输入(104);响应于所述第一输入,将所述N段目标文本复制至所述目标位置(105);其中,每个文本编辑控件(1,2)包括文本选择标识(11)和控件添加标识(12),N为大于1的整数,所述N段目标文本互不相邻。
Description
相关申请的交叉引用
本申请主张在2017年12月21日在中国提交的中国专利申请号No.201711395063.1的优先权,其全部内容通过引用包含于此。
本公开实施例涉及通信技术领域,尤其涉及一种多段文本复制方法及移动终端。
随着移动终端的快速发展,虚拟键盘逐步取代了物理键盘,用户通过对虚拟键盘进行操作即可以实现信息的输入,输入方式便捷。然而,当用户需要复制移动终端屏幕中显示的信息时,复制方式却仍然存在不足。
例如,用户在浏览网页时,需要复制网页中不同位置的多段文本,用户需要逐一对每段文本进行复制,并逐一将复制的文本段粘贴到目标位置。这样,移动终端需要执行多次复制和粘贴操作,才能完成信息的复制。
可见,相关技术中,移动终端在复制文本信息时,操作方式繁琐。
发明内容
第一方面,本公开实施例提供了一种多段文本复制方法,包括:
接收用户的N次输入;
响应于所述N次输入,分别显示N个文本编辑控件;
获取所述N个文本编辑控件所分别选中的N段目标文本;
接收用户在第一文本信息的目标位置的第一输入;
响应于所述第一输入,将所述N段目标文本复制至所述目标位置;
其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
第二方面,本公开实施例还提供一种多段文本复制方法,包括:
第一接收模块,用于接收用户的N次输入;
第一显示模块,用于响应于所述第一接收模块接收的所述N次输入,分别显示N个文本编辑控件;
第一获取模块,用于获取所述第一显示模块显示的所述N个文本编辑控件所分别选中的N段目标文本;
第二接收模块,用于接收用户在第一文本信息的目标位置的第一输入;
复制模块,用于响应于所述第二接收模块接收的所述第一输入,将所述N段目标文本复制至所述目标位置;
其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
本公开提供一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现上述任一多段文本复制方法中的步骤。
本公开提供一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现上述任一多段文本复制方法中的步骤。
图1是本公开实施例提供的多段文本复制方法的流程图;
图1-1是本公开实施例提供的移动终端的显示界面图之一;
图1-2是本公开实施例提供的移动终端的显示界面图之二;
图1-3是本公开实施例提供的移动终端的显示界面图之三;
图1-4是本公开实施例提供的移动终端的显示界面图之四;
图2是本公开实施例提供的移动终端的结构图之一;
图3是本公开实施例提供的移动终端的结构图之二。
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有付出创 造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参见图1,图1是本公开实施例提供的多段文本复制方法的流程图,如图1所示,包括以下步骤:
步骤101、接收用户的N次输入,其中,N为大于1的整数。
在此步骤中,当用户对移动终端的屏幕进行N次操作时,移动终端可以接收用户的N次输入,其中,N的具体数值可以与待复制文本的段数相对应。例如,当需要复制2段文本时,用户可以对移动终端进行2次操作。
N次输入可以是相同或者不同的输入,具体可以是点击输入、按压输入或者滑动输入等等。
在此步骤中,接收用户在第二文本信息上的第1次输入。
其中,第二文本信息可以是待复制的文本中的文本信息。第1次输入可以是用户在复制文本信息的过程中,进行的第一次输入,该输入可以是在显示界面中的任意位置的输入。
步骤102、响应于所述N次输入,分别显示N个文本编辑控件,其中,每个文本编辑控件包括文本选择标识和控件添加标识。
在此步骤中,移动终端可以在接收用户的每一次输入后,显示一个文本编辑控件,该文本编辑控件包括用于确定文本选择范围的文本选择标识,以及用于添加文本编辑控件的控件添加标识。其中,文本选择标识可以包括用于确定待选择文本起始位置的起始标识,和待选择文本的结束位置的结束标识,例如,显示如图1-1所示的文本编辑控件1。
在此步骤中,当接收用户在第二文本信息上的第1次输入时,响应于所述第1次输入,在所述第1次输入的输入位置,显示第1个文本编辑控件。
其中,第1次输入的输入位置可以是用户在进行输入时,该输入对应在屏幕中的位置,移动终端可以在该位置处显示文本编辑控件,即第1个文本编辑控件。此时,用户可以对该文本编辑控件进行操作,从而确定文本编辑控件所需要选择的文本内容。例如,用户可以对文本编辑控件中的文本选择标识进行拖动,从而调整文本编辑控件在第二文本信息中的具体位置,从而确定待选择的文本内容。
这样,用户可以根据待复制的文本信息的段数,确定对文本信息的输入 次数,当需要选择的文本段数较少时,用户输入的次数较少;当需要选择文本段数较多时,则用户输入的次数较多。这样,文本选择的方式灵活性较好,用户操作便捷。
可选的,所述接收用户在第二文本信息上的第1次输入之后,还包括:接收用户在N-1个文本编辑控件中的第一目标文本编辑控件上的第N次输入;所述响应于所述N次输入,分别显示N个文本编辑控件,包括:响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件。
在此步骤中,若需要选择多段文本信息,用户可以在已经显示的文本编辑控件中的任意一个文本编辑控件上进行输入。
其中,第一目标文本编辑控件可以理解为,已显示的N-1个文本编辑控件中的任意一个文本编辑控件;第N次输入的输入结束位置可以理解为用户在进行第N次输入时,用户手指松开时对应在屏幕中的位置。例如,用户在进行拖动操作时,拖动操作结束时手指在屏幕中的位置。
这样,用户通过在已显示的文本编辑控件上进行输入,可以调取多个文本编辑控件,从而实现对多个不连续文本的快速选择。
例如,如图1-1所示,用户在文本信息上进行第1次输入,移动终端响应于用户的输入显示一个文本编辑控件1,该文本编辑控件1包括文本选择标识11和控件添加标识12。此时,用户可以对显示的文本选择标识的位置进行调整,以确定待选择的文本范围。若需要选择多段文本,用户可以继续在该文本编辑控件1上的控件添加标识12上进行第二次输入,移动终端响应于第二次输入再显示1个文本编辑控件2,如图1-2所示。当用户在已显示的文本编辑控件上的任意一个控件添加标识上再次进行输入时,移动终端在该输入结束位置显示第N个文本编辑控件。
这样,用户可以根据实际需求进行多次输入,从而选择多段文本信息,信息选择方式灵活,用户操作便捷。
当所述第N次输入为以所述第一目标文本编辑控件的控件添加标识为滑动起始位置的滑动操作时,在此步骤中,响应于所述第N次输入,在所述滑动操作的滑动结束位置,显示第N个文本编辑控件。
在此步骤中,用户可以在已显示的文本编辑控件中的任意一个文本编辑 控件的控件添加标识上进行输入,具体可以以控件添加标识为起点进行滑动操作,当用户松开手指时,移动终端可以获取滑动输入的滑动终点,并在滑动终点所在的位置添加一个文本编辑控件。用户可以对该文本编辑控件的文本选择控件的位置进行输入,以调整待选择的文本范围。
例如,文本中已显示5个文本编辑控件,用户可以对5个文本编辑控件中的任意一个文本编辑控件的控件添加标识进行滑动操作。随着用户滑动操作,控件添加标识移动,当用户手指离开屏幕时,在用户手指离开屏幕的位置显示一个文本编辑控件。此时,用户可以继续对该文本编辑控件的位置进行调整,以准确选取待复制的文本。
这样,用户可以通过控制控件添加标识的拖动结束位置,确定文本编辑控件的显示位置,便于快速对待选择的文本进行选择。且用户可以逐个添加文本编辑控件,并可以对文本编辑控件的位置进行调整获得待选择的文本内容,用户操作便捷。
可选的,每个文本编辑控件还包括符号选择标识;所述响应于所述N次输入,分别显示N个文本编辑控件之后,所述方法还包括:接收用户在第二目标文本编辑控件的符号选择标识上的拖动输入;响应于所述拖动输入,控制所述第二目标文本编辑控件的符号选择标识移动;获取所述拖动输入的拖动结束位置;接收用户在所述第二目标文本编辑控件的符号选择标识上的第二输入;将所述第二输入所选中的目标符号添加至所述拖动结束位置。
在该实施方式中,符号选择标识内可以包括多个符号,用户可以在符号选择标识上进行输入。符号具体可以是标点符号,表情符号或者其他的符号等。
具体地,用户可以在第二目标文本编辑控件的符号选择标识上进行拖动输入,当拖动输入结束时,移动终端可以获取拖动输入的结束位置,拖动结束位置即用户手指离开屏幕时的位置,该位置即为需要添加符号的位置。此时,用户可以在符号选择标识中的任意符号上进行第二输入,移动终端可以确定第二输入选中的目标符号,并将该目标符号添加到拖动结束位置。
另外,用户也可以直接在符号选择标识内的目标符号上进行拖动输入,当拖动结束时,移动终端可以获取拖动结束的位置,并将目标符号添加到拖 动结束位置。当对符号选择标识进行展开时,移动终端可以显示更多的符号,用户可以对其中任意符号进行输入,以在文本中添加符号。这样,用户可以通过在文本编辑控件的符号选择标识上进行输入,实现快速在文本中添加符号,操作方式灵活便捷。
例如,如图1-3所示,文本编辑控件包括符号选择标识13,用户可以在文本编辑控件的符号选择标识上进行拖动输入,从而将符号选择标识13拖动到该文本编辑控件所选择的文本中的任意位置,即需要添加符号的位置。
当确定添加符号的位置后,用户可以继续将手指移动至符号选择标识中的符号上,选择需要添加的符号,当用户手指松开时,移动终端将选择的符号添加至确定的位置。
另外,在确定符号添加的位置后,用户也可以松开手指后,再次在符号选择标识中的需要添加的符号上进行输入,移动终端将选择的符号添加至确定的位置,从而完成对文本的分割。当需要取消分割时,用户可以对添加的标点符号进行按压操作,使标点符号隐藏,取消分割。
这样,用户可以在已选择的多段文本中,对多段文本添加符号,从而对文本进行编辑,用户的操作方式灵活便捷,可以提高信息编辑的效率。
可选的,在用户拖动所述第二目标文本编辑控件的符号选择标识的过程中,所述方法还包括:在所述符号选择标识的预设侧边,显示预设光标;其中,所述预设光标跟随所述符号选择标识进行移动;将所述预设光标的移动结束位置确定为所述拖动结束位置。
其中,预设光标可以是用于指示符号选择标识在文本中的位置的标识,预设光标所在的位置即为需要添加符号的位置,便于用户准确获取待添加符号的位置。
该实施方式中,在对符号选择标识进行拖动时,可以在符号选择标识的侧边显示光标,以实时指示符号选择标识在文本中的位置。当符号选择控件移动时,预设光标在文本中随着符号选择控件移动的方向移动,在具体实施时,预设光标可以显示在相邻的两个文本之间,并随着符号选择控件的移动而在文本的间隙之间跳动。当拖动结束时预设光标在文本中的位置,即为拖动结束位置,移动终端在该结束位置处添加符号。
这样,在文本中显示预设光标,便于用户查看符号选择标识在文本中的位置,从而快速准确地将符号选择标识中的符号添加到待添加符号的位置。
可选的,所述响应于所述N次输入,分别显示N个文本编辑控件之后,所述方法还包括:接收用户在所述N个文本编辑控件中的第三目标文本编辑控件的控件添加标识上的第三输入;响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
其中,第三目标文本编辑控件可以是N个文本编辑控件中的任意文本编辑控件,用户可以在第三目标文本编辑控件的控件添加标识上进行第三输入,从而删除第三文本编辑控件,此时,第三文本编辑控件所选中的目标文本不再处于选中状态。
例如,用户可以将控件添加标识滑动至屏幕的边缘,实现文本编辑控件的删除。
又如,如图1-1所示,用户可以将分别位于文本编辑控件的起始和结束位置的控件添加标识移动至屏幕中的同一位置,移动终端响应于用户的输入,删除第三目标文本编辑控件。
这样,当用户需要取消多个待复制文本中的部分文本段时,可以通过在第三目标文本编辑控件的控件添加标识上进行输入,取消部分文本段。该操作方式简单,用户操作便捷,文本编辑的方式灵活。
当所述第三输入为用户对第三目标文本编辑控件的控件添加标识的拖动操作时,所述响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本,包括:在所述拖动操作的拖动速度大于预设阈值且拖动结束位置位于预设区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
在该实施方式中,当用户对第三目标文本编辑控件的控件添加标识进行拖动操作时,移动终端可以检测拖动操作的拖动速度,并判断该拖动速度是否大于预设阈值,其中,预设阈值可以是移动终端预先设置并存储的速度值。
当拖动速度大于预设阈值时,移动终端可以进一步检测拖动操作的结束位置,该结束位置具体可以是用户在拖动操作过程中,手指离开屏幕时的位置。移动终端判断拖动操作的结束位置是否处于预设区域内,其中,预设区 域可以是移动终端预先设置并存储的位置,该位置具体可以是移动终端的显示界面内的任意区域,例如,靠近屏幕边缘的预设区域。
若拖动操作的拖动速度大于预设阈值,且拖动结束位置位于预设区域,则移动终端将第三目标文本编辑控件删除,并取消第三目标文本编辑控件所选中的目标文本。在取消对目标文本的选择后,移动终端可以删除目标文本的选中标识。
另外,移动终端也可以同时对拖动操作的拖动速度和拖动结束位置进行判断,若拖动速度和拖动结束位置均满足预设条件,则删除第三目标文本编辑控件,并取消目标文本。
这样,移动终端可以快速删除不需要选择的文本段,从而完成快速对文本的编辑,用户操作便捷。
当所述第三目标文本编辑控件包括第一控件添加标识和第二控件添加标识,所述第三输入为用户对所述第一控件添加标识的拖动操作时,所述响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本,包括:响应于所述第三输入,控制所述第一控件添加标识移动;在所述第一控件添加标识的移动结束位置与所述第二控件添加标识有重叠区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
在该实施方式中,移动终端可以在第三目标文本编辑控件所选中文本的起始位置和结束位置分别显示第一控件添加标识和第二控件添加标识,用户可以对第一控件添加标识和第二控件添加标识进行拖动操作。
具体地,用户可以对第一控件添加标识进行拖动操作,也可以对第二控件添加标识进行拖动操作,还可以同时对第一控件添加标识和第二控件添加标识进行拖动操作。例如,如图1-1所示,用户可以同时对文本编辑控件1所选择文本的起始位置和结束位置的两个控件添加标识12进行拖动,或者对其中任意一个控件添加标识12进行拖动,这样,用户可以根据操作习惯进行操作,操作方式灵活。
以下以用户对第一控件添加标识进行拖动操作为例进行说明。
当用户拖动第一控件添加标识时,第一控件添加标识随着用户手指拖动 移动,当移动结束时,即用户手指离开屏幕时,若第一控件添加标识与第二控件添加标识存在重叠区域,则将第三目标文本编辑控件删除,并取消第三目标文本编辑控件选中的目标文本。
这样,用户可以通过对控件添加标识进行操作实现快速取消不需要选择的文本段以及删除文本编辑控件,从而快速完成对文本的编辑,用户操作便捷。
可选的,所述响应于所述N次输入,分别显示N个文本编辑控件之后,所述方法还包括:接收用户对第四文本编辑控件的拖动输入;响应于所述拖动输入,控制所述第四文本编辑控件移动;在所述第四文本编辑控件的移动结束位置与第五文本编辑控件有重叠区域的情况下,将所述第四文本编辑控件所选中的第一目标文本的第一个字符和所述第五文本编辑控件所选中的第二目标文本的最后一个字符之间的连续文本合并为一段目标文本。
在该实施方式中,当用户拖动第四文本编辑控件时,第四文本编辑控件随着用户手指移动,当移动结束时,即用户手指离开屏幕时,若第四文本编辑控件和第五文本编辑控件存在重叠区域,则将所述第四文本编辑控件所选中的文本、第五文本编辑控件选中的文本以及第四文本编辑控件和第五文本编辑控件之间的文本合并为一段文本。
在具体实施时,用户也可以对第五文本编辑控件进行拖动操作,若拖动结束时,第五文本编辑控件和第四文本编辑控件存在重叠区域,或第五文本编辑控件选中的文本和第四文本编辑控件选中的文本存在重叠文本,则将所述第四文本编辑控件所选中的文本、第五文本编辑控件选中的文本以及第四文本编辑控件和第五文本编辑控件之间的文本合并为一段文本。这样,用户可以通过对文本编辑控件进行输入,实现快速将多段文本合并为一段文本。
另外,用户还可以同时对第四文本编辑控件和第五文本编辑控件进行拖动操作,若拖动结束时,第四文本编辑控件和第五文本编辑控件存在重叠区域,则将所述第四文本编辑控件所选中的文本、第五文本编辑控件选中的文本以及第四文本编辑控件和第五文本编辑控件之间的文本合并为一段文本。
这样,用户操作便捷,移动终端可以快速对文本进行合并,可以提高文本编辑效率。
可选的,所述响应于所述N次输入,分别显示N个文本编辑控件之后,所述方法还包括:接收用户在所述N个文本编辑控件上的第四输入;响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序;显示排序后的N段目标文本。
在该实施方式中,在确定N个文本编辑控件选中的N段目标文本后,用户可以对N段目标文本或者N个文本编辑控件进行输入,从而对N段目标文本进行排序。移动终端显示排序后的N段目标文本,便于用户对已排序的文本进行处理,文本的编辑方式灵活。
具体地,当所述第四输入为用户在N个文本编辑控件上的点选操作时,所述响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序,包括:获取所述点选操作的点选顺序;按照所述点选顺序,调整所述N个文本编辑控件所分别选中的N段目标文本的顺序。
其中,点选操作可以理解为用户在文本编辑控件上进行的点击操作。移动终端可以检测在N个文本编辑控件上的N次点选操作,从而获取点选操作的顺序以及点选操作对应的文本段,进而对N个文本编辑控件所选中的N段目标文本进行排序。
例如,用户需要对三段文本进行排序,用户依次点击第二段文本对应的第二文本编辑控件、第一段文本对应的第一文本编辑控件、第三段文本对应的第三文本编辑控件,则移动终端将三段文本的排列顺序调整为:第二段文本、第一段文本、第三段文本。这样,排序方式简单,便于用户操作。
在具体实施时,移动终端也可以仅对被点选的文本编辑控件所选中的文本进行排序,而未被点选的文本段则按照原有排列顺序排在被点选的文本的后面。当用户仅需调整部分文本段的排列顺序时,可以仅对部分文本段进行点选操作,实现方式简单,可以提高文本编辑的效率。
另外,移动终端在确定N段目标文本后,可以在屏幕中显示排序控件,排序控件用于指示用户可以对N段目标文本进行排序,以提示用户对文本进行排序。
当所述第四输入为用户对N个文本编辑控件的拖动操作时,所述响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排 序,包括:响应于所述拖动操作,控制所述N个文本编辑控件所分别选中的N段目标文本移动。
在该实施方式中,用户可以对N个文本编辑控件中的各文本编辑控件进行拖动操作,以对N段目标文本进行排序。当用户对文本编辑控件进行拖动操作时,文本编辑控件所选中的文本随着用户拖动操作而移动,当拖动操作结束,即用户手指离开屏幕时,文本编辑控件所选中的文本停留在用户手指离开屏幕时的位置,该位置即为文本的排列位置。
当用户依次对多个文本编辑控件进行拖动操作时,该多个文本编辑控件所选中的多段文本的位置改变,移动终端按照各段文本的排列位置确定排列顺序。
例如,移动终端按照顺序依次显示第一段文本、第二段文本和第三段文本,若用户对第三段文本对应的文本编辑控件进行拖动操作,使第三段文本的位置位于第一段文本之前,则上述三段文本的排列顺序依次为:第三段文本、第一段文本和第二段文本。
这样,用户仅需要调整部分文本段的排列顺序,即可以改变各文本段的排列顺序,排序方式快捷、直观。
步骤103、获取所述N个文本编辑控件所分别选中的N段目标文本,所述N段目标文本互不相邻。
其中,每个目标文本编辑控件包括文本选择标识,移动终端可以获取每个文本选择标识在文本中的起始位置和结束位置,可以将间于起始位置和结束位置之间的文本作为文本选择标识对应的文本编辑控件所选中的目标文本。
在获取N段目标文本后,可以将N段目标文本进行复制、转发以及收藏等。
步骤104、接收用户在第一文本信息的目标位置的第一输入。
其中,第一文本信息可以是移动终端当前显示界面内的信息,也可以是在切换显示界面后显示的信息。目标位置可以是第一文本信息中的任意位置。用户可以在目标位置进行第一输入,第一输入具体可以是滑动输入、按压输入或点击输入等。
在此步骤中,当所述第一输入为用户在第一文本信息的目标位置的目标 轨迹输入时,所述响应于所述第一输入,将所述N段目标文本复制至所述目标位置,包括:获取所述目标轨迹的目标特征点;将所述N段目标文本复制至所述目标特征点所指示的第一文本信息中的目标位置。
其中,目标轨迹具体可以是用户在目标位置进行滑动操作时的滑动轨迹。目标轨迹的目标特征点可以是目标轨迹上具有位置指示特征的点。
例如,如图1-4所示,当用户在第一文本中的目标位置进行滑动操作,滑动操作的目标轨迹为“V”型,移动终端可以获取目标轨迹的目标特征点,即“V”型的拐点,并确定拐点位置在第一文本信息中的位置,即目标位置,从而将N段目标文本复制在目标位置。
这样,用户可以快速将多段文本添加在文本中的任意位置,操作方式简单,用户操作便捷,可以提高文本编辑效率。
在此步骤中,当所述第一输入为用户在所述第一文本信息的目标位置上的按压输入时,所述响应于所述第一输入,将所述N段目标文本复制至所述目标位置,包括:响应于所述按压输入,在所述目标位置显示预设光标;将所述N段目标文本复制至所述预设光标所在位置。
在该实施方式中,当用户在第一文本信息的目标位置上进行按压输入时,移动终端在按压输入的位置上显示预设光标,预设光标的位置可以是在相邻两个文本之间,移动终端将N段目标文本粘贴至预设光标所在的位置处,从而完成对文本的添加。例如,第一文本信息中包括“接收语音输入”的内容,当用户在“收”和“语”之间进行按压,移动终端“收”和“语”之间显示预设光标,移动终端将N段目标文本粘贴在“收”和“语”之间。这样,用户可以准确获取待粘贴的文本的位置。
在具体实施时,移动终端在目标位置显示预设光标后,用户可以对预设光标进行拖动来调整预设光标的位置,从而获取更加精确的粘贴位置。在调整预设光标的位置后,用户可以再次进行输入,从而使移动终端将N段目标文本粘贴至预设光标所在的位置。
这样,用户通过在文本中进行输入,即可以精确地将N段目标文本复制到需要添加文本的位置,且操作方式简单,用户操作便捷。
可选的,所述接收用户在第一文本信息的目标位置的第一输入之后,所 述方法还包括:响应于所述第一输入,在所述目标位置显示预设的虚拟键盘;接收用户在所述虚拟键盘上的字符输入;响应于所述字符输入,将用户所述输入的字符添加至所述目标位置。
其中,目标位置可以是第一输入对应的操作轨迹的目标特征点,例如,当用户在文本中进行滑动操作,滑动轨迹为“V”型时,移动终端可以在“V”型的拐点位置显示虚拟键盘,并将通过虚拟键盘输入的字符添加至目标位置。
另外,移动终端也可以将虚拟键盘显示在正在显示的界面的其他位置,并在目标位置处显示光标,以使用户对待添加文本的位置进行确认。
这样,用户通过在文本中进行输入,即可快速调出虚拟键盘,可在任意位置随时插入文本,文本添加的方式简单,文本编辑方式灵活。
步骤105、响应于所述第一输入,将所述N段目标文本复制至所述目标位置。
在此步骤中,复制N段目标文本后,将N段目标文本添加至目标位置,从而完成对多段文本的复制,文本编辑方式灵活。
本公开实施例中,上述多段文本复制方法可以应用于移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
本公开实施例的多段文本复制方法,接收用户的N次输入;响应于所述N次输入,分别显示N个文本编辑控件;获取所述N个文本编辑控件所分别选中的N段目标文本;接收用户在第一文本信息的目标位置的第一输入;响应于所述第一输入,将所述N段目标文本复制至所述目标位置;其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。这样,用户可以快速选择文本中不相邻的多段文本,从而对多段文本进行复制,可以提高文本复制的效率。
参见图2,图2是本公开实施例提供的移动终端的结构图,如图2所示,移动终端200包括:第一接收模块201、第一显示模块202、第一获取模块203、第二接收模块204和复制模块205。其中,第一接收模块201和第一显示模块202连接,第一显示模块202和第一获取模块203连接,第一获取模 块203和第二接收模块204连接,第二接收模块204和复制模块205连接。
第一接收模块201,用于接收用户的N次输入;
第一显示模块202,用于响应于所述第一接收模块201接收的所述N次输入,分别显示N个文本编辑控件;
第一获取模块203,用于获取所述第一显示模块202显示的所述N个文本编辑控件所分别选中的N段目标文本;
第二接收模块204,用于接收用户在第一文本信息的目标位置的第一输入;
复制模块205,用于响应于所述第二接收模块204接收的所述第一输入,将所述N段目标文本复制至所述目标位置;
其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
可选的,所述第一接收模块具体用于,接收用户在第二文本信息上的第1次输入;
所述第一显示模块具体用于,响应于所述第1次输入,在所述第1次输入的输入位置,显示第1个文本编辑控件。
可选的,所述移动终端还包括:
第三接收模块,用于接收用户在N-1个文本编辑控件中的第一目标文本编辑控件上的第N次输入;
所述第一显示模块具体用于,响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件。
可选的,所述第N次输入为:以所述第一目标文本编辑控件的控件添加标识为滑动起始位置的滑动操作;
所述第一显示模块具体用于,响应于所述第N次输入,在所述滑动操作的滑动结束位置,显示第N个文本编辑控件。
可选的,每个文本编辑控件还包括符号选择标识;
所述移动终端还包括:
第四接收模块,用于接收用户在第二目标文本编辑控件的符号选择标识上的拖动输入;
第一移动模块,用于响应于所述第四接收模块接收的所述拖动输入,控制所述第二目标文本编辑控件的符号选择标识移动;
第二获取模块,用于获取所述拖动输入的拖动结束位置;
第五接收模块,用于接收用户在所述第二目标文本编辑控件的符号选择标识上的第二输入;
第一添加模块,用于将所述第五接收模块接收的所述第二输入所选中的目标符号添加至所述拖动结束位置。
可选的,所述移动终端还包括:
第二显示模块,用于在所述符号选择标识的预设侧边,显示预设光标;
其中,所述预设光标跟随所述符号选择标识进行移动;
所述第二获取模块具体用于,将所述第二显示模块显示的预设光标的移动结束位置确定为所述拖动结束位置。
可选的,所述移动终端还包括:
第六接收模块,用于接收用户在所述N个文本编辑控件中的第三目标文本编辑控件的控件添加标识上的第三输入;
删除模块,用于响应于所述第六接收模块接收的所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,所述第三输入为:用户对第三目标文本编辑控件的控件添加标识的拖动操作;
所述删除模块具体用于,在所述拖动操作的拖动速度大于预设阈值且拖动结束位置位于预设区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,所述第三目标文本编辑控件包括第一控件添加标识和第二控件添加标识,所述第三输入为:用户对所述第一控件添加标识的拖动操作;
所述删除模块包括:
移动子模块,用于响应于所述第三输入,控制所述第一控件添加标识移动;
删除子模块,用于在所述移动子模块移动所述第一控件添加标识的移动 结束位置与所述第二控件添加标识有重叠区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,所述移动终端还包括:
第七接收模块,用于接收用户对第四文本编辑控件的拖动输入;
第二移动模块,用于响应于所述第七接收模块接收的所述拖动输入,控制所述第四文本编辑控件移动;
合并模块,用于在所述第二移动模块移动的第四文本编辑控件的移动结束位置与第五文本编辑控件有重叠区域的情况下,将所述第四文本编辑控件所选中的第一目标文本的第一个字符和所述第五文本编辑控件所选中的第二目标文本的最后一个字符之间的连续文本合并为一段目标文本。
可选的,所述移动终端还包括:
第八接收模块,用于接收用户在所述N个文本编辑控件上的第四输入;
排序模块,用于响应于所述第八接收模块接收的所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序;
第三显示模块,用于显示所述排序模块排序后的N段目标文本。
可选的,所述第四输入为用户在N个文本编辑控件上的点选操作;
所述排序模块包括:
第一获取子模块,用于获取所述点选操作的点选顺序;
调整子模块,用于按照所述第一获取子模块获取的所述点选顺序,调整所述N个文本编辑控件所分别选中的N段目标文本的顺序。
可选的,所述第四输入为用户对N个文本编辑控件的拖动操作;
所述排序模块具体用于,响应于所述拖动操作,控制所述N个文本编辑控件所分别选中的N段目标文本移动。
可选的,所述第一输入为:用户在第一文本信息的目标位置的目标轨迹输入;
所述复制模块包括:
第二获取子模块,用于获取所述目标轨迹的目标特征点;
第一复制子模块,用于将所述N段目标文本复制至所述第二获取子模块获取的所述目标特征点所指示的第一文本信息中的目标位置。
可选的,所述第一输入为:用户在所述第一文本信息的目标位置上的按压输入;
所述复制模块包括:
第一显示子模块,用于响应于所述按压输入,在所述目标位置显示预设光标;
第二复制子模块,用于将所述N段目标文本复制至所述第一显示子模块显示的所述预设光标所在位置。
可选的,所述移动终端还包括:
第四显示模块,用于响应于所述第一输入,在所述目标位置显示预设的虚拟键盘;
第九接收模块,用于接收用户在所述第四显示模块显示的所述虚拟键盘上的字符输入;
第二添加模块,用于响应于所述第九接收模块接收的所述字符输入,将用户所述输入的字符添加至所述目标位置。
本公开实施例的移动终端200,能够实现上述方法实施例中移动终端实现的各个过程,为避免重复,此处不再赘述。
本公开实施例,接收用户的N次输入;响应于所述N次输入,分别显示N个文本编辑控件;获取所述N个文本编辑控件所分别选中的N段目标文本;接收用户在第一文本信息的目标位置的第一输入;响应于所述第一输入,将所述N段目标文本复制至所述目标位置;其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
这样,用户可以一次性选择待复制文本中不相邻的多段文本,便于快速获取信息中的内容,可以提高文本复制的效率。
图3为实现本公开各个实施例的一种移动终端的硬件结构示意图,该移动终端300包括但不限于:射频单元301、网络模块302、音频输出单元303、输入单元304、传感器305、显示单元306、用户输入单元307、接口单元308、存储器309、处理器310、以及电源311等部件。本领域技术人员可以理解,图3中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本 公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载移动终端、可穿戴设备、以及计步器等。
其中,处理器310,用于接收用户的N次输入;响应于所述N次输入,分别显示N个文本编辑控件;获取所述N个文本编辑控件所分别选中的N段目标文本;接收用户在第一文本信息的目标位置的第一输入;响应于所述第一输入,将所述N段目标文本复制至所述目标位置;其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
这样,用户可以一次性选择待复制文本中不相邻的多段文本,便于快速获取信息中的内容,可以提高文本复制的效率。
可选的,处理器310还用于,接收用户在第二文本信息上的第1次输入;响应于所述第1次输入,在所述第1次输入的输入位置,显示第1个文本编辑控件。
可选的,处理器310还用于,接收用户在N-1个文本编辑控件中的第一目标文本编辑控件上的第N次输入;响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件。
可选的,所述第N次输入为:以所述第一目标文本编辑控件的控件添加标识为滑动起始位置的滑动操作;处理器310还用于,响应于所述第N次输入,在所述滑动操作的滑动结束位置,显示第N个文本编辑控件。
可选的,每个文本编辑控件还包括符号选择标识;处理器310还用于,接收用户在第二目标文本编辑控件的符号选择标识上的拖动输入;响应于所述拖动输入,控制所述第二目标文本编辑控件的符号选择标识移动;获取所述拖动输入的拖动结束位置;接收用户在所述第二目标文本编辑控件的符号选择标识上的第二输入;将所述第二输入所选中的目标符号添加至所述拖动结束位置。
可选的,处理器310还用于,在所述符号选择标识的预设侧边,显示预设光标;其中,所述预设光标跟随所述符号选择标识进行移动;将所述预设光标的移动结束位置确定为所述拖动结束位置。
可选的,处理器310还用于,接收用户在所述N个文本编辑控件中的第 三目标文本编辑控件的控件添加标识上的第三输入;响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,所述第三输入为:用户对第三目标文本编辑控件的控件添加标识的拖动操作;处理器310还用于,在所述拖动操作的拖动速度大于预设阈值且拖动结束位置位于预设区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,所述第三目标文本编辑控件包括第一控件添加标识和第二控件添加标识,所述第三输入为:用户对所述第一控件添加标识的拖动操作;处理器310还用于,响应于所述第三输入,控制所述第一控件添加标识移动;在所述第一控件添加标识的移动结束位置与所述第二控件添加标识有重叠区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
可选的,处理器310还用于,接收用户对第四文本编辑控件的拖动输入;响应于所述拖动输入,控制所述第四文本编辑控件移动;在所述第四文本编辑控件的移动结束位置与第五文本编辑控件有重叠区域的情况下,将所述第四文本编辑控件所选中的第一目标文本的第一个字符和所述第五文本编辑控件所选中的第二目标文本的最后一个字符之间的连续文本合并为一段目标文本。
可选的,处理器310还用于,接收用户在所述N个文本编辑控件上的第四输入;响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序;显示排序后的N段目标文本。
可选的,处理器310还用于,获取所述点选操作的点选顺序;按照所述点选顺序,调整所述N个文本编辑控件所分别选中的N段目标文本的顺序。
可选的,所述第四输入为用户对N个文本编辑控件的拖动操作;处理器310还用于,响应于所述拖动操作,控制所述N个文本编辑控件所分别选中的N段目标文本移动。
可选的,所述第一输入为:用户在第一文本信息的目标位置的目标轨迹输入;处理器310还用于,获取所述目标轨迹的目标特征点;将所述N段目 标文本复制至所述目标特征点所指示的第一文本信息中的目标位置。
可选的,所述第一输入为:用户在所述第一文本信息的目标位置上的按压输入;处理器310还用于,响应于所述按压输入,在所述目标位置显示预设光标;将所述N段目标文本复制至所述预设光标所在位置。
可选的,处理器310还用于,响应于所述第一输入,在所述目标位置显示预设的虚拟键盘;接收用户在所述虚拟键盘上的字符输入;响应于所述字符输入,将用户所述输入的字符添加至所述目标位置。
应理解的是,本公开实施例中,射频单元301可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器310处理;另外,将上行的数据发送给基站。通常,射频单元301包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元301还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块302为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元303可以将射频单元301或网络模块302接收的或者在存储器309中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元303还可以提供与移动终端300执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元303包括扬声器、蜂鸣器以及受话器等。
输入单元304用于接收音频或视频信号。输入单元304可以包括图形处理器(Graphics Processing Unit,GPU)3041和麦克风3042,图形处理器3041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元306上。经图形处理器3041处理后的图像帧可以存储在存储器309(或其它存储介质)中或者经由射频单元301或网络模块302进行发送。麦克风3042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元301发送到移动通信基站的格式输出。
移动终端300还包括至少一种传感器305,比如光传感器、运动传感器 以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板3061的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板3061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器305还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元306用于显示由用户输入的信息或提供给用户的信息。显示单元306可包括显示面板3061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板3061。
用户输入单元307可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元307包括触控面板3071以及其他输入设备3072。触控面板3071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板3071上或在触控面板3071附近的操作)。触控面板3071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器310,接收处理器310发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板3071。除了触控面板3071,用户输入单元307还可以包括其他输入设备3072。具体地,其他输入设备3072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板3071可覆盖在显示面板3061上,当触控面板3071检测到在其上或附近的触摸操作后,传送给处理器310以确定触摸事件的类型,随后处理器310根据触摸事件的类型在显示面板3061上提供相应的视觉 输出。虽然在图3中,触控面板3071与显示面板3061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板3071与显示面板3061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元308为外部装置与移动终端300连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元308可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端300内的一个或多个元件或者可以用于在移动终端300和外部装置之间传输数据。
存储器309可用于存储软件程序以及各种数据。存储器309可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器309可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器310是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器309内的软件程序和/或模块,以及调用存储在存储器309内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器310可包括一个或多个处理单元;可选的,处理器310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器310中。
移动终端300还可以包括给各个部件供电的电源311(比如电池),可选的,电源311可以通过电源管理系统与处理器310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端300包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种移动终端,包括处理器310,存储器 309,存储在存储器309上并可在所述处理器310上运行的计算机程序,该计算机程序被处理器310执行时实现上述多段文本复制方法实施例中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述多段文本复制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台移动终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。
Claims (34)
- 一种多段文本复制方法,包括:接收用户的N次输入;响应于所述N次输入,分别显示N个文本编辑控件;获取所述N个文本编辑控件所分别选中的N段目标文本;接收用户在第一文本信息的目标位置的第一输入;响应于所述第一输入,将所述N段目标文本复制至所述目标位置;其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
- 根据权利要求1所述的方法,其中,所述接收用户的N次输入,包括:接收用户在第二文本信息上的第1次输入;所述响应于所述N次输入,分别显示N个文本编辑控件,包括:响应于所述第1次输入,在所述第1次输入的输入位置,显示第1个文本编辑控件。
- 根据权利要求2所述的方法,还包括:所述接收用户在第二文本信息上的第1次输入之后,接收用户在N-1个文本编辑控件中的第一目标文本编辑控件上的第N次输入;所述响应于所述N次输入,分别显示N个文本编辑控件,包括:响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件。
- 根据权利要求3所述的方法,其中,所述第N次输入为:以所述第一目标文本编辑控件的控件添加标识为滑动起始位置的滑动操作;所述响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件,包括:响应于所述第N次输入,在所述滑动操作的滑动结束位置,显示第N个文本编辑控件。
- 根据权利要求1所述的方法,其中,每个文本编辑控件还包括符号选 择标识;所述响应于所述N次输入,分别显示N个文本编辑控件之后,所述方法还包括:接收用户在第二目标文本编辑控件的符号选择标识上的拖动输入;响应于所述拖动输入,控制所述第二目标文本编辑控件的符号选择标识移动;获取所述拖动输入的拖动结束位置;接收用户在所述第二目标文本编辑控件的符号选择标识上的第二输入;将所述第二输入所选中的目标符号添加至所述拖动结束位置。
- 根据权利要求5所述的方法,还包括:在用户拖动所述第二目标文本编辑控件的符号选择标识的过程中,在所述符号选择标识的预设侧边,显示预设光标;其中,所述预设光标跟随所述符号选择标识进行移动;所述获取所述拖动输入的拖动结束位置,包括:将所述预设光标的移动结束位置确定为所述拖动结束位置。
- 根据权利要求1所述的方法,还包括:所述响应于所述N次输入,分别显示N个文本编辑控件之后,接收用户在所述N个文本编辑控件中的第三目标文本编辑控件的控件添加标识上的第三输入;响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求7所述的方法,其中,所述第三输入为:用户对第三目标文本编辑控件的控件添加标识的拖动操作;所述响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本,包括:在所述拖动操作的拖动速度大于预设阈值且拖动结束位置位于预设区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求7所述的方法,其中,所述第三目标文本编辑控件包括 第一控件添加标识和第二控件添加标识,所述第三输入为:用户对所述第一控件添加标识的拖动操作;所述响应于所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本,包括:响应于所述第三输入,控制所述第一控件添加标识移动;在所述第一控件添加标识的移动结束位置与所述第二控件添加标识有重叠区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求1所述的方法,还包括:所述响应于所述N次输入,分别显示N个文本编辑控件之后,接收用户对第四文本编辑控件的拖动输入;响应于所述拖动输入,控制所述第四文本编辑控件移动;在所述第四文本编辑控件的移动结束位置与第五文本编辑控件有重叠区域的情况下,将所述第四文本编辑控件所选中的第一目标文本的第一个字符和所述第五文本编辑控件所选中的第二目标文本的最后一个字符之间的连续文本合并为一段目标文本。
- 根据权利要求1所述的方法,还包括:所述响应于所述N次输入,分别显示N个文本编辑控件之后,接收用户在所述N个文本编辑控件上的第四输入;响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序;显示排序后的N段目标文本。
- 根据权利要求11所述的方法,其中,所述第四输入为用户在N个文本编辑控件上的点选操作;所述响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序,包括:获取所述点选操作的点选顺序;按照所述点选顺序,调整所述N个文本编辑控件所分别选中的N段目标文本的顺序。
- 根据权利要求11所述的方法,其中,所述第四输入为用户对N个文本编辑控件的拖动操作;所述响应于所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序,包括:响应于所述拖动操作,控制所述N个文本编辑控件所分别选中的N段目标文本移动。
- 根据权利要求1所述的方法,其中,所述第一输入为:用户在第一文本信息的目标位置的目标轨迹输入;所述响应于所述第一输入,将所述N段目标文本复制至所述目标位置,包括:获取所述目标轨迹的目标特征点;将所述N段目标文本复制至所述目标特征点所指示的第一文本信息中的目标位置。
- 根据权利要求1所述的方法,其中,所述第一输入为:用户在所述第一文本信息的目标位置上的按压输入;所述响应于所述第一输入,将所述N段目标文本复制至所述目标位置,包括:响应于所述按压输入,在所述目标位置显示预设光标;将所述N段目标文本复制至所述预设光标所在位置。
- 根据权利要求1所述的方法,还包括:所述接收用户在第一文本信息的目标位置的第一输入之后,响应于所述第一输入,在所述目标位置显示预设的虚拟键盘;接收用户在所述虚拟键盘上的字符输入;响应于所述字符输入,将用户所述输入的字符添加至所述目标位置。
- 一种移动终端,包括:第一接收模块,用于接收用户的N次输入;第一显示模块,用于响应于所述第一接收模块接收的所述N次输入,分别显示N个文本编辑控件;第一获取模块,用于获取所述第一显示模块显示的所述N个文本编辑控 件所分别选中的N段目标文本;第二接收模块,用于接收用户在第一文本信息的目标位置的第一输入;复制模块,用于响应于所述第二接收模块接收的所述第一输入,将所述N段目标文本复制至所述目标位置;其中,每个文本编辑控件包括文本选择标识和控件添加标识,N为大于1的整数,所述N段目标文本互不相邻。
- 根据权利要求17所述的移动终端,其中,所述第一接收模块具体用于,接收用户在第二文本信息上的第1次输入;所述第一显示模块具体用于,响应于所述第1次输入,在所述第1次输入的输入位置,显示第1个文本编辑控件。
- 根据权利要求18所述的移动终端,还包括:第三接收模块,用于接收用户在N-1个文本编辑控件中的第一目标文本编辑控件上的第N次输入;所述第一显示模块具体用于,响应于所述第N次输入,在所述第N次输入的输入结束位置,显示第N个文本编辑控件。
- 根据权利要求19所述的移动终端,其中,所述第N次输入为:以所述第一目标文本编辑控件的控件添加标识为滑动起始位置的滑动操作;所述第一显示模块具体用于,响应于所述第N次输入,在所述滑动操作的滑动结束位置,显示第N个文本编辑控件。
- 根据权利要求17所述的移动终端,其中,每个文本编辑控件还包括符号选择标识;所述移动终端还包括:第四接收模块,用于接收用户在第二目标文本编辑控件的符号选择标识上的拖动输入;第一移动模块,用于响应于所述第四接收模块接收的所述拖动输入,控制所述第二目标文本编辑控件的符号选择标识移动;第二获取模块,用于获取所述拖动输入的拖动结束位置;第五接收模块,用于接收用户在所述第二目标文本编辑控件的符号选择标识上的第二输入;第一添加模块,用于将所述第五接收模块接收的所述第二输入所选中的目标符号添加至所述拖动结束位置。
- 根据权利要求21所述的移动终端,还包括:第二显示模块,用于在所述符号选择标识的预设侧边,显示预设光标;其中,所述预设光标跟随所述符号选择标识进行移动;所述第二获取模块具体用于,将所述第二显示模块显示的预设光标的移动结束位置确定为所述拖动结束位置。
- 根据权利要求17所述的移动终端,还包括:第六接收模块,用于接收用户在所述N个文本编辑控件中的第三目标文本编辑控件的控件添加标识上的第三输入;删除模块,用于响应于所述第六接收模块接收的所述第三输入,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求23所述的移动终端,其中,所述第三输入为:用户对第三目标文本编辑控件的控件添加标识的拖动操作;所述删除模块具体用于,在所述拖动操作的拖动速度大于预设阈值且拖动结束位置位于预设区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求23所述的移动终端,其中,所述第三目标文本编辑控件包括第一控件添加标识和第二控件添加标识,所述第三输入为:用户对所述第一控件添加标识的拖动操作;所述删除模块包括:移动子模块,用于响应于所述第三输入,控制所述第一控件添加标识移动;删除子模块,用于在所述移动子模块移动所述第一控件添加标识的移动结束位置与所述第二控件添加标识有重叠区域的情况下,删除所述第三目标文本编辑控件,并取消所述第三目标文本编辑控件所选中的目标文本。
- 根据权利要求17所述的移动终端,还包括:第七接收模块,用于接收用户对第四文本编辑控件的拖动输入;第二移动模块,用于响应于所述第七接收模块接收的所述拖动输入,控制所述第四文本编辑控件移动;合并模块,用于在所述第二移动模块移动的第四文本编辑控件的移动结束位置与第五文本编辑控件有重叠区域的情况下,将所述第四文本编辑控件所选中的第一目标文本的第一个字符和所述第五文本编辑控件所选中的第二目标文本的最后一个字符之间的连续文本合并为一段目标文本。
- 根据权利要求17所述的移动终端,还包括:第八接收模块,用于接收用户在所述N个文本编辑控件上的第四输入;排序模块,用于响应于所述第八接收模块接收的所述第四输入,对所述N个文本编辑控件所分别选中的N段目标文本进行排序;第三显示模块,用于显示所述排序模块排序后的N段目标文本。
- 根据权利要求27所述的移动终端,其中,所述第四输入为用户在N个文本编辑控件上的点选操作;所述排序模块包括:第一获取子模块,用于获取所述点选操作的点选顺序;调整子模块,用于按照所述第一获取子模块获取的所述点选顺序,调整所述N个文本编辑控件所分别选中的N段目标文本的顺序。
- 根据权利要求27所述的移动终端,其中,所述第四输入为用户对N个文本编辑控件的拖动操作;所述排序模块具体用于,响应于所述拖动操作,控制所述N个文本编辑控件所分别选中的N段目标文本移动。
- 根据权利要求17所述的移动终端,其中,所述第一输入为:用户在第一文本信息的目标位置的目标轨迹输入;所述复制模块包括:第二获取子模块,用于获取所述目标轨迹的目标特征点;第一复制子模块,用于将所述N段目标文本复制至所述第二获取子模块获取的所述目标特征点所指示的第一文本信息中的目标位置。
- 根据权利要求17所述的移动终端,其中,所述第一输入为:用户在所述第一文本信息的目标位置上的按压输入;所述复制模块包括:第一显示子模块,用于响应于所述按压输入,在所述目标位置显示预设光标;第二复制子模块,用于将所述N段目标文本复制至所述第一显示子模块显示的所述预设光标所在位置。
- 根据权利要求17所述的移动终端,还包括:第四显示模块,用于响应于所述第一输入,在所述目标位置显示预设的虚拟键盘;第九接收模块,用于接收用户在所述第四显示模块显示的所述虚拟键盘上的字符输入;第二添加模块,用于响应于所述第九接收模块接收的所述字符输入,将用户所述输入的字符添加至所述目标位置。
- 一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至16任一项所述的多段文本复制方法中的步骤。
- 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述的多段文本复制方法中的步骤。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP18890322.3A EP3734430B1 (en) | 2017-12-21 | 2018-12-18 | Method for copying multiple text segments and mobile terminal |
US16/956,506 US11829580B2 (en) | 2017-12-21 | 2018-12-18 | Multi-piece text copy method and mobile terminal |
ES18890322T ES2975210T3 (es) | 2017-12-21 | 2018-12-18 | Método de copia de múltiples segmentos de texto y terminal móvil |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711395063.1 | 2017-12-21 | ||
CN201711395063.1A CN107967093B (zh) | 2017-12-21 | 2017-12-21 | 一种多段文本复制方法及移动终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019120191A1 true WO2019120191A1 (zh) | 2019-06-27 |
Family
ID=61995562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/121745 WO2019120191A1 (zh) | 2017-12-21 | 2018-12-18 | 多段文本复制方法及移动终端 |
Country Status (5)
Country | Link |
---|---|
US (1) | US11829580B2 (zh) |
EP (1) | EP3734430B1 (zh) |
CN (1) | CN107967093B (zh) |
ES (1) | ES2975210T3 (zh) |
WO (1) | WO2019120191A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010251A (zh) * | 2021-03-19 | 2021-06-22 | 维沃移动通信有限公司 | 信息处理方法、装置和电子设备 |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967093B (zh) * | 2017-12-21 | 2020-01-31 | 维沃移动通信有限公司 | 一种多段文本复制方法及移动终端 |
CN109857578B (zh) * | 2019-01-31 | 2021-07-23 | 维沃移动通信有限公司 | 一种文本复制方法和电子设备 |
CN110018915A (zh) * | 2019-03-29 | 2019-07-16 | 维沃移动通信有限公司 | 一种复制方法、装置和终端 |
CN110851040B (zh) * | 2019-10-28 | 2021-07-20 | 维沃移动通信有限公司 | 一种信息处理方法及电子设备 |
CN111984113B (zh) * | 2020-07-17 | 2022-11-04 | 维沃移动通信有限公司 | 文本编辑方法、装置和电子设备 |
CN112269519B (zh) * | 2020-10-10 | 2022-04-12 | 维沃移动通信有限公司 | 文档处理方法、装置及电子设备 |
CN112486377B (zh) * | 2020-12-07 | 2022-07-12 | 网易(杭州)网络有限公司 | 文本编辑方法、装置和电子设备 |
CN112558811A (zh) * | 2020-12-15 | 2021-03-26 | 维沃移动通信有限公司 | 内容处理方法、装置及电子设备 |
CN112612400B (zh) * | 2020-12-28 | 2022-05-24 | 维沃移动通信有限公司 | 文本内容处理方法和电子设备 |
CN112765942A (zh) * | 2021-01-22 | 2021-05-07 | 维沃移动通信有限公司 | 文本处理方法、装置、电子设备及可读存储介质 |
CN112947826B (zh) * | 2021-01-28 | 2024-05-10 | 维沃移动通信有限公司 | 信息获取方法、装置及电子设备 |
CN115079913A (zh) * | 2021-03-16 | 2022-09-20 | 深圳市万普拉斯科技有限公司 | 文本选取方法、装置、计算机设备和存储介质 |
CN113342241A (zh) * | 2021-05-27 | 2021-09-03 | 维沃移动通信有限公司 | 目标字符的选择方法、装置、电子设备及存储介质 |
CN113905267B (zh) * | 2021-08-27 | 2023-06-20 | 北京达佳互联信息技术有限公司 | 一种字幕编辑方法、装置、电子设备及存储介质 |
CN113905192B (zh) * | 2021-08-27 | 2023-05-30 | 北京达佳互联信息技术有限公司 | 一种字幕编辑方法、装置、电子设备及存储介质 |
CN113778240B (zh) * | 2021-09-16 | 2024-03-19 | 维沃移动通信有限公司 | 文本输入方法和装置 |
CN113807057B (zh) * | 2021-09-24 | 2024-10-29 | 维沃移动通信有限公司 | 文字编辑方法和装置 |
EP4439262A1 (en) * | 2021-11-24 | 2024-10-02 | Vivo Mobile Communication Co., Ltd. | File editing processing method and apparatus, and electronic device |
CN114327173A (zh) * | 2022-01-04 | 2022-04-12 | 维沃移动通信有限公司 | 信息处理方法、装置及电子设备 |
CN114625465B (zh) * | 2022-03-14 | 2023-09-08 | 网易(杭州)网络有限公司 | 基于rn组件的文本展示方法及装置、设备、存储介质 |
CN116702715B (zh) * | 2022-11-30 | 2024-07-16 | 荣耀终端有限公司 | 备忘录操作方法、装置及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034411A (zh) * | 2011-10-09 | 2013-04-10 | 中国移动通信集团公司 | 针对触摸屏的文本选择方法和装置 |
CN104375980A (zh) * | 2014-11-18 | 2015-02-25 | 小米科技有限责任公司 | 文本内容选择方法及装置 |
CN107247698A (zh) * | 2017-05-15 | 2017-10-13 | 捷开通讯(深圳)有限公司 | 一种文本编辑的方法、移动终端和具有存储功能的装置 |
CN107967093A (zh) * | 2017-12-21 | 2018-04-27 | 维沃移动通信有限公司 | 一种多段文本复制方法及移动终端 |
Family Cites Families (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5461710A (en) * | 1992-03-20 | 1995-10-24 | International Business Machines Corporation | Method for providing a readily distinguishable template and means of duplication thereof in a computer system graphical user interface |
US6240430B1 (en) * | 1996-12-13 | 2001-05-29 | International Business Machines Corporation | Method of multiple text selection and manipulation |
US20100122160A1 (en) * | 2008-11-10 | 2010-05-13 | International Business Machines Corporation | Non-contiguous content duplication |
US8510665B2 (en) * | 2009-03-16 | 2013-08-13 | Apple Inc. | Methods and graphical user interfaces for editing on a multifunction device with a touch screen display |
US20110231796A1 (en) * | 2010-02-16 | 2011-09-22 | Jose Manuel Vigil | Methods for navigating a touch screen device in conjunction with gestures |
KR20120102262A (ko) * | 2011-03-08 | 2012-09-18 | 삼성전자주식회사 | 휴대용 단말기가 열람하는 텍스트에서 원하는 내용을 선택하는 방법 및 장치 |
DE112011105305T5 (de) * | 2011-06-03 | 2014-03-13 | Google, Inc. | Gesten zur Textauswahl |
US9612670B2 (en) * | 2011-09-12 | 2017-04-04 | Microsoft Technology Licensing, Llc | Explicit touch selection and cursor placement |
WO2013131171A1 (en) * | 2012-03-07 | 2013-09-12 | Quillsoft Ltd. | Constrained digital text reader |
CN102819456B (zh) * | 2012-08-14 | 2016-12-21 | 魅族科技(中国)有限公司 | 剪贴板中内容的生成方法及装置 |
US9098127B2 (en) * | 2012-10-17 | 2015-08-04 | Blackberry Limited | Electronic device including touch-sensitive display and method of controlling same |
US10360297B2 (en) * | 2013-06-14 | 2019-07-23 | Microsoft Technology Licensing, Llc | Simplified data input in electronic documents |
US20150046799A1 (en) * | 2013-08-07 | 2015-02-12 | Eustace Prince Isidore | Advanced Editing and Interfacing in User Applications |
US9507520B2 (en) * | 2013-12-16 | 2016-11-29 | Microsoft Technology Licensing, Llc | Touch-based reorganization of page element |
CN103761216B (zh) | 2013-12-24 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | 编辑文本的方法及移动终端 |
US9792272B2 (en) | 2013-12-31 | 2017-10-17 | Barnes & Noble College Booksellers, Llc | Deleting annotations of paginated digital content |
KR101652446B1 (ko) * | 2014-09-16 | 2016-08-30 | 엘지전자 주식회사 | 이동 단말기 및 그 제어 방법 |
US10534502B1 (en) * | 2015-02-18 | 2020-01-14 | David Graham Boyers | Methods and graphical user interfaces for positioning the cursor and selecting text on computing devices with touch-sensitive displays |
US9639184B2 (en) * | 2015-03-19 | 2017-05-02 | Apple Inc. | Touch input cursor manipulation |
US10019425B2 (en) * | 2015-04-03 | 2018-07-10 | Qualcomm Incorporated | Enhancement to text selection controls |
CN106168905A (zh) | 2016-07-21 | 2016-11-30 | 北京奇虎科技有限公司 | 一种移动终端中的文本处理方法、装置和移动终端 |
CN106527884A (zh) * | 2016-09-29 | 2017-03-22 | 维沃移动通信有限公司 | 一种目标对象的处理方法及移动终端 |
CN106681588A (zh) | 2016-12-27 | 2017-05-17 | 努比亚技术有限公司 | 一种字符处理方法、装置及终端 |
CN106919307B (zh) * | 2017-03-09 | 2018-12-04 | 维沃移动通信有限公司 | 一种文本复制方法及移动终端 |
US20180329622A1 (en) * | 2017-05-12 | 2018-11-15 | Apple Inc. | Portable Computing Input Devices and Methods |
-
2017
- 2017-12-21 CN CN201711395063.1A patent/CN107967093B/zh active Active
-
2018
- 2018-12-18 EP EP18890322.3A patent/EP3734430B1/en active Active
- 2018-12-18 WO PCT/CN2018/121745 patent/WO2019120191A1/zh unknown
- 2018-12-18 ES ES18890322T patent/ES2975210T3/es active Active
- 2018-12-18 US US16/956,506 patent/US11829580B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034411A (zh) * | 2011-10-09 | 2013-04-10 | 中国移动通信集团公司 | 针对触摸屏的文本选择方法和装置 |
CN104375980A (zh) * | 2014-11-18 | 2015-02-25 | 小米科技有限责任公司 | 文本内容选择方法及装置 |
CN107247698A (zh) * | 2017-05-15 | 2017-10-13 | 捷开通讯(深圳)有限公司 | 一种文本编辑的方法、移动终端和具有存储功能的装置 |
CN107967093A (zh) * | 2017-12-21 | 2018-04-27 | 维沃移动通信有限公司 | 一种多段文本复制方法及移动终端 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3734430A4 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010251A (zh) * | 2021-03-19 | 2021-06-22 | 维沃移动通信有限公司 | 信息处理方法、装置和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
US11829580B2 (en) | 2023-11-28 |
EP3734430A1 (en) | 2020-11-04 |
CN107967093A (zh) | 2018-04-27 |
US20210011590A1 (en) | 2021-01-14 |
EP3734430B1 (en) | 2024-03-13 |
ES2975210T3 (es) | 2024-07-04 |
EP3734430A4 (en) | 2021-04-21 |
CN107967093B (zh) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019120191A1 (zh) | 多段文本复制方法及移动终端 | |
WO2021104365A1 (zh) | 对象分享方法及电子设备 | |
WO2019120192A1 (zh) | 文本编辑方法及移动终端 | |
CN110798397B (zh) | 文件发送方法、装置和电子设备 | |
CN107943390B (zh) | 一种文字复制方法及移动终端 | |
WO2020258929A1 (zh) | 文件夹界面切换方法及终端设备 | |
CN110909524B (zh) | 一种编辑方法及电子设备 | |
WO2020215949A1 (zh) | 对象处理方法及终端设备 | |
WO2020238938A1 (zh) | 信息输入方法及移动终端 | |
WO2021169954A1 (zh) | 搜索方法及电子设备 | |
WO2021129536A1 (zh) | 图标移动方法及电子设备 | |
WO2021004426A1 (zh) | 内容选择方法及终端 | |
CN111338530A (zh) | 应用程序图标的控制方法和电子设备 | |
WO2020181945A1 (zh) | 标识显示方法及终端设备 | |
WO2020238536A1 (zh) | 信息处理方法及终端设备 | |
WO2019096154A1 (zh) | 文本编辑方法及移动终端 | |
CN108228902B (zh) | 一种文件显示方法及移动终端 | |
CN108646960B (zh) | 一种文件处理方法及柔性屏终端 | |
WO2020024788A1 (zh) | 文字输入方法和终端 | |
WO2019076377A1 (zh) | 图像的查看方法及移动终端 | |
CN110442279B (zh) | 一种消息发送方法及移动终端 | |
CN110768804A (zh) | 一种群组创建方法及终端设备 | |
CN109271262B (zh) | 一种显示方法和终端 | |
WO2019120190A1 (zh) | 拨号方法及移动终端 | |
WO2021031844A1 (zh) | 图标显示方法及终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18890322 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2018890322 Country of ref document: EP Effective date: 20200721 |