Summary of the invention
Embodiments of the invention provide a kind of input method and equipment, so that touch screen terminal equipment can be realized the collaborative input of handwriting input and dummy keyboard.
Embodiments of the invention provide a kind of input method, comprising:
Receive the touch-screen click event, judge that the reference position of described touch-screen click event is in handwriting input zone or dummy keyboard input area;
Judged result according to the reference position of described touch-screen click event determines that described touch-screen click event is handwriting input incident or dummy keyboard incoming event, and carries out handwriting input or dummy keyboard input.
The reference position of the described touch-screen click event of described judgement is in the handwriting input zone or the dummy keyboard input area comprises:
Obtain the coordinate of the reference position of described touch-screen click event;
Judge the zone that the reference position of described touch-screen click event belongs to according to the described handwriting input zone of configuration or the coordinate range of dummy keyboard input area.
Judged result according to the reference position of described touch-screen click event determines that described touch-screen click event is that handwriting input incident or dummy keyboard incoming event comprise:
When the reference position of described touch-screen click event was in described handwriting input zone, whether the displacement of further judging described touch-screen click event was greater than the gauged distance that disposes; If the displacement of described touch-screen click event determines that greater than the gauged distance of configuration described touch-screen click event is the handwriting input incident; If the displacement of described touch-screen click event is less than or equal to the gauged distance of configuration, determine that described touch-screen click event is the cursor moving event;
When the reference position of described touch-screen click event is in described dummy keyboard input area, judge that described touch-screen click event is the dummy keyboard incoming event.
Determine that described touch-screen click event is after the handwriting input incident, also comprises:
Judge follow-up touch-screen click event apart from whether surpassing interval time of last touch-screen click event the identification stand-by period;
If judged result is that follow-up touch-screen click event is defined as the handwriting input incident does not carry out respective handling;
If judged result, re-executes the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area for being.
The reference position of the described touch-screen click event of described judgement is in before handwriting input zone or the dummy keyboard input area, also comprises:
Judge whether current input pattern is handwriting input mode;
If current input pattern is a handwriting input mode, then further judge current touch-screen click event apart from last time the touch-screen click event the time interval whether surpass the standard time of disposing; If judged result is for being, the reference position of then carrying out the described touch-screen click event of judgement is in the step of handwriting input zone or dummy keyboard input area; If judged result then keeps the handwriting input state for not;
If current input pattern is not a handwriting input mode, then carry out the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area.
Embodiments of the invention provide a kind of input equipment, comprising:
The incoming event judging unit is used to receive the touch-screen click event, judges that the reference position of described touch-screen click event is in handwriting input zone or dummy keyboard input area; Judged result according to the reference position of described touch-screen click event determines that described touch-screen click event is handwriting input incident or dummy keyboard incoming event;
Processing unit is used for carrying out handwriting input or dummy keyboard input according to the judged result of described incoming event judging unit.
Described incoming event judging unit specifically is used for:
Obtain the coordinate of the reference position of described touch-screen click event;
Judge the zone that the reference position of described touch-screen click event belongs to according to the described handwriting input zone of configuration or the coordinate range of dummy keyboard input area.
Described incoming event judging unit specifically is used for:
When the reference position of described touch-screen click event was in described handwriting input zone, whether the displacement of further judging described touch-screen click event was greater than the gauged distance that disposes; If the displacement of described touch-screen click event determines that greater than the gauged distance of configuration described touch-screen click event is the handwriting input incident; If the displacement of described touch-screen click event is less than or equal to the gauged distance of configuration, determine that described touch-screen click event is the cursor moving event;
When the reference position of described touch-screen click event is in described dummy keyboard input area, judge that described touch-screen click event is the dummy keyboard incoming event.
Described incoming event judging unit also is used for:
Determine that described touch-screen click event is after the handwriting input incident, judge follow-up touch-screen click event apart from whether surpassing interval time of last touch-screen click event the identification stand-by period;
If judged result is that follow-up touch-screen click event is defined as the handwriting input incident does not carry out respective handling;
If judged result, re-executes the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area for being.
Described incoming event judging unit also is used for:
Judge whether current input pattern is handwriting input mode;
If current input pattern is a handwriting input mode, then further judge current touch-screen click event apart from last time the touch-screen click event the time interval whether surpass the standard time of disposing; If judged result then keeps the handwriting input state for not;
If current input pattern is not a handwriting input mode, then carry out the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area.
Compared with prior art, the present invention has the following advantages at least:
In the embodiment of the invention, terminal device receives the touch-screen click event, reference position according to the touch-screen click event is in handwriting input zone or key entry area territory, judges that the touch-screen click event is handwriting input incident or dummy keyboard incoming event, and imports processing accordingly; Thereby can realize the collaborative input of handwriting input and dummy keyboard input, improve the input speed of touch screen terminal equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiments of the invention, the technical scheme in the embodiments of the invention is clearly and completely described, obviously, the embodiments described below only are the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of embodiments of the invention protection.
The main thought of embodiments of the invention is: by the judgment mode of terminal device to current input pattern is set, makes terminal device judge current input pattern automatically, and carry out corresponding touch-screen click event according to current input pattern and handle operation.This judgment mode is mainly: comprehensively judge by reference position and sliding length to the touch-screen click event, judge that current touch-screen click event is the dummy keyboard input, cursor moves or handwriting input, and carry out corresponding event and handle; When judged result is handwriting input or cursor when moving, then after the input of finishing a word, comprehensively judge again next time.By this judgment mode to current input pattern, make the current input pattern of the automatic identification of terminal device, and carry out corresponding operation, input mode is flexible, efficient, and user experience is good.
Concrete, embodiments of the invention one provide a kind of input method, as shown in Figure 1, may further comprise the steps:
Step 101 receives the touch-screen click event, judges that the reference position of described touch-screen click event is in handwriting input zone or dummy keyboard input area;
Step 102 determines that according to the judged result of the reference position of described touch-screen click event described touch-screen click event is handwriting input incident or dummy keyboard incoming event, and carries out handwriting input or dummy keyboard input.
Embodiments of the invention two provide a kind of input method, and wherein, the terminal device that this input method is used is with mobile terminal of touch screen, and for example mobile phone is an example, can certainly be the other types mobile terminal device.The touch-screen of this mobile terminal of touch screen is divided into dummy keyboard input area and handwriting input zone, and as shown in Figure 2, wherein, the dummy keyboard input area is the screen area that soft keyboard covers, and comprises candidate Chinese character selection zone and verbal association zone.The handwriting input zone is the zone beyond the dummy keyboard input area on the mobile terminal touch screen.
Same induction module is used in dummy keyboard input area and handwriting input zone, and when current input pattern was the key entry area territory, induction module sent to corresponding keyboard input control module with current touch-screen click event and imports processing accordingly; When current input pattern was handwriting input mode, induction module sent to corresponding handwriting input control module with current touch-screen click event and imports processing accordingly.
In the embodiments of the invention, the induction module in the portable terminal carries out being judged as initiatively of current input pattern:
When the reference position of touch-screen click event was in the dummy keyboard input area, it was the keyboard input pattern that induction module is given tacit consent to current input pattern, and current touch-screen click event is handled as the keyboard button click event;
When the reference position of touch-screen click event was in the handwriting input zone, induction module judged further whether the movable length of this touch-screen click event on touch-screen surpasses the standard length of configuration, for example 5 pixels; The length if movable length is above standard, then induction module judges that this touch-screen click event and follow-up touch-screen click event are the handwriting input incident, and current and follow-up touch-screen click event is sent to the handwriting input control module import processing accordingly, surpass identification during the stand-by period up to the interval time of follow-up touch-screen click event, follow-up touch-screen click event is judged again; The length if movable length is not above standard, then induction module judges that this touch-screen click event is that cursor moves, and does not need to carry out corresponding input and handles, and next touch-screen click event is carried out input pattern again judge.
Concrete, the input method that the embodiment of the invention two provides may further comprise the steps as shown in Figure 3:
Step 301, portable terminal is opened the hand-written combinatorial input pattern of keyboard, enters the touch screen incident and judges state.
Concrete, when the user clicks text box and edits on mobile terminal of touch screen, the ejection dummy keyboard.The dummy keyboard of the embodiment of the invention is specially arbitrary placements such as Qwerty keyboard or nine palace lattice keyboards, and the embodiment of the invention does not limit for keyboard classes.
Consider user's input habit: Chinese-character writing all is top-down writing basically, and the huge majority of initial stroke is all in whole Chinese character the first half, therefore with screen the first half as hand-written initiation region, meet the Chinese-character writing custom.In the embodiments of the invention, preferred, with the top of mobile terminal screen as the handwriting input zone, with the bottom of mobile terminal screen as the dummy keyboard input area; Certainly, also can be according to actual needs during specific implementation mobile terminal screen and dummy keyboard input area be carried out other and be provided with, for example turned upside down in both zones or about divide.
Step 302, portable terminal receives the touch-screen click event, judges that the reference position of this touch-screen click event is in handwriting input zone or dummy keyboard input area; When judged result is the handwriting input zone, execution in step 304; When judged result is the dummy keyboard input area, execution in step 303.
Concrete, the coordinate range of configuration handwriting input zone and dummy keyboard input area in the portable terminal, this coordinate range is relevant with handwriting input zone and the division of dummy keyboard input area on touch-screen, in the embodiment of the invention, because handwriting input zone and dummy keyboard input area are positioned at two parts up and down of mobile terminal touch screen, therefore, the coordinate range of this input area can only comprise ordinate, promptly only needs to distinguish handwriting input zone and dummy keyboard input area.
When portable terminal receives the touch-screen click event, portable terminal obtains the ordinate of the reference position of this touch-screen click event, according to the handwriting input zone of configuration and the coordinate range of dummy keyboard input area, judge that the reference position of touch-screen click event is in handwriting input zone or dummy keyboard input area.
Step 303, portable terminal sends this touch-screen click event to the keyboard input control module, by the keyboard input control module this touch-screen click event is imported processing accordingly; Then, return step 301.
Portable terminal judges that the reference position of touch-screen click event is in the dummy keyboard input area, and portable terminal judges that current input pattern is the dummy keyboard input pattern, sends this touch-screen click event to the keyboard input control module.
Step 304, portable terminal judge that whether the movable length of this touch-screen click event on touch-screen be greater than the standard length that disposes; If judged result is less than, execution in step 305; If judged result is greater than, execution in step 306.
Step 305, portable terminal judge that this touch-screen click event is the cursor moving event, carry out respective handling according to this cursor moving event, then, return step 301.
Concrete, when the cursor moving event can use handwriting input corresponding to the user, click typing text, associative operations such as text editing are carried out in the position of moving cursor.After cursor moves, again the touch screen incident is carried out state and judge.
Step 306, portable terminal sends this touch-screen click event to the handwriting input control module, by the handwriting input control module this touch-screen click event is imported processing accordingly, and simultaneously, follow-up touch-screen click event is set to the handwriting input incident.
Concrete, portable terminal judges that the reference position of touch-screen click event is in handwriting input zone and the movable length of this touch-screen click event on touch-screen whether during greater than the standard length of configuration, portable terminal judges that current input pattern is a handwriting input mode, sends the touch-screen click event to the portable terminal input control module; Consider the continuity of handwriting input, portable terminal is after judging that current input pattern is handwriting input mode, and subsequent movement terminal input pattern is set to handwriting input mode, execution in step 307.
Step 307, portable terminal receive the touch-screen click event, and whether the time that the time of origin of judging current touch-screen click event is clicked apart from last touch-screen is greater than the identification stand-by period; If judged result be greater than, return step 301; Otherwise, execution in step 308.
Concrete, in the portable terminal timing device can be set, for example timer is added up the time that the time of origin of current touch-screen click event is clicked apart from last touch-screen.The time that the time of origin of current touch-screen click event is clicked apart from last touch-screen surpasses identification during the stand-by period, and a handwriting input of portable terminal judgement is finished, and portable terminal begins to import next time, re-executes step 301.
Step 308, portable terminal judge that current input pattern is handwriting input, is defined as the handwriting input incident with current touchscreen events and carries out respective handling.
Concrete, when portable terminal judged that current input pattern is handwriting input, portable terminal was no longer distinguished the input area of touchscreen events, but directly handled as the handwriting input incident.
The embodiment of the invention three provides a kind of input method, and as shown in Figure 4, terminal device is an example with the portable terminal still, may further comprise the steps:
Step 401, portable terminal receives the touch-screen click event, judges whether current input pattern is handwriting input mode; If then execution in step 402; Otherwise, execution in step 404.
Concrete, since when portable terminal carries out handwriting input, can be with literal end of input touch-screen click event before all as the handwriting input event handling, therefore, portable terminal judges at first whether current state is handwriting input mode after receiving the touch-screen click event.
Step 402, portable terminal judge current touch-screen click event apart from last time the touch-screen click event the time interval whether surpass the identification stand-by period; If do not surpass, then execution in step 403; Otherwise, execution in step 404.
Step 403, portable terminal as the handwriting input event handling, and are not judged the state of current touch-screen click event with current touch-screen click event.
Concrete, at this moment, consider that a handwriting input of user does not also finish, therefore, current touch-screen click event is not made a decision, carry out the events corresponding processing and directly send to the handwriting input processing module.
Step 404, portable terminal enter the touch screen incident and judge state, judge that the reference position of current touch-screen click event is in handwriting input zone or dummy keyboard input area, and carry out respective handling.
Concrete, this step is identical with the operation in 302 with step 301 or similar, can refer step 301 and 302, no longer be described in detail at this.
By the method that adopts the embodiment of the invention to provide, portable terminal receives the touch-screen click event, reference position according to the touch-screen click event is in handwriting input zone or key entry area territory, judge that the touch-screen click event is handwriting input incident or dummy keyboard incoming event, and import processing accordingly; Thereby can realize the collaborative input of handwriting input and dummy keyboard input, improve the input speed of mobile terminal of touch screen.
Embodiments of the invention four provide a kind of input equipment, as shown in Figure 5, comprising:
Incoming event judging unit 10 is used to receive the touch-screen click event, judges that the reference position of described touch-screen click event is in handwriting input zone or dummy keyboard input area; Judged result according to the reference position of described touch-screen click event determines that described touch-screen click event is handwriting input incident or dummy keyboard incoming event;
Processing unit 20 is connected with described incoming event judging unit 10, is used for carrying out handwriting input or dummy keyboard input according to the judged result of described incoming event judging unit 10.
Described incoming event judging unit 10 specifically is used for:
Obtain the coordinate of the reference position of described touch-screen click event;
Judge the zone that the reference position of described touch-screen click event belongs to according to the described handwriting input zone of configuration or the coordinate range of dummy keyboard input area.
Described incoming event judging unit 10 also is used for:
When the reference position of described touch-screen click event was in described handwriting input zone, whether the displacement of further judging described touch-screen click event was greater than the gauged distance that disposes; If the displacement of described touch-screen click event determines that greater than the gauged distance of configuration described touch-screen click event is the handwriting input incident; If the displacement of described touch-screen click event is less than or equal to the gauged distance of configuration, determine that described touch-screen click event is the cursor moving event;
When the reference position of described touch-screen click event is in described dummy keyboard input area, judge that described touch-screen click event is the dummy keyboard incoming event.
Described incoming event judging unit 10 also is used for:
Determine that described touch-screen click event is after the handwriting input incident, judge follow-up touch-screen click event apart from whether surpassing interval time of last touch-screen click event the identification stand-by period;
If judged result is that follow-up touch-screen click event is defined as the handwriting input incident does not carry out respective handling;
If judged result, re-executes the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area for being.
Described incoming event judging unit 10 also is used for:
Judge whether current input pattern is handwriting input mode;
If current input pattern is a handwriting input mode, then further judge current touch-screen click event apart from last time the touch-screen click event the time interval whether surpass the standard time of disposing; If judged result then keeps the handwriting input state for not;
If current input pattern is not a handwriting input mode, then carry out the step that the reference position of judging described touch-screen click event is in handwriting input zone or dummy keyboard input area.
By the equipment that adopts the embodiment of the invention to provide, terminal device receives the touch-screen click event, reference position according to the touch-screen click event is in handwriting input zone or key entry area territory, judge that the touch-screen click event is handwriting input incident or dummy keyboard incoming event, and import processing accordingly; Thereby can realize the collaborative input of handwriting input and dummy keyboard input, improve the input speed of touch screen terminal equipment.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.