1. Technical Field
The present disclosure relates to handwriting input technology and recognition, and particularly, to an apparatus and a method for processing handwriting input.
2. Description of the Related Art
Touch screens are found in electronic devices, and some touch input devices include a touch panel and an input device, such as stylus, for inputting handwriting on the touch panel. When a user inputs a long word having five or more characters, the input may appear to look like two or more words rather than one word because of the space between some adjacent characters. For example, a user inputting the word “something” may confuse people, who see the two words “some” and “thing” if the space between “e” and “t” is big enough. Moreover, the handwriting is commonly stored as a digital image without any correction to the words, and the size, the height, or the width of some characters of the input handwriting may be quite different from others, which results in an untidy look. Therefore, there is room for improvement within the art.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed icon clearly illustrating the principles of the disclosure. Moreover, in the drawing, like reference numerals designate corresponding parts throughout the several views.
Referring to
Referring to
The touch analyzing unit 14 determines coordinates of touch positions in response to touch signals generated by the touch display screen 11. The coordinate receiving module 121 receives the coordinates determined by the touch analyzing unit 14. When the input determining module 122 determines that no touch signals are being received from the touch display screen 11, the time calculating unit 16 is enabled by the input determining module 122 to calculate the elapse time for which no touch signals are being received. The input determining module 122 determines whether the time tracked by the time calculating unit 16 reaches a predetermined time to determine whether the input of a word is finished. If the touch analyzing unit 14 receives touch signals from the touch display screen 11 again before the time elapsed reaches the predetermined time, the input determining module 122 determines that the input of the word is continuing. The handwriting display module 126 controls the touch display screen 11 to display the unfinished word in the word inputting box 110. When the elapsed time is equal to the predetermined time, the handwriting recognizing module 123 determines that the input of the word is finished, and the handwriting display module 126 zooms the word out according to the predetermined scaling factor and controls the touch display screen 11 to display the zoomed out word in the display box.
The boundary determining module 124 determines whether the coordinates received by the coordinate receiving module 121 are on a predetermined boundary of the word inputting box 110 according to the word inputting box defining condition stored in the storage unit 15.
When the coordinates received by the coordinate receiving module 121 determined to be on or to cross any boundary of the word inputting box 110, the prompting display module 125 generates a prompt, and the display control unit 13 controls the touch display screen 11 to display the prompt. In the embodiment, the prompt includes a first operating point 111 and a second operating point 112 (as shown in
Referring to
Referring to
Referring to
Referring to
In step S400, the word inputting box determining module 120 controls to display the word inputting box 110 on the touch display screen 11 for allowing the user to handwrite the letters therein.
The storage unit 15 has a pre-stored word inputting box defining condition for defining an word inputting box 110. The input determining module 120 determines the extent of the word inputting box 110 according to the word inputting box defining condition stored in the storage unit 15. In the embodiment, according to the word inputting box defining condition, the size of the word inputting box 110 is equal to that of the touch display screen 11. In an alternative embodiment, according to the word inputting box defining condition, the size of the word inputting box 110 is smaller than that of the touch display screen 11 and is centered by the initial touch position.
In step S401, the touch analyzing unit 14 determines coordinates of the touch positions in response to the touch signals generated by the touch display screen 11, and transmits the coordinates so determined to the coordinate receiving module 121.
In step S402, the boundary determining module 124 determines whether the coordinates received by the coordinate receiving module 121 are on a predetermined boundary of the word inputting box 110 according to the word inputting box defining condition stored in the storage unit 15. If yes, the procedure goes to step S403, otherwise, the procedure returns to step S400.
In step S403, the prompting display module 125 generates a prompt including the first operating point 111 and the second operating point 112, and the display control unit 13 controls the touch display screen 11 to display the first operating point 111 and the second operating point 112 at the same time on a boundary of the word inputting box 110.
In step S404, the handwriting display module 126 determines whether coordinates determined by the touch analyzing unit 14 in response to a user's touch when the prompt is displayed on the touch display screen 11 is on the first operating point 111 or on the second operating point 112. If the coordinates are on the first operating point 111, the procedure goes to step S405, if the coordinate is on the second operating point 112, the procedure goes to step S410, and otherwise, the procedure goes to step S412.
In step S405, the handwriting display module 126 reduces a size of the handwritten letters in the predetermined scaling factor, and displays the handwritten letters with the reduced size in the display box 113. Then, the handwriting display module 126 erases the handwritten letters displayed in the word inputting box 110.
The words are input by the input device 20 before the prompt is displayed on the touch display screen 11, and determined by the handwriting recognizing module 123 to be displayed on the word inputting box 110.
In step S406, the touch analyzing unit 14 detects the user's handwriting of a second word in the word inputting box 110 after the handwritten letters with the reduced size is displayed in the display box 113.
In step S407, the time calculating unit 16 calculates a time duration during which no touch is detected by the input determining module 122.
In step S408, the input determining module 122 determines whether the time tracked by the time calculating unit 16 reaches a predetermined time to determine whether the input of a word is finished. If yes, the procedure goes to step S409, otherwise, the procedure returns back to step S407.
In step S409, the handwriting display module 126 reduces a size of the second word out in the predetermined scaling factor, and controls the touch display screen 11 to display the second word with the reduced size in the display box 113, immediately following the word which had been displayed thereon, to combine the original word with the second word to form a whole word. The second word immediately following the original word to form a whole word means that the space between the last character of the original word and the first character of the second word is much less than a space therebetween when they are two separate words. Then the procedure ends.
In step S410, the handwriting display module 126 determines the group of the handwritten letters constituting a word.
In step S411, the handwriting display module 126 reduces the size of the word in the predetermined scaling factor, and displays the handwritten word with the reduced size in the display box 113. Then, the handwriting display module 126 erases the word displayed in the word inputting box 110, and cancels the word inputting box 110, then the procedure ends.
In step S412, the handwriting display module 126 reduces the size of the handwritten letters in the predetermined scaling factor.
In step S413, the handwriting display module 126 displays the handwritten letters with the reduced size in the display box 113, and automatically adding a space at the end of the handwritten letters in the display box 113 on the touch display screen 11. The handwriting display module 126 erases the word in the word inputting box 110. Then the procedure ends.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201210542196.8 | Dec 2012 | CN | national |