CN106201293B - Text selection method and device and text processing method and device - Google Patents

Text selection method and device and text processing method and device Download PDF

Info

Publication number
CN106201293B
CN106201293B CN201510212024.8A CN201510212024A CN106201293B CN 106201293 B CN106201293 B CN 106201293B CN 201510212024 A CN201510212024 A CN 201510212024A CN 106201293 B CN106201293 B CN 106201293B
Authority
CN
China
Prior art keywords
text
touch point
touch
selection
display area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510212024.8A
Other languages
Chinese (zh)
Other versions
CN106201293A (en
Inventor
杜霁轩
马骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510212024.8A priority Critical patent/CN106201293B/en
Priority to PCT/CN2016/071981 priority patent/WO2016173306A1/en
Publication of CN106201293A publication Critical patent/CN106201293A/en
Application granted granted Critical
Publication of CN106201293B publication Critical patent/CN106201293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a text selection method and device and a text processing method and device. The text selection method comprises the following steps: when a terminal displays a text, detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal at present; if yes, in the period that at least one first touch point exists, if a plurality of touch points are detected in the current text display area, determining two touch points from the plurality of touch points to be respectively used as a first selection touch point and a second selection touch point; selecting corresponding text contents according to the position information of the first selection touch point and the second selection touch point in the text display area; the text selection method can solve the technical problems that the text content selected by the existing text selection method is relatively complicated in user operation and poor in user experience.

Description

Text selection method and device and text processing method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a text selection method and device and a text processing method and device.
Background
At present, in a touch screen device, a user often performs a text operation through a single-point touch operation. In a text page displayed by a touch screen device, if a user needs to select and copy a large amount of text content, the user often faces cumbersome operations. The existing text selection and copy technology usually triggers two cursors which respectively represent a segment head and a segment tail by long pressing and the like, and a user needs to respectively move the two cursors to determine a selected text range and then select copy and other operations through a secondary menu. Meanwhile, if the discrete multiple sections of characters are selected simultaneously, the characters can be selected, copied and pasted one by one, the operation is complex, and the method depends on single-point touch.
It can be seen that the user operation is complicated and the user experience is poor when the text content is selected by adopting the existing text selection method.
Disclosure of Invention
The invention provides a text selection method and device, and a text processing method and device, and aims to solve the technical problems that the operation of a user is complicated and the user experience is poor when the text content is selected by adopting the conventional text selection method.
In order to solve the technical problem, the invention provides a text selection method, which comprises the following steps:
when a terminal displays a text, detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal at present;
if yes, in the period that at least one first touch point exists, if a plurality of touch points are detected in the current text display area, determining two touch points from the plurality of touch points to be respectively used as a first selection touch point and a second selection touch point;
and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
Further, when two touch points are detected to be currently in the text display area, the step of determining two touch points from the multiple touch points as a first selection touch point and a second selection touch point respectively comprises the step of determining two touch points from the multiple touch points as a first selection touch point and a second selection touch point respectively when two touch points are detected to be currently in the text display area.
Further, the two touch points include: two first touch points, or one first touch point and one additional second touch point.
Further, when it is detected that there are at least three touch points in the text display area, the step of determining two touch points from the plurality of touch points as a first selected touch point and a second selected touch point respectively includes:
and determining two touch points from the at least three touch points according to a text content selection maximum principle to be respectively used as a first selection touch point and a second selection touch point.
Further, the two touch points include: two first touch points, or one first touch point and one additional second touch point, or two additional second touch points.
Further, the step of selecting the corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area includes:
acquiring position information of the first selection touch point and the second selection touch point in the text display area respectively;
acquiring the position relation of the first selected touch point and the second selected touch point in the text display area according to the position information of the first selected touch point and the second selected touch point;
and selecting corresponding text content according to the position relation.
Further, the method further comprises:
when all the first touch points disappear in the period of existence of at least one newly added touch point, if a plurality of touch points are detected in the text display area, determining two touch points from the plurality of touch points as a first selected touch point and a second selected touch point;
and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
Also, in order to solve the above technical problem, the present invention further provides a text processing method, including the steps of:
selecting text content by using the text selection method;
when all touch points disappear, extracting selected text content;
and processing the extracted text content.
Further, the step of processing the extracted text content comprises:
and copying the extracted text content and storing the copied text content.
Also, in order to solve the above technical problem, the present invention further provides a text selecting apparatus, including: the device comprises a detection module and a selection module;
the detection module is used for detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal when the terminal displays a text;
and the selecting module is used for determining two touch points from the multiple touch points as a first selected touch point and a second selected touch point respectively if the multiple touch points are detected in the current text display area in the period that at least one first touch point exists, and selecting corresponding text contents according to the position information of the first selected touch point and the second selected touch point in the text display area.
Further, the selecting module is configured to, when two touch points are detected in the current text display area, directly take the two touch points as a first selected touch point and a second selected touch point, respectively.
Further, the selecting module is configured to, when it is detected that there are at least three touch points in the current text display area, determine two touch points from the at least three touch points as a first selected touch point and a second selected touch point respectively according to a text content selection maximum principle.
Also, in order to solve the above technical problem, the present invention provides a text processing apparatus, including: the text selection device, the extraction module and the processing module are any one of the above devices;
the extraction module is used for extracting the text content selected by the text selection device when all the touch points disappear;
and the processing module is used for processing the text content extracted by the extraction module.
The invention has the beneficial effects that:
the invention provides a text selection method and a text selection device, and a text processing method and a text processing device, wherein the text selection method comprises the following steps: when a terminal displays a text, detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal at present; if yes, in the period that at least one first touch point exists, if a plurality of touch points are detected in the current text display area, determining two touch points from the plurality of touch points to be respectively used as a first selection touch point and a second selection touch point; selecting corresponding text contents according to the position information of the first selection touch point and the second selection touch point in the text display area; the text selection method of the invention depends on the multi-point touch technology, can support users to carry on the multi-point touch operation, can make users adopt a touch operation to choose the necessary text content after triggering and choosing the text; compared with the prior art, the text selection method simplifies the user operation of text content selection, improves the efficiency of text content selection and improves the user experience.
Drawings
Fig. 1 is a schematic flowchart of a text selection method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a text processing method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a copied text content according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of another copied text content according to the second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a text selection apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a text processing apparatus according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The first embodiment is as follows:
in view of the technical problems of complicated user operation and poor user experience in selecting text content by using the current text selection method, the embodiment provides a text selection method, as shown in fig. 1, including the following steps:
step 101: when a terminal displays a text, detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal at present; if yes, go to step 102, and if not, go to step 104.
Specifically, the step may include:
when a terminal displays a text, detecting that a plurality of first touch points exist on a touch screen of the terminal at present;
acquiring position information of a plurality of first touch points on the touch screen and position information of a text display area of a current terminal on the touch screen; for example, coordinate information of a first touch point on the touch screen and coordinate information of a text display area on the touch screen are obtained;
judging whether a plurality of first touch points are in the text display area according to the position information of the first touch points and the position information of the text display area,
and if so, judging that a plurality of first touch points are positioned in the text display area of the terminal.
In this embodiment, when it is detected that there are a plurality of first touch points located in a text display area of the terminal on a touch screen of the terminal, the terminal is triggered to execute a text selection function, that is, the terminal enters a text selection mode.
In this embodiment, the touch point may be formed by clicking or pressing the touch screen.
Step 102: and in the period that at least one first touch point exists, if a plurality of touch points are detected in the text display area currently, determining two touch points from the plurality of touch points as a first selection touch point and a second selection touch point respectively.
The step is that the text content selecting process is carried out after the user triggers the terminal to execute the text selecting function. In this embodiment, the first selection touch point and the second selection touch point may be in a text display area displaying the same page, or may be in a text display area implementing a plurality of different pages.
Specifically, when two touch points are detected in the text display area, the determining, in this step, two touch points from the multiple touch points as a first selection touch point and a second selection touch point respectively may include:
and directly taking the two touch points as a first selected touch point and a second selected touch point respectively.
In practical applications, the two touch points in the current text display area in this embodiment may include: two first touch points, or one first touch point and one second touch point.
For example, a user forms two touch points A and B in a text display area by clicking or pressing a touch screen to trigger the terminal to enter a text selection mode; the touch point A and the touch point B are respectively located at the starting end and the ending end of the text content to be selected, at the moment, the terminal can detect that two touch points exist on the touch screen, then the terminal takes the touch point A as a first selection touch point, and the touch point B as a second selection touch point.
For another example, a user forms three touch points a, B and C in the text display area by clicking the touch screen to trigger the terminal to enter a text selection mode;
then, if the user cancels the touch point C, the touch point a and the touch point B are respectively moved to two ends of the text content to be selected, for example, the touch point a is moved to the start end of the text content to be selected, and the touch point B is moved to the end of the text content to be selected; at the moment, the terminal detects that two touch points exist on the touch screen, then the terminal takes the touch point A as a first selection touch point, and takes the touch point B as a second selection touch point.
When it is detected that there are at least three touch points in the text display area, the determining, in this step, two touch points from the multiple touch points as a first selected touch point and a second selected touch point may include:
and determining two touch points from the at least three touch points according to a text content selection maximum principle to be respectively used as a first selection touch point and a second selection touch point.
The most text content selection principle in this embodiment refers to: more text content between two selected touch points is selected than between any other two touch points.
In practical application, the text content between two touch points can be determined to be the most according to the position information of each touch point on the touch screen; for example, coordinates (X, Y) of each touch point on the touch screen can be obtained, then touch points with the maximum and minimum Y values are selected, if one touch point with the maximum Y value exists and one touch point with the minimum Y value exists, at this time, the two touch points with the maximum and minimum Y values can be respectively used as a first selection touch point and a second selection touch point; if there are a plurality of touch points with the maximum Y value and/or a plurality of touch points with the minimum Y value, at this time, it is necessary to compare the X values of the touch points with the maximum Y value and/or the X values of the touch points with the minimum Y value, determine a first selected touch point from the touch points with the maximum Y value according to the comparison result, and determine a second selected touch point from the touch points with the minimum Y value according to the comparison result.
In addition, in practical application, it can also be determined from the position information of each touch point in the text, which two touch points have the most text content therebetween. For example, when displaying plain text content, the number of lines of each touch point in the text content and the character position of the line where each touch point is located are obtained, and then the text content between which two touch points is the most is determined according to the number of lines of each touch point in the text content and the character position of the line where each touch point is located.
It should be understood that the present embodiment may also adopt other ways to implement the text content selection principle, i.e. determine which text content between two touch points is the most.
In this embodiment, the two touch points determined from the at least three touch points may include: two first touch points, or one first touch point and one additional second touch point, or two additional second touch points.
1. Two newly-added second touch points, for example, a user forms two touch points A and B in the text display area by clicking or pressing the touch screen to trigger the terminal to enter a text selection mode; at the moment, the text content between the touch point A and the touch point B is not the content which the user wants to select; and then, the user keeps the touch point A unchanged, cancels the touch point B, and adds touch points D and E on the touch screen, wherein the touch points D and E are respectively positioned at two ends of the text content to be selected, and the text content between the touch points D and E is the largest, at this time, the terminal detects that the touch point A, D, E exists in the text display area, and the touch points D and E are respectively used as a first selection touch point and a second selection touch point because the text content between the touch points D and E is the largest.
2. A first touch point and a newly added second touch point; for example, a user forms two touch points A and B in a text display area by clicking or pressing a touch screen to trigger the terminal to enter a text selection mode; at this time, the touch point A is located at the start end of the text content which the user wants to select, the touch point B is located in the middle of the text content which the user wants to select (the touch point B is not located at the end of the text content which the user wants to select), and then the user can keep the touch points A and B unchanged and add a touch point C at the end of the text content section which the user wants to select; at this time, the terminal detects that there are three touch points, and since the text content between the touch point a and the touch point C is the largest, the terminal takes the touch point a as a first selection touch point and the touch point C as a second selection touch point.
3. Two first touch points; for example, a user forms two touch points A and B in a text display area by clicking or pressing a touch screen to trigger the terminal to enter a text selection mode; the touch point A and the touch point B are respectively located at the starting end and the ending end of the text content to be selected, at the moment, the terminal can detect that two touch points exist on the touch screen, then the terminal takes the touch point A as a first selection touch point, and the touch point B as a second selection touch point.
For another example, a user forms three touch points a, B and C in the text display area by clicking or pressing the touch screen to trigger the terminal to enter a text selection mode; the touch point A is located at the start end of the text content to be selected, the touch point B is located at the middle position of the text content to be selected, and the touch point C is located at the end of the text content to be selected by the user; at this time, the user keeps A, B, C unchanged, and the terminal detects that there are three touch points in the text display area, and the text content between the touch moving touch point a and the touch moving touch point C is the largest, the terminal will use the touch point a as the first selection touch point, and use the touch point C as the second selection touch point.
Step 103: and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
Specifically, the step may include:
acquiring position information of the first selection touch point and the second selection touch point in the text display area respectively;
acquiring the position relation of the first selected touch point and the second selected touch point in the text display area according to the position information of the first selected touch point and the second selected touch point;
and selecting corresponding text content according to the position relation.
For example, after determining that the touch point a is a first selected touch point and the touch point B is a second selected touch point, obtaining a coordinate La of the touch point a in the text display area and a coordinate Lb of the touch point B in the text display area, then calculating a position relationship between the touch points a and B in the text display area according to La and Lb, and finally selecting corresponding text content according to the position relationship, for example, selecting all text content between the touch points a and B.
Preferably, in this embodiment, a text selection box is established according to the position relationship between the first selection touch point and the second selection touch point, and all text contents in the text selection box are selected.
In this embodiment, the corresponding text content is selected according to the position relationship, and all or part of the text content between the first selected touch point and the second selected touch point may be selected.
Step 104: no treatment is done.
The text selection method of the embodiment depends on a multi-point touch technology, and can support a user to perform multi-point touch operation to select text contents; after the selected text is triggered, the user can select the required text content by one touch operation; compared with the prior art, the text selection method simplifies the user operation of text content selection, improves the efficiency of text content selection and improves the user experience.
The following describes the text content selection process by taking three touch points as an example
For example, a user forms two touch points a and B in a text display area by clicking a touch screen;
the user respectively or simultaneously slides the touch points A and B in the text display area to select the required text content;
or, the user keeps the touch point A unchanged, and slides the touch point B to select the required text content;
or, the user keeps the touch point a unchanged, cancels the touch point B, and then adds a new touch point C or E to select the desired text content.
For another example, a user forms three touch points a, B and C in the text display area by clicking the touch screen;
the user keeps the touch point A, B unchanged, selects the text content by sliding the touch point C, at this time, the terminal determines the touch point A, C as a first selected touch point and a second selected touch point according to the text selection maximum principle, and then selects the corresponding text content according to the position information of the touch point A, C in the text display area, for example, selects all the text contents between the touch points a and C;
or, the user keeps the touch points a and B unchanged, cancels the touch point C, and adds a new touch point D to select text content, at this time, the terminal determines the touch point A, D as a first selected touch point and a second selected touch point according to the text selection maximum principle, and then selects corresponding text content according to the position information of the touch point A, D in the text display area, for example, selects all text content between the touch points a and D;
or, the user keeps the touch point a unchanged, cancels the touch points B and C, and adds new touch points D and E to select text content, at this time, the terminal determines the touch point D, E as a first selected touch point and a second selected touch point according to the text selection maximum principle, and then selects corresponding text content according to the position information of the touch point D, E in the text display area, for example, selects all text content between the touch points D and E.
In order to further facilitate the user to select the text to improve the user experience, the method of this embodiment further includes, on the basis of the foregoing:
when all the first touch points disappear in the period of existence of at least one newly added touch point, if a plurality of touch points are detected in the text display area, determining two touch points from the plurality of touch points as a first selected touch point and a second selected touch point;
and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
In the method of the embodiment, when at least one newly added touch point exists in a period and all the first touch points disappear, for example, the terminal detects that at least one newly added touch point exists and the user removes all the presses forming the first touch points, the terminal detects whether a plurality of touch points exist in the text display area in the period in which at least one newly added touch point exists, if so, determines two touch points from the plurality of touch points as a first selected touch point and a second selected touch point, and selects corresponding text content according to position information of the first selected touch point and the second selected touch point in the text display area.
Similarly, in the embodiment, when at least one newly added touch point exists and all the first touch points disappear, if two touch points are detected, the two touch points are directly used as a first selected touch point and a second selected touch point;
and if at least three touch points are detected, determining two touch points from the at least three touch points as a first selection touch point and a second selection touch point respectively according to the text content selection maximum principle.
In the period when at least one new touch point exists and all the first touch points disappear, the determining two touch points from the plurality of touch points in this embodiment may include: two newly added third touch points, or one newly added third touch point and one previously newly added second touch point, or two previously newly added second touch points.
In the period that at least one newly added touch point exists and all the first touch points disappear, the embodiment may determine two touch points from the at least three touch points as the first selected touch point and the second selected touch point respectively according to the principle that text content is selected most. Reference may be made in particular to the above description of the most principle of text content selection.
The following describes the text content selection process by taking three touch points as an example
For example, a user forms three touch points a, B and C in a text display area by clicking a touch screen;
at this time, the touch point A is positioned at the starting end of the text content which the user wants to select, the touch point B is positioned in the middle of the text content which the user wants to select, and the touch point C is positioned at the ending end of the text content which the user wants to select; at the moment, the terminal detects three touch points, and because the text content between the touch point A and the touch point C is the largest, the terminal takes the touch point A as a first selection touch point and takes the touch point C as a second selection touch point; then selecting the text content between the touch points A and C; then, the user may add a touch point D at the start of the text content that is desired to be selected again, keep the touch point D unchanged, and cancel the touch point A, C; and adding a touch point E at the end of the text content to be selected again to select the required text content, wherein the terminal detects two touch points, directly takes the touch point D and the touch point E as a first selection touch point and a second selection touch point respectively, and selects the text content between the touch point D and the touch point E.
For another example, the touch point a is located at the beginning of the text content that the user wants to select, and the touch points B and C are located in the middle of the text content that the user wants to select; the user can keep the touch point A unchanged, a new touch point D is added at the end of the text content which the user wants to select, and the terminal takes the touch point A as a first selection touch point and the touch point D as a second selection touch point because the text content between the touch point A and the touch point D is the largest; then selecting the text content between the touch points A and D; then, the user can keep the touch point D unchanged, cancel the touch point A, and add a touch point E and a touch point F to the start end and the end of the text content which needs to be selected again, and since the text content between the touch point E and the touch point F is the largest, the terminal will use the touch point 2 as a first selection touch point and the touch point F as a second selection touch point; the text content between touch points E and F is then selected.
According to the method, after the first touch point disappears, the user can continue to select the required content by adopting multi-point touch operation, the text selection mode does not need to be triggered again, and the text selection efficiency and the user experience are improved.
Example two:
as shown in fig. 2, the present embodiment provides a text processing method, including the following steps:
step 201: the text content is selected by using the text selection method described in the first embodiment.
For example, selecting the text content between two first touch points, or selecting the text content between a first touch point and a newly added second touch point, etc.
Step 202: and when all the touch points disappear, extracting the selected text content.
For example, the selected text is extracted when all of the first touch points and the second touch points disappear, or the selected text is extracted when all of the first touch points, the second touch points, and the third touch points disappear.
Specifically, in this embodiment, if no newly added touch point is detected within a predetermined time after all touch points disappear, the selected text content may be extracted.
Step 203: and processing the extracted text content.
Specifically, the extracted text content is copied and the copied text content is stored. Of course, other operations may be performed on the extracted text content.
The processing method of this embodiment is described below by taking text selection and copying as an example:
as shown in fig. 3, there is a text display area S300 in the current screen, and the user needs to copy the character string "BBB … … B" in the whole text, i.e. all B;
the first step is as follows: as shown in fig. 3, the terminal detects that a plurality of touch points exist simultaneously in the current screen, wherein a touch point a is at a position S301 and a touch point B is at a position S302;
the second step is that: the terminal judges whether the two touch points are in the text display area, if so, the next step is executed;
the third step: as shown in fig. 3, the user operates on the screen to slide the touch point a and the touch point B on the screen, respectively, slide the touch point a to S303, and slide the touch point B to S304; at the moment, in the period that the touch point A or B exists, the terminal detects that the touch point A and the touch point B exist in the text display area;
at this time, only two touch points are in the text display area, and the terminal directly takes the touch point A as a first selection touch point and takes the touch point B as a second selection touch point. At this time, touch point a is located at the beginning of the character string to be selected, and touch point B is located at the end of the character string to be selected.
The fourth step: the terminal acquires coordinates LA and LB of the touch points A and B in the text display area respectively.
The fifth step: and the terminal calculates coordinates LA and LB to obtain the position relation of the touch points A and B in the text display area.
And a sixth step: all the text contents between the touch points a and B, i.e., all the characters B, are marked according to the positional relationship.
The seventh step: after touch point a and touch point B disappear, the terminal extracts and copies the marked character string "BBB … … B" and saves it in the cache.
The text processing method of the present embodiment is specifically described below with reference to fig. 4:
a text display area S400 exists in the current screen, and a user needs to copy character strings in the whole text;
the first step is as follows: as shown in fig. 4, the terminal detects that there are multiple touch points simultaneously in the current screen, where contact a is at position S401 and contact B is at position S402; the terminal marker touch point a coordinates La, and the touch point B first occurrence coordinates Lb 1.
The second step is as follows: keeping touch point a unchanged at position S401, the user may make touch point B change constantly at positions S503, S504, S505, etc. in the text display area in order to select the desired text content; the terminal records the coordinate Lbn of the point B appearing at the text area position S505 for the last time, and marks all texts between the coordinate La and the coordinate Lbn;
the third step: when the touch points A and B disappear from the touch screen, the terminal extracts all texts between La and Lbn, copies the texts and stores the texts in a cache.
Example three:
as shown in fig. 5, the present embodiment provides a text selecting apparatus, including: the device comprises a detection module and a selection module;
the detection module is used for detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal when the terminal displays a text;
and the selecting module is used for determining two touch points from the multiple touch points as a first selected touch point and a second selected touch point respectively if the multiple touch points are detected in the current text display area in the period that at least one first touch point exists, and selecting corresponding text contents according to the position information of the first selected touch point and the second selected touch point in the text display area.
Preferably, the selecting module is configured to, when two touch points are detected in the current text display area, directly take the two touch points as a first selected touch point and a second selected touch point, respectively.
Preferably, the selecting module is configured to determine, according to a maximum text content selection principle, two touch points from the at least three touch points as a first selected touch point and a second selected touch point, when it is detected that there are at least three touch points in the current text display area.
As shown in fig. 6, the present embodiment also provides a text processing apparatus, including: the text selection device, the extraction module and the processing module are used for selecting the text;
the extraction module is used for extracting the text content selected by the text selection device when all the touch points disappear;
and the processing module is used for processing the text content extracted by the extraction module.
The text selection device of the embodiment depends on a multi-touch technology, and can support a user to perform multi-touch operation to select the required text content; by applying the text selection device of the embodiment, a user can select the required text content by one touch operation; the text selection device of the embodiment can simplify user operation for text content selection, improve text content selection efficiency and improve user experience.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (8)

1. A text selection method is characterized by comprising the following steps:
when a terminal displays a text, detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal at present;
if yes, determining two touch points from the at least three touch points as a first selection touch point and a second selection touch point respectively according to a text content selection maximum principle when at least three touch points are detected in the current text display area in the period that at least one first touch point exists;
and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
2. The text selection method of claim 1, wherein the two touch points comprise: two first touch points, or one first touch point and one additional second touch point, or two additional second touch points.
3. The text selection method according to claim 1 or 2, wherein the step of selecting the corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area comprises:
acquiring position information of the first selection touch point and the second selection touch point in the text display area respectively;
acquiring the position relation of the first selected touch point and the second selected touch point in the text display area according to the position information of the first selected touch point and the second selected touch point;
and selecting corresponding text content according to the position relation.
4. A text selection method according to claim 1 or 2, further comprising:
when all the first touch points disappear in the period of existence of at least one newly added touch point, if a plurality of touch points are detected in the text display area, determining two touch points from the plurality of touch points as a first selected touch point and a second selected touch point;
and selecting corresponding text content according to the position information of the first selection touch point and the second selection touch point in the text display area.
5. A text processing method, comprising the steps of:
selecting text content by using the text selection method according to any one of claims 1 to 4;
when all touch points disappear, extracting selected text content;
and processing the extracted text content.
6. The method of claim 5, wherein the step of processing the extracted textual content comprises:
and copying the extracted text content and storing the copied text content.
7. A text selection apparatus, comprising: the device comprises a detection module and a selection module;
the detection module is used for detecting whether a plurality of first touch points located in a text display area of the terminal exist on a touch screen of the terminal when the terminal displays a text;
the selecting module is configured to determine two touch points from the at least three touch points as a first selected touch point and a second selected touch point respectively according to a principle that text content is most selected when at least three touch points are detected in the current text display area during a period in which at least one first touch point exists, and select corresponding text content according to position information of the first selected touch point and the second selected touch point in the text display area.
8. A text processing apparatus, comprising: the extraction module, the processing module and the text selection device of claim 7;
the extraction module is used for extracting the text content selected by the text selection device when all the touch points disappear;
and the processing module is used for processing the text content extracted by the extraction module.
CN201510212024.8A 2015-04-29 2015-04-29 Text selection method and device and text processing method and device Active CN106201293B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510212024.8A CN106201293B (en) 2015-04-29 2015-04-29 Text selection method and device and text processing method and device
PCT/CN2016/071981 WO2016173306A1 (en) 2015-04-29 2016-01-25 Text selection method and device, and text processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510212024.8A CN106201293B (en) 2015-04-29 2015-04-29 Text selection method and device and text processing method and device

Publications (2)

Publication Number Publication Date
CN106201293A CN106201293A (en) 2016-12-07
CN106201293B true CN106201293B (en) 2020-06-26

Family

ID=57198140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510212024.8A Active CN106201293B (en) 2015-04-29 2015-04-29 Text selection method and device and text processing method and device

Country Status (2)

Country Link
CN (1) CN106201293B (en)
WO (1) WO2016173306A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404583A (en) * 2017-07-30 2017-11-28 安徽云帮邦网络技术有限公司 A kind of reproducer of mobile phone text
WO2019056388A1 (en) * 2017-09-25 2019-03-28 深圳市云中飞网络科技有限公司 Content selection method, electronic device, storage medium and computer program product
CN110096200B (en) * 2019-04-09 2020-12-22 网易(杭州)网络有限公司 Text processing method and device, storage medium and electronic equipment
CN110865751A (en) * 2019-10-09 2020-03-06 上海掌门科技有限公司 Content selection method and electronic equipment
CN111813295A (en) * 2020-05-26 2020-10-23 维沃移动通信有限公司 Content selection method and device, electronic equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536690A (en) * 2010-01-06 2015-04-22 苹果公司 Electronic device, method, and apparatus for manipulating tables using multi-contact gestures

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8873858B2 (en) * 2006-06-29 2014-10-28 Rpx Corporation Apparatus, method, device and computer program product providing enhanced text copy capability with touch input display
US8650507B2 (en) * 2008-03-04 2014-02-11 Apple Inc. Selecting of text using gestures
US8294680B2 (en) * 2009-03-27 2012-10-23 Sony Mobile Communications Ab System and method for touch-based text entry
CN102033642B (en) * 2009-09-29 2012-10-10 联想(北京)有限公司 Method for gesture reorganization and electronic device
KR101838260B1 (en) * 2011-06-03 2018-03-13 구글 엘엘씨 Gestures for selecting text
US9292192B2 (en) * 2012-04-30 2016-03-22 Blackberry Limited Method and apparatus for text selection
CN103186345B (en) * 2013-02-25 2016-09-14 北京极兴莱博信息科技有限公司 The section system of selection of a kind of literary composition and device
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536690A (en) * 2010-01-06 2015-04-22 苹果公司 Electronic device, method, and apparatus for manipulating tables using multi-contact gestures

Also Published As

Publication number Publication date
CN106201293A (en) 2016-12-07
WO2016173306A1 (en) 2016-11-03

Similar Documents

Publication Publication Date Title
CN106201293B (en) Text selection method and device and text processing method and device
CN104756060B (en) Cursor control based on gesture
US10909308B2 (en) Information processing apparatus, information processing method, and program
US10185488B2 (en) Device and method for displaying information
CN106484266A (en) A kind of text handling method and device
EP2902897B1 (en) Word processing method and apparatus for touchscreen intelligent device
WO2016173305A1 (en) Text selection method and device, and text processing method and device
CN106325688A (en) Text processing method and device
US8954873B2 (en) Information processing apparatus, information processing method and computer readable medium
JP2013137614A (en) Information processing program, information processing device, information processing method, and information processing system
CN108803974A (en) A kind of page processing method, device and relevant device
WO2014154055A1 (en) Method, apparatus and terminal for selecting text
CN104007920A (en) Method for selecting waveforms on electronic test equipment
CN106383636A (en) Index information display method and apparatus
CN104182144A (en) Mobile terminal interface browsing method and system
JP2017515241A (en) Element deletion method and apparatus based on touch panel
CN104679408B (en) Data processing method and device
CN104679723B (en) A kind of control display methods, system and the device of text
CN106648339B (en) Window switching method and device
JP2016110604A (en) Page turning system and method
US9690464B2 (en) Terminal device and method for selecting object
CN104156145A (en) Text content selection method based on handwriting pen and portable terminal
CN110865751A (en) Content selection method and electronic equipment
US9454233B2 (en) Non-transitory computer readable medium
CN103513873B (en) Page display method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant