Method for determining candidate words of input method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for determining candidate words of an input method and a mobile terminal.
Background
At present, the mobile phone terminal input method has two methods for selecting the preferred word. One is to select by directly clicking on the preferred word, and the other is to select by clicking on the space bar. As shown in fig. 1a, in the first scheme, the selection is performed by directly clicking the preferred word, and for a person holding the mobile phone with one hand, the position of the preferred word is far away from the area convenient for operation. As shown in fig. 1b, the area under the dotted line is the area covered by the thumb of the left-hand single-handed operation, and as shown in fig. 1c, the area under the dotted line is the area covered by the thumb of the right-hand single-handed operation. As shown in FIG. 1a, option two is selected by clicking the space bar. This solution improves the problem of being difficult to operate when selecting candidate words directly, and the space bar is also in the area covered by the thumb of a single hand operation. However, this solution has the disadvantage that the space bar is not located in the most convenient area. For people with long thumbs, the thumb needs to be slightly bent to operate when clicking the space bar, and clicking is not comfortable in the unfolded state. In addition, the key area of the space is small relative to the thumb surface, and the best click experience is not achieved.
Disclosure of Invention
The embodiment of the invention provides a method for determining candidate words of an input method and a mobile terminal, and aims to solve the problems that in the prior art, when a user selects a first selected word, one-hand operation is difficult and better click experience cannot be achieved.
In a first aspect, an embodiment of the present invention provides a method for determining an input method candidate word, which is applied to a mobile terminal, and the method includes:
receiving touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal;
judging whether the touch force of a user on a keyboard area meets a first preset condition or not;
if the touch strength of the user to the keyboard area meets a first preset condition, judging whether the touch duration of the user to the keyboard area meets a second preset condition;
and if the touch control strength of the user on the keyboard area meets a first preset condition and the touch control duration meets a second preset condition, displaying the candidate words at the preset positions in the currently applied input frame.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the receiving module is used for receiving touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal;
the first judgment module is used for judging whether the touch force of a user on the keyboard area meets a first preset condition;
the second judgment module is used for judging whether the touch duration of the user on the keyboard area meets a second preset condition or not if the touch strength of the user on the keyboard area meets the first preset condition;
and the display module is used for displaying the candidate words at the preset positions in the currently applied input frame if the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition.
The technical scheme of the embodiment of the invention at least comprises the following beneficial effects:
according to the technical scheme, the plurality of candidate words are displayed on the display interface, when the touch operation of the user on the keyboard area is received, the touch strength of the touch operation and the touch duration of the touch operation are detected, and when the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition, the candidate words at preset positions are displayed in the currently applied input box.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1a is a diagram illustrating a user selecting a preferred word in various ways;
FIG. 1b is a schematic diagram of a user operating a thumb with a single hand to cover a corresponding location of a keyboard area;
FIG. 1c is a schematic diagram of a user's right hand with a single-handed thumb covering a corresponding location of a keyboard area;
fig. 2 is a schematic diagram illustrating a method for determining candidate words of an input method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a method for determining candidate words of an input method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a method for determining candidate words of an input method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a user touching a keyboard area according to an embodiment of the present invention;
fig. 6a is a schematic diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6b is a schematic diagram of a second mobile terminal according to a fourth embodiment of the present invention;
fig. 6c is a schematic diagram of a third mobile terminal according to a fourth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
As shown in fig. 2, a method for determining candidate words for an input method provided in an embodiment of the present invention is applied to a mobile terminal, and includes:
step 201, when a plurality of candidate words are displayed on a display interface of the mobile terminal, receiving a touch operation of a user on a keyboard area of the display interface.
After a word is input by a user in a current application by using an input method, a plurality of matched candidate words are displayed on a display interface, and at the moment, a candidate word needs to be determined according to the operation of the user, which specifically comprises the following steps: the method comprises the steps of detecting whether a keyboard area of a current display interface of the mobile terminal receives touch operation of a user or not, and determining candidate words according to the touch operation after the touch operation of the user on the keyboard area is received.
The touch operation here may be: and clicking, double clicking or pressing for a certain time, and operating any position on the keyboard area when performing touch operation on the keyboard area. After receiving the touch operation of the user on the keyboard region, step 202 is executed.
Step 202, judging whether the touch force of the user on the keyboard area meets a first preset condition.
After receiving the touch operation of the user on the keyboard area, the touch operation needs to be detected, and whether the touch strength of the touch operation of the user on the keyboard area meets a first preset condition is judged. Wherein the first preset condition here may be: the touch control strength of the touch control operation of the user on the keyboard area is larger than a preset touch control strength threshold value.
For example, the preset touch strength threshold is 0.3N, and when the touch strength of the touch operation of the user on the keyboard area is greater than 0.3N, it is determined that the touch strength of the touch operation of the user on the keyboard area meets a first preset condition; correspondingly, when the touch strength of the touch operation of the user on the keyboard area is smaller than or equal to 0.3N, the touch strength of the touch operation of the user on the keyboard area is determined not to meet the first preset condition. When the touch strength of the touch operation performed on the keyboard region by the user satisfies the first preset condition, step 203 is executed.
Step 203, if the touch strength of the user to the keyboard area meets the first preset condition, determining whether the touch duration of the user to the keyboard area meets the second preset condition.
When it is determined that the touch strength of the user on the keyboard area meets the first preset condition, it is necessary to continuously detect whether the touch duration of the user on the keyboard area meets the second preset condition. When the touch strength of the user to the keyboard area does not meet the first preset condition, the operation of judging whether the touch duration of the user to the keyboard area meets the second preset condition is not required to be executed, and at the moment, the candidate words cannot be determined through the touch operation.
Wherein the second preset condition here may be: the touch duration of the touch operation of the user on the keyboard area is longer than the preset duration.
For example, the preset time length is 1s, and when the touch control time length of the touch control operation of the user on the keyboard area is greater than 1s, it is determined that the touch control time length of the touch control operation of the user on the keyboard area meets a second preset condition; correspondingly, when the touch duration of the touch operation of the user on the keyboard area is less than or equal to 1s, it is determined that the touch duration of the touch operation of the user on the keyboard area does not meet a second preset condition. At this time, the candidate word cannot be determined by touch operation. When the touch strength of the touch operation performed on the keyboard area by the user meets the first preset condition and the touch duration of the touch operation performed on the keyboard area by the user meets the second preset condition, step 204 is executed.
And 204, if the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition, displaying the candidate words at preset positions in the currently applied input frame.
When it is determined that the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition, inputting a preset candidate word at a specific position into an input box of the current application through a corresponding interface, and displaying the candidate word in the input box of the current application. The candidate word may be a candidate word displayed on the display interface, wherein the candidate word is a first candidate word, a second candidate word or a candidate word in other positions.
According to the first embodiment of the invention, a plurality of candidate words are displayed on a display interface, when the touch operation of a user on a keyboard area is received, the touch strength of the touch operation and the touch duration of the touch operation are detected, and when the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition, the candidate words at preset positions are displayed in an input box which is currently applied.
Example two
As shown in fig. 3, the method for determining candidate words for an input method provided in the second embodiment of the present invention is applied to a mobile terminal, and includes:
step 301, dividing the touch strength greater than a preset touch strength threshold into N levels from high to low.
Before a display interface of the mobile terminal displays a plurality of candidate words, the touch strength greater than a preset touch strength threshold value needs to be graded, for example: the touch control strength threshold is preset to be 0.3N, and touch control strength within the range larger than 0.5N is divided into a grade A. And classifying the touch strength in the range of more than 0.4N and less than or equal to 0.5N into a grade B. And classifying the touch strength in the range of more than 0.3N and less than or equal to 0.4N into a grade C. The levels are sequentially level A, level B and level C from high to low. After ranking, step 302 is performed.
Step 302, establishing a corresponding relationship between each level and a candidate word at a preset position.
And determining a candidate word at a preset position according to each grade, and establishing a corresponding relation between the grade and the candidate word at the preset position, wherein the candidate word at the preset position corresponding to a high grade is ranked in front of the candidate word at the preset position corresponding to a low grade in the plurality of candidate words. In the plurality of candidate words, the candidate word at the preset position corresponding to the level A is positioned in front of the candidate word at the preset position corresponding to the level B; and the candidate word at the preset position corresponding to the grade B is positioned in front of the candidate word at the preset position corresponding to the grade C.
Step 303, receiving a touch operation of a user on a keyboard area of a display interface when the display interface of the mobile terminal displays a plurality of candidate words.
After a word is input by a user in a current application by using an input method, a plurality of matched candidate words are displayed on a display interface, and at the moment, a candidate word needs to be determined according to the operation of the user, which specifically comprises the following steps: detecting whether a keyboard area of a current display interface of the mobile terminal receives a touch operation of a user, and executing step 304 after receiving the touch operation of the user on the keyboard area.
And step 304, judging whether the touch strength of the user on the keyboard area is greater than a preset touch strength threshold value.
After receiving the touch operation of the user on the keyboard area, the touch operation needs to be detected, and whether the touch strength of the touch operation of the user on the keyboard area is greater than a preset touch strength threshold value is judged. When the touch strength of the touch operation performed on the keyboard area by the user is greater than the preset touch strength threshold, step 305 is executed, and when the touch strength of the touch operation performed on the keyboard area by the user is less than or equal to the preset touch strength threshold, the candidate word cannot be determined through the touch operation, and the process is ended.
Step 305, if the touch strength of the user to the keyboard area is greater than a preset touch strength threshold, determining whether the touch duration of the user to the keyboard area is greater than a preset duration.
When the touch control strength of the user to the keyboard area is greater than a preset touch control strength threshold value, judging whether the touch control duration of the user to the keyboard area is greater than a preset duration. And executing step 306 when the touch duration of the user on the keyboard area is longer than the preset duration, otherwise, ending the process.
Step 306, if the touch strength of the user to the keyboard area is greater than the preset touch strength threshold and the touch duration is greater than the preset duration, determining a first level to which the touch strength of the user to the keyboard area belongs.
When the touch strength of the user to the keyboard area is greater than the preset touch strength threshold and the touch duration is greater than the preset duration, determining a first level to which the touch strength of the user to the keyboard area belongs according to the N pre-divided levels, and then executing step 307.
Step 307, candidate words at a first preset position corresponding to the first level are obtained.
After determining the first rank to which the touch strength of the user on the keyboard area belongs, obtaining a candidate word at a first preset position corresponding to the first rank according to a pre-established correspondence between each rank and the candidate word at a preset position, and then executing step 308.
And 308, displaying the candidate word at the first preset position in the input box of the current application.
After determining the candidate word at the first preset position, the candidate word at the first preset position needs to be input into the input box of the current application through the corresponding interface for display.
In the second embodiment of the present invention, a plurality of candidate words are displayed on a display interface, when a touch operation of a user on a keyboard region is received, touch strength of the touch operation and touch duration of the touch operation are detected, when it is determined that the touch strength of the user on the keyboard region meets a first preset condition and the touch duration meets a second preset condition, a level to which a current touch strength belongs is determined according to a grading of the touch strength greater than a preset touch strength threshold, and a candidate word at a corresponding preset position is determined, and the determined candidate word is displayed in an input frame currently applied.
Furthermore, the operation area of the invention is far larger than the finger area of the thumb, and the invention is suitable for any people, no matter the hand is big or small, and the thumb is long or short, the best operation experience can be found in the operation area.
EXAMPLE III
As shown in fig. 4, a method for determining candidate words for an input method provided by the third embodiment of the present invention is applied to a mobile terminal, and includes:
step 401, dividing the touch duration longer than the preset duration into M levels from high to low.
Before a display interface of the mobile terminal displays a plurality of candidate words, a touch duration greater than a preset duration needs to be graded, for example: the preset duration is 1s, and the touch duration within the range of more than 3s is divided into a level a. And dividing the touch duration within the range of more than 2s and less than or equal to 3s into a level b. And dividing the touch duration within the range of more than 1s and less than or equal to 2s into a grade c. The levels are sequentially level a, level b and level c from high to low. After ranking, step 402 is performed.
Step 402, establishing a corresponding relationship between each level and a candidate word at a preset position.
And the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
And determining a candidate word at a preset position according to each grade, and establishing a corresponding relation between the grade and the candidate word at the preset position, wherein the candidate word at the preset position corresponding to a high grade is ranked in front of the candidate word at the preset position corresponding to a low grade in the plurality of candidate words. In the plurality of candidate words, the candidate word at the preset position corresponding to the grade a is positioned in front of the candidate word at the preset position corresponding to the grade b; and the candidate word at the preset position corresponding to the grade b is positioned in front of the candidate word at the preset position corresponding to the grade c.
Step 403, receiving a touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal.
After a word is input by a user in a current application by using an input method, a plurality of matched candidate words are displayed on a display interface, and at the moment, a candidate word needs to be determined according to the operation of the user, which specifically comprises the following steps: detecting whether a keyboard area of a current display interface of the mobile terminal receives a touch operation of a user, and executing step 404 after receiving the touch operation of the user on the keyboard area. The touch operation of the user on the keyboard area is an operation on any position of the keyboard area, such as a position represented by a dotted line in fig. 5, which is a touch operation of the thumb of the user on a space bar of the keyboard area.
Step 404, determining whether the touch force of the user on the keyboard area is greater than a preset touch force threshold.
After receiving the touch operation of the user on the keyboard area, the touch operation needs to be detected, and whether the touch strength of the touch operation of the user on the keyboard area is greater than a preset touch strength threshold value is judged. And executing the step 405 when the touch control strength of the touch control operation of the user on the keyboard area is greater than a preset touch control strength threshold, otherwise, ending the process.
Step 405, if the touch strength of the user to the keyboard area is greater than a preset touch strength threshold, determining whether the touch duration of the user to the keyboard area is greater than a preset duration.
When the touch control strength of the user to the keyboard area is greater than a preset touch control strength threshold value, judging whether the touch control duration of the user to the keyboard area is greater than a preset duration. And when the touch duration of the user on the keyboard area is longer than the preset duration, executing the step 406, otherwise, ending the process.
And step 406, if the touch strength of the user on the keyboard area is greater than the preset touch strength threshold and the touch duration is greater than the preset duration, determining a second level to which the touch duration of the user on the keyboard area belongs.
When the touch strength of the user to the keyboard area is greater than the preset touch strength threshold and the touch duration is greater than the preset duration, determining a second level to which the touch duration of the user to the keyboard area belongs according to the M levels divided in advance, and then executing step 407.
And step 407, acquiring a candidate word at a second preset position corresponding to the second level.
After determining the second rank to which the touch duration of the user on the keyboard region belongs, according to the pre-established correspondence between each rank and a candidate word at a preset position, a candidate word at a second preset position corresponding to the second rank is obtained, and then step 408 is executed.
And step 408, displaying the candidate word at the second preset position in the input box of the current application.
After determining the candidate word at the second preset position, the candidate word at the second preset position needs to be input into the input box of the current application through the corresponding interface for display.
In the third embodiment of the present invention, a plurality of candidate words are displayed on a display interface, when a touch operation of a user on a keyboard region is received, touch strength of the touch operation and touch duration of the touch operation are detected, when it is determined that the touch strength of the user on the keyboard region meets a first preset condition and the touch duration meets a second preset condition, a level to which a current touch duration belongs is determined according to level division of the touch duration greater than the preset duration, a candidate word at a corresponding preset position is determined according to the level to which the touch duration belongs, and the determined candidate word is displayed in an input box currently applied.
Furthermore, the operation area of the invention is far larger than the finger area of the thumb, and the invention is suitable for any people, no matter the hand is big or small, and the thumb is long or short, the best operation experience can be found in the operation area.
Example four
The following is an embodiment of a mobile terminal provided in the fourth embodiment of the present invention, and details that are not described in detail in the embodiment of the mobile terminal may refer to the above-mentioned method embodiment.
An embodiment of the present invention provides a mobile terminal, as shown in fig. 6a, including:
the receiving module 10 is configured to receive a touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal;
the first judging module 20 is configured to judge whether a touch force of a user on a keyboard area meets a first preset condition;
the second judging module 30 is configured to, if the touch strength of the user on the keyboard region meets the first preset condition, judge whether the touch duration of the user on the keyboard region meets a second preset condition;
the display module 40 is configured to display the candidate word at the preset position in the currently applied input box if the touch strength of the user on the keyboard area meets a first preset condition and the touch duration meets a second preset condition.
Wherein, the first judging module 20 is further configured to:
judging whether the touch control strength of the user on the keyboard area is greater than a preset touch control strength threshold value or not;
correspondingly, the second determining module 30 is further configured to:
and judging whether the touch duration of the user to the keyboard area is greater than a preset duration.
As shown in fig. 6b, the mobile terminal further includes:
the first dividing module 50 is configured to divide, before the plurality of candidate words are displayed on the display interface of the mobile terminal, the touch strength greater than the preset touch strength threshold into N levels in an order from high to low;
a first establishing module 60, configured to establish a correspondence between each level and a candidate word at a preset position;
and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
As shown in fig. 6c, the display module 40 includes:
the first judging submodule 41 is configured to judge a first level to which a touch strength of the user on the keyboard region belongs;
a first obtaining sub-module 42, configured to obtain a candidate word at a first preset position corresponding to the first rank;
and the first display sub-module 43 is configured to display the candidate word at the first preset position in the input box of the current application.
As shown in fig. 6b, the mobile terminal further includes:
the second dividing module 70 is configured to divide the touch duration that is greater than the preset duration into M levels from high to low before the plurality of candidate words are displayed on the display interface of the mobile terminal;
a second establishing module 80, configured to establish a correspondence between each level and a candidate word at a preset position;
and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
As shown in fig. 6c, the display module 40 includes:
the second judging submodule 44 is configured to judge a second level to which the touch duration of the user on the keyboard region belongs;
a second obtaining submodule 45, configured to obtain a candidate word at a second preset position corresponding to the second level;
and the second display sub-module 46 is configured to display the candidate word at the second preset position in the currently applied input box.
In the fourth embodiment of the present invention, a plurality of candidate words are displayed on a display interface, when a touch operation of a user on a keyboard region is received, a touch strength of the touch operation and a touch duration of the touch operation are detected, and when it is determined that the touch strength of the user on the keyboard region meets a first preset condition and the touch duration meets a second preset condition, the candidate words at preset positions are displayed in an input box currently applied.
EXAMPLE five
Fig. 7 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes: at least one processor 701, memory 702, at least one network interface 704, and other user interfaces 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In the embodiment of the present invention, the processor 701 is configured to, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022: receiving touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal; judging whether the touch force of a user on a keyboard area meets a first preset condition or not; if the touch strength of the user to the keyboard area meets a first preset condition, judging whether the touch duration of the user to the keyboard area meets a second preset condition; and if the touch control strength of the user on the keyboard area meets a first preset condition and the touch control duration meets a second preset condition, displaying the candidate words at the preset positions in the currently applied input frame.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, when determining whether the touch strength of the user to the keyboard region meets a first preset condition, the processor 701 is further configured to: judging whether the touch control strength of the user on the keyboard area is greater than a preset touch control strength threshold value or not; correspondingly, when determining whether the touch duration of the user to the keyboard region meets the second preset condition, the processor 701 is further configured to: and judging whether the touch duration of the user to the keyboard area is greater than a preset duration.
Optionally, before the display interface of the mobile terminal displays the plurality of candidate words, the processor 701 is further configured to: dividing the touch control strength greater than a preset touch control strength threshold into N grades from high to low; establishing a corresponding relation between each grade and a candidate word at a preset position; and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
Optionally, when the candidate word at the preset position is displayed in the currently applied input box if the touch strength of the user on the keyboard region meets the first preset condition and the touch duration meets the second preset condition, the processor 701 is further configured to: judging a first level of touch force of a user on a keyboard area; acquiring candidate words of a first preset position corresponding to the first grade; and displaying the candidate word at the first preset position in the input box of the current application.
Optionally, before the display interface of the mobile terminal displays the plurality of candidate words, the processor 701 is further configured to: dividing the touch duration which is longer than the preset duration into M levels from high to low; establishing a corresponding relation between each grade and a candidate word at a preset position; and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
Optionally, when the candidate word at the preset position is displayed in the currently applied input box if the touch strength of the user on the keyboard region meets the first preset condition and the touch duration meets the second preset condition, the processor 701 is further configured to: judging a second level to which the touch duration of the keyboard area belongs by the user; acquiring a candidate word at a second preset position corresponding to the second level; and displaying the candidate word at the second preset position in the input box of the current application.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
In the fifth embodiment of the present invention, a plurality of candidate words are displayed on a display interface, when a touch operation of a user on a keyboard region is received, touch strength of the touch operation and touch duration of the touch operation are detected, and when it is determined that the touch strength of the user on the keyboard region meets a first preset condition and the touch duration meets a second preset condition, the candidate words at preset positions are displayed in an input box currently applied.
EXAMPLE six
Fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 800 in fig. 8 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 800 in fig. 8 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a wifi (wireless fidelity) module 880, and a power supply 890.
The input unit 830 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 800. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 831, the input unit 830 may include other input devices 832, and the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800. The display unit 840 may include a display panel 841, and the display panel 841 may be alternatively configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 860 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby integrally monitoring the mobile terminal 800. Optionally, processor 860 may include one or more processing units.
In an embodiment of the present invention, the processor 860 is configured to, by invoking software programs and/or modules stored in the first memory 821 and/or data stored in the second memory 822: receiving touch operation of a user on a keyboard area of a display interface when a plurality of candidate words are displayed on the display interface of the mobile terminal; judging whether the touch force of a user on a keyboard area meets a first preset condition or not; if the touch strength of the user to the keyboard area meets a first preset condition, judging whether the touch duration of the user to the keyboard area meets a second preset condition; and if the touch control strength of the user on the keyboard area meets a first preset condition and the touch control duration meets a second preset condition, displaying the candidate words at the preset positions in the currently applied input frame.
Optionally, when determining whether the touch strength of the user to the keyboard region meets the first preset condition, the processor 860 is further configured to: judging whether the touch control strength of the user on the keyboard area is greater than a preset touch control strength threshold value or not; correspondingly, when determining whether the touch duration of the user to the keyboard region satisfies the second preset condition, the processor 860 is further configured to: and judging whether the touch duration of the user to the keyboard area is greater than a preset duration.
Optionally, before the displaying interface of the mobile terminal displays the plurality of candidate words, the processor 860 is further configured to: dividing the touch control strength greater than a preset touch control strength threshold into N grades from high to low; establishing a corresponding relation between each grade and a candidate word at a preset position; and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
Optionally, when the candidate word at the preset position is displayed in the currently applied input box if the touch strength of the user on the keyboard area meets the first preset condition and the touch duration meets the second preset condition, the processor 860 is further configured to: judging a first level of touch force of a user on a keyboard area; acquiring candidate words of a first preset position corresponding to the first grade; and displaying the candidate word at the first preset position in the input box of the current application.
Optionally, before the displaying interface of the mobile terminal displays the plurality of candidate words, the processor 860 is further configured to: dividing the touch duration which is longer than the preset duration into M levels from high to low; establishing a corresponding relation between each grade and a candidate word at a preset position; and the candidate words in the preset positions corresponding to the high levels are ranked in front of the candidate words in the preset positions corresponding to the low levels in the plurality of candidate words.
Optionally, when the candidate word at the preset position is displayed in the currently applied input box if the touch strength of the user on the keyboard area meets the first preset condition and the touch duration meets the second preset condition, the processor 860 is further configured to: judging a second level to which the touch duration of the keyboard area belongs by the user; acquiring a candidate word at a second preset position corresponding to the second level; and displaying the candidate word at the second preset position in the input box of the current application.
In the sixth embodiment of the present invention, a plurality of candidate words are displayed on a display interface, when a touch operation of a user on a keyboard region is received, touch strength of the touch operation and touch duration of the touch operation are detected, and when it is determined that the touch strength of the user on the keyboard region meets a first preset condition and the touch duration meets a second preset condition, the candidate words at preset positions are displayed in an input box currently applied.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.