Embodiment:
Present embodiment constitutes according to the stroke of Chinese character, and by pen simulation stroke, the simulation stroke is that the shape of simulation stroke is keyed in the stroke track that starting point, flex point and drop point with stroke are characterized on keyboard on keyboard.
One, stroke input.
In the present embodiment, common basic stroke of Chinese character and compound stroke are divided into 31 kinds, provide the input rule of these strokes, the user can import according to the writing style of oneself.
Chinese character stroke roughly is divided into following 31 kinds:
One (horizontal stroke), Shu (erecting), Pie (left-falling stroke), Dian (point), (right-falling stroke),
(carrying),
(cross break), Off (horizontal left-falling stroke), Ya (horizontal hook),
(cross break hook),
(cross break is carried),
(cross break is curved),
(cross break folding),
(the oblique hook of cross break),
(cross break crotch),
(horizontal left-falling stroke crotch),
(the cross break folding is cast aside),
(cross break folding folding hook),
(cross break folding folding),
(perpendicular carrying),
(perpendicular folding), 亅 (lifting-hook),
(perpendicular curved),
(perpendicular crotch),
(perpendicular folding is cast aside),
(perpendicular folding folding),
(perpendicular folding folding hook), ㄑ (apostrophe),
(casting aside folding),
(tiltedly hook),
(crotch).
The input method of a stroke is: by import stroke according to starting point, flex point and the drop point of order of strokes observed in calligraphy input stroke on keyboard.
For example: " one " horizontal stroke, represent its starting point, drop point and the order of strokes observed in calligraphy to be in different keys position on the same horizontal line on the keyboard.Being reflected on the accompanying drawing 1, is numerical key 1 and 2, also can be numerical key 2 and 3, or numerical key 1 and 3, or even numerical key 1,2 and 3.In like manner, be in the key sequence that other keys on the same horizontal line also can constitute stroke " one " on the keyboard.Therefore, at keyboard shown in Figure 1,12,23,13,45,46,78,89,79, or even 123,456,789 etc. can be the key sequence of horizontal " ".
And for example: stroke " ", just represent with the key that is on the keyboard on the diagonal line.Shown in Figure 1 15,19,26,48,59 or 159 etc. can be the key sequence of stroke " ".
For another example: stroke
Should be according to the order of strokes observed in calligraphy input starting point, flex point and drop point on keyboard.In the keyboard shown in Figure 1,125,128,136,139,458,469,1258,12369 or the like can be the key sequence of this stroke.
The rest may be inferred, and the dotted line shown in Fig. 1 is represented stroke
The cross break folding is cast aside, and its bond order classifies 12457 as.
Two, the control stroke finishes.
How to finish the input of a stroke.At least can comprise following four kinds of methods:
The first, on keyboard, establish an operating key, in the time will beginning to import a stroke, press operating key, import stroke simultaneously, stroke unclamps operating key to finish the input of this stroke after finishing.
The second, on keyboard, establish an operating key as the stroke separator, after stroke of input, before beginning to import next stroke, click (press and unclamp) this operating key, finish the input of last stroke, begin the input of new stroke simultaneously.
The 3rd, utilize the length of dead time between twice button to judge whether to finish the input of a stroke, if the dead time is longer, then stops the input of a stroke, and begin the input of new stroke, otherwise continue the input of former stroke.
The 4th, plant on the basis of input mode at first three, if the key that the user newly presses causes having imported an illegal stroke key sequence, then import the stroke of forming by the key that the user pressed before this key, begin the input of next stroke simultaneously.The design of this stroke input mode is in order to stop the user to import a non-existent stroke key sequence, and has imported a stroke immediate stroke represented with this key sequence.So just make that input process is natural and tripping.
Three, Chinese character input.
The input of Chinese character is carried out according to the order of strokes observed in calligraphy of China national language council relevant specification standard substantially, simultaneously, to some words of easily making order of strokes observed in calligraphy mistake, according to the different order of strokes observed in calligraphys they is expanded.In order to realize fast input and fuzzy input, in the input process, can adopt asterisk wildcard " * " and "? " omit strokes, wherein " * " is the Multi strokes asterisk wildcard, represents any a plurality of stroke; "? " be the one stroke asterisk wildcard, represent any one stroke.
Four, input template.
When the user is not provided with under the situation of template the input Chinese character, just import its stroke by order of strokes, key at last and determine symbol expression end.In the input process, available asterisk wildcard " * ", "? " omit strokes.The user also can accelerate input speed greatly by input template is set.Template by four characters " * ", "? ", " X " and " # " form, wherein " * ", "? " meaning is the same, a stroke of " X " expression user input, the end mark that adds automatically during " # " expression end of input, use pattern rule as follows during input:
(1), stroke of " X " respective user input or stroke asterisk wildcard " * " or "? "
(2), after the user imports asterisk wildcard " * ", template no longer works.
(3), if the user imports N stroke, and in the template N individual " X " be before " * " or "? ", then " * " or "? " automatically be added to before N the stroke.
(4), that " # " is placed on template is last, if N " X " arranged in the template and defined " # ", after then the user imported N stroke, system added end mark automatically, the input of a Chinese character stroke sequence of end.
(5), the Chinese character that is complementary of the stroke sequence of all and input is all as the selective use of candidate.
Below specify the use of template:
Example 1: the template of definition: XX*X
The meaning of template: preceding two and last stroke of input Chinese character, do not finish input automatically.
(1), the stroke sequence: Yi 亅 Yin end mark of user's input.
By the automatic stroke sequence: Yi 亅 * Yin end mark that forms of template.
The meaning of sequence: the first stroke is " one ", second Wei “ 亅 ", finishing touch Wei “ Yin ".When the user imports the 3rd stroke “ Yin " time, " * " is added to “ Yin automatically " before.
" embrace,, comfort, stir " waits all to meet the first stroke to be " one ", second Wei “ 亅 ", finishing touch Wei “ Yin " Chinese character all as the selective use of candidate, and no matter wherein stroke number how much.
(2) stroke sequence of user's input: 0 Yi Yi Yin end mark.
Stroke sequence by the automatic formation of template:? one * Yi Yin end mark.
The meaning of sequence: the first stroke is that second is " one " arbitrarily, and last two are respectively " one " and " Yin ", because there is not end mark " # ", so input stroke sequence length is unrestricted.
" Buddhist nunnery, rake, palladium, in the least " waits all to meet second to be " one ", and last two are respectively " one " with “ Yin " Chinese character all as the selective use of candidate, and no matter what of stroke number wherein.(3), the stroke sequence of user's input a: * one end mark.
Stroke sequence by the automatic formation of template: a * one finishes to pay.
The meaning of sequence: the first stroke is " one ", and finishing touch is " one ".Because the effect of asterisk wildcard " * " is no longer worked template.
" class, spot, benzene, cypress " waits all to meet the first stroke for " one ", finishing touch be the Chinese character of " " all as the selective use of candidate, and no matter wherein stroke number how much.
Example 2: the template of definition:? X*X#
The meaning of template: forms of first strokes of Chinese characters is any, and second and finishing touch of input Chinese character finish input automatically.
The stroke sequence: Yi Yin of user's input.
Stroke sequence by the automatic formation of template:? one * Yin end mark.
The meaning of sequence: when the user imports first stroke " ", "? " automatically be added to " one " before.When the user imports second stroke “ Yin " time, " * " is added to “ Yin automatically " before, " # " finishes the input of a Chinese character sequence automatically.
" gorgeous, rule, unexpectedly, fill " wait all Chinese characters that meet this rule all as the selective use of candidate, and no matter what of stroke number wherein.
Five, screen prompt
In the process of a stroke of input, whenever by a key, it is available that some strokes appear in candidate regions, and the key sequence of these strokes is a prefix with all keys of having imported, and the user can select the stroke that will import with directionkeys and page turning key.For example: import stroke
After input stroke " ", " one " appears in display line, simultaneously candidate regions all strokes that will occur starting with " one " "
" etc.The input stroke
Key sequence after, occur on the display line
The candidate regions appearance "
" etc.Work as stroke
All key sequences be transfused to after, just finished stroke
Input.In the process of a word of input, stroke of every input, candidate regions Chinese character occurs for you to choose by frequency of utilization, and the stroke sequence of these Chinese characters is a prefix with all strokes of having imported.
Shown in Figure 1, when the inventive method was applied on the cell phone keyboard, concrete key position design as shown in Figure 1.Wherein, stroke key 123456789 is used for carrying out stroke input, and the * key is as the Multi strokes asterisk wildcard,? key is as the one stroke asterisk wildcard, and the # key is used for finishing the input of a stroke.
For example: input Chinese character " family ".
1, all stroke inputs:
User key-press: 1# 1# 135# 12# 24# 158# 24# 24# 24# 15# end mark.
Stroke sequence: Dian Dian Ya one ノ that forms
ノ ノ ノ end mark.
The meaning of stroke sequence: import all strokes by the correct order of strokes observed in calligraphy, finish the input of Chinese character stroke at last by end mark.
2, the input of band asterisk wildcard.
User key-press: 1# 1# 135# * 15# end mark.
The stroke sequence: Dian Dian Ya * end mark that forms.
The meaning of stroke sequence: first three of an input word stroke is Dian Dian Ya, and last stroke is , all meet first three for Dian Dian Ya, finishing touch be the Chinese character of all occur in candidate regions.
3, the user sets the input of template.
Input template: X*X#
User key-press: 1#15#
The stroke sequence that forms: Dian * end mark.
The meaning of stroke sequence: first stroke of input word is
Last stroke is , finishes automatically.All meet first stroke is that Dian, last stroke are that the Chinese character of will appear in the candidate regions.
The input of 4, easily making the word of stroke, order of strokes observed in calligraphy mistake.
Such as Chinese character " family ", there are many people to treat as a horizontal left-falling stroke " Off " for fourth, fifth two with its second point " Dian " as casting aside " ノ ".Therefore " Dian ノ Ya Off
ノ ノ ノ also can be the stroke sequence of " family ".