Summary of the invention
The technical problem to be solved in the present invention is, at the above-mentioned defective of prior art, provides a kind of disposal route and device of input method output character information; Select vocabulary flexibly by key up and down, and arrange by key up and down and can also realize the operation of each tone vocabulary is selected, improved the speed of utilizing right and left key to select vocabulary separately, reduce the number of times of user key-press, improved the input speed of Chinese character coding input method greatly, and it is simple to operate, realizes providing users with the convenient easily.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of disposal route of input method output character information wherein, comprises
A, reception user's operational order selects a kind of Chinese character coding input method to import Chinese vocabulary;
The coded string of B, reception user input is by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output;
C, utilize the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately, and the vocabulary a plurality of to be selected after this is rearranged is shown to the user;
The center vocabulary of the vocabulary to be selected after D, the selection cursor that defines first vocabulary to be selected rearrange from this begins to select;
E, reception user's operational order is selected cursor by the key operation up and down of keyboard, realizes the selection of target vocabulary.
The disposal route of described input method output character information, wherein, described step B also comprises: the number of described vocabulary to be selected is 9.
The disposal route of described input method output character information, wherein, described step C specifically comprises:
C1, generation four number groups are respectively: the first array pTone1[], the second array pTone2[], the 3rd array pTone3[] and, the 4th array pTone4[];
Wherein, the first array pTone1[] be used for depositing comprising all vocabulary of first, the second array pTone2[] for depositing the vocabulary that comprises all second sounds, the 3rd array pTone3[] be used for depositing comprising all vocabulary of the 3rd, the 4th array pTone4[] for depositing the vocabulary that comprises all fourth sounds;
C2, in will these a plurality of vocabulary to be selected one are set to center vocabulary, remaining vocabulary to be selected is placed on this first array pTone1[respectively in order according to tone type separately], the second array pTone2[], the 3rd array pTone3[], the 4th array pTone4[] in;
C3, the vocabulary to be selected that will leave in above-mentioned four arrays access successively by tone order separately, are arranged in respectively on the four direction around this center vocabulary;
C4, the vocabulary a plurality of to be selected after this is rearranged are shown to the user.
The disposal route of described input method output character information, wherein, described step C2 specifically also comprises:
C21, a function T=getToneChar who has a parameter of tone and phonetic is set, and (spell tone), obtains tone vocabulary T to be selected in real time, and wherein, first parameter s pell is expressed as input Pinyin, and second parametric t one is expressed as the input tone;
Comprise all vocabulary of first among C22, the tone vocabulary T to be selected that will obtain and leave the first array pTone1[in] in, the vocabulary that comprises all second sounds leaves the second array pTone2[in], comprise all vocabulary of the 3rd and leave the 3rd array pTone3[in], the vocabulary that comprises all fourth sounds leaves the 4th array pTone4[in].
The disposal route of described input method output character information, wherein, described step D also comprises: when definition was selected for the first time, first word to be selected was first, and the center vocabulary of the vocabulary to be selected after being set to this and rearranging.
The disposal route of described input method output character information, wherein, described step C3 also comprises:
C31, the position that is arranged on vocabulary top, this center are used for placing first vocabulary, from the first array pTone1[] obtain;
The vocabulary of the second sound be used for to be placed in C32, the position that is arranged on this center vocabulary left, from the second array pTone2[] obtain;
C33, the position that is arranged on vocabulary below, this center are used for placing the 3rd vocabulary, from the 3rd array pTone3[] obtain;
C34, be arranged on the vocabulary that the fourth sound be used for to be placed in right-hand position of this center vocabulary, from the 4th array pTone1[] obtain.
The disposal route of described input method output character information, wherein, described step e specifically comprises:
The variation of the corresponding x value of left-right key is set, whenever represents once that by left button the x value subtracts 1, with selective light target position 1 lattice that move to left, whenever represent once that by right button the x value adds 1, with selective light target position 1 lattice that move to right;
The variation of the corresponding y value of upper and lower key is set, whenever presses key and represent that once the y value subtracts 1, will move 1 lattice on the selective light target position, whenever press key and represent that once the y value adds 1, selective light target position is moved down 1 lattice.
The disposal route of described input method output character information, wherein, described step e also comprises:
E1, when described target vocabulary not at current page, the arrow that the operation that then receives the user is pressed is up and down as required realized page turning;
E2, after translating into down one page, the combination of the vocabulary of the target tone that obtains according to the direction of page turning shows, for user's select target vocabulary.
A kind for the treatment of apparatus of input method output character information wherein, comprising:
Receive and the selection module, the operational order that is used for the reception user selects a kind of Chinese character coding input method to import Chinese vocabulary;
Receive and output module, be used for receiving the coded string of user's input, by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output;
Arrange and display module, be used for utilizing the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately, and the vocabulary a plurality of to be selected after this is rearranged is shown to the user;
The first vocabulary definition module to be selected, the center vocabulary of the vocabulary to be selected after the selection cursor that is used for first vocabulary to be selected of definition rearranges from this begins to select;
Select to confirm module, the operational order that is used for the reception user is selected cursor by the key operation up and down of keyboard, realizes the selection of target vocabulary.
The treating apparatus of described input method output character information, wherein, described arrangement and display module comprise: array generation unit, setting and storage unit, arrangement units and display unit;
The array generation unit is used for generating four number groups and is respectively: the first array pTone1[], the second array pTone2[], the 3rd array pTone3[] and, the 4th array pTone4[];
Wherein, the first array pTone1[] be used for depositing comprising all vocabulary of first, the second array pTone2[] for depositing the vocabulary that comprises all second sounds, the 3rd array pTone3[] be used for depositing comprising all vocabulary of the 3rd, the 4th array pTone4[] for depositing the vocabulary that comprises all fourth sounds;
Arrange and storage unit, be used for will this a plurality of vocabulary to be selected one and be set to center vocabulary, remaining vocabulary basis to be selected tone type separately is placed on this first array pTone1[respectively in order], the second array pTone2[], the 3rd array pTone3[], the 4th array pTone4[] in;
Arrangement units, the vocabulary to be selected that is used for leaving in above-mentioned four arrays accesses successively by tone order separately, is arranged in respectively on the four direction around this center vocabulary;
Display unit is shown to the user for the vocabulary a plurality of to be selected after this is rearranged;
Described selection confirms that module comprises: select page turning unit, page turning display unit;
Select the page turning unit, be used for when described target vocabulary not at current page, then receive the arrow that user's operation presses up and down as required and realize page turning;
The page turning display unit is used for when translating into down one page after, and the vocabulary of the target tone that obtains according to the direction of page turning makes up and shows, for user's select target vocabulary.
The treating apparatus of described input method output character information, wherein,
Described setting and storage unit comprise: parameter arranges subelement and deposits subelement;
Parameter arranges subelement, be used for arranging a function T=getToneChar who has a parameter of tone and phonetic (spell, tone), obtain tone vocabulary T to be selected in real time, wherein, first parameter s pell is expressed as input Pinyin, and second parametric t one is expressed as the input tone;
Deposit subelement, the tone vocabulary T to be selected that is used for obtaining comprises all vocabulary of first and leaves the first array pTone1[in] in, the vocabulary that comprises all second sounds leaves the second array pTone2[in], comprise all vocabulary of the 3rd and leave the 3rd array pTone3[in], the vocabulary that comprises all fourth sounds leaves the 4th array pTone4[in];
Described arrangement units comprises: first order subelement, second order subelement, the 3rd are arranged subelement and the 4th and are arranged subelement;
The first order subelement, the position that is used for being arranged on this vocabulary top, center is used for placing first vocabulary, from the first array pTone1[] obtain;
The second order subelement, the position that is used for being arranged on this center vocabulary left is used for placing the vocabulary of the second sound, from the second array pTone2[] obtain;
The 3rd arranges subelement, and the position that is used for being arranged on this vocabulary below, center is used for placing the 3rd vocabulary, from the 3rd array pTone3[] obtain;
The 4th arranges subelement, is used for being arranged on the vocabulary that right-hand position of this center vocabulary is used for placing the fourth sound, from the 4th array pTone1[] obtain.
The disposal route of input method output character information provided by the present invention and device, owing to adopted the coded string that receives user's input, by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output; Utilize the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately; Select vocabulary flexibly by key up and down, and arrange by key up and down and can also realize the operation of each tone vocabulary is selected, improved the speed of utilizing right and left key to select vocabulary separately, reduce the number of times of user key-press, improved the input speed of Chinese character coding input method greatly, and it is simple to operate, realizes providing users with the convenient easily.
Embodiment
The disposal route of a kind of input method output character information of the present invention and device, clearer, clear and definite for making purpose of the present invention, technical scheme and advantage, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
The disposal route of a kind of input method output character information that the embodiment of the invention provides as shown in Figure 1, mainly may further comprise the steps:
Step S110, reception user's operational order selects a kind of Chinese character coding input method to import Chinese vocabulary.
For example, the user selects spelling input method input or stroke input method to come input characters.
The coded string of step S120, reception user input is by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output.
For example, when the user need typewrite, after having selected a kind of input method by preceding step, corresponding coded string is imported in the instruction that the reception user typewrites, corresponding literal can come according to coded string instruction output from the lteral data storehouse of this kind input method input, specifically can once select to specify the vocabulary output to be selected that has four tones of number according to the size at interface.Definable is represented the number of the vocabulary to be selected of this appointment number with a N.For example N=9 once exports 9 vocabulary to be selected in this input method.
Step S130, utilize the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately, and the vocabulary a plurality of to be selected after this is rearranged is shown to the user.
For example as shown in Figure 2, N=9 after the coded string instruction that receives user's input, exports 9 toned vocabulary to be selected.Be set to center vocabulary with the 9th, remaining vocabulary to be selected by one, two, three, and the tone order of the four tones of standard Chinese pronunciation be arranged in respectively on the four direction around this center vocabulary, when specifically implementing shown in following refinement step C1, C2, C3 and the C4.
C1, can generate four number groups and be respectively: the first array pTone1[], the second array pTone2[], the 3rd array pTone3[] and, the 4th array pTone4[];
Wherein, the first array pTone1[] be used for depositing comprising all vocabulary of first, the second array pTone2[] for depositing the vocabulary that comprises all second sounds, the 3rd array pTone3[] be used for depositing comprising all vocabulary of the 3rd, the 4th array pTone4[] for depositing the vocabulary that comprises all fourth sounds.
C2, in will these a plurality of vocabulary to be selected one are set to center vocabulary (position 9 as shown in Figure 2), remaining vocabulary to be selected is placed on this first array pTone1[respectively in order according to tone type separately], the second array pTone2[], the 3rd array pTone3[], the 4th array pTone4[] in.
Preferably, C21, can arrange a function T=getToneChar who has a parameter of tone and phonetic (spell, tone), obtain tone vocabulary T to be selected in real time, wherein, first parameter s pell is expressed as input Pinyin, second parametric t one is expressed as the input tone, then has:
pTone1[]?=?getToneChar(?spell?,?1);
pTone2[]?=?getToneChar(?spell?,?2);
pTone3[]?=?getToneChar(?spell?,?3);
pTone4[]?=?getToneChar(?spell?,?4)。
Comprise all vocabulary of first among C22, the tone vocabulary T to be selected that so will obtain and leave the first array pTone1[in] in, the vocabulary that comprises all second sounds leaves the second array pTone2[in], comprise all vocabulary of the 3rd and leave the 3rd array pTone3[in], the vocabulary that comprises all fourth sounds leaves the 4th array pTone4[in].
As pTone1[]={ x1, x2, x3, x4 ..., comprise all words of first;
PTone2[]={ y1, y2, y3, y4 ..., comprise the word of all second sounds;
PTone3[]={ z1, z2, z3, z4 ..., comprise all words of the 3rd;
PTone4[]={ m1, m2, m3, m4 ..., comprise the word of all fourth sounds.
This method does not have special requirement to the vocabulary to be selected how Chinese character coding input method obtains these four types, but requires Chinese character coding input method to provide the pointer of four vocabulary to be selected, so that subsequent step can therefrom find the word that needs.
C3, the vocabulary to be selected that will leave in above-mentioned four arrays access successively by tone order separately, are arranged in respectively on the four direction around this center vocabulary.
Preferably, the position that is arranged on this center vocabulary (position 9 as shown in Figure 2) top is used for placing first vocabulary (position 1 as shown in Figure 2, position 2), from the first array pTone1[] obtain.The vocabulary (position 3 as shown in Figure 2 and position 4) of the second sound be used for to be placed in the position that is arranged on this center vocabulary left, from the second array pTone2[] obtain.
The position that is arranged on this center vocabulary (position 9) below is used for placing the 3rd vocabulary (position 5 as shown in Figure 2 and position 6), from the 3rd array pTone3[] obtain.Be arranged on right-hand position of this center vocabulary and be used for place the vocabulary (position 7 as shown in Figure 2 and position 8) of the fourth sound, from the 4th array pTone1[] obtain.
Wherein, word to be selected interface transferred in the four tones of standard Chinese pronunciation, as shown in Figure 2.When selecting for the first time, first word to be selected is first.
Position 1 among Fig. 2, position 2: place first vocabulary, from first array of first type, obtain.These data are that the input method in last step is exported.Input method is exported all and is comprised first vocabulary and be placed on array pTone1[] in, then the vocabulary of position 1 passes through pTone1[0] obtain.The vocabulary of position 2 passes through pTone1[1] obtain.
Variable pTone1_pos record next one is set can be from pTone1[] the vocabulary that obtains.After position 1 and position 2 assignment, pTone1_pos=2, namely next desirable vocabulary is pTone1[2].
And position 3, position 4: place the vocabulary of the second sound, from second array of second sound type, obtain, as a same reason position 3 assignment pTone2[0], position 4 assignment pTone2[1], and record next position pTone2_pos=2,
Position 5, position 6: place the 3rd vocabulary, from the 3rd array of the 3rd type, obtain, as a same reason position 5 assignment pTone3[0], position 6 assignment pTone3[1], and record next position pTone3_pos=2.
Position 7, position 8: the vocabulary of placing the fourth sound, from the 4th array of fourth sound type, obtain, position 7 assignment pTone4[0 as a same reason], position 8 assignment pTone4[1], and record next position pTone4_pos=2, formed a main tone word to be selected interface as shown in Figure 2.
C4, the vocabulary a plurality of to be selected after this is rearranged are shown to the user, as shown in Figure 2.Following step can directly be used these arrays, therefrom obtains the word that needs.
The center vocabulary of the vocabulary to be selected after step S140, the selection cursor that defines first vocabulary to be selected rearrange from this begins to select; Position 9 as shown in Figure 2 is first vocabulary to be selected.Preferably, when definition was selected for the first time, first word to be selected was first, and the center vocabulary of the vocabulary to be selected after being set to this and rearranging.
Step S150, reception user's operational order is selected cursor by the key operation up and down of keyboard, realizes the selection of target vocabulary.As shown in Figure 2, word if desired just can be chosen any vocabulary in the word to be selected by pressing maximum 2 key positions in this page or leaf, and for example the cursor position in the UI system is 8, presses so and determines that key just can select the word of this position.
In the specific implementation, when selecting word by key realization up and down, carry out following treatment step:
1), referring to Fig. 2, the variation of the corresponding x value of left-right key is set, whenever represent once that by left button the x value subtracts 1, with selective light target position 1 lattice that move to left, whenever represent once that by right button the x value adds 1, with selective light target position 1 lattice that move to right;
2), the variation of the corresponding y value of upper and lower key is set, whenever press key and represent that once the y value subtracts 1, will move 1 lattice on the selective light target position, whenever press key and represent that once the y value adds 1, selective light target position is moved down 1 lattice.
Like this, at the vocabulary a plurality of to be selected that passes through four tones of this Chinese character coding input method output shown in Fig. 2 embodiment; Utilize the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately; Select vocabulary flexibly by key up and down, choose the vocabulary that needs after, press and determine that key just can select the word of current cursor position.
Also comprise in the inventive method step e 1, when described target vocabulary not at current page, the arrow that the operation that then receives the user is pressed is up and down as required realized page turning; E2, after translating into down one page, the combination of the vocabulary of the target tone that obtains according to the direction of page turning shows, for user's select target vocabulary.
For example, as shown in Figure 2, if vocabulary is not in this page or leaf, by pressing the page turning of key realization up and down, because it is that the user knows the vocabulary of input for which sound, so can select towards certain fixing direction page turning according to their demand, such as shown in Figure 2, first the second sound is just operated left arrow 102 towards left side page turning by left button just by pressing the page turning up of last key operation upward arrow 101.The user does not need to remember these rules, just can know according to the prompting of the word to be selected on the different directions which kind of phonetic notation is each direction represent.
Same tone word to be selected interface as shown in Figure 3, translate into down one page after, all vocabulary all is the vocabulary combination of the target tone that obtains of the direction according to page turning, has avoided tone again to judge.This moment, the interface also should become common same tone word to be selected (Fig. 3).And only realize page up and following one page with two arrows.The tone of the word to be selected in this Fig. 3 interface all is identical.
The tone of noting position a, b, c, d, e, f, g, h, i among this Fig. 3 all is identical.Specific implementation: with the pTone1_pos value that obtains in the top step, can know from pTone[] where array begin value.If first, so in first array of first tone:
Position a=pTone1[pTone1_pos];
Position b=pTone1[pTone1_pos+1];
Position c=pTone1[pTone1_pos+2];
Position d=pTone1[pTone1_pos+3];
Position e=pTone1[pTone1_pos+4];
Position f=pTone1[pTone1_pos+5];
Position g=pTone1[pTone1_pos+6];
Position h=pTone1[pTone1_pos+7];
Position i=pTone1[pTone1_pos+8];
And make pTone1_pos=pTone1_pos+9.
When pressing when determining key, just selected vocabulary can have been obtained according to the position of cursor.
When shown in Figure 3 when not having target vocabulary, the page turning meeting of turning right is selected word after presenting following 9 of this tone, reuses new pTone1_pos and produces a new same tone vocabulary to be selected.Up to finding and choose the vocabulary that needs.
Below the present invention will be further described in detail by a concrete Application Example:
With the Sheng of traditional input method input " midsummer ", prediction input method in input " sheng " back is pointed out 9 words to be selected as shown in Figure 4 for first page, " 3 liter of 4 nephew of 12 life, 5 sheng, a reed pipe wind instruments, 6 Sound, 7 ropes, 8 refreshing 9 Hsiao.", second page of page turning as shown in Figure 5, " 1 province, 2 surplus 3 victorys 4 are contained 5 holy 6 Sheng, 7 Sheng, 8 Sheng, 9 Noboru "
Owing to do not import tone, input method can't obtain more information, just simply vocabulary is exported according to tone, and perhaps unordered output, possible we can find this vocabulary in second page.Need to select by 12 right buttons, select number of times very many, cause user's input speed slow.
If use method of the present invention, the Sheng of input " midsummer ", prediction input method in input " sheng " back is pointed out 9 words to be selected as shown in Figure 6, the centre of vocabulary to be selected during " sound " that " sheng " is first is placed on as center vocabulary for first page." life " and " liter " that the top placement " sheng " of this center vocabulary " sound " is first; The left of this center vocabulary " sound " is placed " rope " and " god " of " sheng " second sound; " Hsiao " and " province " that the below placement " sheng " of this center vocabulary " sound " is the 3rd; " remaining " and " sage " of right-hand placement " sheng " fourth sound of this center vocabulary " sound ".
Because the fourth sound directly is placed to the homepage demonstration, can see the vocabulary that finds the fourth sound very fast so.If there is not you to need, press right button so, can be to the sub-interface of the fourth sound, " Sheng, Sheng, Sheng, Holy, Noboru, Hsiao, Sheng, Of-Materials, take advantage of " as shown in Figure 7.The word that has comprised all fourth sounds in this interface.At most only need press 4 keys just can choose " Sheng ".Can choose the word that you need fast by the method for this tone index.
Therefore, the disposal route of a kind of input method output character information of the embodiment of the invention; Select vocabulary flexibly by key up and down, and arrange by key up and down and can also realize the operation of each tone vocabulary is selected, improved the speed of utilizing right and left key to select vocabulary separately, reduce the number of times of user key-press, improved the input speed of Chinese character coding input method greatly, and it is simple to operate, realizes providing users with the convenient easily.
Based on the disposal route of the input method output character information of above-described embodiment, the embodiment of the invention also provides a kind for the treatment of apparatus of input method output character information, as shown in Figure 8, comprising:
Receive and selection module 210, the operational order that is used for the reception user selects a kind of Chinese character coding input method to import Chinese vocabulary; Specifically as mentioned above.
Receive and output module 220, be used for receiving the coded string of user's input, by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output; Specifically as mentioned above.
Arrange and display module 230, be used for utilizing the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately, and the vocabulary a plurality of to be selected after this is rearranged is shown to the user; Specifically as mentioned above.
The first vocabulary definition module 240 to be selected, the center vocabulary of the vocabulary to be selected after the selection cursor that is used for first vocabulary to be selected of definition rearranges from this begins to select; Specifically as mentioned above.
Select to confirm module 250, the operational order that is used for the reception user is selected cursor by the key operation up and down of keyboard, realizes the selection of target vocabulary; Specifically as mentioned above.
As shown in Figure 9, described arrangement and display module 230 comprise: array generation unit 231, setting and storage unit 232, arrangement units 233 and display unit 234.
Array generation unit 231 is used for generating four number groups and is respectively: the first array pTone1[], the second array pTone2[], the 3rd array pTone3[] and, the 4th array pTone4[];
Wherein, the first array pTone1[] be used for depositing comprising all vocabulary of first, the second array pTone2[] for depositing the vocabulary that comprises all second sounds, the 3rd array pTone3[] be used for depositing comprising all vocabulary of the 3rd, the 4th array pTone4[] for depositing the vocabulary that comprises all fourth sounds; Specifically as mentioned above.
Arrange and storage unit 232, be used for will these a plurality of vocabulary to be selected one and be set to center vocabulary, remaining vocabulary to be selected is placed on this first array pTone1[respectively in order according to tone type separately], the second array pTone2[], the 3rd array pTone3[], the 4th array pTone4[] in; Specifically as mentioned above.
Arrangement units 233, the vocabulary to be selected that is used for leaving in above-mentioned four arrays accesses successively by tone order separately, is arranged in respectively on the four direction around this center vocabulary; Specifically as mentioned above.
Display unit 234 is shown to the user for the vocabulary a plurality of to be selected after this is rearranged; Specifically as mentioned above.
As shown in figure 10, described selection confirms that module 250 comprises: select page turning unit 251, page turning display unit 252;
Select page turning unit 251, be used for when described target vocabulary not at current page, then receive the arrow that user's operation presses up and down as required and realize page turning; Specifically as mentioned above.
Page turning display unit 252 is used for when translating into down one page after, and the vocabulary of the target tone that obtains according to the direction of page turning makes up and shows, for user's select target vocabulary; Specifically as mentioned above.
Further, described setting and storage unit comprise: parameter arranges subelement and deposits subelement;
Parameter arranges subelement, be used for arranging a function T=getToneChar who has a parameter of tone and phonetic (spell, tone), obtain tone vocabulary T to be selected in real time, wherein, first parameter s pell is expressed as input Pinyin, and second parametric t one is expressed as the input tone; Specifically as mentioned above.
Deposit subelement, the tone vocabulary T to be selected that is used for obtaining comprises all vocabulary of first and leaves the first array pTone1[in] in, the vocabulary that comprises all second sounds leaves the second array pTone2[in], comprise all vocabulary of the 3rd and leave the 3rd array pTone3[in], the vocabulary that comprises all fourth sounds leaves the 4th array pTone4[in]; Specifically as mentioned above.
Described arrangement units comprises: first order subelement, second order subelement, the 3rd are arranged subelement and the 4th and are arranged subelement;
The first order subelement, the position that is used for being arranged on this vocabulary top, center is used for placing first vocabulary, from the first array pTone1[] obtain; Specifically as mentioned above.
The second order subelement, the position that is used for being arranged on this center vocabulary left is used for placing the vocabulary of the second sound, from the second array pTone2[] obtain; Specifically as mentioned above.
The 3rd arranges subelement, and the position that is used for being arranged on this vocabulary below, center is used for placing the 3rd vocabulary, from the 3rd array pTone3[] obtain; Specifically as mentioned above.
The 4th arranges subelement, is used for being arranged on the vocabulary that right-hand position of this center vocabulary is used for placing the fourth sound, from the 4th array pTone1[] obtain; Specifically as mentioned above.
In sum, the disposal route of input method output character information provided by the present invention and device, owing to adopted the coded string that receives user's input, by the vocabulary a plurality of to be selected of four tones of this Chinese character coding input method output; Utilize the multirow structure to carry out layout again to these a plurality of vocabulary to be selected, be set to center vocabulary with one in these a plurality of vocabulary to be selected, remaining vocabulary to be selected is arranged in respectively on the four direction around this center vocabulary by tone order separately; Select vocabulary flexibly by key up and down; and arrange by key up and down and can also realize the operation of each tone vocabulary is selected; improved the speed of utilizing right and left key to select vocabulary separately; reduce the number of times of user key-press; improved the input speed of Chinese character coding input method greatly; and it is simple to operate; realize easily; provide users with the convenient and should be understood that; application of the present invention is not limited to above-mentioned giving an example; for those of ordinary skills, can be improved according to the above description or conversion, all these improvement and conversion all should belong to the protection domain of claims of the present invention.