CN104778006B - Information edit method and system - Google Patents

Information edit method and system Download PDF

Info

Publication number
CN104778006B
CN104778006B CN201510148636.5A CN201510148636A CN104778006B CN 104778006 B CN104778006 B CN 104778006B CN 201510148636 A CN201510148636 A CN 201510148636A CN 104778006 B CN104778006 B CN 104778006B
Authority
CN
China
Prior art keywords
cursor
information
slip gesture
starting point
cursor position
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
CN201510148636.5A
Other languages
Chinese (zh)
Other versions
CN104778006A (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201510148636.5A priority Critical patent/CN104778006B/en
Publication of CN104778006A publication Critical patent/CN104778006A/en
Application granted granted Critical
Publication of CN104778006B publication Critical patent/CN104778006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention relates to a kind of information edit method and systems.The described method includes: receiving information editing's triggering command, acquisition instruction corresponds to cursor position, which is starting cursor position;Obtain the corresponding termination cursor position of slip gesture;Editor's starting cursor and the information for terminating cursor position.Above- mentioned information edit methods and system, by receiving information editing's triggering command, the position of cursor corresponding to acquisition instruction, and the corresponding termination cursor position of slip gesture, starting cursor and the information for terminating cursor position are edited, the virtual Edit button of long-pressing is not needed, need to only slide can choose the content to be edited faster, improve editorial efficiency.

Description

Information edit method and system
Technical field
The present invention relates to field of information processing, are related to processing mobile terminal information, more particularly to a kind of information editing side Method and system.
Background technique
With popularizing for mobile terminal, more and more people install the participation network such as application program by mobile terminal and live It is dynamic, such as installation instant message applications, by log-in instant communication software editor's information, and send information to certain contact person Or group being added etc.;Also editable information delivers the comment etc. to some event.User can also pass through mobile terminal editor Short message sends short message to contact person etc..
When user passes through mobile terminal editor information, it is sometimes desirable to edit a certain partial content etc. in information, usually adopt With the virtual Edit button of long-pressing, start content of edit, stops editor until decontroling virtual Edit button, however it is virtual by long-pressing The low efficiency of Edit button editor's information.
Summary of the invention
Based on this, it is necessary to which for the low problem of traditional editor's information efficiency, providing a kind of can improve editorial efficiency Information edit method and system.
A kind of information edit method, comprising:
Information editing's triggering command is received, acquisition instruction corresponds to cursor position, and the position is in place for starting cursor institute It sets;
Obtain the corresponding termination cursor position of slip gesture;
Editor's starting cursor and the information for terminating cursor position.A kind of information editing's system, comprising:
Receiving module, for receiving information editing's triggering command, acquisition instruction corresponds to cursor position, which is Beginning cursor position;
Cursor obtains module, and for obtaining, slip gesture is corresponding to terminate cursor position;
Editor module, for editing starting cursor and terminating the information of cursor position.
Above- mentioned information edit methods and system, by receiving information editing's triggering command, cursor corresponding to acquisition instruction Position and the corresponding termination cursor position of slip gesture, carry out starting cursor and the information for terminating cursor position Editor, does not need the virtual Edit button of long-pressing, and need to only slide can choose the content to be edited faster, improves editor's effect Rate.
Detailed description of the invention
Fig. 1 is the flow chart of information edit method in one embodiment;
Fig. 2 is the effective detection schematic diagram of slip event to the left;
Fig. 3 is the flow chart of information edit method in another embodiment;
Fig. 4 is the variation schematic diagram for deleting full line information;
Fig. 5 is the flow chart of information edit method in another embodiment;
Fig. 6 is the slip event schematic diagram that information is deleted according to glide direction;
Fig. 7 A is the variation schematic diagram that left information is deleted in sliding to the left;
Fig. 7 B is the variation schematic diagram that right information is deleted in sliding to the right;
Fig. 8 is the flow chart of information edit method in another embodiment;
Fig. 9 is the slip event schematic diagram that information is deleted according to glide direction and sliding distance;
Figure 10 A is the variation schematic diagram that sliding deletes with information corresponding to sliding distance length to the left;
Figure 10 B is the variation schematic diagram that sliding deletes with information corresponding to sliding distance length to the right;
Figure 11 is the structural block diagram of information editing's system in one embodiment;
Figure 12 is the structural block diagram of information editing's system in another embodiment;
Figure 13 is the internal structure block diagram that cursor obtains module in one embodiment;
Figure 14 is the internal structure block diagram that cursor obtains module in another embodiment;
Figure 15 is the structural block diagram of information editing's system in another embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the flow chart of information edit method in one embodiment.As shown in Figure 1, the information edit method, comprising:
Step 102, information editing's triggering command is received, acquisition instruction corresponds to cursor position, which is starting light Mark position.
Specifically, showing information editing interface on the mobile terminal for have touch function, then it is responsible for detecing by thread Listen the slip event slided after whether thering is virtual Edit button to be pressed, wherein virtual Edit button is virtual push button.It moves Dynamic terminal can be mobile phone, tablet computer, personal digital assistant etc..The slip event that virtual Edit button slides after being pressed Refer to the slip event that the triggers such as finger are not left touch surface and then slided after virtual Edit button is pressed.Receive letter Breath editor's triggering command refers to the instruction for receiving and generating when virtual Edit button is pressed.
Information may include text, voice, picture etc..
Step 104, the corresponding termination cursor position of slip gesture is obtained.
Slip gesture refers to that slip event occurs after virtual Edit button is pressed is formed by running track.Slip gesture Corresponding terminate after cursor position refers to generation slip event finally stops cursor position when sliding.
Step 106, the information of editor's starting cursor and termination cursor position.
Specifically, editor can be the operation such as deletion, modifications or substitutions, it can be deleted or modified or replace where starting cursor Information of the position to termination cursor position.
Above- mentioned information edit methods, by receiving information editing's triggering command, the position of cursor corresponding to acquisition instruction, with And the corresponding termination cursor position of slip gesture, starting cursor and the information for terminating cursor position are edited, no The virtual Edit button of long-pressing is needed, need to only slide can choose the content to be edited faster, improve editorial efficiency.
In one embodiment, above- mentioned information edit methods further include: judge whether slip gesture meets preset condition, if It is then to obtain the corresponding termination cursor position of slip gesture, if it is not, then terminating;
The preset condition includes that the absolute value of the straight slope of the sliding trace of slip gesture is less than first predetermined value and cunning The abscissa of the halt for gesture of starting and the absolute value of the difference of starting point are greater than second predetermined value.
Wherein, first predetermined value and second predetermined value are set according to actual conditions.For example, first predetermined value can be 0.5, the Two predetermined values can be 1.
Judge that the step of whether slip gesture meets preset condition includes: the starting point coordinate for obtaining the slip gesture, stops Stop coordinate and the sliding trace of formed near linear or straight line from starting point to halt, the starting point coordinate are to generate text The coordinate of trigger position where this editor triggering command;Judge that the starting point and halt are formed by the straight line of sliding trace Whether the absolute value of slope is less than first predetermined value, and judge the halt abscissa and starting point absolute value of the difference whether Greater than second predetermined value;If the absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is predetermined less than first When the absolute value of the difference of the abscissa and starting point of value and the halt is greater than second predetermined value, which is effectively sliding Gesture, otherwise the slip gesture is invalid slip gesture.
As shown in Fig. 2, establishing xy coordinate system with plane where the screen of mobile terminal, in the present embodiment, text is with vertical screen It has been shown that, the x-axis of xy coordinate system is parallel with the row where text, and y-axis is vertical with the row where text.User presses virtual editor As origination action, starting point coordinate are (x, y) when button 202 (i.e. finger position), have a left side on the left of starting point Boundary 204 (abscissa that the abscissa of left border is less than starting point), the sliding of the touch-controls actuating station such as user's finger or stylus It passes through left border 204 and is stopped at coordinate (x ', y '), i.e., halt coordinate is (x ', y '), if from starting point (x, y) to stopping Point (x ', y ') i.e. (x, y) -> (x ', y ') forms near linear or the slope of straight line is less than first predetermined value a, and the difference of x ' and x Absolute value be greater than second predetermined value b, then the slip gesture be effective slip gesture, be otherwise invalid slip gesture.At other In embodiment, text can be with transverse screen display, when establishing xy coordinate system, and the x-axis of xy coordinate system is parallel with the row where text, y-axis Vertical with the row where text, other calculating process are the same with vertical screen display.
In other embodiments, right side boundary can also be arranged on the right side of starting point, and (abscissa of right side boundary is greater than starting Point abscissa), from starting point, Slideslip is stopped at coordinate (x ', y ') to the right, if from starting point (x, y) to halt (x ' ', Y ' ') i.e. (x, y) -> (x ' ', y ' ') form the slope of near linear or straight line and be less than first predetermined value a, and the difference of x ' ' and x Absolute value is greater than second predetermined value b, then otherwise it is invalid slip gesture that the slip gesture, which is effective slip gesture,.
When being compiled as delete operation, after the step of editor originates cursor and terminates the information of cursor position, on State information edit method further include: the position executed after deleting information operation will be added to close to the follow-up of the deletion information On.Follow-up is added on the position executed after deleting information operation, does not need user's operation, it is easy to operate, and make Remaining information is coherent together after deleting information, convenient for checking.
Fig. 3 is the flow chart of information edit method in another embodiment.As shown in figure 3, the information edit method application In editor's full line information, i.e., starting cursor to the information for terminating cursor position is full line information, comprising steps of
Step 302, information editing's triggering command is received, acquisition instruction corresponds to cursor position, which is starting light Mark position.
Step 304, if the slip gesture meets preset condition, the corresponding termination cursor position of slip gesture is obtained.
Specifically, the absolute value that preset condition includes the straight slope of the sliding trace of slip gesture is less than first predetermined value And the absolute value of the difference of the abscissa of the halt of slip gesture and starting point is greater than second predetermined value.Wherein, first predetermined value It is set according to actual conditions with second predetermined value.For example, first predetermined value can be 0.5, second predetermined value can be 1.
Judge that the step of whether slip gesture meets preset condition includes: the starting point coordinate for obtaining the slip gesture, stops Stop coordinate and the sliding trace of formed near linear or straight line from starting point to halt, the starting point coordinate are to generate text The coordinate of trigger position where this editor triggering command;Judge that the starting point and halt are formed by the straight line of sliding trace Whether the absolute value of slope is less than first predetermined value, and judge the halt abscissa and starting point absolute value of the difference whether Greater than second predetermined value;If the absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is predetermined less than first When the absolute value of the difference of the abscissa and starting point of value and the halt is greater than second predetermined value, which is effectively sliding Gesture, otherwise the slip gesture is invalid slip gesture.Specifically as shown in Fig. 2, details are not described herein.
Step 306, the information of editor's starting cursor and full line determined by termination cursor position.
In the present embodiment, step 306 is the specific steps of step 106.Cursor position includes row and column, usual text It is continuous with row.Full line all information determined by editor's starting cursor to termination cursor in the present embodiment.
In addition, in editor's starting cursor and terminating full line determined by cursor position when being compiled as delete operation After information, the information edit method further include: will originate cursor position next line information supplement to originate cursor institute Row in position.Vacancy behind editor starting cursor position to the information for terminating the full line that cursor position is formed is by The information of the next line of beginning cursor position, which moves up, to be filled up.
Fig. 4 is the variation schematic diagram for deleting full line information.The first width figure user clicks virtual editor with finger and presses in Fig. 4 Button simultaneously slides to the left, the character in the first width figure be " This is a phone, and I use it everyday. | Because it just like soul in my mind. ", cursor are located at before " Because ", after sliding in the second width figure Finger frames out, and the full line information of starting cursor position is deleted, i.e., " use it everyday. " is deleted.Third The text that the next line of cursor position is originated in width figure adds to the row of starting cursor position, i.e. " This is upwards A phone, and I | Because it just like soul in my mind. "
Above- mentioned information edit methods, by receiving information editing's triggering command, the position of cursor corresponding to acquisition instruction, with And slip gesture is corresponding terminates cursor position, to starting cursor and terminate full line information determined by cursor position into Edlin does not need the virtual Edit button of long-pressing, and need to only slide can choose the content to be edited faster, improves editor Efficiency.
Fig. 5 is the flow chart of information edit method in another embodiment.As shown in figure 5, the information edit method is by cunning Edit information in dynamic direction, comprising the following steps:
Step 502, information editing's triggering command is received, acquisition instruction corresponds to cursor position, which is starting light Mark position.
Step 504, if slip gesture meets preset condition, the glide direction of the slip gesture is obtained, according to the starting light Mark position and the glide direction determine that the slip gesture is corresponding and terminate cursor position.
Specifically, the absolute value that preset condition includes the straight slope of the sliding trace of slip gesture is less than first predetermined value And the absolute value of the difference of the abscissa of the halt of slip gesture and starting point is greater than second predetermined value.Wherein, first predetermined value It is set according to actual conditions with second predetermined value.For example, first predetermined value can be 0.5, second predetermined value can be 1.
Judge that the step of whether slip gesture meets preset condition includes: the starting point coordinate for obtaining the slip gesture, stops Stop coordinate and the sliding trace of formed near linear or straight line from starting point to halt, the starting point coordinate are to generate text The coordinate of trigger position where this editor triggering command;Judge that the starting point and halt are formed by the straight line of sliding trace Whether the absolute value of slope is less than first predetermined value, and judge the halt abscissa and starting point absolute value of the difference whether Greater than second predetermined value;If the absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is predetermined less than first When the absolute value of the difference of the abscissa and starting point of value and the halt is greater than second predetermined value, which is effectively sliding Gesture, otherwise the slip gesture is invalid slip gesture.
The starting point coordinate and halt coordinate for obtaining the sliding trace of slip gesture, by the abscissa of halt and starting The abscissa of point is compared, and is slided if the abscissa of halt is less than the abscissa of starting point to first direction, i.e., to the left Sliding is slided to second direction if the abscissa of halt is greater than the abscissa of starting point, i.e., is slided to the right.Step 506, it compiles It collects starting cursor and terminates the information of cursor position.
In the present embodiment, step 504 is the specific steps of step 104.
Such as glide direction is that the left, starting cursor and termination cursor then terminate cursor in starting cursor in same a line The left side;Glide direction is that the right, starting cursor and termination cursor then terminate cursor on the right of starting cursor in same a line.
Above- mentioned information edit methods determine termination cursor position by glide direction and starting cursor position, The virtual Edit button of long-pressing is not needed, sliding i.e. editable bulk information after Edit button need to be only pressed, improve editorial efficiency.
Fig. 6 is the slip gesture schematic diagram according to glide direction editor's information.As shown in fig. 6, with where mobile terminal screen Plane establishes xy coordinate system, and for text with vertical screen display, the x-axis of xy coordinate system is parallel with the row where text, where y-axis and text Row it is vertical.Judge that the whether effective process of slip gesture includes (1) to (3) in Fig. 6.
(1) as origination action when user presses virtual Edit button 602 (i.e. finger position), starting point coordinate For (x, y), there are a left border 604 (abscissa that the abscissa of left border is less than starting point), starting point in starting point left side There is a right side boundary 606 (abscissa that the abscissa of right side boundary is greater than starting point) on right side.
(2) when the touch-controls actuating station such as user's finger or stylus sliding pass through left border 604 and be stopped at coordinate (x ', Y '), i.e., halt coordinate is (x ', y '), judges whether the slip gesture is effective slip gesture;If from starting point (x, y) to Halt (x ', y ') i.e. (x, y) -> (x ', y ') forms near linear or the slope of straight line is less than first predetermined value a, and x ' and x Absolute value of the difference (i.e. the displacement of x) be greater than second predetermined value b, then the slip gesture be effective slip gesture, be otherwise invalid Slip gesture;If slip gesture is effective slip gesture, by the be expert at left whole text of editor's cursor, and by subsequent text Content is filled.
(3) when the touch-controls actuating station such as user's finger or stylus sliding pass through right margin 606 and be stopped at coordinate (x ' ', Y ' '), judge whether the slip gesture is effective slip gesture;If from starting point (x, y) to halt (x ' ', y ' ') i.e. (x, Y) slope for -> (x ' ', y ' ') forming near linear or straight line is less than first predetermined value a, and absolute value of the difference (the i.e. x of x ' and x Displacement) be greater than second predetermined value b, then the slip gesture be effective slip gesture, be otherwise invalid slip gesture;If sliding hand Gesture is effective slip gesture, then by the be expert at right whole text of editor's cursor, and is filled by subsequent word content.
Fig. 7 A is the variation schematic diagram that left information is deleted in sliding to the left;Fig. 7 B is the change that right information is deleted in sliding to the right Change schematic diagram.As shown in Figure 7 A, the first width figure user clicks virtual Edit button with finger and slides to the left, in the first width figure Character be " This is a phone, and I use it everyday. | Because it just like soul in My mind. ", cursor are located at before " Because ", and finger frames out after sliding in the second width figure, a left side for cursor position Square information is deleted, i.e., " everyday. " is deleted.The text of the next line of cursor position supplements upwards in third width figure To the row of cursor position, i.e., " This is a phone, and I use it | Because it just like soul As shown in Figure 7 B, the first width figure user clicks virtual Edit button with finger and slides to the right, the first width in my mind. " Character in figure be " This is a phone, and I use it everyday. | Because it just like soul In my mind. ", cursor are located at before " Because ", and finger frames out after sliding in the second width figure, cursor position Right information be deleted, i.e., " Because " be deleted.The text of the next line of cursor position is mended upwards in third width figure Be charged to the row of cursor position, i.e., " This is a phone, and I use it everyday | it just like soul in my mind.".When being compiled as modifications or substitutions operation, originates cursor and termination cursor is formed by information and deletes The same when operation, details are not described herein.
Fig. 8 is the flow chart of information edit method in another embodiment.As shown in figure 8, the information edit method according to Glide direction and sliding distance editor's information, comprising the following steps:
Step 802, information editing's triggering command is received, acquisition instruction corresponds to cursor position, which is starting light Mark position.
Step 804, if the slip gesture meets preset condition, the glide direction and sliding distance of the slip gesture are obtained, It determines that the slip gesture is corresponding according to starting cursor position, glide direction and the sliding distance and terminates cursor position.
Specifically, the absolute value that preset condition includes the straight slope of the sliding trace of slip gesture is less than first predetermined value And the absolute value of the difference of the abscissa of the halt of slip gesture and starting point is greater than second predetermined value.Wherein, first predetermined value It is set according to actual conditions with second predetermined value.For example, first predetermined value can be 0.5, second predetermined value can be 1.
Judge that the step of whether slip gesture meets preset condition includes: the starting point coordinate for obtaining the slip gesture, stops Stop coordinate and the sliding trace of formed near linear or straight line from starting point to halt, the starting point coordinate are to generate text The coordinate of trigger position where this editor triggering command;Judge that the starting point and halt are formed by the straight line of sliding trace Whether the absolute value of slope is less than first predetermined value, and judge the halt abscissa and starting point absolute value of the difference whether Greater than second predetermined value;If the absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is predetermined less than first When the absolute value of the difference of the abscissa and starting point of value and the halt is greater than second predetermined value, which is effectively sliding Gesture, otherwise the slip gesture is invalid slip gesture.Specifically as shown in Fig. 2, details are not described herein.
The starting point coordinate and halt coordinate for obtaining the sliding trace of slip gesture, by the abscissa of halt and starting The abscissa of point is compared, and is slided if the abscissa of halt is less than the abscissa of starting point to first direction, i.e., to the left Sliding is slided to second direction if the abscissa of halt is greater than the abscissa of starting point, i.e., is slided to the right.Sliding distance can It is indicated, can also be sought from starting point to stopping dot using the absolute value of the difference that halt abscissa subtracts the abscissa of starting point At sliding trace length indicate, or using starting point between halt linear distance indicate.The horizontal seat of halt Mark subtracts square of the value of the abscissa of starting point, along with the ordinate of halt subtracts the flat of the value of the ordinate of starting point Side, then obtained quadratic sum is extracted square root to obtain starting point to the linear distance between halt.
To originate cursor position as starting point, the corresponding sliding distance length delimited according to the glide direction and obtains end Only cursor position.
Step 806, the information of editor's starting cursor and termination cursor position.
In the present embodiment, step 804 is the specific steps of step 104.
Such as glide direction is to the left, then starting cursor to be expert at, to originate cursor position as starting point, to the left Edit information corresponding with sliding distance length in side;Glide direction is to the right, then starting cursor to be expert at, to originate cursor institute It is set to starting point in place, edits information corresponding with sliding distance length to the right.
Above- mentioned information edit methods determine that slip gesture institute is right by starting cursor position, glide direction and sliding distance The termination cursor position answered calculates simply, does not need the virtual Edit button of long-pressing, slides i.e. after need to only pressing Edit button Editable bulk information, improves editorial efficiency.
Fig. 9 is the slip gesture schematic diagram that information is deleted according to glide direction and sliding distance.As shown in figure 9, with mobile whole Plane where the screen of end establishes xy coordinate system, and text is with vertical screen display, and the x-axis of xy coordinate system is parallel with the row where text, y-axis It is vertical with the row where text.Judge that the whether effective process of slip gesture includes (1) to (3) in Fig. 9.
(1) as origination action when user presses virtual Edit button 902 (i.e. finger position), deletes information Starting point coordinate is (x, y), and having a left border 904 on the left of starting point, (abscissa of left border is less than the horizontal seat of starting point Mark), there is a right side boundary 906 (abscissa that the abscissa of right side boundary is greater than starting point) on starting point right side.
(2) when the touch-controls actuating station such as user's finger or stylus sliding pass through left border 904 and be stopped at coordinate (x ', Y '), i.e., halt coordinate is (x ', y '), judges whether the slip gesture is effective slip gesture;If from starting point (x, y) to Halt (x ', y ') forms near linear or the slope of straight line is less than first predetermined value a, and absolute value of the difference (the i.e. x of x ' and x Displacement) be greater than second predetermined value b, then the slip gesture be effective slip gesture, be otherwise invalid slip gesture.If the sliding Gesture is effective slip gesture, then will be using cursor position as starting point, and records sliding distance c to the left, with sliding away from From c and cursor position is the information that starting point indicates corresponding sliding distance c length to the left, leaves touch-control in touch-control actuating station After panel, the information for indicating corresponding sliding distance c length to the left is deleted, and filled by subsequent word content.
(3) when the touch-controls actuating station such as user's finger or stylus sliding pass through right margin 906 and be stopped at coordinate (x ' ', Y ' '), judge whether the slip gesture is effective slip gesture;If from starting point (x, y) to halt (x ' ', y ' ') i.e. (x, Y) slope for -> (x ' ', y ' ') forming near linear or straight line is less than first predetermined value a, and absolute value of the difference (the i.e. x of x ' and x Displacement) be greater than second predetermined value b, then the slip gesture be effective slip gesture, be otherwise invalid slip gesture;If sliding hand Gesture is effective slip gesture, then by the be expert at right whole text of editor's cursor, and sliding distance c to the left is recorded, with sliding Distance c and cursor position are the information that starting point indicates to the right corresponding sliding distance c length, leave touching in touch-control actuating station After controlling panel, the information for indicating corresponding sliding distance c length to the right is deleted, and filled by subsequent word content.
Figure 10 A is the variation schematic diagram that sliding deletes with information corresponding to sliding distance length to the left;Figure 10 B is to the right The variation schematic diagram with information corresponding to sliding distance length is deleted in sliding.As shown in Figure 10 A, first width figure user's hand Virtual Edit button is hit in indication, the character in the first width figure be " This is a phone, and I use it everyday. | Because it just like soul in my mind. ", cursor are located at before " Because ", in the second width figure finger to Left sliding chooses the information of corresponding sliding distance length according to sliding distance, i.e., " ryday. " is selected, in ryday. plus lower stroke Line indicates selected." ryday. " is deleted in third width figure, and the follow-up for being deleted information, which is supplemented to, deletes information Position, i.e., " This is a phone, and I use it eve | Because it just like soul in my Mind. " as shown in Figure 10 B, the first width figure user clicks virtual Edit button with finger, and the character in the first width figure is " This is a phone, and I use it everyday. | Because it just like soul in my Mind. ", cursor is located at before " Because ", and finger slides to the right in the second width figure, chooses corresponding sliding according to sliding distance The information of distance length, i.e. " Becau " are selected." Becau " is deleted in third width figure, and the follow-up for being deleted information is mended Be charged to the position for deleting information, i.e., " This is a phone, and I use it everyday. | se it just like soul in my mind.".In addition, editor can be modification operation or replacement operation, treatment process and delete operation class Seemingly, modification operation will originate cursor position and modify to the information for terminating cursor position, and replacement operation will Starting cursor position is replaced to the information for terminating cursor position.
Figure 11 is the structural block diagram of information editing's system in one embodiment.As shown in figure 11, information editing's system, packet Include receiving module 1110, cursor obtains module 1120 and editor module 1130.Wherein:
Receiving module 1110 is for receiving information editing's triggering command, and acquisition instruction corresponds to cursor position, the position To originate cursor position.
Specifically, showing information editing interface on the mobile terminal for have touch function, then it is responsible for detecing by thread Listen the slip gesture slided after whether thering is virtual Edit button to be pressed, wherein virtual Edit button is virtual push button.It is empty The slip gesture that quasi- Edit button slides after being pressed refer to after virtual Edit button is pressed the triggers such as finger not from The slip gesture opening touch surface and then sliding.It receives information editing's triggering command and refers to that receiving virtual Edit button is pressed When the instruction that generates.
Cursor obtains module 1120, and for obtaining, slip gesture is corresponding to terminate cursor position.
Slip gesture refers to that slip event occurs after virtual Edit button is pressed is formed by running track.Slip gesture Corresponding terminate after cursor position refers to generation slip event finally stops cursor position when sliding.
Editor module 1130 is used to edit starting cursor and terminate the information of cursor position.
Specifically, editor can be the operation such as deletion, modifications or substitutions, it can be deleted or modified or replace where starting cursor Information of the position to termination cursor position.
Above- mentioned information editing system, by receiving information editing's triggering command, the position of cursor corresponding to acquisition instruction, with And the corresponding termination cursor position of slip gesture, starting cursor and the information for terminating cursor position are edited, no The virtual Edit button of long-pressing is needed, need to only slide can choose the content to be edited faster, improve editorial efficiency.
Figure 12 is the structural block diagram of editor's information editing's system in another embodiment.As shown in figure 12, editor's information Editing system further includes judging mould in addition to including receiving module 1110, cursor position acquisition module 1120 and editor module 1130 Block 1140.Wherein:
Judgment module 1140 is for judging whether slip gesture meets preset condition, if so, cursor obtains module 1120 The corresponding termination cursor position of slip gesture is obtained, if it is not, then terminating;
The preset condition includes that the absolute value of the straight slope of the sliding trace of slip gesture is less than first predetermined value and cunning The abscissa of the halt for gesture of starting and the absolute value of the difference of starting point are greater than second predetermined value.
Specifically, the absolute value that preset condition includes the straight slope of the sliding trace of slip gesture is less than first predetermined value And the absolute value of the difference of the abscissa of the halt of slip gesture and starting point is greater than second predetermined value.Wherein, first predetermined value It is set according to actual conditions with second predetermined value.For example, first predetermined value can be 0.5, second predetermined value can be 1.
Judgment module 1140 be also used to obtain the starting point coordinate of the slip gesture, halt coordinate and from starting point to The sliding trace of the formed near linear of halt or straight line, the starting point coordinate are where generating text editing triggering command The coordinate of trigger position, and judge the starting point and halt be formed by the straight slope of sliding trace absolute value it is whether small In first predetermined value, and judgement changes the abscissa of halt and whether the absolute value of the difference of starting point is greater than second predetermined value;If The absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is less than first predetermined value and changes the cross of halt When the absolute value of the difference of coordinate and starting point is greater than second predetermined value, changing slip gesture is effective slip gesture, the otherwise sliding Event is invalid slip gesture.
In one embodiment, which is applied to editor's full line information, i.e. starting cursor to termination cursor The information of position is full line information.Then editor module 1130 is also used to edit the information of the full line of the cursor position.
Above- mentioned information editing system originates full line information determined by cursor to termination cursor position by editor, The virtual Edit button of long-pressing is not needed, sliding i.e. editable bulk information after Edit button need to be only pressed, improve editorial efficiency.
Figure 13 is the internal structure block diagram that cursor obtains module in one embodiment.As shown in figure 13, cursor obtains module 1120 include that direction acquisition submodule 1122 and cursor position determine submodule 1124.Wherein:
Direction acquisition submodule 1122 is used to obtain the glide direction of the slip gesture.Specifically, obtaining slip gesture The starting point coordinate and halt coordinate of sliding trace, the abscissa of the abscissa of halt and starting point is compared, if The abscissa that the abscissa of halt is less than starting point is then slided to first direction, i.e., slides to the left, if the abscissa of halt Abscissa greater than starting point is then slided to second direction, i.e., slides to the right.
Cursor position determines submodule 1124 for determining the cunning according to the starting cursor position and the glide direction Gesture of starting is corresponding to terminate cursor position.Such as glide direction is that the left, starting cursor and termination cursor are in same a line, then eventually Only cursor is on the left side of starting cursor;Glide direction is that the right, starting cursor and termination cursor then terminate cursor and exist in same a line Originate the right of cursor.
Above- mentioned information editing system determines termination cursor position by glide direction and starting cursor position, The virtual Edit button of long-pressing is not needed, sliding i.e. editable bulk information after Edit button need to be only pressed, improve editorial efficiency.
Figure 14 is the internal structure block diagram that cursor obtains module in another embodiment.As shown in figure 14, cursor obtains mould Block 1120 further includes that distance obtains submodule in addition to including that direction acquisition submodule 1122 and cursor position determine submodule 1124 Block 1126.Wherein:
It is used to obtain the sliding distance of the slip gesture apart from acquisition submodule 1126.Specifically, sliding distance can be adopted It is indicated with the absolute value of the difference that halt abscissa subtracts the abscissa of starting point, can also seek being formed from starting point to halt Sliding trace length indicate, or using starting point between halt linear distance indicate.The abscissa of halt Square for subtracting the value of the abscissa of starting point, along with the ordinate of halt subtracts the flat of the value of the ordinate of starting point Side, then obtained quadratic sum is extracted square root to obtain starting point to the linear distance between halt.
Cursor position determines submodule 1124 for according to the starting cursor position, glide direction and sliding distance It determines that the slip gesture is corresponding and terminates cursor position.
To originate cursor position as starting point, the corresponding sliding distance length delimited according to the glide direction and obtains end Only cursor position.
Determine that the institute of termination cursor corresponding to slip gesture is in place by starting cursor position, glide direction and sliding distance It sets, calculating does not simply need the virtual Edit button of long-pressing, need to only press sliding i.e. editable bulk information after Edit button, improve Editorial efficiency.
Figure 15 is the structural block diagram of information editing's system in another embodiment.As shown in figure 15, information editing's system, It further include movement in addition to including receiving module 1110, cursor acquisition module 1120, editor module 1130 and judgment module 1140 Module 1150.Wherein:
When being compiled as delete operation, mobile module 1150 is for will add to execution close to the follow-up of editor's information On position after editing information operation.
Specifically, mobile module 1150 is used for cursor after the information for deleting full line corresponding to cursor position Row of the information supplement of the next line of position to cursor position.Edit the letter of full line corresponding to cursor position Vacancy after breath is moved up by the information of the next line of cursor position to be filled up.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of information edit method characterized by comprising
Information editing's triggering command that virtual Edit button generates is received, acquisition instruction corresponds to cursor position, which is Originate cursor position;
Obtain the corresponding termination cursor position of slip gesture;
Editor's starting cursor and the information for terminating cursor position;
The method also includes:
Judge whether slip gesture meets preset condition, if so, obtaining, slip gesture is corresponding to terminate cursor position, if It is no, then terminate;
The preset condition includes that the absolute value of the straight slope of the sliding trace of slip gesture is less than first predetermined value and sliding The abscissa of the halt of gesture and the absolute value of the difference of starting point are greater than second predetermined value;
The editor originates cursor and includes: the step of terminating the information of cursor position
Editor's starting cursor and the information for terminating full line determined by cursor position;
When being compiled as delete operation, the information supplement of the next line of cursor position will be originated to initial position place The row of position.
2. information edit method according to claim 1, which is characterized in that the acquisition slip gesture is corresponding to terminate cursor The step of position includes:
Obtain the glide direction of the slip gesture;
It determines that the slip gesture is corresponding according to the starting cursor position and the glide direction and terminates cursor institute in place It sets.
3. information edit method according to claim 1, which is characterized in that the acquisition slip gesture is corresponding to terminate cursor The step of position includes:
Obtain the glide direction and sliding distance of the slip gesture;
It determines that the slip gesture is corresponding according to the starting cursor position, glide direction and sliding distance and terminates cursor institute In position.
4. information edit method according to any one of claim 1 to 3, which is characterized in that the method also includes:
Obtain the starting point coordinate of the slip gesture, halt coordinate and from starting point to halt formed near linear or The sliding trace of straight line, the starting point coordinate are the coordinate for generating the trigger position where text editing triggering command;
Judge the starting point and halt be formed by the straight slope of sliding trace absolute value it is whether predetermined less than first Value, and judge whether the abscissa of the halt and the absolute value of the difference of starting point are greater than second predetermined value;
If the absolute value of the slope for the straight line that the starting point coordinate and halt coordinate are formed is less than first predetermined value and described When the abscissa of halt and the absolute value of the difference of starting point are greater than second predetermined value, the slip gesture is effectively to slide hand Gesture, otherwise the slip gesture is invalid slip gesture.
5. information edit method according to claim 1, which is characterized in that it is described to be compiled as delete operation, in the volume After the step of collecting starting cursor and terminating the information of cursor position, the method also includes:
It will be added on the position executed after deleting information operation close to the follow-up for deleting information.
6. a kind of information editing's system characterized by comprising
Receiving module, the information editing's triggering command generated for receiving virtual Edit button, acquisition instruction correspond to where cursor Position, the position are starting cursor position;
Cursor obtains module, and for obtaining, slip gesture is corresponding to terminate cursor position;
Editor module, for editing starting cursor and terminating the information of cursor position;
Judgment module, for judging whether slip gesture meets preset condition, the preset condition includes the sliding of slip gesture The absolute value of the straight slope of track is less than first predetermined value and the difference of the abscissa and starting point of the halt of slip gesture Absolute value is greater than second predetermined value;
The editor module is used to edit starting cursor and terminate the information of full line determined by cursor position, and compiles working as When volume for delete operation, the information supplement of the next line of cursor position will be originated to the initial position position Row.
7. information editing's system according to claim 6, which is characterized in that the cursor obtains module and includes:
Direction acquisition submodule, for obtaining the glide direction of the slip gesture;
Cursor position determines submodule, for determining the sliding according to the starting cursor position and the glide direction Gesture is corresponding to terminate cursor position.
8. information editing's system according to claim 7, which is characterized in that the cursor obtains module and includes:
Apart from acquisition submodule, for obtaining the sliding distance of the slip gesture;
The cursor position determines submodule for being determined according to the starting cursor position, glide direction and sliding distance The slip gesture is corresponding to terminate cursor position.
9. information editing's system according to any one of claim 6 to 8, which is characterized in that the judgment module is also used In obtaining the starting point coordinate of the slip gesture, halt coordinate and the formed near linear or directly from starting point to halt The sliding trace of line, the starting point coordinate is the coordinate for generating the trigger position where text editing triggering command, and is judged Whether the absolute value that the starting point and halt are formed by the straight slope of sliding trace is less than first predetermined value, and judges Whether the abscissa of the halt and the absolute value of the difference of starting point are greater than second predetermined value;If the starting point coordinate and stopping The absolute value of the slope for the straight line that stop coordinate is formed be less than first predetermined value and the halt abscissa and starting point it When absolute value of the difference is greater than second predetermined value, the slip gesture is effective slip gesture, and otherwise the slip event is invalid Slip gesture.
10. information editing's system according to claim 6, which is characterized in that described to be compiled as delete operation, the system Further include:
Mobile module, for the position executed after deleting information operation will to be added to close to the follow-up for deleting information On.
CN201510148636.5A 2015-03-31 2015-03-31 Information edit method and system Active CN104778006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510148636.5A CN104778006B (en) 2015-03-31 2015-03-31 Information edit method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510148636.5A CN104778006B (en) 2015-03-31 2015-03-31 Information edit method and system

Publications (2)

Publication Number Publication Date
CN104778006A CN104778006A (en) 2015-07-15
CN104778006B true CN104778006B (en) 2019-05-10

Family

ID=53619502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510148636.5A Active CN104778006B (en) 2015-03-31 2015-03-31 Information edit method and system

Country Status (1)

Country Link
CN (1) CN104778006B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183310A (en) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 Information editing method and terminal
CN106850956A (en) * 2016-12-21 2017-06-13 珠海市魅族科技有限公司 Information deletion method and device
CN107678643B (en) * 2017-09-15 2020-12-25 深圳天珑无线科技有限公司 Method and terminal for selecting text and device with storage function
CN107943388A (en) * 2017-11-14 2018-04-20 口碑(上海)信息技术有限公司 Information deletion method and device
CN108334267A (en) * 2018-02-05 2018-07-27 广东欧珀移动通信有限公司 A kind of cursor-moving method, system and terminal device
CN110324239B (en) * 2019-07-10 2021-03-26 浪潮卓数大数据产业发展有限公司 Instant messaging method, system and first client
CN112445403A (en) * 2020-11-30 2021-03-05 北京搜狗科技发展有限公司 Text processing method and device and text processing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799358A (en) * 2012-06-20 2012-11-28 中兴通讯股份有限公司 Method and device for determining display position of cursor
CN104199607A (en) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 Candidate selection method and device based on input method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2367097B1 (en) * 2010-03-19 2017-11-22 BlackBerry Limited Portable electronic device and method of controlling same
KR101677636B1 (en) * 2010-08-30 2016-11-18 엘지전자 주식회사 Mobile terminal and method for editing text thereof
WO2013067618A1 (en) * 2011-11-09 2013-05-16 Research In Motion Limited Touch-sensitive display method and apparatus
US20140109016A1 (en) * 2012-10-16 2014-04-17 Yu Ouyang Gesture-based cursor control
CN103699259B (en) * 2013-12-09 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of method of cursor positioning, system and touch apparatus
CN103914441A (en) * 2014-03-13 2014-07-09 何峰 Method for editing files on touch screens through gestures

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799358A (en) * 2012-06-20 2012-11-28 中兴通讯股份有限公司 Method and device for determining display position of cursor
CN104199607A (en) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 Candidate selection method and device based on input method

Also Published As

Publication number Publication date
CN104778006A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
CN104778006B (en) Information edit method and system
CN105511784B (en) A kind of data inputting method based on pressure detecting, device and mobile terminal
CN102799358B (en) The determination method and device of display position of cursor
CN103475849B (en) Method photographic head shooting angle being adjusted when video calling and device
CN102955658B (en) Device and method for page switching in interaction interface
CN105302464B (en) System and method for scribing flow type document
CN103257828A (en) Graffiti type full screen sliding and unlocking method
CN102801649A (en) Method and terminal for establishing shortcut of instant messaging interactive interface
CN105278818B (en) Content copying methods and device in a kind of instant message applications
CN104423869A (en) Text erasing method and device
CN103268184A (en) Method and device for moving text cursor
CN103473013B (en) The method of a kind of application interface regulation and mobile terminal
CN104298437A (en) Text selection method, device and terminal
CN105094396A (en) Element deleting method and apparatus based on touch screen
CN102750035B (en) The determination method and apparatus of display position of cursor
CN102929527A (en) Device with picture switching function and picture switching method
CN109062486B (en) Display window adjusting method and electronic equipment
CN105744062A (en) Method and system for accurately positioning text cursor
CN104049867B (en) A kind of information processing method and electronic equipment
CN106802732A (en) Object selection method and device
CN103677518B (en) Touch message responding method on a kind of mobile terminal and device
CN105988679A (en) Information presentation method and device and user equipment
CN104932769A (en) Web page display method and device
CN103530046A (en) Electronic equipment and selecting method of screen display content
CN103218161A (en) Operating method and system for multi-point touch based mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant