Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 is that as shown in the figure, the method may further comprise the steps according to the slide input method process flow diagram based on touch-screen of the present invention:
In step S101, touching the screen display dummy keyboard.
Particularly, when the electronic equipment that the user has a touch-screen is inputted, such as writing note, online chatting, set up p.m.entry etc., can show dummy keyboard at the screen of electronic equipment, be used for inputting for the user.Wherein, described electronic equipment includes but not limited to panel computer, personal digital assistant (PDA) and smart mobile phone.The button of dummy keyboard is comprised of some character keys and function key (such as space bar, line feed key, delete key etc.) usually.The user can use the button on finger or the input pen click dummy keyboard, realizes input or other corresponding operations of character.Hereinafter, shown in Fig. 1 (b), will adopt common full keyboard layout (being the qwerty keyboard layout) as example, phonetics input method provided by the present invention to be described take the layout type of dummy keyboard.Need to prove that the layout type of the dummy keyboard among the present invention should not only limit to this, the existing and following keyboard layout mode that may occur so long as comprised 26 character keys, all is applicable to the present invention, enumerates no longer one by one at this.
Before to the subsequent step explanation, at first phonetic is described.Phonetic comprises 23 initial consonants, 24 simple or compound vowel of a Chinese syllable and 3 referral letters, and is as follows respectively:
(a) initial consonant comprises: b, p, m, f, d, t, n, l, g, k, h, j, q, x, z, c, s, zh, ch, sh, r, y, w;
(b) simple or compound vowel of a Chinese syllable comprises: a, o, e, i, u, ü, ai, ei, ui, ao, ou, iu, ie, ü e, er, an, en, in, un, ü n, ang, eng, ing and ong, wherein, " a, o, e, i, u, ü " is single vowel, " ai, ei, ui, ao, ou, iu, ie, ü e, er " is compound vowel, " an, en, in, un, ü n " is front vowel followed by a nasal consonant, and " ang, eng, ing, ong " is rear vowel followed by a nasal consonant;
(c) referral letter comprises: i, u, ü.
The corresponding phonetic of each Chinese character is to be made of initial consonant, simple or compound vowel of a Chinese syllable and/or referral letter, and constituted mode is as follows:
(1) be made of " initial consonant+simple or compound vowel of a Chinese syllable ", for example, the phonetic of " king " word is " wang ", and wherein, " w " is initial consonant, and " ang " is simple or compound vowel of a Chinese syllable;
(2) be made of " initial consonant+referral letter+simple or compound vowel of a Chinese syllable ", for example, the phonetic of " bear " word is " xiong ", and wherein, " x " is initial consonant, and " i " is referral letter, and " ong " is simple or compound vowel of a Chinese syllable, and the combination of initial consonant and referral letter " xi " is called sound Jie and closes mother;
(3) only comprise simple or compound vowel of a Chinese syllable, for example, the phonetic of " holding high " word is " ang ", and wherein, " ang " is simple or compound vowel of a Chinese syllable.
Need to prove that according to Pinyin rule, " ü " in compound vowel and the vowel followed by a nasal consonant and " u " do not distinguish, and all use " u " to represent.In addition, for single vowel " ü ", on 26 key full keyboards, usually use character " v " to represent, therefore, hereinafter, with " v " expression single vowel " ü ".
Below, according to the These characteristics of phonetic, S102 describes to step.
In step S102, the response user presses operation on described dummy keyboard, show one or more candidate characters sequence around the pinyin character of being pressed, wherein, this one or more candidate characters sequence is closed mother or simple or compound vowel of a Chinese syllable for the sound based on described pinyin character is situated between.
Particularly, when the user when dummy keyboard carries out Pinyin Input, meeting use finger or input pen are pressed the character keys on the dummy keyboard, at this moment, electronic equipment is made response to pressing of user, around the pinyin character of being pressed, demonstrate one or more candidate characters sequence, for user selection.
Wherein, the pinyin character of pressing as described user is initial consonant, then described candidate characters sequence might make up for this character and referral letter " i, u, v ".Wherein, the initial consonant back that has can only connect a referral letter, for example, presses pinyin character " f ", then shows around this pinyin character " f " " fu ".The initial consonant back that has can connect two different referral letters, for example, presses pinyin character " b ", then shows around this pinyin character " b " " bi " and " bu ".The initial consonant back that has can connect all referral letters, for example, presses pinyin character " l ", then shows " li ", " lu " and " lv " around this pinyin character " l ".
For more special initial consonant, i.e. " zh ", " ch " and " sh ", processing procedure is as follows: at first, the user presses " z ", " c " or " s ", the candidate characters sequence is referral letter and " z ", the combination of " c " or " s ", the user need not to select, then press " h ", after the electronic equipment identification point is " h " by pinyin character, identify being positioned at " h " pinyin character before, if " z ", " c " or " s " thinks that then the initial consonant that the user inputs is " zh ", " ch " or " sh ", rather than independent initial consonant " h ", the candidate characters sequence that then shows on every side at " h " is " zh ", " ch " or " sh " and referral letter combination.
The pinyin character of pressing as described user is single vowel, that is, " a, o, e, i, u, ü ", then described candidate characters sequence is compound vowel and the vowel followed by a nasal consonant with this character beginning.For single vowel " a ", " e " and " i ", the compound vowel and the vowel followed by a nasal consonant that start with its three are 4.Take single vowel " e " as example, press pinyin character " e ", then demonstration on every side " ei ", " en ", " er " and " eng " of this pinyin character " e ".And for single vowel " o " and " u ", be 2 with compound vowel and the vowel followed by a nasal consonant of its two beginning.For example, press pinyin character " o ", then the demonstration " ou " and " ong " on every side of this pinyin character " o ".
The pinyin character no matter user presses is initial consonant or single vowel, and number of candidate characters sequence mostly is 4 most around it.Therefore, in the present embodiment, to shown in Fig. 3 (d), the location optimization of described candidate characters sequence is positioned at top, below, the left and/or right-hand that the user presses pinyin character such as Fig. 3 (a), meets most of users' visual custom.Fig. 3 (a) is the display mode of being pressed its candidate characters sequence in the situation that pinyin character is initial consonant to Fig. 3 (c), wherein, the situation that Fig. 3 (a) can only make up with a referral letter for initial consonant, the situation that Fig. 3 (b) can only make up with two referral letters for initial consonant, the situation that Fig. 3 (c) can make up with all referral letters for initial consonant, Fig. 3 (d) is for being pressed the display mode of its candidate characters sequence in the situation that pinyin character is single vowel.Display mode for the position of candidate characters sequence in other embodiments, can also adopt other mode, for example is positioned at four drift angle places that pressed pinyin character, as shown in Figure 4, for brevity, enumerates no longer one by one at this.
Preferably, the characteristics that can be situated between and to close mother and simple or compound vowel of a Chinese syllable according to sound show the candidate characters sequence, so that show and present certain regularity, thereby are convenient to that the user is follow-up to be selected the candidate characters sequence.For example, for can with all initial consonants of some referral letters combination, these initial consonants and this referral letter make up formed candidate characters sequence, its display position all is identical for these initial consonants.To shown in Fig. 3 (c), the candidate characters sequence that different initial consonants and " u " consist of all is presented at the top of these initial consonants such as Fig. 3 (a).Again for example, for the vowel followed by a nasal consonant of structural similarity, its display position also is identical for corresponding single vowel.Shown in Fig. 3 (d), " ang ", " eng " and " ing " all are positioned at the right of corresponding single vowel, and " an ", " en " and " in " all are positioned at the left side of corresponding single vowel.Thus, after the candidate characters sequence showed, the user can directly select according to the demonstration rule, thereby has further accelerated user's input speed, improves input efficiency.
In step S 103, identify described user's subsequent operation, if described user carries out taxi operation at touch-screen, then determine that based on sliding trajectory described user is to the selection result of described candidate characters sequence, and this selection result exported, otherwise export the described pinyin character of being pressed.
Particularly, the user presses after the character keys, one or more candidate characters sequence appear at this pinyin character around.If the user needs this pinyin character of input, and do not need to select in the situation of candidate characters sequence, the same with traditional input mode, user's end point is pressed, its finger or input pen frame out, and then this pinyin character is presented on the screen on the corresponding outgoing position.For example, the user wishes input " ke ", presses pinyin character " k ", understands display candidate characters sequence " ku " on every side at " k ", and at this moment, the user need not to carry out other operations, only needs finger or input pen are left from screen, can finish the input of " k ".If the user wishes to select from the candidate characters sequence, then this user is take the pinyin character pressed as starting point, on screen, carry out in a particular manner taxi operation with finger or input pen, electronic equipment is selected the candidate characters sequence based on this sliding trajectory after this taxi operation is identified.Wherein, taxi operation is preferably take the described pinyin character of pressing as starting point and slides to candidate characters sequence place direction to be selected.This mode meets most of users' use habit, and need not special memory.In the present embodiment, the candidate characters sequence is positioned at top, below, the left or right-hand of pressing pinyin character, and then described taxi operation comprises take the described pinyin character of pressing as starting point and upwards slides, slides downwards, slides left and slide to the right.For example, the user wishes to fail " ing ", shown in Fig. 5 (a), press pinyin character " i ", at top, below, left, right-hand respectively display candidate characters sequence " ie ", " iu ", " in " and " ing " of " i ", at this moment, shown in Fig. 5 (b), the user will point or input pen slides to the right on the basis of pressing, can finish the input to " ing ", shown in Fig. 5 (c).Need to prove, the inventor of this area is appreciated that, taxi operation among the present invention should not only limit to aforesaid way, everyly can all be applicable to the present invention by the mode that slides that electronic equipment is identified, as long as set up in advance the rule of correspondence that slides between mode and the candidate characters sequence, the user carries out corresponding taxi operation according to this rule can realize input method provided by the present invention.
In traditional phonetics input method, exist dual mode that the phonetic of having inputted is deleted, a kind of is to click delete key then can delete a pinyin character that is positioned at before the cursor, another kind is to pin delete key then the phonetic of input all to be deleted.The first deletion mode is one by one character deletion, and speed is slow; The second deletion mode can only all be deleted, and the pinyin character of needs can't be remained, and particularly when inputting a plurality of phonetics, useful phonetic also can be deleted together.For fear of the problems referred to above, in the present invention, when clicking delete key, deletion is positioned at a pinyin character before the cursor, for example, inputted " zhu ", click delete key and then delete " u "; When pinning delete key and during with a kind of ad hoc fashion taxi operation (for example sliding) left, deletion is positioned at simple or compound vowel of a Chinese syllable, initial consonant or sound before the cursor is situated between and closes mother, for example, defeated " zhuang " pins delete key and slides then deletion " ang " left; When pinning delete key and during with another kind of ad hoc fashion taxi operation (for example sliding) to the right, deletion is positioned at a syllable before the cursor, for example, input " zhongzhuang ", pin delete key and slide then deletion " zhuang " to the right; If need all inputs before deletion is positioned at cursor, then length is pressed delete key.
The below describes input method provided by the present invention as an example of two complete input processes example.
For example, to shown in Fig. 6 (g), the user wishes input " collision " two words such as Fig. 6 (a), and its spelling is " chongzhuang ", uses method provided by the present invention, and the user is adopting consecutive click chemical reaction " c " and " h " on touch-screen at first; Then pin " o ", will show vowel followed by a nasal consonant " ong " and the compound vowel " ou " with " o " beginning this moment in the above and below of letter " o "; Then, the user continues to pin screen and upwards slides along screen, then can finish the input to " chong ".Similarly, the user at first clicks " z ", then pins " h " and upwards slide, and finishes the input of " zhu ", then pins " a " and slides to the right, thereby finish input to " zhuang ".Thus, the user only need to carry out to press for 6 times with 3 times and slide, and just can realize the input to " chongzhuang ".And in the situation of using traditional input method, then need adopting consecutive click chemical reaction " c ", " h ", " o ", " n ", " g ", " z ", " h ", " u ", " a ", " n " and " g ", need altogether to click 11 times.From number of operations, utilize method input provided by the present invention " chongzhuang " need to carry out 9 operations, be less than needed 11 operations of traditional input method.
Again for example, the user wishes input " yunhuo ", its spelling is " yunhuo ", uses method provided by the present invention, and the user at first pins " y " and upwards slides, finish the input of " yu ", then click " n ", and then pin " h " and upwards slide at last click " o ", need altogether to carry out and press for 4 times and 2 taxi operations (if with " u " as single vowel, then need equally to press and 2 taxi operations for 4 times).In the situation of using traditional input method, need adopting consecutive click chemical reaction 6 times.Although utilize two kinds of input method inputs " yunhuo " all to need to carry out 6 operations, but, the tradition input method just can be inputted after also needing the user to search next character to be entered to the dummy keyboard, and being based on the candidate characters sequence, taxi operation of the present invention carries out, it is just passable to that is to say that the candidate characters sequence shows that rear user directly selects, therefore, its input is experienced and still is better than traditional input method.
In sum, compare with traditional input method, slide input method provided by the present invention has the following advantages:
1) input in the situation of long (such as zhuang, chuang etc.) the user, the needed number of operations of input method provided by the present invention will be less than the needed number of operations of traditional input method; And utilization is slided and is selected based on the candidate characters sequence, clicks quick and smooth than carrying out independence to a certain extent.Therefore, input method provided by the present invention can improve user's input speed effectively, and wherein, the syllable of input is longer, and effect is more for obvious;
2) when the user inputs, the candidate characters sequence is offered the user selects, need not the user one by one character input, therefore, can effectively reduce the possibility of wrong input.In addition, because therefore the configuration information that the candidate characters sequence has implied pinyin syllable, when the user inputs a plurality of phonetic, is beneficial to the formation of analyzing rapidly and accurately these a plurality of phonetics, thereby further improves user's input speed.For example, the user utilizes method input of the present invention " wohena ", wherein, " en " inputs by the candidate characters sequence, comprise three syllables so can judge the phonetic that the user inputs, i.e. " wo ", " hen ", " a ", rather than " wo ", " he ", " na ", and traditional input method can't be distinguished this.
3) compatible with traditional input method, and simple to operate, be easy to grasp.
According to another aspect of the present invention, also provide a kind of Pinyin Input side's device based on touch-screen, as shown in Figure 7, this input media compriseskeyboard display unit 701, sequence showsunit 702 andslides output unit 703, wherein:
Describedkeyboard display unit 701 is used for touching the screen display dummy keyboard;
Described sequence showsunit 702, be used for the response user and on described dummy keyboard, press operation, around the pinyin character of being pressed, show one or more candidate characters sequence, wherein, this one or more candidate characters sequence is closed mother or simple or compound vowel of a Chinese syllable for the sound based on described pinyin character is situated between;
The describedoutput unit 703 that slides, be used for identification user's operation, if described user carries out taxi operation after touch-screen is pressed, then determine that based on sliding trajectory described user is to the selection result of described candidate characters sequence, and this selection result exported, otherwise export the described pinyin character of being pressed.
Below, the course of work of input media provided by the present invention is specifically described.
When the electronic equipment that the user has a touch-screen was inputted, describedkeyboard display unit 701 can show dummy keyboard at the screen of electronic equipment, is used for inputting for the user.Wherein, described electronic equipment includes but not limited to panel computer, personal digital assistant (PDA) and smart mobile phone.In the present embodiment, will adopt common full keyboard layout (being the qwerty keyboard layout) to describe as example take the layout type of dummy keyboard.
When the user when dummy keyboard carries out Pinyin Input, meeting use finger or input pen are pressed the character keys on the dummy keyboard, at this moment, response is made in pressing of the 702 couples of users in described sequence shows unit, around the pinyin character of being pressed, demonstrate one or more candidate characters sequence, for user selection.Wherein, the pinyin character of pressing as described user is initial consonant, then the candidate characters sequence of describedsequence shows unit 702 demonstrations is might making up of this character and referral letter, for example, press pinyin character " l ", then around this pinyin character " l ", show " li ", " lu " and " lv "; The pinyin character of pressing as described user is single vowel, then the candidate characters sequence of describedsequence shows unit 702 demonstrations is compound vowel and the vowel followed by a nasal consonant with this character beginning, for example, press pinyin character " e ", then demonstration on every side " ei ", " en ", " er " and " eng " of this pinyin character " e ".
In the present embodiment, such as Fig. 3 (a) to shown in 3 (d), describedsequence shows unit 702 the user press pinyin character above, below, left and/or right-hand described candidate characters sequence is showed.In other embodiments, describedsequence shows unit 702 can also adopt other display mode, such as all being positioned at a side of being pressed pinyin character and according to certain arranged sequentially etc., for brevity, enumerating no longer one by one at this.
Preferably, the characteristics that are situated between and close mother and simple or compound vowel of a Chinese syllable according to sound, the display position of 702 pairs of described one or more candidate characters sequences in described sequence shows unit is arranged, and makes the demonstration of candidate characters sequence present certain regularity, thereby is convenient to that the user is follow-up to be selected the candidate characters sequence.For example, for can with all initial consonants of some referral letters combination, these initial consonants and this referral letter make up formed candidate characters sequence, described sequence shows unit 702 all is identical to the position of its demonstration for these initial consonants.To shown in Fig. 3 (c), the candidate characters sequence that described sequence shows unit 702 consists of different initial consonants and " u " all is presented at the top of these initial consonants such as Fig. 3 (a).Again for example, for the vowel followed by a nasal consonant of structural similarity, described sequence shows unit 702 for the corresponding single vowel, also is identical concerning the position of its demonstration.Shown in Fig. 3 (d), described sequence shows unit 702 all is presented at the right of corresponding single vowel with " ang ", " eng " and " ing ", and " an ", " en " and " in " all are presented at the left side of corresponding single vowel.Thus, after the candidate characters sequence showed, the user can directly select according to the demonstration rule, thereby has further accelerated user's input speed, improves input efficiency.
After described sequence shows unit 702 shows one or more candidate characters sequence, if the user wishes to select from the candidate characters sequence, then this user is take the pinyin character pressed as starting point, on screen, carry out in a particular manner taxi operation with finger or input pen, described sliding after 703 pairs of these taxi operations of output unit identify selected the candidate characters sequence based on this sliding trajectory.Wherein, taxi operation is preferably take the described pinyin character of pressing as starting point and slides to candidate characters sequence place direction to be selected.This mode meets most of users' use habit, and need not special memory.In the present embodiment, the candidate characters sequence is positioned at top, below, the left or right-hand of pressing pinyin character, and then described taxi operation comprises take the described pinyin character of pressing as starting point and upwards slides, slides downwards, slides left and slide to the right.Need to prove, the inventor of this area is appreciated that, taxi operation among the present invention should not only limit to aforesaid way, everyly can be slided the mode that slides that output unit 703 identified and all be applicable to the present invention by described, as long as set up in advance the rule of correspondence that slides between mode and the candidate characters sequence, the user carries out corresponding taxi operation according to this rule can realize input method provided by the present invention.If what the user need to input only is its pinyin character of pressing, then the user can end point press, and its finger or input pen are frameed out, and at this moment, describedly slides pinyin character that output unit 703 presses this quilt and is presented on the screen on the corresponding outgoing position.
Preferably, input media provided by the present invention further comprises phonetic delete cells (not shown).When the user clicks delete key in the dummy keyboard, then described phonetic delete cells deletion is positioned at a character before the cursor; When the user pins delete key and sliding left, then described phonetic delete cells deletion is positioned at simple or compound vowel of a Chinese syllable, initial consonant or sound before the cursor and is situated between and closes mother; Also slide to the right when the user pins delete key, then described phonetic delete cells deletion is positioned at a front syllable of cursor.
Input media provided by the present invention can improve user's input speed effectively, reduces the possibility of wrong input, and has the characteristics that are easy to grasp simple to operate.
Phonetics input method based on touch-screen provided by the invention can be with programmable logic device (PLD) in conjunction with realizing, also may be embodied as computer software, can be a kind of computer program according to embodiments of the invention for example, move this program product and make computing machine carry out the method that is used for demonstrating.Described computer program comprises computer-readable recording medium, comprises computer program logic or code section on this medium, is used for realizing described phonetics input method based on touch-screen.Described computer-readable recording medium can be installed in the computing machine built-in medium or can be from the removable medium (for example the hot-plugging technology storage is established) of basic computer dismounting.Described built-in medium includes but not limited to rewritable nonvolatile memory, for example RAM, ROM, flash memory and hard disk.Described removable medium includes but not limited to: optical storage media (for example CD-ROM and DVD), magneto-optic storage media (for example MO), magnetic recording medium (for example tape or portable hard drive), have the media (for example storage card) of built-in rewritable nonvolatile memory and have the media (for example ROM box) of built-in ROM.
Above disclosed only is a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.