CN107037888B - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN107037888B
CN107037888B CN201610077776.2A CN201610077776A CN107037888B CN 107037888 B CN107037888 B CN 107037888B CN 201610077776 A CN201610077776 A CN 201610077776A CN 107037888 B CN107037888 B CN 107037888B
Authority
CN
China
Prior art keywords
touch operation
input
character
target character
threshold range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610077776.2A
Other languages
Chinese (zh)
Other versions
CN107037888A (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 CN201610077776.2A priority Critical patent/CN107037888B/en
Publication of CN107037888A publication Critical patent/CN107037888A/en
Application granted granted Critical
Publication of CN107037888B publication Critical patent/CN107037888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses an input method, an input device and a device for inputting, wherein the input method comprises the following steps: acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters; determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range; and responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key. In the technical scheme, the key force of the touch operation is obtained when the character is input, and the character type to be input by the user is confirmed according to the key force of the touch operation, so that the keyboard mode switching when different character types are input is avoided, the technical problems of complicated input process and low input efficiency caused by the keyboard mode switching in the prior art are solved, the input operation steps are simplified, and the input efficiency is improved.

Description

Input method, input device and input device
Technical Field
The present invention relates to the field of information technologies, and in particular, to an input method, an input device, and an input device.
Background
With the continuous development of science and technology, portable touch equipment is rapidly developed and popularized, and human-computer interaction is more and more frequent. One of the most basic ways of human-computer interaction is to input characters, commands, symbols, etc. through a keyboard.
On the existing touch device, for example, a smart phone is limited by the size of a touch screen, a keyboard is usually configured as a squared figure keyboard and a 26-key keyboard. Whether a nine-grid keyboard or a 26-key keyboard has four types of key characters: english letters, Chinese letters, numbers and symbols respectively correspond to three different keyboard modes of English, Chinese and numbers (including numbers and characters). When a user inputs different types of characters, the user needs to switch the mode through a keyboard mode switching key on a keyboard, for example: to input "yasi 007", the keyboard needs to be switched to the chinese mode to input "nihao" to select and input "nihao" in the corresponding input candidate bar, then the keyboard is switched to the english mode to input "yasi" and to select "yasi" in the input candidate bar, and then the keyboard is switched to the digital mode to input "007" to complete the input of "yasi 007", and the whole input process needs to frequently switch the input mode, which is tedious and inefficient.
Therefore, in the prior art, different keyboard modes need to be switched for inputting different types of characters on the touch device, and the technical problems of complicated input process and low input efficiency exist.
Disclosure of Invention
The embodiment of the invention provides an input method, an input device and an input device, which are used for solving the technical problems of complicated input process and low input efficiency caused by keyboard mode switching in the prior art, simplifying input operation steps and improving input operation efficiency.
The embodiment of the application provides an input method, which comprises the following steps:
acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
and responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
Optionally, the input keys correspond to at least two types of characters as follows:
english letters, chinese letters, numbers and symbols.
Optionally, displaying at least one input candidate character in response to the touch operation according to at least one target character corresponding to the target character type on the input key includes:
when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation;
and responding to the touch operation to display the at least one input candidate character.
Optionally, the character type of the at least one input candidate character includes: the candidate character type corresponding to the at least one preceding target character and the candidate character type corresponding to the at least one target character.
Optionally, the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes:
segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment;
and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
Optionally, after determining the threshold range to which the keystroke dynamics belongs and the target character type corresponding to the threshold range, the method further includes:
and displaying the characters of the target character type on all input keys of the touch keyboard.
Optionally, the determining the threshold range to which the key pressing force belongs and the target character type corresponding to the threshold range includes:
when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character;
when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character;
and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
An embodiment of the present application further provides an input device, including:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring touch operation on an input key and key strength of the touch operation, and the input key corresponds to at least two types of characters;
the determining unit is used for determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
and the display unit is used for responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
Optionally, the input keys correspond to at least two types of characters as follows: english letters, chinese letters, numbers and symbols.
Optionally, the display unit includes: the generating subunit is used for generating at least one input candidate character corresponding to the touch operation according to at least one previous target character corresponding to the previous touch operation and the at least one target character when the previous touch operation exists on the input key before the touch operation; the response subunit is configured to display the at least one input candidate character in response to the touch operation.
Optionally, the character type of the at least one input candidate character includes: the candidate character type corresponding to the at least one preceding target character and the candidate character type corresponding to the at least one target character.
Optionally, the generating subunit is specifically configured to: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
Optionally, the display unit is further configured to: and after determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range, displaying characters of the target character type on all input keys of the touch keyboard.
Optionally, the determining unit is specifically configured to: when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character; when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character; and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
Implementations also provide an apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
and responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
Optionally, the input keys correspond to at least two types of characters as follows: english letters, chinese letters, numbers and symbols.
Optionally, after determining the threshold range to which the key strength belongs and the target character type corresponding to the threshold range, the method further includes an instruction for performing the following operations:
and displaying the characters of the target character type on all input keys of the touch keyboard.
Optionally, the determining the threshold range to which the key pressing force belongs and the target character type corresponding to the threshold range includes:
when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character;
when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character;
and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
One or more technical solutions in the embodiments of the present application have at least the following technical effects:
when a user inputs characters through a touch keyboard, touch operation on an input key and key force of the touch operation are obtained through detection, a target character type corresponding to the touch operation, namely a character type to be input by the user, is determined according to a threshold value range to which the key force belongs, and at least one input candidate character is displayed in response to the touch operation according to at least one target character corresponding to the target character type on the input key, so that the user can select the character to be input from the at least one input candidate character. According to the method and the device, the character type to be input by the user is confirmed according to the key force of the touch operation, so that keyboard mode switching when different character types are input is avoided, the technical problems of complex input process and low input efficiency caused by keyboard mode switching in the prior art are solved, the input operation steps are simplified, and the input efficiency is improved.
Drawings
Fig. 1 is a flowchart of an input method according to an embodiment of the present application;
fig. 2 is a partial schematic view of a nine-grid keyboard provided in an embodiment of the present application;
FIG. 3 is a partial schematic view of a 26-key keyboard provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an input device provided in an embodiment of the present application;
fig. 5 is a schematic diagram of an apparatus for implementing the input method of fig. 1 according to an embodiment of the present disclosure.
Detailed Description
In the technical scheme provided by the embodiment of the application, the touch operation on the input key and the key strength of the touch operation are obtained through detection, the character type to be input by the touch operation is determined according to the key strength, and at least one input candidate character is displayed in response to the touch operation according to at least one target character corresponding to the target character type on the input key, so that a user can select the character to be input from the at least one input candidate character, the keyboard mode switching during inputting different character types is avoided, the technical problems of complicated input process and low input efficiency caused by the keyboard mode switching in the prior art are solved, the input operation steps are simplified, and the input efficiency is improved.
The main implementation principle, the specific implementation mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Example one
Referring to fig. 1, an embodiment of the present application provides an input method, including:
s101: acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters;
s102: determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
s103: and responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
In a specific implementation process, each input key on the touch keyboard provided by the embodiment of the application corresponds to at least two types of characters, which can be specifically a combination of any two or more than two of english letters, chinese letters, numbers and symbols. The touch keyboard can be in the form of a nine-grid keyboard or a 26-key keyboard. The touch keyboard can be divided into three modes of English, Pinyin and 123 (namely numbers), is the same as the existing touch keyboard, but does not need to separately set keyboard mode switching keys and separately switch the keyboard modes, and the current keyboard mode of the touch keyboard is automatically determined by analyzing the key strength of a user. Further, the touch keyboard provided by the present application may also have no keyboard mode division, and all characters possessed in various modes are correspondingly provided on each input key, for example: the corresponding symbol on the input key 1 in the nine-square grid keyboard. Is there a | A The ' number ' 1 ', the letter ' abc ' and the number ' 2 ' are corresponding to the input key ' 2 ', and the characters corresponding to the other input keys are shown in detail in figure 3; correspondingly, the letter "q" and the number "1" are corresponding to the input key "1" of the 26-key keyboard, i.e. the full keyboard, and the letter "n" and the symbol "! ", the characters corresponding to the other input keys are shown in detail in fig. 4.
When a user performs an input operation on the touch keyboard provided in the embodiment of the present application, the embodiment of the present application executes S101 to obtain a touch operation on an input key and a key strength of the touch operation. Specifically, when the touch operation on the input key is obtained, the position coordinate of the touch operation may be detected and obtained in the touch display area where the touch keyboard is located, which input key on the keyboard is touched by the user is determined through the position coordinate, and meanwhile, the key strength of the touch operation is obtained through the touch screen with the pressure sensing capability, and S102 is further executed. Touch gestures carrying pressure information can be recognized on a touch screen with pressure sensing capabilities, for example: the single-finger/multi-finger sliding operation with different pressing degrees, the single-finger/multi-finger clicking operation with different pressing degrees, the single-finger/multi-finger long-pressing operation with different pressing degrees and the like are adopted. The pressing force of each gesture can belong to a preset pressure range, is customized by a user or is generated by learning according to input behaviors of the user, such as light touch, light press and heavy press in 3 dtouch.
S102, determining a threshold range to which the key force of the touch operation belongs and a target character type corresponding to the threshold range. Specifically, the threshold range corresponding to the chinese character may be a first threshold range in the embodiment of the present application; setting the threshold range corresponding to the English characters as a second threshold range; and setting the threshold range corresponding to the numbers and the characters as a third threshold range. The specific values of the first threshold range, the second threshold range and the third threshold range may be preset ranges in the electronic device, or may be set individually by the user according to the actual needs of the user, and it is only necessary to ensure that two of them are not intersected. For example: the specific value of the first threshold range may be a strength value range corresponding to a light Touch in 3D-Touch, the specific value of the second threshold range may be a strength value range corresponding to a light Touch in 3D-Touch, and the specific value of the third threshold range may be a strength value range corresponding to a heavy Touch in 3D-Touch.
After determining the threshold range to which the key strength of the touch operation belongs, the corresponding target character type can be further determined, that is, it is determined that the operation intention of the touch operation is to input Chinese characters, English characters, numbers or symbols. For example: if the fact that the key strength of the touch operation belongs to the first threshold range is determined, the target character type corresponding to the first threshold range can be determined to be a Chinese character; if the fact that the key strength of the touch operation belongs to the second threshold range is determined, the target character type corresponding to the second threshold range can be determined to be an English character; if it is determined that the key strength of the touch operation belongs to the third threshold range, it may be determined that the target character type corresponding to the third threshold range is a number and a symbol.
After the target character type is determined, S103 is further executed: and responding to touch operation on the input key to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key. For example: assuming that the user taps the input key 2 in the nine-grid keyboard, in the embodiment of the present application, it is determined through S101 to S102 that the target character type corresponding to the touch operation is a chinese character, that is, the operation intention of the user is to input a chinese character, then the corresponding chinese characters on the input key are obtained as "a", "b", and "c", and at least one corresponding input candidate character is obtained according to the chinese characters "a", "b", and "c" in response to the tap operation and displayed, as follows: o, not, eat, bar, etc.
After the target character type is determined, the intention of the user in touch operation is determined, and therefore the characters of the target character type can be displayed on all input keys of the touch keyboard. According to the keyboard with the keyboard mode division, after the target character type of touch operation is determined, the touch keyboard is automatically switched to the keyboard mode corresponding to the target character type, so that characters of the target character type are displayed on input keys, and the intelligence of an input process is improved. According to the keyboard without distinguishing the keyboard modes, after the target character of touch operation is determined to be a Chinese character, characters of the target character type are displayed on all input keys of the touch keyboard. For example: the user re-presses the input keys 'abc' on the touch keyboard, the electronic equipment determines that the key force of the re-pressing operation belongs to a third threshold range, the target character type corresponding to the third threshold range is a number and a character, namely the operation intention of the user is to input the number and/or the character, then the number and the character are displayed on the input keys of the touch keyboard, letters on the input keys can not be displayed any more, so that the user can conveniently identify each input key, and the next touch operation of the user is facilitated.
In a specific application process, a user generally inputs a plurality of characters for continuously performing a plurality of touch operations on a touch keyboard, that is, there may be a previous touch operation before a current touch operation, for this reason, in the embodiment of the present application, when at least one input candidate character is displayed in response to a touch operation, and when a previous touch operation exists on an input key before the current touch operation, at least one input candidate character corresponding to the touch operation is generated according to at least one previous target character corresponding to the previous touch operation and at least one target character corresponding to the current touch operation; then, the at least one input candidate character is displayed in response to the current touch operation. For example: the target character input by the user in the previous touch operation is 'w', the target character input by the user in the current touch operation is 'o', the target character types are Chinese characters, then the two target characters can be combined to obtain pinyin 'wo', and at least one input candidate character is correspondingly provided according to the pinyin 'wo': i, Wo, etc.
According to the input method provided by the embodiment of the application, the user can continuously input the mixed character string without switching the keyboard mode, namely, the user can realize that the type of the target character input before is different from the type of the target character input currently without switching the keyboard mode. For example: the user continuously inputs "1 dong 704", wherein "dong" is tapping the corresponding target character type as a chinese character, the corresponding candidate character type is chinese, the rest are numbers according to the corresponding candidate character type, the input means may provide at least one candidate character "1 dong 704", "1 neem 704", etc. according to the "1 dong 704" input by the user.
Further, in order to improve the efficiency of mixing and inputting chinese, english, numeric, and characters, in the embodiments of the present application, when at least one input candidate character corresponding to a touch operation is generated according to at least one previous target character corresponding to a previous touch operation and at least one currently input target character, the following steps are performed:
preferably, at least one previous target character and at least one currently input target character are segmented, and adjacent target characters with the same character type are segments. For example: the target character string input by the user is as follows: "nihaotom 007", in which the target character type of "nihao" is chinese, the target character type of "tom" is english, and the target character type of "007" is numeric, the "nihaotom 007" is divided into three sections, "nihao", "tom", and "007".
And then, converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation. For example: converting the nihao to obtain a conversion result of 'hello' and 'hello', converting the Tom to obtain a conversion result of 'Tom', converting the '007' to obtain a conversion result of '007', and combining the conversion results of all the character segments to generate at least one input candidate character: "hello Tom 007" and "hello Tom 007" so that at least one of the generated candidate characters is displayed for the user to select which of the candidate characters is the input character.
The input method provided by the embodiment of the present application is fully illustrated by two specific embodiments as follows:
example 1: (nine-palace lattice touch keyboard)
The method comprises the steps that a user is not set to be in a nine-Chinese-key state, according to default setting of an input method, the touch key is used for expressing Chinese input intention, the touch key is used for expressing English input intention, and the touch key is used for expressing number symbol input intention, so that the user can tell whether Chinese, English or number symbol contents are required to be input in a current input string segment of the input method through forceful control in the input process, and the input method is helped to achieve the purpose of inputting mixed input contents containing Chinese, English, numbers and the like.
1. When the user wants to go to the screen, "i want the iPhone6s mobile phone", the user sequentially presses "969426492647466367746854" in accordance with the following operation procedure in 2 "
2. "9694264926" is pressed in sequence by a light touch, then "474663" is pressed in sequence by a light touch, then "6" is pressed by a heavy touch, then "7" is pressed by a light touch, and finally "746854" is pressed in sequence by a light touch.
3. At this time, the input method voice-character conversion logic will judge that the user wants Chinese when inputting "9694264926" by tapping, convert the corresponding Chinese candidate "i wants", "i wants to play", and when inputting "474663" by tapping, convert the corresponding English candidate "iPhone", and when inputting "6" by tapping, judge that the user wants to input digits, convert the corresponding digit candidate "6", when inputting "7" by tapping, recognize that the user wants to input English, convert the corresponding English candidate "p", "q", "r", "s", and the last "746854" is a string of tapping operation, so judge that the user wants Chinese, convert the corresponding Chinese candidate "cell phone", "hand", "i" and so on, and enter the next step of combining and generating candidate;
4. with the segmentation conversion result of the previous step, combining a plurality of different candidates of a plurality of segments and scoring each combined structure, as in the previous step, we can obtain the following combined results: "i want to use an iPhone6s mobile phone", "i want to play an iPhone6s mobile phone", "i want an iPhone6p mobile phone", "i want to play an iPhone6p mobile phone", "i want to play an iPhone6r collection", etc., and these combined results are scored through a language model, ranked according to the score and presented to the user, wherein the preference and the secondary preference are "i want an iPhone6s mobile phone" and "i want to play an iPhone6s mobile phone", respectively;
5. finally, the user selects to screen the mixed input candidate "i want the iPhone6s handset".
Example 2: (26 Key touch keyboard)
The user is not set to be in a 26-key Chinese state, according to default setting of the input method, the touch key is used for expressing Chinese input intention, the touch key is used for expressing English input intention, and the touch key is used for expressing numeric symbol input intention.
1. The user wants to go to the screen "i want the iPhone6s Mobile phone", the user presses "wooxinguponeshouji" in sequence according to the following operation procedure in 2 "
2. "woxiangyao" is sequentially pressed by a light touch, then "iphone" is sequentially pressed by a light touch, then "y" is pressed by a heavy press, then "s" is pressed by a light press, and finally "shouji" is sequentially pressed by a light touch.
3. At this time, the input method sound-character conversion logic can judge that the user wants to be Chinese when inputting 'woxiangyao' by touch, convert a corresponding Chinese candidate 'i wants', convert English when inputting 'iPhone' by touch, convert a corresponding English candidate 'iPhone', judge that the user wants to input numbers when inputting 'y' by touch, convert a corresponding number candidate '6', recognize that the user wants to input English when pressing's' lightly, convert a corresponding English candidate's', and finally 'shouji' is a string of touch operations, so that the user wants to be Chinese, convert a corresponding Chinese candidate 'cell phone', 'collection', and the like, and enter a next step of combination and generation candidate stage;
4. with the segmentation conversion result of the previous step, combining a plurality of different candidates of a plurality of segments and scoring each combined structure, as in the previous step, we can obtain the following combined results: "i want the mobile phone of iPhone6 s", "i want the collection of iPhone6 s", scoring the combined results through a language model, sorting the combined results according to the scores and showing the results to the user, wherein the first choice is "i want the mobile phone of iPhone6 s";
5. finally, the user selects to screen the mixed input candidate "i want the iPhone6s handset".
Compared with the prior art, when a user inputs a mixed input pinyin string such as '969426492647466367746854', the candidate 'i want an iPhone6s mobile phone' that the user wants cannot be given according to the existing input method conversion logic, and if the user wants to input such a mixed input result, the user needs to perform related input in corresponding keyboard modes switched at different stages, so that the input purpose is achieved in a segmented screen-up mode. According to the method provided by the embodiment of the application, different input intentions (Chinese, English and numeric symbols) are respectively given to the three forces (namely light touch, light press and heavy press) which can be recognized by the screen, different pinyin string segments can be converted into different results through different forces, and therefore mixed input results desired by a user can be conveniently converted, and complicated input operations such as frequent keyboard mode switching and the like of the user in the input process are reduced. Of course, in addition to the identification of the three kinds of force, more or less distinguishing force can be set according to the needs in the actual application process, so as to realize the input meeting the actual needs of the user or being more accurate.
Referring to fig. 4, based on the input method provided above, an embodiment of the present application further provides an input device, which includes:
an obtaining unit 401, configured to obtain a touch operation on an input key and a key strength of the touch operation, where the input key corresponds to at least two types of characters;
a determining unit 402, configured to determine a threshold range to which the key strength belongs, and a target character type corresponding to the threshold range;
a display unit 403, configured to respond to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
In a specific implementation process, the input keys correspond to at least two types of characters as follows: english letters, chinese letters, numbers and symbols.
The display unit 403 includes: the generating subunit is used for generating at least one input candidate character corresponding to the touch operation according to at least one previous target character corresponding to the previous touch operation and the at least one target character when the previous touch operation exists on the input key before the touch operation; the response subunit is configured to display the at least one input candidate character in response to the touch operation. The character type of the at least one input candidate character comprises: the candidate character type corresponding to the at least one preceding target character and the candidate character type corresponding to the at least one target character.
Further, the generating subunit is specifically configured to: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
In practical applications, the display unit 403 is further configured to: and after determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range, displaying characters of the target character type on all input keys of the touch keyboard.
The determining unit 402 is specifically configured to: when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character; when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character; and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
With regard to the input device in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an apparatus 800 for implementing the input method described above according to an exemplary embodiment. For example, the apparatus 800 may be a touch-sensitive device, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational 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 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 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 component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 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 apparatus 800 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 804 comprising instructions, executable by the processor 820 of the device 800 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 an input method, the method comprising: acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters; determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range; and responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key.
Wherein the input keys correspond to at least two types of characters as follows: english letters, chinese letters, numbers and symbols. After determining the threshold range to which the key force belongs and the target character type corresponding to the threshold range, the method further comprises the following operation instructions: and displaying the characters of the target character type on all input keys of the touch keyboard. The determining the threshold range to which the key strength belongs and the target character type corresponding to the threshold range includes: when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character; when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character; and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An input method, characterized in that the method comprises:
acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters as follows: english letters, Chinese letters, numbers and symbols;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key, wherein the method comprises the following steps: when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation; responding to the touch operation to display the at least one input candidate character;
the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
2. The method of claim 1, wherein the character type of the at least one input candidate character comprises: the candidate character type corresponding to the at least one preceding target character and the candidate character type corresponding to the at least one target character.
3. The method according to any one of claims 1 to 2, wherein after determining the threshold range to which the keystroke dynamics belongs and the target character type corresponding to the threshold range, the method further comprises:
and displaying the characters of the target character type on all input keys of the touch keyboard.
4. The method according to any one of claims 1 to 2, wherein the determining the threshold range to which the keystroke dynamics belongs and the target character type corresponding to the threshold range comprises:
when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character;
when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character;
and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
5. An input device, comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring touch operation on an input key and key strength of the touch operation, and the input key corresponds to at least two types of characters as follows: english letters, Chinese letters, numbers and symbols;
the determining unit is used for determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
a display unit, configured to respond to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key, including: when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation; responding to the touch operation to display the at least one input candidate character;
the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
6. An apparatus for input, 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 touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters as follows: english letters, Chinese letters, numbers and symbols;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key, wherein the method comprises the following steps: when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation; responding to the touch operation to display the at least one input candidate character;
the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
7. The apparatus of claim 6, further comprising instructions to, after determining the threshold range to which the keystroke dynamics belong and the target character type corresponding to the threshold range:
and displaying the characters of the target character type on all input keys of the touch keyboard.
8. The apparatus of claim 6, wherein the determining the threshold range to which the keystroke dynamics belongs and the target character type corresponding to the threshold range comprises:
when the key pressing strength is determined to belong to a first threshold range, determining that the target character type corresponding to the first threshold range is a Chinese character;
when the key pressing strength is determined to belong to a second threshold range, determining that the target character type corresponding to the second threshold range is an English character;
and when the keying strength is determined to belong to a third threshold range, determining that the target character type corresponding to the third threshold range is a number and a symbol, wherein the first threshold range, the second threshold range and the third threshold range are not intersected pairwise.
9. An electronic device 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 one or more processors the one or more programs including instructions for:
acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters as follows: english letters, Chinese letters, numbers and symbols;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key, wherein the method comprises the following steps: when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation; responding to the touch operation to display the at least one input candidate character;
the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
10. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
acquiring touch operation on an input key and key force of the touch operation, wherein the input key corresponds to at least two types of characters as follows: english letters, Chinese letters, numbers and symbols;
determining a threshold range to which the key strength belongs and a target character type corresponding to the threshold range;
responding to the touch operation to display at least one input candidate character according to at least one target character corresponding to the target character type on the input key, wherein the method comprises the following steps: when the input key is subjected to previous touch operation before the touch operation, generating at least one input candidate character corresponding to the touch operation according to at least one previous target character and the at least one target character corresponding to the previous touch operation; responding to the touch operation to display the at least one input candidate character;
the generating the at least one input candidate character corresponding to the touch operation according to the at least one previous target character and the at least one target character corresponding to the previous touch operation includes: segmenting the at least one previous target character and the at least one target character, wherein adjacent target characters with the same character type are a segment; and converting each character, and combining conversion results of each character to generate at least one input candidate character corresponding to the touch operation.
CN201610077776.2A 2016-02-03 2016-02-03 Input method, input device and input device Active CN107037888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610077776.2A CN107037888B (en) 2016-02-03 2016-02-03 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610077776.2A CN107037888B (en) 2016-02-03 2016-02-03 Input method, input device and input device

Publications (2)

Publication Number Publication Date
CN107037888A CN107037888A (en) 2017-08-11
CN107037888B true CN107037888B (en) 2022-04-26

Family

ID=59533029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610077776.2A Active CN107037888B (en) 2016-02-03 2016-02-03 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN107037888B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213412A (en) * 2017-07-03 2019-01-15 北京搜狗科技发展有限公司 Input method, device and machine readable media
CN107422921B (en) * 2017-08-31 2020-05-19 北京搜狗科技发展有限公司 Input method, input device, electronic equipment and storage medium
CN108932067A (en) * 2018-06-26 2018-12-04 珠海市魅族科技有限公司 A kind of input method application method and device
CN113552982A (en) * 2021-07-22 2021-10-26 青岛海信网络科技股份有限公司 Data input method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937313A (en) * 2010-09-13 2011-01-05 中兴通讯股份有限公司 Dynamic generation and input method and device for touch keyboard
CN105242865A (en) * 2014-07-10 2016-01-13 北京三星通信技术研究有限公司 Input processing method, input processing apparatus and mobile terminal comprising apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010089740A1 (en) * 2009-02-04 2010-08-12 Benjamin Firooz Ghassabian Data entry system
DE102012005084A1 (en) * 2012-03-13 2013-09-19 GM Global Technology Operations LLC (n. d. Gesetzen des Staates Delaware) input device
CN105183356A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Character output method, input device and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937313A (en) * 2010-09-13 2011-01-05 中兴通讯股份有限公司 Dynamic generation and input method and device for touch keyboard
CN105242865A (en) * 2014-07-10 2016-01-13 北京三星通信技术研究有限公司 Input processing method, input processing apparatus and mobile terminal comprising apparatus

Also Published As

Publication number Publication date
CN107037888A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
US10721196B2 (en) Method and device for message reading
KR101786944B1 (en) Speaker displaying method and videophone terminal therefor
US11334225B2 (en) Application icon moving method and apparatus, terminal and storage medium
RU2609033C1 (en) Input method and input system
JP2020516994A (en) Text editing method, device and electronic device
KR20130136173A (en) Method for providing fingerprint based shortcut key, machine-readable storage medium and portable terminal
CN107037888B (en) Input method, input device and input device
US20170300190A1 (en) Method and device for processing operation
CN107688399B (en) Input method and device and input device
JP2017525076A (en) Character identification method, apparatus, program, and recording medium
CN106774976A (en) input method switching method and device
CN105511777A (en) Session display method and device of touch display screen
CN105487799A (en) Content conversion method and device
CN107422921B (en) Input method, input device, electronic equipment and storage medium
CN106980409B (en) Input control method and device
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
CN110795014B (en) Data processing method and device and data processing device
CN111679746A (en) Input method and device and electronic equipment
CN108062168B (en) Candidate word screen-on method and device and candidate word screen-on device
CN108475157B (en) Character input method, device and terminal
CN107340881B (en) Input method and electronic equipment
CN105159874A (en) Method and apparatus for modifying character
CN107765884B (en) Sliding input method and device and electronic equipment
US20170060822A1 (en) Method and device for storing string
CN104915105A (en) Character inputting method, device and terminal

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
GR01 Patent grant