A method and device for customizing input method candidates
By implementing custom word input and management of editing mode in the input method candidate interface, the problem of cumbersome interface switching is solved, and the convenience and efficiency of user operations are improved.
Patent Information
- Application Number
- CN201810186618.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-03-07
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2038-03-07
AI Technical Summary
The existing input methods require frequent switching of interfaces when customizing phrases, resulting in cumbersome operations and a lot of resource consumption.
Display candidate words in the candidate interface of the input method, and enter the editing mode by detecting the user's specified operations, receive custom word input, and display custom words in the candidate interface after exiting the editing mode, which supports adding, canceling and editing. Operation, simplifies the management of custom phrases.
Users can add and edit custom words without manually switching the interface, simplifying the operation process, reducing resource consumption, and improving input efficiency.
Smart Images

Figure CN110244859B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of input method technology, and in particular to a method for customizing input method candidate items, a device for customizing input method candidate items, a system for customizing input method candidate items, and one or more machine-readable media. Background Art
[0002] Most current input methods support users to define the mapping of input codes to Chinese character strings, so that user-defined phrase candidates can be displayed during normal character input, thereby improving user input efficiency and input experience. When users use input methods to input, if they want to use the custom phrase function of the input method, they usually need to switch from the input interface to a separate operation interface to add, delete, modify, etc. custom phrases, and then switch back to the input interface to view the editing effect of the custom phrases. This method makes switching between the two interfaces cumbersome and consumes more resources. Summary of the invention
[0003] In view of the above problems, in order to solve the problem of switching interfaces back and forth when customizing phrases, cumbersome operations, and high resource consumption, an embodiment of the present invention proposes a method for customizing input method candidates and a corresponding device for customizing input method candidates, a system for customizing input method candidates, and one or more machine-readable media.
[0004] In order to solve the above problem, an embodiment of the present invention discloses a method for customizing input method candidates, the method comprising:
[0005] Displaying candidate words corresponding to the input information in the candidate interface of the input method;
[0006] When a first designated operation triggered by a user on the candidate interface is detected, entering an editing mode;
[0007] Determine the editing area according to the first specified operation;
[0008] receiving a user-defined word inputted by a user in the editing area and corresponding to the input information;
[0009] When detecting a second designated operation triggered by the user on the candidate interface, exiting the editing mode;
[0010] The custom word is displayed in the candidate interface.
[0011] Optionally, after displaying the custom word in the candidate position of the candidate interface, the method further includes:
[0012] When it is detected that the user clicks the custom word, an option list is displayed, wherein the option list includes an add option, a cancel option, and an edit option;
[0013] When it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database;
[0014] When it is detected that the user selects the cancel option, the adding of the custom word is canceled;
[0015] When it is detected that the user selects the editing option, the editing mode is re-entered.
[0016] Optionally, displaying the custom word in the candidate interface includes:
[0017] Adding a custom mark to the custom word;
[0018] The custom mark is displayed in a designated area of the custom word.
[0019] Optionally, the method further comprises:
[0020] Detecting a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0021] When the third designated operation is the position adjustment operation, adjusting the display position of the custom word in the candidate interface;
[0022] When the third designated operation is the deletion operation, the custom word is deleted in the candidate interface, and the mapping relationship between the custom word and the input information is deleted.
[0023] Optionally, determining the editing area according to the first specified operation includes:
[0024] Obtaining ranking information of all candidate words corresponding to the input information;
[0025] According to the first specified operation, determining a candidate position of the custom word to be input displayed in the candidate interface;
[0026] According to the candidate position, updating the sorting information;
[0027] The candidate words are displayed according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0028] Optionally, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0029] The embodiment of the present invention further discloses a device for customizing input method candidate items, the device comprising:
[0030] A candidate word display module, used to display candidate words corresponding to the input information in the candidate interface of the input method;
[0031] A first designated operation detection module, used for entering the editing mode when a first designated operation triggered by a user on the candidate interface is detected;
[0032] An editing area determining module, used for determining an editing area according to the first specified operation;
[0033] A custom word receiving module, used for receiving a custom word inputted by a user in the editing area and corresponding to the input information;
[0034] A second designated operation detection module, configured to exit the editing mode when a second designated operation triggered by a user on the candidate interface is detected;
[0035] A custom word display module is used to display the custom word in the candidate interface.
[0036] Optionally, the device further comprises:
[0037] An option display module, used for displaying an option list when detecting that a user clicks on the custom word, the option list including an add option, a cancel option and an edit option;
[0038] A mapping relationship generating module, configured to generate a mapping relationship between the user-defined word and the input information when detecting that the user selects the adding option, and store the mapping relationship in a preset word database;
[0039] A cancel module, configured to cancel the addition of the custom word when detecting that the user selects the cancel option;
[0040] The editing module is used to re-enter the editing mode when it is detected that the user selects the editing option.
[0041] Optionally, the custom word display module includes:
[0042] An identifier adding submodule, used for adding a custom identifier to the custom word;
[0043] The logo display submodule is used to display the custom logo in the designated area of the custom word.
[0044] Optionally, the device further comprises:
[0045] A third designated operation detection module, used to detect a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0046] a position adjustment module, configured to adjust the display position of the custom word in the candidate interface when the third designated operation is the position adjustment operation;
[0047] A deletion module is used to delete the custom word in the candidate interface and delete the mapping relationship between the custom word and the input information when the third designated operation is the deletion operation.
[0048] Optionally, the editing area display module includes:
[0049] A sorting information acquisition submodule, used to acquire sorting information of all candidate words corresponding to the input information;
[0050] A candidate position determination submodule, used to determine the candidate position of the custom word to be input displayed in the candidate interface according to the first specified operation;
[0051] A sorting information updating submodule, used for updating the sorting information according to the candidate position;
[0052] The display submodule is used to display the candidate words according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0053] Optionally, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0054] The embodiment of the present invention also discloses a system for customizing input method candidate items, including a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors to perform one or more of the above methods.
[0055] The embodiment of the present invention further discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the device to execute one or more of the above methods.
[0056] The embodiments of the present invention include the following advantages:
[0057] In an embodiment of the present invention, when a user wants to add a custom word under a certain input information, the user does not need to manually switch interfaces, but can directly add and edit the custom word in the current candidate interface, which greatly facilitates user operations and reduces resource loss caused by interface switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a flowchart of steps of a method for customizing input method candidates according to an embodiment of the present invention;
[0059] Figure 2 It is a schematic diagram of displaying candidate items in a method for customizing input method candidate items according to an embodiment of the present invention;
[0060] Figure 3 A schematic diagram of an editing area in a method for customizing input method candidates according to an embodiment of the present invention Figure 1 ;
[0061] Figure 4 A schematic diagram of an editing area in a method for customizing input method candidates according to an embodiment of the present invention Figure 2 ;
[0062] Figure 5 It is a structural block diagram of a device for customizing input method candidates according to an embodiment of the present invention;
[0063] Figure 6 The present invention is a block diagram of a system for customizing input method candidates according to an embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0065] Reference Figure 1 , showing a step flow chart of a method for customizing input method candidates according to an embodiment of the present invention. The embodiment of the present invention can be applied to an input method with a function of supporting custom phrases, wherein the custom phrase is a method provided by the input method that allows the user to independently define the mapping of input codes to Chinese character strings, so that when the corresponding input code is entered during normal input, the user-defined Chinese character candidates can be displayed in the candidates.
[0066] The terminal device where the input method is located may include a mobile phone, a PDA (Personal Digital Assistant), a laptop computer, a palmtop computer, a desktop computer, etc., and the embodiment of the present invention does not impose any limitation on this.
[0067] The terminal device can support operating systems such as Windows, Android, IOS, Windows Phone, etc., and the embodiments of the present invention do not limit this.
[0068] The embodiment of the present invention may specifically include the following steps:
[0069] Step 101, displaying candidate words corresponding to input information in a candidate interface of the input method;
[0070] In a specific implementation, after the user starts the input method application installed in the terminal device, the user can input input information into the terminal device through a physical keyboard, a virtual keyboard, a handwriting board, a sound collection device, etc. Accordingly, the user's input may include key input, handwriting input, voice input, etc.
[0071] When a user inputs information into an input method, the input method can identify and match the input information in its database based on the user's input information, thereby obtaining candidate words corresponding to the input information, and displaying the candidate words in a candidate interface, wherein the candidate interface is an interface for displaying candidate words given by the input method under given input information.
[0072] The following is an exemplary description of the method of determining candidate words according to input information:
[0073] In languages such as Chinese and Japanese, Chinese characters and Japanese words, which are the basic language units, are generally not directly mapped to the keys on the virtual keyboard. Therefore, it is generally necessary to convert character strings and words during input.
[0074] Specifically, Chinese characters, words and other text are mapped to directly input character strings through encoding rules. For example, the commonly used encodings in Chinese are Pinyin (such as simplified Pinyin, double Pinyin, full Pinyin, fuzzy Pinyin, etc.) and Wubi.
[0075] Taking Chinese character input as an example, the user inputs a string of Chinese characters into the input method through a virtual keyboard, and the input method decodes and switches to candidate words. Specifically, the following steps may be included:
[0076] a. Pinyin analysis: split the string into pinyin.
[0077] For example, split the string "zhuanli" into "zhuan", "li", and split the string "fangan" into "fang", "an" and "fan", "gan".
[0078] b. Chinese character decoding: search for the characters, words, and sentences corresponding to the pinyin in the vocabulary.
[0079] In a specific implementation, one or more lexicons may be pre-set, which may include a system lexicon that records basic words, or a cellular lexicon that records extended words (the words in the cellular lexicon have at least one common attribute), such as a cellular lexicon that records game-specific words, a cellular lexicon that records biological-specific words, etc. It may also include a user lexicon that records user-personalized words (such as self-made words), etc. The embodiment of the present invention is not limited to this.
[0080] The language information required by the input method is stored in the thesaurus. Since different characters may correspond to the same encoding, for a specific string, the input method can complete the conversion between the string and characters, words, and sentences through the thesaurus, and guess the user's true input intention.
[0081] The thesaurus can contain various language information, such as:
[0082] (1) Lexical entries;
[0083] Although an input method can be constructed based on characters, since words are the smallest semantic units commonly used in Chinese, a large number of lexical entries are used in the input method.
[0084] For example, when the user inputs the string "zhuan" based on the pinyin specification, there are multiple homophonic characters, and it is difficult to determine which character among "转 (zhuǎn), 专 (zhuān), 赚 (zhuàn), 砖 (zhuān)..." the user wants to input.
[0085] Similarly, when the user inputs the string "li" based on the pinyin specification, there are also multiple homophonic characters, and it is also difficult to determine which character among "里 (lǐ), 李 (lǐ), 力 (lì), 利 (lì)..." the user wants to input.
[0086] However, if the user continuously inputs the string "zhuanli" based on the pinyin specification, the input method can determine with a high probability that the word the user wants to input is "专利 (patent)" according to the existing lexical entry rules.
[0087] (2) Word frequency.
[0088] There are a large number of homophonic characters, and homophonic words also exist. Therefore, the input method generally lists all options for the user to select.
[0089] However, the position of the candidate items has a great impact on the usability of the input method. Placing the more commonly used candidate items in the front position is usually more beneficial to the user, that is, the word frequency (i.e., the usage frequency of lexical entries, including the usage frequency of the current user and the usage frequency of the group of users) is one of the bases for sorting the candidate items.
[0090] In addition, the function of self-constructing words and sentences is often integrated in the input method. At this time, the word frequency is also one of the bases for constructing words and sentences.
[0091] Of course, in addition to this, the thesaurus can also include other information, such as the language connection relationship, that is, the connection relationship between words, such as "的 (de)" often appears after adjectives, nouns, pronouns, etc., while "地 (de)" often appears after adverbs, etc. The embodiments of the present invention do not limit this.
[0092] c. Use the found characters, words, and sentences as candidate word and character items.
[0093] Since the display space is limited, in order to display only the candidates that are more likely to be what the user needs, the input method generally calculates scores for the found candidates.
[0094] The following factors are usually considered when scoring:
[0095] (1) User attributes;
[0096] Different users may need to use the same word, but its importance varies from user to user.
[0097] For example, the homophones "research" and "tobacco and alcohol", the former is more commonly used in the academic field, while the latter is more commonly used in daily life, but both may be used.
[0098] Therefore, when the user inputs the pinyin string "yanjiu", both may appear in the candidate items. However, if it is clear that the current user is a student, "research" is more likely to be required by the current user, and its weight can be increased.
[0099] (2) Input environment;
[0100] The weights of the vocabulary and / or entries can be dynamically adjusted according to the usage environment of the input method.
[0101] For example, if the input method has two cell lexicons, "office terms" and "network terms", they respectively record entries commonly used in office and entries commonly used in network chat.
[0102] Generally, the priorities of these two lexicons are the same, but when the input method recognizes input in Word, the weight of the "office terms" lexicon can be increased, and when the user inputs in the conversation window of the instant messaging tool, the weight of the "network terms" lexicon can be increased.
[0103] (3) word frequency;
[0104] Generally speaking, the higher the word frequency, the higher its weight, and conversely, the lower the word frequency, the lower its weight.
[0105] (4) Location.
[0106] If the words in the vocabulary are sorted according to weight, such as the words with higher weight are sorted first, then the relative position of the words in the vocabulary can express the weight of the words.
[0107] In practice, due to the limited space in the candidate interface, especially in terminal devices with small screens such as mobile phones, after the input method obtains candidate words that match the input information, the obtained candidate words may be displayed in pages, and some of the candidate items are displayed in the currently displayed candidate interface. For example, the candidate words with higher scores can be displayed preferentially in the candidate interface, and other candidate words can generally be displayed in the candidate column by turning pages.
[0108] Step 102, when a first designated operation triggered by a user on the candidate interface is detected, entering an editing mode;
[0109] When the candidate words displayed in the candidate interface do not have the candidate that the user wants, the user can trigger a first specified operation in the candidate interface to trigger entering the editing mode of the custom word.
[0110] The embodiment of the present invention does not limit the specific operation form of the first specified operation, which may be a default operation preset by the system or a user-defined operation, and those skilled in the art may set it according to actual needs or usage habits.
[0111] For example, for a touch screen terminal, the first designated operation may include a sliding gesture operation of the user in the candidate interface, such as the user pressing and holding the first choice with a single finger and dragging it to the right, or the user pressing and holding two adjacent candidate words in the candidate words with two fingers and dragging them to the left and right directions respectively, and so on.
[0112] For another example, the first designated operation may include single-clicking, double-clicking, and the like on a candidate area.
[0113] For another example, the first operation may also include an operation in which an edit menu is displayed after the user single-clicks, double-clicks, or slides, and the user selects an edit option in the edit menu.
[0114] In a specific implementation, when it is detected that the user performs a pressing operation on the candidate interface, it is possible to identify whether the user intends to edit the custom option by identifying whether the pressing operation is the first specified operation.
[0115] When the input method detects the first designated operation triggered by the user on the candidate interface, the custom word adding function is turned on and the editing mode is entered.
[0116] In one embodiment, in order to distinguish the candidate interface in the editing mode from the regular candidate interface in the non-editing mode, the display form of the candidate interface in the two modes can be set. For example, in the editing mode, the candidate interface can be displayed in the form of a floating window, becoming a floating interface.
[0117] Step 103, determining an editing area according to the first specified operation;
[0118] After entering the editing mode, the input method may obtain the position in the candidate interface corresponding to the first designated operation as the candidate position, and display the editing area in the candidate position.
[0119] In a preferred embodiment of the present invention, step 103 may include the following sub-steps:
[0120] Sub-step S11, obtaining the ranking information of all candidate words corresponding to the input information;
[0121] Sub-step S12, determining a candidate position of the user-defined word to be input displayed in the candidate interface according to the first specifying operation;
[0122] In a specific implementation, the candidate interface may include multiple display blocks, each display block is used to display a candidate word. Each display block has a block number. After the ranking information of the candidate words is obtained, the candidate words can be displayed in the display block in descending order according to the ranking information. If the number of display blocks is less than the number of candidate words, paging display is performed. For example, the candidate interface includes 9 display blocks from sequence number 1 to sequence number 9, then the candidate word ranked first will be displayed in the display block of sequence number 1, the candidate word ranked second will be displayed in the display block of sequence number 2, and so on, until the candidate word ranked ninth is displayed in the display block of sequence number 9.
[0123] If there are ten or more candidate words, the pages will be displayed starting from the tenth candidate word. However, when the user clicks on the next page, the tenth candidate word will be displayed in the display block of sequence number 1, thus realizing page display.
[0124] In the embodiment of the present invention, the input method may identify, according to the first designated operation triggered by the user, a display block in the candidate interface to which the first designated operation acts, and use the display block as a candidate position.
[0125] Sub-step S13, updating the sorting information according to the candidate position;
[0126] In a specific implementation, since the user wants to insert a custom word at a candidate position, the word originally at the candidate position will be postponed to the next display block, so that the entire sorting information will change.
[0127] For example, if the first specified operation is that the user holds down with a single finger and drags to the right as the preferred operation, the display block affected by the user is the display block where the preference is located, that is, the display block numbered 1. At this time, the candidate position is the position of the display block numbered 1, and the original preference changes to be displayed in the display block numbered 2. The other candidate words are also postponed by one serial number of the display block. For example, Figure 2 as shown, when the user inputs the letter string "nh", the input method gives the corresponding candidate words displayed in order as Figure 2 shown, that is, the sorting of the candidate words corresponding to the letter string "nh" is "Hello - That time - After years - Kernel - Girl...". Suppose the user hopes that "nh@sogou-inc.com" is among the candidates. Then the user can hold down with a single finger and drag the preferred word to the right to determine that the display block where the preference is located is the candidate position. At this time, the updated sorting information is "Custom word - Hello - That time - After years - Kernel - Girl...".
[0128] Another example, if the first specified operation is that the user holds down two adjacent candidate words in the candidate words with two fingers and drags them in opposite directions to the left and right respectively, the display block affected by the user is the next display block of the display block where the candidate word on the left is located. For example, in Figure 2 if the user holds down the two adjacent candidates "Hello" and "That time" and drags them in opposite directions to the left and right, and "Hello" is the preferred word corresponding to the display block numbered 1. At this time, the candidate position is the position of the display block numbered 2, and the original position of "That time" changes to be displayed in the display block numbered 3. The other candidate words are also postponed by one serial number of the display block. At this time, the updated sorting information is "Hello - Custom word - That time - After years - Kernel - Girl...".
[0129] Sub-step S14, display the candidate words according to the updated sorting information, where an editing area is displayed at the candidate position.
[0130] After the user performs the first specified operation, an editing area will appear in the blank space dragged out by the user's operation on the candidate display interface. In a specific implementation, after the input method updates the sorting information according to the user's first specified operation, the input method can display the candidate words according to the updated sorting information. At this time, an editing area can be displayed at the candidate position.
[0131] For example, in Figure 2 if the first specified operation is that the user holds down with a single finger and drags the preferred word to the right, the editing area displayed at the candidate position can be as Figure 3If the first specified operation is an operation in which the user presses two adjacent candidate words in the candidate words with two fingers and drags them to the left and right directions respectively, the editing area displayed in the candidate position can be as follows: Figure 4 shown.
[0132] It should be noted that the display mode of the editing area can be Figure 3 and Figure 4 In addition to what is shown, the editing area may also be displayed in a suspended form, which is not limited in the embodiment of the present invention.
[0133] Step 104, receiving a user-defined word corresponding to the input information inputted by the user in the editing area;
[0134] After the editing area is displayed in the candidate interface, the user can enter a custom word corresponding to the input information in the editing area. For the input method, the user's pressing operation in the editing area can be detected. If the pressing operation is detected, it can be determined that the user's input intention is recognized. At this time, the information entered by the user in the editing area can be used as the custom word corresponding to the input information.
[0135] In a specific implementation, similar to the input method of inputting information in step 101, the input of a custom word can also be input through a physical keyboard, a virtual keyboard, a handwriting board, a sound collection device, etc. The user inputs the coded information to obtain the candidate words of the coded information, and puts the desired candidate words on the screen in the editing area as the custom word. For example, the user can edit "nh@sogou-inc.com" as the custom candidate word in the editing area.
[0136] Step 105, when a second designated operation triggered by the user on the candidate interface is detected, exiting the editing mode;
[0137] When the user completes inputting the custom word in the editing area of the candidate interface, the user can notify the input method to exit the editing mode when the second designated operation is triggered on the candidate interface.
[0138] In practice, the second designated operation may be set to be an operation different from the first designated operation to distinguish the two operations. For example, the second designated operation may include an operation in which the user clicks anywhere in the non-editing area of the candidate interface.
[0139] When the input method detects the second designated operation initiated by the user, the editing mode is exited. In a specific implementation, assuming that the candidate interface is a floating interface in the editing mode, when the editing mode is exited, the candidate interface restores the original display state and exits the floating state.
[0140] Step 106: Display the custom word in the candidate interface.
[0141] In the specific implementation, when exiting the edit mode, Figure 3 or Figure 4 The edit box in the edit area shown can be set to a transparent border, that is, the custom word is displayed in the candidate position of the candidate interface.
[0142] In a preferred embodiment of the present invention, step 106 may include the following sub-steps:
[0143] A custom mark is added to the custom word; and the custom mark is displayed in a designated area of the custom word.
[0144] Specifically, in order to distinguish the custom word in the candidate from other candidate words, a custom mark may be added to the custom word, and when the custom word is displayed, the custom mark is displayed in a designated area of the custom word.
[0145] It should be noted that the embodiments of the present invention do not limit the specific forms of the above-mentioned custom logo and designated area. Those skilled in the art may define the specific forms according to actual needs. For example, the custom logo may include one or a combination of text, patterns, numbers, etc., and the designated area may be located at the subscript or superscript position of the custom word, and so on.
[0146] In a preferred embodiment of the present invention, the following steps may also be included:
[0147] When it is detected that the user clicks on the custom word, an option list is displayed, and the option list includes an add option; when it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database.
[0148] In a specific implementation, when the user exits the editing mode, a mapping relationship between the custom word and the input information can be generated, and the mapping relationship can be stored in a preset word database, for example, in a custom word library.
[0149] However, in order to obtain further confirmation from the user and prevent misoperation, a secondary confirmation function for the user is also provided in the embodiment of the present invention. Specifically, after the custom word is displayed in the candidate position of the candidate interface, the user can click on the custom word to edit or confirm. When the input method detects that the user clicks on the custom word, a drop-down menu can be displayed below the custom word, and a list of options can be displayed in the drop-down menu.
[0150] As an example, the options in the option list may include an add option, an edit option, a cancel option, etc.
[0151] When it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database.
[0152] Furthermore, the mapping relationship may also include a candidate position of the custom word, so that the custom word is displayed in a fixed candidate position.
[0153] When it is detected that the user selects the cancel option, the embodiment of the present invention may further include the following steps:
[0154] When it is detected that the user selects the cancel option, the adding of the custom word is canceled.
[0155] Specifically, if the user selects the cancel option, the addition of the custom word is canceled, and the above sorting information is restored, and the candidate words are displayed according to the original sorting information.
[0156] When it is detected that the user selects the edit option, the embodiment of the present invention may further include the following steps:
[0157] When it is detected that the user selects the editing option, the editing mode is re-entered.
[0158] Specifically, if the user selects the edit option, the edit mode is re-entered and the user can re-edit the custom word in the edit mode.
[0159] In a preferred embodiment of the present invention, in addition to being able to modify, edit or delete the custom word through the options in the drop-down menu, the user can also modify, edit or delete the custom word through other operations, and the present invention can also include the following steps:
[0160] Detect a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation; when the third designated operation is the position adjustment operation, adjust the display position of the custom word in the candidate interface; when the third designated operation is the deletion operation, delete the custom word in the candidate interface, and delete the mapping relationship between the custom word and the input information.
[0161] Specifically, when the user does not want to input the current input information in the future, the input method gives the corresponding custom word candidates, and the user can perform a deletion operation. When the input method detects the deletion operation, it deletes the custom word in the candidate interface, deletes the mapping relationship between the custom word and the input information, and restores the original sorting information, and displays the candidate words according to the original sorting information.
[0162] For example, the deletion operation may be an operation in which the user presses and holds a candidate of the custom word and slides upward.
[0163] When the user wishes to change the candidate position of a custom word under the current input information, the user can perform a position adjustment operation. When the input method detects the position adjustment operation, it obtains the adjusted candidate position, updates the candidate position to the adjusted candidate position in the corresponding mapping relationship, and updates the sorting information based on the adjusted candidate position.
[0164] In practice, when updating the sorting information according to the adjusted candidate positions, the sorting information may be restored to the original sorting information first, and then the sorting information may be updated according to the adjusted candidate positions in the manner of sub-step S13.
[0165] As an example, the position adjustment operation may be an operation in which the user directly presses and holds the custom word and drags it left or right.
[0166] After the custom word is added, when the user inputs the input information in the input method again, the custom word can be displayed at the corresponding candidate position in the candidate interface.
[0167] It should be noted that the above-mentioned actions of displaying a custom logo, clicking on a custom word to display a drop-down option list, and the third specified operation can be performed in a real-time display scenario of custom words added in real time, or after the user has finished adding custom words, when the input information is entered again in the input method and the custom words are displayed in the candidates.
[0168] In an embodiment of the present invention, when a user wants to add a custom word under a certain input information, the user does not need to manually switch interfaces, but can directly add and edit the custom word in the current candidate interface, which greatly facilitates user operations and reduces resource loss caused by interface switching.
[0169] In addition, when the user wants to delete or modify a previously defined custom word, there is no need to switch interfaces, but the operation can be performed directly on the candidate interface, which further simplifies the user's operation, improves the efficiency of custom phrases, and reduces resource loss caused by interface switching.
[0170] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0171] Reference Figure 5 , shows a structural block diagram of an embodiment of a device for customizing input method candidate items of the present invention, which may specifically include the following modules:
[0172] The candidate word display module 501 is used to display the candidate words corresponding to the input information in the candidate interface of the input method;
[0173] A first designated operation detection module 502, configured to enter an editing mode when a first designated operation triggered by a user on the candidate interface is detected;
[0174] An editing area determining module 503, configured to determine an editing area according to the first specifying operation;
[0175] A user-defined word receiving module 504 is used to receive a user-defined word corresponding to the input information inputted in the editing area;
[0176] A second designated operation detection module 505, configured to exit the editing mode when a second designated operation triggered by the user on the candidate interface is detected;
[0177] The custom word display module 506 is used to display the custom word in the candidate interface.
[0178] In a preferred embodiment of the present invention, the device may further include the following modules:
[0179] An option display module, used for displaying an option list when detecting that a user clicks on the custom word, the option list including an add option, a cancel option and an edit option;
[0180] A mapping relationship generating module, configured to generate a mapping relationship between the user-defined word and the input information when detecting that the user selects the adding option, and store the mapping relationship in a preset word database;
[0181] A cancel module, configured to cancel the addition of the custom word when detecting that the user selects the cancel option;
[0182] The editing module is used to re-enter the editing mode when it is detected that the user selects the editing option.
[0183] In a preferred embodiment of the present invention, the custom word display module 506 may include the following submodules:
[0184] An identifier adding submodule, used for adding a custom identifier to the custom word;
[0185] The logo display submodule is used to display the custom logo in the designated area of the custom word.
[0186] In a preferred embodiment of the present invention, the device may further include the following modules:
[0187] A third designated operation detection module, used to detect a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0188] a position adjustment module, configured to adjust the display position of the custom word in the candidate interface when the third designated operation is the position adjustment operation;
[0189] A deletion module is used to delete the custom word in the candidate interface and delete the mapping relationship between the custom word and the input information when the third designated operation is the deletion operation.
[0190] In a preferred embodiment of the present invention, the editing area display module 503 may include the following submodules:
[0191] A sorting information acquisition submodule, used to acquire sorting information of all candidate words corresponding to the input information;
[0192] A candidate position determination submodule, used to determine the candidate position of the custom word to be input displayed in the candidate interface according to the first specified operation;
[0193] A sorting information updating submodule, used for updating the sorting information according to the candidate position;
[0194] The display submodule is used to display the candidate words according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0195] In a preferred embodiment of the present invention, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0196] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0197] Figure 6 6 is a block diagram of a system 600 for customizing input method candidates according to an exemplary embodiment. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0198] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0199] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0200] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0201] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0202] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0203] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0204] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0205] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0206] The communication component 614 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 614 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 614 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0207] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0208] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0209] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for customizing input method candidate items, the method comprising:
[0210] Displaying candidate words corresponding to the input information in the candidate interface of the input method;
[0211] When a first designated operation triggered by a user on the candidate interface is detected, entering an editing mode;
[0212] Determine the editing area according to the first specified operation;
[0213] receiving a user-defined word inputted by a user in the editing area and corresponding to the input information;
[0214] When detecting a second designated operation triggered by the user on the candidate interface, exiting the editing mode;
[0215] The custom word is displayed in the candidate interface.
[0216] Optionally, after displaying the custom word in the candidate position of the candidate interface, the method further includes:
[0217] When it is detected that the user clicks the custom word, an option list is displayed, wherein the option list includes an add option, a cancel option, and an edit option;
[0218] When it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database;
[0219] When it is detected that the user selects the cancel option, the adding of the custom word is canceled;
[0220] When it is detected that the user selects the editing option, the editing mode is re-entered.
[0221] Optionally, displaying the custom word in the candidate interface includes:
[0222] Adding a custom tag to the custom word;
[0223] The custom mark is displayed in a designated area of the custom word.
[0224] Optionally, the method further comprises:
[0225] Detecting a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0226] When the third designated operation is the position adjustment operation, adjusting the display position of the custom word in the candidate interface;
[0227] When the third designated operation is the deletion operation, the custom word is deleted in the candidate interface, and the mapping relationship between the custom word and the input information is deleted.
[0228] Optionally, determining the editing area according to the first specified operation includes:
[0229] Obtaining ranking information of all candidate words corresponding to the input information;
[0230] According to the first specified operation, determining a candidate position of the custom word to be input displayed in the candidate interface;
[0231] According to the candidate position, updating the sorting information;
[0232] The candidate words are displayed according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0233] Optionally, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0234] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0235] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0236] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0237] The embodiment of the present invention discloses A1, a method for customizing input method candidates, the method comprising:
[0238] Displaying candidate words corresponding to the input information in the candidate interface of the input method;
[0239] When a first designated operation triggered by a user on the candidate interface is detected, entering an editing mode;
[0240] Determine the editing area according to the first specified operation;
[0241] receiving a user-defined word inputted by a user in the editing area and corresponding to the input information;
[0242] When detecting a second designated operation triggered by the user on the candidate interface, exiting the editing mode;
[0243] The custom word is displayed in the candidate interface.
[0244] A2. The method according to A1, after displaying the custom word in the candidate position of the candidate interface, further comprising:
[0245] When it is detected that the user clicks the custom word, an option list is displayed, wherein the option list includes an add option, a cancel option, and an edit option;
[0246] When it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database;
[0247] When it is detected that the user selects the cancel option, the adding of the custom word is canceled;
[0248] When it is detected that the user selects the editing option, the editing mode is re-entered.
[0249] A3. The method according to A1 or A2, wherein the displaying of the custom word in the candidate interface comprises:
[0250] Adding a custom mark to the custom word;
[0251] The custom mark is displayed in a designated area of the custom word.
[0252] A4. The method according to A2, further comprising:
[0253] Detecting a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0254] When the third designated operation is the position adjustment operation, adjusting the display position of the custom word in the candidate interface;
[0255] When the third designated operation is the deletion operation, the custom word is deleted in the candidate interface, and the mapping relationship between the custom word and the input information is deleted.
[0256] A5. The method according to A1 or A2, wherein determining the editing area according to the first specified operation comprises:
[0257] Obtaining ranking information of all candidate words corresponding to the input information;
[0258] According to the first specified operation, determining a candidate position of the custom word to be input displayed in the candidate interface;
[0259] According to the candidate position, updating the sorting information;
[0260] The candidate words are displayed according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0261] A6. According to the method described in A1, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0262] The embodiment of the present invention also discloses B7, a device for customizing input method candidate items, the device comprising:
[0263] A candidate word display module, used to display candidate words corresponding to the input information in the candidate interface of the input method;
[0264] A first designated operation detection module, used for entering the editing mode when a first designated operation triggered by a user on the candidate interface is detected;
[0265] An editing area determining module, used for determining an editing area according to the first specified operation;
[0266] A custom word receiving module, used for receiving a custom word inputted by a user in the editing area and corresponding to the input information;
[0267] A second designated operation detection module, configured to exit the editing mode when a second designated operation triggered by a user on the candidate interface is detected;
[0268] A custom word display module is used to display the custom word in the candidate interface.
[0269] B8. The device according to B7, further comprising:
[0270] An option display module, used for displaying an option list when detecting that a user clicks on the custom word, the option list including an add option, a cancel option and an edit option;
[0271] A mapping relationship generating module, configured to generate a mapping relationship between the user-defined word and the input information when detecting that the user selects the adding option, and store the mapping relationship in a preset word database;
[0272] A cancel module, configured to cancel the addition of the custom word when detecting that the user selects the cancel option;
[0273] The editing module is used to re-enter the editing mode when it is detected that the user selects the editing option.
[0274] B9. According to the device described in B7 or B8, the custom word display module includes:
[0275] An identifier adding submodule, used for adding a custom identifier to the custom word;
[0276] The logo display submodule is used to display the custom logo in the designated area of the custom word.
[0277] B10. The device according to B8, further comprising:
[0278] A third designated operation detection module, used to detect a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation;
[0279] a position adjustment module, configured to adjust the display position of the custom word in the candidate interface when the third designated operation is the position adjustment operation;
[0280] A deletion module is used to delete the custom word in the candidate interface and delete the mapping relationship between the custom word and the input information when the third designated operation is the deletion operation.
[0281] B11. According to the device described in B7 or B8, the editing area display module includes:
[0282] A sorting information acquisition submodule, used to acquire sorting information of all candidate words corresponding to the input information;
[0283] A candidate position determination submodule, used to determine the candidate position of the custom word to be input displayed in the candidate interface according to the first specified operation;
[0284] A sorting information updating submodule, used for updating the sorting information according to the candidate position;
[0285] The display submodule is used to display the candidate words according to the updated sorting information, wherein an editing area is displayed in the candidate position.
[0286] B12. According to the device described in B7, in the editing mode, the candidate interface is displayed in the form of a floating window.
[0287] An embodiment of the present invention discloses C13, a system for customizing input method candidate items, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to execute one or more of the methods A1-A6 by one or more processors.
[0288] The embodiment of the present invention discloses D14, one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the device to perform one or more methods such as A1-A6.
Claims
1. A method for customizing input method candidates, characterized in that: The method comprises: Displaying candidate words corresponding to the input information in the candidate interface of the input method; When a first designated operation triggered by a user on the candidate interface is detected, the editing mode is entered, wherein the first designated operation is a dragging operation of the first candidate word in the candidate words toward an adjacent candidate word, or a dragging operation of two adjacent candidate words in the candidate words toward opposite directions; Obtaining ranking information of all candidate words corresponding to the input information; According to the first specified operation, determining a candidate position of the custom word to be input displayed in the candidate interface; According to the candidate position, updating the sorting information; According to the updated sorting information, the candidate words are displayed in descending order, and an editing area is displayed in the candidate position; receiving a user-defined word inputted by a user in the editing area and corresponding to the input information; When detecting a second designated operation triggered by the user on the candidate interface, exiting the editing mode; Displaying the custom word in the candidate interface; When it is detected that the user clicks the custom word, an option list is displayed, wherein the option list includes an add option, a cancel option, and an edit option; When it is detected that the user selects the add option, a mapping relationship between the custom word and the input information is generated, and the mapping relationship is stored in a preset word database; When it is detected that the user selects the cancel option, the adding of the custom word is canceled; When it is detected that the user selects the editing option, re-entering the editing mode; Detecting a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation; When the third designated operation is the position adjustment operation, adjusting the display position of the custom word in the candidate interface; When the third designated operation is the deletion operation, the custom word is deleted in the candidate interface, and the mapping relationship between the custom word and the input information is deleted.
2. The method according to claim 1, characterized in that The step of displaying the custom word in the candidate interface includes: Adding a custom mark to the custom word; The custom mark is displayed in a designated area of the custom word.
3. The method according to claim 1, characterized in that In the editing mode, the candidate interface is displayed in the form of a floating window.
4. A device for customizing input method candidates, characterized in that: The device comprises: A candidate word display module, used to display candidate words corresponding to the input information in the candidate interface of the input method; A first designated operation detection module, used for entering the editing mode when a first designated operation triggered by a user on the candidate interface is detected, wherein the first designated operation is a dragging operation of the first candidate word in the candidate words toward an adjacent candidate word, or a dragging operation of two adjacent candidate words in the candidate words toward opposite directions; A sorting information acquisition submodule, used to acquire sorting information of all candidate words corresponding to the input information; A candidate position determination submodule, used to determine the candidate position of the custom word to be input displayed in the candidate interface according to the first specified operation; A sorting information updating submodule, used for updating the sorting information according to the candidate position; A display submodule, for displaying the candidate words in descending order according to the updated sorting information, and displaying an editing area in the candidate position; A custom word receiving module, used for receiving a custom word inputted by a user in the editing area and corresponding to the input information; A second designated operation detection module, configured to exit the editing mode when a second designated operation triggered by a user on the candidate interface is detected; A custom word display module, used to display the custom word in the candidate interface; An option display module, used for displaying an option list when detecting that a user clicks on the custom word, the option list including an add option, a cancel option and an edit option; A mapping relationship generating module, configured to generate a mapping relationship between the user-defined word and the input information when detecting that the user selects the adding option, and store the mapping relationship in a preset word database; A cancel module, configured to cancel the addition of the custom word when detecting that the user selects the cancel option; An editing module, configured to re-enter the editing mode when detecting that the user selects the editing option; A third designated operation detection module, used to detect a third designated operation of the user, wherein the third designated operation includes a position adjustment operation and a deletion operation; a position adjustment module, configured to adjust the display position of the custom word in the candidate interface when the third designated operation is the position adjustment operation; A deletion module is used to delete the custom word in the candidate interface and delete the mapping relationship between the custom word and the input information when the third designated operation is the deletion operation.
5. The device according to claim 4, characterized in that The custom word display module includes: An identifier adding submodule, used for adding a custom identifier to the custom word; The logo display submodule is used to display the custom logo in the designated area of the custom word.
6. The device according to claim 4, characterized in that In the editing mode, the candidate interface is displayed in the form of a floating window.
7. A system for customizing input method candidates, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 3 by one or more processors.
8. One or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method and system for adjusting word-selecting sequence
CN101078970A
Method for adding self-defined word in input method word library and word input device
CN101149679A
Method and device for regulating candidate word sequence
CN101334769A
Mobile terminal and method for correcting text thereof
CN101593076A
Method and device for adding custom words in input method lexicon and Chinese character input equipment
CN101615204A
