CN107229349B - Character display method and device of input method - Google Patents

Character display method and device of input method Download PDF

Info

Publication number
CN107229349B
CN107229349B CN201610178510.7A CN201610178510A CN107229349B CN 107229349 B CN107229349 B CN 107229349B CN 201610178510 A CN201610178510 A CN 201610178510A CN 107229349 B CN107229349 B CN 107229349B
Authority
CN
China
Prior art keywords
format
candidate
characters
determining
category
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
CN201610178510.7A
Other languages
Chinese (zh)
Other versions
CN107229349A (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.)
Banma Zhixing Network Hongkong Co Ltd
Original Assignee
Banma Zhixing Network Hongkong Co Ltd
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 Banma Zhixing Network Hongkong Co Ltd filed Critical Banma Zhixing Network Hongkong Co Ltd
Priority to CN201610178510.7A priority Critical patent/CN107229349B/en
Publication of CN107229349A publication Critical patent/CN107229349A/en
Application granted granted Critical
Publication of CN107229349B publication Critical patent/CN107229349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Abstract

The embodiment of the application provides a character display method and a device of an input method, and the method comprises the following steps: receiving a coded character string input by a user; determining candidate characters corresponding to the coded character strings; determining a format corresponding to the candidate characters according to a preset corresponding relation between the characters and the format; and displaying the candidate characters in the corresponding format. By adopting the scheme in the application, the user can input the coded character string corresponding to the characters, and then the candidate characters with the corresponding format can be obtained, so that the method is convenient and quick.

Description

Character display method and device of input method
Technical Field
The present application relates to input method technologies, and in particular, to a method and an apparatus for displaying characters of an input method.
Background
In the process of inputting characters by a user, the input of characters with fixed formats such as famous languages, poems, lyrics, book names, trade names, journal names and the like is involved.
In the prior art, in order to input the text with the fixed format, a user usually needs to input the related text, and then set the corresponding format to indicate the source of the text.
For example, when inputting a reference-type character such as a noun, a poem, a lyric, etc., the user generally inputs by: inputting a specific symbol in front of the reference character, for example, adopting a left quotation mark to represent the beginning of the reference character, then inputting a coded character string to input characters in an output area, and after the characters are input, then inputting a corresponding specific symbol, for example, adopting a right quotation mark to represent the end of the input of the reference character; or, the user inputs the corresponding characters first, then positions the cursor to the front of the characters in the output area, inputs the left quotation mark, then positions the cursor to the back of the characters, and inputs the right quotation mark.
By adopting the input method of the characters with the fixed format in the prior art, a user needs to input related characters at first and then input corresponding format symbols to set the characters into the corresponding format, and the operation steps are complicated.
Disclosure of Invention
The embodiment of the application provides a character display method and device of an input method, which are used for solving the problem that operation steps are complicated when characters with fixed formats are input by the input method in the prior art.
According to an aspect of an embodiment of the present application, there is provided a text display method for an input method, including: receiving a coded character string input by a user; determining candidate characters corresponding to the coded character strings; determining a format corresponding to the candidate characters according to a preset corresponding relation between the characters and the format; and displaying the candidate characters in the corresponding format.
According to another aspect of the embodiments of the present application, there is also provided a text display device for an input method, including: the first receiving module is used for receiving a coded character string input by a user; the candidate character determining module is used for determining candidate characters corresponding to the coded character string; the format determining module is used for determining the format corresponding to the candidate characters according to the preset corresponding relation between the characters and the format; and the display module is used for displaying the candidate characters in the corresponding format.
The character display method of the input method in the embodiment of the application is adopted, the corresponding relation between each character and the format is preset, after the corresponding candidate character is determined according to the coded character string input by the user, the format corresponding to the candidate character is determined according to the corresponding relation, and then the candidate character in the corresponding format is displayed; therefore, the user can input the coded character string corresponding to the characters, and the candidate characters with the corresponding format can be obtained conveniently and quickly.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a text display method of an input method according to a first embodiment of the present application;
FIG. 2 is a flowchart of a text display method of an input method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a text display device of an input method according to a third embodiment of the present application.
Detailed Description
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the process of implementing the present application, the inventor finds that, by using the input method in the prior art, a user needs to input relevant characters first, and then input corresponding format symbols to set the characters into corresponding formats, so that the operation steps are complicated.
In addition, the inventor finds that, by adopting the input method in the prior art, when a user inputs characters with formats through a virtual keyboard of an intelligent terminal, in addition to the steps, when inputting format symbols, the user needs to enter a punctuation mark panel to select corresponding punctuations, if the punctuation marks corresponding to the formats are not commonly used, the user needs to search through page turning and then confirm the punctuations after sequencing in the symbolic panel, so that the operation steps of the input process are more complicated.
In order to solve the above problems, an embodiment of the present application provides a method and an apparatus for displaying characters of an input method, where a correspondence between each character and a format is preset, after a corresponding candidate character is determined according to a coded character string input by a user, a format corresponding to the candidate character is determined according to the correspondence, and then the candidate character in the corresponding format is displayed; therefore, the user can obtain the candidate characters with the corresponding format by inputting the coded character strings corresponding to the characters, the operation is convenient and fast, and the user experience is improved.
The scheme in the embodiment of the application can be applied to various input methods, such as a Chinese input method, an English input method, a Pinyin input method, a Wubi input method, a stroke input method and the like, and can also be applied to input methods of various manufacturers, such as a dog searching input method and a Baidu input method; a fly-to-fly input method, etc.
In the embodiment of the present application, the text in the fixed format may refer to text displayed in a fixed form. That is, the format may refer to a presentation form of the text. Specifically, the presentation form may include a format symbol and a format position corresponding to a text. Specifically, the format symbols may include, for example, "left case name number, right case name number", "left quotation number, right quotation number"
Figure BDA0000950439040000031
Etc. form symbol, latticeThe formula position may include format positions of front and back, etc. For example, the format symbol corresponding to the document is "left book title number and right book title number", and the format position is that the left book title number is in front of the right book title number; the format symbols corresponding to the famous languages, the poems and the lyrics are 'left quotation marks and right quotation marks', the format positions are that the left quotation marks are in front of the format symbols, and the right quotation marks are behind the format symbols; the format symbol corresponding to the trademark is
Figure BDA0000950439040000032
The format positions are the upper rear and the like.
Example one
Fig. 1 is a flowchart of a text display method of an input method according to a first embodiment of the present application.
In the embodiment of the application, the corresponding relation between each character and the format needs to be preset; in specific implementation, the corresponding relationship between each character and the format can be set by classifying the characters in the input method lexicon and then setting the format corresponding to each category.
As shown in fig. 1, a text display method of an input method according to a first embodiment of the present application includes the following steps:
s101, receiving a code character string input by a user;
s102, determining candidate characters corresponding to the code character string;
s103, determining a format corresponding to the candidate characters according to a preset corresponding relation between the characters and the format;
and S104, displaying the candidate characters in the corresponding format.
In a specific implementation, in S101, the code string input by the user may be a pinyin character string, a five-stroke character string, a stroke character string, or other code strings input by the user according to the selected input method.
In a specific implementation, in S102, candidate characters corresponding to the code character string may be determined according to a preset correspondence between the code character string and the characters. Specifically, the preset correspondence between the code character string and the text may be stored in a system lexicon of the input method; in specific implementation, the system word stock of each input method in the prior art can be adopted. For example, if the user uses a pinyin input method, searching words corresponding to pinyin character strings in a system word stock according to the pinyin coded character strings input by the user; if the user uses the five-stroke input method, searching words and the like corresponding to the five-stroke coded character strings in the system word stock according to the five-stroke coded character strings input by the user.
In specific implementation of S103, the category of the candidate characters may be determined according to a preset lexicon; then determining the format corresponding to the category of the candidate characters according to the preset corresponding relation between each category and the format; and determining the format corresponding to the category of the candidate characters as the format corresponding to the candidate characters.
In the first embodiment of S103, the preset thesaurus may be a plurality of classified thesaurus, such as a literature thesaurus, a famous thesaurus, a poetry thesaurus, a lyrics thesaurus, a trademark thesaurus, etc.; commonly used characters of the category are correspondingly stored in each word bank, for example, the names of documents such as 'Shuihu Chuan' are stored in a document word bank; storing a famous language colloquial language such as 'one good Chinese and three sides' in a famous language word bank; storing poems like 'a red apricot leaves the wall' in a poem thesaurus; the trademark name of "Intel" is stored in the trademark word bank; some words may appear in multiple lexicons; the 'moon light before bed' can be stored in the poetry and lyrics word stock at the same time.
Specifically, when the preset word bank is a plurality of classified word banks, the candidate characters may be queried in the plurality of word banks to determine the word bank to which the candidate characters belong; determining the category of a word bank to which the candidate characters belong according to the category of a preset word bank; and determining the category of the word stock to which the word belongs as the category of the candidate characters.
For example, the user inputs the code string as a pinyin code string "sanwanyingchi", and first queries the system lexicon to determine that the corresponding candidate character is "thirty thousand feet"; then, the words are inquired in a plurality of classified word libraries, and the word library that the word "thirty thousand feet" belongs to is determined, so that the category corresponding to the word candidate "thirty thousand feet" is determined to be the word.
In the second specific embodiment of S103, the preset lexicon may be a system lexicon of the input method, in which each character has a preset category label. That is, documents, famous languages, poems, lyrics, book names, trademarks, etc. are distinguished in a label manner; for example, a label of "three sides in good Han can be set as a name; the label of 'one red apricot going out of the wall' is a poem; the label of the Shuihu Chuan is a book name; the label of "intel" is a trademark, etc.; some words may have multiple labels; for example, "bed front bright moonlight" may have two labels of verse and lyrics.
Specifically, when the preset word stock includes a word with a category label, the category label corresponding to the candidate word may be determined according to the candidate word; and determining the category in the category label as the category of the candidate characters.
For example, the user inputs the code string as a pinyin code string "sanwanyingchi", and first queries the system lexicon to determine that the corresponding candidate character is "thirty thousand feet"; then, the category label corresponding to the word "thirty thousand feet" is determined as "lyrics", and therefore, the category corresponding to the candidate word "thirty thousand feet" is determined as "lyrics".
In the third embodiment of S103, a format corresponding to each category of characters may be set in advance. Specifically, for example, the document corresponds to the "input text", the name, the poetry, and the lyrics correspond to the "input text", and the trademark corresponds to the "input text"
Figure BDA0000950439040000052
And the like. More specifically, it is also possible to preset format symbols and format positions corresponding to the respective categories of characters, where the format symbols include, for example, "left case name right case name", "left quotation mark right quotation mark"
Figure BDA0000950439040000051
Etc., including front-back, back-top, etc., format positions. For example, the format symbol corresponding to the document is "left title number right bookName number, format position is front and back; the format symbols corresponding to the famous languages, the poems and the lyrics are left quotation marks and right quotation marks, and the format positions are front and back; the format symbol corresponding to the trademark is
Figure BDA0000950439040000061
The format positions are the upper rear and the like.
In specific implementation, before displaying the candidate text in the corresponding format, the method may further include: determining format symbols and format positions corresponding to the corresponding formats; and adding the format symbol to the format position of the candidate character to generate the candidate character with the corresponding format.
For example, if the input text belongs to a thesaurus of documents or has a document label, a title number ""; if the input characters belong to a poetry thesaurus or have poetry labels, quotation marks are added before and after the input characters.
After generating the candidate characters in the corresponding format, the candidate characters in the corresponding format may be displayed in the candidate area of the input method.
In the first specific implementation manner of S104, candidate characters in a corresponding format may be displayed in the candidate area; if the candidate characters have multiple corresponding formats, the multiple candidate characters with the corresponding formats can be displayed in the candidate area of the input method for the user to select. Specifically, the candidate text with the corresponding format may be replaced with the candidate text with the corresponding format before displaying the candidate text without the format, thereby displaying the candidate text with the corresponding format to the user.
For example, the user inputs that the coded character string is a pinyin coded character string "shuihzhua", and firstly queries a system word stock to determine that the corresponding candidate character is "shuihu zhuan"; then determining that the category label corresponding to the 'Shuihu Chuan' is 'literature', and therefore determining that the category corresponding to the candidate character 'Shuihu Chuan' is 'literature'; then determining that the format symbol corresponding to the document is 'Shuihu', and determining that the candidate characters in the corresponding format are 'Shuihu Chun' before and after the added format position is the input characters; and then replacing the Shuihu transmission with the Shuihu transmission to display the candidate area of the input method for the user to select.
In the second specific implementation manner of S104, the candidate characters without the format and the candidate characters with the corresponding format may be displayed in the candidate area of the input method for the user to select. Specifically, after the candidate text without the format is displayed, the candidate text with the corresponding format may be added to the candidate text without the format and then displayed to the user as a new candidate text.
For example, the user inputs that the coded character string is a pinyin coded character string "shuihzhua", and firstly queries a system word stock to determine that the corresponding candidate character is "shuihu zhuan"; then determining that the category label corresponding to the 'Shuihu Chuan' is 'literature', and therefore determining that the category corresponding to the candidate character 'Shuihu Chuan' is 'literature'; then determining that the format symbol corresponding to the document is 'Shuihu', and determining that the candidate characters in the corresponding format are 'Shuihu Chun' before and after the added format position is the input characters; and then adding the 'Shuihu Chuan' as another candidate character for the user to select after the 'Shuihu Chuan'.
In the third specific implementation manner of S104, the candidate characters in the corresponding format may also be directly displayed in the output area of the input method. Taking 'Shuihu Chun' as an example, the method can be used after determining that the candidate characters with the corresponding format are 'Shuihu Chun'; directly outputting the 'Shuihu Chun' to an output area.
In specific implementation, if there are a plurality of candidate characters corresponding to the encoded character string input by the user, in order to reduce the time for subsequently querying the word stock and determining the corresponding format, and improve the output efficiency, before determining the format corresponding to the candidate character according to the preset corresponding relationship between each character and the format, the method may further include: receiving candidate characters confirmed by a user in a plurality of candidate characters; then determining the format corresponding to the confirmed candidate characters according to the preset corresponding relation between each character and the format; when the candidate characters in the corresponding format are displayed, the confirmed candidate characters in the corresponding format can be displayed in the candidate area; or displaying the confirmed candidate characters and the confirmed candidate characters in the corresponding formats in the candidate area; or displaying the confirmed candidate characters in the corresponding format in an output area.
For example, the user inputs the code string as a pinyin code string "taobao", and first queries the system lexicon to determine that the corresponding candidate characters are "pan bao", "peach bao", and "package"; then providing the 'Taobao', 'Taobao' and 'set package' for the user to confirm, confirming that the 'Taobao' is selected by the user, and then determining that the category label corresponding to the 'Taobao' is the 'trademark', so that the category corresponding to the candidate character 'Taobao' is determined to be the 'trademark'; then determining the corresponding format symbol of the trademark as
Figure BDA0000950439040000071
If the added format position is the upper part behind the input character, determining the candidate character with the corresponding format as
Figure BDA0000950439040000072
Then can be combined with
Figure BDA0000950439040000073
Directly outputting to an output area for displaying; or displayed in the candidate area
Figure BDA0000950439040000074
Or display "Taobao" in the candidate area and
Figure BDA0000950439040000075
for selection by the user.
The character display method of the input method in the embodiment of the application is adopted, the corresponding relation between each character and the format is preset, after the corresponding candidate character is determined according to the coded character string input by the user, the format corresponding to the candidate character is determined according to the corresponding relation, and then the candidate character in the corresponding format is displayed; therefore, the user can obtain the candidate characters with the corresponding format by inputting the coded character strings corresponding to the characters, the operation is convenient and fast, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a text display method of an input method according to a second embodiment of the present application.
In the embodiment of the application, the corresponding relation between each character and the format needs to be preset; in specific implementation, the corresponding relationship between each character and the format can be set by classifying the characters in the input method lexicon and then setting the format corresponding to each category.
As shown in fig. 2, the text display method of the input method according to the second embodiment of the present application includes the following steps:
s201, receiving a code character string input by a user;
in specific implementation, the encoded character string input by the user may be a pinyin character string, a five-stroke character string, a stroke character string, or other encoded character strings input by the user according to the selected input method.
S202, determining a first candidate character corresponding to the code character string;
in specific implementation, a first candidate character corresponding to a code character string can be determined according to a preset corresponding relation between the code character string and a character; specifically, the preset correspondence between the code character string and the text may be stored in a system lexicon of the input method; in specific implementation, the system word stock of each input method in the prior art can be adopted. Specifically, the word corresponding to the encoding character string may be searched in the system lexicon as the first candidate word.
S203, judging whether a plurality of corresponding first candidate characters exist, if so, executing S204; if not, executing S205;
in a specific implementation, there may be multiple first candidate words corresponding to the same encoding string, for example, "zhongxin" may correspond to "zhongxing", "neutral", "medium", and the like.
S204, providing the plurality of first candidate characters for the user, and receiving a second candidate character confirmed by the user in the plurality of first candidate characters; and executing S206;
if the corresponding first candidate characters are multiple, the corresponding multiple first candidate characters can be displayed in the candidate area for the user to select. In order to facilitate the selection of the user, corresponding numbers, 1, 2, 3 and the like, can be displayed at predetermined positions, such as the upper left corner, of the plurality of first candidate characters provided for the user to select by using the number keys; in a specific implementation, the plurality of first candidate words provided may be further sorted by a predetermined algorithm, for example, sorted according to the output times of the current user, or sorted according to the output times of all users; the user may select the identified second candidate word by clicking, touching, or otherwise using a numeric key.
For example, still taking "zhongxin" as an example, the user is provided with "zhongxin", "neutral", and "medium" to select, and the selection is confirmed to be "zhongxin" by touching the corresponding position.
S205, using the first candidate character as a second candidate character;
if there is only one corresponding first candidate word, the first candidate word can be directly used as the second candidate word.
For example, if the user inputs "alibaba", assuming that the corresponding first candidate word only has "Alibaba", the first candidate word is directly used as the second candidate word.
In a specific implementation, the first candidate character may also be displayed in a candidate area for a user to confirm, and the first candidate character is used as a second candidate character after the user confirms, which is not limited in this application.
S206, judging whether the second candidate characters are in a specific category or not; if yes, executing S207, if no, executing S213;
in specific implementation, whether the second candidate character is a specific category may be determined according to a category lexicon to which the second candidate character belongs, or whether the second candidate character is a specific category may be determined according to a category label corresponding to the second candidate character; for the setting of the category lexicon and the category label, reference may be made to the related description in the first embodiment of the present application, which is not described herein again.
If the second candidate word belongs to a category lexicon or has a category label, the second candidate word is indicated to belong to a corresponding category. In specific implementation, the specific implementation manner of determining whether the second candidate word belongs to a certain category lexicon or has a category label may also refer to the related description in the first embodiment of the present application, and details are not described here again.
If the second candidate word does not belong to a category thesaurus nor has a category label, it indicates that the second candidate word does not belong to a particular category.
S207, determining a format corresponding to the second candidate character according to the preset corresponding relation between each character and the format;
in specific implementation, formats corresponding to the characters of each category may be preset. For example, the document is set to "input text", the name, the poetry and the lyrics are set to "input text", and the trademark is set to "trademark
Figure BDA0000950439040000101
And the like.
More specifically, it is also possible to preset formatting symbols and formatting positions corresponding to the respective categories of characters, where the formatting symbols include, for example, "" "") "
Figure BDA0000950439040000102
Etc., including front-back, back-top, etc., format positions. For example, the document corresponds to a format symbol of "", and the format position is front and back; the corresponding format symbols of the famous languages, the poems and the lyrics are "" and the format positions are front and back; the format symbol corresponding to the trademark is
Figure BDA0000950439040000103
The format positions are the upper rear and the like.
In specific implementation, the corresponding relationship between each character and the format may be stored in the input method thesaurus in the form of a list, or may be stored in a related directory, and after the category of the character is determined, the list may be queried according to the category to obtain the corresponding format, or the corresponding format symbol and format position.
S208, generating a second candidate character with a corresponding format according to the corresponding format;
in a specific implementation, the second candidate text with the corresponding format may be generated according to the determined corresponding format. Specifically, a format symbol may be added at a format position of the second candidate word to generate the second candidate word having a corresponding format.
S209, judging whether the formats corresponding to the second candidate characters are various, if so, executing S210, and if not, executing S211;
in specific implementation, for some characters, multiple formats may be available at the same time, for example, for "water business transfer", the characters belong to a document word stock and a name word stock at the same time, and correspond to two formats of "water business transfer" and "water business transfer".
In specific implementation, there is no strict timing relationship between steps 208 and 209, and step 208 may be executed first, then step 209 is executed, and then step S210 or step S211 is executed according to the determination result, or step 209 may be executed first, and step 208 and step S210 or step 208 and step S211 are executed according to the determination result, which is not limited in this application.
S210, displaying the second candidate characters and the second candidate characters with the corresponding formats in the candidate area.
In a specific implementation, the second candidate text and the second candidate text with the corresponding format may be displayed in the candidate area for the user to select, for example, "shuihu pass" and "shuihu pass" are simultaneously displayed in the candidate area as three candidate words for the user to select.
For the convenience of selection of the user, corresponding numbers, 1, 2, 3 and the like, can be displayed at the provided second candidate characters and the preset positions of the second candidate characters with corresponding formats, for example, the upper left corner, so that the user can select the second candidate characters by using the number keys; in a specific implementation, the candidate words provided may be sorted by a predetermined algorithm, for example, according to the output times of the current user, or according to the output times of all users.
In a specific implementation, only the second candidate text with the corresponding format may be displayed in the candidate region. The specific display manner is consistent with the above-mentioned implementation manner when displaying the second candidate text and the second candidate text with the corresponding format, and is not described herein again.
S211, receiving the second candidate characters confirmed by the user or the second candidate characters with the corresponding format, and outputting the second candidate characters to an output area.
The user may select the identified second candidate word or the second candidate word having the corresponding format by clicking, touching, or a number key.
And after the user selects the second candidate characters or the second candidate characters with the corresponding formats, outputting the corresponding second candidate characters or the second candidate characters with the corresponding formats to the output area.
For example, if the user selects the watery river biography, the watery river biography is output to an output area, and the output area can comprise an output area of an input method such as a short message information box, an instant chat input box, a word and the like.
S212, the second candidate characters with the corresponding format are used for replacing the second candidate characters and are displayed in an output area.
In specific implementation, if only one format is corresponding to the second candidate text, the second candidate text with the corresponding format can be directly output to the output area.
In a specific implementation, if there is only one format corresponding to the second candidate text, the second candidate text with the corresponding format may also be displayed in the candidate area, and displayed to the output area after the user confirms the second candidate text.
S213, displaying the second candidate character in the output area.
In specific implementation, for the characters not belonging to the specific category, the second candidate characters may be directly displayed in the candidate area, or the second candidate characters may be directly output to the output area.
For example, the second candidate character corresponding to "nijinianwanshanghaihijiachifanma" input by the user is "do you go home at night to eat, and if the character is inquired to be neither in a certain category thesaurus nor in a category label, the character is indicated to be not in a specific category; it can be directly output to the output area in the same manner as in the related art.
The character display method of the input method in the embodiment of the application is adopted, the corresponding relation between each character and the format is preset, after the corresponding candidate character is determined according to the coded character string input by the user, the format corresponding to the candidate character is determined according to the corresponding relation, and then the candidate character in the corresponding format is displayed; therefore, the user can obtain the candidate characters with the corresponding format by inputting the coded character strings corresponding to the characters, the operation is convenient and fast, and the user experience is improved.
Based on the same inventive concept, the embodiment of the present application further provides a text display device for an input method, and as the principle of the device for solving the problem is similar to the text display method for an input method provided in the first or second embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a text display device of an input method according to a third embodiment of the present application.
As shown in fig. 3, a text display device 300 according to an input method according to a third embodiment of the present application includes: a first receiving module 301, configured to receive an encoded character string input by a user; a candidate character determining module 302, configured to determine a candidate character corresponding to the encoded character string; a format determining module 303, configured to determine a format corresponding to the candidate text according to a preset correspondence between the text and the format; the display module 304 is configured to display the candidate text in the corresponding format.
In a specific implementation, the format determining module may specifically include: the category determining submodule is used for determining the category of the candidate characters according to a preset word bank; the first format determining submodule is used for determining a format corresponding to the category of the candidate characters according to the preset corresponding relation between the category and the format; and the second format determining submodule is used for determining the format corresponding to the category of the candidate character as the format corresponding to the candidate character.
In specific implementation, the word stock is multiple, and the category determination submodule may be specifically configured to query the candidate characters in multiple word stocks to determine a word stock to which the candidate characters belong; determining the category of a word bank to which the candidate characters belong according to the category of a preset word bank; and determining the category of the word stock to which the word belongs as the category of the candidate characters.
In specific implementation, the characters in the word stock have preset category labels; the category determining sub-module is specifically configured to determine, according to the candidate word, a category label corresponding to the candidate word; and determining the category in the category label as the category of the candidate characters.
In specific implementation, the text display device according to the input method shown in the third embodiment of the present application may further include: the symbol and position determining module is used for determining the format symbol and the format position corresponding to the corresponding format; and the adding module is used for adding the format symbol to the format position of the candidate character so as to generate the candidate character in a corresponding format.
In specific implementation, the display module may be specifically configured to display the candidate text in the corresponding format in the candidate region; or displaying the candidate characters and the candidate characters in the corresponding format in the candidate area; or displaying the candidate characters in the corresponding format in an output area.
In specific implementation, the device may further include: the second receiving module is used for receiving candidate characters confirmed by a user in the candidate characters; and the format determining module is specifically used for determining the format corresponding to the confirmed candidate character according to the preset corresponding relation between the character and the format.
In specific implementation, the display module may be specifically configured to display the confirmed candidate characters in the corresponding format in the candidate area; or displaying the confirmed candidate characters and the confirmed candidate characters in the corresponding formats in the candidate area; or displaying the confirmed candidate characters in the corresponding format in an output area.
The character display device adopting the input method in the embodiment of the application presets the corresponding relation between each character and the format, determines the format corresponding to the candidate character according to the corresponding relation after determining the corresponding candidate character according to the coded character string input by a user, and then displays the candidate character in the corresponding format; therefore, the user can obtain the candidate characters with the corresponding format by inputting the coded character strings corresponding to the characters, the operation is convenient and fast, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (14)

1. A character display method of an input method is characterized by comprising the following steps:
receiving a coded character string input by a user;
determining candidate characters corresponding to the coding character strings;
determining a format corresponding to the candidate characters according to a preset corresponding relation between the characters and the format; the format refers to a display form of characters; the display form comprises format symbols and format positions corresponding to the characters;
displaying the candidate characters in the corresponding format; the candidate words of the corresponding format are generated by adding the format symbols to format positions of the candidate words;
determining a format corresponding to the candidate characters according to a preset corresponding relation between the characters and the format, specifically comprising:
determining the category of the candidate characters according to a preset word bank;
determining a format corresponding to the category of the candidate characters according to a preset corresponding relation between the category and the format;
and determining the format corresponding to the category of the candidate characters as the format corresponding to the candidate characters.
2. The method according to claim 1, wherein the word stock is plural, and the determining the category of the candidate word according to a preset word stock specifically includes:
querying the candidate characters in a plurality of word banks to determine the word bank to which the candidate characters belong;
determining the category of a word bank to which the candidate characters belong according to the category of a preset word bank;
and determining the category of the word stock to which the word belongs as the category of the candidate characters.
3. The method of claim 1, wherein the words in the thesaurus have a preset category label; determining the category of the candidate characters according to a preset word bank, which specifically comprises the following steps:
determining a category label corresponding to the candidate characters according to the candidate characters;
and determining the category in the category label as the category of the candidate characters.
4. The method of claim 1, further comprising, prior to displaying the candidate text in the corresponding format:
determining format symbols and format positions corresponding to the corresponding formats;
and adding the format symbol to the format position of the candidate character to generate the candidate character in a corresponding format.
5. The method of claim 1, wherein displaying the candidate text in the corresponding format specifically comprises:
displaying the candidate characters in the corresponding format in a candidate area; or
Displaying the candidate characters and the candidate characters in the corresponding formats in a candidate area; or
And displaying the candidate characters in the corresponding format in an output area.
6. The method according to claim 1, wherein there are a plurality of candidate words corresponding to the encoded character string, and before determining a format corresponding to each candidate word according to a preset correspondence between each word and the format, the method further comprises:
receiving candidate characters confirmed by a user in the candidate characters;
determining the format corresponding to the candidate characters according to the preset corresponding relation between the characters and the format, specifically comprising:
and determining the format corresponding to the confirmed candidate characters according to the preset corresponding relation between the characters and the format.
7. The method of claim 6, wherein displaying the candidate text in the corresponding format specifically comprises:
displaying confirmed candidate characters in corresponding formats in the candidate areas; or
Displaying the confirmed candidate characters and the confirmed candidate characters in the corresponding formats in the candidate area; or
And displaying the confirmed candidate characters in the corresponding format in an output area.
8. A character display device of an input method, comprising:
the first receiving module is used for receiving a coded character string input by a user;
the candidate character determining module is used for determining candidate characters corresponding to the coding character string;
the format determining module is used for determining the format corresponding to the candidate characters according to the preset corresponding relation between the characters and the format; the format refers to a display form of characters; the display form comprises format symbols and format positions corresponding to the characters;
the display module is used for displaying the candidate characters in the corresponding format; the candidate words of the corresponding format are generated by adding the format symbols to format positions of the candidate words;
the format determining module specifically comprises:
the category determining submodule is used for determining the category of the candidate characters according to a preset word bank;
the first format determining submodule is used for determining a format corresponding to the category of the candidate characters according to the preset corresponding relation between the category and the format;
and the second format determining submodule is used for determining the format corresponding to the category of the candidate characters as the format corresponding to the candidate characters.
9. The apparatus according to claim 8, wherein the lexicon is plural, and the category determining sub-module is specifically configured to query the candidate words in the plural lexicons to determine a lexicon to which the candidate word belongs; determining the category of a word bank to which the candidate characters belong according to the category of a preset word bank; and determining the category of the word stock to which the word belongs as the category of the candidate characters.
10. The apparatus of claim 8, wherein the words in the thesaurus have a preset category label; the category determining submodule is specifically used for determining a category label corresponding to the candidate character according to the candidate character; and determining the category in the category label as the category of the candidate characters.
11. The apparatus of claim 8, further comprising:
the symbol and position determining module is used for determining the format symbol and the format position corresponding to the corresponding format;
and the adding module is used for adding the format symbol to the format position of the candidate character so as to generate the candidate character in a corresponding format.
12. The apparatus according to claim 8, wherein the display module is specifically configured to display the candidate text in the corresponding format in a candidate area; or displaying the candidate characters and the candidate characters in the corresponding formats in a candidate area; or displaying the candidate characters in the corresponding format in an output area.
13. The apparatus of claim 8, wherein the encoded string corresponds to a plurality of candidate words, the apparatus further comprising:
the second receiving module is used for receiving candidate characters confirmed by a user in the candidate characters;
and the format determining module is specifically used for determining the format corresponding to the confirmed candidate characters according to the preset corresponding relation between the characters and the format.
14. The apparatus according to claim 13, wherein the display module is specifically configured to display the confirmed candidate text in the corresponding format in the candidate area; or displaying the confirmed candidate characters and the confirmed candidate characters in the corresponding formats in the candidate area; or displaying the confirmed candidate characters in the corresponding format in an output area.
CN201610178510.7A 2016-03-25 2016-03-25 Character display method and device of input method Active CN107229349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610178510.7A CN107229349B (en) 2016-03-25 2016-03-25 Character display method and device of input method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610178510.7A CN107229349B (en) 2016-03-25 2016-03-25 Character display method and device of input method

Publications (2)

Publication Number Publication Date
CN107229349A CN107229349A (en) 2017-10-03
CN107229349B true CN107229349B (en) 2021-04-13

Family

ID=59932517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610178510.7A Active CN107229349B (en) 2016-03-25 2016-03-25 Character display method and device of input method

Country Status (1)

Country Link
CN (1) CN107229349B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244885B (en) * 2019-05-08 2022-02-15 北京百度网讯科技有限公司 Input method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655846A (en) * 2008-08-21 2010-02-24 联想移动通信科技有限公司 Punctuation correlation method and punctuation correlation device of Chinese input method
CN1920754B (en) * 2006-09-05 2010-06-23 北京搜狗科技发展有限公司 Method and system for inputting artistic character/image into application program
CN102314441A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for user to input individualized primitive data and equipment and system
CN102445994A (en) * 2010-09-30 2012-05-09 北京搜狗科技发展有限公司 Intelligence input method and system thereof
CN103777775A (en) * 2014-01-16 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Display processing device of input method and display processing method of input method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236537A (en) * 2001-02-09 2002-08-23 Canon Inc Data input device and method, program, and storage medium
CN101706690A (en) * 2009-12-07 2010-05-12 北京搜狗科技发展有限公司 Adaptive input method and adaptive input system
CN102819325A (en) * 2012-07-21 2012-12-12 上海量明科技发展有限公司 Input method and system for obtaining a plurality of character presenting effects
CN105425977A (en) * 2015-06-11 2016-03-23 周连惠 Special symbol input method and input method system
CN105094359A (en) * 2015-06-11 2015-11-25 周连惠 Digital sequence number input method
CN105389021B (en) * 2015-11-09 2017-06-20 百度在线网络技术(北京)有限公司 The display methods and display device of input frame information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920754B (en) * 2006-09-05 2010-06-23 北京搜狗科技发展有限公司 Method and system for inputting artistic character/image into application program
CN101655846A (en) * 2008-08-21 2010-02-24 联想移动通信科技有限公司 Punctuation correlation method and punctuation correlation device of Chinese input method
CN102314441A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for user to input individualized primitive data and equipment and system
CN102445994A (en) * 2010-09-30 2012-05-09 北京搜狗科技发展有限公司 Intelligence input method and system thereof
CN103777775A (en) * 2014-01-16 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Display processing device of input method and display processing method of input method

Also Published As

Publication number Publication date
CN107229349A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN102449579B (en) All-in-one chinese character input method
CN101779200B (en) Dictionary word and phrase determination
JP5802292B2 (en) Shared language model
CN110770735B (en) Transcoding of documents with embedded mathematical expressions
CN103026318A (en) Input method editor
KR20070028664A (en) Method and system for name matching and computer readable medium recording the method
JP2007257644A (en) Program, method and device for acquiring translation word based on translation word candidate character string prediction
JP4502615B2 (en) Similar sentence search device, similar sentence search method, and program
JPS62245367A (en) Document processor
KR20080085165A (en) Multi-word word wheeling
CN114297143A (en) File searching method, file displaying device and mobile terminal
KR20130017247A (en) Method and apparatus for providing search service presenting class of search target interactively
JPS6361317A (en) Character code generating device
CN107229349B (en) Character display method and device of input method
CN103530380A (en) Vertical search device and method
WO2012015021A1 (en) Stroke and structure input method and system
TW201232386A (en) Electronic reader and method for displaying interface of input method
CN103488616A (en) Method and device for processing embedded fonts
JP5803481B2 (en) Information processing apparatus and information processing program
CN108536685B (en) Information processing apparatus
JP5326781B2 (en) Extraction rule creation system, extraction rule creation method, and extraction rule creation program
JP6707410B2 (en) Document search device, document search method, and computer program
JP2009048351A (en) Information retrieval device, information retrieval method and information retrieval program
CN105718427B (en) Information processing method and electronic equipment
CN111274352B (en) Method and equipment for marking characteristic words in tool book

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201216

Address after: Room 603, 6 / F, Roche Plaza, 788 Cheung Sha Wan Road, Kowloon, China

Applicant after: Zebra smart travel network (Hong Kong) Limited

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant