Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of method and a kind of electronic equipment that switches character types in the handwriting input, switches loaded down with trivial details problem to solve character types, and technical scheme is as follows:
A kind of method of switching character types in the handwriting input is applied in the electronic equipment, and described electronic equipment comprises a touch-screen, and described method comprises:
Finger handover information when the acquisition user carries out handwriting input;
According to described finger handover information the character types of described handwriting input are switched to second character types from first character types, wherein said first character types are different with described second character types.
Preferably, according to described finger handover information the character types of described handwriting input are switched to second character types from first character types, specifically are set to:
According to the character types of predefined handwriting input put in order and described finger handover information switches to second character types with the character types of described handwriting input from first character types, wherein, described second character types are next order character types of first character types described in predefined the putting in order.
Preferably, according to described finger handover information the character types of described handwriting input are switched to second character types from first character types, specifically are set to:
According to corresponding relation and the described finger handover information of the character types of predefined handwriting input and user's finger, the character types of described handwriting input are switched to second character types from first character types.
Preferably, this method also comprises:
Obtain the user in the input trajectory information of touch-screen;
According to described second character types described input trajectory information is handled, obtained second input characters of described second character types.
Preferably, obtain the user after the input trajectory information of touch-screen, also comprise:
According to described first character types described input trajectory information is handled, obtained first input characters of described first character types.
The present invention also provides a kind of electronic equipment, and described electronic equipment comprises a touch-screen, and described electronic equipment also comprises: the finger handover information obtains module and character types handover module,
Described finger handover information obtains module, the finger handover information when carrying out handwriting input for the acquisition user;
Described character types handover module is used for according to described finger handover information the character types of described handwriting input being switched to second character types from first character types, and wherein said first character types are different with described second character types.
Preferably, described character types handover module specifically is set to:
According to the character types of predefined handwriting input put in order and described finger handover information switches to second character types with the character types of described handwriting input from first character types, wherein, described second character types are next order character types of first character types described in predefined the putting in order.
Preferably, described character types handover module specifically is set to:
According to corresponding relation and the described finger handover information of the character types of predefined handwriting input and user's finger, the character types of described handwriting input are switched to second character types from first character types.
Preferably, described electronic equipment also comprises: input trajectory obtains module and the first input trajectory processing module,
Described input trajectory obtains module, is used for obtaining the user in the input trajectory information of touch-screen;
The described first input trajectory processing module is used for according to described second character types described input trajectory information being handled, and obtains second input characters of described second character types.
Preferably, described electronic equipment also comprises: the second input trajectory processing module, be used for according to described first character types described input trajectory information being handled, and obtain first input characters of described first character types.
By using above technical scheme, a kind of method and electronic equipment that switches character types in the handwriting input provided by the invention, the character types of the finger handover information switching handwriting input in the time of can carrying out handwriting input according to the user.Owing to do not need the user to carry out manual switchover, therefore more intelligent, the character input efficiency is higher, has also improved user's use impression simultaneously.
Embodiment
In order to make those skilled in the art person understand technical scheme among the present invention better, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
A kind of method of switching character types in the handwriting input that the embodiment of the invention provides is applied in the electronic equipment, and electronic equipment comprises a touch-screen, and as shown in Figure 1, this method comprises:
S101, the finger handover information when the acquisition user carries out handwriting input;
Wherein, the finger handover information can comprise: handover information, i.e. and the finger of user's handwriting input changes; Like this, when the finger of each user's handwriting input switches, just can produce a handover information.Need to prove that this handover information does not comprise the information which root finger which root finger switches to.
Certainly, in another embodiment of the present invention, the finger handover information also can comprise the finger type information, as: the user switches to middle finger with the forefinger of original handwriting input.
S102, according to the finger handover information character types of handwriting input are switched to second character types from first character types, wherein, first character types are different with second character types.
When the finger handover information only comprised handover information, step S102 can specifically be set to:
Scheme one: putting in order and pointing handover information the character types of handwriting input are switched to second character types from first character types according to the character types of predefined handwriting input, wherein, second character types are next order character types of first character types in predefined the putting in order.
Preferably, several character types that the user often uses can be sorted, according to the frequency of utilization of character types character types are arranged.For example: the user is Chinese, so he to use maximum character types be Chinese, secondly be English, so just Chinese character types by default can be placed on the first place in the character types arrangement, English is placed on second.Be understandable that the character types of different user put in order can be different.In actual applications, the user can change the arrangement of character types, also can add or the delete character type.
Be understood that easily when the finger handover information comprised the finger type information, scheme one also can be implemented.
When the finger handover information comprised the finger type information, step S102 can specifically be set to:
Scheme two: according to corresponding relation and the finger handover information of predefined hand-written input character type and user's finger, the character types of handwriting input are switched to second character types from first character types.
Owing to comprised the finger type information, therefore can learn the current finger type of carrying out handwriting input of user.Concrete, the corresponding relation of the character types of handwriting input and user's finger can be for multiple, the open wherein a kind of corresponding relation of table 1:
| The finger type | Character types |
| Thumb | Capitalization is English |
| Forefinger | Chinese character |
| Middle finger | Small letter English |
| Nameless | Punctuation mark |
| Little finger of toe | Special symbol |
Table 1
Corresponding relation with table 1 describes below:
When user's handwriting input finger switched to middle finger from forefinger, the present invention can switch to small letter English with character types from Chinese character according to the corresponding relation of table 1.Scheme two is than scheme one, and is more intelligent, but also is subjected to the restriction that the user points quantity, and scheme one is not limited by this, can arrange a plurality of character types arbitrarily.
In like manner, the corresponding relation of the character types of handwriting input and user finger also can be changed according to actual needs, and the user can only set several in five kinds of finger types, and not needing is that five kinds of finger types all arrange corresponding character types.
A kind of method of switching character types in the handwriting input that the embodiment of the invention provides, the finger handover information in the time of can carrying out handwriting input according to the user switches the character types of handwriting input.Owing to do not need the user to carry out manual switchover, therefore more intelligent, the character input efficiency is higher, has also improved user's use impression simultaneously.
As shown in Figure 2, the another kind that the embodiment of the invention provides switches in the method for character types in the handwriting input, can also comprise:
S103, obtain the user in the input trajectory information of touch-screen;
Be understood that easily, the basic scheme of handwriting input is: obtain the user at the input trajectory of touch-screen, this input trajectory is made up of at the coordinate of the touch points of touch-screen the user, contrast the similarity of this input trajectory and character shape, the highest, higher or similarity is higher than the character of a certain threshold value as alternative input word with similarity.
S104, according to second character types input trajectory information is handled, obtained second input characters of second character types.
After determining character types, carry out literal identification according to the character recognition scheme and get final product.Wherein, can only obtain a highest input characters of similarity, can obtain the input characters of similarity rank top yet, can obtain the input characters that similarity is higher than a certain threshold value yet, the present invention does not do restriction at this.
As shown in Figure 3, the another kind that the embodiment of the invention provides switches in the method for character types in the handwriting input, behind the step S103, can also comprise:
S105, according to first character types input trajectory information is handled, obtained first input characters of first character types.
Use the character types before and after switching that input trajectory is handled simultaneously, can prevent that the user from pointing the problem of switching error.For example: the character types of handwriting input are Chinese before the user, and the user did not want to carry out the switching of character types but owing to changed the finger of input, so caused the switching of the character types of handwriting input, caused and switched error afterwards.In this case, according to character types (Chinese) before user's input trajectory information is handled simultaneously, can also be presented the input characters of character types before for the user, solved and switched the problem that can't obtain the required input literal that error brings.
Corresponding to top method embodiment, the present invention also provides a kind of electronic equipment.
A kind of electronic equipment that the embodiment of the invention provides comprises a touch-screen, and as shown in Figure 4, this electronic equipment also comprises: the finger handover information obtainsmodule 100 and charactertypes handover module 200,
The finger handover information obtainsmodule 100, the finger handover information when carrying out handwriting input for the acquisition user;
Wherein, the finger handover information can comprise: handover information, i.e. and the finger of user's handwriting input changes; Like this, when the finger of each user's handwriting input switches, just can produce a handover information.Need to prove that this handover information does not comprise the information which root finger which root finger switches to.
Certainly, in another embodiment of the present invention, the finger handover information also can comprise the finger type information, as: the user switches to middle finger with the forefinger of original handwriting input.
Charactertypes handover module 200 is used for switching to second character types according to pointing the character types of handover information with handwriting input from first character types, and wherein first character types are different with second character types.
When the finger handover information only comprised handover information, charactertypes handover module 200 can specifically be set to:
Scheme one: putting in order and pointing handover information the character types of handwriting input are switched to second character types from first character types according to the character types of predefined handwriting input, wherein, second character types are next order character types of first character types in predefined the putting in order.
Preferably, several character types that the user often uses can be sorted, according to the frequency of utilization of character types character types are arranged.For example: the user is Chinese, so he to use maximum character types be Chinese, secondly be English, so just Chinese character types by default can be placed on the first place in the character types arrangement, English is placed on second.Be understandable that the character types of different user put in order can be different.In actual applications, the user can change the arrangement of character types, also can add or the delete character type.
Be understood that easily when the finger handover information comprised the finger type information, scheme one also can be implemented.
When the finger handover information comprised the finger type information, charactertypes handover module 200 can specifically be set to:
Scheme two: according to corresponding relation and the finger handover information of predefined hand-written input character type and user's finger, the character types of handwriting input are switched to second character types from first character types.
Owing to comprised the finger type information, therefore can learn the current finger type of carrying out handwriting input of user.Concrete, the corresponding relation of the character types of handwriting input and user's finger can be for multiple.
When user's handwriting input finger switched to middle finger from forefinger, the present invention can switch to small letter English with character types from Chinese character according to the corresponding relation of table 1.Scheme two is than scheme one, and is more intelligent, but also is subjected to the restriction that the user points quantity, and scheme one is not limited by this, can arrange a plurality of character types arbitrarily.
In like manner, the corresponding relation of the character types of handwriting input and user finger also can be changed according to actual needs, and the user can only set several in five kinds of finger types, and not needing is that five kinds of finger types all arrange corresponding character types.
A kind of electronic equipment that the embodiment of the invention provides, the finger handover information in the time of can carrying out handwriting input according to the user switches the character types of handwriting input.Owing to do not need the user to carry out manual switchover, therefore more intelligent, the character input efficiency is higher, has also improved user's use impression simultaneously.
As shown in Figure 5, in the another kind of electronic equipment that the embodiment of the invention provides, can also comprise: input trajectory obtainsmodule 300 and the first inputtrajectory processing module 400,
Input trajectory obtainsmodule 300, is used for obtaining the user in the input trajectory information of touch-screen;
Be understood that easily, the basic scheme of handwriting input is: obtain the user at the input trajectory of touch-screen, this input trajectory is made up of at the coordinate of the touch points of touch-screen the user, contrast the similarity of this input trajectory and character shape, the highest, higher or similarity is higher than the character of a certain threshold value as alternative input word with similarity.
The first inputtrajectory processing module 400 is used for according to second character types input trajectory information being handled, and obtains second input characters of second character types.
After determining character types, carry out literal identification according to the character recognition scheme and get final product.Wherein, can only obtain a highest input characters of similarity, can obtain the input characters of similarity rank top yet, can obtain the input characters that similarity is higher than a certain threshold value yet, the present invention does not do restriction at this.
As shown in Figure 6, in the another kind of electronic equipment that the embodiment of the invention provides, can also comprise: the second input trajectory processing module 500, be used for according to first character types input trajectory information being handled, obtain first input characters of first character types.
Use the character types before and after switching that input trajectory is handled simultaneously, can prevent that the user from pointing the problem of switching error.For example: the character types of handwriting input are Chinese before the user, and the user did not want to carry out the switching of character types but owing to changed the finger of input, so caused the switching of the character types of handwriting input, caused and switched error afterwards.In this case, according to character types (Chinese) before user's input trajectory information is handled simultaneously, can also be presented the input characters of character types before for the user, solved and switched the problem that can't obtain the required input literal that error brings.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when enforcement is of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen 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.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 can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for device embodiment, because it is substantially similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills namely can understand and implement under the situation of not paying creative work.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.