Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of changing method and device of input mode is provided, and can realize the seamless switching of input mode under the situation that need not repetition load button information.
Given this, the embodiment of the invention provides a kind of input method switching method of numeric keypad, comprising:
The first input mode engine produces and exports the character alternate item corresponding to described first input mode according to the keyboard button information that receives under first input mode;
When switching to second input mode by first input mode, the described first input mode engine is preserved described button information;
The described button information that the second input mode engine is preserved according to the described first input mode engine produces and exports the character alternate item corresponding to described second input mode.
Wherein, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program.
Wherein, described first input mode engine and the described second input mode engine are same engine.
Wherein, the described first input mode engine is different engines with the described second input mode engine.
Wherein, described first input mode and the described first input mode engine are under the first input method application program;
Described second input mode and the described second input mode engine are handled under the second input method application program.
Wherein, described first input mode is a pinyin input mode, in Two bors d's oeuveres input mode, five input modes, stroke input mode, the intelligent English input mode any;
When first input mode is pinyin input mode, described second input mode be in Two bors d's oeuveres input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the Two bors d's oeuveres input mode, described second input mode be in pinyin input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is five input modes, described second input mode be in Two bors d's oeuveres input mode, pinyin input mode, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the stroke input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the intelligent English input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, stroke input mode, digital input mode, the English alphabet input mode any.
Wherein, when the described first input mode engine is preserved described button information, keep the demonstration of described button information on screen.
Accordingly, the embodiment of the invention also provides a kind of switching device shifter of input mode, comprising:
The first input mode engine, be used for according to the keyboard button information that receives under first input mode, produce and export character alternate item, and when switching to second input mode, preserve described button information by first input mode corresponding to described first input mode;
The second input mode engine, be used for according to the described button information that the described first input mode engine is preserved produce and output corresponding to the character alternate item of described second input mode.
Wherein, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program module, and the described first input mode engine and the described second input mode engine are same engine.
Wherein, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program module, and the described first input mode engine is different engines with the described second input mode engine.
Wherein, described first input mode and the described first input mode engine are under the first input method application program module;
Described second input mode and the described second input mode engine are handled under the second input method application program module.
Wherein, this input mode switching device shifter also comprises:
Keyboard is used to receive the keyboard button information that the user imports;
Wherein, this input mode switching device shifter also comprises:
Display module is used for the keyboard button information that explicit user is imported, the character alternate item of described first input mode engine output, and the character alternate item of described second input mode engine output.
The embodiment of the invention is in the switching of carrying out input mode, preserve the button information under the original input mode state, and the engine of the input mode after trigger switching produces according to the button information of described preservation and output corresponding to the character alternate item of the input mode after the described switching, like this when carrying out the input mode switching, need not repetition load button information, the save operation flow process, and can realize the seamless switching of input mode fast.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.
The embodiment of the invention discloses a kind of changing method and device of input mode, can be in the use of cellphone inputting method application program, the keyboard of preserving under the original input mode state (can be numeric keypad, also can be full keyboard) button information, and the engine of the input mode after trigger switching produces according to the button information of described preservation and output corresponding to the character alternate item of the input mode after the described switching, like this when carrying out the input mode switching, need not repetition load button information, the save operation flow process, and can realize the seamless switching of input mode fast.
Fig. 3 is the schematic flow sheet of changing method of the input mode of the first embodiment of the present invention, and as shown in Figure 3, the method for present embodiment comprises:
Step S11, the first input mode engine produce and export the character alternate item corresponding to described first input mode according to the keyboard button information that receives under first input mode;
Step S12, when switching to second input mode by first input mode, the described first input mode engine is preserved described button information;
Step S13, the described button information that the second input mode engine is preserved according to the described first input mode engine produces and exports the character alternate item corresponding to described second input mode.
In the specific implementation, keyboard button information forms by user's button click on numeric keyboard of mobile telephone or full keyboard of mobile phone.
In the specific implementation, described first input mode is a pinyin input mode, in Two bors d's oeuveres input mode, five input modes, stroke input mode, the intelligent English input mode any;
When first input mode is pinyin input mode, described second input mode be in Two bors d's oeuveres input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the Two bors d's oeuveres input mode, described second input mode be in pinyin input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is five input modes, described second input mode be in Two bors d's oeuveres input mode, pinyin input mode, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the stroke input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the intelligent English input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, stroke input mode, digital input mode, the English alphabet input mode any.
In the specific implementation, to the not restriction of type of first input mode and second input mode, the embodiment of the invention is only enumerated input mode.
On this basis, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program, and the described first input mode engine and the described second input mode engine are same engine.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and the input mode that will switch can be two input modes under the search dog cellphone inputting method, such as, first input mode is that pinyin input mode, second input mode are the stroke input mode, at this moment, in fact the first input mode engine and the second input mode engine can be search dog cellphone inputting method engine, and prerequisite is the function that search dog cellphone inputting method engine can be realized the first input mode engine and the second input mode engine simultaneously.
In addition, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program, but the described first input mode engine is different engines with the described second input mode engine.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and the input mode that will switch can be two input modes under the search dog cellphone inputting method, such as, first input mode is that pinyin input mode, second input mode are the intelligent English input mode, at this moment, the first input mode engine is the pinyin input mode engine under the search dog cellphone inputting method, and the second input mode engine is the intelligent English input mode engine under the search dog cellphone inputting method.
In addition, described first input mode and the described first input mode engine are under the first input method application program; Described second input mode and the described second input mode engine are handled under the second input method application program.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and two kinds of input modes will switching can lay respectively under the QQ phonetic mobile phone version input method and the search dog cellphone inputting method under, such as, first input mode is the stroke input mode that can be under the QQ phonetic mobile phone version input method, second input mode is the intelligent English input mode under the search dog cellphone inputting method, at this moment, the first input mode engine is the stroke input mode engine under the QQ phonetic mobile phone version input method, and the second input mode engine is the intelligent English input mode engine under the search dog cellphone inputting method.
In the specific implementation, no matter the position of input mode and input mode engine where, and the switching flow between input mode is basic identical, for example the switching of the input mode of the embodiment of the invention described below.
1, the switching from pinyin input mode to the stroke input mode.
At this moment, the method flow of present embodiment can be as follows:
At step S11, under pinyin input mode, the user clicks a series of buttons at the phonetic place of Chinese words to be imported on keyboard, the pinyin input mode engine is (if the pinyin input mode engine is identical with stroke input mode engine, here just can be directly be the input method engine of the input method at current pinyin input mode place) receive described a series of button after, generation is corresponding to a series of Chinese words of described pinyin input mode, and with described Chinese words output, at this moment, to be presented in the candidate regions of pinyin input mode of portable terminal that mobile phone or other use numeric keypads as the Chinese words of alternate item, the state of pinyin input mode is an editing mode, so far, the user just can carry out the editor of information.At step S12, after user's input mode change action, input method switches to the stroke input mode by pinyin input mode, the pinyin input mode engine is preserved described button information, when pinyin input mode when preserving described button information, can keep the demonstration of described button information on screen.At step S13, stroke input mode engine is (if the pinyin input mode engine is identical with stroke input mode engine, here just can directly be the input method engine of the input method at current stroke input mode place) according to a series of Chinese words of described button information generation corresponding to described stroke input mode, and with described Chinese words output, at this moment, to be presented in the candidate regions of stroke input mode of portable terminal that mobile phone or other use numeric keypads as the Chinese words of alternate item, this moment, the state of stroke input mode was an editing mode.Like this, just finished the seamless switching of pinyin input mode to the stroke input mode.Design sketch before and after switching sees also Fig. 4.
2, the switching from pinyin input mode to the English alphabet input mode.
At this moment, the method flow of present embodiment can be as follows:
At step S11, under pinyin input mode, the user clicks a series of buttons at the phonetic place of Chinese words to be imported on keyboard, the pinyin input mode engine is (if the pinyin input mode engine is identical with English alphabet input mode engine, here just can be directly be the input method engine of the input method at current pinyin input mode place) receive described a series of button after, generation is corresponding to a series of Chinese words of described pinyin input mode, and with described Chinese words output, at this moment, to be presented in the candidate regions of pinyin input mode of portable terminal that mobile phone or other use numeric keypads as the Chinese words of alternate item, the state of pinyin input mode is an editing mode.At step S12, after user's input mode change action, input method switches to the English alphabet input mode by pinyin input mode, the pinyin input mode engine is preserved described button information, when pinyin input mode when preserving described button information, can keep the demonstration of described button information on screen.At step S13, English alphabet input mode engine is (if the pinyin input mode engine is identical with English alphabet input mode engine, here just can directly be the input method engine of the input method at current English alphabet input mode place) according to a series of English alphabets of described button information generation corresponding to described stroke input mode, and with described English alphabet output, at this moment, the English alphabet after the conversion will be presented on the display screen of stroke input mode of portable terminal that mobile phone or other use numeric keypads.Like this, just finished the seamless switching of pinyin input mode to the English alphabet input mode.Design sketch before and after switching sees also Fig. 5.
3, the switching from the stroke input mode to the intelligent English input mode.
At step S11, under the stroke input mode, the user clicks a series of buttons at the stroke place of Chinese words to be imported on keyboard, stroke input mode engine is (if stroke input mode engine is identical with intelligent English input mode engine, here just can be directly be the input method engine of the input method at current stroke input mode place) receive described a series of button after, generation is corresponding to a series of Chinese words of described stroke input mode, and with described Chinese words output, at this moment, to be presented in the candidate regions of pinyin input mode of portable terminal that mobile phone or other use numeric keypads as the Chinese words of alternate item, the state of stroke input mode is an editing mode.At step S12, after user's input mode change action, input method switches to the intelligent English input mode by the stroke input mode, stroke input mode engine is preserved described button information, when the stroke input mode when preserving described button information, can keep the demonstration of described button information on screen.At step S13, intelligent English input mode engine is (if stroke input mode engine is identical with intelligent English input mode engine, here just can directly be the input method engine of the input method at current intelligent English input mode place) according to a series of english words of described button information generation corresponding to described intelligent English input mode, and with described english word output, at this moment, to be presented in the candidate regions of intelligent English input mode of portable terminal that mobile phone or other use numeric keypads as the english word of alternate item, this moment, the state of intelligent English input mode was an editing mode.Like this, just finished the seamless switching of stroke input mode to the intelligent English input mode.Design sketch before and after switching sees also Fig. 6.
The embodiment of the invention is in the switching of carrying out input mode, preserve the button information under the original input mode state, and the engine of the input mode after trigger switching produces according to the button information of described preservation and output corresponding to the character alternate item of the input mode after the described switching, like this when carrying out the input mode switching, need not repetition load button information, the save operation flow process, and can realize the seamless switching of input mode fast.
Fig. 7 is that the structure of the input method engine of second embodiment of the invention is formed synoptic diagram.As shown in Figure 7, the switching device shifter of the input mode of present embodiment comprises keyboard 20, the first input mode engine 21, the second input mode engine 22 and display module 23, wherein:
Keyboard 31 is used to receive the keyboard button information that the user imports; In the specific implementation, keyboard button information forms by user's button click on keyboard.In the specific implementation, described keyboard 31 can be numeric keyboard of mobile telephone or full keyboard.
The described first input method engine 21, be used for according to the keyboard button information that receives under first input mode, produce and export character alternate item, and when switching to second input mode, preserve described button information by first input mode corresponding to described first input mode;
The second input mode engine 22, be used for according to the described button information that the described first input mode engine 21 is preserved produce and output corresponding to the character alternate item of described second input mode.
Described display module 23 is used for the keyboard button information that explicit user is imported, the character alternate item of described first input mode engine output, and the character alternate item of described second input mode engine output.
In the specific implementation, described first input mode is a pinyin input mode, in Two bors d's oeuveres input mode, five input modes, stroke input mode, the intelligent English input mode any;
When first input mode is pinyin input mode, described second input mode be in Two bors d's oeuveres input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the Two bors d's oeuveres input mode, described second input mode be in pinyin input mode, five input modes, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is five input modes, described second input mode be in Two bors d's oeuveres input mode, pinyin input mode, stroke input mode, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the stroke input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, intelligent English input mode, digital input mode, the English alphabet input mode any;
When first input mode is the intelligent English input mode, described second input mode be in pinyin input mode, Two bors d's oeuveres input mode, five input modes, stroke input mode, digital input mode, the English alphabet input mode any.
On this basis, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program, and the described first input mode engine and the described second input mode engine are same engine.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and the input mode that will switch can be two input modes under the search dog cellphone inputting method, such as, first input mode is that pinyin input mode, second input mode are the stroke input mode, at this moment, in fact the first input mode engine and the second input mode engine can be search dog cellphone inputting method engine, and prerequisite is the function that search dog cellphone inputting method engine can be realized the first input mode engine and the second input mode engine simultaneously.
In addition, described first input mode, described second input mode, described first input mode engine and the described second input mode engine are under the same input method application program, but the described first input mode engine is different engines with the described second input mode engine.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and the input mode that will switch can be two input modes under the search dog cellphone inputting method, such as, first input mode is that pinyin input mode, second input mode are the intelligent English input mode, at this moment, the first input mode engine is the pinyin input mode engine under the search dog cellphone inputting method, and the second input mode engine is the intelligent English input mode engine under the search dog cellphone inputting method.
In addition, described first input mode and the described first input mode engine are under the first input method application program; Described second input mode and the described second input mode engine are handled under the second input method application program.For example, the input method of mobile phone support comprises QQ phonetic mobile phone version input method and search dog cellphone inputting method, and two kinds of input modes will switching can lay respectively under the QQ phonetic mobile phone version input method and the search dog cellphone inputting method under, such as, first input mode is the stroke input mode that can be under the QQ phonetic mobile phone version input method, second input mode is the intelligent English input mode under the search dog cellphone inputting method, at this moment, the first input mode engine is the stroke input mode engine under the QQ phonetic mobile phone version input method, and the second input mode engine is the intelligent English input mode engine under the search dog cellphone inputting method.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.