CN107423273A - A kind of method for editing text and device - Google Patents

A kind of method for editing text and device Download PDF

Info

Publication number
CN107423273A
CN107423273A CN201710321544.1A CN201710321544A CN107423273A CN 107423273 A CN107423273 A CN 107423273A CN 201710321544 A CN201710321544 A CN 201710321544A CN 107423273 A CN107423273 A CN 107423273A
Authority
CN
China
Prior art keywords
word
operable
special
editor
portmanteau
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.)
Granted
Application number
CN201710321544.1A
Other languages
Chinese (zh)
Other versions
CN107423273B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Hammer Numeral Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hammer Numeral Science And Technology Co Ltd filed Critical Beijing Hammer Numeral Science And Technology Co Ltd
Priority to CN201710321544.1A priority Critical patent/CN107423273B/en
Publication of CN107423273A publication Critical patent/CN107423273A/en
Application granted granted Critical
Publication of CN107423273B publication Critical patent/CN107423273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of method for editing text, including:Display target text;In response to enabling notice to the editor of the target text, generate and show the multiple first operable objects, the first operable object includes at least one character of the target text;In response to the edit instruction to the described first operable object, edit operation corresponding to the edit instruction is performed to the first operable object.So, user can directly choose the first operable object to carry out edit operation when the content to target text carries out edit operation, choose operation that the editor to target text can be achieved without complex text, edit operation is simple and convenient.

Description

A kind of method for editing text and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for editing text and device.
Background technology
With the popularization of mobile phone, people can receive largely on the portable set such as mobile phone or tablet personal computer daily Text message.For example, message, web page contents and text news of short message, instant messaging class software or other software push etc..When , it is necessary to position a cursor over text interested first when people want to enter edlin to word content interested in text message At word content, then the word to choosing carries out follow-up operation, and operating process is complicated, operation is inconvenient.
The content of the invention
In view of this, the invention provides a kind of method for editing text and device, can solve the problem that in the prior art to text The problem of edit operation process of content is complicated, inconvenient in information.
A kind of method for editing text provided in an embodiment of the present invention, applied to mobile terminal, including:
Display target text;
In response to enabling notice to the editor of the target text, generate and show the multiple first operable objects, it is described First operable object includes at least one character of the target text;
In response to the edit instruction to the described first operable object, the edit instruction is performed to the first operable object Corresponding edit operation.
Optionally, it is described to generate and show the multiple first operable objects, also include afterwards:
Generate and show editor's cursor;
The moving operation to editor's cursor is monitored, the moving operation carries the target location of editor's cursor;
Judge whether the target location falls in the described first operable object;
If so, then adjust the display location of the first operable object, first can be grasped at this so that the target location falls Make outside object.
Optionally, methods described, in addition to:
The input content of monitoring users;
Multiple second operable objects are inserted in the display location of editor's cursor, the second operable object includes At least one character of the input content.
Optionally, the display target text, is specifically included:
The target text is segmented, obtains word segmentation result;
Generate and show multiple view controls, each view control includes a participle of the word segmentation result.
Optionally, it is described to generate and show the multiple first operable objects, specifically include:
The portmanteau word in the word segmentation result is searched, the portmanteau word includes at least two individual characters, or, at least one individual character With at least one special word, the special word includes numeral, symbol and letter;
When the portmanteau word found only includes individual character, the portmanteau word is split as multiple individual characters;
When the portmanteau word found includes individual character and special word, if the special word in the portmanteau word continuously occurs, The special word that the portmanteau word is split as individual character and continuously occurred;If the special word in the portmanteau word is special including individually occurring Word and the special word continuously occurred, then the special word for the portmanteau word is split as individual character, individually occurring and continuously occur it is special Word;If the special word in the portmanteau word individually occurs, the special word that the portmanteau word is split as into individual character and individually occurred;
The the multiple first operable object is shown, each first operable object includes one in the word segmentation result A split result of portmanteau word in non-combined word or the word segmentation result, the non-combined word are an individual character or at least one The special word.
Optionally, it is described to generate and show multiple view controls, also include afterwards:
In response to enabling notice to the editor of at least one view control, the view control is split as multiple three Operable object, the 3rd operable object include at least one character in the view control;
In response to the edit instruction to the 3rd operable object, the edit instruction is performed to the 3rd operable object Corresponding edit operation.
Optionally, at least one character is individual character, the special word individually occurred and the special word continuously occurred In any one, the special word includes numeral, symbol and letter.
A kind of text editing apparatus provided in an embodiment of the present invention, applied to mobile terminal, including:Display module, control Module and editor module;
The display module, for display target text;It is additionally operable to show the multiple first operable objects, described first can Operation object includes at least one character of the target text;
The control module, in response to enabling the editor of the target text notice, generation multiple first can to grasp Make object and control the display module to show the multiple first operable object;
The editor module, it is first operable to this in response to the edit instruction to the described first operable object Object performs edit operation corresponding to the edit instruction.
Optionally, in addition to:Monitor module, judge module,
The control module, it is additionally operable to generate and controls display module display editor's cursor;
The monitoring module, for monitoring the moving operation to editor's cursor, the moving operation carries the volume Collect the target location of cursor;
The judge module, for judging whether the target location falls in the described first operable object;
The control module, it is first operable right when being, to adjust this to be additionally operable to the judged result when the judge module The display location of elephant, so that the target location falls outside the first operable object.
Optionally, the monitoring module, it is additionally operable to the input content of monitoring users;
The control module, it is additionally operable to insert multiple second operable objects, institute in the display location of editor's cursor Stating the second operable object includes at least one character of the input content.
Optionally, the display module, is specifically included:Segment submodule and control generation submodule;
The participle submodule, for being segmented to the target text, obtain word segmentation result;
The control generates submodule, and for generating and showing multiple view controls, each view control includes described point One participle of word result.
Optionally, the control module, is specifically included:Search submodule, split submodule and display sub-module;
The lookup submodule, for searching the portmanteau word in the word segmentation result, the portmanteau word includes at least two Individual character, or, at least one individual character and at least one special word, the special word include numeral, symbol and letter;
The fractionation submodule, for when the portmanteau word found only includes individual character, the portmanteau word being split as multiple Individual character;It is additionally operable to when the portmanteau word found includes individual character and special word, if the special word in the portmanteau word continuously occurs, The special word that the portmanteau word is then split as individual character and continuously occurred;If the special word in the portmanteau word includes the spy individually occurred Different word and the special word continuously occurred, the then special word for the portmanteau word is split as individual character, individually occurring and the spy continuously occurred Different word;If the special word in the portmanteau word individually occurs, the special word that the portmanteau word is split as into individual character and individually occurred;
The display sub-module, for showing the multiple first operable object, each first operable object includes A split result of portmanteau word, the non-combined word in a non-combined word or the word segmentation result in the word segmentation result For an individual character or at least one special word.
Optionally, the control module, it is additionally operable in response to enabling notice to the editor of at least one view control, The view control is split as multiple 3rd operable objects, the 3rd operable object is included in the view control at least One character;
The editor module, it is additionally operable to, in response to the edit instruction to the 3rd operable object, to grasp to the 3rd Edit operation corresponding to the edit instruction is performed as object.
Optionally, at least one character is individual character, the special word individually occurred and the special word continuously occurred In any one, the special word includes numeral, symbol and letter.
Compared with prior art, the present invention at least has advantages below:
In the embodiment of the present invention, after display target text, in response to enabling instruction to the editor of target text, into volume The pattern of collecting, generates and shows the multiple first operable objects, wherein, each first operable object includes target text at least One character.When receiving the edit instruction to the first operable object, the editor is performed to the first operable object and referred to Edit operation corresponding to order.So, in embodiments of the present invention, into after edit pattern, target text is split as multiple One operable object, user can directly choose the first operable object when the content to target text carries out edit operation Edit operation is carried out, chooses operation that the editor to target text can be achieved without complex text, edit operation is simple and convenient.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of existing schematic diagram of method for editing text;
Fig. 2 is a kind of schematic flow sheet of method for editing text provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram that the first operable object avoids editor's cursor in the embodiment of the present invention;
Fig. 4 is to be generated in the embodiment of the present invention and show the schematic flow sheet of the multiple first operable objects;
Fig. 5 is the schematic diagram for the multiple first operable objects for generating and showing in the embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another method for editing text provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of text editing apparatus provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only this Invention part of the embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art exist The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The present inventor has found under study for action, existing method for editing text, is the positioning and shifting by cursor Move to realize the edit operations such as increase, deletion, duplication, shearing, stickup and movement to text.With the mobile phone operation of Apple Inc. Exemplified by system, user realizes the positioning to cursor by word magnifying function, specific as shown in Figure 1.User is needed first to light Mark accurately position or movement, then enters edlin, complex operation to text.Partial content especially in text is adjusted Position when, it is necessary to first pass through the movement of cursor, it is selected and shear down and need mobile word content, then position a cursor over target Behind position, the word content under the shearing is pasted.Therefore, not only operating process is complicated for existing method for editing text, it is also necessary to Accurate cursor positioning could realize the edit operation to target text.
Therefore, the embodiments of the invention provide a kind of method for editing text and device, in the text that user it is expected to editor Hold, shown in the form of multiple operable objects, each operable object includes at least one character of target text.When with When edlin is entered in family to target text, corresponding edit operation directly can be carried out to operable object, edit cursor It can be positioned directly between operable object, be that the edit operation to target text can be achieved without cumbersome edit operation, It is that the precise positioning of cursor can be achieved without complex operations, can solve the problem that existing edit methods complex operation, cursor are accurate The problem of positioning.
It should be noted that method for editing text provided in an embodiment of the present invention and device, applied to mobile terminal, the shifting Dynamic terminal can be the mobile terminal device (i.e. touch control terminal) for having touch sensing function, such as touch-screen mobile phone, tablet personal computer Mobile terminal with touch screen, its extraneous touch-control sensed include and are not limited to single-point or multiple spot pressing, single-point or multiple spot Slide, single-point or multiple point touching, single-point or multipoint pressure touch-control and touch area sensing etc..When extraneous touch-control meets accordingly Sensing threshold value when, touch control terminal can sense the extraneous touch-control.Certainly, the mobile terminal can also be that other are connected with behaviour Making device (such as mouse, keyboard) has the mobile terminal device of display function, and the equipment can be shown by the operation device The content shown is operated.
It should also be noted that, method for editing text provided in an embodiment of the present invention and device are any in running of mobile terminal It can be achieved in the case of application program.The application program includes but is not limited to short message, web page browsing, real-time communication and other tool There is program of text importing function etc..
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention Embodiment be described in detail.
Embodiment of the method:
Referring to Fig. 2, the figure is a kind of schematic flow sheet of method for editing text provided in an embodiment of the present invention.
The method for editing text that the present embodiment provides, comprises the following steps S201-S203.
S201:Display target text.
It is understood that target text is the content of text that mobile terminal user it is expected editor.
S202:In response to enabling notice to the editor of target text, generate and show the multiple first operable objects, first Operable object includes at least one character of target text.
It is understood that starting notice to the editor of target text, i.e. user it is expected to enter target text edlin behaviour As when the operational notification that triggers.When receiving the editor and enabling notice, into edit pattern, so that user can be easily right Target text carries out edit operation.In edit pattern, target text is split into the multiple first operable objects to show, often Individual first operable object includes at least one character of target text.User directly can perform to the first operable object The edit operation such as duplication, shearing, deletion, mobile, to realize the editor to target text, without complicated edit operation.
Edited for the ease of user, as an example, at least one character of target text is individual character, individually occurred Any one in special word and the special word continuously occurred, special word include numeral, symbol and letter.
Explanation is needed exist for, individual character is that can represent a meaning in target text by a single word Content (such as Chinese character, Japanese, Korean), each individual character in the content are shown by a first operable object respectively.Target The needs such as numeral that text includes, letter, symbol it is multiple it is continuous occur just expressing completely look like contents (such as phone, numerical value, English word, E-mail address etc.), integrally shown by a first operable object;Symbol in target text can divide Do not shown by a first operable object.
For example, when target text is " firm telephone:12345678 ", then generating and showing includes content respectively 6 the first operable objects:" public affairs ", " department ", " electricity ", " words ", ":”、“12345678”.It should be noted that when target text This includes continuous alphabetical (such as English word) or continuous digital (such as telephone number) or continuous numeral and letter mixing When (such as X1) or continuous numeral, symbol and letter mixing (such as E-mail address), shown by a first operable object The edit operation of user can be facilitated.
S203:In response to the edit instruction to the first operable object, the editor is performed to the first operable object and referred to Edit operation corresponding to order.
It is understood that duplication, deletion, shearing, shifting are included but is not limited to the edit instruction of the first operable object Move.
In practical operation, when entering edlin to the first operable object, user first selects to need one into edlin Or multiple first operable objects, then to volume corresponding to the first operable objects trigger duplication, deletion or shearing manipulation of selection Collect instruction, you can complete the corresponding operating to the first operable object.When performing moving operation, user can be directly by choosing The the first operable object selected is dragged to desired position, to complete the movement to the first operable object.Obviously, Mei Ge Cannot occur covering display between one operable object, the display location of remaining the first operable object is adjusted in movement The on the move first operable object is avoided, the first of selection the operable object is moved to desired position.
It should also be noted that, need to edit volume of the cursor to target text increasing target text, pasting etc. When collecting the edit operation that position is positioned, editor's cursor can be positioned directly in outside the first operable object or two first can Between operation object, the process without complexity can be achieved to be accurately positioned cursor.
In order to ensure edit cursor be accurately positioned in outside the first operable object or two the first operable objects between, It is further comprising the steps of after step S202 in the possible implementation of some of the present embodiment:Generate and show editor's cursor; The moving operation to editing cursor is monitored, moving operation carries the target location of editor's cursor;Judge whether target location falls In first operable object;If so, then adjust the display location of the first operable object so that target location fall this first Outside operable object.
It should be noted that the position of editor's cursor generation can be at the beginning of target text or at ending, can also It is the optional position among target text, the embodiment of the present invention does any restriction not to this, and those skilled in the art can basis It is actually needed specific setting.
In practical operation, the first operable object can avoid to the movement for editing cursor, i.e. adjustment editor's light The first operable object near display location is marked, increasing the distance between two first operable objects falls editor's cursor It is specific as shown in Figure 3 between two the first operable objects or outside the first operable object.
In some possible implementations of the present embodiment, easily target text can also be performed and paste and input Deng the operation of increase content of text, comprise the following steps that:The input content of monitoring users;In the display location insertion of editor's cursor Multiple second operable objects, the second operable object include at least one character of the input content.
The input content of user can be by the content of text of input through keyboard or after text replicates or shears The content of stickup.
Similarly, at least one character of input content is individual character, the special word individually occurred and the special word continuously occurred In any one, special word includes numeral, symbol and letter.
It is understood that the input content of user is split into after the second operable object shows, user can pass through Edit operation to the second operable object, continue to carry out easily edit operation to the content newly inputted in target text.
In the embodiment of the present invention, after display target text, in response to enabling instruction to the editor of target text, enter Edit pattern, generate and show the multiple first operable objects, wherein, each first operable object includes target text extremely A few character.When receiving the edit instruction to the first operable object, the editor is performed to the first operable object Edit operation corresponding to instruction.So, in embodiments of the present invention, into after edit pattern, target text is split as multiple First operable object, for user when carrying out edit operation to the content of target text, it is first operable right directly to choose As carrying out edit operation, choose operation that the editor to target text can be achieved without complex text, edit operation is simple and convenient.
It is exemplified below, in the embodiment of the present invention, generates and show the specific method of the multiple first operable objects, has Body is as shown in Figure 4.It is understood that being merely illustrative below, any restriction is not done to the present invention.
In one example, step S201 is specifically included:
S2011:Target text is segmented, obtains word segmentation result.
S2012:Generate and show multiple view controls, each view control includes a participle of word segmentation result.
Participle, refer to a word sequence being cut into single word, word or name entity etc. one by one.Participle Process is exactly according to certain specification, and continuous word sequence is reassembled into single word, word or name entity sequence Process.And entity is named to refer to name, mechanism name, place name and other all entities with entitled mark.It is more extensive Entity also include numeral, date, currency, address etc..For example, " firm telephone:12345678 " word segmentation result can be " public Department ", " phone ", ":”、“12345678”.The word segmentation result of target text is shown in the form of view control, can conveniently be used Family selects content interested to carry out next step operation from word segmentation result.
Then, generated in step S202 and show the multiple first operable objects, specifically include step S2021-S2023.
S2021:Search the portmanteau word in word segmentation result, portmanteau word includes at least two individual characters, or, at least one individual character with At least one special word, special word include numeral, symbol and letter.
For example, portmanteau word can be a Chinese phrase, such as " company ", " phone ", can also be Chinese and numeral Combination, such as " 2017 ", " divine boat 8 ", can also be combination etc. of Chinese and letter, will not enumerate here.
S2022:Each portmanteau word in word segmentation result is split, obtains the split result of the portmanteau word.
Specifically, when the portmanteau word found only includes individual character, the portmanteau word is split as multiple individual characters.For example, will " company " is split as " public affairs " and " department ".
When the portmanteau word found includes individual character and special word, if the special word in the portmanteau word continuously occurs, The special word that the portmanteau word is split as individual character and continuously occurred.For example, " 2017 " are split as " 2017 " and " year ".
If the special word in the portmanteau word includes the special word individually occurred and the special word continuously occurred, this is combined Word is split as individual character, the special word individually occurred and the special word continuously occurred.For example, " No. 1 Room of Unit 1, building 101 " is split as " 1 ", " number ", " building ", " 1 ", " list ", " member ", " 101 " and " room ".
If the special word in the portmanteau word individually occurs, the portmanteau word is split as individual character and individually occur it is special Word.For example, " A-grade in the first class " is split as " first " and " A ".
In general, user when entering edlin to target text, is compiled mainly for word single in target text Volume, therefore, in order to realize the convenient edit operation to target text, then need to take apart the portmanteau word in word segmentation result, use The individual Chinese character that family can be directed to target text enters edlin.For example, " company " is split as " public affairs " and " department ".And for participle As a result the non-combined word in, such as special word that continuously occurs, general user individually will not enter edlin to its content, then can be with Overall form includes non-combined word to edit use for user in a first operable object.
S2023:Show the multiple first operable objects, include in word segmentation result one of each first operable object is non- A split result of portmanteau word in portmanteau word or word segmentation result, non-combined word are an individual character or at least one special word.
In practical operation, the Chinese in the word segmentation result of target text can be split as individual character, in word segmentation result Numeral with letter do not split, each first operable object show one fractionation after word segmentation result.Fig. 5 exemplified one Multiple first operable objects of the corresponding generation of kind target text.
The embodiment of the present invention additionally provides another method for editing text, can be with after being segmented to target text Easily edit operation is carried out for the part participle in word segmentation result, this method is specific as shown in fig. 6, comprising the following steps S601-S604。
Firstly the need of explanation, S601-S602 in the present embodiment respectively with the step in above method embodiment S2011-S2012 is identical, repeats no more here.
S603:In response to enabling notice to the editor of at least one view control, the view control is split as multiple Three operable objects, the 3rd operable object include at least one character in the view control.
Notify similar with enabling the editor of target text, notice is started to the editor of at least one view control, that is, used It is expected to carry out at least one view control the operational notification of triggering during edit operation in family.Notice is enabled receiving the editor When, into edit pattern, so that the content that user easily can show at least one view control carries out edit operation. In edit pattern, at least one view control is split into multiple 3rd operable objects to show, each 3rd is operable Object includes at least one character of at least one view control.User directly can perform multiple to the 3rd operable object The edit operation such as system, shearing, deletion, mobile, to realize the editor at least one view control, the editor without complexity grasps Make.
It is understood that the method for the 3rd operable object of generation is similar with the method for generating the first operable object, It is specific to may refer to illustrate corresponding to Fig. 4, repeat no more here.
Similarly, at least one character in view control be individual character, the special word individually occurred and continuously occur it is special Any one in word, special word include numeral, symbol and letter.
S604:In response to the edit instruction to the 3rd operable object, the editor is performed to the 3rd operable object and referred to Edit operation corresponding to order.
It is understood that it is identical with the editor to the first operable object to the editor of the 3rd operable object, specifically Illustrate, referring to embodiment of the method above, to repeat no more here.
It should also be noted that, being increased in the content at least one view control, pasted etc. needs to edit cursor During the edit operation positioned to editor position, it is outer or two that editor's cursor can be positioned directly in the 3rd operable object Between three operable objects.The content of view control is increased, pasted etc. to need to edit cursor and editor position is determined The method of the edit operation of position is carried out with being increased the content of target text, being pasted etc. to need to edit cursor to editor position The method of the edit operation of positioning is similar, also repeats no more here.
In order to ensure edit cursor be accurately positioned in outside the first operable object or two the first operable objects between, In the possible implementation of some of the present embodiment, step is also included after step S604:Generate and show editor's cursor; The moving operation to editing cursor is monitored, moving operation carries the target location of editor's cursor;Judge whether target location falls In 3rd operable object or view control;If so, the 3rd operable object or the display location of the view control are then adjusted, So that target location falls outside the 3rd operable object or the view control.
In the present embodiment, after the word segmentation result of display target text, in response to being segmented to the part in word segmentation result Editor enable notice, edit pattern can be entered, generate and show multiple 3rd operable objects, wherein each 3rd can grasp Making object includes at least one character of part participle.When receiving the edit instruction to the 3rd operable object, to this 3rd operable object performs edit operation corresponding to editor execution.So, in the present embodiment, user directly chooses the 3rd Operable correspondence enters edlin, you can quickly and easily enters edlin to the partial content in target text.
Device embodiment:
Referring to Fig. 7, the figure is a kind of structural representation of text editing apparatus provided in an embodiment of the present invention.
The text editing apparatus that the present embodiment provides, including:Display module 100, control module 200 and editor module 300;
Display module 100, for display target text;It is additionally operable to show the multiple first operable objects, first is operable Object includes at least one character of target text.
As an example, at least one character of target text is individual character, the special word individually occurred and continuous appearance Special word in any one, special word includes numeral, symbol and letter.
Control module 200, in response to enabling the editor of target text notice, generating multiple first operable objects And display module is controlled to show the multiple first operable objects.
Editor module 300, in response to the edit instruction to the first operable object, being held to the first operable object Edit operation corresponding to the row edit instruction.
In the possible implementation of the present embodiment, the device also includes:Monitor module and judge module;
Control module 200, it is additionally operable to generate and controls display module display editor's cursor;It is additionally operable to sentencing when judge module Disconnected result is that the display location of the first operable object is adjusted when being, so that target location falls in the first operable object Outside.
Module is monitored, for monitoring the moving operation to editing cursor, moving operation carries the target location of editor's cursor.
Judge module, for judging whether target location falls in the first operable object.
In the possible implementation of the present embodiment, module is monitored, is additionally operable to the input content of monitoring users;Control module 200, it is additionally operable to insert multiple second operable objects in the display location of editor's cursor, the second operable object is included in input At least one character held.
As an example, at least one character of input content is individual character, the special word individually occurred and continuous appearance Special word in any one, special word includes numeral, symbol and letter.
In the embodiment of the present invention, after display target text, in response to enabling instruction to the editor of target text, enter Edit pattern, generate and show the multiple first operable objects, wherein, each first operable object includes target text extremely A few character.When receiving the edit instruction to the first operable object, the editor is performed to the first operable object Edit operation corresponding to instruction.So, in embodiments of the present invention, into after edit pattern, target text is split as multiple First operable object, for user when carrying out edit operation to the content of target text, it is first operable right directly to choose As carrying out edit operation, choose operation that the editor to target text can be achieved without complex text, edit operation is simple and convenient.
It is exemplified below, in the embodiment of the present invention, generates and show the specific method of the multiple first operable objects.
In the possible implementation of the present embodiment, display module 100 specifically includes:Segment submodule and control generation Module;
Submodule is segmented, for being segmented to target text, obtains word segmentation result.
Control generates submodule, and for generating and showing multiple view controls, each view control includes word segmentation result One participle.
In the possible implementation of the present embodiment, control module 200 specifically includes:Search submodule, split submodule And display sub-module;
Submodule is searched, for searching the portmanteau word in word segmentation result, portmanteau word includes at least two individual characters, or, at least One individual character and at least one special word, special word include numeral, symbol and letter.
Submodule is split, for when the portmanteau word found only includes individual character, the portmanteau word to be split as into multiple individual characters; It is additionally operable to when the portmanteau word found includes individual character and special word, will if the special word in the portmanteau word continuously occurs The special word that the portmanteau word is split as individual character and continuously occurred;If the special word in the portmanteau word includes the special word individually occurred The special word continuously occurred, the then special word for the portmanteau word is split as individual character, individually occurring and the special word continuously occurred; If the special word in the portmanteau word individually occurs, the special word that the portmanteau word is split as into individual character and individually occurred.
Display sub-module, for showing the multiple first operable objects, each first operable object includes word segmentation result In a non-combined word or word segmentation result in portmanteau word a split result, non-combined word is an individual character or at least one Special word.
The embodiment of the present invention additionally provides another text editing apparatus, can be right after being segmented to target text Part participle in word segmentation result carries out easily edit operation, specifically:
Control module 200, it is additionally operable in response to enabling notice to the editor of at least one view control, by the view control Multiple 3rd operable objects are split as, the 3rd operable object includes at least one character in the view control.
As an example, at least one character in view control is individual character, the special word individually occurred and continuously gone out Any one in existing special word, special word include numeral, symbol and letter.
Editor module 300, it is additionally operable in response to the edit instruction to the 3rd operable object, to the 3rd operable object Perform edit operation corresponding to the edit instruction.
In the present embodiment, after the word segmentation result of display target text, in response to being segmented to the part in word segmentation result Editor enable notice, edit pattern can be entered, generate and show multiple 3rd operable objects, wherein each 3rd can grasp Making object includes at least one character of part participle.When receiving the edit instruction to the 3rd operable object, to this 3rd operable object performs edit operation corresponding to editor execution.So, in the present embodiment, user directly chooses the 3rd Operable correspondence enters edlin, you can quickly and easily enters edlin to the partial content in target text.
It should be noted that each embodiment is described by the way of progressive in this specification, each embodiment emphasis is said Bright is all the difference with other embodiment, between each embodiment identical similar portion mutually referring to.For reality For applying device disclosed in example, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is joined See method part illustration.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention.Though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention.It is any to be familiar with those skilled in the art Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention Technical scheme makes many possible changes and modifications, or is revised as the equivalent embodiment of equivalent variations.Therefore, it is every without departing from The content of technical solution of the present invention, the technical spirit according to the present invention is to any simple modification made for any of the above embodiments, equivalent Change and modification, still fall within technical solution of the present invention protection in the range of.

Claims (14)

  1. A kind of 1. method for editing text, it is characterised in that methods described is applied to mobile terminal, including:
    Display target text;
    In response to enabling notice to the editor of the target text, generate and show the multiple first operable objects, described first Operable object includes at least one character of the target text;
    In response to the edit instruction to the described first operable object, it is corresponding that the edit instruction is performed to the first operable object Edit operation.
  2. 2. method for editing text according to claim 1, it is characterised in that described to generate and show that multiple first is operable Object, also include afterwards:
    Generate and show editor's cursor;
    The moving operation to editor's cursor is monitored, the moving operation carries the target location of editor's cursor;
    Judge whether the target location falls in the described first operable object;
    If so, then adjust the display location of the first operable object so that the target location fall it is first operable right at this As outside.
  3. 3. method for editing text according to claim 2, it is characterised in that methods described, in addition to:
    The input content of monitoring users;
    Multiple second operable objects are inserted in the display location of editor's cursor, the second operable object includes described At least one character of input content.
  4. 4. method for editing text according to claim 1, it is characterised in that the display target text, specifically include:
    The target text is segmented, obtains word segmentation result;
    Generate and show multiple view controls, each view control includes a participle of the word segmentation result.
  5. 5. the method for editing text according to claim 4, it is characterised in that described to generate and show that multiple first is operable Object, specifically include:
    Search the portmanteau word in the word segmentation result, the portmanteau word includes at least two individual characters, or, at least one individual character and extremely A few special word, the special word include numeral, symbol and letter;
    When the portmanteau word found only includes individual character, the portmanteau word is split as multiple individual characters;
    , should if the special word in the portmanteau word continuously occurs when the portmanteau word found includes individual character and special word The special word that portmanteau word is split as individual character and continuously occurred;If special word in the portmanteau word include the special word individually occurred and The special word continuously occurred, the then special word for the portmanteau word is split as individual character, individually occurring and the special word continuously occurred;If Special word in the portmanteau word individually occurs, then the special word for the portmanteau word being split as into individual character and individually being occurred;
    The the multiple first operable object is shown, each first operable object includes one non-group in the word segmentation result A split result of portmanteau word in word or the word segmentation result is closed, the non-combined word is an individual character or at least one described Special word.
  6. 6. method for editing text according to claim 4, it is characterised in that it is described to generate and show multiple view controls, Also include afterwards:
    In response to enabling notice to the editor of at least one view control, the view control is split as into multiple three to grasp Make object, the 3rd operable object includes at least one character in the view control;
    In response to the edit instruction to the 3rd operable object, it is corresponding that the edit instruction is performed to the 3rd operable object Edit operation.
  7. 7. according to the method for editing text described in claim 1,3 and 6 any one, it is characterised in that at least one word Accord with the special word for individual character, individually occurred and the special word that continuously occurs in any one, the special word includes number Word, symbol and letter.
  8. A kind of 8. text editing apparatus, it is characterised in that described device is applied to mobile terminal, including:Display module, control mould Block and editor module;
    The display module, for display target text;It is additionally operable to show the multiple first operable objects, described first is operable Object includes at least one character of the target text;
    The control module, in response to enabling the editor of the target text notice, it is operable right to generate multiple first As and control the display module to show the multiple first operable object;
    The editor module, in response to the edit instruction to the described first operable object, to the first operable object Perform edit operation corresponding to the edit instruction.
  9. 9. text editing apparatus according to claim 8, it is characterised in that also include:Monitor module, judge module,
    The control module, it is additionally operable to generate and controls display module display editor's cursor;
    The monitoring module, for monitoring the moving operation to editor's cursor, the moving operation carries editor's light Target target location;
    The judge module, for judging whether the target location falls in the described first operable object;
    The control module, it is additionally operable to, when the judged result of the judge module is is, adjust the first operable object Display location, so that the target location falls outside the first operable object.
  10. 10. text editing apparatus according to claim 9, it is characterised in that
    The monitoring module, it is additionally operable to the input content of monitoring users;
    The control module, it is additionally operable to insert multiple second operable objects in the display location of editor's cursor, described the Two operable objects include at least one character of the input content.
  11. 11. text editing apparatus according to claim 8, it is characterised in that the display module, specifically include:Participle Submodule and control generation submodule;
    The participle submodule, for being segmented to the target text, obtain word segmentation result;
    The control generates submodule, and for generating and showing multiple view controls, each view control includes the participle and tied A participle for fruit.
  12. 12. the text editing apparatus according to claim 11, it is characterised in that the control module, specifically include:Search Submodule, split submodule and display sub-module;
    The lookup submodule, for searching the portmanteau word in the word segmentation result, the portmanteau word includes at least two individual characters, Or, at least one individual character and at least one special word, the special word include numeral, symbol and letter;
    The fractionation submodule, for when the portmanteau word found only includes individual character, the portmanteau word to be split as into multiple individual characters; It is additionally operable to when the portmanteau word found includes individual character and special word, will if the special word in the portmanteau word continuously occurs The special word that the portmanteau word is split as individual character and continuously occurred;If the special word in the portmanteau word includes the special word individually occurred The special word continuously occurred, the then special word for the portmanteau word is split as individual character, individually occurring and the special word continuously occurred; If the special word in the portmanteau word individually occurs, the special word that the portmanteau word is split as into individual character and individually occurred;
    The display sub-module, for showing the multiple first operable object, each first operable object includes described A split result of portmanteau word in a non-combined word or the word segmentation result in word segmentation result, the non-combined word are one Individual individual character or at least one special word.
  13. 13. text editing apparatus according to claim 11, it is characterised in that
    The control module, it is additionally operable in response to enabling notice to the editor of at least one view control, by the view control Part is split as multiple 3rd operable objects, and the 3rd operable object includes at least one character in the view control;
    The editor module, it is additionally operable in response to the edit instruction to the 3rd operable object, it is operable to the 3rd right The edit operation as corresponding to performing the edit instruction.
  14. 14. according to the text editing apparatus described in claim 8,10 and 13 any one, it is characterised in that described at least one Character is any one in individual character, the special word individually occurred and the special word continuously occurred, and the special word includes Numeral, symbol and letter.
CN201710321544.1A 2017-05-09 2017-05-09 Text editing method and device Active CN107423273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710321544.1A CN107423273B (en) 2017-05-09 2017-05-09 Text editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710321544.1A CN107423273B (en) 2017-05-09 2017-05-09 Text editing method and device

Publications (2)

Publication Number Publication Date
CN107423273A true CN107423273A (en) 2017-12-01
CN107423273B CN107423273B (en) 2020-05-05

Family

ID=60425510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710321544.1A Active CN107423273B (en) 2017-05-09 2017-05-09 Text editing method and device

Country Status (1)

Country Link
CN (1) CN107423273B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN103472998A (en) * 2013-09-27 2013-12-25 小米科技有限责任公司 Method, device and terminal equipment for character selection
CN105095170A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Text deleting method and device
CN106126052A (en) * 2016-06-23 2016-11-16 北京小米移动软件有限公司 Text selection method and device
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN103472998A (en) * 2013-09-27 2013-12-25 小米科技有限责任公司 Method, device and terminal equipment for character selection
CN105095170A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Text deleting method and device
CN106126052A (en) * 2016-06-23 2016-11-16 北京小米移动软件有限公司 Text selection method and device
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal

Also Published As

Publication number Publication date
CN107423273B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
EP3084635B1 (en) Formula and function generation and use in electronic spreadsheets
CN105068721B (en) A kind of actions menu display methods and terminal
CN105808058A (en) Intelligent display method and apparatus for pasting prompt
CN108279931A (en) Context pastes target prediction
CN104216600B (en) A kind of method and intelligent touch screen terminal equipment of the function that application program is provided
EP3084634B1 (en) Interaction with spreadsheet application function tokens
JP2020516994A (en) Text editing method, device and electronic device
CN103995802A (en) Method and equipment for managing electronic book notes
CN103810166A (en) Method for looking up contact person in address book and electronic terminal
CN107861932B (en) Text editing method, device and system and terminal equipment
CN104516674B (en) Literal processing method and device
CN107368511A (en) A kind of information displaying method and device
CN107992631A (en) A kind of file management method and terminal
CN112817676B (en) Information processing method and electronic device
KR20150023151A (en) Electronic device and method for executing application thereof
CN104133815A (en) Input and search method and system
CN101727201A (en) Method and device for automatically adjusting symbol rank and input method system
CN104508616A (en) Text input method and device and terminal
CN106888308B (en) A kind of method of speech processing and mobile terminal
KR20140014510A (en) Editing method of text generatied by a speech recognition and terminal thereof
CN112882623A (en) Text processing method and device, electronic equipment and storage medium
CN103838458B (en) Mobile terminal and control method of input method of mobile terminal
CN106293354B (en) Shortcut menu self-adaptive display control method, server and portable terminal
CN109445958A (en) Editing and processing method, electronic equipment and the storage medium of data
CN101770310B (en) Touch processing method and touch processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190121

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING ZIJIE TIAODONG NETWORK TECHNOLOGY CO., LTD.

Address before: 100176 Beijing Daxing District Beijing economic and Technological Development Zone, Chuang Chuang fourteen Street 99, 33 D building 3 floors 309, 310 rooms.

Applicant before: Beijing hammer numeral science and technology company limited

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant