The content of the invention
The embodiments of the invention provide a kind of phonetics input method and device, realize and solved by gesture in sentence inputting
Modification the problem of.
On the one hand, the embodiments of the invention provide a kind of phonetics input method, methods described includes:
When inputting sentence using spelling input method, pinyin term or the corresponding word of the pinyin term are obtained by touch-screen
Move;
If getting the instruction that the pinyin term or the corresponding word of the pinyin term are moved to the first preset direction, institute
Remaining phonetic alphabet locking not editable can be entered in edlin, the sentence by stating the phonetic alphabet that pinyin term included.
Second aspect, the embodiments of the invention provide a kind of Pinyin Input device, described device includes:
Acquisition module, for when inputting sentence using spelling input method, pinyin term or the spelling to be obtained by touch-screen
The move of the corresponding word of sound;
Locking module, if being moved for getting the pinyin term or the corresponding word of the pinyin term to the first preset direction
Dynamic instruction, the then phonetic alphabet that the pinyin term is included can enter remaining phonetic alphabet in edlin, the sentence and lock not
Editable.
The beneficial effect that the technical scheme that the present invention is provided is brought is:
It was found from the embodiments of the present invention, due to get the pinyin term or the corresponding word of the pinyin term to
During the instruction of the first preset direction movement, the phonetic alphabet that the pinyin term is included can enter remaining in edlin, the sentence
Phonetic alphabet lock not editable, any one pinyin term of input thus can be easily changed, it is thereby achieved that passing through hand
The problem of gesture solves the modification in sentence inputting.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
A kind of phonetics input method first embodiment flow of the present invention, referring to Fig. 1, methods described includes:
101:When inputting sentence using spelling input method, pinyin term is obtained by touch-screen or the pinyin term is corresponding
The move of word.
When inputting sentence using spelling input method, by detecting the slip that hand is pointed in different directions, different volumes are completed
Collect action.
102:If getting the instruction that the pinyin term or the corresponding word of the pinyin term are moved to the first preset direction,
The phonetic alphabet that then pinyin term is included can enter remaining phonetic alphabet in edlin, the sentence and lock not editable.
For example, as shown in figure 5, when first preset direction for move down direction when, if user mistake word
Moved down in place's "Yes", smart mobile phone then gets the instruction that word "Yes" is moved to the first preset direction, then "Yes" correspondence
The phonetic alphabet " sh " that are included of pinyin term can enter in edlin, the sentence remaining phonetic alphabet locking not editable.
The present embodiment is by getting the pinyin term or the corresponding word of the pinyin term is moved to the first preset direction
During dynamic instruction, the phonetic alphabet that the pinyin term is included can enter in edlin, the sentence locking of remaining phonetic alphabet not
Editable, thus can easily change any one pinyin term of input, it is thereby achieved that solving sentence inputting by gesture
In modification the problem of.
A kind of phonetics input method second embodiment flow of the present invention, referring to Fig. 2, methods described includes:
201:When inputting sentence using spelling input method, pinyin term is obtained by touch-screen or the pinyin term is corresponding
The move of word.Identical with step 101, here is omitted.
202a:If getting the finger that the pinyin term or the corresponding word of the pinyin term are moved to the second preset direction
Order, then input the word into Text Entry.
When the second preset direction be it is upward, input sentence when, can be first upward by correct word when wrong word in sentence
It is mobile to confirm input, as shown in fig. 6, being moved up at correct word " this is " place, the correct word is pre-entered to text
In input frame.
202b:If getting the finger that the pinyin term or the corresponding word of the pinyin term are moved to the first preset direction
Order, the then phonetic alphabet that the pinyin term is included can enter remaining phonetic alphabet in edlin, the sentence and lock not editable,
The word candidate regions of the sentence are changed into the corresponding word candidate regions of the pinyin term.
For example, as shown in figure 5, when first preset direction for move down direction when, if user mistake word
Moved down in place's "Yes", smart mobile phone then gets the instruction that word "Yes" is moved to the first preset direction, then "Yes" correspondence
The phonetic alphabet " sh " that are included of pinyin term can enter in edlin, the sentence locking of remaining phonetic alphabet not editable, institute
The word candidate regions for stating sentence are changed into the corresponding word candidate regions of the pinyin term.
203b:Obtain the confirmation to the pinyin term or the corresponding word change of the pinyin term to instruct, return to sentence
Input state, and the corresponding word of the pinyin term of change is replaced to the original corresponding word of the pinyin term.
For example, as shown in fig. 7, when confirmation is changed to " input ", return to sentence inputting state, and by the institute of change
State the corresponding word of pinyin term " input " and replace the original corresponding word of the pinyin term " be into ".
The present embodiment is by getting the pinyin term or the corresponding word of the pinyin term is moved to the first preset direction
During dynamic instruction, the phonetic alphabet that the pinyin term is included can enter in edlin, the sentence locking of remaining phonetic alphabet not
Editable, thus can easily change any one pinyin term of input, it is thereby achieved that it is defeated to solve sentence by gesture
The problem of modification in entering;Getting the pinyin term or the corresponding word of the pinyin term is moved to the second preset direction simultaneously
During dynamic instruction, the word is inputted into Text Entry, is realized and word in sentence inputting is solved by gesture confirmed
Input problem.
Corresponding with a kind of embodiment of phonetics input method of the invention, the present invention also provides a kind of Pinyin Input device
Embodiment.
A kind of first embodiment structural representation of Pinyin Input device of the present invention is as shown in figure 3, described device 30 includes:
Acquisition module 310 and locking module 320.
Acquisition module 310, for when inputting sentence using spelling input method, pinyin term or described to be obtained by touch-screen
The move of the corresponding word of pinyin term.When inputting sentence using spelling input method, it is pointed in different directions by detecting hand
Slip, complete different editors' actions.
Locking module 320, if for getting the pinyin term or the corresponding word of the pinyin term to the first default side
To mobile instruction, then the phonetic alphabet that the pinyin term is included can enter remaining phonetic alphabet in edlin, the sentence and lock
Fixed not editable.
For example, as shown in figure 5, when first preset direction for move down direction when, if user mistake word
Moved down in place's "Yes", smart mobile phone then gets the instruction that word "Yes" is moved to the first preset direction, then "Yes" correspondence
The phonetic alphabet " sh " that are included of pinyin term can enter in edlin, the sentence remaining phonetic alphabet locking not editable.
Further, described device 30 also includes input module 330, if for getting the pinyin term or the phonetic
The instruction that the corresponding word of item is moved to the second preset direction, then input the word into Text Entry.
When the second preset direction be it is upward, input sentence when, can be first upward by correct word when wrong word in sentence
It is mobile to confirm input, as shown in fig. 6, being moved up at correct word " this is " place, the correct word is pre-entered to text
In input frame.
Further, described device 30 also includes recovery module 340, for obtaining to the pinyin term or the pinyin term
The confirmation instruction of corresponding word change, returns to sentence inputting state, and the corresponding word of the pinyin term of change is replaced
Change the original corresponding word of the pinyin term.
For example, as shown in fig. 7, when confirmation is changed to " input ", return to sentence inputting state, and by the institute of change
State the corresponding word of pinyin term " input " and replace the original corresponding word of the pinyin term " be into ".
Further, as shown in figure 4, the locking module 320 of described device 30 also includes changing unit 321, for the sentence
The word candidate regions of son are changed into the corresponding word candidate regions of the pinyin term.
For example, as shown in figure 5, when first preset direction for move down direction when, if user mistake word
Moved down in place's "Yes", smart mobile phone then gets the instruction that word "Yes" is moved to the first preset direction, then "Yes" correspondence
The phonetic alphabet " sh " that are included of pinyin term can enter in edlin, the sentence locking of remaining phonetic alphabet not editable, institute
The word candidate regions for stating sentence are changed into the corresponding word candidate regions of the pinyin term.
The present embodiment is by getting the pinyin term or the corresponding word of the pinyin term is moved to the first preset direction
During dynamic instruction, the phonetic alphabet that the pinyin term is included can enter in edlin, the sentence locking of remaining phonetic alphabet not
Editable, thus can easily change any one pinyin term of input, it is thereby achieved that it is defeated to solve sentence by gesture
The problem of modification in entering;Getting the pinyin term or the corresponding word of the pinyin term is moved to the second preset direction simultaneously
During dynamic instruction, the word is inputted into Text Entry, is realized and word in sentence inputting is solved by gesture confirmed
Input problem.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.