Summary of the invention
The embodiment of the present invention provides a kind of phonetics input method and device, has realized the problem that solves the modification in sentence input by gesture.
On the one hand, the embodiment of the present invention provides a kind of phonetics input method, and described method comprises:
When using spelling input method input sentence, by touch-screen, obtain the move of pinyin term or word corresponding to described pinyin term;
If get the instruction that word corresponding to described pinyin term or described pinyin term moves to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, and in described sentence, all the other phonetic alphabet lockings can not be edited.
Second aspect, the embodiment of the present invention provides a kind of Pinyin Input device, and described device comprises:
Acquisition module, for when using spelling input method input sentence, obtains the move of pinyin term or word corresponding to described pinyin term by touch-screen;
Locking module, if the instruction of moving to the first preset direction for getting word corresponding to described pinyin term or described pinyin term, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited.
The beneficial effect that technical scheme provided by the invention is brought is:
From the invention described above embodiment, due to when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited, so just can revise easily any one pinyin term of input, therefore, realized the problem that solves the modification in sentence input by gesture.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
A kind of phonetics input method the first embodiment flow process of the present invention, referring to Fig. 1, described method comprises:
101: when using spelling input method input sentence, by touch-screen, obtain the move of pinyin term or word corresponding to described pinyin term.
When using spelling input method input sentence, by detecting, point the slip to different directions, complete different editor's actions.
102: if get the instruction that described pinyin term or word corresponding to described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited.
For example, as shown in Figure 5, when described the first preset direction is when moving down direction, if user moves down in wrong word place "Yes", smart mobile phone gets the instruction that word "Yes" moves to the first preset direction, the phonetic alphabet " sh " that pinyin term corresponding to "Yes" comprises can be edited, and in described sentence, all the other phonetic alphabet lockings can not be edited.
The present embodiment is by when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited, so just can revise easily any one pinyin term of input, therefore, realized the problem that solves the modification in sentence input by gesture.
A kind of phonetics input method the second embodiment flow process of the present invention, referring to Fig. 2, described method comprises:
201: when using spelling input method input sentence, by touch-screen, obtain the move of pinyin term or word corresponding to described pinyin term.Identical with step 101, repeat no more herein.
202a: if get the instruction that described pinyin term or word corresponding to described pinyin term move to the second preset direction, described word is inputed in text input frame.
When the second preset direction is for making progress, during input sentence, wrong word in sentence, can first move up correct word and confirm input, as shown in Figure 6, at correct word " this is ", locates to move up, and this correct word is pre-entered to text input frame.
202b: if get the instruction that described pinyin term or word corresponding to described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited, and the word candidate regions of described sentence becomes word candidate regions corresponding to described pinyin term.
For example, as shown in Figure 5, when described the first preset direction is when moving down direction, if user moves down in wrong word place "Yes", smart mobile phone gets the instruction that word "Yes" moves to the first preset direction, the phonetic alphabet " sh " that pinyin term corresponding to "Yes" comprises can be edited, and in described sentence, all the other phonetic alphabet lockings can not be edited, and the word candidate regions of described sentence becomes word candidate regions corresponding to described pinyin term.
203b: obtain the confirmation instruction to described pinyin term or the change of word corresponding to described pinyin term, return to sentence input state, and the word corresponding to described pinyin term of change replaced to original word corresponding to described pinyin term.
For example,, as shown in Figure 7, when confirming to change to " input ", return to sentence input state, and word " input " corresponding to described pinyin term of changing replaced to word corresponding to original described pinyin term " be into ".
The present embodiment is by when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited, so just can revise easily any one pinyin term of input, therefore, realized the problem that has solved the modification in sentence input by gesture; , when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the second preset direction, described word is inputed in text input frame simultaneously, realized by gesture and has solved sentence input Chinese word confirmation input problem.
Corresponding with the embodiment of a kind of phonetics input method of the present invention, the present invention also provides a kind of embodiment of Pinyin Input device.
As shown in Figure 3, described device 30 comprises the first example structure schematic diagram of a kind of Pinyin Input device of the present invention: acquisition module 310 and locking module 320.
Acquisition module 310, for when using spelling input method input sentence, obtains the move of pinyin term or word corresponding to described pinyin term by touch-screen.When using spelling input method input sentence, by detecting, point the slip to different directions, complete different editor's actions.
Locking module 320, if the instruction of moving to the first preset direction for getting word corresponding to described pinyin term or described pinyin term, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited.
For example, as shown in Figure 5, when described the first preset direction is when moving down direction, if user moves down in wrong word place "Yes", smart mobile phone gets the instruction that word "Yes" moves to the first preset direction, the phonetic alphabet " sh " that pinyin term corresponding to "Yes" comprises can be edited, and in described sentence, all the other phonetic alphabet lockings can not be edited.
Further, described device 30 also comprises load module 330, if the instruction of moving to the second preset direction for getting word corresponding to described pinyin term or described pinyin term inputs to described word in text input frame.
When the second preset direction is for making progress, during input sentence, wrong word in sentence, can first move up correct word and confirm input, as shown in Figure 6, at correct word " this is ", locates to move up, and this correct word is pre-entered to text input frame.
Further, described device 30 also comprises recovery module 340, for obtaining the confirmation instruction to described pinyin term or the change of word corresponding to described pinyin term, return to sentence input state, and the word corresponding to described pinyin term of change replaced to original word corresponding to described pinyin term.
For example,, as shown in Figure 7, when confirming to change to " input ", return to sentence input state, and word " input " corresponding to described pinyin term of changing replaced to word corresponding to original described pinyin term " be into ".
Further, as shown in Figure 4, described device 30 locking module 320 also comprise changing unit 321, for the word candidate regions of described sentence, become word candidate regions corresponding to described pinyin term.
For example, as shown in Figure 5, when described the first preset direction is when moving down direction, if user moves down in wrong word place "Yes", smart mobile phone gets the instruction that word "Yes" moves to the first preset direction, the phonetic alphabet " sh " that pinyin term corresponding to "Yes" comprises can be edited, and in described sentence, all the other phonetic alphabet lockings can not be edited, and the word candidate regions of described sentence becomes word candidate regions corresponding to described pinyin term.
The present embodiment is by when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the first preset direction, the phonetic alphabet that described pinyin term comprises can be edited, in described sentence, all the other phonetic alphabet lockings can not be edited, so just can revise easily any one pinyin term of input, therefore, realized the problem that has solved the modification in sentence input by gesture; , when getting the instruction that word corresponding to described pinyin term or described pinyin term move to the second preset direction, described word is inputed in text input frame simultaneously, realized by gesture and has solved sentence input Chinese word confirmation input problem.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.