CN102681786B - Method and device for text selection - Google Patents

Method and device for text selection Download PDF

Info

Publication number
CN102681786B
CN102681786B CN201210149001.3A CN201210149001A CN102681786B CN 102681786 B CN102681786 B CN 102681786B CN 201210149001 A CN201210149001 A CN 201210149001A CN 102681786 B CN102681786 B CN 102681786B
Authority
CN
China
Prior art keywords
contact
trigger event
touch
text
starting mark
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.)
Expired - Fee Related
Application number
CN201210149001.3A
Other languages
Chinese (zh)
Other versions
CN102681786A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210149001.3A priority Critical patent/CN102681786B/en
Publication of CN102681786A publication Critical patent/CN102681786A/en
Application granted granted Critical
Publication of CN102681786B publication Critical patent/CN102681786B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and device for text selection and relates to the field of computer technologies. The method comprises the following steps of: detecting a first trigger event generated on a first contact, and displaying a starting point mark on the position of the first contact; detecting a second trigger event generated on the first contact, and acquiring the position of the starting point mark; switching the starting point mark into a terminating point mark; after a third trigger event generated on a third contact touched by a user at the terminating point mark is detected, detecting a sliding trace generated on a second contact touched by the user on a touch screen, and acquiring the sliding speed of the second contact, wherein the sliding speed of the second contact is used for adjusting the text page turning speed; detecting a fourth trigger event generated on the third contact, and acquiring the position of the terminating point mark according to the sliding speed of the second contact; and acquiring characters between the position of the starting point mark and the position of the terminating point mark. According to the method, the simplification of the operation of the text selection triggered by the user is realized, and the rapid and accurate location of the position of a terminating point is realized when the content of a selected text is relatively multiple.

Description

The method of text selecting and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and device of text selecting.
Background technology
The customer volume of mobile phone and panel computer increases gradually, and increasing people starts custom and browses the text messages such as webpage by mobile phone or flat board, so, user use mobile phone and dull and stereotyped in, often inevitably use copy, the operation such as shearing.
At present, in the operation that content of text is selected usually in the following way: grow after by screen and eject dialog box, and by selecting the corresponding button in dialog box to select to copy or shear, after selection concrete operations, screen shows the mark of starting point and terminal, user arranges the position of beginning or end by the mark dragging beginning or end, when selected content of text exceedes one page, post can be dragged to header or footer carries out page turning, after stopping touching post, select content of text to terminate.
But, in the process that prior art is selected at content of text, on the one hand, first need to select concrete operation, such as, copy or shear, need when selecting concrete operations to press screen, ejection dialog box and select button three phases by long, operating process is loaded down with trivial details consuming time, and Consumer's Experience is poor; On the other hand, when the content of text selected is multipage, post need be moved to header or footer carries out page turning, page-turning speed is the fixed value preset by system, if the setting of page-turning speed value is excessive, because page-turning speed is very fast, user is difficult to accurate location, if the setting of page-turning speed value is too small, when page turning quantity is larger, the time that page turning spends is longer, and the time causing user to wait for is longer, and Consumer's Experience is poor.
Summary of the invention
Embodiments of the invention provide a kind of method and device of text selecting, by the present invention can realize simplifying user trigger text selecting operation and when selected content of text is more, to realize fast, accurate locating endpoints position, raising Consumer's Experience.
For achieving the above object, the present invention adopts following technical scheme:
A method for text selecting, comprising:
Detect the first trigger event that the first contact of user's touch on touch-screen produces, the position of the first contact shows starting mark;
Detect the second trigger event produced on the first contact, obtain the position of starting mark;
Starting mark is switched to post;
After the 3rd contact generation the 3rd trigger event that user touches on post being detected, detect sliding trace that the second contact that user on touch-screen touches produces and obtain the sliding speed of the second contact, the sliding speed of the second contact is for adjusting the page-turning speed of text;
Detect the 4th trigger event produced on the 3rd contact, obtain the position of post according to the sliding speed of the second contact;
Obtain the word between the position of starting mark and the position of post.
A device for text selecting, comprising:
Display module, for detecting the first trigger event that the first contact that on touch-screen, user touches produces, the position of the first contact shows starting mark;
First acquisition module, for detecting the second trigger event produced on the first contact, obtains the position of starting mark;
Handover module, for switching to post by starting mark;
Second acquisition module, after the 3rd contact generation the 3rd trigger event that user touches on post being detected, detect sliding trace that the second contact that user on touch-screen touches produces and obtain the sliding speed of the second contact, the sliding speed of the second contact is for adjusting the page-turning speed of text;
3rd acquisition module, for detecting the 4th trigger event produced on the 3rd contact, obtains the position of post according to the sliding speed of the second contact;
4th acquisition module, for obtaining the word between the position of starting mark and the position of post.
In the method for text selecting provided by the invention and device, on the one hand, user produces the first trigger event on the first contact on the touchscreen by use finger or touch tool, thus starting mark is shown on the position of the first contact, the operation of text selecting is carried out with activated user, operation steps is comparatively succinct, and required time is shorter, enhances Consumer's Experience.On the other hand, in the present invention, user also carrys out the selection of trigger endpoint position by the 3rd trigger event using finger or touch tool to produce the 3rd contact on post, when selected content of text is more, user can also use another finger or touch tool to carry out page turning by the sliding screen operation of generation second contact, in page turn over operation, page-turning speed is controlled voluntarily by user completely, user is accurate locating endpoints position easily, when page turning quantity is larger, user can accelerate page-turning speed by the sliding speed accelerating the second contact, reduce period of reservation of number, the embodiment of the present invention is realizing in the process of text selecting by page turning, realize accurate locating endpoints position, and shorten the time of user's wait, strengthen Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow diagram of a kind of text selecting that Fig. 1 provides for the present embodiment 1;
Second method refinement process flow diagram of the step 102 that Fig. 2 provides for the present embodiment 1;
Fig. 3 produces sliding trace relative to the vertical range schematic diagram of touch-screen for the 4th contact that the present embodiment 1 provides;
The refinement process flow diagram of the step 23 that Fig. 4 provides for the present embodiment 1;
The refinement process flow diagram of the step 105 that Fig. 5 provides for the present embodiment 1;
The apparatus structure schematic diagram of a kind of text selecting that Fig. 6 provides for the present embodiment 2;
The apparatus structure schematic diagram of the another kind of text selecting that Fig. 7 provides for the present embodiment 2;
The structural representation of the first acquisition module that Fig. 8 provides for the present embodiment 2;
The structural representation of the 3rd acquisition module that Fig. 9 provides for the present embodiment 2.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
See Fig. 1, for present embodiments providing a kind of method of text selecting, the executive agent of the method is the terminal with touch-screen, and the concrete steps of the method are as follows:
101: detect the first trigger event that the first contact of user's touch on touch-screen produces, the position of the first contact shows starting mark.
In the present embodiment, starting mark is for indicating the start position of text selecting, and the first trigger event that above-mentioned first contact produces is the double-click event that the first contact produces.
Such as, when user uses finger or touch tool carry out double-clicking on the touch-screen viewing area of terminal and do not lift for second time (now, first contact can produce double-click event, but UP event can not be produced), terminal can obtain the double-click event that the first contact produces.
Concrete, starting mark can be triangle mark upwards or downward triangle mark, and its leg-of-mutton tip is used to indicate the concrete start position of selected text.
102: detect the second trigger event produced on the first contact, obtain the position of starting mark.
In the present embodiment, the second trigger event that above-mentioned first contact produces is the UP event that the first contact produces.
Such as, when user uses finger or touch tool carry out double-clicking on the touch-screen viewing area of terminal and lift for second time, the UP event that the first contact can produce.Here double-click is rear directly can lift when lifting for second time after double-clicking, and also temporarily can not lift for latter second time for double-clicking, lifting behind the first shift position, contact again.
103: starting mark is switched to post.
Wherein, post is for indicating the final position of text selecting, and post can be the triangle mark contrary with starting mark direction, and be used for distinguishing with starting mark, its leg-of-mutton tip is used to indicate the concrete final position of selected text.
104: after the 3rd contact generation the 3rd trigger event that user touches on post being detected, detect sliding trace that the second contact that user on touch-screen touches produces and obtain the sliding speed of the second contact, the sliding speed of the second contact is for adjusting the page-turning speed of text.
In the present embodiment, the 3rd trigger event that above-mentioned 3rd contact produces is the click event that the 3rd contact produces.
Such as, when user uses finger or touch tool to carry out clicking and not lifting on post (after clicking on post, the 3rd contact will be produced, and can click event be produced on the 3rd contact, but now can not produce UP event), terminal can obtain the click event of the 3rd contact produced on post.
Afterwards, when user use other finger or touch tool carry out on the touchscreen touch slide time (touch start can produce the second contact, the sliding trace of the second contact can be obtained after the second enterprising line slip in contact), terminal can obtain the sliding trace of the second contact.
105: during the 4th trigger event that detection user produces on the 3rd contact, the position of post is obtained according to the sliding speed of the second contact.
In the present embodiment, the 4th trigger event that above-mentioned 3rd contact produces is the UP event that the 3rd contact produces.
Such as, after user uses finger or touch tool is clicked on post, and when lifting, terminal can obtain the UP event of the 3rd contact.
106: obtain the word between the position of starting mark and the position of post.
Concrete, after start position and final position are all determined, the word between starting mark and post or the color change of character background, in order to distinguish with other unselected texts.
In the method for the text selecting that the present embodiment provides, on the one hand, user double-clicks on the touchscreen by using finger or touch tool, to produce the double-click event on the first contact, thus starting mark is shown on the position of the first contact, the operation of text selecting is carried out with activated user, long pressing is needed with user in prior art, the option copying or shear is selected from the dialog box ejected, the starting mark that text selecting is carried out in display is afterwards compared, by double-clicking the operation can carrying out text selecting in the present invention, required step is more succinct, required time is shorter, save user time, enhance Consumer's Experience.On the other hand, in the present embodiment, user also carrys out the selection of trigger endpoint position by the click event using finger or touch tool to produce the 3rd contact on post, when selected content of text is more, user can also use another finger or touch tool to carry out page turning by sliding screen, in page turn over operation, page-turning speed is controlled voluntarily by user completely, user is accurate locating endpoints position easily, when page turning quantity is larger, user can accelerate page-turning speed by the sliding speed accelerating the second contact, with more difficult accurate location when carrying out page turning in prior art, when page turning quantity is larger, period of reservation of number is appearance ratio comparatively, the embodiment of the present invention is realizing in the process of text selecting by page turning, realize accurate locating endpoints position, and shorten the time of user's wait, strengthen Consumer's Experience.
Further, in above-mentioned steps 102, detect the second trigger event produced on the first contact, obtain the position of starting mark, following three kinds of implementations can be adopted:
It should be noted that, before above-mentioned steps 102, also comprise the steps:
Detect header or footer that whether the first contact moves to current page.
When detecting that the first contact does not move to header or the footer of current page, according to mode one and mode two have obtained the position of point identification below.
When detecting that the first contact has moved to header or the footer of current page, obtain the position of point identification according to mode three below.
Mode one,
Detect the second trigger event produced on described first contact, directly obtain the position of position as starting mark of the first contact.
Be specially: detect the UP event produced on the first contact, directly obtain the position of position as starting mark of the first contact.
Such as, when user uses finger or touch tool after touch-screen viewing area is double-clicked, when lifting immediately for second time, terminal obtains the position of the first contact.
And for example, do not lift for second time after user uses finger or touch tool carries out double-click on the touchscreen, and drag when lifting after starting mark moves on the text of current display again, terminal obtains the first contact position.
In the present embodiment, position during the first contact generation UP event is represented by coordinate, the initial point that this coordinate is corresponding be user use finger or touch tool trigger first contact produce double-click event time the first contact position, the position of any point on touch-screen all can adopt and represent relative to the coordinate of this initial point.If user performs after using finger or touch tool to double-click on the touchscreen and lifts immediately, then the first contact position is above-mentioned origin position.If user uses finger or touch tool to carry out double-click on the touchscreen and do not lift for latter second time, and drag when lifting after starting mark moves on the text of current display, so the first contact position is the coordinate position relative to above-mentioned initial point again.
The position when position of above-mentioned starting mark produces UP event by the first contact and now the first place, the contact line number of line position in whole text are determined.The line number of line position in text at this place, the first contact directly can get with reference to prior art.
Method two,
As shown in Figure 2, method two specifically comprises the steps:
21: the sliding trace detecting the 4th contact that user touches on the touchscreen, obtain the sliding speed of the 4th contact.
First, detect the sliding trace that the 4th contact that user on touch-screen touches produces, obtain the 4th contact and produce time of sliding trace and the sliding trace vertical range relative to touch-screen.
Wherein, the time obtaining the 4th contact generation sliding trace is specially: when the 4th contact of user's touch on touch-screen being detected, terminal starts timing, until stop timing when detecting that the 4th contact that on touch-screen, user touches frames out, this period is the time that the 4th contact produces sliding trace.
Such as, when the finger that user uses or touch tool are left from starting mark, and user use other finger or the touch tool optional position on the touchscreen except the first contact carry out slip touch time, when user starts to carry out slip touch, terminal detects the 4th contact, start timing, until stop timing when detecting and leave from the 4th contact after the finger of user or touch tool are slided, this period is the time S that the 4th contact produces sliding trace, can be expressed as S millisecond.
Wherein, obtain the 4th contact generation sliding trace to be specially relative to the vertical range of touch-screen: sliding trace is the distance that sliding trace projects on the frame parallel with page turning direction relative to the vertical range of touch-screen, touch-screen viewing area such as shown in Fig. 3, the direction of arrow shown in figure is the direction that text carries out page turning, line segment between A point and B is the sliding trace of the 4th contact, the distance of line segment A ' B ' that then line segment AB projects on Right Border is the vertical range of sliding trace relative to touch-screen, it should be noted that, this figure just schematically, page turning direction can also be downwards, to the left or to the right.
Such as, when user uses finger or touch tool to keep touching on starting mark, and when using other finger or touch tool to lift after sliding in the optional position of touch-screen, the sliding trace L of the 4th contact detected, L pixel can be expressed as.
Then, sliding trace is produced divided by the 4th contact the sliding speed that time of sliding trace obtains the 4th contact relative to the vertical range of touch-screen, and the sliding speed of the 4th contact is for adjusting the page-turning speed of text.
Wherein, the sliding speed of the 4th contact can be expressed as V=L/S (pixel/millisecond).
In the present embodiment, the page-turning speed of above-mentioned sliding speed adjustment text is specially: using the sliding speed of above-mentioned 4th contact as initial value, text page-turning speed time per unit at the uniform velocity successively decreases, until sliding speed is decremented to 0, text stops page turning; Such as:
Sliding speed every millisecond is successively decreased A pixel/millisecond, then the page-turning speed of text and the pass of time are: V1=V-At, and when sliding speed is decremented to 0, text stops page turning, and wherein, t is the time of text page turning.
22: control text according to the sliding speed of the 4th contact and carry out page turning.
It should be noted that, terminal also carrys out display page page turning according to the sliding speed of the 4th contact, so that user's viewing.
23: detect the second trigger event produced on the first contact, the position of starting mark is obtained according to the sliding speed of the 4th contact.
Concrete, as shown in Figure 4, this step 23 specifically comprises:
23S1: detect the second trigger event produced on the first contact, obtain the position of the first contact.
Such as, when the finger of user or touch tool are lifted in terminal mark, terminal obtains the UP event of the first contact, and namely the position of the first contact is the position of user when using finger or touch tool to lift on starting mark.
23S2: after obtaining the sliding screen operation of execution according to the sliding speed of the 4th contact, the first trip of the first place, contact page is arranged in the line number of whole text.
Concrete, the line number being arranged in whole text according to the first trip of rear first place, the contact page of sliding speed acquisition execution sliding screen operation can calculate according to scheme of the prior art, does not repeat them here.
23S3: be arranged in the line number of whole text and the position of the first contact according to the first trip of the first place, contact page, obtains the line number of the first place, contact line position in whole text, determines the position of starting mark.
Wherein, the position of starting mark is determined by the position of the line number of the first place, contact line position in whole text and the first contact.
Such as: the line number that the first trip of the first place, contact page is arranged in whole text is 1024 row, the position of the first contact is above-mentioned (9,0), the line number of the first place, contact line position in whole text can be drawn according to H/D+1024, wherein, D represents the line space in text, and H represents the distance being parallel to page turning direction between above-mentioned 1024th row and the first contact position.Above-mentioned D and H can calculate according to prior art.If the line number of the first place, contact line position in whole text calculated is 1030, then the position of starting mark is determined jointly by line number 1030 and the first contact position (9,0).
It should be noted that, can learn that the previous character that starting mark position is adjacent and a rear character are in be expert at position by the position of described starting mark, after user determines the position of post, if before the position of post is positioned at the position of starting mark, then text selecting is selected from the previous character that starting mark position is adjacent, otherwise, if after the position of post is positioned at the position of starting mark, then text selecting is selected from the rear character that starting mark position is adjacent, if the position of the position of post and starting mark coincides, execution contexts does not select operation.
Method three, specifically comprises the steps:
First, when detecting that the first contact has moved to header or the footer of current page, controlling text according to pre-set velocity and carrying out page turning.
Such as, when user uses finger or touch tool starting mark to be moved to header or footer, terminal can detect that the first contact has moved to header or footer, and performs corresponding page turn over operation according to pre-set velocity.Wherein, when terminal detects that the distance of the first contact distance screen coboundary or lower limb is within the scope of predeterminable range, then illustrate that now the first contact has moved to header or footer.
It should be noted that, when user use finger or touch tool starting mark moved to header or footer carry out page turn over operation time, user uses other finger or touch tool to carry out in other optional positions of touch-screen sliding screen operation, now, terminal ignores the sliding screen operation of user, continues to perform user and uses finger or touch tool starting mark to be moved to the page turn over operation of header or footer.
Then, detect the second trigger event produced on the first contact, obtain the position of starting mark according to pre-set velocity.
Such as, when user uses finger or touch tool to be moved to by starting mark after header or footer carry out page turn over operation, then when leaving from starting mark, can produce UP event, now, terminal can obtain the UP event produced on the first contact.
It should be noted that, in the present invention, the position of starting mark is determined by the position of the line number of the first place, contact line position in whole text and the first contact, the position obtaining the line number of the first place, contact line position in whole text and the first contact specifically see Fig. 2 in description in step 23, do not repeat them here.
Further, similar with the mode of above-mentioned acquisition starting mark, the embodiment of the present invention, when obtaining the position of post, also can adopt three kinds of implementations;
Mode one,
When detecting that the first contact does not move to header or the footer of current page, detect the 4th trigger event produced on the 3rd contact, obtain the position of position as post of the 3rd contact.
Such as, when the finger that user uses or touch tool are left from post, terminal obtains the position of the 3rd contact.
Obtain in the manner in the mode one of the Methods and steps 102 that the 3rd contact position adopts as the position of post that to obtain the method that the first contact position adopts as the position of starting mark similar, do not repeat them here.
Mode two,
Realized by above-mentioned steps 104-105.
Wherein, in above-mentioned steps 104, after detecting that the 3rd contact that user touches on post produces the 3rd trigger event, the sliding trace that the second contact that on touch-screen, user touches produces detected and obtain the sliding speed of the second contact.
Concrete, obtaining step 21 in the specific implementation process of the sliding speed of the second contact and above-mentioned Fig. 2, to obtain the implementation procedure of the sliding speed of the 4th contact similar, do not repeat them here.
In above-mentioned steps 105, detect user when the 4th trigger event that the 3rd contact produces, obtain the detailed process of the position of post according to the sliding speed of the second contact, as shown in Figure 5, comprise the steps:
51: detect the 4th trigger event that user produces on the 3rd contact, obtain the position of the 3rd contact.
Such as, when the finger of user or touch tool are lifted from post, terminal obtains the UP event of the 3rd contact, and namely the position of the 3rd contact is the position of rising when user points or touch tool lifts on post.
It should be noted that, the method obtaining the position of the 3rd contact in this step is identical with the method obtaining the position of the first contact in step 23S1 in Fig. 4, does not repeat them here.
52: after obtaining the sliding screen operation of execution according to the sliding speed of the second contact, the first trip of the 3rd place, contact page is arranged in the line number of whole text.
Concrete, the line number being arranged in whole text according to the first trip of rear 3rd place, the contact page of sliding speed acquisition execution sliding screen operation can calculate according to scheme of the prior art, does not repeat them here.
53: be arranged in the line number of whole text and the position of the 3rd contact according to the first trip of the 3rd place, contact page, obtain the line number of the 3rd place, contact line position in whole text, determine the position of post.
Wherein, the position of post is determined by the position of the line number of the 3rd place, contact line position in whole text and the 3rd contact.
It should be noted that, the method that the position obtaining post in this step adopts is identical with the method that the position obtaining starting mark in step 23S3 in Fig. 4 adopts, and does not repeat them here.
Mode three,
First, when detecting that the first contact has moved to header or the footer of current page, controlling text according to pre-set velocity and carrying out page turning.
Concrete, in the implementation method of this step and the mode three of above-mentioned steps 102 when detecting that the first contact has moved to header or the footer of current page, the implementation method of carrying out page turning according to pre-set velocity control text is identical, does not repeat them here.
Then, detect the 4th trigger event produced on the 3rd contact, obtain the position of post according to pre-set velocity.
Such as, when user uses finger or touch tool to be moved to by post after header or footer carry out page turn over operation, then when leaving from post, can produce UP event, now, terminal can obtain the UP event produced on the 3rd contact.
It should be noted that, in the present invention, the position of post is determined by the position of the line number of the 3rd place, contact line position in whole text and the 3rd contact, the position obtaining the line number of the 3rd place, contact line position in whole text and the 3rd contact specifically see Fig. 2 in description in step 23, do not repeat them here.
In the method for the text selecting that the present embodiment provides, each provide above-mentioned three kinds of methods determining start position and above-mentioned three kinds of methods determining final position, determine that the method for start position and any one are determined that the method in final position all can complete and operated the selection of text according to any one, user can determine the method for adopted determination start position according to the concrete condition of text and determine the method in final position, make user in the process of text selecting, can grasp flexibly, improve the dirigibility that user carries out text selecting.
Embodiment 2
As shown in Figure 6, present embodiments provide a kind of device of text selecting, this device specifically comprises:
Display module 201, for detecting the first trigger event that the first contact that on touch-screen, user touches produces, the position of the first contact shows starting mark;
First acquisition module 202, for detecting the second trigger event produced on the first contact, obtains the position of starting mark;
Handover module 203, for switching to post by starting mark;
Second acquisition module 204, after the 3rd contact generation the 3rd trigger event that user touches on post being detected, detect sliding trace that the second contact that user on touch-screen touches produces and obtain the sliding speed of the second contact, the sliding speed of the second contact is for adjusting the page-turning speed of text;
3rd acquisition module 205, for detecting the 4th trigger event produced on the 3rd contact, obtains the position of post according to the sliding speed of the second contact;
4th acquisition module 206, for obtaining the word between the position of starting mark and the position of post.
In the device of the text selecting that the present embodiment provides, on the one hand, double-clicked on the touchscreen by using finger or touch tool by user, to produce the double-click event that the first contact produces, thus display triggers the selection starting mark of start position on the position of the first contact, the operation of text selecting is carried out with activated user, long pressing is needed with user in prior art, the option copying or shear is selected from the dialog box ejected, the starting mark that text selecting is carried out in display is afterwards compared, by double-clicking the operation can carrying out text selecting in the present invention, required step is more succinct, required time is shorter, save user time, enhance Consumer's Experience.On the other hand, the click event that in the present embodiment, user also uses finger or touch tool to produce the 3rd contact on post by user carrys out the selection of trigger endpoint position, when selected content of text is more, user can also use another finger or touch tool to carry out page turning by sliding screen, in page turn over operation, page-turning speed is controlled voluntarily by user completely, user is accurate locating endpoints position easily, when page turning quantity is larger, user can accelerate page-turning speed by the sliding speed accelerating the second contact forming sliding trace, with more difficult accurate location when carrying out page turning in prior art, when page turning quantity is larger, period of reservation of number is appearance ratio comparatively, the embodiment of the present invention is realizing in the process of text selecting by page turning, realize accurate locating endpoints position, and shorten the time of user's wait, strengthen Consumer's Experience.
Optionally, as shown in Figure 7, this device also comprises:
Whether detection module 207, move to header or the footer of current page for detecting the first contact.
Further, above-mentioned first acquisition module 202 specifically for, when detecting that described first contact does not move to header or the footer of current page, detecting the second trigger event produced on described first contact, obtaining the position of position as described starting mark of described first contact; Or, detect the sliding trace of the 4th contact that user touches on described touch-screen, obtain the sliding speed of described 4th contact and carry out page turning according to the sliding speed control text of described 4th contact, detect the second trigger event produced on described first contact, obtain the position of described starting mark according to the sliding speed of described 4th contact obtained
When detecting that described first contact has moved to header or the footer of current page, described in pre-, establish speeds control text to carry out page turning, detect the second trigger event produced on described first contact, and obtain the position of described starting mark according to pre-set velocity.
As shown in Figure 8, above-mentioned first acquisition module 202 specifically comprises:
First acquiring unit 2021, for obtaining the position of the first contact;
Second acquisition unit 2022, the first trip for obtaining the first place, contact page according to the sliding speed of the 4th contact is arranged in the line number of whole text;
3rd acquiring unit 2023, for being arranged in the line number of whole text and the position of the first contact according to the first trip of the first place, contact page, obtains the line number of the first place, contact line position in whole text;
First determining unit 2024, for according to the line number of the first place, contact line position in whole text and the position of the first contact, determines the position of starting mark.
As shown in Figure 9, above-mentioned 3rd acquisition module 205 specifically comprises:
4th acquiring unit 2051, for obtaining the position of the 3rd contact;
5th acquiring unit 2052, the first trip for obtaining the 3rd place, contact page according to the sliding speed of the second contact is arranged in the line number of whole text;
6th acquiring unit 2053, for being arranged in the line number of whole text and the position of the 3rd contact according to the first trip of the 3rd place, contact page, obtains the line number of the 3rd place, contact line position in whole text;
Second determining unit 2054, for according to the line number of the 3rd place, contact line position in whole text and the position of the 3rd contact, determines the position of post.
In the device of the text selecting that the present embodiment provides, above-mentioned first trigger event is double-click event; Second trigger event is UP event; 3rd trigger event is click event; 4th trigger event is UP event.
In the device of the text selecting that the present embodiment provides, each provide above-mentioned three kinds of devices determining start position and above-mentioned three kinds of devices determining final position, determine that the device of start position and any one are determined that the device in final position all can complete and operated the selection of text according to any one, user can determine the device of adopted determination start position according to the concrete condition of text and determine the device in final position, make user in the process of text selecting, can grasp flexibly, improve the dirigibility that user carries out text selecting.
Be only preferred embodiment of the present invention described in upper, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a method for text selecting, is characterized in that, comprising:
Detect user on touch-screen and use the first trigger event that the first contact of finger or touch tool touch produces, the position of described first contact shows starting mark;
Detect the second trigger event produced on described first contact, obtain the position of described starting mark;
Described starting mark is switched to post;
After the 3rd contact generation the 3rd trigger event that user touches on described post being detected, detect sliding trace that the second contact that user on described touch-screen touches produces and obtain the sliding speed of described second contact, the sliding speed of described second contact is for adjusting the page-turning speed of text, described 3rd trigger event is the click event that the 3rd contact produces, described 3rd contact is after post is clicked, the contact of generation; Described second contact for user use another finger or touch tool carry out on the touchscreen touchs slide time, touch start time generation contact;
Detect the 4th trigger event produced on described 3rd contact, obtain the position of described post according to the sliding speed of described second contact, the 4th trigger event is the UP event that the 3rd contact produces;
Obtain the word between the position of described starting mark and the position of described post.
2. method according to claim 1, is characterized in that, at the second trigger event that described detection produces on described first contact, before obtaining the position of described starting mark, also comprises:
Detect header or footer that whether described first contact moves to current page.
3. method according to claim 2, is characterized in that, the second trigger event that described detection produces on described first contact, obtains the position of described starting mark, specifically comprises:
When detecting that described first contact does not move to header or the footer of current page, detecting the second trigger event produced on described first contact, obtaining the position of position as described starting mark of described first contact, or, detect the sliding trace of the 4th contact that user touches on described touch-screen, obtain the sliding speed of described 4th contact and carry out page turning according to the sliding speed control text of described 4th contact, detect the second trigger event produced on described first contact, the position of described starting mark is obtained according to the sliding speed of described 4th contact obtained, described 4th contact be when user use finger or touch tool leave from starting mark time, and user use other finger or the touch tool optional position on the touchscreen except the first contact carry out slip touch time, the contact that terminal detects when user starts to carry out sliding touch, the sliding trace of described 4th contact is the vertical range relative to touch-screen, the time that the sliding speed of described 4th contact produces sliding trace relative to the vertical range of touch-screen divided by the 4th contact by sliding trace obtains,
When detecting that described first contact has moved to header or the footer of current page, control text according to pre-set velocity and carry out page turning, detect the second trigger event produced on described first contact, and obtain the position of described starting mark according to described pre-set velocity.
4. method according to claim 3, is characterized in that, the sliding speed of described 4th contact that described basis has obtained obtains the position of described starting mark, specifically comprises:
Obtain the position of described first contact;
The line number of whole text is arranged according to the first trip of described first place, the contact page of sliding speed acquisition of described 4th contact;
Be arranged in the line number of whole text and the position of described first contact according to the first trip of described first place, contact page, obtain the line number of described first place, contact line position in whole text;
According to the line number of described first place, contact line position in whole text and the position of described first contact, determine the position of described starting mark.
5. method according to claim 1, is characterized in that, the 4th trigger event that described detection produces in described 3rd contact, obtains the position of described post, specifically comprise according to the sliding speed of described second contact:
Obtain the position of described 3rd contact;
The line number of whole text is arranged according to the first trip of described 3rd place, the contact page of sliding speed acquisition of described second contact;
Be arranged in the line number of whole text and the position of described 3rd contact according to the first trip of described 3rd place, contact page, obtain the line number of described 3rd place, contact line position in whole text;
According to the line number of described 3rd place, contact line position in whole text and the position of described 3rd contact, determine the position of described post.
6. the method according to any one of claim 1-5, is characterized in that, described first trigger event is double-click event; Described second trigger event is UP event; Described 3rd trigger event is click event; Described 4th trigger event is UP event.
7. a device for text selecting, is characterized in that, comprising:
Display module, uses for detecting user on touch-screen the first trigger event that the first contact of finger or touch tool touch produces, the position of described first contact shows starting mark;
First acquisition module, for detecting the second trigger event produced on described first contact, obtains the position of described starting mark;
Handover module, for switching to post by described starting mark;
Second acquisition module, after the 3rd contact generation the 3rd trigger event that user touches on described post being detected, detect sliding trace that the second contact that user on described touch-screen touches produces and obtain the sliding speed of described second contact, the sliding speed of described second contact is for adjusting the page-turning speed of text, described 3rd trigger event is the click event that the 3rd contact produces, described 3rd contact is after post is clicked, the contact of generation; Described second contact for user use another finger or touch tool carry out on the touchscreen touchs slide time, touch start time generation contact;
3rd acquisition module, for detecting the 4th trigger event produced on described 3rd contact, obtains the position of described post according to the sliding speed of described second contact, the 4th trigger event is the UP event that the 3rd contact produces;
4th acquisition module, for obtaining the word between the position of described starting mark and the position of described post.
8. device according to claim 7, is characterized in that, also comprises:
Whether detection module, move to header or the footer of current page for detecting described first contact.
9. device according to claim 8, it is characterized in that, described first acquisition module specifically for, when detecting that described first contact does not move to header or the footer of current page, detect the second trigger event produced on described first contact, obtain the position of position as described starting mark of described first contact, or, detect the sliding trace of the 4th contact that user touches on described touch-screen, obtain the sliding speed of described 4th contact and carry out page turning according to the sliding speed control text of described 4th contact, detect the second trigger event produced on described first contact, the position of described starting mark is obtained according to the sliding speed of described 4th contact obtained, described 4th contact is the optional position on touch-screen except the first contact, described 4th contact be when user use finger or touch tool leave from starting mark time, and user use other finger or the touch tool optional position on the touchscreen except the first contact carry out slip touch time, the contact that terminal detects when user starts to carry out sliding touch, the sliding trace of described 4th contact is the vertical range relative to touch-screen, the time that the sliding speed of described 4th contact produces sliding trace relative to the vertical range of touch-screen divided by the 4th contact by sliding trace obtains,
When detecting that described first contact has moved to header or the footer of current page, control text according to pre-set velocity and carry out page turning, detect the second trigger event produced on described first contact, and obtain the position of described starting mark according to described pre-set velocity.
10. device according to claim 9, is characterized in that, described first acquisition module, specifically comprises:
First acquiring unit, for obtaining the position of described first contact;
Second acquisition unit, the first trip for obtaining described first place, contact page according to the sliding speed of described 4th contact is arranged in the line number of whole text;
3rd acquiring unit, for being arranged in the line number of whole text and the position of described first contact according to the first trip of described first place, contact page, obtains the line number of described first place, contact line position in whole text;
First determining unit, for according to the line number of described first place, contact line position in whole text and the position of described first contact, determines the position of described starting mark.
11. devices according to claim 7, is characterized in that, described 3rd acquisition module specifically comprises:
4th acquiring unit, for obtaining the position of described 3rd contact;
5th acquiring unit, the first trip for obtaining described 3rd place, contact page according to the sliding speed of described second contact is arranged in the line number of whole text;
6th acquiring unit, for being arranged in the line number of whole text and the position of described 3rd contact according to the first trip of described 3rd place, contact page, obtains the line number of described 3rd place, contact line position in whole text;
Second determining unit, for according to the line number of described 3rd place, contact line position in whole text and the position of described 3rd contact, determines the position of described post.
12. devices according to any one of claim 7-11, it is characterized in that, described first trigger event is double-click event; Described second trigger event is UP event; Described 3rd trigger event is click event; Described 4th trigger event is UP event.
CN201210149001.3A 2012-05-14 2012-05-14 Method and device for text selection Expired - Fee Related CN102681786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210149001.3A CN102681786B (en) 2012-05-14 2012-05-14 Method and device for text selection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210149001.3A CN102681786B (en) 2012-05-14 2012-05-14 Method and device for text selection

Publications (2)

Publication Number Publication Date
CN102681786A CN102681786A (en) 2012-09-19
CN102681786B true CN102681786B (en) 2014-12-24

Family

ID=46813788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210149001.3A Expired - Fee Related CN102681786B (en) 2012-05-14 2012-05-14 Method and device for text selection

Country Status (1)

Country Link
CN (1) CN102681786B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11237719B2 (en) 2012-11-20 2022-02-01 Samsung Electronics Company, Ltd. Controlling remote electronic device with wearable electronic device
US11157436B2 (en) 2012-11-20 2021-10-26 Samsung Electronics Company, Ltd. Services associated with wearable electronic device
US10423214B2 (en) 2012-11-20 2019-09-24 Samsung Electronics Company, Ltd Delegating processing from wearable electronic device
US10551928B2 (en) 2012-11-20 2020-02-04 Samsung Electronics Company, Ltd. GUI transitions on wearable electronic device
US8994827B2 (en) 2012-11-20 2015-03-31 Samsung Electronics Co., Ltd Wearable electronic device
US11372536B2 (en) 2012-11-20 2022-06-28 Samsung Electronics Company, Ltd. Transition and interaction model for wearable electronic device
US10185416B2 (en) 2012-11-20 2019-01-22 Samsung Electronics Co., Ltd. User gesture input to wearable electronic device involving movement of device
CN103019592B (en) * 2012-11-30 2017-04-05 北京小米科技有限责任公司 A kind of method of selection interface mark, device and mobile terminal
CN103440105A (en) * 2013-08-26 2013-12-11 珠海金山办公软件有限公司 Cross-page text selection method and system for touch screen
CN104731495A (en) * 2013-12-23 2015-06-24 珠海金山办公软件有限公司 Page content selecting method and system
US10691332B2 (en) 2014-02-28 2020-06-23 Samsung Electronics Company, Ltd. Text input on an interactive display
CN104503697B (en) * 2014-12-29 2018-08-07 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105094626B (en) * 2015-06-26 2018-10-26 小米科技有限责任公司 Content of text selection method and device
CN105607832B (en) * 2015-12-21 2021-02-19 联想(北京)有限公司 Information processing method and electronic equipment
CN106020595B (en) * 2016-05-12 2021-11-02 腾讯科技(深圳)有限公司 Message reply method and device
CN105843547B (en) * 2016-05-24 2019-06-07 腾讯科技(深圳)有限公司 A kind of page sliding method and device
CN107765974B (en) * 2016-08-17 2021-11-12 中兴通讯股份有限公司 Method and device for moving sliding control
CN106775399B (en) 2016-12-12 2018-01-12 掌阅科技股份有限公司 electronic book data processing method, device and mobile terminal
CN107678643B (en) * 2017-09-15 2020-12-25 深圳天珑无线科技有限公司 Method and terminal for selecting text and device with storage function
CN109857578B (en) * 2019-01-31 2021-07-23 维沃移动通信有限公司 Text copying method and electronic equipment
CN111338539B (en) * 2020-02-27 2021-05-18 竞技世界(北京)网络技术有限公司 Target object selection method and device
CN111580663A (en) * 2020-05-11 2020-08-25 清华大学 Information input method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063920A (en) * 2006-04-25 2007-10-31 Lg电子株式会社 Terminal device and method for inputting instructions thereto
CN101655767A (en) * 2009-09-11 2010-02-24 天津津科电子系统工程有限公司 Touch page turning processing method based on electronic paper reading device
CN102279667A (en) * 2011-08-25 2011-12-14 中兴通讯股份有限公司 Method and device for responding screen touch event and communication terminal
CN102362252A (en) * 2009-03-27 2012-02-22 索尼爱立信移动通讯有限公司 System and method for touch-based text entry

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4701314B1 (en) * 2010-09-17 2011-06-15 株式会社ヤッパ Information display device and information display program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063920A (en) * 2006-04-25 2007-10-31 Lg电子株式会社 Terminal device and method for inputting instructions thereto
CN102362252A (en) * 2009-03-27 2012-02-22 索尼爱立信移动通讯有限公司 System and method for touch-based text entry
CN101655767A (en) * 2009-09-11 2010-02-24 天津津科电子系统工程有限公司 Touch page turning processing method based on electronic paper reading device
CN102279667A (en) * 2011-08-25 2011-12-14 中兴通讯股份有限公司 Method and device for responding screen touch event and communication terminal

Also Published As

Publication number Publication date
CN102681786A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN102681786B (en) Method and device for text selection
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
CN103324440B (en) A kind of method utilizing multi-point touch to select word content
US9223471B2 (en) Touch screen control
CN103353828B (en) The method and device of function is write and is wiped in a kind of switching on the touchscreen
US8633906B2 (en) Operation control apparatus, operation control method, and computer program
KR101381484B1 (en) Mobile device having a graphic object floating function and execution method using the same
EP2703959A1 (en) Terminal and method for inputting in terminal using positive and negative ends of stylus
CN103838456A (en) Method and system for controlling display positions of desktop icons
CN107066171A (en) The multiwindow switching method and system of touch screen terminal
US10289301B2 (en) Gesture-based selection and manipulation method
CN102945136A (en) Mobile terminal and touch operation method thereof
CN102609191A (en) Browsing interaction method for incoming messages of touchscreen cellphones
CN103577033B (en) A kind of method to set up of input method panel and system
WO2013134995A1 (en) Method and device for deleting area display contents and input words
CN104298437A (en) Text selection method, device and terminal
CN102455869A (en) Method and device for editing characters by using gestures
CN102654818B (en) A kind of keyboard display method of touch-screen electronic equipment and device
CN107179875B (en) The method and apparatus of window adjustment
CN103677576A (en) Method and device for closing window
CN104331186A (en) Processing method and system for writing area of touch screen
CN104536650A (en) Parallax page turning man-machine interaction method based on IOS
CN104731495A (en) Page content selecting method and system
CN103002144A (en) Page-turning operating method in dedicated page-turning area of mobile phone program window through dragging and dropping fingers
CN103365444A (en) Terminal equipment and touch method for touch screen thereon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141224

Termination date: 20180514

CF01 Termination of patent right due to non-payment of annual fee