Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a touch screen terminal, which comprises but is not limited to any one or more of the following terminals: touch screen cell phones, touch screen PDAs (personal digital assistants), and touch screen computers.
The touch screen terminal provided by the embodiment of the invention comprises a full spelling single character sliding input device based on a touch screen, which is a core part of an input method, such as: it may be an input method engine, mainly converting the input code string into corresponding results.
In specific implementation, please refer to fig. 1, which is a schematic structural diagram of a first embodiment of a full-spelling single character sliding input device based on a touch screen according to the present invention; the device comprises:
a character input unit 10 for determining a currently input character according to a contact position of a keypad region of the touch screen;
in specific implementation, please refer to fig. 2, which is a structural effect diagram of an embodiment of the touch screen according to the present invention; as shown in fig. 2, where 1 is an input area of the touch screen, which is an area for inputting text content; 2, a candidate area of the touch screen, which provides candidate characters for the user to input and select; and 3, a keyboard area for providing an input area of the code characters for a user.
Specifically, when a user touches a certain character on the keyboard area of the touch screen, the character input unit 10 determines the character touched by the user according to the position of the touch point, so as to determine the currently input character, such as: when a user clicks an "h" key on the touch screen, the character input unit 10 determines that a currently input character is "h" according to a character corresponding to a touch point position generated when the user clicks, and displays the determined current character in an input area of the touch screen.
The single character candidate unit 20 is used for providing corresponding candidate characters in a candidate area of the touch screen in real time according to the characters input by the character input unit 10;
in specific implementations, for example: if the currently input character is "h", the single character candidate unit 20 displays the single character corresponding to the full-spelling syllable with the "h" character as the initial consonant in real time according to the character input by the character input unit 10 in a candidate area of the touch screen for the user to select according to the usage rate; the following steps are repeated: if the current input character of the user is 'a' and the previously input character is 'h', the single character candidate unit 20 combines the 'h' character into a single character of a full spelling syllable in real time according to the 'ha' character combination, and displays the single character of the full spelling syllable on a candidate area of the touch screen according to the utilization rate for the user to select. It is understood that the displaying according to the usage rate is only an example, and the single word candidate unit 20 may also display the candidate words according to the tone of the full-pinyin syllable, such as: the tone of the full pinyin syllable of "han" is the second sound, and the tone of "chinese" is the fourth sound, so that "han" can be displayed before "chinese", and similar analysis is performed in other cases, which is not repeated herein.
A character prompt unit 30, configured to prompt a subsequent optional character according to a predetermined spelling rule according to a currently input character and a previously input character of the character input unit 10;
in specific implementations, common syllables are generally classified into the following four categories according to their composition: (1) two syllables are spelled: initial + final (e.g., father ba, hand shou); (2) three spelling syllables: initial consonants, intermediate consonants and vowels (such as Guanang and quan); (3) syllables were read as a whole: essentially, the Chinese characters are initial consonants and final consonants (such as only zhi, four si); (4) self-syllable: there is no initial consonant, and only vowels switched by a, o and e (e.g. Ara, ai, ao, Anan, ou, goose). Specifically, wherein, the consonant includes: b, p, m, f, d, t, n, l, g, k, h, j, q, x, z, c, s, zh, ch, sh, r, y, w; the vowels include: a, ai, ao, an, ang, o, ou, ong, e, ei, en, er, eng, i, iu, in, ing, iong, u, ui, un, ue, v; medium initial + final: uai, uei, uan, uen, uang, iao, iou; syllables were read as a whole: zhi, chi, shi, ri, zi, ci, si, yi, wu, yu, ye, yue, yin, yun, yuan, ying. According to the spelling rule, the character prompting unit 30 prompts the following optional characters according to the currently input character and the previously input character of the character input unit 10; such as: when the currently input character is "h" and no character is input before, the character prompt unit 30 prompts the following optional characters as "a", "u", "e"; the following steps are repeated: when the current input character is "a" and the previous input character is "h", the character prompt unit 30 prompts the following optional characters as: "i", "o", "n". Specifically, the character prompting unit 30 may prompt the following optional characters by using any one or more of the following prompting manners: highlighting subsequent selectable characters in a keyboard region of the touch screen; illuminating subsequent selectable characters within a keyboard region of the touch screen; displaying subsequent selectable characters within a keyboard region of the touch screen in a particular color.
And the track detection unit 40 is configured to detect a sliding track of the contact on the touch screen in real time, and when it is detected that the sliding track slides over the selectable character prompted by the character prompting unit 30, return to the character input unit 10 to perform input processing until the current sliding input is finished.
In a specific implementation, because the embodiment of the present invention employs the sliding input method, when a user touches (or clicks) a character on the keyboard region of the touch screen with a hand or a stylus, a touch point is generated, and then the user keeps the touch point sliding on the touch screen without lifting a finger or the stylus, so as to input a subsequent character. The trajectory detection unit 40 is configured to detect a sliding trajectory of the touch point on the touch screen in real time, and detect and determine whether the sliding trajectory slides over the selectable character prompted by the character prompting unit 30 in real time, specifically, the trajectory detection unit 40 detects the selectable character that the sliding trajectory slides over first, regardless of a situation that the sliding trajectory slides over a plurality of selectable characters at the same time. When detecting that the sliding track slides over the prompted optional character, returning to the character input unit 10 for input processing. Specifically, the sliding track may also slide over an unprompted character, and at this time, the apparatus does not perform any processing, so that it is ensured that input processing is performed only when the sliding track slides over an optional valid character, and combination of non-purposeful character strings is avoided, thereby reducing the processing complexity of the input method engine.
The embodiment of the invention flexibly applies the sliding input method to the full spelling single character input of the touch screen, and adopts the sliding input mode to replace the existing single touch click mode, thereby greatly improving the input efficiency; according to spelling rules of pinyin, quick prompt of key letters input by all-pinyin single characters is performed in the sliding input process, so that a user is prevented from searching the whole keyboard one by one, and the user experience is improved; the sliding track selects and inputs the letters only when the prompted effective letters are slid, so that combination of non-target letter strings caused by sliding is avoided, the processing complexity of an input method engine is reduced, and the input efficiency is further improved.
Please refer to fig. 3, which is a schematic structural diagram of a second embodiment of a full spelling single character sliding input device based on a touch screen according to the present invention; as in the previous embodiment, the apparatus of this embodiment includes: a character input unit 10, a single character candidate unit 20, a character prompt unit 30 and a trajectory detection unit 40. In this embodiment, the apparatus further includes:
a termination determination unit 50, configured to, when detecting that the user selects the word candidate provided by the single word candidate unit 20, terminate the character input by the character input unit 10, and determine that the current sliding input is terminated; or, when the trace detecting unit 40 detects that the touch point disappears on the touch screen, the character input of the character input unit 10 is terminated, and it is determined that the current sliding input is finished.
In a specific implementation, when it is detected that the user selects a certain candidate word, the apparatus determines that the user has found a desired word in the current sliding input, the termination determining unit 50 terminates the character input of the character input unit 10, determines that the current sliding input is terminated, and may perform the next sliding input; when the trace detecting unit 40 detects that the touch point disappears on the touch screen, that is, the user lifts the finger or the stylus to leave the touch screen, the termination determining unit 50 terminates the character input of the character input unit 10, determines that the current sliding input is terminated, and may perform the next sliding input.
A storage unit 60 for storing a preset spelling rule for inputting all spelling single characters;
wherein the spelling rules include any one or more of the following rules: two-spelling rules, three-spelling rules, overall recognition rules and self-formation rules. The spelling rule can be found in the above details, and is not described herein.
The embodiment of the invention flexibly applies the sliding input method to the full spelling single character input of the touch screen, and adopts the sliding input mode to replace the existing single touch click mode, thereby greatly improving the input efficiency; according to spelling rules of pinyin, quick prompt of key letters input by all-pinyin single characters is performed in the sliding input process, so that a user is prevented from searching the whole keyboard one by one, and the user experience is improved; the sliding track selects and inputs the letters only when the prompted effective letters are slid, so that combination of non-target letter strings caused by sliding is avoided, the processing complexity of an input method engine is reduced, and the input efficiency is further improved.
For a more clear description of the present invention, the single word candidate unit 20 of the present invention will be described in detail below.
FIG. 4 is a schematic structural diagram of an embodiment of a single word candidate unit according to the present invention; the single word candidate unit 20 includes:
a candidate word generating unit 201, configured to generate a corresponding candidate word in real time according to a character currently input by the character input unit 10 and a combination of the currently input character and a previously input character;
in a specific implementation, the candidate word generating unit 201 generates a corresponding candidate word in real time according to an input character combination, for example: the current input is "h", and the candidate word generating unit 201 generates a single word corresponding to a full-spelling syllable using the "h" character as a consonant in real time, if the current input is "h", the input is not input before; the following steps are repeated: if the current input is "a" and the previous input is "h", the candidate word generating unit 201 generates a single word having a syllable of "ha" character string in real time.
And the display unit 202 is used for displaying the candidate words in a candidate area of the touch screen for the user to select.
In a specific implementation, the display unit 202 displays the candidate words generated by the candidate word generation unit 201 in real time in a candidate area of a touch screen for a user to select. Specifically, the display unit 202 may display the candidate words in order according to the usage rates of the candidate words, and of course, the display unit 202 may also display the candidate words according to the tone of the full pinyin syllable or other manners, such as: the tone of the full pinyin syllable of "han" is the second sound, and the tone of "chinese" is the fourth sound, so that "han" can be displayed before "chinese", and similar analysis is performed in other cases, which is not repeated herein.
The embodiment of the invention can generate candidate words in real time according to the input character combination and provide the candidate words for the user to select.
In order to more clearly illustrate the present invention, an input method performed by the touch screen-based spell word input device of the touch screen terminal will be described in detail below.
Please refer to fig. 5, which is a flowchart illustrating a full spelling single character sliding input method based on a touch screen according to a first embodiment of the present invention; the input method comprises the following steps:
s101, determining a currently input character according to a contact position of a keyboard area of a touch screen;
in a specific implementation, when a user touches a certain character in a keyboard area of a touch screen, the S101 determines the character touched by the user according to a position of a touch point, so as to determine a currently input character, for example: when the user clicks the "h" key on the touch screen, the S101 determines that the currently input character is "h" according to the character corresponding to the position of the touch point generated when the user clicks, and displays the determined current character in the input area of the touch screen.
S102, providing corresponding candidate words in a candidate area of the touch screen in real time;
in specific implementations, for example: taking the currently input character as "h" as an example, the S102 displays the single character corresponding to the full-spelling syllable with the "h" character as the initial consonant in real time according to the input character in the candidate area of the touch screen for the user to select according to the usage rate; if the current input character of the user is 'a' and the previously input character is 'h', the S102 displays the character combination of 'h' as the single character of the full spelling syllable in real time according to the character combination of 'ha' in the candidate area of the touch screen for the user to select according to the usage rate. It is understood that the displaying according to the usage is only an example, and the S102 may further display the candidate words according to the tone of the full pinyin syllable, such as: the tone of the full pinyin syllable of "han" is the second sound, and the tone of "chinese" is the fourth sound, so that "han" can be displayed before "chinese", and similar analysis is performed in other cases, which is not repeated herein.
S103, prompting subsequent optional characters according to the currently input character and the previously input character and a preset spelling rule;
in a specific implementation, according to the spelling rule of the pinyin, the S103 prompts subsequent optional characters according to the currently input character and the previously input character; such as: if the currently input character is "h" and no character is input before, the S103 prompts that the subsequent optional characters are "a", "u", "e"; the following steps are repeated: if the current input character is "a" and the previous input character is "h", then the S103 prompts that the following optional characters are: "i", "o", "n". Specifically, the S103 may prompt the following optional characters by using any one or more of the following prompting manners: highlighting subsequent selectable characters in a keyboard region of the touch screen; illuminating subsequent selectable characters within a keyboard region of the touch screen; displaying subsequent selectable characters within a keyboard region of the touch screen in a particular color.
And S104, detecting the sliding track of the contact on the touch screen in real time, returning to S101 when the sliding track slides over the prompted optional character, and repeating the steps until the sliding input is finished.
In a specific implementation, because the embodiment of the present invention employs the sliding input method, when a user touches (or clicks) a character on a keyboard region of a touch screen with a finger or a stylus, a touch point is generated, and then the user keeps the touch point sliding on the touch screen without lifting the finger or the stylus, so as to input a subsequent character. The S104 detects the sliding track of the touch point on the touch screen in real time, and detects and judges whether the sliding track slides over the selectable character prompted in S103 in real time, specifically, the S104 detects the selectable character that the sliding track slides first, regardless of the fact that the sliding track simultaneously slides over a plurality of selectable characters. And when the sliding track is detected to slide over the prompted optional character, returning to the S101, and performing input processing on the slid optional character. Specifically, the sliding track may also slide over the un-prompted character, and at this time, the input device (e.g., the input method engine) of the touch screen terminal does not perform any processing, so that it is ensured that the input processing is performed only when the sliding track slides over the selectable valid character, thereby avoiding the combination of non-purposeful character strings, and reducing the processing complexity of the input method engine.
The embodiment of the invention flexibly applies the sliding input method to the full spelling single character input of the touch screen, and adopts the sliding input mode to replace the existing single touch click mode, thereby greatly improving the input efficiency; according to spelling rules of pinyin, quick prompt of key letters input by all-pinyin single characters is performed in the sliding input process, so that a user is prevented from searching the whole keyboard one by one, and the user experience is improved; the sliding track selects and inputs the letters only when the prompted effective letters are slid, so that combination of non-target letter strings caused by sliding is avoided, the processing complexity of an input method engine is reduced, and the input efficiency is further improved.
Please refer to fig. 6, which is a flowchart illustrating a full spelling single character sliding input method based on a touch screen according to a second embodiment of the present invention; the input method comprises the following steps:
s201, determining a currently input character according to a contact position of a keyboard area of a touch screen;
in a specific implementation, the step S201 is the same as the step S101 in the previous embodiment, and is not described herein again.
S202, generating corresponding candidate characters in real time according to the currently input characters and the combination of the currently input characters and the previously input characters;
in a specific implementation, the S202 generates a corresponding candidate word in real time according to the input character combination, for example: the current input is 'h', and the current input is not input before, and S202 generates a single character corresponding to the full-spelling syllable by taking the 'h' character as the initial consonant in real time; the following steps are repeated: if the current input is "a" and the previous input is "h", the S202 generates the individual word with the syllable of "ha" character string in real time.
S203, displaying the candidate words in a candidate area of the touch screen;
in a specific implementation, in S203, the candidate word generated in S202 is displayed in real time in a candidate area of a touch screen for a user to select. Specifically, the S203 may display the candidate words in order according to the usage rates of the candidate words, and of course, the S203 may also display the candidate words according to the tone of the full pinyin syllable or other manners, such as: the tone of the full pinyin syllable of "han" is the second sound, and the tone of "chinese" is the fourth sound, so that "han" can be displayed before "chinese", and similar analysis is performed in other cases, which is not repeated herein. Specifically, S202 to S203 described above are the refinement steps of S102 in the previous embodiment.
S204, judging whether the user selects the candidate character, and if so, turning to S209; otherwise, go to S205;
s205, prompting subsequent optional characters according to the currently input character and the previously input character and a preset spelling rule;
in a specific implementation, the step S205 is the same as the step S103 in the previous embodiment, and is not described herein again.
S206, detecting the sliding track of the contact on the touch screen in real time;
in a specific implementation, because the embodiment of the present invention employs the sliding input method, when a user touches (or clicks) a character on the keypad of the touch screen with a finger or a stylus, a touch point is generated, and then the user keeps the touch point sliding on the touch screen without lifting the finger or the stylus, so as to input a subsequent character, and in step S206, the sliding trajectory of the touch point on the touch screen is detected in real time.
S207, judging whether the touch point disappears on the touch screen, and if so, turning to S209; otherwise, go to S208;
in a specific implementation, the step S207 mainly determines whether the touch screen terminal continuously receives a touch signal on the touch screen, and when the touch signal is continuously received, the step S207 determines that the touch does not disappear; if no contact signal is received, for example: a user who performs sliding input operation lifts a finger or a touch pen to enable the finger or the touch pen to be away from the touch screen; alternatively, the received contact signal has an interrupt, such as: the user who performs the sliding input operation lifts a finger or a touch pen to enable the finger or the touch pen to be away from the touch screen, and then the touch screen is pressed again; in the above case, the S207 determines that the contact point disappears on the touch screen.
S208, judging whether the sliding track slides over the prompted optional character, and if so, turning to S201; otherwise, ending;
s209, terminating the character input and determining that the sliding input is finished; after that, the process proceeds to the end.
In a specific implementation, when it is determined in S204 that the user selects a candidate word, that is, the input method device (for example, the input method engine) considers that the user has found the desired word in the current sliding input, then S209 terminates the input of the character, determines that the current sliding input is finished, and may perform the next sliding input; in addition, when it is determined in S207 that the touch point disappears on the touch screen, that is, when the user performing the slide input operation lifts the finger or the stylus pen away from the touch screen, the present slide input is completed, and in S209, the input of the character is terminated, and it is determined that the present slide input is completed, and the next slide input may be performed.
The embodiment of the invention flexibly applies the sliding input method to the full spelling single character input of the touch screen, and adopts the sliding input mode to replace the existing single touch click mode, thereby greatly improving the input efficiency; according to spelling rules of pinyin, quick prompt of key letters input by all-pinyin single characters is performed in the sliding input process, so that a user is prevented from searching the whole keyboard one by one, and the user experience is improved; the sliding track selects and inputs the letters only when the prompted effective letters are slid, so that combination of non-target letter strings caused by sliding is avoided, the processing complexity of an input method engine is reduced, and the input efficiency is further improved.
In order to more clearly illustrate the present invention, a specific example will be described below.
Assuming that a user wants to input a 'hang' character, the user needs to input a character string 'hang', and the specific flow of the input method of the embodiment of the invention is as follows:
initially, all characters in a keyboard area of the touch screen are optional characters (no numeric characters are considered);
please refer to fig. 7, which is a first effect diagram of the full spelling single character sliding input method based on the touch screen according to the present invention; when detecting that a user presses the h character, inputting the h character into an input area of the touch screen, and displaying a single character corresponding to a full-spelling syllable by taking the h as an initial consonant in real time in a candidate area of the touch screen; meanwhile, according to the preset spelling rule, the characters "a", "e" and "u" in the keyboard area of the touch screen are highlighted (can adopt a specific color, such as red) to prompt the user that the three characters are optional characters;
please refer to fig. 8, which is a second effect diagram of the full spelling single character sliding input method based on the touch screen according to the present invention; detecting a sliding track of a touch point on a touch screen generated by pressing the touch screen with a finger of a user in real time, inputting a character ha in an input area of the touch screen when the character a is detected to be pressed by the user, and displaying a single character with the character ha as a full syllabic in real time in a candidate area of the touch screen; meanwhile, according to the preset spelling rule, the characters of 'i', 'o', 'n' in the keyboard area of the touch screen are highlighted (can adopt a specific color, such as red) to prompt the user that the three characters are optional characters;
it can be understood that, at this time, if the word displayed in the candidate area is the word to be input by the user, for example: the user can select the 'Ha' character, the touch screen terminal inputs the selected character into an input area of the touch screen, meanwhile, the character input of the sliding input is stopped, the sliding input is determined to be finished, and the user can perform the next sliding input; if the user finds that the character input before is wrong at the moment, the user can lift the finger to enable the finger to leave the touch screen if the user wants to terminate the sliding input, the touch screen terminal detects that the contact signal disappears, the character input of the sliding input is terminated, the sliding input is determined to be finished, and the user can perform the next sliding input.
Please refer to fig. 9, which is a third effect diagram of the full spelling single character sliding input method based on the touch screen according to the present invention; continuously detecting a sliding track of a touch point on the touch screen generated by pressing the touch screen with a finger of a user in real time, inputting a character "han" in an input area of the touch screen when the character "n" is detected to be pressed by the user, and displaying a single character with the character "han" as a full spelling syllable in real time in a candidate area of the touch screen; meanwhile, according to a predetermined spelling rule, the 'g' character is highlighted (a specific color, such as red, can be adopted) in the keyboard area of the touch screen to prompt the user that the character is an optional character;
it can be understood that, at this time, if the word displayed in the candidate area is the word to be input by the user, for example: the user can select the Korean character, the touch screen terminal inputs the selected character into an input area of the touch screen, meanwhile, the character input of the sliding input is stopped, the sliding input is determined to be finished, and the user can perform the next sliding input; if the user finds that the character input before is wrong at the moment, the user can lift the finger to enable the finger to leave the touch screen if the user wants to terminate the sliding input, the touch screen terminal detects that the contact signal disappears, the character input of the sliding input is terminated, the sliding input is determined to be finished, and the user can perform the next sliding input.
Please refer to fig. 10, which is a fourth effect diagram of the full spelling single character sliding input method based on the touch screen according to the present invention; continuously detecting a sliding track of a touch point on the touch screen generated by pressing the touch screen with a finger of a user in real time, inputting a 'hang' character into an input area of the touch screen when the 'g' character is detected to be pressed by the user, and displaying a single character with the 'hang' as a full-spelling syllable in real time in a candidate area of the touch screen; meanwhile, according to a preset spelling rule, no other optional characters exist in the keyboard area of the touch screen;
at the moment, displaying the 'navigation' character which the user wants to input in the candidate area, enabling the user to select the 'navigation' character, enabling the touch screen terminal to input the selected character into the input area of the touch screen, simultaneously terminating the character input of the sliding input, determining that the sliding input is finished, and enabling the user to perform the next sliding input; in addition, if the candidate character in the candidate area is not the character that the user wants to input, the user can lift the finger to leave the touch screen because no other optional characters exist subsequently, the touch screen terminal detects that the touch signal disappears, the character input of the sliding input is terminated, the sliding input is determined to be finished, and the user can perform the next sliding input.
Through the description of the embodiment, the sliding input method is flexibly applied to the all-spelling single character input of the touch screen, the sliding input mode is adopted to replace the existing single touch and press clicking mode, and the input efficiency is greatly improved; according to spelling rules of pinyin, quick prompt of key letters input by all-pinyin single characters is performed in the sliding input process, so that a user is prevented from searching the whole keyboard one by one, and the user experience is improved; the sliding track selects and inputs the letters only when the prompted effective letters are slid, so that combination of non-target letter strings caused by sliding is avoided, the processing complexity of an input method engine is reduced, and the input efficiency is further improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.