CN105892710B - Chinese character input method and device based on text box - Google Patents

Chinese character input method and device based on text box Download PDF

Info

Publication number
CN105892710B
CN105892710B CN201510026236.7A CN201510026236A CN105892710B CN 105892710 B CN105892710 B CN 105892710B CN 201510026236 A CN201510026236 A CN 201510026236A CN 105892710 B CN105892710 B CN 105892710B
Authority
CN
China
Prior art keywords
input
chinese character
phrases
module
input method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510026236.7A
Other languages
Chinese (zh)
Other versions
CN105892710A (en
Inventor
张龙哺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201510026236.7A priority Critical patent/CN105892710B/en
Publication of CN105892710A publication Critical patent/CN105892710A/en
Application granted granted Critical
Publication of CN105892710B publication Critical patent/CN105892710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a Chinese character input method based on a text box, which comprises the following steps: step S10, detecting the letter typed in the text input box; step S20, searching corresponding Chinese characters (or phrases) through a Chinese character coding code table; step S30, popping up a Chinese character candidate dialog box; and step S40, inputting the corresponding Chinese character candidate into the text input box according to the selection of the user. Further comprising the steps of: step S01, sending the relevant Chinese characters and/or phrases from the application program to the input method module; step S02, the input method module receives the above related chinese characters and/or phrases and encodes them according to the encoding rules of the input method to form a code table, so that the user can make (priority) calls when inputting chinese characters. The invention also provides a Chinese character input device, application equipment, computer translation equipment, computer-aided writing equipment and the like based on the text box.

Description

Chinese character input method and device based on text box
Technical Field
The invention relates to a Chinese character input technology of a computer, in particular to a Chinese character input method based on a text box and application thereof.
Background
In order to realize a Chinese input method under the Windows operating system environment, an input method development interface IMM-IME provided by the Windows operating system is provided. For alphabetic languages such as English, the input process from the keyboard to the screen is relatively simple, the operating system directly converts the received key codes into corresponding ASCII codes, and the final letters are displayed in the target area. However, for some versions of the operating system that require processing of non-alphabetic languages (e.g., Chinese, Korean), a relatively complex conversion mechanism must be provided to effect the conversion from the keyboard code combination to the final character. The Windows operating system provides an IMM-IME framework for this.
The IMM (input Method manager) is an abbreviation of an input Method manager, is positioned between an application program and an input Method, and is used for transmitting messages between the application program and the input Method and managing an IME module. Ime (input Method editor) is an abbreviation for input Method editor, which provides a user interface. The IME provides a series of interface functions that the input method developer needs to export in the IME document, the functions of which include input method initialization, handling keyboard coding, etc., respectively.
At present, the Chinese character input method is completed based on the keyboard input detection according to the above-mentioned structure, and the working principle thereof can be seen in fig. 19. Mainly comprises the following steps: 1. initializing an input method; 2. IMM obtains keyboard information; 3. the IMM transmits the keyboard message to the IME; 4. IME converts keyboard message into Chinese character code; 5. IME searches corresponding Chinese characters (or phrases) through Chinese character coding; 6. the IME returns the Chinese characters to the IMM in a form of character messages and texts; 7. the IMM sends the Chinese characters into the application program.
Specifically, the input method is initialized as follows:
imelnqire: when a certain input method is just selected, the IMM calls the function to obtain the relevant information of the input method, and automatically creates a user interface according to the UICLASSNAME of the user interface class.
ImeSelect: when the input method is opened or closed, the input method is called, and the context of the input method is initialized or released in the function.
The IMM passes keyboard messages to the IME:
the IMM launches the keyboard message to the IME through an IME conversion interface ImeProcessKey.
The function filters the keyboard message to determine whether the message is sent to the IME or directly to the application.
If the TRUE is returned, the TRUE is sent to the IME, otherwise, the TRUE is directly sent to the application program.
The IME converts the keyboard message into a corresponding chinese character:
the IME processes the keyboard message sent by the ImeToAsciiEx function and finally converts the keyboard message into an output result string.
The IME returns Chinese characters to the IMM in the form of character messages:
the IME will send the combined character to the application in the frame using WM _ IME _ CHAR or WM _ IME _ COMPOSITION/GCS _ RESULT messages. If the application does not process these messages, the DefWindowProc function will translate them into one or more WM _ CHAR messages
Although the conventional Chinese character input method has the advantages of universality, the following defects exist at the same time: 1. the Chinese character input method (program) is separated from the application program, namely the Chinese character input method program is independent of the application program, and the Chinese character input method program and the application program are not closely related and have no interaction and resource sharing. 2. The conventional chinese character input method is complicated in process, needs to interact with an operating system and utilizes a large number of resources, frames and modules of the operating system (such as the above-mentioned IMM, IME, etc.), and without this, the conventional chinese character input method cannot work. 3. It can not meet the special requirements of specific application program for Chinese character (phrase, etc.) input.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a Chinese character input method based on a text box and a device thereof, and application equipment, a computer translation device, a computer aided writing device and the like using the method/device.
The Chinese character input method based on the text box comprises the following steps: step S10, detecting the letter typed in the text input box; step S20, searching corresponding Chinese characters (or phrases) through a Chinese character coding code table; step S30, popping up a Chinese character candidate dialog box; and step S40, inputting the corresponding Chinese character candidate into the text input box according to the selection of the user.
The above method may further comprise the steps of: step S01, sending the relevant Chinese characters and/or phrases from the application program to the input method module; and step S02, the input method module receives the relevant Chinese characters and/or phrases and codes the relevant Chinese characters and/or phrases according to the input method coding rules to form a code table so that the user can call when inputting Chinese characters.
The Chinese character input device based on the text box according to the present invention comprises: the detection module is used for detecting the letters or letter strings input in the text box and transmitting the detected letters or letter strings to the code table lookup module; the code table searching module is used for searching corresponding Chinese characters or phrases through a Chinese character coding code table; the candidate item dialog box display module is used for filling the candidate item popup dialog box according to the Chinese character candidate item information transmitted by the code table lookup module and displaying the dialog box; and the sending module is used for sending the corresponding Chinese character candidate items into the text box according to the selection of the user.
The device further comprises a code table generating module which is used for receiving Chinese characters, Chinese phrases and/or phrases which are related to the content which the user currently wants to input from the outside and coding the related Chinese characters, Chinese phrases and/or phrases according to the coding rule of the input method to form one or more code tables.
Further, according to the present invention, when a letter or a letter string input in the text box is detected, the letter or the letter string is displayed and/or identified in a specific format. The Chinese character coding code table can be according to various Chinese character coding methods, such as: a code table determined by pinyin, simple pinyin, five strokes and the like; the code table is one or more. Before popping up the candidate dialog box, whether a candidate exists is determined, and if not, the dialog box is not popped up. In the case where there are candidates in the candidate display item dialog, a selective operation is performed between sending the chinese character candidates and determining the input letter or letter string as the content to be input currently by the user pressing a different key. When the input letter string has no Chinese character candidate item, determining the input letter string as the current input content; or, when the input letter string has no Chinese character candidate, if a letter is detected to be input again, determining a plurality of the input letters as the current input content. The relevant chinese characters, phrases and/or phrases that are encoded as desired are provided as priority candidates. And the code table formed by encoding is temporary as required or added to the user code table and stored for reuse. And the encoding may be performed one or more times as needed.
The application device according to the invention comprises: the input method module is the Chinese character input device based on the text box; the main program module transmits Chinese characters, phrases or phrases related to the current operation and processing to the input method module.
The computer translation apparatus according to the present invention comprises: the input method module is the Chinese character input device based on the text box; the translation module transmits Chinese characters, phrases or phrases related to the current translated article, paragraph or sentence to the input method module.
The computer document writing auxiliary device according to the present invention includes: the writing auxiliary module, the text input box and the input method module, wherein the input method module is the Chinese character input device based on the text box; the writing auxiliary module transmits Chinese characters, phrases or phrases related to the current written article, paragraph or sentence to the input method module.
The Chinese character input method/device based on the text box has simple structure, strong pertinence and easy realization. Moreover, the method does not need to cross with a functional module on the operating system level, occupies less system resources and has high reflecting speed.
And because the pertinence is strong, the Chinese character or phrase which the user wants to input can be obtained only by inputting a few of one or two letters, the input speed and the input accuracy can be greatly improved, the use experience of the user is better, and the quick, simple and accurate Chinese character input is realized.
Brief description of the drawings
Fig. 1 is a flowchart of a text box-based chinese character input method according to a first embodiment of the present invention.
Fig. 2 to 5 are some examples of the text box-based chinese character input method according to the present invention in use.
Fig. 6 is a flowchart of a text box-based chinese character input method according to a second embodiment of the present invention.
Fig. 7 is a block diagram of a chinese character input apparatus based on a text box according to a third embodiment of the present invention.
Fig. 8 is a block diagram of a chinese character input apparatus based on a text box according to a fourth embodiment of the present invention.
Fig. 9 is a block diagram of an application device according to a fifth embodiment of the present invention.
Fig. 10 is a block diagram of a computer-aided translation apparatus according to a sixth embodiment of the present invention.
Fig. 11 is a block diagram of a computer writing assistance apparatus according to a seventh embodiment of the present invention.
Fig. 12 to 14 are some examples of the text box-based chinese character input method/apparatus according to the present invention in use.
FIG. 15 shows a user interface of a computer-aided translation apparatus according to the present invention.
Fig. 16 shows an example of setup for a text box based chinese character input method/apparatus according to the present invention.
FIG. 17 shows an example of use of "enable number keys" in accordance with the present invention.
FIG. 18 shows an example of use of "Enabled punctuation" in accordance with the present invention.
Fig. 19 is a schematic flowchart of a chinese character input method in the prior art.
Detailed Description
According to a first aspect of the present invention, there is provided a text box based Chinese character input method. It may also be called "chinese character input method based on application program", or chinese character input method embedded in application program.
Referring first to fig. 1, a method for inputting chinese characters based on a text box according to a first embodiment of the present invention includes the steps of:
step S10, detecting the letter typed in the text input box;
step S20, searching corresponding Chinese characters (or phrases) through a Chinese character coding code table;
step S30, popping up a Chinese character candidate dialog box;
and step S40, inputting the corresponding Chinese character candidate into the text input box according to the selection of the user.
Specifically, in step S10 (detecting the letter typed in the text input box), the text box may be a text input box of any application, see fig. 2. In the text input box, the user needs to input a desired chinese character. The letter may be one letter or a plurality of letters. In order to make the user aware of the current input process as letters (strings) of the chinese character code, these letters (strings) may be displayed (and/or identified) in a specific format in the text input box, which also facilitates the machine or program to confirm the letters (strings) input during the current chinese character input process, such as: selecting, underlining, or specifying font size and/or color. In fig. 2, a check mode is employed in which, after the user enters the english letter "w" in the text box, the english letter "w" that has been entered in the text box is detected and displayed in a specific format of check (black background). Of course, instead of displaying the current input process as a Chinese character encoded letter (string) in the text box, it may be displayed in a Chinese character candidate dialog box described below, or a separate display box may be used.
Specifically, in step S20 (finding the corresponding Chinese character (or phrase) through the Chinese character encoding code table, the Chinese character encoding code table can be according to various Chinese character encoding methods (such as Pinyin, etc.),
Simple spell, five strokes, etc.). The code table may be one or more. The basis for the search may be the letter or letters (character string) as described in step S10. The result (kanji) of the search may be a candidate or candidates, or there may be no corresponding candidate. In the example shown in fig. 2, a plurality of chinese character candidates are obtained by searching the chinese character encoding code table according to the detected letter "w", and only the first 5 ("i", "is", "ten thousand", "question", and "none") are displayed in the pop-up dialog box in the figure.
Other examples can be seen in fig. 3-5. In fig. 3, after the user inputs the english letter string "wea" in the text box, it is detected and selected, and 4 chinese character phrase candidates ("age", "physical labor", "use range", and "capture") are found through the chinese character encoding code table, fig. 4 shows that after the user inputs "heat" in the text box, the corresponding chinese character (or phrase) candidates have not been found.
Specifically, in step S30 (pop-up kanji candidate dialog), optionally, it is first determined whether there is a candidate, and if not, the dialog may not pop-up, and if so, the dialog may pop-up. Examples of candidate dialogs are shown in fig. 2 and 3, where a sequence number (number) is also provided before each candidate for user input convenience.
All candidates may be displayed in the candidate display item dialog box, or a predetermined number of candidates may be displayed. Further, a predetermined number of displays may be set, for example, the number of displays may be set to 1, 2, 5, 10, or the like. Specifically, when the actual number of candidates is smaller than the prescribed number of displays, the candidate display item dialog may display only the actual number.
The candidates displayed in the candidate display item dialog box shown in fig. 2 are arranged vertically, but a horizontal arrangement may be used, or other arrangements and combinations thereof.
Specifically, in step S40 (the corresponding chinese character candidates are entered into the text entry box according to the user' S selection), the user can enter the corresponding candidates into the text entry box by pressing the number key in front of the candidates. Of course, the user may also enter the currently selected candidate (usually the first) into the text entry box by pressing other keys, such as the space key or the enter key. Even a mouse click on a candidate can be used to perform the feed operation.
From the above description, the method for inputting Chinese characters based on text boxes according to the present invention has few steps and is easy to implement. Moreover, the method does not need to cross with a functional module on the operating system level, occupies less system resources and has high reflecting speed.
On the other hand, in order to make it more convenient for the user to switch between chinese (or other non-alphabetic languages such as japanese, korean, etc.) and english (or other alphabetic languages such as german, french), a switch button, menu, shortcut key, and/or the like may be directly provided in the application program. Specifically, reference may be made to the example shown in fig. 15, in which the button with the "chinese" character as the icon is a chinese/english switching button, or, after further clicking the button, various settings may be made, as shown in fig. 16.
With respect to the above switching problem, automatic recognition and/or specific feeding methods may also be employed during user input. For example, after a user inputs a letter or a plurality of letters, if the user presses a space key or a corresponding number key, the letter or the plurality of letters input by the user are replaced by Chinese character candidates; if the user presses the enter key, the letter or letters input by the user are determined as the contents to be input (English letters, e.g.: we), and the specific display format is simultaneously canceled for the following Chinese character input process. In addition, the following techniques may also be employed: when a user inputs a plurality of letters (e.g., "heat"), if there are no Chinese character candidates (see fig. 4), the plurality of letters input by the user may be determined as the current content, and the specific display format may be simultaneously cancelled (e.g., the original background color (black) is cancelled, and the display format is changed to normal colorless). Alternatively, when the user inputs a plurality of letters without Chinese character candidates, if the user inputs a letter (e.g., "weather"), the plurality of letters input by the user may be determined as the current content and the specific display format may be simultaneously cancelled (see FIG. 5).
Next, referring to fig. 6, a method for inputting chinese characters based on a text box according to a second embodiment of the present invention is explained, the method comprising the steps of:
step S01, sending the relevant Chinese characters (or phrases) to the input method module from the application program;
and step S02, the input method module receives the relevant Chinese characters (and/or phrases) and codes the relevant Chinese characters (and/or phrases) according to the input method coding rules to form a code table so that the user can call the Chinese characters when inputting the Chinese characters.
Step S10, detecting the letter typed in the text input box;
step S20, searching corresponding Chinese characters (or phrases) through a Chinese character coding code table and forming a Chinese character candidate item list, wherein the coding table comprises the related Chinese characters and codes thereof;
step S30, popping up a Chinese character candidate dialog box;
and step S40, inputting the corresponding Chinese character candidate into the text input box according to the selection of the user.
This embodiment differs from the first embodiment in that: before step S10, the following steps S01 and S02 are also included.
Specifically, in step S01, the application program sends the relevant chinese characters, particularly chinese phrases or phrases, etc., to the input method module. The related Chinese characters, phrases and/or phrases, etc. may be those that the user currently wants to input. For example, when a user is translating a foreign article, a foreign word, or a sentence, the application may send the Chinese paraphrases associated with the current article, paragraph, sentence, and/or word to the input method module. For another example, when a user is writing a Chinese article, the application may send the Chinese characters, phrases or phrases (or even sentences) in the existing portion to the input method module.
Next, in step S02, after receiving the relevant chinese characters, chinese phrases and/or phrases, the input method module encodes the relevant chinese characters, chinese phrases and/or phrases according to the input method encoding rules, for example, forming one or more code tables (which can be determined according to the required input method) for the user to call when inputting chinese characters. The input method can be full spelling, double spelling, simple spelling, five strokes, zheng code and the like. And the related Chinese characters, Chinese phrases and/or phrases obtained by searching the code table can be provided as the priority candidates. The code table may be temporary, e.g., when steps S01 and S02 are performed again, the code table may be updated or reconstructed; it can also be added to a so-called user code table, which is kept and reused.
Preferably, steps S01 and S02 are performed once when the user illustrated above translates a foreign article, a piece of foreign text, or a sentence of foreign text. Especially, each time a sentence of foreign language is translated, the steps S01 and S02 are executed once according to the actual contents of the current translated sentence, and the user code table is updated or reconstructed so as to provide candidates most specifically and more reasonably sort the candidates.
The remaining steps S10 through S40 are substantially the same as those in the first embodiment, and a repetitive description thereof will not be made.
It is noted that in the method shown in FIG. 6, in addition to the illustrated sequence of steps, steps S01 and S02 may be repeatedly performed a plurality of times without performing the remaining steps S10-S40; or after the steps S01 and S02 are performed a plurality of times, the remaining steps S10-S40 are performed.
It should also be noted that the "chinese character" described herein may be a chinese character, a chinese character phrase, a sentence, or the like. The "kanji" also includes other non-alphabetic types of text, such as: japanese, Korean, Mongolian, Arabic, etc.
According to a second aspect of the present invention, there is provided a text box based Chinese character input device, which may be in the form of software alone or in the form of a combination of software and hardware.
Referring to fig. 7, the text box-based chinese character input apparatus 30 according to the third embodiment of the present invention mainly includes a detection module 301, a code table lookup module 302, a candidate dialog box display module 303, a transmission module 304, and the like.
A detection module 301 for detecting the letter (or letter string) entered in the text (input) box 20 and then transmitting the detected letter (or letter string) to a code table lookup module 302. In the detection module 301, a function (sub-module) for formatting the text box 20 may also be added to facilitate the user identification and the chinese character input process.
The text box may be any application or text entry box of an electronic device in which a user needs to enter a desired chinese character. The letter may be one letter or a plurality of letters. In order to make the user aware of the current input process as letters (strings) of the chinese character code, these letters (strings) may be displayed in the text input box in a specific format, for example: selecting, underlining, or specifying font size and/or color. As in fig. 2, a check mode is employed in which, after the user enters the english letter "w" in the text box, the english letter "w" that has been entered in the text box is detected and displayed in a specific format of check (black background). Of course, instead of displaying the current input process as a Chinese character encoded letter (string) in the text box, it may be displayed in a Chinese character candidate dialog box described below, or a separate display box may be used.
The code table lookup module 302 is configured to lookup a corresponding chinese character (or phrase) through a chinese character coding code table. The Chinese character coding code table can be a code table determined according to various Chinese character coding methods (such as pinyin, simple pinyin, five strokes and the like). The code table may be one or more. The basis for the search may be the letter or letters (character string) transmitted by the detection module 301. The result (kanji) of the search may be a candidate or candidates, or there may be no corresponding candidate.
In the code table lookup module 302, a "number key enabled" function sub-module may be further included. If the number keys are enabled, when a user inputs a number in a text box, the text box-based chinese character input method and apparatus according to the present invention may pop up a chinese number corresponding to the number, see the example shown in fig. 17 and related description below.
In the code table lookup module 302, an "enable punctuation" sub-module may be further included. If the function module is enabled, when a user inputs a western (half-corner) punctuation mark in a text box, the chinese character input method and apparatus based on the text box according to the present invention may pop up a chinese (full-corner) punctuation mark corresponding to the inputted punctuation mark in a candidate pop-up box, see the example shown in fig. 18 and the related description below.
The candidate item dialog box display module 303 is configured to fill the candidate item popup dialog box according to the information (chinese character candidate item) sent by the code table lookup module and display the dialog box. Alternatively, it may be determined first whether there are candidates, and if not, the dialog may not pop up, and if so, the dialog may pop up. Examples of candidate dialogs are shown in fig. 2 and 3, where a sequence number (number) is also provided before each candidate for user input convenience.
In the candidate dialog box display module 303, a dialog box setting sub-module may also be provided. For example, the dialog box is set as follows: all candidates may be displayed in the candidate display item dialog box, or a predetermined number of candidates may be displayed. Further, a predetermined number of displays may be set, for example, the number of displays may be set to 1, 2, 5, 10, or the like. Specifically, when the actual number of candidates is smaller than the prescribed number of displays, the candidate display item dialog may display only the actual number. The displayed candidates may be arranged vertically, but may also be arranged horizontally, or in other arrangements and combinations thereof.
And the sending module S304 is used for sending the corresponding Chinese character candidate items into the text input box according to the selection of the user. When the user presses the number key in front of the candidate item, the corresponding candidate item can be sent into the text input box 20 through the sending module. Of course, the sending module may also enter the currently selected candidate (typically the first one) into the text entry box 20 in response to the user pressing another key (e.g., the space key or enter key). The input operation may even be performed in response to a mouse click on a candidate.
As can be seen from fig. 7 and the above description, the chinese character input device based on the text box according to the present invention has a simple structure and is easy to implement. Moreover, the method does not need to cross with a functional module on the operating system level, occupies less system resources and has high reflecting speed.
On the other hand, in order to allow the user to more conveniently switch between chinese (or other non-alphabetical languages such as japanese, korean, etc.) and english (or other alphabetical languages such as german, french), a switch (not shown in fig. 7) may be provided between the text box 20 and the chinese character input module 30. Specifically, reference may be made to the example shown in fig. 15, in which the button with the "chinese" character as the icon is a chinese/english switching button, or, after further clicking the button, various settings may be made, as shown in fig. 16.
With respect to the above switching problem, automatic recognition and/or specific feeding methods may also be employed during user input. For example, after a user inputs a letter or a plurality of letters, if the user presses a space key or a corresponding number key, the letter or the plurality of letters input by the user are replaced by Chinese character candidates; if the user presses the enter key, the letter or letters input by the user are determined as the contents to be input (English letters, e.g.: we), and the specific display format is simultaneously canceled for the following Chinese character input process.
In another embodiment, other non-alphabetic keys may also be detected, such as: arrow keys (up, down, left, right, etc.), or detection of mouse positioning (e.g., positioning a cursor over the last letter) to determine the currently entered letter or letter string as the content currently to be entered.
In addition, the following techniques may also be employed: when a user inputs a plurality of letters (e.g., "heat"), if there are no Chinese character candidates (see fig. 4), the plurality of letters input by the user may be determined as the current content, and the specific display format may be simultaneously cancelled (e.g., the original background color (black) is cancelled, and the display format is changed to normal colorless). Alternatively, when the user inputs a plurality of letters without Chinese character candidates, if the user inputs a letter (e.g., "weather"), the plurality of letters input by the user may be determined as the current content and the specific display format may be simultaneously cancelled (see FIG. 5).
Referring to fig. 8, the text box-based chinese character input apparatus 30 according to the fourth embodiment of the present invention mainly includes a detection module 301, a code table lookup module 302, a candidate dialog box display module 303, a transmission module 304, a reception and code table generation module 305, a setting module 306, and the like.
Specifically, the code table generating module 305 is configured to receive chinese characters, chinese phrases and/or phrases and encode them according to the input method encoding rules, for example, form one or more (which may be determined according to the required input method) code tables (which may be referred to as user code tables) for the user to call when inputting chinese characters. The input method can be full spelling, double spelling, simple spelling, five strokes, zheng code and the like. And the related Chinese characters, Chinese phrases and/or phrases obtained by searching the code table can be provided as the priority candidates. The code table may be temporary, e.g., it may be updated or reconstructed each time a reception is made; it can also be added to a so-called user code table, kept on hold and reused.
The relevant chinese characters, phrases or phrases, etc. sent to the code table generating module 305 may be from the external program module 10. For example, a dictionary module from a translation device or program, or a word processing module from writing software.
For example, when a foreign article, a piece of foreign text, or a sentence of foreign language is translated by the user translation device or software, the dictionary in the translation device or software sends Chinese (Chinese characters, phrases or phrases, etc.) related to or corresponding to the current foreign language to the receiving and code table generating module to provide candidates for targeting.
The text box-based Chinese character input device according to the present embodiment includes a setting module 306 for setting various aspects of the Chinese character input method, such as: the display number of the candidate item, the Chinese character coding scheme (type), the (code table) sorting of various Chinese character coding schemes, whether the number key is started or not, whether the punctuation mark is started or not, and the like. See fig. 16 for an example of the setup.
The remaining modules are substantially the same as those in the third embodiment, and a repetitive description thereof will not be made here.
It should be noted that the "chinese character" described herein may be a chinese character, a chinese character phrase, a sentence, or the like. The "kanji" also includes other non-alphabetic types of text, such as: japanese, Korean, Mongolian, Arabic, etc.
According to a third aspect of the present invention, there is provided an application device comprising a text box based Chinese character input means, said application device being in the form of either pure software or a combination of software and hardware.
Referring to fig. 9, the application device 1 according to the fifth embodiment of the present invention includes: a main program module 10, a text input box 20 and an input method module, wherein the input method module is a Chinese character input device 30 based on the text box. The chinese character input device 30 may adopt the structure shown in fig. 7 and 8 and described in detail above.
Main program module 10 passes the chinese characters, phrases or phrases associated with the current operation and process to input method module 30. When the input method module receives the Chinese characters, phrases or phrases, the Chinese characters, phrases or phrases are coded according to Chinese character coding rules (such as full spelling, simple spelling, five strokes and the like) and a Chinese character coding code table is formed.
In the text box 20, the user needs to input a desired chinese character. When the user inputs a western letter (which may be one letter or a plurality of letters) in the text box according to the chinese character code table, the input method module 30 detects the inputted letter or letter string in the text box. In order to make the user aware of the current input process as letters (strings) of the chinese character code, these letters (strings) may be displayed in the text input box in a specific format, for example: selecting, underlining, or specifying font size and/or color. As illustrated in fig. 2, a check mode is employed in which, after the user enters the english letter "w" in the text box, the english letter "w" that has been entered in the text box is detected and displayed in a specific format of check (black background). Of course, instead of displaying the current input process as a Chinese character encoded letter (string) in the text box, it may be displayed in a Chinese character candidate dialog box described below, or a separate display box may be used.
When the letter or the letter string is detected, the input method module 30 searches for a corresponding Chinese character (or phrase) in a Chinese character coding code table and pops up a candidate item dialog box. The Chinese character coding code table can be a code table determined according to various Chinese character coding methods (such as pinyin, simple pinyin, five strokes and the like). The code table may be one or more. The result (kanji) of the search may be a candidate or candidates, or there may be no corresponding candidate.
Specifically, before popping up the chinese character candidate dialog box, it is optionally first determined whether there is a candidate, and if not, the dialog box may not pop up, and if so, the dialog box may pop up. Examples of candidate dialogs are shown in fig. 2 and 3, where a sequence number (number) is also provided before each candidate for user input convenience.
All candidates may be displayed in the candidate display item dialog box, or a predetermined number of candidates may be displayed. Further, a predetermined number of displays may be set, for example, the number of displays may be set to 1, 2, 5, 10, or the like. Specifically, when the actual number of candidates is smaller than the prescribed number of displays, the candidate display item dialog may display only the actual number.
The candidates displayed in the candidate display item dialog box shown in fig. 2 are arranged vertically, but a horizontal arrangement may be used, or other arrangements and combinations thereof.
The input method module 30 enters the corresponding chinese character candidate into the text entry box 20 according to the user's selection (replacing the letter or letter string entered by the user, or seeding the selected candidate at the current cursor). The user can press the number key in front of the candidate item to input the corresponding candidate item into the text input box. Of course, the user may also enter the currently selected candidate (usually the first) into the text entry box by pressing other keys, such as the space key or the enter key. Even a mouse click on a candidate can be used to perform the feed operation.
From the above description, the application device (including the Chinese character input device based on the text box) according to the present invention has the advantages of simple structure, strong pertinence and easy realization. Moreover, the method does not need to cross with a functional module on the operating system level, occupies less system resources and has high reflecting speed.
In addition, in order to enable the user to more conveniently switch between chinese (or other non-alphabetical languages such as japanese, korean, etc.) and english (or other alphabetical languages such as german, french), a switch button, menu, shortcut key, and/or the like may be provided directly in the application device (program). Specifically, reference may be made to the example shown in fig. 15, in which the button with the "chinese" character as the icon is a chinese/english switching button, or, after further clicking the button, various settings may be made, as shown in fig. 16.
With respect to the above switching problem, automatic recognition and/or specific feeding methods may also be employed during user input. For example, after a user inputs a letter or a plurality of letters, if the user presses a space key or a corresponding number key, the letter or the plurality of letters input by the user are replaced by Chinese character candidates; if the user presses the enter key, the letter or letters input by the user are determined as the contents to be input (English letters, e.g.: we), and the specific display format is simultaneously canceled for the following Chinese character input process.
In another embodiment, other non-alphabetic keys may also be detected, such as: arrow keys (up, down, left, right, etc.), or detection of mouse positioning (e.g., positioning a cursor after the last letter) to determine the currently entered letter or letter string as the content currently to be entered. For devices such as tablet computers and mobile terminals, touch location (e.g., locating a touch point after the last letter) may be detected to determine the currently entered letter or letter string as the content to be currently entered.
In addition, the following techniques may also be employed: when a user inputs a plurality of letters (e.g., "heat"), if there are no Chinese character candidates (see fig. 4), the plurality of letters input by the user may be determined as the current content, and the specific display format may be simultaneously cancelled (e.g., the original background color (black) is cancelled, and the display format is changed to normal colorless). Alternatively, when the user inputs a plurality of letters without Chinese character candidates, if the user inputs a letter (e.g., "weather"), the plurality of letters input by the user may be determined as the current content and the specific display format may be simultaneously cancelled (see FIG. 5).
Referring to fig. 10, a computer translation tool 1' according to a sixth embodiment of the present invention includes: a translation module 10', a text input box 20 and an input method module, wherein the input method module is a text box based Chinese character input device 30. The chinese character input device 30 may adopt the structure shown in fig. 7 and 8 and described in detail above.
The computer translation tool 1' may be various computer translation devices or software, such as computer automatic translation, computer-aided translation, online network translation, mobile terminal translation application, and the like.
Translation module 10' communicates the Chinese characters, phrases or phrases associated with the currently translated article, paragraph or sentence to input method module 30. When the input method module 30 receives the Chinese characters, phrases or phrases, the codes are performed according to the Chinese character coding rules (e.g., full spelling, simple spelling, five strokes, etc.) and a Chinese character coding code table is formed.
Other modules and corresponding functional features can be referred to the above description and will not be described repeatedly herein.
Referring to fig. 11, a computer document authoring tool 1 "according to a seventh embodiment of the present invention may include: a writing assistance module 10 ", a text input box 20 and an input method module, wherein the input method module is a text box based Chinese character input device 30. The chinese character input device 30 may adopt the structure shown in fig. 7 and 8 and described in detail above.
The authoring assistance module 10 "communicates the Chinese characters, phrases or phrases associated with the currently authored article, paragraph or sentence to the input method module 30. When the input method module 30 receives the Chinese characters, phrases or phrases, the codes are performed according to the Chinese character coding rules (e.g., full spelling, simple spelling, five strokes, etc.) and a Chinese character coding code table is formed.
Other modules and corresponding functional features can be referred to the above description and will not be described repeatedly herein.
FIGS. 12(a) and (b) show views of a computer translation assisting apparatus/software using a text box based input method according to the present invention. As can be seen from fig. 12(a), when the user inputs the letter "sy" (chinese abbreviated coding) in the text box, since the chinese character "use" (according to the auxiliary translation module shown below the text box) has been delivered to the chinese character input module as the relevant chinese character or phrase and coded and used as a preference, the first bit (i.e., the preference) in the candidate pop-up dialog box is "use", which is what the user wants to input, and thus, the user can conveniently and quickly send it to the text box (e.g., replace the letter string "sy" with "use"), and as a result, see fig. 12 (b). In addition, fig. 12(b) also shows a case where the user inputs the next phrase. Specifically, when the user enters the letter "jh" (the former part of the chinese shorthand code) in the text box, "interactive" that the user wants to enter is also displayed in the first place (i.e., the top place) of the candidate popup box, similarly to the above-described case. Incidentally, as shown in fig. 12(a) and (b), the other candidates below the top are candidates from the conventional kanji code table.
Therefore, the Chinese character input method based on the text box can greatly improve the input speed and accuracy, and the use experience of the user is better due to strong pertinence, so that the quick, simple and accurate Chinese character input is realized.
FIG. 13 illustrates another view of a computer translation assisting apparatus/software using a text box based input method in accordance with the present invention. As can be seen from fig. 13, when the user enters the letter "ug" (chinese five-stroke coding) in the text box, since the chinese character "interactive" (according to the auxiliary translation module shown below the text box) has been delivered to the chinese character input module as the relevant chinese character or phrase and coded and used as a preference, the first bit (i.e., the preference) in the candidate pop-up dialog is "interactive", which is what the user wants to enter, and thus, the user can conveniently and quickly send it into the text box (e.g., replacing the letter string "ug" with "interactive").
FIG. 14 illustrates yet another view of a computer translation assisting apparatus/software using a text box based input method in accordance with the present invention. As can be seen from fig. 14, since the user has defined a term (the chinese interpretation of the interactive translation software is "interactive translation software") in the auxiliary translation module below the text box, when the user inputs the letter "ug" (the first two codewords of the chinese five-stroke code) in the text box, since the chinese character "interactive translation software" (according to the auxiliary translation module displayed below the text box) has been transferred to the chinese character input module as the relevant chinese character or phrase and is coded and used as a preference, the first bit (i.e., the preference) in the candidate pop-up dialog box is "interactive translation software", which is the content the user wants to input, and thus, the user can conveniently and quickly transmit it into the text box (e.g., replace the letter string "ug" with the "interactive translation software").
Therefore, the application device (software) comprising the Chinese character input method based on the text box, such as a computer-aided translation device or software, can further improve the input speed, accuracy and pertinence due to the close combination of the input method and the application device or software, thereby further improving the use experience of the user and increasing the viscosity of the user.
Fig. 15 shows an application (software) including a text box-based chinese character input method according to the present invention, which is a computer aided translation software (intelligent CAT). An input method switch can be seen on the interface (upper left corner), and the icon is a Chinese character. The Chinese character input method based on the text box can be started by clicking once; and then clicking to close the Chinese character input method.
Alternatively, the "chinese" character button may be a setting button of a chinese character input method. For example, clicking on this button may pop up a setup dialog box as shown in FIG. 16. In the dialog box, it can be set whether to start the Chinese character input method (such as 'love translation input method' displayed in the lower right corner) according to the invention, and it can also set the kind and sequence of the Chinese character code table to be searched once (according to the habit and need of the user).
In addition, whether or not "number keys are enabled" may also be set in the setting dialog. If the number keys are enabled, when a user inputs a number in a text box, the text box-based chinese character input method and apparatus according to the present invention may pop up a chinese number corresponding to the number, see the example shown in fig. 17. The "enable number key" function (module) according to the present invention may provide more convenience to the user. For example, when translating the serial number, only the corresponding number needs to be input to obtain the full-angle serial number, the serial number of the chinese number, and the corresponding chinese character, etc. (see the example shown in fig. 17 for details).
In addition, the Chinese character input method and the device based on the text box can further comprise a function (module) of 'enabling punctuation marks'. If the function module is enabled, when a user inputs a western (half-corner) punctuation mark in a text box, the chinese character input method and apparatus based on the text box according to the present invention may pop up a chinese (full-corner) punctuation mark corresponding to the inputted punctuation mark in a candidate pop-up box, see the example shown in fig. 18. For example, when a user wants to input punctuation marks, the user can obtain half-corner punctuation marks and full-corner punctuation marks by inputting corresponding numbers in the text box for selection, which is specifically referred to as the example shown in fig. 18. Particularly, when quotation marks are input, because the existing input method has no corresponding processing, a text box in application equipment (software) does not know whether the quotation marks of Chinese are towards the left or the right (some application programs can make automatic judgment but often make wrong judgment). Therefore, the punctuation mark enabling function (module) according to the present invention can bring a convenient and reliable punctuation mark input method to users.
While several aspects of the present invention have been described in detail, it will be apparent to those skilled in the art that various changes, substitutions of equivalents, modifications, and the like can be made without departing from the spirit and principles of the invention.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. All or some of the steps and/or modules in the various embodiments described above may be combined with steps and/or modules in other embodiments.
The Chinese character input method and device based on the text box according to the invention can also be applied to wider fields, such as: mobile terminal devices, smart phones, personal digital terminals, and various electronic devices.
The application device/program including the text box-based Chinese character input method/apparatus according to the present invention may be based on a Windows system, a Web-based platform (browser format), or various mobile communication terminal platforms (e.g., apple Operating System (OS), Android operating system), etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A Chinese character input method based on a text box is characterized by comprising the following steps:
detecting letters input in a text input box;
searching corresponding Chinese characters, phrases and/or phrases through a Chinese character coding code table;
popping up a Chinese character candidate dialog box; according to the selection of the user, the corresponding candidate items are sent into the text input box;
the content of the Chinese character coding code table is updatable; and/or the Chinese character coding code table is determined according to two or more coding methods.
2. The text box-based Chinese character input method of claim 1, further comprising the steps of:
transmitting relevant Chinese characters, phrases and/or phrases from the main program module, the external program module or the application program to the input method module;
and the input method module receives the related Chinese characters, phrases and/or phrases and codes the Chinese characters, phrases and/or phrases according to the input method coding rules to form a code table so that a user can call the code table when inputting the Chinese characters.
3. The text box-based Chinese character input method of claim 1 or 2, wherein in the case where there is a candidate in the candidate display item dialog box, a selective operation is performed between sending the Chinese character candidate and determining the input letter or letter string as the current content to be input by the user pressing a different key.
4. The text box-based Chinese character input method of claim 1 or 2, wherein when an input letter string has no Chinese character candidates, the input letter string is determined as the current input content; or, when the input letter string has no Chinese character candidate, if a letter is detected to be input again, determining a plurality of the input letters as the current input content.
5. The method of claim 2, wherein the related chinese characters, phrases and/or phrases are provided as candidates for priority.
6. A text box-based chinese character input apparatus, comprising:
the detection module is used for detecting the letters or letter strings input in the text box and transmitting the detected letters or letter strings to the code table lookup module;
the code table searching module is used for searching corresponding Chinese characters, phrases and/or phrases through a Chinese character coding code table;
the candidate item dialog box display module is used for filling the candidate item dialog box according to the Chinese character candidate item information transmitted by the code table lookup module; and
the sending module is used for sending the corresponding Chinese character candidate items into the text box according to the selection of the user;
wherein, the content of the Chinese character coding code table is updatable; and/or the Chinese character coding code table is determined according to two or more coding methods.
7. The apparatus of claim 6, further comprising a code table generating module for receiving external Chinese characters, Chinese phrases and/or phrases related to the contents currently input by the user, and encoding the related Chinese characters, Chinese phrases and/or phrases according to the encoding rules of the input method to form one or more code tables.
8. The text box-based Chinese character input apparatus of claim 6 or 7, wherein in the case where there is a candidate in the candidate display item dialog box, a selective operation is performed between sending the Chinese character candidate and determining the input letter or letter string as the current content to be input by the user pressing a different key.
9. The text-box-based Chinese character input apparatus of claim 6 or 7, wherein when an input letter string has no Chinese character candidates, the input letter string is determined as the current input content; or, when the input letter string has no Chinese character candidate, if a letter is detected to be input again, determining a plurality of the input letters as the current input content.
10. The apparatus of claim 7, wherein the related chinese characters, phrases and/or phrases encoded by the code table generating module are provided as candidates for priority.
11. An application device, comprising: main program module, text input box and input method module, its characterized in that: the input method module is a Chinese character input device based on a text box according to claims 6 to 10; or the input method module uses the Chinese character input method based on the text box according to any one of claims 1 to 5.
12. The application device according to claim 11, characterized in that: the main program module transmits Chinese characters, phrases and/or phrases related to the current operation and processing to the input method module.
13. A computer translation apparatus comprising: translation module, text input box and input method module, its characterized in that: the input method module is a Chinese character input device based on a text box according to any one of claims 6 to 10; or the input method module uses the Chinese character input method based on the text box according to any one of claims 1 to 5.
14. The computer translation apparatus of claim 13, wherein: the translation module transmits Chinese characters, phrases or phrases related to the current translated article, paragraph or sentence to the input method module.
15. A computer writing assistance device, comprising: writing auxiliary module, text input box and input method module, its characterized in that: the input method module is a Chinese character input device based on a text box according to claims 6 to 10; or the input method module uses the Chinese character input method based on the text box according to any one of claims 1 to 5.
16. The computer writing assistance device of claim 15, wherein: the writing auxiliary module transmits Chinese characters, phrases or phrases related to the current written article, paragraph or sentence to the input method module.
CN201510026236.7A 2015-01-20 2015-01-20 Chinese character input method and device based on text box Active CN105892710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510026236.7A CN105892710B (en) 2015-01-20 2015-01-20 Chinese character input method and device based on text box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510026236.7A CN105892710B (en) 2015-01-20 2015-01-20 Chinese character input method and device based on text box

Publications (2)

Publication Number Publication Date
CN105892710A CN105892710A (en) 2016-08-24
CN105892710B true CN105892710B (en) 2021-10-15

Family

ID=56999057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510026236.7A Active CN105892710B (en) 2015-01-20 2015-01-20 Chinese character input method and device based on text box

Country Status (1)

Country Link
CN (1) CN105892710B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765888A (en) * 2017-10-10 2018-03-06 杭州来布科技有限公司 A kind of Chinese character input method and terminal
CN110244857A (en) * 2019-05-24 2019-09-17 阿里巴巴集团控股有限公司 A kind of Chinese character string statistical method and system based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920827A (en) * 2006-08-23 2007-02-28 北京搜狗科技发展有限公司 Method for obtaining newly encoded character string, input method system and word stock generation device
CN101071397A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Character output method and device
CN101299210A (en) * 2008-06-30 2008-11-05 宇龙计算机通信科技(深圳)有限公司 Input method system and terminal equipment using the same
CN101699385A (en) * 2008-12-31 2010-04-28 北京搜狗科技发展有限公司 Display method and device of input-method interface
CN101763208A (en) * 2008-12-31 2010-06-30 北京搜狗科技发展有限公司 Method and device for displaying interface of input method
CN101770325A (en) * 2008-12-31 2010-07-07 北京搜狗科技发展有限公司 Input method interface display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920827A (en) * 2006-08-23 2007-02-28 北京搜狗科技发展有限公司 Method for obtaining newly encoded character string, input method system and word stock generation device
CN101071397A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Character output method and device
CN101299210A (en) * 2008-06-30 2008-11-05 宇龙计算机通信科技(深圳)有限公司 Input method system and terminal equipment using the same
CN101699385A (en) * 2008-12-31 2010-04-28 北京搜狗科技发展有限公司 Display method and device of input-method interface
CN101763208A (en) * 2008-12-31 2010-06-30 北京搜狗科技发展有限公司 Method and device for displaying interface of input method
CN101770325A (en) * 2008-12-31 2010-07-07 北京搜狗科技发展有限公司 Input method interface display method and device

Also Published As

Publication number Publication date
CN105892710A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US10210154B2 (en) Input method editor having a secondary language mode
CN102449579B (en) All-in-one chinese character input method
US9009030B2 (en) Method and system for facilitating text input
US7774193B2 (en) Proofing of word collocation errors based on a comparison with collocations in a corpus
US20020126097A1 (en) Alphanumeric data entry method and apparatus using reduced keyboard and context related dictionaries
KR20130018205A (en) Method for disambiguating multiple readings in language conversion
US10664658B2 (en) Abbreviated handwritten entry translation
EP3029567B1 (en) Method and device for updating input method system, computer storage medium, and device
US20190034080A1 (en) Automatic translations by a keyboard
US20140380169A1 (en) Language input method editor to disambiguate ambiguous phrases via diacriticization
WO2010020087A1 (en) Automatic word translation during text input
US9977766B2 (en) Keyboard input corresponding to multiple languages
JP2023012522A (en) Method and device for training document reading model based on cross modal information
CN111860000A (en) Text translation editing method and device, electronic equipment and storage medium
US20190303437A1 (en) Status reporting with natural language processing risk assessment
JPWO2018198806A1 (en) Translation equipment
CN105892710B (en) Chinese character input method and device based on text box
CN113743102A (en) Method and device for recognizing characters and electronic equipment
CN104076945A (en) Device and method for displaying input keyboard in terminal
CN100390783C (en) Method and system for case conversion
JP2019087233A (en) Information processing device, information processing method, and information processing program
KR101995741B1 (en) A gesture based system for translation and transliteration of input text and a method thereof
US20240005103A1 (en) Method and user apparatus for generating and applying translation marker
JP2008217770A (en) Language data display system, language data display method, and language data display program
US20040127236A1 (en) Method and apparatus for text entry for electronic messaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant