A kind of method of automatic realization handwriting inputTechnical field
The present invention relates to a kind of input method of electronic product, particularly a kind of method of automatic realization handwriting input.
Background technology
The keyboard input is the most traditional at present, the most general a kind of input mode, but because we the employed keyboard overwhelming majority is a QWERTY keyboard, if Chinese character is imported, just must use a kind of input method of Chinese character, though various input methods based on keyboard emerge in an endless stream, for example: " five ", " phonetic ", " Intelligent ABC ", " Zheng's sign indicating number " or the like, the appearance of these input methods has also brought certain convenience for the Chinese character typing, but these input methods also exist many shortcomings simultaneously, such as: the spelling input method dialect disturbs big, phonetically similar word is many, repetition rate of coding height, and five-stroke input method needs to learn by heart coding inevitably, input rule etc., thereby various input method all can't be accomplished satisfactory to both parties neat U.S. at learnability and ease for use.
In recent years, the proposition of hand-written inputting method, input has proposed great challenge to keyboard, it is hand-written on touch-screen by built-in stylus that it refers to the electronic product terminal, the recognition system of touch-screen by inside is converted to the discernible standard letter of electronic product terminal to hand-written various fonts and is presented on the touch-screen, so just improved the speed of input widely; And the importer need not additionally to train and can use.
But, handwriting input is used alone as a kind of input method at present traditional electronic product terminal, in input mode is in keyboard input and handwriting input and the electronic product deposited, carry out the Chinese character input and need at first to select to determine handwriting input mode or keyboard entry method, dual mode switches and can not finish automatically, use particularly inconvenience, have bigger use limitation.
Summary of the invention
The technical problem to be solved in the present invention is: a kind of method that can realize handwriting input automatically is provided, no matter which kind of method the input state of this method electronic product terminal initial is, can discern beginning handwriting input state as required automatically, simple to operate, it is convenient to realize.
The present invention realizes by following technical proposals:
A kind of method of automatic realization handwriting input, be applied to the Chinese character input of electronic product terminal, can be according to the hand-written operation of stylus on handwriting pad, identification handwriting input track, recognition system by inside is converted to the discernible standard letter output of electronic product terminal demonstration to hand-written various fonts, and this method comprises the steps:
(a) first timing and first distance are set;
(b) detecting stylus contacts with handwriting pad;
(c) stylus moves on handwriting pad, judge stylus in the displacement of first timing whether greater than first setpoint distance, if then trigger hand-written input system;
(d) record handwriting input track is discerned output and is shown.
Further, described step (a) before, inputting method is adopted in Chinese character input.
Further, described handwriting pad and display screen are a touch-screen.
Further, displacement is to obtain by the change calculations of calculating stylus position coordinates in first timing in the described step (c).
Further, described step (d) also further comprises the steps afterwards, if detect keyboard operation, directly withdraws from handwriting input.
Compared with prior art, the method for handwriting input proposed by the invention can be discerned the handwriting input state automatically, need not to carry out the setting of hand-written inputting method in input process, makes that the switching of handwriting input is more succinct, convenience.
Description of drawings
Fig. 1 is for carrying out the method realization flow figure of Chinese character input in the specific embodiment of the invention.
Fig. 2 is the method realization flow figure that realizes handwriting input in the specific embodiment of the invention automatically.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is further introduced, but not as a limitation of the invention.
With reference to illustrated in figures 1 and 2, the touch-screen of mobile phone is provided with the handwriting input zone, in carrying out Chinese character input process, if what originally use is the keyboard entry method input, then manual input mode be to convert to,, first timing and first distance preestablished in order to discern the handwriting input state automatically, be used to judge whether stylus is carrying out handwriting input, its flow process that realizes automatically is as follows:
Step 101: when application program of mobile phone starts, load the keyboard spelling input method, below screen, open the interface of input method;
Step 102: utilize the keyboard on the mobile phone, the Chinese character input is carried out in the combination of a plurality of buttons;
For example: input " urging ", successively press 2 keys and 8 key combinations, the interface of input method top shows possible phonetic elements combination " bu cu cun cuo cui ", move right and select the phonetic element to choose " cu ", pressing the OK key moves to focus in the candidate tabulation of interface of input method below, the candidate that moves right is pressed the OK key and is selected the input candidate " to urge ".
Step 103: trigger handwriting input, finish the input of " advancing ", its realization is specially:
Step 1031: detect hand-written touch pen and on the handwriting area of touch-screen, press;
Step 1032: judge stylus in first timing whether the displacement in the handwriting input zone greater than first apart from the time, if then automatically switch to the handwriting input state, interface of input method empties, and change to handwriting interface, if not, otherwise processed;
Wherein: the displacement of stylus is to obtain by the change calculations of calculating stylus position coordinates in first timing;
Step 1033: utilize stylus on touch-screen, to finish the input of " advancing ", write down this input trajectory, and be shown as the tabulation of the nearest word of input in the handwriting interface bottom, select " advancing " to import.
Thus, finished the input of " promotion ", in keyboard input " urging " afterwards, Direct Recognition the switching of handwriting input state, and need not artificial setting.
Step 104: if in the handwriting input process, carry out keyboard operation, then withdraw from the handwriting input mode automatically, switch to keyboard entry method, can continue to utilize the keyboard input.
This method can be discerned the handwriting input state automatically, need not to carry out the setting of hand-written inputting method in input process, makes that the switching of handwriting input is more succinct, convenience.