Background technology
Based on the Chinese character input method simulation normal Chinese characters writing style of stroke, and require the user to import Chinese character according to correct stroke order.Existing stroke input method for example (for example is defined as the various strokes of expression to several buttons, horizontal, vertical, cast aside, press down, folding), by press a plurality of candidate Chinese characters that can obtain to meet this stroke order corresponding to the button of this stroke according to the stroke order of required Chinese character, the user can select required Chinese character in candidate Chinese character then.For example, if input " can " word, can be decomposed into following stroke " horizontal, folding, perpendicular, folding, horizontal stroke " according to the order of writing this Chinese character, the button by according to this each stroke of order input expression, can obtain " can " word.There is following several problem in this existing stroke input method:
1. for the Chinese character with many strokes, the user must import long strokes sequence and obtain required Chinese character, and this has reduced input speed.
2. when this strokes sequence of input, the user must remember the strokes sequence from the beginning stroke to the end stroke.Yet the correct stroke order of remembeing each Chinese character is very difficult.Thereby when the user imported strokes sequence with the order of mistake, even only there is a stroke to make mistakes, he can not obtain this Chinese character.
3. some Chinese characters have identical part or radicals by which characters are arranged in traditional Chinese dictionaries, for example:
Chinese character " thunder, frost, dew, snow " has identical top radicals by which characters are arranged in traditional Chinese dictionaries " rain ";
Chinese character " trousers, just, skirt, sleeve " has identical left side radicals by which characters are arranged in traditional Chinese dictionaries " Yi ";
Have the Chinese character of identical beginning radicals by which characters are arranged in traditional Chinese dictionaries for these, if use conventional stroke input method, the user must import each stroke that this begins radicals by which characters are arranged in traditional Chinese dictionaries successively from the beginning stroke.Only the input of the stroke after each stroke of finishing these radicals by which characters are arranged in traditional Chinese dictionaries of input can be distinguished the Chinese character that these have identical radicals by which characters are arranged in traditional Chinese dictionaries.For example want the Chinese character of input tape " rain " prefix radicals by which characters are arranged in traditional Chinese dictionaries, need to import the Chinese character that 9 strokes (" rain " radicals by which characters are arranged in traditional Chinese dictionaries itself have 8 strokes) just may be distinguished all bands " rain " prefix radicals by which characters are arranged in traditional Chinese dictionaries at least.Because this existing stroke input method needs more stroke input, and require user's the order of stroke input accurate, this accuracy and speed that causes importing reduces.
Embodiment
Describe according to a preferred embodiment of the invention in conjunction with the characteristics of Chinese character with reference to the accompanying drawings.A preferred embodiment of the present invention is based on 5 current stroke input methods, this method is all stroke classifications of Chinese character 5 kinds: horizontal, vertical, cast aside, press down and folding, wherein the stroke of level is defined as " horizontal stroke ", vertical stroke is defined as " erecting ", being defined as " left-falling stroke " from upper right stroke to the lower-left, being defined as right-falling stroke, and the stroke of bending is defined as " folding " from left to bottom right stroke.The user imports each stroke successively according to the order of writing of character.
Can be called preceding-terminal stroke input method according to stroke input method of the present invention.This method identifies required word by some beginnings and the end stroke of being imported required word by the user respectively.
Fig. 1 illustrates the process flow diagram according to the method for first embodiment of the invention.Before carrying out this flow process, at first define button on the input media and the corresponding relation between the character stroke.For example, button " 1,2,3,4,5 " corresponds respectively to stroke " horizontal, vertical, cast aside, press down, folding ".At first execution in step 101, receive key information from keyboard; Judge in step 102 whether this key information represents the information of end of input then, for example button " # " is defined as the button of the input that finishes a character; Show the input that finishes a character if step 102 is judged, then this flow process is transferred to step 106, selects a required character by the user in the candidate characters that has obtained; Also do not finish if judge the input of a character in step 102, then proceed to step 103.Judge in step 103 whether this key information is the button of initial stroke, earlier import initial stroke in the time of for example can in this input method, arranging to begin to import a character according to sequential write, at the button " * " of pressing the expression delimiter afterwards, the stroke at Shu Ru stroke representation end subsequently, the order of this end stroke can be according to the backward of order of writing or sequential write, for example to import " power " word, then can import " horizontal stroke; perpendicular " two strokes earlier as initial stroke, " * " then pushes button, then import the stroke at end and " press down; folding " (backward stroke), then can obtain to comprise the candidate of " power " word.If initial stroke is represented with different buttons respectively with the end stroke, then can not need to import delimiter, keyboard for example shown in Figure 5 is represented " horizontal, vertical, cast aside, press down, folding " of end stroke respectively with " 7,8,9, *, 0 ".If judge that in step 103 stroke of being imported is initial stroke, then enter step 104, in conjunction with the stroke of previous input, the corresponding candidate characters of initial stroke of in character library or candidate characters, searching Yu being imported, and on display, show; If judge that in step 103 stroke of being imported is the end stroke, then enter step 105, formerly search end stroke and the corresponding character of being imported of end stroke in the candidate characters of Huo Deing.Note that input order at this end stroke can be contraryly to write order or according to writing order.Contrary when writing the mode of order when adopting, last stroke of input is imported the penult stroke, and so on more earlier.When the input order of employing order, import a sign that finishes a character input after should in the end a stroke input is finished, for example import " # " mentioned above number.When adopting backward input end stroke, can import the sign that expression finishes a character input, candidate will dynamically be adjusted along with the input of end stroke, can directly select required character in candidate.
After step 104 and 105 finished, flow process turned back to step 101, continued to wait for the input of next button, if judge the end of input of a character in step 101, then transferred to step 106.Above provide wherein a kind of method of judging EOC, promptly judge whether the end of input sign, if but it is abundant to press bond number, when making the button of selecting candidate and the button of importing stroke not shared, can judge whether to finish the input of a character by judging whether to press the button that is used to select candidate, select candidate in step 106 simultaneously.After selecting candidate, selected character is displayed on the screen.Then judge whether to finish all inputs by judging whether the time inoperation of pressing specific keys or the pre-fixed length of process in step 107.If do not finish input, then continue to receive key information the input character late from keyboard.
Fig. 2 illustrates the process flow diagram according to the method for second embodiment of the invention.Similar with above-mentioned first embodiment, before carrying out this flow process, button on the also pre-defined input media and the corresponding relation between the character stroke.In step 201 to the 203 key number sequences of storage representation stroke order successively, when key information that reception stops to import till.Comprise some initial strokes and end stroke in the strokes sequence of being imported.In step 204, from the key number of being stored, identify the numeral of initial stroke of expression and end stroke, boundary can be distinguished according to the method described in first embodiment between wherein initial stroke and the end stroke, promptly represents initial sum end stroke respectively with special delimiter or with two groups of buttons.When using two groups of buttons to represent initial sum end stroke respectively, no matter whether be initial stroke or end stroke, identical stroke can be converted into the stroke that identical numeral is stored input, for example, correspond respectively to stroke " horizontal, vertical, cast aside, press down, folding " with numeral " 1,2,3,4,5 ", in character library, in advance each word is all used and represented that stroke writes the code of order and index.
Then execution in step 205 is searched initial stroke and end stroke and the corresponding character of being imported of stroke in character library.For example, the stroke writing of " power " word is " cast aside anyhow and press down the folding right-falling stroke ", and it can be indexed and be " 123454 ".When preceding two strokes of input and latter two stroke, the stroke information of storing in input media is " 12*54 ", use the character of this information as search argument match retrieval in character library, wherein " * " is both as the separator between the stroke of initial sum end, again as the asterisk wildcard of retrieving.In step 206, all coupling characters that retrieve are used as candidate and are presented on the screen, are selected by the user.Then, show selected character in step 207.In step 208, judge whether the input of termination character, if do not finish, then get back to step 201 and continue to receive keypad information, otherwise finish this flow process.
Above-mentioned second embodiment and the first embodiment difference are:
The advantage of the scheme of first embodiment is when stroke of each input, can dynamically adjust candidate, can stop to import stroke when required candidate occurring, and select required character; This scheme need all be carried out retrieval when initial stroke of each input, and shows a plurality of candidate, and the hardware configuration of input media is had relatively high expectations.
The scheme of second embodiment is carried out retrieval after the stroke of input some, relatively be fit to the not high occasion of the repetition rate of coding.As if statistics shows that the repetition rate of coding of two characters that stroke retrieved importing initial two strokes and end respectively is little, then can use the reduction procedure of second embodiment.
Fig. 3 illustrates the process flow diagram according to the method for third embodiment of the invention.Identical with above-mentioned second embodiment, before carrying out this flow process, button on the also pre-defined input media and the corresponding relation between the character stroke.Whether step 302 receives continuously key informations and discerns this key information to 305 is initial stroke or end stroke, store respectively then initial stroke and end stroke when the stroke of a character of input finishes till.In step 306 and 307, the initial stroke and the corresponding candidate of end stroke of successively in character library, searching Yu being stored.Then, from candidate, select required character in step 308 by the user.In step 309, on screen, show selected character.Judge whether to finish input in step,, then turn back to step 301, continue to receive the stroke input of character late, otherwise finish input if also do not finish input.
The 3rd embodiment and the second embodiment difference are, second embodiment is after the key number sequence of the stroke of a character of input expression, discern the key number of expression initial stroke and end stroke by analyzing this key number sequence, and be converted to the stroke code and retrieve candidate; The 3rd embodiment discerns this button whether to represent initial stroke or end stroke after key information of every input, and is converted to corresponding stroke code and comes the query candidate word.
The process flow diagram of above-mentioned three embodiment is only different on the precedence of step, and its invention thought all is that each button of the various strokes of character and keyboard is interrelated, and utilizes some initial strokes of character and end stroke to come input character.
Fig. 4 illustrates the structural drawing that can be used for above-mentioned first to third party's method embodiment input media.
Input media shown in Figure 4 comprises keyboard 401, initial sum end stroke extraction unit 402, candidate characters retrieval unit 403, display unit 404 and library stores device 405.
This keyboard 401 is connected with initial sum end stroke extraction unit 402.This initial sum end stroke extraction unit 402 is according to discerning and extract initial sum end stroke by the key information of keyboard 401 inputs.The initial sum end stroke that is extracted is provided for candidate characters retrieval unit 403, in library stores device 405, retrieve candidate characters by candidate characters retrieval unit 403, wherein store character set in this library stores device 405 in advance according to the stroke coding of character.The candidate characters of being retrieved is displayed on the display unit 404, selects for the user.
Fig. 5 illustrates the outward appearance of the input media of a kind of first to the 3rd embodiment that can be used for the invention described above.From the keyboard 401 of this input media as can be seen button " 1,2,3,4,5 " correspond respectively to " horizontal, vertical, cast aside, press down, folding " of initial stroke, and button " 7,8,9, *, 0 " corresponds respectively to end stroke " horizontal, vertical, cast aside, press down, folding ".
This mode that initial stroke and end stroke are represented with different key is a preferred embodiment of the present invention, use this corresponding relation, input media can judge easily that the button of being imported is initial stroke or end stroke, and the user can optionally import stroke according to the custom of oneself.For example can import the end stroke earlier and import initial stroke again, perhaps end stroke and initial stroke alternately import arbitrarily till required character occurring (that is, input order can be: first stroke, stroke last, second stroke, stroke second from the bottom ...).But the present invention is not limited to this.As indicated above, also can represent with the end stroke initial stroke with identical button, at this moment should import some initial strokes continuously, after having imported initial stroke, import a separator, and then then import some ends stroke continuously.
The present invention be advantageous in that easily to be applied to existing input media, and do not need conventional device is done bigger change, and method of the present invention is grasped and use for the user easily.
Be that example illustrates technical scheme of the present invention with Chinese character in the instructions of the present invention, but obviously the present invention can also be used to import Japanese, Korean or the like by character that a plurality of stroke constituted.Though the front is with reference to specific implementations of the present invention, but those skilled in the art is to be understood that, these only illustrate, and can do many changes and not break away from principle of the present invention these embodiments, and scope of the present invention is defined by the following claims.