CN103049206B - Method for editing text and communication terminal - Google Patents

Method for editing text and communication terminal Download PDF

Info

Publication number
CN103049206B
CN103049206B CN201210562515.1A CN201210562515A CN103049206B CN 103049206 B CN103049206 B CN 103049206B CN 201210562515 A CN201210562515 A CN 201210562515A CN 103049206 B CN103049206 B CN 103049206B
Authority
CN
China
Prior art keywords
modified
character
sentence
text
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210562515.1A
Other languages
Chinese (zh)
Other versions
CN103049206A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201210562515.1A priority Critical patent/CN103049206B/en
Publication of CN103049206A publication Critical patent/CN103049206A/en
Application granted granted Critical
Publication of CN103049206B publication Critical patent/CN103049206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is applicable to communication technical field, it is provided that a kind of method for editing text, has including step: when editing text, receive predetermined user's touch command;According to predetermined punctuation mark, described text is divided at least one sentence;Orientate the described sentence residing for contact corresponding for described user's touch command or track as sentence to be modified;Distinctly display described sentence to be modified;Described sentence to be modified is modified;By in the amendment content synchronization of described sentence to be modified to described text.Correspondingly, the present invention also provides for a kind of communication terminal.Whereby, the present invention can orient the content of text needing editor the most quickly and accurately, and then reaches the effect quickly edited.

Description

Method for editing text and communication terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method for editing text and communication terminal.
Background technology
The editing and processing carrying out text at present in the communication terminals such as mobile phone is the most universal, such as can be with user Use the short multimedia message of mobile phone editor, mail, or in corresponding text editing is applied, one section of text is compiled Volume.Currently using communication terminal when editing text, user need to carry out cursor with finger point touching screen Location, due to click and the combination of pressure transducer of finger, tends not to navigate to corresponding position accurately Put, cause cursor positioning not accurate enough.Such as occur in certain sentence when multiple mistake is to be modified, User click repeatedly can only carry out cursor positioning, then modifies one by one.And during multiple bearing, If cursor positioning is inaccurate, user is necessary for click repeatedly repeatedly, and amendment action simultaneously also can only be the completeest Become location after carry out again, and can not first to mistake character select, allow its be in can editing mode, then Correct successively.
In summary, the text editing technology of existing communication terminal, there will naturally be in actual use inconvenience with Defect, it is therefore necessary to improved.
Summary of the invention
For above-mentioned defect, it is an object of the invention to provide a kind of method for editing text and communication terminal, It can orient the content of text needing editor the most quickly and accurately, and then reaches quickly to edit Effect.
To achieve these goals, the present invention provides a kind of method for editing text, comprises the following steps that
When editing text, receive predetermined user's touch command;
According to predetermined punctuation mark, described text is divided at least one sentence;
Described sentence residing for contact corresponding for described user's touch command or track is orientated as to be modified Sentence;
Distinctly display described sentence to be modified;
Described sentence to be modified is modified;
By in the amendment content synchronization of described sentence to be modified to described text.
According to method for editing text of the present invention, described in distinctly display the step of sentence to be modified and include:
Show an edit box, and in described edit box, show all characters of described sentence to be modified;Or
Directly in described text, described sentence to be modified is carried out visual difference to show.
According to method for editing text of the present invention, described in distinctly display sentence to be modified step after and Also include before the described step that sentence to be modified is modified:
At least one character to be modified is oriented from all characters of described sentence to be modified, and by described to be repaired Font change character is labeled as can editing mode;
The described step modifying sentence to be modified includes:
Described character to be modified is modified.
According to method for editing text of the present invention, described to orient at least one in sentence to be modified to be repaired The step of font change character includes:
Receive at least one first letter of pinyin;
Described first letter of pinyin is mated with each character in described sentence to be modified;
Any described character match if described first letter of pinyin is got along well, then send and do not mate prompting;
If described first letter of pinyin and a described character match, then the described character locating by coupling is to be repaired Font change character;
If described first letter of pinyin and two or more described character match, then send the two or more institutes of input State the selection prompting of the first row ordinal number word of character;
After receiving described first row ordinal number word, the institute corresponding with described first row ordinal number word by described phonetic alphabet Stating character locating is character to be modified.
According to method for editing text of the present invention, described to orient at least one in sentence to be modified to be repaired The step of font change character includes:
The second row ordinal number word corresponding to each character label in described sentence to be modified;
Receive at least one described second row ordinal number word;
It is character to be modified by described character locating corresponding for described second row ordinal number word.
The present invention also provides for a kind of communication terminal, includes:
Command reception module, for when editing text, receiving predetermined user's touch command;
Punctuate module, for being divided at least one sentence according to predetermined punctuation mark by described text;
Sentence locating module, for by described in residing for contact corresponding for described user's touch command or track Sentence to be modified orientated as in sentence;
Display module, is used for distinctly displaying described sentence to be modified;
Modified module, for modifying to described sentence to be modified;
Synchronization module, for by the amendment content synchronization of described sentence to be modified to described text.
According to communication terminal of the present invention, described display module includes:
First display sub-module, for display one edit box, and shows described to be modified in described edit box All characters of sentence;Or
Second display sub-module, shows for described sentence to be modified directly carries out in described text visual difference Show.
According to communication terminal of the present invention, also include:
Character locating module, after being used for distinctly displaying described sentence to be modified, owning from described sentence to be modified Character is oriented at least one character to be modified, and is can editing mode by described character label to be modified;
Described modified module is additionally operable to modify described character to be modified.
According to communication terminal of the present invention, described character locating module farther includes:
First receives submodule, is used for receiving at least one first letter of pinyin;
Matched sub-block, for mating described first letter of pinyin with each character in described sentence to be modified;
First prompting submodule, if when described first letter of pinyin gets along well any described character match, sending Do not mate prompting;
First locator module, if when described first letter of pinyin and a described character match, will coupling Described character locating be character to be modified;
Second prompting submodule, if when described first letter of pinyin and two or more described character match, Send the selection prompting of the first row ordinal number word inputting two or more described characters;
Second locator module, after being used for receiving described first row ordinal number word, by described phonetic alphabet and described The described character locating that first row ordinal number word is corresponding is character to be modified;
First arranges submodule, and being used for described character label to be modified is can editing mode.
According to communication terminal of the present invention, described character locating module farther includes:
Mark submodule, for the second row ordinal number word corresponding to each character label in described sentence to be modified;
Second receives submodule, is used for receiving at least one described second row ordinal number word;
3rd locator module, it is to be modified for being used for described character locating corresponding for described second row ordinal number word Character;
Second arranges submodule, and being used for described character label to be modified is can editing mode.
When the present invention edits text in communication terminal, if receiving predetermined user's touch command, will be according to literary composition The predetermined punctuation mark such as " comma ", " fullstop ", " exclamation mark " and " question mark " in Ben is the most right Text is made pauses in reading unpunctuated ancient writings;From some sentences, it is accurately positioned out sentence to be modified according to user's touch command, and distinguishes Show this sentence to be modified;Now described sentence to be modified just can be modified editor by user, automatic by system By in the amendment content synchronization of described sentence to be modified to text.It is preferred that also can be from described sentence to be modified All characters orient character to be modified, and by described character label to be modified be can editing mode, by with Modify editor to character to be modified at family.Whereby, the present invention can position the most quickly and accurately Go out to need the content of text of editor, and then reach the effect quickly edited.
Accompanying drawing explanation
Fig. 1 is the structural representation of communication terminal of the present invention;
Fig. 2 is the structural representation of preferred communication terminal of the present invention;
Fig. 3 is the structural representation of the character locating module of preferred communication terminal of the present invention;
Fig. 4 is the flow chart of method for editing text of the present invention;
Fig. 5 is the flow chart of first embodiment of the invention Chinese version edit methods;
Fig. 6 is the flow chart of second embodiment of the invention Chinese version edit methods;
Fig. 7 is the flow chart of third embodiment of the invention Chinese version edit methods;And
Fig. 8 A~Fig. 8 G is the operation interface instance graph of third embodiment of the invention Chinese version edit methods.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein Only in order to explain the present invention, it is not intended to limit the present invention.
Fig. 1 is the structural representation of communication terminal of the present invention, and described communication terminal 100 can be mobile phone, PDA (Personal Digital Assistant, personal digital assistant), panel computer etc., and described communication terminal 100 include command reception module 10, punctuate module 20, sentence locating module 30, display module 40, repair Change module 50 and synchronization module 60, wherein:
Described command reception module 10, for when editing text, receiving predetermined user's touch command.Institute Stating text can be the text of editor in the application such as short multimedia message, mail, instant message, text editing application; Described text can be made up of characters such as Chinese character, letter, numerals;Described user's touch command can be click on touching Control instruction, gesture touch command etc. are such as long by instruction, line instruction etc..
Described punctuate module 20, for being divided at least one sentence according to predetermined punctuation mark by described text Son.Described predetermined punctuation mark is punctuate mark, can include " comma ", " fullstop ", " sigh with feeling Number " and " question mark " etc., and " colon ", " double quotation marks ", " bracket " etc. are generally not as punctuate mark Know.After receiving described user's touch command, punctuate module 20 according to predetermined punctuation mark to working as pre-editing Text make pauses in reading unpunctuated ancient writings, i.e. read " comma ", " fullstop ", " exclamation mark " and " question mark " etc. and make pauses in reading unpunctuated ancient writings Mark, and the character content between each two punctuate mark is defined as a sentence.
Described sentence locating module 30, for by residing for contact corresponding for described user's touch command or track Sentence orientate sentence to be modified as.It is if described user's touch command is for clicking on touch command, such as long by instruction, Single key command, double-click instruction etc., then analyze the position, contact of described click touch command, and by described Sentence to be modified orientated as in that sentence that contact is positioned between two punctuation marks (punctuate mark);If it is described User's touch command is gesture touch command, instruction of such as ruling, and described gesture is then analyzed in instruction etc. of drawing a circle The track position of touch command, and described track is positioned between two punctuation marks (punctuate mark) That sentence orientate sentence to be modified as.
Described display module 40, is used for distinctly displaying described sentence to be modified, in order to user accurately identifies and edits. At this point it is possible to further described sentence to be modified is set to can editing mode, the other guide of described text is then Can be at non-editing mode.Preferably, current text editing interface individually ejected and show a volume Collect frame, and in this edit box, show all characters of described sentence to be modified;Or, directly at described text In described sentence to be modified carried out visual difference show, such as the character in described sentence to be modified is amplified The process such as display, variable color show.
Described modified module 50, for modifying to described sentence to be modified.Described sentence to be modified is carried out soon Behind speed location, described sentence to be modified can directly be modified editor by user, such as, carry out whole sentence Update, or some error character in sentence is carried out corrigendum etc..User can be clicked on by finger and treat Position in amendment sentence, realizes the location of relevant character to be modified, such as user and passes through finger point in conjunction with cursor Hit and move the cursor to character " thing " place, and this character " thing " is revised as character "Yes" etc..Or, User can also position character to be modified by " left and right " directionkeys in sentence to be modified.Certainly, the present invention Can be to use other location mode to position character to be modified.
Described synchronization module 60, for by the amendment content synchronization of described sentence to be modified to described text.Example As, after all of error character has carried out correcting in user is to sentence to be modified, click on " determination " button, Amended word is synchronized to edit page, to reach the purpose that wrong content is modified.
Fig. 2 is the structural representation of preferred communication terminal of the present invention, and described communication terminal 100 can include Command reception module 10, punctuate module 20, sentence locating module 30, display module 40, modified module 50, Synchronization module 60 and character locating module 70, wherein:
Described command reception module 10, for when editing text, receiving predetermined user's touch command.Institute State user's touch command and can be click on touch command, gesture touch command etc., such as long by instruction, line Instruction etc..
Described punctuate module 20, for being divided at least one sentence according to predetermined punctuation mark by described text Son.Described predetermined punctuation mark is punctuate mark, can include " comma ", " fullstop ", " sigh with feeling Number " and " question mark " etc., by " comma ", " fullstop ", " exclamation mark " that read in text with " ask Number " etc. punctuate mark, and by each two punctuate mark between character content be defined as a sentence.
Described sentence locating module 30, for by the sentence residing for contact corresponding for user's touch command or track Son orientates sentence to be modified as.If described user's touch command is for clicking on touch command, such as long by instruction, single Hit instruction, double-click instruction etc., then analyze the position, contact of described click touch command, and touch described Sentence to be modified orientated as in that sentence that point is positioned between two punctuation marks (punctuate mark);If described use Family touch command is gesture touch command, instruction of such as ruling, instruction etc. of drawing a circle, then analyze described gesture and touch The track position of control instruction, and described track is positioned between two punctuation marks (punctuate mark) Sentence to be modified orientated as in that sentence.
Described display module 40, is used for distinctly displaying described sentence to be modified, in order to user accurately identifies and edits. Preferably, described display module 40 farther includes:
First display sub-module 41, for display one edit box, and shows described to be repaired in described edit box Change all characters of sentence;
Second display sub-module 42, for directly carrying out visual difference to described sentence to be modified in described text Display, such as, be amplified display, variable color shows by the character in described sentence to be modified, in order to by its with In text, other guide is distinguished.
Described character locating module 70, after being used for distinctly displaying described sentence to be modified, from described sentence to be modified All characters in orient at least one character to be modified, and by described character label to be modified for editing State.Now, character in addition to described character to be modified in described sentence to be modified can be set to non-editor's shape State.Sentence the most to be modified is " you looked for yesterday me thing be not and thing ", can specifically orient " thing " and " again " The two character to be modified, now be in can editing mode for the two character to be modified.
Described modified module 50, for modifying to described character to be modified.Such as, receive described to be repaired After the correct characters that font change character is corresponding, described character change to be modified is become described correct characters;Or directly Delete this character to be modified.Here, user can use the input through keyboard correct characters of input method to correct, And user can switch between edit word different by " left and right " directionkeys of keyboard.
Described synchronization module 60, for by the amendment content synchronization of described sentence to be modified to described text.Example As, in described text, described correct characters is substituted corresponding character to be modified.
Described character locating module 70 directly can be marked in described sentence to be modified by light and position to be repaired altering Symbol;Or, current text editing interface shows " character frame before Xiu Gai " and " character frame after amendment ", In " character frame before Xiu Gai ", input respective symbols just can navigate to character to be modified.Certainly, treat described in The location mode of amendment character is not limited to this.
Preferably, as it is shown on figure 3, the character locating module 70 of the present invention farther includes:
First receives submodule 701, is used for receiving at least one first letter of pinyin.Described when positioning and demonstrating After sentence to be modified, user can reuse the first letter of pinyin of input through keyboard character, such as phonetic transcriptions of Chinese characters lead-in Female etc., in order to by first letter of pinyin matching way, in described sentence to be modified, to position character to be modified.
Matched sub-block 702, for carrying out each character in described first letter of pinyin and described sentence to be modified Join, i.e. judge the first letter of pinyin of the character in described sentence to be modified whether with the first letter of pinyin phase received With.
First prompting submodule 703, if when described first letter of pinyin gets along well any character match, sending not Coupling prompting.When the first letter of pinyin of neither one character and the phonetic lead-in received in described sentence to be modified Parent phase simultaneously, sends and does not mates prompting, and described suggestion content can use text formatting, picture format, regard Frequently form and/or audio format.
First locator module 704, if when described first letter of pinyin and a character match, by coupling Character locating is character to be modified.When in described sentence to be modified the first letter of pinyin of only one of which character with connect When the first letter of pinyin of receipts is identical, then direct is to be modified by the character locating with identical first letter of pinyin Character.
Second prompting submodule 705, if when described first letter of pinyin and two or more character match, sending out Go out to input the selection prompting of the first row ordinal number word of two or more character.When described sentence to be modified has two Or the first letter of pinyin of above character identical with the first letter of pinyin received time, will be prompted to user and input relevant The first row ordinal number word of character.Preferably, this first row ordinal number word can be labeled on corresponding character.
Second locator module 706, after being used for receiving first row ordinal number word, by described phonetic alphabet and first row The character locating that ordinal number word is corresponding is character to be modified.Such as during user's input Pinyin initial " s ", to be repaired Change sentence exists "Yes", " thing ", " time " these three coupling character, if user wants to set " thing " For character to be modified, the first row ordinal number word of " thing " is " 2 ", then user only need input " s2 " can be by " thing " Orientate character to be modified as.
First arranges submodule 707, and being used for described character label to be modified is can editing mode.Now, may be used Character in addition to described character to be modified in described sentence to be modified is set to non-editing mode.
If additionally, described sentence to be modified is that " Li Yong, you looked for me thing be not and be yesterday?", user inputs Three first letter of pinyin " sys ", i.e. first s location " thing ", second y location " again ", the 3rd s Individual location "Yes", but owing to the initial of " bravely " word in " Li Yong " is also y, therefore preferably phonetic is first There is directivity in letter location, there is ordering relation between some first letter of pinyin.Here, the location of y be After first s;That is y only goes to search phonetic lead-in inside " be not and be " these four characters The character of parent phase symbol, has and an only character " again ", thus reduces orientation range, simplifies operation.
It is preferred that as it is shown on figure 3, the character locating module 70 of the present invention farther includes:
Mark submodule 708, for the second row ordinal number corresponding to each character label in described sentence to be modified Word.Such as, the sentence to be modified in the present embodiment is " I is to abandon ", in this sentence to be modified one Include eight characters of knowing clearly altogether, respectively " I ", "Yes", "Yes", " no ", " meeting ", " putting ", " abandon ", " " on respectively mark " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", as second row ordinal number word.
Second receives submodule 709, is used for receiving at least one second row ordinal number word.Such as, in the present embodiment How the user discover that a "Yes", second row ordinal number word " 2 " of first "Yes" can have been inputted.
3rd locator module 710, being used for character locating corresponding for second row ordinal number word is character to be modified. Such as, the present embodiment orientates the "Yes" that " 2 " are corresponding as character to be modified.
Second arranges submodule 711, and being used for character label to be modified is can editing mode.Now, can be by institute State in sentence to be modified character in addition to described character to be modified and be set to non-editing mode.Such as, the present embodiment Middle user can delete this character "Yes" to be modified.
Fig. 4 is the flow chart of method for editing text of the present invention, and it can logical by as shown in Figure 1 or 2 Letter terminal 100 realizes, and comprises the following steps that
Step S401, when editing text, receives predetermined user's touch command.Described text can be short The text of editor in the application such as multimedia message, mail, instant message, text editing application;Described text by Chinese character, The character composition such as alphabetical, digital;Described user's touch command can be click on touch command, gesture touch-control refers to Order etc., such as long by instruction, line instruction etc..
Step S402, is divided at least one sentence according to predetermined punctuation mark by text.Described predetermined Punctuation mark is punctuate mark, can include " comma ", " fullstop ", " exclamation mark " and " question mark " Deng, and " colon ", " double quotation marks ", " bracket " etc. are generally not as punctuate mark.Receive described use After the touch command of family, according to predetermined punctuation mark, the text when pre-editing is made pauses in reading unpunctuated ancient writings, it is simply that read " funny Number ", " fullstop ", the punctuate such as " exclamation mark " and " question mark " mark, and by each two punctuate mark Between character content be defined as a sentence.
Step S403, orientates as to be modified by the sentence residing for contact corresponding for user's touch command or track Sentence.If described user's touch command is to click on touch command, such as long by instruction, single key command, double-click refer to Orders etc., then analyze the position, contact of described click touch command, and described contact be positioned at two punctuates Sentence to be modified orientated as in that sentence between symbol (punctuate mark);If described user's touch command is hands Gesture touch command, instruction of such as ruling, instruction etc. of drawing a circle, then analyze the track institute of described gesture touch command In position, and that sentence being positioned at by described track between two punctuation marks (punctuate mark) is orientated as Sentence to be modified.
Step S404, distinctly displays sentence to be modified, in order to user accurately identifies and edits.At this point it is possible to enter One step described sentence to be modified is set to can editing mode, the other guide of described text then can be at non-editor State.Preferably, current text editing interface is individually ejected and shows an edit box, and at this All characters of described sentence to be modified are shown in edit box;Or, directly to described to be repaired in described text Change sentence to carry out visual difference and show, such as, the character in described sentence to be modified is amplified display, variable color shows Show etc. and to process.
Step S405, modifies to sentence to be modified.After described sentence to be modified is quickly positioned, user Directly can be modified editor to described sentence to be modified, such as, update whole sentence, or Some error character in sentence is carried out corrigendum etc..User can click on the position in sentence to be modified by finger, Realize the location of relevant character to be modified in conjunction with cursor, such as user is clicked on by finger and moves the cursor to word Symbol " thing " place, and this character " thing " is revised as character "Yes" etc..Or, user can also pass through " left and right " directionkeys positions character to be modified in sentence to be modified.Certainly, the present invention can also use other Location mode position character to be modified.
Step S406, by the amendment content synchronization of sentence to be modified to text.Such as, when user is to be modified After all of error character has carried out correcting in Ju, click on " determination " button, amended word is synchronized To edit page, to reach the purpose that wrong content is modified.
Fig. 5 is the flow chart of first embodiment of the invention Chinese version edit methods, and it can be by such as Fig. 2 institute The communication terminal 100 shown realizes, and comprises the following steps that
Step S501, when editing text, receives predetermined user's touch command.Described user's touch command Touch command, gesture touch command etc. can be click on, such as long by instruction, line instruction etc..
Step S502, is divided at least one sentence according to predetermined punctuation mark by text.Described predetermined Punctuation mark is punctuate mark, can include " comma ", " fullstop ", " exclamation mark " and " question mark " Deng, by punctuate marks such as " commas ", " fullstop ", " exclamation mark " and " question mark " in reading text Know, and the character content between each two punctuate mark is defined as a sentence.
Step S503, orientates as to be modified by the sentence residing for contact corresponding for user's touch command or track Sentence.If described user's touch command is to click on touch command, such as long by instruction, single key command, double-click refer to Orders etc., then analyze the position, contact of described click touch command, and described contact be positioned at two punctuates Sentence to be modified orientated as in that sentence between symbol (punctuate mark);If described user's touch command is hands Gesture touch command, instruction of such as ruling, instruction etc. of drawing a circle, then analyze the track institute of described gesture touch command In position, and that sentence being positioned at by described track between two punctuation marks (punctuate mark) is orientated as Sentence to be modified.
Step S504, distinctly displays sentence to be modified.Preferably, show an edit box, and in edit box Show all characters of sentence to be modified.Or, sentence the most to be modified is carried out visual difference and shows.
Step S505, orients at least one character to be modified from all characters of sentence to be modified, and will treat Amendment character label is can editing mode.Now, can by described sentence to be modified except described character to be modified it Outer character is set to non-editing mode.Sentence the most to be modified is " you looked for yesterday me thing be not and thing ", can have Body orients " thing " and " again " the two character to be modified, and now the two character to be modified is in and can compile The state of collecting.
Step S506, modifies to described character to be modified.Such as, described character to be modified is received corresponding Correct characters after, described character change to be modified is become described correct characters;Or it is to be repaired directly to delete this Font change character.Here, user can use the input through keyboard correct characters of input method to correct, and user can By " left and right " directionkeys of keyboard, can switch between edit word different.
Step S507, by the amendment content synchronization of sentence to be modified to text.Such as, will in described text Described correct characters substitutes corresponding character to be modified.
Fig. 6 is the flow chart of second embodiment of the invention Chinese version edit methods, and it can be by such as Fig. 2 institute The communication terminal 100 shown realizes, and comprises the following steps that
Step S601, when editing text, user passes through to rule on finger certain sentence in the text,
Step S602, is divided at least one sentence according to predetermined punctuation mark by text.
Step S603, orientates the sentence residing for line track as sentence to be modified.
Step S604, carries out visual difference to sentence to be modified the most in the text and shows, such as by described to be repaired Change that the character in sentence is amplified display, variable color shows.
Step S605, the second row ordinal number word corresponding to each character label in sentence to be modified.Such as, this reality The sentence to be modified executed in example is " I is to abandon ", includes altogether knowing clearly eight in this sentence to be modified Character, respectively " I ", "Yes", "Yes", " no ", " meeting ", " putting ", " abandoning ", " " on respectively mark " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", As second row ordinal number word.
Step S606, receives at least one second row ordinal number word.Such as, the present embodiment the user discover that how One "Yes", can input second row ordinal number word " 2 " of first "Yes".
Step S607, is character to be modified by character locating corresponding for second row ordinal number word.Such as, this enforcement Example orientates the "Yes" that " 2 " are corresponding as character to be modified.
Step S608, is can editing mode by character label to be modified.Now, can be by described sentence to be modified Character in addition to described character to be modified is set to non-editing mode.
Step S609, modifies character to be modified.Such as, in the present embodiment, user can delete this and treats Amendment character "Yes".
Step S610, by the amendment content synchronization of sentence to be modified to text.
Fig. 7 is the flow chart of third embodiment of the invention Chinese version edit methods, and it can be by such as Fig. 2 institute The communication terminal 100 shown realizes, and comprises the following steps that
Step S701, when editing text, user presses certain sentence in text by finger length.
Step S702, is divided at least one sentence according to predetermined punctuation mark by text.
Step S703, orientates the sentence residing for contact as sentence to be modified.
Step S704, shows an edit box, and shows all characters of sentence to be modified in this edit box.
Step S705, receives at least one first letter of pinyin.After positioning and demonstrating described sentence to be modified, User can reuse the first letter of pinyin of input through keyboard character, such as first phonetic letter etc., in order to logical Cross first letter of pinyin matching way, in described sentence to be modified, position character to be modified.
Step S706, mates first letter of pinyin with each character in sentence to be modified, i.e. treats described in judgement The first letter of pinyin of the character in amendment sentence is the most identical with the first letter of pinyin received.
Step S707, any character match if first letter of pinyin is got along well, then send and do not mate prompting.When described When in sentence to be modified, the first letter of pinyin of neither one character is identical with the first letter of pinyin received, send not Coupling prompting, described suggestion content can use text formatting, picture format, video format and/or audio frequency lattice Formula.
Step S708, if first letter of pinyin and a character match, is then to be modified by the character locating of coupling Character.When the first letter of pinyin of only one of which character and the first letter of pinyin phase received in described sentence to be modified Meanwhile, then direct is character to be modified by the character locating with identical first letter of pinyin.
Step S709, if first letter of pinyin and two or more character match, then sends input two or more The selection prompting of the first row ordinal number word of character.When the phonetic having two or more character in described sentence to be modified When initial is identical with the first letter of pinyin received, will be prompted to user and input the first row ordinal number of relevant character Word.Preferably, this first row ordinal number word can be labeled on corresponding character.
Step S710, after receiving first row ordinal number word, the character corresponding with first row ordinal number word by phonetic alphabet Orientate character to be modified as.Such as during user's input Pinyin initial " s ", sentence to be modified exists "Yes", " thing ", " time " these three coupling character, if user wants " thing " is set to character to be modified, " thing " First row ordinal number word be " 2 ", then user only need input " s2 " " thing " can be orientated as to be repaired altering Symbol.
Step S711, is can editing mode by character label to be modified.Now, can be by described sentence to be modified Character in addition to described character to be modified is set to non-editing mode.
Step S712, modifies character to be modified.Such as, the correct word that character to be modified is corresponding is received Fu Hou, becomes correct characters by character change to be modified;Or, by character deletion to be modified etc..
Step S713, by the amendment content synchronization of sentence to be modified to text.
If additionally, described sentence to be modified is that " Li Yong, you looked for me thing be not and be yesterday?", user inputs Three first letter of pinyin " sys ", i.e. first s location " thing ", second y location " again ", the 3rd s Individual location "Yes", but owing to the initial of " bravely " word in " Li Yong " is also y, therefore preferably phonetic is first There is directivity in letter location, there is ordering relation between some first letter of pinyin.Here, the location of y be After first s;That is y only goes to search phonetic lead-in inside " be not and be " these four characters The character of parent phase symbol, has and an only character " again ", thus reduces orientation range, simplifies operation.
Fig. 8 A~Fig. 8 G is the operation interface instance graph of third embodiment of the invention Chinese version edit methods, specifically Operating process is as follows:
Note application in user's open communication terminal 100, " you looked for me thing not to be yesterday to editing short message text Thing again, I did not existed yesterday.", and it is ready for sending to certain contact person, as shown in Figure 8 A.
When user checks sentence in the text " you looked for yesterday me thing be not and thing ", find that two mistakes occur Character by mistake, i.e. first " thing " should be "Yes", and " again " should be " having ", and user is before comma Face sentence is carried out this sentence grow by, system as sentence to be modified.Click with specific reference to user's finger is grasped Make, determine light target particular location, then judge the time pressed with the head of a household, 3 seconds (can root if pressed with the head of a household According to being configured).After determining sentence to be modified, individually eject an edit box, this edit box comprises All characters of sentence to be modified, as shown in Figure 8 B, this edit box can be to be hidden by the editing interface of original text Live or the new interface view not covered.
After user clicks on " determination " button of described edit box, show the keyboard interface of corresponding input method, Be nine key pinyin keyboards herein, and will " you looked for yesterday me thing be not and thing " be noted as can editing mode, As shown in Figure 8 C.
User uses keyboard again to position the content in edit box, here by first letter of pinyin mode Position character to be modified.Here user clicks on " s1y " on keyboard, and system identification goes out that " you looked for my thing yesterday Be not and thing " in have three characters " thing is thing ", then according to second using " s " as first letter of pinyin Individual numeral " 1 " be determined be first " thing " be character to be modified, as in this sentence using " y " as spell The character only one of which " again " of sound initial, the most only just can position " again " with input " y " and become to treat Amendment character, thus can quickly navigate to corresponding first " thing " and " again " alters as to be repaired Symbol, and be in can editing mode, as in fig. 8d, facilitate user to revise accordingly.
User can use input through keyboard character to correct one by one, user first input "Yes" corrigendum after first After individual " thing ", automatic jump to next edit word and edit, as illustrated in fig. 8e.
After user inputs " having " corrigendum " again " at this, " determination " button of current interface can be clicked on, As shown in Figure 8 F, error character all of in sentence to be modified is corrected by expression.If it is if now civilian The most wrong character in Ben, can jump back to this edit word by " left and right " directionkeys and again edit.
If user clicks " determination " button, then amended word is synchronized to edit page, such as Fig. 8 G Shown in, to reach the purpose that mistake is modified.
In sum, when the present invention edits text in communication terminal, if receiving predetermined user's touch command, By according to predetermined punctuate symbols such as " commas ", " fullstop ", " exclamation mark " and " question mark " in text Number automatically text is made pauses in reading unpunctuated ancient writings;From some sentences, sentence to be modified it is accurately positioned out according to user's touch command, And distinctly display this sentence to be modified;Now described sentence to be modified just can be modified editor by user, by being System is automatically by the amendment content synchronization of described sentence to be modified to text.It is preferred that also can be from described to be repaired Change and all characters of sentence oriented character to be modified, and by described character label to be modified be can editing mode, Character to be modified modified editor by user.Whereby, the present invention can the most quickly and accurately Orient the content of text needing editor, and then reach the effect quickly edited.
Certainly, the present invention also can have other various embodiments, without departing substantially from present invention spirit and the feelings of essence thereof Under condition, those of ordinary skill in the art work as can make various corresponding change and deformation according to the present invention, but These change accordingly and deform the protection domain that all should belong to appended claims of the invention.

Claims (8)

1. a method for editing text, it is characterised in that comprise the following steps that
When editing text, receive predetermined user's touch command;
According to predetermined punctuation mark, described text is divided at least one sentence;
Described sentence residing for contact corresponding for described user's touch command or track is orientated as to be modified Sentence;
Distinctly display described sentence to be modified;
At least one character to be modified is oriented from all characters of described sentence to be modified, and by described to be repaired Font change character is labeled as can editing mode;
Described character to be modified is modified;
By in the amendment content synchronization of described sentence to be modified to described text.
Method for editing text the most according to claim 1, it is characterised in that described in distinctly display to be repaired The step changing sentence includes:
Show an edit box, and in described edit box, show all characters of described sentence to be modified;Or
Directly in described text, described sentence to be modified is carried out visual difference to show.
Method for editing text the most according to claim 1, it is characterised in that described from described to be modified The step orienting at least one character to be modified in all characters of sentence includes:
Receive at least one first letter of pinyin;
Described first letter of pinyin is mated with each character in described sentence to be modified;
Any described character match if described first letter of pinyin is got along well, then send and do not mate prompting;
If described first letter of pinyin and a described character match, then the described character locating by coupling is to be repaired Font change character;
If described first letter of pinyin and two or more described character match, then send the two or more institutes of input State the selection prompting of the first row ordinal number word of character;
After receiving described first row ordinal number word, the institute corresponding with described first row ordinal number word by described phonetic alphabet Stating character locating is character to be modified.
Method for editing text the most according to claim 1, it is characterised in that described from described to be modified The step orienting at least one character to be modified in all characters of sentence includes:
The second row ordinal number word corresponding to each character label in described sentence to be modified;
Receive at least one described second row ordinal number word;
It is character to be modified by described character locating corresponding for described second row ordinal number word.
5. a communication terminal, it is characterised in that include:
Command reception module, for when editing text, receiving predetermined user's touch command;
Punctuate module, for being divided at least one sentence according to predetermined punctuation mark by described text;
Sentence locating module, for by described in residing for contact corresponding for described user's touch command or track Sentence to be modified orientated as in sentence;
Display module, is used for distinctly displaying described sentence to be modified;
Character locating module, after being used for distinctly displaying described sentence to be modified, owning from described sentence to be modified Character is oriented at least one character to be modified, and is can editing mode by described character label to be modified;
Modified module, for modifying to described character to be modified;
Synchronization module, for by the amendment content synchronization of described sentence to be modified to described text.
Communication terminal the most according to claim 5, it is characterised in that described display module includes:
First display sub-module, for display one edit box, and shows described to be modified in described edit box All characters of sentence;Or
Second display sub-module, shows for described sentence to be modified directly carries out in described text visual difference Show.
Communication terminal the most according to claim 5, it is characterised in that described character locating module is entered One step includes:
First receives submodule, is used for receiving at least one first letter of pinyin;
Matched sub-block, for mating described first letter of pinyin with each character in described sentence to be modified;
First prompting submodule, if when described first letter of pinyin gets along well any described character match, sending Do not mate prompting;
First locator module, if when described first letter of pinyin and a described character match, will coupling Described character locating be character to be modified;
Second prompting submodule, if when described first letter of pinyin and two or more described character match, Send the selection prompting of the first row ordinal number word inputting two or more described characters;
Second locator module, after being used for receiving described first row ordinal number word, by described phonetic alphabet and described The described character locating that first row ordinal number word is corresponding is character to be modified;
First arranges submodule, and being used for described character label to be modified is can editing mode.
Communication terminal the most according to claim 5, it is characterised in that described character locating module enters one Step includes:
Mark submodule, for the second row ordinal number word corresponding to each character label in described sentence to be modified;
Second receives submodule, is used for receiving at least one described second row ordinal number word;
3rd locator module, it is to be modified for being used for described character locating corresponding for described second row ordinal number word Character;
Second arranges submodule, and being used for described character label to be modified is can editing mode.
CN201210562515.1A 2012-12-21 2012-12-21 Method for editing text and communication terminal Active CN103049206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210562515.1A CN103049206B (en) 2012-12-21 2012-12-21 Method for editing text and communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210562515.1A CN103049206B (en) 2012-12-21 2012-12-21 Method for editing text and communication terminal

Publications (2)

Publication Number Publication Date
CN103049206A CN103049206A (en) 2013-04-17
CN103049206B true CN103049206B (en) 2016-08-03

Family

ID=48061859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210562515.1A Active CN103049206B (en) 2012-12-21 2012-12-21 Method for editing text and communication terminal

Country Status (1)

Country Link
CN (1) CN103049206B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425395B (en) * 2013-08-29 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Text copying method and mobile terminal
CN104516521A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 Electronic equipment and information processing method thereof
US10963143B2 (en) 2015-09-09 2021-03-30 Huawei Technologies Co., Ltd. Data editing method and apparatus
CN105630959B (en) * 2015-12-24 2020-02-21 联想(北京)有限公司 Text information display method and electronic equipment
CN108664201B (en) * 2017-03-29 2021-12-28 北京搜狗科技发展有限公司 Text editing method and device and electronic equipment
CN106910503A (en) * 2017-04-26 2017-06-30 海信集团有限公司 Method, device and intelligent terminal for intelligent terminal display user's manipulation instruction
CN108062290B (en) * 2017-12-14 2021-12-21 北京三快在线科技有限公司 Message text processing method and device, electronic equipment and storage medium
CN110221707A (en) * 2018-03-01 2019-09-10 北京搜狗科技发展有限公司 A kind of English input method, device and electronic equipment
CN110716674B (en) * 2019-08-28 2021-07-13 云知声智能科技股份有限公司 Electronic medical record defect positioning method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068411A (en) * 2006-05-03 2007-11-07 Lg电子株式会社 Method of displaying text using mobile terminal
CN101382866A (en) * 2008-09-26 2009-03-11 腾讯科技(深圳)有限公司 System and method for correcting input characters
CN102707886A (en) * 2012-05-02 2012-10-03 北京捷通华声语音技术有限公司 Input character editing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120281011A1 (en) * 2011-03-07 2012-11-08 Oliver Reichenstein Method of displaying text in a text editor
CN102314314B (en) * 2011-08-29 2015-08-26 上海量明科技发展有限公司 The method and system of cursor when in document reading conversion

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068411A (en) * 2006-05-03 2007-11-07 Lg电子株式会社 Method of displaying text using mobile terminal
CN101382866A (en) * 2008-09-26 2009-03-11 腾讯科技(深圳)有限公司 System and method for correcting input characters
CN102707886A (en) * 2012-05-02 2012-10-03 北京捷通华声语音技术有限公司 Input character editing method and system

Also Published As

Publication number Publication date
CN103049206A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN103049206B (en) Method for editing text and communication terminal
US11474688B2 (en) User device and method for creating handwriting content
CN101529494B (en) System and method for a user interface for text editing and menu selection
CN101727271B (en) Method and device for providing error correcting prompt and input method system
US10360297B2 (en) Simplified data input in electronic documents
CN103777774B (en) The word error correction method of terminal installation and input method
US20110201387A1 (en) Real-time typing assistance
CN102937864B (en) A kind of method and apparatus for determining selected text on touch terminal
CN104850543A (en) Voice conversation support apparatus and voice conversation support method
KR101846238B1 (en) Chinese character input apparatus and controlling method thereof
CN104375665A (en) Input-method error correction method and input-method error correction device
KR101394874B1 (en) Device and method implementing for particular function based on writing
KR20140094744A (en) Method and apparatus for post-editing voice recognition results in portable device
CN104808806A (en) Chinese character input method and device in accordance with uncertain information
JP2014149612A (en) Voice recognition error correction device and its program
CN103150294A (en) Method and system for correcting based on voice identification results
EP3403197B1 (en) Content authoring inline commands
CN108829686A (en) Translation information display methods, device, equipment and storage medium
CN104239289A (en) Syllabication method and syllabication device
CN104317780A (en) Quick correction method of Chinese input texts
US20160092104A1 (en) Methods, systems and devices for interacting with a computing device
CN105739781A (en) Method and system for quickly and accurately positioning character cursor through pressure touch technology
CN102323858A (en) Input method for identifying modification item in input and terminal and system
CN111860000A (en) Text translation editing method and device, electronic equipment and storage medium
KR20140139702A (en) Method and apparatus for correcting text

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant