Summary of the invention
In order to improve input efficiency, promote the user and import experience, method and device that the embodiment of the invention provides a kind of input method to switch.Said technical scheme is following:
On the one hand, the method that provides a kind of input method to switch, said method comprises:
Obtain and store the corresponding input method pattern of each character of information to be entered;
Obtain the corresponding input method pattern of current character to be entered in the said information to be entered, and judge whether to need to switch the input method pattern;
If before said current character to be entered is transfused to, be the corresponding input method pattern of said current character to be entered then with current input method mode switch.
Wherein, the said corresponding input method pattern of each character of obtaining information to be entered specifically comprises:
When said information to be entered is registered, obtain the corresponding input method pattern of each character of said information to be entered.
The corresponding input method pattern of each character of said storage information to be entered specifically comprises:
The corresponding input method pattern of each character of the said information to be entered of storage on this locality or network.
The said input method pattern of obtaining current character to be entered correspondence in the said information to be entered, and judge whether to need to switch the input method pattern, specifically comprise:
In the corresponding input method pattern of each character of the said information to be entered of storing, read the corresponding input method pattern of said current character to be entered;
Whether the input method pattern of judging the said current character to be entered correspondence that reads is identical with current input method pattern, if not, then judgement needs to switch the input method pattern.
Further, after the corresponding input method pattern of said each character that obtains and store information to be entered, also comprise:
When said information to be entered is modified, obtain and memory modify after the corresponding input method pattern of each character of information to be entered.
On the other hand, a kind of input method device for switching is provided, said device comprises:
Acquisition module is used to obtain the corresponding input method pattern of each character of information to be entered;
Memory module is used to store the corresponding input method pattern of each character of the said information to be entered that said acquisition module gets access to;
Judge module is used for obtaining the corresponding input method pattern of current character to be entered in the corresponding input method pattern of each character of the said information to be entered of said memory module storage, and judges whether to need to switch the input method pattern;
Handover module is used for when said judge module is judged needs switching input method pattern, before said current character to be entered is transfused to, is the corresponding input method pattern of said current character to be entered with current input method mode switch.
Wherein, said acquisition module specifically is used for when said information to be entered is registered, and obtains the corresponding input method pattern of each character of said information to be entered.
Said memory module specifically is used on this locality or network the corresponding input method pattern of each character of the information to be entered that the said acquisition module of storage gets access to.
Said judge module specifically comprises:
Reading unit is used for reading the corresponding input method pattern of said current character to be entered in the corresponding input method pattern of each character of the said information to be entered of said memory module storage;
Judging unit is used to judge whether the corresponding input method pattern of said current character to be entered that said reading unit reads is identical with current input method pattern, if not, and judgements needs switching input method pattern then.
Further, said acquisition module also is used for when said information to be entered is modified, and obtains the corresponding input method pattern of each character of amended information to be entered;
Correspondingly, said memory module also is used to store the corresponding input method pattern of each character of the said amended information to be entered that said acquisition module gets access to.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
Through storing the corresponding input method pattern of each character of information to be entered in advance; And when this information to be entered is transfused to, carries out input method according to the corresponding input method pattern of each character of this information to be entered and switch, make the user when input information; Only need the order input; Need not manually to carry out the input that input method is switched the information of can accomplishing, not only can improve the input efficiency of information, can also promote the user and import experience; And when information to be entered is modified; Through obtain and memory modify after the corresponding input method pattern of each character of information to be entered; Thereby can guarantee when the user imports amended information; Still can carry out input method according to the corresponding input method pattern of each character of the information of user input and switch, further guarantee input efficiency, promote user experience.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment one
Referring to Fig. 1, the method that present embodiment provides a kind of input method to switch, this method flow is specific as follows:
101: the corresponding input method pattern of each character of obtaining and storing information to be entered;
102: obtain the corresponding input method pattern of current character to be entered in the information to be entered, and judge whether to need to switch the input method pattern;
103:, before current character to be entered is transfused to, be the corresponding input method pattern of current character to be entered then with current input method mode switch if judgement needs to switch the input method pattern.
The method that present embodiment provides, through the corresponding input method pattern of each character of storing information to be entered in advance, and when this information to be entered is transfused to; Carrying out input method according to the corresponding input method pattern of each character of this information to be entered switches; Make the user when input information, only need the order input, need not to carry out the input that input method is switched the information of can accomplishing; Not only can improve the information input efficiency, the input that can also promote the user is experienced.
Embodiment two
The method that present embodiment provides a kind of input method to switch; This method is imported to being repeated, and corresponding input method pattern can be by the information to be entered of preserving and reading, through obtaining and store the corresponding input method pattern of each character of this information to be entered in advance; And when this information to be entered is transfused to; Carry out input method according to the corresponding input method pattern of each character of this information to be entered and switch, thereby avoid in the information input process, manually carry out input method by the user and switch; And then can improve input efficiency, promote user experience.Referring to Fig. 2, the method flow that present embodiment provides is specific as follows:
201: the corresponding input method pattern of each character of obtaining and storing information to be entered;
To this step, ripe at present input method product has multiple, and the input method pattern of every kind of input method product also has multiple.For example; Chinese pinyin input method pattern, Chinese stroke input method pattern, english lowercase input method pattern, English capitalization input method pattern, digital inputting method pattern, traditional Chinese input method pattern, Japanese inputting method pattern, German input method pattern or the like, present embodiment does not limit concrete input method pattern.And for information to be entered; Both can corresponding a kind of input method pattern; Also can corresponding input methods pattern, present embodiment does not limit the particular content of information to be entered, the mode of the corresponding input method pattern of each character of obtaining information to be entered is not limited equally.During concrete the realization, can, this information to be entered obtain the corresponding input method pattern of each character of this information to be entered when being registered.
For example; Log-on messages such as the user name of using always when information to be entered can be the login WEB page, password; Because log-on message need be registered in advance, then can, this log-on message obtain the corresponding input method pattern of this log-on message when being registered before using.With log-on message xy12AB is example, when this log-on message in when registration, through detecting the input of input equipment (like keyboard etc.), can get access to the corresponding input method pattern of this log-on message is 3 kinds of input method patterns such as english lowercase, numeral and English capitalization.
When the input method pattern of each character correspondence of storing information to be entered; For the corresponding input method pattern of each character in the clear and definite information to be entered; So that the follow-up input method of carrying out is switched; The particular content of storage also should comprise the corresponding relation of the input method pattern that each character is corresponding with it except comprising the input method pattern.Be example for log-on message xy12AB still with the information to be entered; This information to be entered comprises 6 characters; Corresponding 3 kinds of input method patterns then when the input method pattern of each character correspondence of storing this log-on message, can adopt multiple mode to store; If with the stored in form of form, include but not limited to following several kinds of modes:
One, store each character and corresponding input method pattern thereof in the information to be entered in order, shown in following table 1:
Table 1
Information to be entered |
x |
y |
1 |
2 |
A |
B |
The input method pattern |
English lowercase |
English lowercase |
Numeral |
Numeral |
English capitalization |
English capitalization |
Two, on the basis of mode one, character adjacent and that the input method pattern is identical is merged, shown in following table 2:
Table 2
Information to be entered |
x、y |
1、2 |
A、B |
The input method pattern |
English lowercase |
Numeral |
English capitalization |
Three, on above-mentioned one or two basis, can also only store input method pattern corresponding identification during storage and get final product for every kind of input method mode initialization sign.For example, what preestablish english lowercase input method pattern is designated 1, English capitalization input method pattern be designated 2, the digital inputting method pattern be designated 3, Chinese pinyin input method pattern be designated 4 or the like.
Except that above-mentioned 3 kinds of storage modes, can also adopt other modes, present embodiment is not done concrete qualification to this, guarantee that subsequent step can carry out correct input method switching according to the input method pattern information of storage and get final product.In the practical application, input method pattern storage that can each character of information to be entered is corresponding also can be stored on the network in this locality, and present embodiment is not done concrete qualification to this.The concrete form of storage can be the form of ordinary file, the perhaps form of database, and perhaps other logical storage forms can also be compressed the input method pattern of storage, operation such as encryption, and present embodiment is not done concrete qualification equally to this.
202: obtain the corresponding input method pattern of current character to be entered in the information to be entered, and judge whether to need to switch the input method pattern, if, execution in step 203, otherwise flow process finishes;
Particularly, can judge information to be entered through the input focus switching and whether be in the wait input state, wherein, input focus is the position that onscreen cursor is clicked.Needing the user to carry out the occasion of information input, mainly contain two kinds of forms at present, a kind of form with client software provides input frame by user's input information, and another kind is that the form with the WEB or the WAP page provides input frame by user's input information.No matter be which kind of form, for information to be entered, if the cursor on the screen is clicked input frame, promptly input focus switches to input frame, and then meaning has information to be entered to be transfused to, and at this moment, this information to be entered is in wait and is transfused to state.When detect this information to be entered be in wait for be transfused to state after; Can trigger the corresponding input method pattern of current character to be entered in the information to be entered of obtaining; During concrete the realization; Can be through in the corresponding input method pattern of each character of the information to be entered of storing, reading the corresponding input method pattern of this current character to be entered; If above-mentioned steps 201 input method pattern storage that each character of this information to be entered is corresponding in this locality, then only needs read from this locality and get final product, if above-mentioned steps 201 with the input method pattern storage of each character correspondence of this information to be entered on network; Then need be connected to network earlier, read the corresponding input method pattern of this current character to be entered from network again.
For before the current character to be entered of input; Can be automatically with the input method pattern of input method mode switch to current character to be entered correspondence; Therefore; When judging corresponding input method pattern of the current character to be entered that reads and current input method pattern not simultaneously, need carry out the input method mode switch.For example, current input method pattern is an english lowercase input method pattern, and the corresponding input method pattern of current character to be entered is an English capitalization input method pattern, because two kinds of input method patterns are different, thereby judgement need be carried out the input method mode switch.On the contrary, if the input method pattern of the current character to be entered correspondence that reads is identical with current input method pattern, then need not to carry out the input method mode switch.For example, current input method pattern is an english lowercase input method pattern, and the corresponding input method pattern of current character to be entered is similarly english lowercase input method pattern, thereby need not to carry out the input method mode switch.
203: before current character to be entered is transfused to, be the corresponding input method pattern of current character to be entered with current input method mode switch.
To this step; Owing to stored the corresponding input method pattern of each character of this information to be entered in advance; After reading the corresponding input method pattern of current character to be entered, if it is different with current input method pattern to judge the input method pattern that reads, then before this current character to be entered is transfused to; Current input method pattern is automatically switched to the corresponding input method pattern of current character to be entered; Thereby can before the user imports each character of information to be entered, just select correct input method pattern automatically, the user only needs the input of order button, need not carry out manual input method and switch.
With the information to be entered is log-on message xy12AB; The user has imported numeral 2 and has been example, and the corresponding current input method pattern of input method is the digital inputting method pattern, and current character to be entered is A; Then read the corresponding input method pattern of this current character to be entered A and be after the English capitalization input method pattern; According to this step,, thereby judge needs switching input method pattern because it is different to judge the corresponding input method pattern of current input method pattern and the current input character that reads; Then before user inputs character A; Input method is switched to English capitalization input method pattern automatically by current digit input method pattern, and this moment, the user only need select English A place button to get final product, and switched and need not manually to carry out input method.
Further, after the corresponding input method pattern of each character of having stored information to be entered, particularly when information to be entered is log-on message; If the user has forgotten the log-on message of registration originally; In the time of new log-on message need being registered again, mean that this information to be entered will be modified, then to this kind situation; When the method that present embodiment provides also is supported in information to be entered and is modified; Obtain and memory modify after the corresponding input method pattern of each character of information to be entered, and when this amended information to be entered is transfused to, carries out input method according to the corresponding input method pattern of each character of this amended information to be entered and switch; Thereby after can guaranteeing that information to be entered is modified, still can realize Automatic Switching of Input.
Need to prove: information to be entered is except can be the login WEB page time the log-on message commonly used; It can also be the authorization information that often requires the user to import on the WEB page; To the input of authorization information, the method that present embodiment provides is suitable equally, and present embodiment does not limit concrete application scenarios; About other kinds of information, repeat no more here.In addition; The input method switching method that present embodiment provides; Can be that a kind of input method mode switch from a kind of input method product is to another kind of input method pattern; Can be the another kind of input method pattern from a kind of a kind of input method mode switch of input method product to other a kind of input method product, present embodiment not be done concrete qualification equally to this yet.
The method that present embodiment provides, through the corresponding input method pattern of each character of storing information to be entered in advance, and when this information to be entered is transfused to; Carrying out input method according to the corresponding input method pattern of each character of this information to be entered switches; Make the user when input information, only need the order input, need not manually to carry out the input that input method is switched the information of can accomplishing; Not only can improve the input efficiency of information, can also promote the user and import experience; And when information to be entered is modified; Through obtain and memory modify after the corresponding input method pattern of each character of information to be entered; Thereby can guarantee when the user imports amended information; Still can carry out input method according to the input method pattern of each character of the information of user input and switch, further guarantee input efficiency, promote user experience.
Embodiment three
Referring to Fig. 3, present embodiment provides a kind of input method device for switching, and this device comprises:
Acquisition module 301 is used to obtain the corresponding input method pattern of each character of information to be entered;
Memory module 302 is used to store the corresponding input method pattern of each character of the information to be entered that acquisition module 301 gets access to;
Judge module 303 is used for obtaining the corresponding input method pattern of current character to be entered in the corresponding input method pattern of each character of the information to be entered of memory module 302 storage, and judges whether to need to switch the input method pattern;
Handover module 304 is used for when judge module 303 is judged needs switching input method pattern, before current character to be entered is transfused to, is the corresponding input method pattern of current character to be entered with current input method mode switch.
Wherein, acquisition module 301 specifically is used for when information to be entered is registered, and obtains the corresponding input method pattern of each character of information to be entered.
Memory module 302 specifically is used on this locality or network the corresponding input method pattern of each character of the information to be entered that storage acquisition module 301 gets access to.
Referring to Fig. 4, judge module 303 specifically comprises:
Reading unit 303a is used for reading the corresponding input method pattern of current character to be entered in the corresponding input method pattern of each character of the information to be entered of memory module 302 storage;
Judging unit 303b is used to judge whether the corresponding input method pattern of current character to be entered that reading unit 303a reads is identical with current input method pattern, if not, and judgements needs switching input method pattern then.
Further, acquisition module 301 also is used for when information to be entered is modified, and obtains the corresponding input method pattern of each character of amended information to be entered;
Correspondingly, memory module 302 also is used to store the corresponding input method pattern of each character of the amended information to be entered that acquisition module 301 gets access to.
In sum, the device that present embodiment provides is through store the corresponding input method pattern of each character of information to be entered in advance; And when this information to be entered is transfused to, carries out input method according to the corresponding input method pattern of each character of this information to be entered and switch, make the user when input information; Only need the order input; Need not manually to carry out the input that input method is switched the information of can accomplishing, not only can improve input efficiency, can also promote the user and import experience; And when information to be entered is modified; Through the pairing input method pattern of each character that obtains amended information to be entered; Thereby can guarantee when the user imports amended information to be entered; Still can carry out input method according to the input method pattern of each character of the information of user input and switch, further guarantee input efficiency, promote user experience.
Need to prove: the input method device for switching that the foregoing description provides is when carrying out the input method switching; Only the division with above-mentioned each functional module is illustrated; In the practical application; Can as required above-mentioned functions be distributed by the different functional completion, the inner structure that is about to device is divided into different functional, to accomplish all or part of function of above description.In addition, the method embodiment that input method device for switching that the foregoing description provides and input method are switched belongs to same design, and its concrete implementation procedure sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
All or part of step in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, like CD or hard disk etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.