CN111831133A - Input method and device - Google Patents

Input method and device Download PDF

Info

Publication number
CN111831133A
CN111831133A CN201910329277.1A CN201910329277A CN111831133A CN 111831133 A CN111831133 A CN 111831133A CN 201910329277 A CN201910329277 A CN 201910329277A CN 111831133 A CN111831133 A CN 111831133A
Authority
CN
China
Prior art keywords
character string
character
input
combined
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910329277.1A
Other languages
Chinese (zh)
Other versions
CN111831133B (en
Inventor
余天照
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910329277.1A priority Critical patent/CN111831133B/en
Priority claimed from CN201910329277.1A external-priority patent/CN111831133B/en
Publication of CN111831133A publication Critical patent/CN111831133A/en
Application granted granted Critical
Publication of CN111831133B publication Critical patent/CN111831133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an input method and device, wherein a character string corresponding to a target character string is determined according to an acquired target character string and displayed through candidate items, the character string corresponding to the target character string is provided with a combined character string comprising various types of character contents, and one type of character content is variable character content. And if screen-on operation aiming at the candidate items corresponding to the combined character string is acquired, the combined character string is displayed on the screen, the variable character part in the combined character string is replaced by the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part. Therefore, the user can conveniently input the specific content of the variable character part at the input focus under the switched input method mode, the input operation of the combined character string on the screen of the user is simplified, and the input cost of the user is reduced.

Description

Input method and device
Technical Field
The present application relates to the field of input methods, and in particular, to an input method and apparatus.
Background
The input method may provide a convenient character input service for the user.
In the input process, a user sometimes needs to screen a combined character string, the combined character string comprises at least two types of character contents, and the different types of character contents generally need to be conveniently input through different input method modes. For example, the combined character string is "pulse 92 times/minute", which includes the contents of the chinese character type, which needs to be conveniently input by the chinese character input method mode, and the contents of the numeric character type, which needs to be conveniently input by the numeric input method mode.
Because the on-screen combined character string needs to switch the input method mode for many times along with the change of the type of the character content to be on-screen in the input process, the operation is complicated, and the input cost of a user is high.
Disclosure of Invention
In order to solve the technical problem, the application provides an input method and an input device, which simplify the input operation of the combined character string on the screen of the user and reduce the input cost of the user.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides an input method, where the method includes:
acquiring a target character string;
displaying candidate items corresponding to the target character strings, wherein the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
Optionally, the type of the variable character part is preset or determined according to the recognized input habit of the user.
Optionally, the target character string is a character string input by a user, or an on-screen character string determined according to the input focus.
Optionally, the displaying the 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 item, the variable character part in the combined character string is displayed through the replacement identification;
the step of displaying the combined character string on a screen and replacing the variable character part in the combined character string with an input focus comprises the following steps:
and the combined character string is displayed on a screen, and the variable character part in the combined character string is replaced by the input focus according to the replacement identification.
Optionally, after the combined character string is displayed on a screen, the variable character part in the combined character string is replaced with an input focus, and an input method mode corresponding to the variable character part is switched to, the method further includes:
acquiring a focus moving operation;
and moving the input focus to the tail of the combined character string according to the focus moving operation, and switching an input method mode into a target input method mode.
In a second aspect, an embodiment of the present application provides an input device, where the device includes an acquisition unit, a display unit, and an on-screen unit:
the acquisition unit is used for acquiring a target character string;
the display unit is used for displaying the candidate items corresponding to the target character strings, the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
the screen-loading unit is used for loading the combined character string on a screen if screen-loading operation aiming at the candidate items corresponding to the combined character string is acquired, replacing the variable character part in the combined character string with an input focus and switching to an input method mode corresponding to the variable character part; the variable character portion is a type of character content.
Optionally, the type of the variable character part is preset or determined according to the recognized input habit of the user.
Optionally, the target character string is a character string input by a user, or an on-screen character string determined according to the input focus.
Optionally, the display unit includes a determining subunit and a display subunit:
the determining subunit is configured to determine a variable character part in the combined character string;
the display subunit is configured to display the variable character part in the combined character string by using a replacement identifier when the combined character string is displayed by using the candidate item;
the screen-loading unit is specifically configured to screen-load the combined character string, and replace the variable character part in the combined character string with the input focus according to the replacement identifier.
Optionally, the apparatus further includes a mobile unit, and the mobile unit includes an acquiring subunit and a moving subunit:
the acquiring subunit is configured to acquire a focus moving operation after the combined character string is displayed on a screen, a variable character part in the combined character string is replaced with an input focus, and an input method mode corresponding to the variable character part is switched to;
and the moving subunit is used for moving the input focus to the tail of the combined character string according to the focus moving operation and switching the input method mode into the target input method mode.
In a third aspect, an input device is provided in an embodiment of the present application, which includes a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors includes instructions for:
acquiring a target character string;
displaying candidate items corresponding to the target character strings, wherein the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
Optionally, the type of the variable character part is preset or determined according to the recognized input habit of the user.
Optionally, the target character string is a character string input by a user, or an on-screen character string determined according to the input focus.
Optionally, the processor executing the one or more programs includes instructions for:
determining a variable character portion in the combined character string;
when the combined character string is displayed through the candidate item, the variable character part in the combined character string is displayed through the replacement identification;
and the combined character string is displayed on a screen, and the variable character part in the combined character string is replaced by the input focus according to the replacement identification.
Optionally, the processor executing the one or more programs includes instructions for:
after the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus and an input method mode corresponding to the variable character part is switched, focus moving operation is obtained;
and moving the input focus to the tail of the combined character string according to the focus moving operation, and switching an input method mode into a target input method mode.
In a fourth aspect, embodiments of the present application provide a machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform one or more of the input methods described above.
According to the technical scheme, the character strings corresponding to the target character strings can be determined through association and the like according to the obtained target character strings and displayed through the candidate items, the character strings corresponding to the target character strings are provided with combined character strings comprising various types of character contents, one type of character contents is variable character contents, and namely one type of character contents in the combined character strings can be changed in different input scenes. And if screen-on operation aiming at the candidate items corresponding to the combined character string is acquired, the combined character string is displayed on the screen, the variable character part in the combined character string is replaced by the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part. Therefore, the user can conveniently input the specific content of the variable character part in the switched input method mode at the input focus, the input focus does not need to be repositioned, the input method mode does not need to be switched for inputting the variable character part, the input operation of the combined character string on the screen of the user is simplified, and the input cost of the user is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an input method according to an embodiment of the present application;
fig. 2 is a structural diagram of an input device according to an embodiment of the present disclosure;
fig. 3 is a structural diagram of an input device according to an embodiment of the present application;
fig. 4 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
At present, when a user needs to screen a combined character string, an input method mode can be switched for many times along with the change of the type of character content to be screened in the input process, the operation is complicated, and the input cost of the user is high.
To this end, an embodiment of the present application provides an input method, including: after the target character string is obtained, the character string corresponding to the target character string is determined through association and the like, and the determined character string is used as a candidate item to be displayed. The target character string described herein may be a character string for embodying the user's on-screen purpose. For example, when the user wants to screen the character string "pulse", the character string "mailbox" may be input, and the character string "mailbox" may be used as the target character string for displaying the purpose of the user (i.e., "pulse"). According to the target character string, a character string corresponding to the target character string can be determined, for example: according to the target character string "mailbox", it can be determined that the target character string "mailbox" corresponds to character strings such as "pulse", "mebo", "pulse wave", and the like, and the determined character strings can be displayed as candidates.
In the method, a combined character string may be included in the character string determined according to the target character string, where the combined character string may be a character string including multiple types of character contents, such as: the combined string may be "pulse: 92 times/min ", wherein the combined character string comprises Chinese character content 'pulse', digital character content '92', symbol type character content '/', and the like.
It can be understood that, corresponding input method modes correspond to different types of character contents in the combined character string, and only when the input method modes correspond to the types of the character contents, the input of the types of the character contents can be completed most conveniently. That is, for the character similarity to be input, it is most convenient to input the character content to be input only when the input method mode corresponds to the type of the character content to be input; when the input method mode does not correspond to the type of the character content to be input, although the input of the character content of the type can be completed, the convenience degree is relatively reduced. In addition, in the combined character string, one type of character content is usually included as variable character content, that is, in the combined character string, one type of character content is usually changed according to an input scene. For example: for the combined string "pulse: 92 times/min ", wherein the numeric character content" 92 "may be a variable character content, that is, corresponding pulse number may correspond to different subjects, and the numeric character content is variable. And when the user selects the candidate item corresponding to the combined character string to be displayed on the screen, acquiring the screen displaying operation of the candidate item corresponding to the combined character string, and displaying the combined character string on the screen. Meanwhile, the variable character part in the combined character string can be replaced by an input focus, and the input method mode can be switched to the input method mode corresponding to the variable character part. The input focus may be used to position a current input position, for example, the input focus may be a cursor or the like. Therefore, the user can directly and conveniently input the specific content of the variable character part at the input focus according to the switched input method mode, the input focus does not need to be repositioned, the input method mode does not need to be switched for inputting the variable character part, the input operation of the combined character string on the screen of the user is simplified, and the input cost of the user is reduced.
Next, an input method provided by an embodiment of the present application is described with reference to fig. 1, where the method includes:
s101: and acquiring a target character string.
The target character string may be a character string for embodying the purpose of displaying a screen of a user, and for the target character string, in one possible implementation, for example, the target character string may be a character string input by the user, or may also be a character string on the screen determined according to the input focus.
In the embodiment of the present application, the target character string may be a character string input by a user. For example, the target character string may be a character string input into the character input box by the user through input modes such as pinyin, strokes, voice and the like according to the purpose of the user's screen. The following is a description of a specific example: the user is looking at "pulse: when the number of times is 92/minute ", the character string" mailbox "can be input into the character input box through the pinyin input method, and then the character string" mailbox "can be used as a target character string for embodying the purpose of screen display of the user.
In addition, the target character string may also be an on-screen character string determined according to the input focus. The input focus may be used to position a current input position, for example, the input focus may be a cursor or the like. That is, for the current on-screen character string, the on-screen character string determined according to the input focus can also be used as the target character string for embodying the on-screen purpose of the user. The following is a description of a specific example: assume that the current on-screen string is "pulse: 92 times/min ", and the current input focus is" pulse: at the end of 92 times/min ", then the current on-screen string" pulse: 92 times/min "is determined as the target character string. It can be understood that, for the current on-screen character string, the user can arbitrarily move the position of the input focus in the current on-screen character string, and then, according to the input focuses at different positions in the current on-screen character string, the corresponding target character strings can be respectively determined.
S102: and displaying the candidate items corresponding to the target character strings.
After the target character string is obtained, according to the target character string, character strings corresponding to the target character string may be determined by means of association or the like, and the determined character strings are presented as candidates for the user, for example: according to the target character string "mailbox", the corresponding character string may be determined by means of association or the like as follows: pulse, pulse: 92 times/minute, pulse wave, etc., and these identified character strings are displayed as candidates. Another example is: the current target string is the on-screen string "pulse" determined from the input focus: 92/min ", then, based on the target string" pulse: 92 times/min ", determining that the string corresponding to the target string may include" temperature: 37 c ", etc., these determined character strings are displayed as candidates.
It should be noted that, if the candidate determined according to the target character string includes the combined character string, when the combined character string is presented by the candidate, in order to prompt the user that the combined character string has a variable character part, the variable character part in the combined character string may be replaced by a replacement identifier, and then presented, the replacement identifier may be used to prompt the user that the replaced part is the variable character part, for example, the candidate "pulse: the variable character portion "92" in 92 times/min "is replaced with the replacement symbol" a ", thereby obtaining" pulse: and A times/min ", and is shown as a candidate. Thereby serving to prompt the user that the combined string has a variable character portion.
When a combined character string is used as a candidate, a method of replacing a variable character portion of the combined character string will be described in the following embodiments.
In the embodiment of the present application, the candidate determined according to the target character string may include a candidate corresponding to the combined character string. The combined character string may be a character string including different types of character contents, where the types of the character contents may be corresponding categories divided from different character contents, for example, the types of the character contents may be a chinese character type, a symbol type, a numeric type, and the like, and for different types of character contents, different input method modes are corresponding, for example: for the character content of the chinese character type, 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 strings, for example, the combined character string may be "pulse: 92 times/min ", including the character content" pulse "of the chinese character type, the character content" 92 "of the numeric type, and the character content"/"of the symbol type.
S103: if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
It is understood that a variable character part is usually included in the combined character string, where the variable character part may be a type of character content in the combined character string, and the variable character part in the combined character string may vary according to an input scene. For example: for the combined string "pulse: 92 times/min ", wherein the digital type character content" 92 "may be a variable character part, that is, corresponding to the pulse number for different objects, the digital type character content is variable under different input scenes.
In the embodiment of the present application, if a user selects a candidate item of a combined character string from the candidate items to perform screen-up, that is, performs screen-up operation on the candidate item corresponding to the combined character string, the screen-up operation on the candidate item corresponding to the combined character string may be obtained, the combined character string is screen-up, a variable character part in the combined character string is replaced with an input focus, and a current input method mode is switched to an input method mode corresponding to the variable character part. For example: when the user selects the combined string "pulse: and when the combined character string is displayed for 92 times/minute, screen display operation of candidate items corresponding to the combined character string is acquired, the combined character string is displayed, and pulse rate of the combined character string is determined as follows: the variable character part "92" in 92 times/min "is replaced with an input focus, and the current input method mode is switched to the numeric input method mode corresponding to the variable character part" 92 ".
Therefore, the user can directly and conveniently input the specific content of the variable character part at the input focus according to the switched input method mode, the input focus does not need to be repositioned, the input method mode does not need to be switched for inputting the variable character part, the input operation of the combined character string on the screen of the user is simplified, and the input cost of the user is reduced.
It should be noted that, in the embodiment of the present application, the specific showing manner of the candidate item corresponding to the target character string in step S102 is not limited, and in a possible implementation manner, the showing method of the candidate item corresponding to the target character string may include:
s201: a variable character portion of the combined character string is determined.
For the candidate corresponding to the combined character string, the variable character part can be determined, for example: for the combined string "pulse: 92 times/minute ", it can be determined that the variable character portion therein is the character content of the numeric type, i.e.," 92 ".
The determination of the variable character portions in the combined character string may be accomplished by determining the types of the variable character portions in the combined character string, such as: determining a combined character string' pulse: the type of the variable character part in the 92 times/minute "is the number type, and it can be determined that the variable character part in the combined character string is" 92 ".
The determination of the type of the variable character part in the combined character string may be performed in a preset manner in one possible implementation, for example: for the combined string "pulse: 92 times/min ", the number type thereof may be preset as the type of the variable character part in the combined character string. Then, the numeric character content in the combined character string is the variable character portion in the combined character string.
In addition, the type of the variable character portion in the combined character string may also be determined according to the recognized input habits of the user. Namely: for a certain combined character string, the identified user always changes only one type of character content in the combined character string under different input scenes, and does not change other types of character content in the combined character string so as to complete the input of the combined character string, so that the type of the variable character part in the combined character string can be determined as the type of the character content, which is changed frequently by the identified user, of the one type of character content in the combined character string. For example: for the combined string "pulse: 92 times/min ", the identified user may correspondingly input" pulse: 83 times/minute "," pulse: 89 times/minute "," pulse: 100 times/minute ", that is, only the numeric character content is changed, but the other types of character content in the combined character string are not changed, the pulse rate of the combined character string can be determined according to the recognized input habit of the user: the type of the variable character part of 92 times/minute "is a numeric type.
S202: and when the combined character string is displayed through the candidate item, the variable character part in the combined character string is displayed through the replacement identifier.
When the combined character string is displayed through the candidate item, the variable character part in the combined character string can be replaced by the replacement identifier and then displayed. The replacement identifier described herein is an identifier for replacing a variable character portion in a composite character string, and the replacement identifier may be used to prompt the user that the replaced portion is a variable character portion, for example: the replacement flag may be "D". The following is a description of a specific example: after combining the string "pulse: when the 92 times/minutes "are shown through the candidate, the variable character part can be replaced by the replacement identifier" D ", and the candidate of the combined character string at this time becomes" pulse: d times/min ", the replaced combined character string" pulse: d times/min "is presented as a candidate for the combined string.
Then, in the embodiment of the present application, one possible implementation manner in S103 may be as shown in S203:
s203: and the combined character string is displayed on a screen, and the variable character part in the combined character string is replaced by the input focus according to the replacement identification.
And after screen-on operation aiming at the candidate items corresponding to the combined character string is acquired, the replaced combined character string is subjected to screen-on operation, and the replacement identification in the combined character string is replaced by an input focus. For example: for the replaced combined string "pulse: d times/min ", the replacement identifier" D "therein may be replaced with the input focus when the user is on the screen.
In this way, when the candidate item corresponding to the combined character string is displayed, the variable character part in the combined character string is replaced by using the replacement identifier, so that the situation that the variable character part in the combined character string only corresponds to a specific input scene is avoided, for example, the displayed candidate item of the combined character string is' pulse: d times/min ", rather than" pulse: 92 times/minute ", thereby improving the standardization when showing the candidate items and improving the input experience of the user.
On the basis of the combined character string input method shown in fig. 1, after the combined character string is displayed on the screen, there may be a case where the current input focus is located within the combined character string, such as: on the upper screen, the combined character string "pulse: after 89 times/min ", the input focus is between" 89 "and" second "in the combined character string, i.e. the combined character string" pulse: 89 times/min ". For this situation, in order to facilitate the user to continue inputting new character content after the combined character string is displayed on the screen, in one possible implementation manner, 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 method may further include:
s301: a focus movement operation is acquired.
In the 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 may 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 portion, the user may also perform a focus moving operation to move the input focus from the current variable character portion to the end of the combined character string, where the focus moving operation may be an operation corresponding to the user moving the input focus to a desired input position. After the user completes the focus movement operation, the focus movement operation is acquired.
For example: the combined character string "pulse: the method comprises the steps of displaying 92 times/minute on a screen, replacing a variable character part 92 in the combined character string with an input focus, switching an input method mode to an input method mode corresponding to the variable character part, namely a digital input method mode, enabling a user to input 89 at the position of the variable character part, enabling the user to perform a focus moving operation after completing the input of the variable character part, for example, enabling the user to press a Tab key during the focus moving operation, and acquiring the focus moving operation after completing the focus moving operation.
S302: and moving the input focus to the tail of the combined character string according to the focus moving operation, and switching an input method mode into a target input method mode.
After the focus moving operation is acquired, the input focus may be moved to the end of the combined character string according to the focus moving operation, and the input method mode may be switched to a target input method mode, where the target input method mode may be an input method mode convenient for the user to input new character content after the user completes inputting the combined character string, for example, the target input method mode may be an input method mode before the user inputs the combined character string, or may be an input method mode used by the user most frequently, and the like. In addition, for the combined character string on the current screen, a new target character string can be determined according to the current input focus, so that the prediction of the next screen-on purpose of the user and the association of candidate items are carried out, the input operation of the user for continuing to screen new character content is simplified, and the input cost of the user is reduced.
The following is a description of a specific example: the user completes the input "pulse: after 89/min ", the input focus is moved to" pulse: after 89 times/minute ", and the input method mode is switched to the Chinese character input method mode, thus being convenient for the user to finish the pulse: after 89 times/minute' input, the user can conveniently input new character content which the user wishes to input continuously at the input focus directly according to the input method mode which is switched, and the input method mode does not need to be switched for inputting the new character content and the input focus does not need to be repositioned. Further, for a current "pulse on screen: 89 times/min ", and may also be determined according to the current input focus, i.e. at" pulse: the input focus at the end of 89 times/minute determines a new target character string, namely' pulse: 89 times/min ", so that the pulse rate can be adjusted according to the new target character string" pulse: 89 times/minute ", the prediction of the next screen-up purpose of the user and the association of the candidate items are performed, for example, the candidate item" body temperature: d ℃, and the like, thereby simplifying the input operation of the user for continuing to screen new character contents and reducing the input cost of the user.
Based on the input method provided by the corresponding embodiment of fig. 1, the embodiment of the present application provides an input device, referring to fig. 2, the device includes an obtaining unit 201, a display unit 202, and an on-screen unit 203:
the acquiring unit 201 is configured to acquire a target character string;
the presentation unit 202 is configured to present candidate items corresponding to the target character string, where the candidate items include candidate items corresponding to a combined character string, the combined character string includes different types of character contents, and the different types of character contents correspond to different input method modes;
the screen-loading unit 203 is configured to, if screen-loading operation for the candidate item corresponding to the combined character string is acquired, screen-load the combined character string, replace a variable character part in the combined character string with an input focus, and switch to an input method mode corresponding to the variable character part; the variable character portion is a type of character content.
Optionally, the type of the variable character part is preset or determined according to the recognized input habit of the user.
Optionally, the target character string is a character string input by a user, or an on-screen character string determined according to the input focus.
Optionally, the display unit 202 includes a determining subunit and a displaying subunit:
the determining subunit is configured to determine a variable character part in the combined character string;
the display subunit is configured to display the variable character part in the combined character string by using a replacement identifier when the combined character string is displayed by using the candidate item;
the screen-loading unit 203 is specifically configured to screen-load the combined character string, and replace the variable character part in the combined character string with the input focus according to the replacement identifier.
Optionally, the apparatus further includes a mobile unit, and the mobile unit includes an acquiring subunit and a moving subunit:
the acquiring subunit is configured to acquire a focus moving operation after the combined character string is displayed on a screen, a variable character part in the combined character string is replaced with an input focus, and an input method mode corresponding to the variable character part is switched to;
and the moving subunit is used for moving the input focus to the tail of the combined character string according to the focus moving operation and switching the input method mode into the target input method mode.
In summary, according to the obtained target character string, the character string corresponding to the target character string may be determined by means of association or the like, and displayed by the candidate item, where the character string corresponding to the target character string has a combined character string including multiple types of character contents, where one type of character content is a variable character content, that is, one type of character content in the combined character string may be changed in different input scenarios. And if screen-on operation aiming at the candidate items corresponding to the combined character string is acquired, the combined character string is displayed on the screen, the variable character part in the combined character string is replaced by the input focus, and the input method mode is switched to the input method mode corresponding to the variable character part. Therefore, the user can conveniently input the specific content of the variable character part in the switched input method mode at the input focus, the input focus does not need to be repositioned, the input method mode does not need to be switched for inputting the variable character part, the input operation of the combined character string on the screen of the user is simplified, and the input cost of the user is reduced.
Based on the input method and apparatus provided in the foregoing, the present embodiment provides an input device, which may be a terminal device, and fig. 3 is a block diagram illustrating 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, and the like.
Referring to fig. 3, the terminal device 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 312, sensor component 314, and communication component 316.
The processing component 302 generally controls the overall operation of the terminal device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the terminal device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks.
The power supply component 306 provides power to the various components of the terminal device 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 comprises a screen providing an output interface between said terminal device 300 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be 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.
Sensor component 314 includes one or more sensors for providing various aspects of status assessment for terminal device 300. For example, sensor assembly 314 may detect an open/closed state of terminal device 300, the relative positioning of components, such as a display and keypad of terminal device 300, sensor assembly 314 may also detect a change in the position of terminal device 300 or a component of terminal device 300, the presence or absence of user contact with terminal device 300, orientation or acceleration/deceleration of terminal device 300, and a change in the temperature of terminal device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light 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.
The communication component 316 is configured to facilitate communication between the terminal device 300 and other devices in a wired or wireless manner. The terminal device 300 may 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 section 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 300 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the terminal device 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of retrieving keywords in speech, the method comprising:
acquiring a target character string;
displaying candidate items corresponding to the target character strings, wherein the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
Fig. 4 is a schematic structural diagram of a server in an embodiment of the present invention. The server 400 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.
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-output interfaces 458, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An input method, characterized in that the method comprises:
acquiring a target character string;
displaying candidate items corresponding to the target character strings, wherein the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
2. The method of claim 1, wherein the type of the variable character part is preset or determined according to the recognized input habit of the user.
3. The method of claim 1, wherein the target character string is a character string input by a user or an on-screen character string determined according to the input focus.
4. The method according to any one of claims 1 to 3, wherein the presenting the candidate item corresponding to the target character string comprises:
determining a variable character portion in the combined character string;
when the combined character string is displayed through the candidate item, the variable character part in the combined character string is displayed through the replacement identification;
the step of displaying the combined character string on a screen and replacing the variable character part in the combined character string with an input focus comprises the following steps:
and the combined character string is displayed on a screen, and the variable character part in the combined character string is replaced by the input focus according to the replacement identification.
5. The method according to any one of claims 1-3, wherein after switching to an input method mode corresponding to the variable character part by switching the combined character string on a screen and replacing the variable character part in the combined character string with an input focus to the input method mode, the method further comprises:
acquiring a focus moving operation;
and moving the input focus to the tail of the combined character string according to the focus moving operation, and switching an input method mode into a target input method mode.
6. An input device, characterized in that the device comprises an acquisition unit, a presentation unit, a screen-up unit:
the acquisition unit is used for acquiring a target character string;
the display unit is used for displaying the candidate items corresponding to the target character strings, the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
the screen-loading unit is used for loading the combined character string on a screen if screen-loading operation aiming at the candidate items corresponding to the combined character string is acquired, replacing the variable character part in the combined character string with an input focus and switching to an input method mode corresponding to the variable character part; the variable character portion is a type of character content.
7. The apparatus of claim 6, wherein the type of the variable character part is preset or determined according to the recognized input habit of the user.
8. The apparatus of claim 6, wherein the target character string is a character string input by a user or an on-screen character string determined according to the input focus.
9. An input apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
acquiring a target character string;
displaying candidate items corresponding to the target character strings, wherein the candidate items comprise candidate items corresponding to combined character strings, the combined character strings comprise different types of character contents, and the different types of character contents correspond to different input method modes;
if screen-on operation aiming at the candidate items corresponding to the combined character string is obtained, the combined character string is displayed on a screen, a variable character part in the combined character string is replaced by an input focus, and an input method mode corresponding to the variable character part is switched; the variable character portion is a type of character content.
10. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the input method of one or more of claims 1-5.
CN201910329277.1A 2019-04-23 Input method and device Active CN111831133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910329277.1A CN111831133B (en) 2019-04-23 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910329277.1A CN111831133B (en) 2019-04-23 Input method and device

Publications (2)

Publication Number Publication Date
CN111831133A true CN111831133A (en) 2020-10-27
CN111831133B CN111831133B (en) 2024-10-29

Family

ID=

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866170A (en) * 2005-05-17 2006-11-22 英华达(上海)电子有限公司 Method for intelligent input of short message in mobile communication device
CN101256462A (en) * 2007-02-28 2008-09-03 北京三星通信技术研究有限公司 Hand-written input method and apparatus based on complete mixing association storeroom
CN101587420A (en) * 2009-06-25 2009-11-25 宇龙计算机通信科技(深圳)有限公司 A kind of input method and portable terminal that is applied to portable terminal
CN102646022A (en) * 2012-04-10 2012-08-22 北京搜狗科技发展有限公司 Method and device for obtaining candidate
WO2014040510A1 (en) * 2012-09-12 2014-03-20 腾讯科技(深圳)有限公司 Method, device, and terminal equipment for enabling intelligent association in input method
CN105302332A (en) * 2014-07-25 2016-02-03 中国移动通信集团公司 Pinyin input method and realization apparatus thereof
US20170249505A1 (en) * 2016-02-29 2017-08-31 Myscript Method and system for character insertion in a character string
CN107340881A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of input method and electronic equipment
CN107977089A (en) * 2016-10-21 2018-05-01 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input
CN108279787A (en) * 2018-01-16 2018-07-13 芯盾网安(北京)科技发展有限公司 Input method and device
US20180203827A1 (en) * 2017-01-16 2018-07-19 International Business Machines Corporation Lightweight tracking of substituted characters in text fields

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866170A (en) * 2005-05-17 2006-11-22 英华达(上海)电子有限公司 Method for intelligent input of short message in mobile communication device
CN101256462A (en) * 2007-02-28 2008-09-03 北京三星通信技术研究有限公司 Hand-written input method and apparatus based on complete mixing association storeroom
CN101587420A (en) * 2009-06-25 2009-11-25 宇龙计算机通信科技(深圳)有限公司 A kind of input method and portable terminal that is applied to portable terminal
CN102646022A (en) * 2012-04-10 2012-08-22 北京搜狗科技发展有限公司 Method and device for obtaining candidate
WO2014040510A1 (en) * 2012-09-12 2014-03-20 腾讯科技(深圳)有限公司 Method, device, and terminal equipment for enabling intelligent association in input method
CN105302332A (en) * 2014-07-25 2016-02-03 中国移动通信集团公司 Pinyin input method and realization apparatus thereof
US20170249505A1 (en) * 2016-02-29 2017-08-31 Myscript Method and system for character insertion in a character string
CN107340881A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of input method and electronic equipment
CN107977089A (en) * 2016-10-21 2018-05-01 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input
US20180203827A1 (en) * 2017-01-16 2018-07-19 International Business Machines Corporation Lightweight tracking of substituted characters in text fields
CN108279787A (en) * 2018-01-16 2018-07-13 芯盾网安(北京)科技发展有限公司 Input method and device

Similar Documents

Publication Publication Date Title
CN107037949B (en) Split screen display method and device
US9667774B2 (en) Methods and devices for sending virtual information card
US20200125374A1 (en) Method and device for starting application program
US20170344177A1 (en) Method and device for determining operation mode of terminal
CN105404401A (en) Input processing method, apparatus and device
CN104616241A (en) Video screen-shot method and device
EP3644177A1 (en) Input method, device, apparatus, and storage medium
CN105511777A (en) Session display method and device of touch display screen
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN104850643B (en) Picture comparison method and device
CN107943317B (en) Input method and device
CN112051949A (en) Content sharing method and device and electronic equipment
CN108766427B (en) Voice control method and device
US20160349947A1 (en) Method and device for sending message
CN112068764B (en) Language switching method and device for language switching
CN110648657A (en) Language model training method, language model construction method and language model construction device
CN106447747B (en) Image processing method and device
CN109739415B (en) Session switching method and device
CN104317480B (en) Character keys display methods, device and terminal
CN111831133B (en) Input method and device
CN111208910B (en) Cloud association method and related device
CN110399045B (en) Input method and device
CN111831133A (en) Input method and device
CN111831131B (en) Association input method and related device
CN112015281A (en) Cloud association method and related device

Legal Events

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