CN107861932A - A kind of method for editing text, device and system and a kind of terminal device - Google Patents

A kind of method for editing text, device and system and a kind of terminal device Download PDF

Info

Publication number
CN107861932A
CN107861932A CN201711086257.3A CN201711086257A CN107861932A CN 107861932 A CN107861932 A CN 107861932A CN 201711086257 A CN201711086257 A CN 201711086257A CN 107861932 A CN107861932 A CN 107861932A
Authority
CN
China
Prior art keywords
text
editor
word segmentation
edit object
target text
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
CN201711086257.3A
Other languages
Chinese (zh)
Other versions
CN107861932B (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
Chengdu - Digital 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 Chengdu - Digital Technology Co Ltd filed Critical Chengdu - Digital Technology Co Ltd
Priority to CN201711086257.3A priority Critical patent/CN107861932B/en
Publication of CN107861932A publication Critical patent/CN107861932A/en
Application granted granted Critical
Publication of CN107861932B publication Critical patent/CN107861932B/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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (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, device and system and a kind of terminal device;This method, including:Obtain and show the word segmentation result of target text to be edited;Receive editor's triggering command to target text;According to editor's triggering command, the edit object in target text is determined;Receive the speech data of user's typing;According to the speech data received, corresponding edit operation is performed to edit object.User not only directly can quickly select the edit object in text, choose operation without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify text editing process when carrying out text editing.

Description

A kind of method for editing text, device and system and a kind of terminal device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for editing text, device and system and one kind Terminal 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 When people want to enter edlin to word content interested in text message, it is necessary first to position a cursor over text interested At word content, then the word to choosing carries out follow-up operation, such as increases word, the word progress to choosing newly in cursor position Replacement operation etc., editing process are complicated, inconvenient.
The content of the invention
In view of this, can the invention provides a kind of method for editing text, device and system and a kind of terminal device Solve the problems, such as complicated, inconvenient to the editing process of content in text message in the prior art.
A kind of method for editing text provided in an embodiment of the present invention, including:
Obtain and show the word segmentation result of target text to be edited;
Receive editor's triggering command to the target text;Editor's triggering command carries to be compiled in the target text Collect the mark of object;The edit object include the word segmentation result at least one participle, or, the edit object be with The adjacent editor's cursor of at least one participle in the word segmentation result;
According to editor's triggering command, the edit object in the target text is determined;
Receive the speech data of user's typing;
According to the speech data received, corresponding edit operation is performed to the edit object.
Optionally, the speech data that the basis receives, corresponding edit operation is performed to the edit object, specifically For:
The speech data is identified, the speech data is converted into pending text;
If the edit object includes at least one participle in the word segmentation result, the edit object is replaced with into institute State pending text;
If the edit object is the editor cursor adjacent with least one participle, in the position of editor's cursor Put the insertion pending text.
Optionally, it is described to obtain and show the word segmentation result of target text to be edited, be specially:
Obtain and show the target text;
In response to enabling instruction to the editor of the target text, generate and show multiple operable objects, each Operable object includes at least one character of the destination object;
Then, editor's triggering command in response to the target text, obtains the editor couple in the target text As being specially:
According to editor's triggering command, the edit object is determined in the multiple operable object.
Optionally, the speech data for receiving user's typing, it is specially:
Show voice typing button;
In response to the triggering to the voice typing button, the voice of monitoring users typing, the speech data is obtained.
Optionally, it is described that the speech data is converted into pending text, also include afterwards:
Word segmentation processing is carried out to the pending text, obtains the word segmentation result of the pending text;
Then, it is described that the edit object is replaced with into the pending text, be specially:
The edit object is replaced with the word segmentation result of the pending text;
It is described to insert the pending text in the position of editor's cursor, be specially:
Go out to insert the word segmentation result of the pending text in editor's cursor.
The embodiment of the present invention additionally provides a kind of method for editing text, applied to first terminal equipment, methods described, bag Include:
Obtain and show the word segmentation result of target text to be edited;
Receive editor's triggering command to the target text;Editor's triggering command carries to be compiled in the target text Collect the mark of object;The edit object include the word segmentation result at least one participle, or, the edit object be with The adjacent editor's cursor of at least one participle in the word segmentation result;
Editor's triggering command is sent to second terminal equipment, so that the second terminal equipment is touched according to the editor Send instructions and determine the edit object of the target text;The second terminal equipment shows the target text;
Receive the speech data of user's typing;
The speech data received is sent to the second terminal equipment, so that the second terminal equipment is according to Speech data, corresponding edit operation is performed to the edit object.
A kind of text editing apparatus provided in an embodiment of the present invention, including:It is data acquisition module, command reception module, right As acquisition module and data processing module;
The data acquisition module, for obtaining and showing the word segmentation result of target text to be edited;
The command reception module, for receiving the edit instruction to the target text, editor's triggering command is taken Mark with edit object in the target text, the edit object include at least one participle in the word segmentation result, or Person, the edit object are the editor cursors adjacent with least one participle in the word segmentation result;It is additionally operable to receive user's record The speech data entered;
The object acquisition module, for according to editor's triggering command, obtaining the editor couple in the target text As;
The data processing module, for receiving the speech data received according to the command reception module, to described Edit object performs corresponding edit operation.
Optionally, the data processing module, is specifically included:Identify submodule;Also include:First processing submodule or the Two processing submodules;
The identification submodule, for identifying the speech data, the speech data is converted into pending text;
The first processing submodule, if including at least one participle in the word segmentation result for the edit object, The edit object is then replaced with into the pending text;
The second processing submodule, if being the editor light adjacent with least one participle for the edit object Mark, then insert the pending text in the position of editor's cursor.
Optionally, the data acquisition module, is specifically used for:
Obtain and show the target text;
In response to enabling instruction to the editor of the target text, generate and show multiple operable objects, each Operable object includes at least one character of the destination object;
Then, the object acquisition module, is specifically used for:
According to editor's triggering command, the edit object is determined in the multiple operable object.
Optionally, the command reception module, is specifically used for:
Show voice typing button;
In response to the triggering to the voice typing button, the voice of monitoring users typing, the speech data is obtained.
Optionally, described device, in addition to:Word segmentation processing module;
The word segmentation processing module, for carrying out word segmentation processing to the pending text, obtain the pending text Word segmentation result;
Then, the first processing submodule, is specifically used for:
The edit object is replaced with the word segmentation result of the pending text;
Then, the second processing submodule, is specifically used for:
Go out to insert the word segmentation result of the pending text in editor's cursor.
The embodiment of the present invention additionally provides a kind of text editing apparatus, applied to first terminal equipment, described device, bag Include:Data acquisition module, command reception module and instruction sending module;
The data acquisition module, for obtaining and showing the word segmentation result of target text to be edited;
The command reception module, for receiving editor's triggering command to the target text;Editor's triggering refers to Order carries the mark of edit object in the target text;The edit object includes in the word segmentation result at least one point Word, or, the edit object is the editor cursor adjacent with least one participle in the word segmentation result;It is additionally operable to receive and uses The speech data of family typing;
The instruction sending module, for sending editor's triggering command to second terminal equipment, so that described second Terminal device determines the edit object of the target text according to editor's triggering command;The second terminal equipment is shown The target text;The speech data for being additionally operable to receive is sent to the second terminal equipment, so that the second terminal Equipment performs corresponding edit operation according to the speech data to the edit object.
The embodiment of the present invention additionally provides a kind of text editing system, including:First terminal equipment and second terminal equipment;
The first terminal equipment, for obtaining and showing the word segmentation result of target text to be edited;It is additionally operable to receive To editor's triggering command of the target text;Editor's triggering command carries the mark of edit object in the target text Know;The edit object includes at least one participle in the word segmentation result, or, the edit object is tied with the participle The adjacent editor's cursor of at least one participle in fruit;It is additionally operable to send editor's triggering command to second terminal equipment;Also use In the speech data for receiving user's typing;The speech data for being additionally operable to receive is sent to the second terminal equipment.
The second terminal equipment, for obtaining and showing target text to be edited;It is additionally operable to according to described first eventually Editor's triggering command that end equipment is sent determines the edit object of the target text;It is additionally operable to according to the first terminal equipment The speech data of transmission, corresponding edit operation is performed to the edit object.
The embodiment of the present invention additionally provides a kind of terminal device, including:Memory and processor;
The memory, for storing computer program instructions;
The processor, for obtaining the computer program instructions of the memory storage;It is additionally operable to according to the calculating Machine programmed instruction performs the method for editing text described in above-mentioned any embodiment
Compared with prior art, the embodiment of the present application at least has advantages below:
In embodiments of the present invention, terminal device shows that target text to be edited is held for user first in the form of participle Edlin operates, and receives editor triggering command of the user to target text, and to edit triggering command to be literary according to target is obtained This edit object, then, the speech data of user's typing is received, corresponding compile is performed to edit object further according to speech data Collect operation.So, user not only directly can quickly select the edit object in text when carrying out text editing, Operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify text This editing process.
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 schematic flow sheet of method for editing text provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another method for editing text provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram for being replaced operation in the specific embodiment of the invention to target text;
Fig. 4 is the schematic diagram for carrying out newly-increased operation in the specific embodiment of the invention to target text;
Fig. 5 is the schematic flow sheet of another method for editing text provided in an 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;
Fig. 8 is the structural representation of another text editing apparatus provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of text editing system 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.
In order to simplify text editing process, the embodiments of the invention provide a kind of method for editing text and device, tie below Accompanying drawing is closed to be described in detail the embodiment of the present invention.
It should be noted that method for editing text provided in an embodiment of the present invention and device, can apply to terminal device, The terminal device can be the 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 terminal device can also be that other are connected with behaviour Making device (such as mouse, keyboard) has the terminal device of display function, and the equipment can be shown by the operation device Content is operated.In addition, method for editing text provided in an embodiment of the present invention and device, can also be applied to not possess arbitrarily The terminal device of touch sensing function, such as PC etc., it will not enumerate here.Below with applied to touch sense Exemplified by the terminal device for answering function, method for editing text provided in an embodiment of the present invention is described in detail, other do not possess The implementation of the terminal device of touch sensing function is similar, repeats no more.
It should also be noted that, method for editing text provided in an embodiment of the present invention and device are any in terminal device operation In the case of application program can be achieved, 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..
Below in conjunction with the accompanying drawings, method for editing text provided in an embodiment of the present invention and device are illustrated.
Referring to Fig. 1, 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 S101-S105.
S101:Obtain and show the word segmentation result of target text to be edited.
Participle, refer to a word sequence being cut into the mistake of single word, word or name entity etc. one by one Journey.The word segmentation result of target text be exactly according to certain specification, by continuous word sequence in target text be divided into including The result obtained after single word, word or name entity sequence.Wherein, name entity refer to name, mechanism name, place name and its His all entities with entitled mark, wider entity also include numeral, date, currency, address etc..
As an example, in the present embodiment, target text to be edited can be first obtained, using natural language algorithm Word segmentation processing is carried out to it, after obtaining word segmentation result, the word segmentation result shown.In the word segmentation result of display target text, It can show there may be spacing between each word, word or name entity in word segmentation result, also may be used to it with new window Only separated in the absence of spacing by line.Optionally, in actual applications, with the shape of touch control component in the touch interface of terminal device Formula shows each participle in word segmentation result, so that user determines that target text it is expected the edit object of editor.
It should be noted that when word segmentation result it is excessive, in the case of once showing whole word segmentation results, can not ensure to use Family can tell display content, then can once show whole word segmentation results but show user by the form of slip, Can gradation display portion word segmentation result to user, i.e., user can be by showing that complete word segmentation result is seen in renewal operation.
It is understood that target text is shown in the form of word segmentation result so that user can be directly to therefrom selecting The editor's word segmentation result gone out, or, directly region to be edited is positioned, improves the efficiency of editor.
S102:Receive editor's triggering command to target text.
Wherein, editor's triggering command carries the mark of edit object in target text, and edit object includes target text Word segmentation result at least one participle, or, edit object is and the adjacent editor of at least one participle in the word segmentation result Cursor.
In the present embodiment, editor's triggering command can be that user is triggered by the selection to edit object in target text , the desired edit object of user in target text can determine that according to editor's triggering command.The mark tool of edit object Body can be the displaing coordinate of the edit object on the terminal device etc., and those skilled in the art can be according to being actually needed to compiling Collect the edit object mark that triggering command carries and carry out equipment, the embodiment of the present invention is not limited this.
In some possible implementations, user can also be by other with the wired or wireless connection of the terminal device Terminal device triggering editor's triggering command.Accordingly, displayed that target text so as to user therefrom in the other-end equipment Selected edit object.
In actual applications, when user it is expected the partial content in target text is replaced when, can by from point The content (i.e. edit object) for it is expected to replace, triggering editor's triggering command are chosen in word result, terminal device touches according to the editor Sending instructions can determine that at least one participle is used as edit object in word segmentation result.In user's expectation increases newly in target text Rong Shi, can be by being positioned between word segmentation result that (i.e. edit object is and at least one point in word segmentation result by editor's cursor The adjacent editor's cursor of word), triggering editor's triggering command, terminal device can determine to edit cursor according to editor's triggering command As edit object.
S103:According to editor's triggering command, the edit object in target text is determined.
In embodiments of the present invention, the determination of edit object is to edit the mark of the edit object entrained by triggering command For according to determination.
S104:Receive the speech data of user's typing.
In the present embodiment, user can be by the sound pick-up outfit with the wired or wireless connection of terminal device, or passes through The sound pick-up outfit typing speech data that terminal device carries.
In practical application, it can be used by the way that the voice typing button of display is realized simultaneously on target text display interface Family the typing to speech data, is realized at typing speech data to terminal device by the touch-control to the voice typing button.One In individual example, the speech data of user's typing is received, can specifically be included:Show voice typing button;In response to Speech Record Enter the triggering of button, the voice of monitoring users typing, obtain speech data.
Similarly, in some possible implementations, user can also by with the wired or wireless connection of the terminal device Other-end equipment typing speech data.Accordingly, displayed that in the other-end equipment for receiving user's typing language The voice typing button of sound.
Explanation is needed exist for, the embodiment of the present invention is not limited above-mentioned steps S102-S104 execution sequence, When it is implemented, the edit object in target text can be obtained first, then receive the speech data of user's typing;Can also first it connect Receive the speech data of user's typing, the convenient object in target text is obtained;Etc., it will not enumerate here.
S105:According to the speech data received, corresponding edit operation is performed to edit object.
In embodiments of the present invention, terminal device shows that target text to be edited is held for user first in the form of participle Edlin operates, and receives editor triggering command of the user to target text, and to edit triggering command to be literary according to target is obtained This edit object, then, the speech data of user's typing is received, corresponding compile is performed to edit object further according to speech data Collect operation.So, user not only directly can quickly select the edit object in text when carrying out text editing, Operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify text This editing process.
Referring to Fig. 2, the figure is the schematic flow sheet of another method for editing text provided in an embodiment of the present invention.Compared to Fig. 1, this figure provides a kind of more specifical method for editing text.
In embodiments of the present invention, above-mentioned steps S105, it specifically may include steps of S1051-S1053.
S1051:The speech data of user's input is identified, converts voice data into pending text.
If the edit object obtained in step S102 includes at least one participle in word segmentation result, step S1052 is performed; If edit object is the editor cursor adjacent with least one participle, step S1053 is performed.
In actual applications, the speech data that user inputs can be converted into using any one speech recognition technology and treated Text is handled, will not enumerate here.
S1052:Edit object is replaced with into pending text.
S1053:Pending text is inserted in the position of editor's cursor.
That is, terminal device enters edlin according to the voice of user's typing to target text, and the voice conversion of typing is written At least one participle chosen is replaced after word, or, add in the position of editor's cursor.So, user can be real by voice , can be more convenient to target text executive editor and replacement operation without word for word inputting now to the editor of text.
Explanation is needed exist for, for the ease of user's subsequently operation to the target text after editor, with pending text This replacement edit object, or when editor's cursor goes out newly-increased pending text, can similarly generate and show multiple touch-control groups Part is to show the word segmentation result of pending text, in order to the subsequent operation of user.
In some possible implementations, carried out after step S1051, in addition to pending text at participle Reason, the step of obtaining the word segmentation result of pending text.During practical operation, identical segmentation methods can be used to target text Word segmentation processing is carried out with pending text, the present embodiment is not especially limited to the mode of participle.
Accordingly, step S1052 can specifically include:Edit object is replaced with the word segmentation result of pending text.Step S1053 can specifically include:Go out to insert the word segmentation result of pending text in cursor.
For example, it is assumed that the voice of user's typing is " test ", and Fig. 3 is shown in the present embodiment during replacement operation Terminal device interface, Fig. 4 are the schematic diagram at the terminal device interface when editing cursor and going out newly-increased text.It is understood that with On be only to the specific implementation of the present embodiment for example, in actual applications, those skilled in the art can be with root According to being actually needed, display situation of the pending text in target text is set using other forms, for example, it is highlighted aobvious Show, the form such as overstriking is shown with pending text of protrusion etc., will not enumerate here.
The method for editing text provided based on above-described embodiment, the embodiment of the present invention additionally provide another specific text Edit methods, in order to selection of the user to edit object in target text.
Referring to Fig. 5, the figure is the schematic flow sheet of another method for editing text provided in an embodiment of the present invention.
In the present embodiment, step S101 specifically includes following steps S501-S502.
S501:Obtain simultaneously display target text.
It is understood that target text is the content of text that user it is expected editor.
S502:In response to enabling instruction to the editor of target text, generate and show multiple operable objects.
Editor's enabled instruction to target text, i.e. user it is expected to carry out target text the operation of triggering during edit operation Instruction.When receiving the editor and enabling instruction, edit pattern is introduced into, so that user easily can be carried out to target text Edit operation.In edit pattern, target text is split into multiple operable objects (i.e. touch control component) and shown, can each be grasped Making object includes at least one character of target text.User can select after one or more operable objects are used as and sequel Collect the edit object of 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 an operable object respectively.Target text The needs such as the numeral that includes, letter, symbol are multiple continuous to there are content (such as phone, numerical value, the English that just expression completely looks like Word, E-mail address etc.), integrally shown by an operable object;Symbol in target text can be respectively by one Operable object is shown.
For example, when target text is " firm telephone:12345678 ", then generating and showing includes content respectively 6 operable objects:" public affairs ", " department ", " electricity ", " words ", ":”、“12345678”.It should be noted that when in target text Including continuous alphabetical (such as English word) or continuous digital (such as telephone number) or continuous numeral and letter mixing (such as X1 when) or continuous numeral, symbol and letter mix (such as E-mail address), shown and can be facilitated by an operable object The edit operation of user.
Then, in the present embodiment, step S103 is specially:
According to editor's triggering command to target text, edit object is determined in multiple operable objects.
That is, editor's triggering command of user is according to multiple operable objects triggers.For example, user selectes one of them Or multiple operable objects perform replacement operation, triggering editor's triggering command, then edit object is that the one or more is operable Object;User will edit cursor and be positioned at new content near one or more operable objects, and triggering command is edited in triggering, then Edit object is the location of editor's cursor.
Then, terminal device receives the speech data of user's typing, and according to the speech data received, edit object is held The corresponding edit operation of row.
It is understood that terminal device performs corresponding operation readiness according to the data of user's typing to edit object Process is identical with the embodiment shown in Fig. 1, illustrates referring to above-described embodiment, repeats no more here.
In the present embodiment, the editor in response to user enables instruction, into edit pattern, with individual character or continuous special The form of word shows target text to be edited so that user directly can easily select text to be replaced from target text Word or the position for being inserted into word, it is easy to the follow-up edit operation of user.In addition, user passes through voice typing text to be replaced Sheet or the text being inserted into, without word for word inputting, edit operation is simple and convenient.
The method for editing text provided based on above-described embodiment, the embodiment of the present invention additionally provide a kind of text editing side Method, applied to first terminal equipment.The first terminal equipment, similarly or with touch sensing function terminal device (i.e. touch control terminal), such as touch-screen mobile phone, tablet personal computer have the mobile terminal of touch screen, and its extraneous touch-control sensed includes And be 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 corresponding sensing threshold value, touch control terminal can sense the extraneous touch-control.When So, the terminal device can also be that other are connected with operation device (such as mouse, keyboard) and have the terminal device of display function, The content that the equipment is shown can be operated by the operation device.In addition, text editing provided in an embodiment of the present invention Method and device, can also be applied to any terminal device for not possessing touch sensing function, such as PC etc., here not Enumerate again.
Referring to Fig. 6, the figure is the schematic flow sheet of another method for editing text provided in an embodiment of the present invention.
Method for editing text provided in an embodiment of the present invention, comprises the following steps S601-S605:
S601:Obtain and show the word segmentation result of target text to be edited.
S602:Receive editor's triggering command to target text.
Wherein, the mark that triggering command carries edit object in target text is edited;Edit object is included in word segmentation result At least one participle, or, edit object is the editor cursor adjacent with least one participle in word segmentation result.
It is understood that step S601-S602 is similar with above-mentioned steps S101-S102, it is referring specifically to related description Can, repeat no more here.
S603:Editor's triggering command is sent to second terminal equipment, so that second terminal equipment is according to editor's triggering command Determine the edit object of target text.
In embodiments of the present invention, can be led between first terminal equipment and second terminal equipment by wired mode Letter, can also wirelessly communicate, the embodiment of the present invention is not construed as limiting to this.
Second terminal equipment can be the terminal device with touch sensing function similar with first terminal equipment, such as touch Screen mobile phone, surface plate computer etc.;Can also be any terminal device for not possessing touch sensing function, such as PC etc., Here will not enumerate.
It is understood that in actual applications, target text can be shown in second terminal equipment, so as to user couple Edit object and content of edit are confirmed.Edit triggering command implementation and edit object determination mode with it is above-mentioned Embodiment is similar, repeats no more here.
S604:Receive the speech data of user's typing.
S605:The speech data received is sent to second terminal equipment, so that second terminal equipment is according to voice number According to the corresponding edit operation of edit object execution.
It is understood that step S604 is similar with above-mentioned steps S104, second terminal equipment performs phase to edit object Answer the mode of edit operation similar with described in above-described embodiment, referring specifically to related description, repeat no more here.
In embodiments of the present invention, first terminal equipment shown first in the form of participle target text to be edited for Family executive editor operates, and receives user to editor's triggering command of target text and sends to second terminal equipment, so that second Terminal device is to edit triggering command as according to the edit object for obtaining target text, and then, first terminal equipment receives user The voice data concurrency of typing delivers to second terminal equipment, and second terminal equipment performs phase further according to speech data to edit object The edit operation answered.So, user not only directly can quickly select the editor in text when carrying out text editing Object, operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify Text editing process.
The method for editing text provided based on above-described embodiment, the embodiment of the present invention additionally provide a kind of text editing dress Put.
Referring to Fig. 7, the figure is a kind of structural representation of text editing apparatus provided in an embodiment of the present invention.
A kind of text editing apparatus provided in an embodiment of the present invention, including:Data acquisition module 100, command reception module 200th, object acquisition module 300 and data processing module 400;
Data acquisition module 100, for obtaining and showing the word segmentation result of target text to be edited;
Command reception module 200, for receiving the edit instruction to target text;It is additionally operable to receive the voice of user's typing Data;
Object acquisition module 300, for the editor's triggering command obtained in response to command reception module 200, obtain target Edit object in text, edit object include at least one participle in word segmentation result, or, edit object is and word segmentation result In the adjacent editor's cursor of at least one participle;
Data processing module 400, for receiving the speech data received according to command reception module 200, to editor couple As performing corresponding edit operation.
Optionally, data processing module 400, specifically include:Identify submodule;Also include:First processing submodule or the Two processing submodules;
Submodule is identified, for identifying speech data, converts voice data into pending text;
First processing submodule, if including at least one participle in word segmentation result for edit object, by edit object Replace with pending text;
Second processing submodule, if being the editor cursor adjacent with least one participle for edit object, editing Pending text is inserted in the position of cursor.
Optionally, data acquisition module 100, it is specifically used for:
Obtain simultaneously display target text;
In response to enabling instruction to the editor of target text, generate and show multiple operable objects, it is each operable right As at least one character including destination object;
Then, object acquisition module 300, is specifically used for:
According to editor's triggering command, edit object is determined in multiple operable objects.
Optionally, command reception module 200, it is specifically used for:
Show voice typing button;
In response to the triggering to voice typing button, the voice of monitoring users typing, speech data is obtained.
Optionally, text editing device, in addition to:Word segmentation processing module;
Word segmentation processing module, for carrying out word segmentation processing to pending text, obtain the word segmentation result of pending text;
Then, the first processing submodule, is specifically used for:
Edit object is replaced with the word segmentation result of pending text;
Then, second processing submodule, it is specifically used for:
Go out to insert the word segmentation result of pending text in editor's cursor.
In embodiments of the present invention, terminal device shows that target text to be edited is held for user first in the form of participle Edlin operates, and receives editor triggering command of the user to target text, and to edit triggering command to be literary according to target is obtained This edit object, then, the speech data of user's typing is received, corresponding compile is performed to edit object further according to speech data Collect operation.So, user not only directly can quickly select the edit object in text when carrying out text editing, Operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify text This editing process.
The method for editing text provided based on above-described embodiment, the embodiment of the present invention additionally provide a kind of text editing dress Put.
Referring to Fig. 8, the figure is the structural representation of another text editing apparatus provided in an embodiment of the present invention.
Text editing apparatus provided in an embodiment of the present invention, applied to first terminal equipment, described device, including:Data Acquisition module 10, command reception module 20 and instruction sending module 30;
Data acquisition module 10, for obtaining and showing the word segmentation result of target text to be edited;
Command reception module 20, for receiving editor's triggering command to target text;Edit triggering command and carry target The mark of edit object in text;Edit object includes at least one participle in word segmentation result, or, edit object is and participle As a result the adjacent editor's cursor of at least one participle in;It is additionally operable to receive the speech data of user's typing;
Instruction sending module 30, editor's triggering command to the second terminal for sending the acquisition of command reception module 20 are set It is standby, so that second terminal equipment determines the edit object of target text according to editor's triggering command;Second terminal equipment is shown Target text;It is additionally operable to send the speech data that command reception module 20 receives to second terminal equipment, so that second is whole The end equipment root speech data, corresponding edit operation is performed to edit object.
In embodiments of the present invention, first terminal equipment shown first in the form of participle target text to be edited for Family executive editor operates, and receives user to editor's triggering command of target text and sends to second terminal equipment, so that second Terminal device is to edit triggering command as according to the edit object for obtaining target text, and then, first terminal equipment receives user The voice data concurrency of typing delivers to second terminal equipment, and second terminal equipment performs phase further according to speech data to edit object The edit operation answered.So, user not only directly can quickly select the editor in text when carrying out text editing Object, operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify Text editing process.
The method for editing text and device provided based on above-described embodiment, the embodiment of the present invention are additionally provided a kind of text and compiled The system of collecting.
Referring to Fig. 9, the figure is the structural representation of text editing system provided in an embodiment of the present invention.
The text editing system that the present embodiment provides, including:First terminal equipment 901 and second terminal equipment 902;
The first terminal equipment 901, for obtaining and showing the word segmentation result of target text to be edited;It is additionally operable to connect Receive editor's triggering command to the target text;Editor's triggering command carries the mark of edit object in the target text Know;The edit object includes at least one participle in the word segmentation result, or, the edit object is tied with the participle The adjacent editor's cursor of at least one participle in fruit;It is additionally operable to send editor's triggering command to second terminal equipment 902;Also For receiving the speech data of user's typing;The speech data for being additionally operable to receive is sent to the second terminal equipment 902.
The second terminal equipment 902, for obtaining and showing target text to be edited;It is additionally operable to according to described first Editor's triggering command that terminal device 901 is sent determines the edit object of the target text;It is additionally operable to according to described first eventually The speech data that end equipment 901 is sent, corresponding edit operation is performed to the edit object.
In embodiments of the present invention, first terminal equipment shown first in the form of participle target text to be edited for Family executive editor operates, and receives user to editor's triggering command of target text and sends to second terminal equipment, so that second Terminal device is to edit triggering command as according to the edit object for obtaining target text, and then, first terminal equipment receives user The voice data concurrency of typing delivers to second terminal equipment, and second terminal equipment performs phase further according to speech data to edit object The edit operation answered.So, user not only directly can quickly select the editor in text when carrying out text editing Object, operation is chosen without complex text, user can also be directly realized by the editor to edit object by voice typing, simplify Text editing process.
The method for editing text and device provided based on above-described embodiment, the embodiment of the present invention are additionally provided a kind of terminal and set It is standby.The terminal device includes memory and processor.The memory is used to store computer program instructions;The processor is used to obtain The computer program instructions of above-mentioned memory storage are obtained, are additionally operable to perform any as described above implement according to the computer program instructions The method for editing text that example provides.
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 method for editing text, it is characterised in that this method includes:
Obtain and show the word segmentation result of target text to be edited;
Receive editor's triggering command to the target text;Editor's triggering command carries editor couple in the target text The mark of elephant;The edit object include the word segmentation result at least one participle, or, the edit object be with it is described The adjacent editor's cursor of at least one participle in word segmentation result;
According to editor's triggering command, the edit object in the target text is determined;
Receive the speech data of user's typing;
According to the speech data received, corresponding edit operation is performed to the edit object.
2. method for editing text according to claim 1, it is characterised in that the speech data that the basis receives, it is right The edit object performs corresponding edit operation, is specially:
The speech data is identified, the speech data is converted into pending text;
If the edit object includes at least one participle in the word segmentation result, the edit object is replaced with into described treat Handle text;
If the edit object is the editor cursor adjacent with least one participle, inserted in the position of editor's cursor Enter the pending text.
3. method for editing text according to claim 1, it is characterised in that described to obtain and show target text to be edited This word segmentation result, it is specially:
Obtain and show the target text;
In response to enabling instruction to the editor of the target text, generate and show multiple operable objects, can each grasp Making object includes at least one character of the destination object;
Then, editor's triggering command in response to the target text, the edit object in the target text is obtained, had Body is:
According to editor's triggering command, the edit object is determined in the multiple operable object.
4. method for editing text according to claim 1, it is characterised in that the speech data for receiving user's typing, Specially:
Show voice typing button;
In response to the triggering to the voice typing button, the voice of monitoring users typing, the speech data is obtained.
5. method for editing text according to claim 2, it is characterised in that described be converted to the speech data waits to locate Text is managed, is also included afterwards:
Word segmentation processing is carried out to the pending text, obtains the word segmentation result of the pending text;
Then, it is described that the edit object is replaced with into the pending text, be specially:
The edit object is replaced with the word segmentation result of the pending text;
It is described to insert the pending text in the position of editor's cursor, be specially:
Go out to insert the word segmentation result of the pending text in editor's cursor.
A kind of 6. method for editing text, it is characterised in that applied to first terminal equipment, methods described, including:
Obtain and show the word segmentation result of target text to be edited;
Receive editor's triggering command to the target text;Editor's triggering command carries editor couple in the target text The mark of elephant;The edit object include the word segmentation result at least one participle, or, the edit object be with it is described The adjacent editor's cursor of at least one participle in word segmentation result;
Editor's triggering command is sent to second terminal equipment, so that the second terminal equipment refers to according to editor's triggering Order determines the edit object of the target text;The second terminal equipment shows the target text;
Receive the speech data of user's typing;
The speech data received is sent to the second terminal equipment, so that the second terminal equipment is according to the voice Data, corresponding edit operation is performed to the edit object.
7. a kind of text editing apparatus, it is characterised in that the device includes:Data acquisition module, command reception module, object obtain Modulus block and data processing module;
The data acquisition module, for obtaining and showing the word segmentation result of target text to be edited;
The command reception module, for receiving the edit instruction to the target text, editor's triggering command carries institute The mark of edit object in target text is stated, the edit object includes at least one participle in the word segmentation result, or, institute It is the editor cursor adjacent with least one participle in the word segmentation result to state edit object;It is additionally operable to receive the language of user's typing Sound data;
The object acquisition module, for according to editor's triggering command, obtaining the edit object in the target text;
The data processing module, for receiving the speech data received according to the command reception module, to the editor Object performs corresponding edit operation.
8. text editing apparatus according to claim 7, it is characterised in that the data processing module, specifically include:Know Small pin for the case module;Also include:First processing submodule or second processing submodule;
The identification submodule, for identifying the speech data, the speech data is converted into pending text;
The first processing submodule, will if including at least one participle in the word segmentation result for the edit object The edit object replaces with the pending text;
The second processing submodule, if being the editor cursor adjacent with least one participle for the edit object, Then the pending text is inserted in the position of editor's cursor.
9. text editing apparatus according to claim 7, it is characterised in that the data acquisition module, be specifically used for:
Obtain and show the target text;
In response to enabling instruction to the editor of the target text, generate and show multiple operable objects, can each grasp Making object includes at least one character of the destination object;
Then, the object acquisition module, is specifically used for:
According to editor's triggering command, the edit object is determined in the multiple operable object.
10. text editing apparatus according to claim 7, it is characterised in that the command reception module, be specifically used for:
Show voice typing button;
In response to the triggering to the voice typing button, the voice of monitoring users typing, the speech data is obtained.
11. text editing apparatus according to claim 8, it is characterised in that described device, in addition to:Word segmentation processing module;
The word segmentation processing module, for carrying out word segmentation processing to the pending text, obtain point of the pending text Word result;
Then, the first processing submodule, is specifically used for:
The edit object is replaced with the word segmentation result of the pending text;
Then, the second processing submodule, is specifically used for:
Go out to insert the word segmentation result of the pending text in editor's cursor.
A kind of 12. text editing apparatus, it is characterised in that applied to first terminal equipment, described device, including:Data acquisition Module, command reception module and instruction sending module;
The data acquisition module, for obtaining and showing the word segmentation result of target text to be edited;
The command reception module, for receiving editor's triggering command to the target text;Editor's triggering command is taken Mark with edit object in the target text;The edit object includes at least one participle in the word segmentation result, or Person, the edit object are the editor cursors adjacent with least one participle in the word segmentation result;It is additionally operable to receive user's record The speech data entered;
The instruction sending module, for sending editor's triggering command to second terminal equipment, so that the second terminal Equipment determines the edit object of the target text according to editor's triggering command;The second terminal equipment shows described Target text;The speech data for being additionally operable to receive is sent to the second terminal equipment, so that the second terminal equipment According to the speech data, corresponding edit operation is performed to the edit object.
A kind of 13. text editing system, it is characterised in that including:First terminal equipment and second terminal equipment;
The first terminal equipment, for obtaining and showing the word segmentation result of target text to be edited;It is additionally operable to receive to institute State editor's triggering command of target text;Editor's triggering command carries the mark of edit object in the target text;Institute State edit object include the word segmentation result at least one participle, or, the edit object be with the word segmentation result The adjacent editor's cursor of at least one participle;It is additionally operable to send editor's triggering command to second terminal equipment;It is additionally operable to connect Receive the speech data of user's typing;The speech data for being additionally operable to receive is sent to the second terminal equipment.
The second terminal equipment, for obtaining and showing target text to be edited;It is additionally operable to be set according to the first terminal Editor's triggering command that preparation is sent determines the edit object of the target text;It is additionally operable to be sent according to the first terminal equipment Speech data, corresponding edit operation is performed to the edit object.
A kind of 14. terminal device, it is characterised in that including:Memory and processor;
The memory, for storing computer program instructions;
The processor, for obtaining the computer program instructions of the memory storage;It is additionally operable to according to the computer journey Sequence instruction performs the method for editing text as described in claim 1-6.
CN201711086257.3A 2017-11-07 2017-11-07 Text editing method, device and system and terminal equipment Active CN107861932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711086257.3A CN107861932B (en) 2017-11-07 2017-11-07 Text editing method, device and system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711086257.3A CN107861932B (en) 2017-11-07 2017-11-07 Text editing method, device and system and terminal equipment

Publications (2)

Publication Number Publication Date
CN107861932A true CN107861932A (en) 2018-03-30
CN107861932B CN107861932B (en) 2020-03-27

Family

ID=61701179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711086257.3A Active CN107861932B (en) 2017-11-07 2017-11-07 Text editing method, device and system and terminal equipment

Country Status (1)

Country Link
CN (1) CN107861932B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632465A (en) * 2018-04-27 2018-10-09 维沃移动通信有限公司 A kind of method and mobile terminal of voice input
CN109119079A (en) * 2018-07-25 2019-01-01 天津字节跳动科技有限公司 voice input processing method and device
CN109276886A (en) * 2018-08-16 2019-01-29 深圳木狼科技有限公司 A kind of document creation method, system and terminal device
CN110795910A (en) * 2019-10-10 2020-02-14 北京字节跳动网络技术有限公司 Text information processing method and device, server and storage medium
CN113378530A (en) * 2021-06-28 2021-09-10 北京七维视觉传媒科技有限公司 Voice editing method and device, equipment and medium
CN113591441A (en) * 2021-07-30 2021-11-02 交互未来(北京)科技有限公司 Voice editing method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700813A (en) * 2016-02-26 2016-06-22 深圳市金立通信设备有限公司 Information processing method and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700813A (en) * 2016-02-26 2016-06-22 深圳市金立通信设备有限公司 Information processing method and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632465A (en) * 2018-04-27 2018-10-09 维沃移动通信有限公司 A kind of method and mobile terminal of voice input
CN109119079A (en) * 2018-07-25 2019-01-01 天津字节跳动科技有限公司 voice input processing method and device
CN109119079B (en) * 2018-07-25 2022-04-01 天津字节跳动科技有限公司 Voice input processing method and device
CN109276886A (en) * 2018-08-16 2019-01-29 深圳木狼科技有限公司 A kind of document creation method, system and terminal device
CN110795910A (en) * 2019-10-10 2020-02-14 北京字节跳动网络技术有限公司 Text information processing method and device, server and storage medium
CN110795910B (en) * 2019-10-10 2023-10-17 北京字节跳动网络技术有限公司 Text information processing method, device, server and storage medium
CN113378530A (en) * 2021-06-28 2021-09-10 北京七维视觉传媒科技有限公司 Voice editing method and device, equipment and medium
CN113591441A (en) * 2021-07-30 2021-11-02 交互未来(北京)科技有限公司 Voice editing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107861932B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN107861932A (en) A kind of method for editing text, device and system and a kind of terminal device
CN104731881B (en) A kind of chat record method and its mobile terminal based on communications applications
CN206178562U (en) Electronic device and information processor
CN105518602A (en) Filtering data with slicer-style filtering user interface
CN106575291A (en) Detecting selection of digital ink
Chiti et al. Accessibility of android-based mobile devices: a prototype to investigate interaction with blind users
CN108287815A (en) Information input method, device, terminal and computer readable storage medium
CN101241413A (en) Terminal and menu display method
KR101394874B1 (en) Device and method implementing for particular function based on writing
EP3084634B1 (en) Interaction with spreadsheet application function tokens
CN103324674B (en) Web page contents choosing method and device
CN107346229A (en) Pronunciation inputting method and device, computer installation and readable storage medium storing program for executing
CN107506104A (en) Method for sorting, device, mobile terminal and the storage medium of desktop icons
CN105808057A (en) Method for selecting programs in folder, device and terminal
CN104133815A (en) Input and search method and system
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
CN102141886A (en) Method and equipment for text edition and computer program product and computer readable medium
CN104090724A (en) Method and device for operating files through gestures of double fingers in intelligent terminal
CN103838458B (en) Mobile terminal and control method of input method of mobile terminal
Arroba et al. A methodology for developing accessible mobile platforms over leading devices for visually impaired people
CN106293354B (en) Shortcut menu self-adaptive display control method, server and portable terminal
CN106886364A (en) A kind of text handling method and terminal based on speech recognition
CN107038080A (en) A kind of method and terminal for obtaining destination object
Kocieliński et al. Improving the accessibility of touchscreen-based mobile devices: Integrating Android-based devices and Braille notetakers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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: 610051 Longtan Industrial Park, Second Section of East Ring Road, Chenghua District, Chengdu City, Sichuan Province

Applicant before: Chengdu - Digital Technology Co. Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant