A kind of input method and input method system
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of input method and input method system.
Background technology
User is during using input method, according to the coding of user's input, needs interim expansion dictionary range of search.User can input the rarely used word being of little use or fuzzy phoneme word etc.;Meanwhile, because being interim expansion, so dictionary range of search will not be expanded in common input, daily input efficiency will not be affected because candidate item increases.
See Fig. 1, in prior art provide a kind of input method, the boot symbol that this input method is actively entered before normally being inputted by user judge user this input be intended to.When input method recognizes the boot symbol inputted in advance, then in rarely used word dictionary, only search the word corresponding with the literal code of user's input, and provide candidate item, the i.e. optional candidate item word needed of user shields.
It should be noted that rarely used word dictionary is the set of a kind of word not being often used, such as: the set of " justice,, " etc. word.And commonly used word dictionary refers to the set of the word being frequently used, including classified lexicon that system dictionary used in everyday, user thesaurus, self-defined phrase and user open etc..
Inventor is in implementing the present invention, it may, find that prior art at least has the drawback that
This method can only in rarely used word dictionary expanded search, it is impossible to solve user and more input specific demand, and cannot compatible conventional dictionary after extending dictionary.
Summary of the invention
In order to solve technical problem present in prior art, the invention provides a kind of input method, including:
When recognizing for indicating input method to enable the preset indication signal extending dictionary, enable preset extension dictionary;
According to the coding of user's input that input method receives, scan in described extension dictionary and conventional dictionary, obtain the candidate word corresponding with described coding;
Export the candidate word corresponding with described coding.
Correspondingly, present invention also offers a kind of input method system, including:
Indication signal identification module, is used for identifying whether to receive for indicating input method to enable the indication signal of preset extension dictionary;
Extension dictionary enables module, for when described indication signal identification module recognizes described indication signal, enables preset extension dictionary;
Coding receiver module, for receiving the coding of user's input;
Candidate word generation module, after the coding receiving user's input at described coding receiver module, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
Candidate word output module, for the candidate word that output is corresponding with described coding.
Implement the present invention, search can be extended in preset dictionary, and all right compatible conventional dictionary after extending dictionary, overcome the defect that can not simultaneously scan in the rarely used word dictionary and commonly used word dictionary of extension in prior art, it is thus able to improve the efficiency of input words, user can be solved and more input specific demand.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic diagram of input method in prior art;
Fig. 2 is the schematic flow sheet of input method embodiment one in the present invention;
Fig. 3 is the schematic flow sheet of input method embodiment two in the present invention;
Fig. 4 is the schematic flow sheet of input method embodiment three in the present invention;
Fig. 5 is the schematic flow sheet of input method embodiment four in the present invention;
Fig. 6 is the schematic diagram of input method embodiment in the present invention;
The structural representation of input method system embodiment one in Fig. 7 present invention;
The structural representation of input method system embodiment two in Fig. 8 present invention;
The structural representation of input method system embodiment three in Fig. 9 present invention.
Detailed description of the invention
The technical problem to be solved be input method that prior art provides and input method system can only in rarely used word dictionary expanded search, it is impossible to solve user and more input specific demand, and cannot compatible conventional dictionary after extending dictionary.For above-mentioned the deficiencies in the prior art, it is provided that a kind of input method, the method can be extended search in preset extension dictionary, and can also compatible conventional dictionary after extending dictionary.
See Fig. 2, for the schematic flow sheet of a kind of input method first embodiment that the present invention provides.
The input method that the present embodiment provides, including:
Step 100, when recognizing for indicating input method to enable the preset indication signal extending dictionary, enables preset extension dictionary;
It should be noted that described indication signal includes: instruction input method enables the boot symbol of preset extension dictionary, or instruction input method enables the preset shortcut extending dictionary and is pressed, or the function key indicating input method to enable preset extension dictionary is pressed.Described preset extension dictionary not only includes rarely used word dictionary, also includes cri dernier cri words and phrases storehouse, English dictionary, fuzzy phoneme dictionary etc..These are only illustration, the preset extension dictionary of the present invention is not limited only to this.
Step 101, according to the coding of user's input that input method receives, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
It should be noted that, described extension dictionary is for conventional dictionary, conventional dictionary is typically the dictionary that input method is the more commonly used, is its dictionary carried, such as: classified lexicon that system dictionary used in everyday, user thesaurus, self-defined phrase and user open etc..And extend dictionary and be in addition to the dictionary beyond conventional dictionary, not only include rarely used word dictionary, also include cri dernier cri words and phrases storehouse, English dictionary, fuzzy phoneme dictionary etc..And the process of preset extension dictionary is: download extension character library in advance and save it in input method system, then selecting this extension character library as standby, in order to when the commonly used word in conventional dictionary cannot meet input needs, to enable extension dictionary.
Also, it should be noted scan in extension dictionary and conventional dictionary in the present invention, obtaining candidate word can have several embodiments:
First, according to the coding of user's input that input method receives, the candidate word that search is corresponding with described coding in described extension dictionary, and the word that search is corresponding with described coding in described conventional dictionary;Finally, the described candidate word searched in extension dictionary and the described candidate word obtained of searching in conventional dictionary are synthesized candidate word;
Second, according to the coding of user's input that input method receives, in described extension dictionary, search obtains the candidate word corresponding with described coding;By the described candidate word synthesis candidate word searched in extension dictionary.
Step 102, exports the candidate word corresponding with described coding.
Input method extension dictionary and conventional dictionary that prior art provides can not be compatible, and it closes conventional dictionary while opening extension dictionary, but order corresponding to the indication signal of the present invention does not close everyday words storehouse while being on extending dictionary.Therefore the present invention is implemented, when recognizing for indicating input method to enable the preset indication signal extending dictionary, enable preset extension dictionary, therefore search can be extended in preset dictionary, and all right compatible conventional dictionary, can solve user and more input specific demand after extending dictionary.
See Fig. 3, for the schematic flow sheet of a kind of input method the second embodiment that the present invention provides.
The input method that the present embodiment provides, including:
Step 200, identifies whether to receive for indicating input method to enable the boot symbol of preset extension dictionary;It should be noted that described boot symbol can such as be inputted KZ by User Defined, then it represents that enter extension character library;
Step 201, if recognizing instruction input method to enable preset extension dictionary boot symbol, enables preset extension dictionary;Proceed to step 203;
Step 202, enables preset extension dictionary boot symbol if unidentified to instruction input method, does not the most enable preset extension dictionary;Flow process terminates;
Step 203, receives the coding of user's input;
Step 204, according to the coding of user's input that input method receives, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
Step 205, exports the candidate word corresponding with described coding.
Implement the embodiment that the present invention provides, by before user's input coding, it may be judged whether recognize boot symbol, the most then start extension dictionary;Which is more flexible, and can be extended search in preset dictionary, and extend after dictionary can also compatible conventional dictionary, user can be solved and more input specific demand.
See Fig. 4, for the schematic flow sheet of a kind of input method the 3rd embodiment that the present invention provides.
The input method that the present embodiment provides, including:
Step 300, input method receives the coding of user's input;
Step 301, before being not shown on screen with the corresponding candidate word of coding, identifies whether the shortcut enabling preset extension dictionary is pressed;
It should be noted that described shortcut can be Ctrl+A, or Ctrl+B, or Ctrl+C etc., shortcut can be defined by user oneself, with dictionary corresponding.It is only for example herein, the embodiment of shortcut of the present invention can not be limited with this.
Step 302, enables the shortcut of preset extension dictionary be pressed if recognizing instruction input method, then receiving the coding of user's input but before candidate word corresponding with described coding be not shown on screen, enabling preset extension dictionary;Proceed to step 304;
Step 303, if the unidentified shortcut enabling preset extension dictionary to instruction input method is pressed, does not the most enable preset extension dictionary;Flow process terminates;
Step 304, according to the coding of user's input that input method receives, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
Step 305, exports the candidate word corresponding with described coding.
Implement the embodiment that the present invention provides, by after user's input coding, but before the upper screen of candidate word corresponding with described coding, it may be judged whether recognize shortcut, the most then start extension dictionary;Which is more flexible, and can be extended search in preset dictionary, and extend after dictionary can also compatible conventional dictionary, user can be solved and more input specific demand.
See Fig. 5, for the schematic flow sheet of a kind of input method the 4th embodiment that the present invention provides.
The input method that the present embodiment provides, including:
Step 400, input method receives the coding of user's input;
Step 401, candidate word corresponding with described coding has shown on screen;But described candidate word non-user wants input;
Step 402, whether the function key enabling preset extension dictionary described in identification is pressed;
It should be noted that described function key is Ctrl+Backspace, the effect of this function key is to return to the state before candidate word occurs on screen;
Step 403, is pressed if recognizing described function key, then return to the state before the corresponding candidate word of described coding is not shown on screen, enable preset extension dictionary;Proceed to step 405;
Step 404, is not pressed if recognizing described function key, does not the most enable preset extension dictionary;Flow process terminates;
Step 405, according to the coding of user's input that input method receives, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
Step 406, exports the candidate word corresponding with described coding.
Implementing the embodiment that the present invention provides, by after user's input coding, and candidate word corresponding with described coding is on the screen, but and when not meeting the requirement of user, it may be judged whether recognize function key, the most then start extension dictionary;Which is more flexible, and can be extended search in preset dictionary, and extend after dictionary can also compatible conventional dictionary, user can be solved and more input specific demand.
It should be noted that the input method that the present invention provides, it is also possible to after enabling preset extension dictionary, on the input frame of described input method, display reminding enables the signal language of extension dictionary, the most as shown in Figure 6.
See Fig. 7, for the structural representation of a kind of input method system embodiment one that the present invention provides.
The input method system that the present embodiment provides, including:
Indication signal identification module 1, is used for identifying whether to receive for indicating input method to enable the indication signal of preset extension dictionary;It should be noted that described indication signal includes: instruction input method enables the boot symbol of preset extension dictionary, or instruction input method enables the preset shortcut extending dictionary and is pressed, or the function key indicating input method to enable preset extension dictionary is pressed.
Extension dictionary enables module 2, for when described indication signal identification module recognizes described indication signal, enables preset extension dictionary;It should be noted that described preset extension dictionary not only includes rarely used word dictionary, also include cri dernier cri words and phrases storehouse, English dictionary, fuzzy phoneme dictionary etc..
Coding receiver module 3, for receiving the coding of user's input;
Candidate word generation module 4, after the coding receiving user's input at described coding receiver module, scans in described extension dictionary and conventional dictionary, obtains the candidate word corresponding with described coding;
It should be noted that described conventional dictionary includes: classified lexicon that system dictionary used in everyday, user thesaurus, self-defined phrase and user open etc..
Candidate word output module 5, for the candidate word that output is corresponding with described coding.
Implement the present invention, when recognizing for indicating input method to enable the preset indication signal extending dictionary, enable preset extension dictionary, therefore can be extended search in preset dictionary, and all right compatible conventional dictionary, can solve user and more input specific demand after extending dictionary.
See Fig. 8, for the structural representation of a kind of input method system embodiment two that the present invention provides.
The input method system that the present embodiment provides, in addition to comprising the modules in embodiment one, also includes:
Indication signal preset module 6, enables the boot symbol of preset extension dictionary for preset instruction input method system, or preset instruction input method system enables the shortcut of preset extension dictionary;Or preset instruction input method system enables the function key of preset extension dictionary.
Extension dictionary preset module 7, for preset extension dictionary.
In the present embodiment, described indication signal identification module 1, identified whether to receive for indicating input method to enable the boot symbol of preset extension dictionary for the coding receiver module 3 at described input method system before receiving the coding of user's input;Recognizing instruction input method at described indication signal identification module 1 and enable preset extension dictionary boot symbol, the most described extension dictionary enabled module 2 before receiving coding, enabled preset extension dictionary.
Or, described indication signal identification module 1 for receiving the coding of user's input at the coding receiver module 3 of described input method system, but before being not shown on screen with the corresponding candidate word of coding, identify that instruction input method enables whether the preset shortcut extending dictionary is pressed;Recognize, at described indication signal identification module 1, the shortcut indicating input method to enable preset extension dictionary to be pressed, the most described extension dictionary enables module 2 and receives the coding of user's input but before candidate word corresponding with described coding be not shown on screen at coding receiver module 3, enables preset extension dictionary.
Or, shown indication signal identification module 1 for receiving the coding of user's input at the coding receiver module 3 of described input method system, and after candidate word corresponding with described coding shows on screen, whether the function key enabling described preset extension dictionary described in identification is pressed;
Recognizing described function key at described indication signal identification module 1 to be pressed, the most described input method system returns to the state before the corresponding candidate word of described coding is not shown on screen, and described extension dictionary enables module 2 and enables preset extension dictionary.
Input method system in the present embodiment, also includes display module 8;Enabling after module 2 enables the extension preset extension dictionary of dictionary preset module at described extension dictionary, on the display module on the input frame of described input method system, display reminding enables the signal language of extension dictionary.
Implement the present invention provide embodiment, can by have different in the way of start extension dictionary;These enter temporary extension search modes cover various situations possible during user normally inputs, facilitate user enter temporary extension search, solution mutual on habit problem.And the present embodiment can be extended search in preset dictionary, and extend after dictionary can also compatible conventional dictionary, user can be solved and more input specific demand.
See Fig. 9, for the structural representation of a kind of input method system embodiment three that the present invention provides.
The input method system that the present embodiment provides, comprises beyond the modules in embodiment one and embodiment two.The present embodiment will be explained in implementing of candidate word generation module 4.
Described candidate word generation module 4 includes:
Expansion word library searching module 40, the coding of the user's input for receiving according to coding receiver module, the candidate word that search is corresponding with described coding in described extension dictionary;
Everyday words library searching module 41, the coding of the user's input for receiving according to coding receiver module, the word that search is corresponding with described coding in described conventional dictionary;
Candidate word synthesis module 42, searches for the candidate word synthesis candidate word obtained in conventional dictionary for the candidate word described expansion word library searching module searched in extension dictionary and described everyday words library searching module.
In another kind of embodiment, described candidate word synthesis module 4 is additionally operable to the candidate word synthesis candidate word described expansion word library searching module searched in extension dictionary.
Implement the input method system that the present invention provides, can allow user in the case of not affecting normal input, input easily temporarily be of little use rarely used word, fuzzy phoneme, Mars word, the content such as special dictionary, user can also be allowed to dictionary to have more rich selection, do not interfere with daily input speed and efficiency simultaneously.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by computer program and complete to instruct relevant hardware, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.