Input method and device
By determining the variable character part in the combined string and switching the input method mode during the input process, the problem of users frequently switching input method modes is solved, the input operation of the combined string is simplified, and the input cost is reduced.
Patent Information
- Application Number
- CN201910329277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-04-23
AI Technical Summary
During the input process, users need to frequently switch input method modes to conveniently input combined strings containing different types of character content, resulting in cumbersome operations and high input costs.
By obtaining the target string, displaying the candidates and determining the variable character part in the combined string, replacing it with the input focus and switching to its corresponding input method mode, the input operation is simplified.
Users can conveniently enter variable character parts in the switched input method mode, reducing the need to reposition the input focus and switching input method modes, and reduce input costs.
Smart Images

Figure CN111831133B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of input methods, and in particular to an input method and device. Background Art
[0002] Input methods can provide users with convenient character input services.
[0003] During the input process, the user sometimes needs to display a combined string on the screen, which includes at least two types of character content. Different types of character content generally require different input method modes to be conveniently input. For example, the combined string is "pulse 92 times / minute", which includes Chinese character type character content and numeric type character content. The Chinese character type character content, for example, needs to be conveniently input through the Chinese character input method mode, and the numeric type character content, for example, needs to be conveniently input through the numeric input method mode.
[0004] Because the combined character string on the screen needs to switch input method modes multiple times during input as the type of the content of the characters to be displayed on the screen changes, the operation is cumbersome and the input cost for the user is high. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides an input method and device, which simplifies the user's input operation of the combined character string on the screen and reduces the user's input cost.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides an input method, the method comprising:
[0008] Get the target string;
[0009] Displaying candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes;
[0010] If a screen-up operation is obtained for the candidate item corresponding to the combined string, the combined string is put on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
[0011] Optionally, the type of the variable character part is preset or determined according to the recognized user input habits.
[0012] Optionally, the target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
[0013] Optionally, the displaying of candidate items corresponding to the target character string includes:
[0014] Determining a variable character portion in the combined character string;
[0015] When the combined character string is displayed through the candidate items, the variable character part in the combined character string is displayed through the replacement mark;
[0016] The step of putting the combined character string on the screen and replacing the variable character part in the combined character string with the input focus includes:
[0017] The combined character string is displayed on the screen, and the variable character part in the combined character string is replaced with the input focus according to the replacement identifier.
[0018] Optionally, after putting the combined character string on the screen, replacing the variable character part in the combined character string with the input focus, and switching to the input method mode corresponding to the variable character part, the method further includes:
[0019] Get the focus movement operation;
[0020] The input focus is moved to the end of the combined character string according to the focus moving operation, and the input method mode is switched to a target input method mode.
[0021] In a second aspect, an embodiment of the present application provides an input device, the device comprising an acquisition unit, a display unit, and an upper screen unit:
[0022] The acquisition unit is used to acquire a target character string;
[0023] The display unit is used to display candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes;
[0024] The screen-up unit is used to, if a screen-up operation is obtained for the candidate item corresponding to the combined character string, put the combined character string on the screen, replace the variable character part in the combined character string with the input focus, and switch to the input method mode corresponding to the variable character part; the variable character part is a type of character content.
[0025] Optionally, the type of the variable character part is preset or determined according to the recognized user input habits.
[0026] Optionally, the target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
[0027] Optionally, the display unit includes a determination subunit and a display subunit:
[0028] The determination subunit is used to determine the variable character part in the combined character string;
[0029] The display subunit is used to display the variable character part in the combined character string by replacing the mark when displaying the combined character string by the candidate item;
[0030] The screen-up unit is specifically used to put the combined character string on the screen, and replace the variable character part in the combined character string with the input focus according to the replacement identifier.
[0031] Optionally, the device further includes a moving unit, and the moving unit includes an acquiring subunit and a moving subunit:
[0032] The acquisition subunit is used to acquire a focus moving operation after the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched;
[0033] The moving subunit is used to move the input focus to the end of the combined character string according to the focus moving operation, and switch the input method mode to the target input method mode.
[0034] In a third aspect, an embodiment of the present application provides an input device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0035] Get the target string;
[0036] Displaying candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes;
[0037] If a screen-up operation is obtained for the candidate item corresponding to the combined string, the combined string is put on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
[0038] Optionally, the type of the variable character part is preset or determined according to the recognized user input habits.
[0039] Optionally, the target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
[0040] Optionally, the processor executes the one or more programs including instructions for performing the following operations:
[0041] Determining a variable character portion in the combined character string;
[0042] When the combined character string is displayed through the candidate items, the variable character part in the combined character string is displayed through the replacement mark;
[0043] The combined character string is displayed on the screen, and the variable character part in the combined character string is replaced with the input focus according to the replacement identifier.
[0044] Optionally, the processor executes the one or more programs including instructions for performing the following operations:
[0045] After the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched, a focus moving operation is acquired;
[0046] The input focus is moved to the end of the combined character string according to the focus moving operation, and the input method mode is switched to a target input method mode.
[0047] In a fourth aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute one or more of the above-mentioned input methods.
[0048] It can be seen from the above technical solution that according to the acquired target string, the string corresponding to the target string can be determined by association and the like, and displayed through candidate items. The string corresponding to the target string has a combined string including multiple types of character contents, one type of character content is a variable character content, that is, in different input scenarios, one type of character content in the combined string can be changed. If the screen operation for the candidate item corresponding to the combined string is obtained, the combined string is put on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part. Thus, the user can conveniently input the specific content of the variable character part at the input focus in the input method mode that has been switched, without the need to reposition the input focus or switch the input method mode to input the variable character part, which simplifies the user's input operation of the combined string on the screen and reduces the user's input cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0050] Figure 1 A flow chart of an input method provided in an embodiment of the present application;
[0051] Figure 2 A structural diagram of an input device provided in an embodiment of the present application;
[0052] Figure 3 A structural diagram of an input device provided in an embodiment of the present application;
[0053] Figure 4 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0055] Currently, when a user needs to put a combined character string on the screen, the input method mode will be switched multiple times during the input process as the type of the character content to be put on the screen changes. The operation is cumbersome and the input cost of the user is high.
[0056] To this end, an embodiment of the present application provides an input method, which includes: after obtaining a target character string, determining the character string corresponding to the target character string by association or the like, and displaying the determined character string as a candidate. The target character string described here may be a character string used to reflect the user's purpose of going on the screen. For example, when a user wants to display the character string "pulse" on the screen, he can enter the character string "maibo", and the character string "maibo" can be used as a target character string that reflects the user's purpose of going on the screen (ie, "pulse"). Based on the target character string, the character string corresponding to the target character string can be determined. For example, based on the target character string "maibo", it can be determined that it corresponds to the character strings "pulse", "maibo", "pulse wave", etc., and these determined character strings can be displayed as candidates.
[0057] In this method, the character string determined according to the target character string may include a combined character string. The combined character string here may be a character string including multiple types of character contents. For example, the combined character string may be "Pulse: 92 times / minute", wherein the combined character string includes the character content "pulse" of Chinese character type, the character content "92" of digital type, and the character content " / " of symbol type, etc.
[0058] It can be understood that for different types of character content in the combined string, there are corresponding input method modes. Only when the input method mode corresponds to the type of character content, can the input of the character content of this type be completed most conveniently. That is to say, for the character content to be input, only when the input method mode corresponds to the type of character content to be input, the input of the character content to be input is the most convenient; and when the input method mode does not correspond to the type of character content to be input, although the input of the character content of this type can be completed, the convenience will be relatively reduced. In addition, in the combined string, there is usually a type of character content that is a variable character content, that is, in the combined string, there is usually a type of character content that will change according to different input scenarios. For example: for the combined string "Pulse: 92 times / minute", the character content "92" of the digital type can be a variable character content, that is, for different objects, there can be a corresponding pulse number, and the character content of the digital type is variable. When the user selects the candidate item corresponding to the combined string to be displayed on the screen, the display operation of the candidate item corresponding to the combined string is obtained, and the combined string is displayed on the screen. At the same time, the variable character part in the combined string can be replaced with the input focus, and the input method mode can be switched to the input method mode corresponding to the variable character part. Among them, the input focus can be used to locate the current input position, for example, the input focus can be a cursor, etc. In this way, the user can directly input the specific content of the variable character part conveniently at the input focus according to the input method mode that has been switched, without the need to reposition the input focus or switch the input method mode to input the variable character part, which simplifies the user's input operation of the combined string on the screen and reduces the user's input cost.
[0059] Next, combine Figure 1 The input method provided in the embodiment of the present application is described, and the method includes:
[0060] S101: Obtain a target character string.
[0061] The target string mentioned here may be a string used to reflect the purpose of the user going on screen. For the target string, in a possible implementation, for example, it may be a string input by the user, or it may be a string determined on screen according to the input focus.
[0062] In the embodiment of the present application, the target character string may be a character string input by the user. For example, the target character string may be a character string input into the character input box by the user according to the purpose of the screen display through the input methods such as pinyin, strokes, and voice. The following is a specific example: when the user wants to display "Pulse: 92 beats / minute", the user can input the character string "maibo" in the character input box through the pinyin input method, and the character string "maibo" can be used as the target character string reflecting the purpose of the user's screen display.
[0063] In addition, the target string can also be an upper screen string determined according to the input focus. Among them, the input focus can be used to locate the current input position, for example, the input focus can be a cursor, etc. That is to say, for the current upper screen string, the upper screen string determined according to the input focus can also be used as a target string that reflects the user's purpose of going to the screen. The following is an explanation with a specific example: Assuming that the current upper screen string is "Pulse: 92 times / minute", and the current input focus is at the end of "Pulse: 92 times / minute", then, according to the position of the current input focus, the current upper screen string "Pulse: 92 times / minute" can be determined as the target string. It can be understood that, for the current upper screen string, the user can arbitrarily move the position of the input focus in the current upper screen string, then, according to the input focus at different positions in the current upper screen string, the corresponding target strings can be determined respectively.
[0064] S102: Display candidate items corresponding to the target character string.
[0065] After obtaining the target string, the string corresponding to the target string can be determined by association and other methods according to the target string, and these determined strings are displayed as candidate items for the user. For example, according to the target string "maibo", it can be determined by association and other methods that its corresponding string may be: "pulse", "pulse: 92 times / minute", "pulse wave", etc., and these determined strings are displayed as candidate items. For another example, if the current target string is the upper screen string "pulse: 92 times / minute" determined according to the input focus, then, according to the target string "pulse: 92 times / minute", it can be determined that the string corresponding to the target string may include "temperature: 37℃", etc., and these determined strings are displayed as candidate items.
[0066] It should be noted that if the candidate items determined according to the target character string include a combined character string, then when the combined character string is displayed through the candidate items, in order to prompt the user that the combined character string has a variable character part, the variable character part can be replaced with a replacement mark and then displayed. The replacement mark can be used to prompt the user that the replaced part is a variable character part. For example, the variable character part "92" in the candidate item "Pulse: 92 times / minute" can be replaced with the replacement mark "A" to obtain "Pulse: A times / minute" and displayed as a candidate item. This serves to prompt the user that the combined character string has a variable character part.
[0067] When a combined character string is used as a candidate, a method for replacing the variable character part in the combined character string will be introduced in the following embodiment.
[0068] In an embodiment of the present application, the candidate items determined according to the target character string may include candidate items corresponding to the combined character string. The combined character string may be a character string including different types of character contents, and the type of character content described here may be the corresponding category divided for different character contents, such as the type of character content may be a Chinese character type, a symbol type, a digital type, etc. Moreover, different types of character contents may correspond to different input method modes, for example, for Chinese character type character contents, the corresponding input method mode may be a Chinese character input method mode. Then, the combined character string should include at least two types of character content character strings, such as a combined character string may be "Pulse: 92 beats / min", which includes the Chinese character type character content "Pulse", the digital type character content "92", and the symbol type character content " / ", etc.
[0069] S103: If a screen-up operation is obtained for the candidate item corresponding to the combined character string, the combined character string is put on the screen, and the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
[0070] It is understandable that a combined character string usually includes a variable character part, and the variable character part mentioned here can be a type of character content in the combined character string, and the variable character part in the combined character string will change according to different input scenarios. For example: for the combined character string "Pulse: 92 beats / minute", the numeric character content "92" can be a variable character part, that is, for different objects, there can be corresponding pulse numbers, and the numeric character content is variable in different input scenarios.
[0071] In an embodiment of the present application, if the user selects a candidate item of a combined string from the candidate items to be displayed on the screen, that is, the display operation of the candidate item corresponding to the combined string is performed, the display operation of the candidate item corresponding to the combined string can be obtained, the combined string is displayed on the screen, and the variable character part in the combined string is replaced with the input focus, and the current input method mode is switched to the input method mode corresponding to the variable character part. For example: when the user selects the combined string "Pulse: 92 times / minute" from the candidate items to be displayed on the screen, the display operation of the candidate item corresponding to the combined string is obtained, the combined string is displayed on the screen, and the variable character part "92" in the combined string "Pulse: 92 times / minute" is replaced with the input focus, and the current input method mode is switched to the digital input method mode corresponding to the variable character part "92".
[0072] In this way, the user can conveniently input the specific content of the variable character part directly at the input focus according to the input method mode that has been switched. There is no need to reposition the input focus or switch the input method mode to enter the variable character part. This simplifies the user's input operation of the combined character string on the screen and reduces the user's input cost.
[0073] It should be noted that the embodiment of the present application does not limit the specific display method of the candidate items corresponding to the target character string in step S102. In a possible implementation, the method for displaying the candidate items corresponding to the target character string may include:
[0074] S201: Determine the variable character part in the combined character string.
[0075] For the candidate items corresponding to the combined character string, the variable character part thereof can be determined. For example, for the combined character string "Pulse: 92 beats / minute", it can be determined that the variable character part thereof is a character content of a digital type, namely "92".
[0076] The variable character part in the combined character string can be determined by determining the type of the variable character part in the combined character string. For example, by determining that the type of the variable character part in the combined character string "Pulse: 92 times / minute" is a digital type, it can be determined that the variable character part in the combined character string is "92".
[0077] Regarding the determination of the type of the variable character part in the combined string, in a possible implementation, it can be determined by a pre-setting method, for example, for the combined string "Pulse: 92 beats / minute", the digital type therein can be pre-set as the type of the variable character part in the combined string. Then, the character content of the digital type in the combined string is the variable character part in the combined string.
[0078] In addition, the type of the variable character part in the combined string can also be determined according to the input habit of the identified user. That is, for a certain combined string, the identified user always changes only a certain type of character content in the combined string in different input scenarios, and does not change other types of character content in the combined string to complete the input of the combined string. Then, the type of the variable character part in the combined string can be determined as the type of the character content of the certain type of character content in the combined string that the identified user often changes. For example, for the combined string "Pulse: 92 times / min", the identified user can input "Pulse: 83 times / min", "Pulse: 89 times / min", "Pulse: 100 times / min", etc. in different input scenarios, that is, only the character content of the digital type is changed, and other types of character content in the combined string are not changed. Then, according to the input habit of the identified user, the type of the variable character part of the combined string "Pulse: 92 times / min" can be determined as a digital type.
[0079] S202: When displaying the combined character string through candidate items, the variable character part in the combined character string is displayed through a replacement mark.
[0080] When displaying a combined character string through candidate items, the variable character part in the combined character string can be replaced with a replacement mark before displaying. The replacement mark mentioned here is a mark used to replace the variable character part in the combined character string, and the replacement mark can be used to prompt the user that the part replaced is the variable character part, for example: the replacement mark can be "D". The following is a specific example for explanation: when the combined character string "Pulse: 92 times / minute" is displayed through candidate items, the variable character part can be replaced with the replacement mark "D", and the candidate item of the combined character string at this time becomes "Pulse: D times / minute", and the replaced combined character string "Pulse: D times / minute" is displayed as the candidate item of the combined character string.
[0081] Then, in the embodiment of the present application, a possible implementation of S103 may be as shown in S203:
[0082] S203: The combined character string is displayed on the screen, and the variable character part in the combined character string is replaced with the input focus according to the replacement identifier.
[0083] After obtaining the screen display operation for the candidate item corresponding to the combined character string, the replaced combined character string is displayed on the screen, and the replacement mark in the combined character string is replaced with the input focus. For example, for the replaced combined character string "Pulse: D times / minute", when it is displayed on the screen, the replacement mark "D" therein can be replaced with the input focus.
[0084] In this way, when displaying candidate items corresponding to a combined string, the variable character part in the combined string is replaced by a replacement identifier, thereby avoiding the situation where the variable character part in the combined string only corresponds to a specific input scenario. For example, the displayed candidate item of the combined string is "Pulse: D times / minute" instead of "Pulse: 92 times / minute", thereby improving the standardization of the display of candidate items and enhancing the user's input experience.
[0085] exist Figure 1 Based on the combined character string input method shown, after the combined character string is displayed on the screen, the current input focus may be located in the combined character string, for example, after the combined character string "pulse: 89 times / minute" is displayed on the screen, the input focus will be located between "89" and "times" in the combined character string, that is, in the combined character string "pulse: 89 times / minute". In view of this situation, in order to facilitate the user to continue to input new character content after the combined character string on the screen, in a possible implementation, after the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched to, the method may also include:
[0086] S301: Acquire a focus moving operation.
[0087] In an embodiment of the present application, after the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched, the user can complete the input of the variable character part in the combined character string at the position of the input focus. In addition, after completing the input of the variable character part, the user can also perform a focus movement operation to move the input focus from the current variable character part to the end of the combined character string. The focus movement operation described here can be an operation corresponding to the user moving the input focus to the desired input position. After the user completes the focus movement operation, the focus movement operation is obtained.
[0088] For example: after the combined character string "Pulse: 92 beats / minute" is displayed on the screen, and the variable character part "92" in the combined character string is replaced with the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part, that is, the digital input method mode, the user can enter "89" at the position of the variable character part. After completing the input of the variable character part, the user can perform a focus moving operation. For example, the focus moving operation can be the user pressing the "Tab" button. After the user completes the focus moving operation, the focus moving operation is obtained.
[0089] S302: moving the input focus to the end of the combined character string according to the focus moving operation, and switching the input method mode to a target input method mode.
[0090] After obtaining the focus moving operation, the input focus can be moved to the end of the combined string according to the focus moving operation, and the input method mode can be switched to the target input method mode. The target input method mode described here can be an input method mode that is convenient for the user to input new character content after the user completes the input of the combined string. For example, the target input method mode can be the input method mode before the user inputs the combined string, or it can be the input method mode that the user uses most frequently, etc. In addition, for the combined string currently on the screen, a new target string can also be determined according to the current input focus, so as to predict the user's next screen purpose and associate the candidate items, thereby simplifying the user's input operation of continuing to put new character content on the screen, and reducing the user's input cost.
[0091] The following is a specific example for explanation: after the user completes inputting "pulse: 89 times / min", the input focus is moved to "pulse: 89 times / min", and the input method mode is switched to the Chinese character input method mode. In this way, after the user completes inputting "pulse: 89 times / min", the user can conveniently input the new character content that the user wants to continue to input directly at the input focus according to the input method mode that has been switched, without the need to reposition the input focus or switch the input method mode for inputting new character content. In addition, for the "pulse: 89 times / min" currently on the screen, a new target character string, namely "pulse: 89 times / min", can also be determined according to the current input focus, namely the input focus at the end of "pulse: 89 times / min". In this way, the user's next screen purpose can be predicted and candidate items can be associated according to the new target character string "pulse: 89 times / min", such as the candidate item "body temperature: D℃" can be associated, thereby simplifying the user's input operation of continuing to put new character content on the screen and reducing the user's input cost.
[0092] based on Figure 1Corresponding to the input method provided in the embodiment, the present application embodiment provides an input device, see Figure 2 The device includes an acquisition unit 201, a display unit 202 and an upper screen unit 203:
[0093] The acquisition unit 201 is used to acquire a target character string;
[0094] The display unit 202 is used to display candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes;
[0095] The screen-up unit 203 is used to, if a screen-up operation is obtained for the candidate item corresponding to the combined character string, put the combined character string on the screen, replace the variable character part in the combined character string with the input focus, and switch to the input method mode corresponding to the variable character part; the variable character part is a type of character content.
[0096] Optionally, the type of the variable character part is preset or determined according to the recognized user input habits.
[0097] Optionally, the target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
[0098] Optionally, the display unit 202 includes a determination subunit and a display subunit:
[0099] The determination subunit is used to determine the variable character part in the combined character string;
[0100] The display subunit is used to display the variable character part in the combined character string by replacing the mark when displaying the combined character string by the candidate item;
[0101] The screen-up unit 203 is specifically used to put the combined character string on the screen, and replace the variable character part in the combined character string with the input focus according to the replacement identifier.
[0102] Optionally, the device further includes a moving unit, and the moving unit includes an acquiring subunit and a moving subunit:
[0103] The acquisition subunit is used to acquire a focus moving operation after the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched;
[0104] The moving subunit is used to move the input focus to the end of the combined character string according to the focus moving operation, and switch the input method mode to the target input method mode.
[0105] In summary, according to the acquired target string, the string corresponding to the target string can be determined by association and the like, and displayed through candidate items. The string corresponding to the target string has a combined string including multiple types of character contents, one type of which is a variable character content, that is, in different input scenarios, one type of character content in the combined string can change. If the screen operation for the candidate item corresponding to the combined string is obtained, the combined string is put on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part. Thus, the user can conveniently input the specific content of the variable character part at the input focus in the input method mode that has been switched, without the need to reposition the input focus or switch the input method mode to input the variable character part, which simplifies the user's input operation of the combined string on the screen and reduces the user's input cost.
[0106] Based on the input method and apparatus provided above, this embodiment provides an input device, which may be a terminal device. Figure 3 3 is a block diagram of a terminal device 300 according to an exemplary embodiment. For example, the terminal device 300 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.
[0107] Reference Figure 3 The terminal device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0108] The processing component 302 generally controls the overall operation of the terminal device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0109] The memory 304 is configured to store various types of data to support operations on the terminal device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 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.
[0110] The power supply component 306 provides power to various components of the terminal device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0111] The multimedia component 308 includes a screen that provides an output interface between the terminal device 300 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 308 includes a front camera and / or a rear camera. When the terminal device 300 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 the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0112] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 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 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0113] I / O interface 312 provides an interface between processing component 302 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.
[0114] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the terminal device 300. For example, the sensor assembly 314 can detect the open / closed state of the terminal device 300, the relative positioning of the components, such as the display and keypad of the terminal device 300, and the sensor assembly 314 can also detect the position change of the terminal device 300 or a component of the terminal device 300, the presence or absence of contact between the user and the terminal device 300, the orientation or acceleration / deceleration of the terminal device 300, and the temperature change of the terminal device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0115] The communication component 316 is configured to facilitate wired or wireless communication between the terminal device 300 and other devices. The terminal device 300 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 316 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 316 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.
[0116] In an exemplary embodiment, the terminal device 300 can 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.
[0117] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of a terminal device 300 to complete 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.
[0118] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a method for retrieving keywords in speech, the method comprising:
[0119] Get the target string;
[0120] Displaying candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes;
[0121] If a screen-up operation is obtained for the candidate item corresponding to the combined string, the combined string is put on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
[0122] Figure 4 4 is a schematic diagram of the structure of the server in the embodiment of the present invention. The server 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 422 (for example, one or more processors) and memory 432, and one or more storage media 430 (for example, one or more mass storage devices) storing application programs 442 or data 444. Among them, the memory 432 and the storage medium 430 can be short-term storage or permanent storage. The program stored in the storage medium 430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 422 can be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the server 400.
[0123] The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 458, one or more keyboards 456, and / or, one or more operating systems 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0124] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0125] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An input method, characterized in that: The method comprises: Get the target string; Displaying candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes; If the screen display operation for the candidate item corresponding to the combined string is obtained, the combined string is displayed on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
2. The method according to claim 1, characterized in that The type of the variable character part is preset or determined according to the recognized user input habits.
3. The method according to claim 1, characterized in that The target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
4. The method according to any one of claims 1 to 3, characterized in that: The displaying of candidate items corresponding to the target character string includes: Determining a variable character portion in the combined character string; When the combined character string is displayed through the candidate items, the variable character part in the combined character string is displayed through the replacement mark; The step of putting the combined character string on the screen and replacing the variable character part in the combined character string with the input focus includes: The combined character string is displayed on the screen, and the variable character part in the combined character string is replaced with the input focus according to the replacement identifier.
5. The method according to any one of claims 1 to 3, characterized in that: After putting the combined character string on the screen, replacing the variable character part in the combined character string with the input focus, and switching to the input method mode corresponding to the variable character part, the method further includes: Get the focus movement operation; The input focus is moved to the end of the combined character string according to the focus moving operation, and the input method mode is switched to a target input method mode.
6. An input device, characterized in that: The device comprises an acquisition unit, a display unit, and a screen unit: The acquisition unit is used to acquire a target character string; The display unit is used to display candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes; The screen-up unit is used to, if a screen-up operation is obtained for the candidate item corresponding to the combined character string, put the combined character string on the screen, replace the variable character part in the combined character string with the input focus, and switch to the input method mode corresponding to the variable character part; the variable character part is a type of character content.
7. The device according to claim 6, characterized in that The type of the variable character part is preset or determined according to the recognized user input habits.
8. The device according to claim 6, characterized in that The target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
9. The device according to any one of claims 6 to 8, wherein the display unit comprises a determination subunit and a display subunit: The determination subunit is used to determine the variable character part in the combined character string; The display subunit is used to display the variable character part in the combined character string by replacing the mark when displaying the combined character string by the candidate item; The screen-up unit is specifically used to put the combined character string on the screen, and replace the variable character part in the combined character string with the input focus according to the replacement identifier.
10. The device according to any one of claims 6 to 8, further comprising a moving unit, wherein the moving unit comprises an acquiring subunit and a moving subunit: The acquisition subunit is used for acquiring a focus moving operation after the combined character string is displayed on the screen, the variable character part in the combined character string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched to; The moving subunit is used to move the input focus to the end of the combined character string according to the focus moving operation, and switch the input method mode to the target input method mode.
11. An input device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Get the target string; Displaying candidate items corresponding to the target character string, wherein the candidate items include candidate items corresponding to a combined character string, wherein the combined character string includes different types of character contents, and different types of character contents correspond to different input method modes; If the screen display operation for the candidate item corresponding to the combined string is obtained, the combined string is displayed on the screen, and the variable character part in the combined string is replaced with the input focus, and the input method mode corresponding to the variable character part is switched; the variable character part is a type of character content.
12. The device according to claim 11, characterized in that The type of the variable character part is preset or determined according to the recognized user input habits.
13. The device according to claim 11, characterized in that The target character string is a character string input by a user, or is an upper-screen character string determined according to the input focus.
14. The device according to any one of claims 11 to 13, characterized in that: The processor executes the one or more programs including instructions for performing the following operations: Determining a variable character portion in the combined character string; When the combined character string is displayed through the candidate items, the variable character part in the combined character string is displayed through the replacement mark; The combined character string is displayed on the screen, and the variable character part in the combined character string is replaced with the input focus according to the replacement identifier.
15. The device according to any one of claims 11 to 13, characterized in that: The processor executes the one or more programs including instructions for performing the following operations: Get the focus movement operation; The input focus is moved to the end of the combined character string according to the focus moving operation, and the input method mode is switched to a target input method mode.
16. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the input method as claimed in one or more of claims 1 to 5.
Citation Information
Patent Citations
Hand-written input method and apparatus based on complete mixing association storeroom
CN101256462A
Method and device for obtaining candidate
CN102646022A
