Background technology
Handset makers such as mobile phone, PDA(Personal Digital Assistant) etc. has designed various method and apparatus to handheld device input Chinese character.Input method of Chinese character is a kind of software that can move on handheld device or computing machine, and this software is interpreted as phonetic symbol or phonetic symbol etc. with the keystroke sequence of user's input, and gives the user with the character reminding of coupling.
In various input method of Chinese character, spelling input method is the input method of normal use.Up to now, many methods of Chinese character being imported handheld device with the phonetic input pattern have been developed.
In handheld device, the ITU-T keypad often is used to input such as information such as Chinese character, numbers.The ITU-T keypad is a kind of modular keypad with 10 numerical keys (i.e. " 0 " key to " 9 " key) and " * ", " # " key.In order with text entry mode especially phonetic input pattern handheld device to be imported in Chinese character by the ITU-T keypad, each of some keys on the ITU-T keypad all is mapped with several English letters.
For example, Fig. 1 shows the mapping relations between numerical key and 26 English alphabets.As shown in Figure 1, " 1 " and " 0 " key does not use, the mapping of " 2 " key " a ", " b " and " c ", " 3 " key mapping " d ", " e " and " f " etc.
In order to import single Chinese character and/or phrase by the ITU-T keypad with the phonetic input pattern, the user of handheld device must be according to the pronunciation that will import Chinese character, the phonetic symbol string that input is represented with English alphabet.Because the mapping relations between a numerical key and the several letter, click one of numerical key from " 2 " to " 9 " and will provide several candidate letter, so that the user therefrom selects required one.After first phonetic symbol of input, the user can finish the whole phonetics input of Chinese character by the numerical key that the next one is mapped with next phonetic symbol of the required Chinese character of user up to him or she.
With input " I " is example.At first, according to the pronunciation of " I ", i.e. " wo ", the user must import " w " by " 9 " key.When pressing " 9 " key, " wxyz " offered the user as candidate pinyin select for it.Then, in order to import " o ", should be by " 6 " key.Pushing of key " 9 " and " 6 " might be interpreted as " wm ", " wn ", " wo ", " xm ", " xn ", " xo " etc.That is to say, because vowel and consonant all are mapped on the numerical key, so the pushing the beginning that may be interpreted as new syllable or be the continuation of previous syllable of singly-bound.If consider every kind of possible explanation, then have many candidate pinyin and select for the user.When the phonetic symbol number of input increased, possible explanation number will be index to be increased.
Therefore, developed a kind of method with spelling mode input Chinese character, wherein will be converted to pinyin syllable soon to pushing of key, this point can reduce possible explanation number effectively.In the method, pushing of singly-bound will always be interpreted as the continuation of syllable formerly.That is to say, when the numerical key pushed from " 2 " key to " 9 " key, if any letter that is mapped on this numerical key can constitute legal pinyin syllable with previous input, then the pinyin syllable with all formations provides as candidate pinyin, otherwise will ignore pushing of this numerical key.And, normal corresponding because pinyin syllable is ganged up with a plurality of Chinese characters, so after the input Pinyin symbol string, a plurality of Chinese characters corresponding with this candidate pinyin syllable are prompted to the user as candidate.Then, the user selects required one from candidate, thereby required Chinese character is input in the handheld device.
With keystroke sequence " 9-6-6 " is example.According to said method, when pushing " 9 " key, " wxyz " provided as candidate pinyin.When pushing " 6 " key for the first time, because the letter " o " that is mapped on " 6 " key can constitute legal pinyin syllable with letter " w ", " y " and " z ", so pinyin syllable " zo ", " yo ", " wo " will as a result of provide, and ignore other two letter " m " and " n " that are mapped on " 6 " key.Simultaneously, will be corresponding to each candidate pinyin a plurality of such as " always ", " walking ", " ancestor ", ..., or " ", " well ", " usefulness ", ..., or the Chinese character of " bravely " " I ", " holding ", " nest " etc., be prompted to the user as candidate and from them, select required one for it.Similarly, when pushing " 6 " key once more, only pinyin syllable " yon " and " zon " are provided as candidate pinyin, and with the candidate of correspondence, such as " bravely " ..., or " always " ..., or the like be prompted to the user for its selection.
This method has been simplified the processing that button is converted to pinyin syllable, gives rational result simultaneously.According to statistics, use this algorithm can correctly import 85% Chinese characters in common use phrase.
But,, use said method to import syllable continuously and can not provide required explanation for kanji phrase.For example, by as we formerly shown in the example pressing key " 9-6-6 ", the user will can not obtain the candidate pinyin " wo m " of phrase " we ".That is to say that though existing method can be used for importing Chinese phonetic alphabet word, they are the input Pinyin phrase apace.
In order to import Chinese phrase, in known spelling input method, the user must import the phonetic symbol of Chinese phrase word by word according to the pronunciation of Chinese phrase.For example, in order to import Chinese phrase " we ", at first should input Pinyin symbol string " wo ".That is to say, should press key " 9 " and " 6 " continuously.Key " 9 " and " 6 " push " zo ", " yo ", " wo " that will provide as candidate pinyin, and will will be prompted to the user for its selection " I " as candidate corresponding to a plurality of Chinese characters of each candidate pinyin.Then, the user is input Pinyin symbol string " men " continuously, i.e. key " 6 ", " 3 " and " 6 " are so that input " ".Perhaps, the phrase forecast function by handheld device provides can be prompted to the user for its selection with the Chinese character (such as " " or the like) of the legal Chinese phrase of " I " formation with a plurality of.
Generally speaking, in the handheld device of using the ITU-T keypad, in the phonetic input pattern, must import Chinese phrase word by word, and not import the method and apparatus of Chinese phonetic alphabet phrase.In addition, in the phonetic input pattern, rely on the method and apparatus of the input Chinese character that has earlier, the input speed of phonetic phrase is very slow., in text entry mode, because the burden that the phrase input helps to improve the input of Chinese sentence and reduced the user, so the phrase input is of great use for the user.
Therefore, the demand of a kind of method and apparatus of exploitation is arranged in the art, Chinese phrase is input in the handheld device apace by its available phonetic input pattern.
Summary of the invention
The purpose of this invention is to provide a kind of method and apparatus and corresponding medium to handheld device input Chinese phrase.
To achieve these goals, the invention provides that a kind of described handheld device has a plurality of keys with the method for phonetic input pattern to handheld device input Chinese phrase, each key all with one or more phonetic alphabet mappings, described method comprises step:
Use the key of user's input to upgrade input string;
If all are positioned at before the described key and are positioned at any separator key afterwards and can not constitute legal pinyin syllable in described key and the described input string, then before described key, a separator is inserted in the described input string;
For each part of being separated by described separator in the described input string, the prompting pinyin syllable is selected for described user; And
For each pinyin syllable that described user has selected, the prompting Chinese character is selected for described user.
The present invention provides also that a kind of described handheld device has a plurality of keys with the device of phonetic input pattern to handheld device input Chinese phrase, and its each key all is mapped with one or more phonetic alphabet, and described device comprises:
Be used for by user's enter key and use described key to upgrade the device of input string;
All are positioned at before the described key and the key that is positioned at after any separator can not constitute legal pinyin syllable if be used for described key and described input string, then a separator are inserted into the device in the described input string before described key;
Be used for for described input string each part, the device that the prompting pinyin syllable is selected for described user by described separator separation; And
Each pinyin syllable that is used for having selected for described user, the device that the prompting Chinese character is selected for described user.
The present invention also provides a kind of handheld device, comprising:
Input media has a plurality of keys, and its each key all is mapped with one or more phonetic alphabet;
Chinese character database is used to store Chinese character information;
Be used for by user's enter key and use described key to upgrade the device of input string;
All are positioned at before the described key and the key that is positioned at after any separator can not constitute legal pinyin syllable if be used for described key and described input string, then a separator are inserted into the device in the described input string before described key;
Be used for for described input string each part, the device that the prompting pinyin syllable is selected for described user by described separator separation;
Each pinyin syllable that is used for having selected for described user, the device that the prompting Chinese character is selected for described user; And
Display is used to show described pinyin syllable and described Chinese character.
The present invention also provides a kind of and is composed of with the storage medium of phonetic input pattern to the machine-readable computer program codes of handheld device input Chinese phrase, and this storage medium comprises the instruction that is used to make processor realization the method according to this invention.
By means of method and apparatus of the present invention, the user of handheld device can be input to the phonetic phrase in the handheld device quickly and easily.In method and apparatus of the present invention, at first, button always is considered to the continuation of previous syllable, therefore can't hinder the input of individual character.The use of separator key allows the user to prevent polysemy in advance.And the use of " heavily coupling " key (re-match) makes the user can determine polysemy afterwards.
By hereinafter in conjunction with the accompanying drawings the optimal case of the principle of the invention being described, other features and advantages of the present invention should be clearly.
Embodiment
To describe specific embodiments of the invention in detail now.
Fig. 1 illustrates the mapping relations between numerical key and 26 phonetic alphabet, describes at preamble.
Fig. 2 is with the process flow diagram of spelling mode to the method for handheld device input Chinese phrase according to the present invention.
At step S201, handle beginning.
At step S202, in order to import Chinese phrase with spelling mode, the user of handheld device selects the phonetic input pattern.
At step S203, receive the button of first word of Chinese phrase, this Chinese phrase will utilize the input of ITU-T keypad according to the pronunciation of this Chinese phrase by the user of handheld device.
At step S204, before the step S205 of the button of the next word that receives Chinese phrase, between the button of current word and next word, insert a separator.
Then, at step S206, judge whether the input of this Chinese phrase is finished.
Do not finish if judged the input of this phrase at step S206, then handle to turn back to step S204, so that increase a separator and receive the button of next word.
If the result of determination of step S206 is pointed out the input of this phrase and finished, then handle to proceed to step S207.
At step S207, will prompting according to a plurality of pinyin syllable of providing of button of input as the candidate, therefrom select required one for the user.
At step S208, judge whether the required pinyin syllable of user is pointed out as candidate pinyin.
If the result of determination of step S208 is for being, be to have required pinyin syllable in the candidate pinyin, then handle and will proceed to step S210, wherein the user can select required candidate pinyin by means of the selection function that handheld device provides, and and then selects required Chinese phrase.Then, in step S211 end step.
If promptly there is not required pinyin syllable in the result of determination of step S208 for not in the candidate pinyin that provides, then step will proceed to S209.
At step S209, change the position of the separator in the button, so that the button of input is reinterpreted,, in step 207 different candidate pinyin syllables is prompted to the user as the candidate then to obtain different candidate pinyin syllables.
Repeat processing then, up to pointed out required pinyin syllable to select as the candidate for the user from step S207 to S209.
Thereby, required Chinese phrase is input in the handheld device, should handle then and finish at step S211.
Fig. 3 at length illustrates according to the present invention with the process flow diagram of spelling mode to the method for handheld device input Chinese character or phrase.
As shown in Figure 3, at step S301, handle beginning.
At step S302, the user of handheld device selects the phonetic input pattern so that with phonetic input pattern input Chinese character or phrase.
At step S303, the user of handheld device pushes numerical key, i.e. in the key of " 2 "-" 9 " one is to import first phonetic symbol.
At step S304, will offer the user as candidate pinyin with the corresponding a plurality of pinyin syllable of button of input and therefrom select required one for it.
At step S305, judge whether the required pinyin syllable of user is pointed out as candidate pinyin.
If the result of determination of step S305 is for being, be to have required pinyin syllable in the candidate pinyin, then handle and will proceed to step S306, wherein the user can select required candidate pinyin by means of the selection function that handheld device provides, and and then selects required Chinese character or phrase.Then, finish in step S307 processing.
If promptly there is not required pinyin syllable in the result of determination of step S305 for not in the candidate pinyin that provides, then handle and will proceed to S308, at step S308, need the user to push next key.
Then, at step S309, judge the key press whether be one from " 2 " to " 9 " numerical key or be a separator key.
If point out that in the result of determination of step S309 the key of pressing is any one of numerical key from " 2 " to " 9 ", then handles to proceed to step S310.
At step S310, judge further whether current input and previous input can constitute legal pinyin syllable, whether the arbitrary letter that promptly is mapped on the numerical key of pressing can constitute legal pinyin syllable with previous input.
If point out that in the result of determination of step S310 current input and previous input can constitute legal pinyin syllable, promptly current button can be interpreted as the continuation of previous syllable, then handle and to proceed to step S314, in step S314, the legal pinyin syllable of all formations is prompted to the user for its selection as candidate pinyin.
If the result of determination of step S310 is pointed out current input and previous input and can not be constituted legal pinyin syllable, be about to the beginning that current button should be interpreted as new syllable, then handle and to proceed to step S311, in step S311, a separator is inserted between current input and the previous input, so that constitute the keystroke sequence that comprises one or more separators.Handle then and will proceed to step S314.
If point out that in the result of determination of step S309 the key of pressing is a separator key, then handle and to proceed to step S312.The separator key can be distributed on any one key except the key of " 2 "-" 9 ", for example " 0 " key.
At step S312, formerly increase a separator after the input, this means that next input will be interpreted as the beginning of new syllable.
Then, at step S313, judge the numerical key of whether having pushed from " 2 " to " 9 ".Before in above-mentioned numerical key one is pressed, handles and can not proceed to step S314.That is to say, will ignore pushing of other keys, pushing of above-mentioned numerical key is considered as the beginning of new syllable.
As mentioned above, after step S310 or step S311 or step S313, processing will proceed to step S314.At step S314, a plurality of pinyin syllable are prompted to the user for its selection as candidate pinyin.
At step S315, S305 is similar with step, judges whether the required pinyin syllable of user is pointed out as candidate pinyin.
If the result of determination of step S315 is pointed out required pinyin syllable to be prompted to the user, then handle and to turn back to step S306.
If the result of determination of step S315 is pointed out required pinyin syllable and is not prompted to the user, then handle going to step S316.
At step S316, judge whether the input of Chinese phrase is finished.
If the result of determination at step S316 is not, another phonetic symbol that promptly still has the user to import, then handle and to turn back to step S308, repeat the above-mentioned steps from S308 to S315, be prompted to the user for its selection up to the input of finishing Chinese phrase or with required candidate pinyin.
If the result of determination of step S316 is pointed out the input of phonetic phrase and finished, then handle to proceed to step S317.
At step S317, judge whether " heavily coupling " key is pressed.Can " heavily coupling " key distribute on any key except " 2 "-" 9 " key and separator key, for example " 1 " key.
If push " heavily coupling " key at step S317, then handle and go to step S318.At step S318,, then will change the position of the separator in the button of importing if in the button of input, there is at least one separator; Otherwise, a separator is inserted in the button of input.In this way, the button to input makes an explanation again, to obtain different candidate pinyin.
Then, processing will turn back to step S314, and these candidate pinyin are prompted to the user for its selection.
If do not provide required pinyin syllable sequence in step S315 judgement, and judge the input of having finished the phonetic phrase at step S316, then the user can push " heavily coupling " key once more, so that can reinterpret the button of importing further, up to required pinyin syllable being prompted to the user for its selection.
With " we " is example.Order is pushed after " 9 " key and " 6 " key, and the user of handheld device can push the separator key, " 0 " key for example, and then push " 6 " key.That is to say that the user can pressing key " 9-6-separator-6 ", thereby " wo m " is prompted to the user as candidate pinyin.This is because the button after the separator is used as the beginning of next syllable.That is to say that pushing of key " 9-6 " should be interpreted as a pinyin syllable; Should be interpreted as next syllable with pushing the second time of " 6 " key; And " wo m ", " won ", " zo m " etc. are provided as candidate pinyin.Such as the Chinese phrase of the correspondences of " we ", " snail " etc., will be prompted to the user for its selection as candidate's phrase.Therefore, the user can select " we " from the candidate, and is entered in the handheld device.
Perhaps, in order to import " we ", the user of handheld device can press " 9 " key, " 6 " key and " 6 " key as previously discussed in proper order, and provides " won ", " yon ", " zon " as the candidate.Then, the user can press " heavily coupling " key, for example " 1 " key for the first time.So a separator will be inserted in the button " 9-6-6 " of input, button becomes " 9-separator-6-6 ", and provides " w mo ", " y no ", " x mo " etc. as candidate pinyin.When the user pressed " heavily coupling " key once more, the button of input became " 9-6-separator-6 ", and provides " wo m ", " wo n ", " zo n " etc. as candidate pinyin.That is to say, the user can by one or many press " heavily coupling " key, the difference that obtains button is explained and different candidate pinyin, up to can select required phrase from candidate's phrase.
Fig. 4 is schematically illustrated a kind of according to handheld device of the present invention, and it comprises the device that is used to import Chinese character or phrase of the specific embodiment according to the present invention.
As shown in Figure 4, this handheld device comprises input media 401, numerical data base 402, phrase data base 403, controller 404 and display 405.For example, input media 401 can be an ITU-T keypad.Numerical data base 402 can be stored the multiple information of Chinese character, for example Pinyin information, stroke information, phonetic notation information etc.Phrase data base 403 can be stored the multiple information of Chinese phrase, pinyin syllable information etc. for example, and described Chinese phrase is an employed legal phrase in the Chinese.
Controller 404 also comprises memory storage 406, retrieves and reinterprets engine 407, mapping table 408 and output unit 409.
Mapping relations between each key on the mapping table 408 storage input medias 401 and 26 English alphabets, for example, as shown in Figure 1.
Controller 404 receives the button of being imported by input media 401, and they are stored in the memory storage 406 temporarily.Retrieve and reinterpret engine 407, come docuterm database 402 and/or phrase data base 403, so that obtain candidate pinyin syllable and candidate or phrase corresponding to button according to mapping table 408 and the button that is kept in the memory storage 406.If any letter that is mapped on the key of input media 401 can constitute legal pinyin syllable with previous input, then retrieve and reinterpret the continuation that engine 407 is interpreted as this button previous syllable.When having only all letters on being mapped to this key not constitute legal pinyin syllable with previous input, retrieve and reinterpret the beginning that engine 407 is interpreted as this button a new syllable, and in the keystroke sequence in being stored in memory storage 406, before this button, increase a separator.Perhaps, after the previous word of input Chinese phrase, the user of handheld device can manually press the separator key, and this separator key can be distributed on any one key except those are mapped with the key of 26 English alphabets by handset makers.
By output unit 409 these candidate pinyin syllables and candidate or phrase are sent to display 405 then and are presented on the display 405 and therefrom select required one for the user.
If after the user of handheld device finishes to import the phonetic symbol of Chinese phrase, do not demonstrate required candidate pinyin syllable on the display 405, then the user can press " heavily coupling " key, this key will make retrieval and reinterpret engine 407 and change the position of separators or a separator is inserted in the button of being stored, and reinterpret button to obtain different candidate pinyin syllables and corresponding candidate or phrase." heavily coupling " key can be distributed on any one key except those are mapped with the key of 26 English alphabets and separator.
The present invention also provides a kind of and is composed of with the storage medium of phonetic input pattern to the machine-readable computer program codes of handheld device input Chinese phrase, and this storage medium comprises the instruction that is used to make processor realization the method according to this invention.Storage medium can be any tangible media, for example floppy disk, CD-ROM, hard disk drive.
Though above with reference to specific embodiment of the present invention, it only is exemplary that but the person skilled in the art should understand these, and under the situation that does not break away from the principle of the invention, can revise these embodiment, scope of the present invention is limited by appended claims.