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.
The embodiment of the invention provides an input scheme, which can display a character area; the character area may include: a plurality of characters arranged in a line or a column on the touch screen; capturing a sliding track of a user on the touch screen; acquiring a character sequence corresponding to the sliding track from the character area and displaying the character sequence; the sequence of characters may include: one character or a plurality of characters in succession; and then obtaining the candidate item corresponding to the character sequence.
The embodiment of the invention can display the character area, and select the characters included in the character area through the sliding track of the user so as to obtain and display the character sequence corresponding to the sliding track from the character area; therefore, the sliding track can play a role in selecting characters included in the character area, in practical application, a user can select a required character from the character area through the sliding track with a short distance, and the embodiment of the invention can provide a candidate item corresponding to the selected character sequence; therefore, the embodiment of the invention can realize the sliding input through a smaller sliding distance, namely, the operation range required by the sliding input can be reduced, and the operation efficiency and the input efficiency of a user are improved. In addition, the embodiment of the invention can reduce the operation range required by the sliding input, so the embodiment of the invention can be suitable for the scene of operating the large-screen equipment by one hand.
In addition, the embodiment of the invention can display the character sequence corresponding to the sliding track, and the displayed character sequence can enable a user to obtain the character sequence corresponding to the sliding track in real time, so that the accuracy of sliding input can be improved.
For convenience of description, the embodiment of the present invention refers to a code character string input by a user in the above input mode as an input string. In the field of input methods, for input method programs in, for example, chinese, english, japanese, korean, or other languages, an input string input by a user may be generally converted into a candidate of a corresponding language. The input process of the embodiment of the invention is mainly explained by taking Chinese and English as examples, and other languages can be referred to each other. It is to be understood that the chinese input method may include, but is not limited to, a full pinyin, a simple pinyin, a stroke, a five-stroke, etc., and the embodiment of the present invention is not limited to a specific input method program corresponding to a certain language.
According to some embodiments, the input string may include, but is not limited to: the user inputs one key symbol or a combination of a plurality of key symbols through the sliding track. The key symbol may specifically include: pinyin, strokes, kana, etc.
The input method program may be run on a terminal with a touch screen, where the terminal specifically includes, but is not limited to: smart phones, tablet computers, electronic book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
Method embodiment one
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an input method according to the present invention is shown, which may specifically include:
step 101, displaying a character area; the character area may include: a plurality of characters arranged in a line or a column on the touch screen;
step 102, capturing a sliding track of a user on the touch screen;
103, acquiring a character sequence corresponding to the sliding track from the character area and displaying the character sequence; the sequence of characters may include: one character or a plurality of characters in succession;
and step 104, obtaining candidate items corresponding to the character sequence.
In the embodiment of the present invention, the input mode of the input method program may include: the input interface of the coasting input mode may include: a character area.
In practical applications, the above-mentioned slide input mode, i.e. the character area is displayed, may be entered in response to a user's trigger operation. The triggering operation can be determined by those skilled in the art according to the actual application requirements.
Alternatively, the triggering operation may be an operation with a preset pressing force. In practical applications, the operations (click operation or slide operation) can be distinguished according to the degree of pressing force of the operations. Optionally, in the embodiment of the present invention, the click operation may be distinguished according to the pressing force degree of the click operation, so as to obtain a tap operation, and a tap operation, for example, when the pressing force degree of the click operation of the user is within a range of [0, p1], the click operation may be determined as the tap operation; when the pressing force of the click operation of the user is in the range of [ p1, p2], the click operation can be determined as a light press operation; when the pressing force of the click operation of the user is in the range of [ p2, p3], the click operation can be considered as the re-pressing operation; wherein, the above p1, p2, p3 may represent corresponding pressing force values, and p1< p2<p 3. Similarly, different sliding operations may have the same or different pressing force degrees, or different sliding operations may have different directions, such as left or right, up or down, and so on.
In an application example 1 of the present invention, the preset pressing degree corresponding to the above-described preset operation may be in a range of [ p2, p3 ]. In practical applications, in the case of any interface of the terminal (including an interface of an input method program, a desktop, a screen locking interface, and the like), if the user performs an operation with a degree of pressing within a range of [ p2, p3] on the touch screen, it is considered that the user performs a trigger operation, and therefore, the user can enter a slide input mode and display a character region.
It is understood that the operation with the preset pressing degree is only an alternative embodiment, and in fact, those skilled in the art may determine other triggering operations according to the actual application requirements, for example, the triggering operations may further include: the embodiment of the present invention does not limit the specific triggering operation, such as a pressing operation with a preset duration, a sliding operation with a preset track, a tapping operation with a preset number of times, or a tapping operation with a preset rhythm.
In the embodiment of the present invention, the displayed character area may include: a plurality of characters arranged in a line or a column on the touch screen. The type, number and sequence of the above characters can be determined by those skilled in the art according to the requirements of practical application. Alternatively, the displayed character area may include: at least one of alphabetic and symbolic characters. For example, the number of letters in the character area may be 26, and the order of the 26 letters may be: A. b, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, it is to be understood that the present invention is not limited to the particular order of the letters. As another example, the symbol characters may include: punctuation, mathematical, numeric, special, etc.
It should be noted that, the input interface of the embodiment of the present invention includes: besides the character area, the method can also comprise the following steps: the character and/or function keys may be located in a lower area of the character area, for example.
In an optional embodiment of the present invention, the process of displaying the character area may include: displaying a character area, and positioning an input focus to a preset character included in the character area. The input focus may be a focus corresponding to the input method program, and the input focus exists when the input method program is called up, and the input focus does not exist when the input method program is not called up. According to the embodiment of the invention, after the character area is displayed, the input focus is positioned to the preset character included in the character area, so that the character sequence corresponding to the sliding track starts from the preset character. The preset character can be determined by a person skilled in the art or a user according to the actual application requirements, for example, the preset character can be located in the middle of the character area, and the preset character can be "L". It can be understood that the position where the preset character is located is used as the initial position corresponding to the input focus, and the user can also adjust the input focus according to the actual application requirements.
After the character area is displayed, the embodiment of the invention can enter a sliding input mode, namely, the user can be supported to input the required characters through the sliding track, and in the sliding input process, the finger or the stylus of the user can directly slide on the touch screen without leaving the touch screen. During the sliding input process, the embodiment of the invention can capture the sliding information of the finger or the stylus pen and record the sliding track data of the finger or the stylus pen until the finger or the stylus pen stops moving.
Specifically, how the touch screen captures the sliding track belongs to the well-known technology in the art, for example, for a Virtual Laser Keyboard (Virtual Laser Keyboard), the sliding track can be captured by sensing reflected light; for a capacitive touch screen, the glide trajectory can then be captured by periodic sampling. It is understood that the embodiment of the present invention does not limit the specific process of capturing the sliding trajectory.
The sliding track can be used for selecting characters included in the character area, and in practical application, the sliding track can be located in any area of the touch screen.
According to an embodiment, the sliding trajectory may be located in a second touch screen area outside the first touch screen area where the character area is located. According to another embodiment, the sliding track may be located in the first touch screen area where the character area is located, and it is understood that the specific area of the sliding track in the touch screen is not limited in the embodiment of the present invention.
The embodiment of the invention can provide the following technical scheme for acquiring the character sequence corresponding to the sliding track from the character area:
technical solution 1
Intechnical solution 1, the sliding track may be located in a second touch screen area outside a first touch screen area where the character area is located, and the process of obtaining the character sequence corresponding to the sliding track from the character area may include: determining a mapping track corresponding to the sliding track in the first touch screen area; and obtaining a character sequence corresponding to the sliding track according to the characters passed by the mapping track.
Specifically, the embodiment of the present invention may map the shorter-distance sliding trajectory to the mapping trajectory in the first touch screen area according to the mapping rule, thereby implementing sliding input in a smaller operation range.
The person skilled in the art may determine the mapping rule from the sliding track to the mapping track according to the actual application requirement, for example, the mapping rule may be established between the moving distance of the sliding track in the preset direction and the track of the mapping track to implement the mapping between the two.
In an optional embodiment of the present invention, a reference distance corresponding to one character in the character area may be preset, and the user may generate a sliding track in a preset direction, where a character sequence corresponding to the sliding track may start from a character at which the input focus is located, and if a non-starting character included in the character sequence corresponding to the sliding track is determined by a moving distance of the sliding track in the preset direction, a direction of the sliding track, and the reference distance.
Correspondingly, the process of determining the mapping track corresponding to the sliding track in the first touch screen area may specifically include: determining a starting point character corresponding to the mapping track; and determining a non-starting point character corresponding to the mapping track according to the moving distance of the sliding track in the preset direction, the direction of the sliding track and the reference distance corresponding to one character in the character area. The above-described starting point character and the sequentially arranged non-starting point characters may constitute a character sequence.
In practical applications, the starting character corresponding to the mapping track may be a character corresponding to the input focus before the sliding track is received. Mapping the non-start characters corresponding to the tracks may include: a waypoint character and an end point character. The starting point character can be extended in the character area to obtain a non-starting point character, and the corresponding extending direction can be obtained according to the direction of the sliding track. In practical applications, a mapping relationship between the direction of the sliding track and the extending direction may be preset, for example, the direction of the sliding track may be consistent with the extending direction, for example, the direction of the sliding track is a direction from right to left, and the extending direction is also a direction from right to left; alternatively, the direction of the sliding track may not coincide with the extending direction, such as the direction of the sliding track is from top to bottom, the extending direction is from right to left, and so on.
The reference distance may be used to represent a reference distance corresponding to one character in the character region, that is, how much distance the sliding track needs to cross one character in the character region, and may be used to determine the number of characters crossed by the sliding track. A person skilled in the art or a user may determine the reference distance according to the actual application requirement, and the specific reference distance is not limited by the embodiment of the present invention.
Referring to fig. 2, a schematic diagram of an input interface according to an embodiment of the present invention is shown, where the input interface is located on atouch screen 201, and the input interface may include acharacter area 202, where thecharacter area 202 may include: 26 characters, theinput focus 203 is located at the position corresponding to the character "L", and the user can perform sliding input on the basis of the current input focus, or can firstly adjust the input focus and then perform sliding input on the basis of the adjusted input focus; assuming that the user performs a sliding input on the basis of the character "L" corresponding to the current input focus, specifically, the user generates the slidingtrack 204, the character sequence corresponding to the sliding track may be determined according to the moving distance of the slidingtrack 204 in the preset direction, the direction of the sliding track, and the reference distance. In fig. 2, the preset direction may be a horizontal direction (a direction parallel to a row of characters 202), the character sequence corresponding to the slidingtrack 204 may start from the character "L" corresponding to the input focus, the non-starting point character corresponding to the character sequence may extend in the direction of the sliding track 204 (assumed to be a direction from right to left), specifically, the number N of characters spanned by the slidingtrack 204 may be determined according to a ratio of a moving distance of the slidingtrack 204 in the preset direction to the reference distance, then, starting from the starting point character "L" in thecharacter area 202, N consecutive characters may be selected in the direction of the slidingtrack 204 as the non-starting point characters, and finally, the character sequence is obtained according to the starting point character and the non-starting point character. Assuming that N has a value of 3, the character sequence corresponding to the slidingtrajectory 204 may be "LKJI".
The preset direction may be a direction other than the horizontal direction, such as a vertical direction, or a 45-degree direction (an angle of 45 degrees with the horizontal direction), and the like. In addition, it should be noted that, since there may be a need for repeatedly selecting characters, the direction of the slidingtrack 204 may include: the preset direction corresponds to a positive direction and/or a negative direction. Taking the preset direction as the horizontal direction as an example, the corresponding positive direction and the negative direction may be: in a left-to-right direction and a right-to-left direction, referring to the input interface shown in fig. 3, the glidingtrajectory 205 may include, in order: the character sequence corresponding to the slidingtrajectory 205 may be "LKJIJKIHGFE" in a right-to-left direction, a left-to-right direction, and a right-to-left direction.
In an optional embodiment of the present invention, the reference distance corresponding to one character in the character area may be obtained according to the pressing force degree corresponding to the sliding track. The embodiment of the invention can enable a user to realize different reference distances through different pressing force degrees.
Optionally, the larger the pressing force degree corresponding to the sliding track is, the smaller the reference distance corresponding to one character in the character area is, in this case, the smaller the reference distance can be realized by the larger pressing force degree, and further, more characters can be selected from the character area by the sliding track with the shorter distance.
Optionally, the smaller the pressing force degree corresponding to the sliding track is, the larger the reference distance corresponding to one character in the character area is, in this case, the larger reference distance may be implemented by the smaller pressing force degree, and then the smaller character may be selected from the character area through the sliding track.
It should be noted that, a person skilled in the art or a user may set a corresponding reference distance according to an actual application requirement, where different preset directions may correspond to the same or different reference distances.
In summary, according to thetechnical scheme 1, the shorter-distance sliding track can be mapped to the mapping track in the first touch screen area according to the mapping rule, so that the sliding input can be realized in a smaller operation range.
Technical solution 2
Intechnical solution 2, the sliding track may be located in a first touch screen area where the character area is located, and the character sequence may include: the character that the sliding track passes through. The embodiment of the invention can support a user to generate the sliding track in the first touch screen area where the character area is located, and obtain the character sequence corresponding to the sliding track according to the characters passed by the sliding track. Since the distance in the vertical direction of the first touch screen area where the character area for operation is located is small, the operation range required for slide input can be reduced.
Step 103 may display the character sequence corresponding to the sliding track, and the displayed character sequence may enable a user to obtain the character sequence corresponding to the sliding track in real time, so that the accuracy of the sliding input may be improved.
The display mode of the character sequence corresponding to the sliding track can be various. According to an embodiment, the process of presenting the character sequence corresponding to the sliding track may include: and marking and displaying the characters corresponding to the character sequence in the character area so that a user knows which characters are selected. The above indicia presentation may include: the method comprises the following steps of highlighting, font red marking, font (font name and font size) changing display, shadow display and the like, and can be understood that a person skilled in the art can adopt a mark display mode different from other characters (characters which are not matched with the character sequence in the character region) aiming at the characters corresponding to the character sequence in the character region according to the actual application requirements, so that the identification degree of the characters corresponding to the character sequence is improved, and the specific mark display mode is not limited.
According to another embodiment, the process of presenting the character sequence corresponding to the sliding track may include: and displaying the mapping track corresponding to the sliding track, wherein the starting point characters and the non-starting point characters included in the mapping track corresponding to the sliding track can form a character sequence corresponding to the sliding track.
According to another embodiment, the process of displaying the character sequence corresponding to the sliding track may include: the character sequence corresponding to the sliding track is shown, for example, a character sequence such as "LKJI" may be shown in the vicinity of the sliding track.
Step 104 may obtain the candidate corresponding to the character sequence obtained instep 103. Specifically, the character sequence may be first screened to obtain a target character sequence, and then searched in a lexicon according to the target character sequence to obtain a corresponding candidate item.
And screening the character sequence, wherein the character sequence can be used for filtering invalid characters in the character sequence, and finally, the valid characters according to the input sequence can form a target character sequence.
In an alternative embodiment of the present invention, a start character, an end character, and an inflection point character corresponding to a boundary of the concave-convex portion on the sliding trajectory are all necessary. Specifically, how to obtain the inflection point on the sliding trajectory belongs to the known technology in the art. For example, the change between a certain sampling point and two adjacent sampling points before and after on the sliding trajectory is compared, and if the preset condition is exceeded, the sampling point can be considered as an inflection point of the sliding trajectory. The character corresponding to one inflection point of the sliding trajectory may be an inflection point character.
In another alternative embodiment of the present invention, the process of screening the character sequences may include: screening the character sequence according to the input characteristics of the language; the input characteristics of chinese may include: syllable characteristics, font characteristics, etc., and input characteristics for english may include: the matching characteristics between the vowel characters and the consonant characters and the like, and characters which do not accord with the input characteristics can be filtered out through the screening.
In yet another alternative embodiment of the present invention, the process of screening the character sequence may include: and screening the residual characters in the character sequence according to the input characteristics of the language, and obtaining a target character sequence which accords with the input characteristics according to the screening result, wherein the residual characters can be characters except for a starting point character, an end point character and an inflection point character in the character sequence.
Of course, the above-mentioned manner of finding candidate items in the word stock according to the target character sequence is only an optional embodiment, and actually, the candidate items may also be found in the word stock directly according to the character sequence, for example, if the character sequence is "L", english words beginning with "L" may be found in the word stock, and particularly, english words beginning with "L" and having a usage frequency higher than a frequency threshold may be found in the word stock as the candidate items, and the like. It can be understood that the embodiment of the present invention does not limit the specific obtaining manner of the candidate corresponding to the character sequence.
In summary, the input method of the embodiment of the present invention may display a character region, and select characters included in the character region through a sliding trajectory of a user, so as to obtain and display a character sequence corresponding to the sliding trajectory from the character region; therefore, the sliding track can play a role in selecting characters included in the character area, in practical application, a user can select a required character from the character area through the sliding track with a short distance, and the embodiment of the invention can provide a candidate item corresponding to the selected character sequence; therefore, the embodiment of the invention can realize the sliding input through a smaller sliding distance, namely, the operation range required by the sliding input can be reduced, and the operation efficiency and the input efficiency of a user are improved. In addition, the embodiment of the invention can reduce the operation range required by the sliding input, so the embodiment of the invention can be suitable for the scene of operating the large-screen equipment by one hand.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of an input method according to the present invention is shown, which may specifically include:
step 401, displaying a character area in a first touch area of a touch screen; the character area may include: a plurality of characters arranged in a line or a column on the touch screen;
step 402, capturing a sliding track of a user on a second touch area of the touch screen; the second touch area is a touch screen area except the first touch area;
step 403, determining a mapping track corresponding to the sliding track in the first touch screen area;
step 404, obtaining and displaying a character sequence corresponding to the sliding track according to the characters passed by the mapping track; the sequence of characters may include: one character or a plurality of characters in succession;
step 405, obtaining and displaying the candidate items corresponding to the character sequence.
In order to make those skilled in the art better understand the input method of the embodiment of the present invention, the input method of the embodiment of the present invention is described by specific example 1.
Application example 1
Referring to fig. 5(a), 5(b), 5(c), and 5(d), schematic diagrams of the input interface of the embodiment of the present invention are respectively shown.
Wherein fig. 5(a) shows a default input interface of an input method program, which may include a default keyboard; in this case, when a trigger operation such as a touch screen being pressed again is received, the user can jump to the input interface corresponding to the slide input mode shown in fig. 5 (b).
The 26 character row in fig. 5(b) is listed and displayed above the default keyboard; in this case, if the user slides in an area of the touch screen except for one line of characters, the embodiment of the present invention may acquire and display a character sequence corresponding to the sliding trajectory, and may acquire and display a candidate item corresponding to the character sequence.
For example, a character sequence "L" may be presented through fig. 5(c), and candidates corresponding to the character sequence, such as "L", "Like", "Love", and the Like, may be presented at the same time.
For another example, the character sequence "LMN" may be presented through fig. 5(d), and meanwhile, candidates corresponding to the character sequence, such as "L", "Like", "Love", and the Like, may be presented.
Application example 2
Referring to fig. 6(a), 6(b), 6(c), and 6(d), schematic diagrams of the input interface of the embodiment of the present invention are respectively shown.
Wherein fig. 6(a) shows a default input interface of an input method program, which may include a default keyboard; in this case, when a trigger operation such as a touch screen being pressed again is received, the user can jump to the input interface corresponding to the slide input mode shown in fig. 6 (b).
The 26 character row in fig. 6(b) is listed and displayed above the default keyboard; in this case, if the user slides in an area of the touch screen except for one line of characters, the embodiment of the present invention may acquire and display a character sequence corresponding to the sliding trajectory, and may acquire and display a candidate item corresponding to the character sequence.
According to an embodiment, a user may select a single character through a sliding trajectory of a first degree of pressure, and in the embodiment of the present invention, a character sequence "L" may be presented through fig. 6(c), and meanwhile, candidates corresponding to the character sequence, such as "L", "Like", "Love", and the Like, may be presented.
According to an embodiment, the user may select a plurality of continuous characters through the sliding trajectory of the second degree of pressure, and the embodiment of the present invention may present the character sequence "LKJI" through fig. 6(d), and may present candidates corresponding to the character sequence, such as "Line", "Like", "Liam", and the Like.
The sliding track of the first pressing force and the sliding track of the second pressing force may have the same or different corresponding distances, and the first pressing force may be different from the second pressing force, for example, the second pressing force may be greater than the first pressing force, or the second pressing force may be smaller than the first pressing force.
It should be noted that the default input interfaces shown in fig. 5(a) and fig. 6(a) are only used as application examples, and actually, a person skilled in the art may also use other default input interfaces according to actual application requirements, such as the default input interface shown in fig. 7(a), and receive a trigger operation, such as a re-press, under the default input interface shown in fig. 7(a), and may adjust to the input interface shown in fig. 7(b) to display a row of 26 characters. In addition, it should be noted that the character area of the embodiment of the present invention may be triggered in any interface, for example, the character area may be displayed when a re-pressing operation is received without invoking the input method program.
It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the present invention is not limited by the described motion sequences, because some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 8, a block diagram of an embodiment of an input device according to the present invention is shown, which may specifically include:
acharacter display module 801 for displaying a character area; the character area may include: a plurality of characters arranged in a line or a column on the touch screen;
atrack capture module 802, configured to capture a sliding track of a user on the touch screen;
a charactersequence processing module 803, configured to obtain a character sequence corresponding to the sliding trajectory from the character region, and display the character sequence; the sequence of characters may include: one character or a plurality of characters in succession; and
a candidateitem obtaining module 804, configured to obtain a candidate item corresponding to the character sequence.
Optionally, the sliding track is located in a second touch screen area outside the first touch screen area where the character area is located, and the charactersequence processing module 803 may include:
the mapping track determining submodule is used for determining a mapping track corresponding to the sliding track in the first touch screen area;
and the character sequence determining submodule is used for obtaining a character sequence corresponding to the sliding track according to the characters passed by the mapping track.
Optionally, the mapping track determining submodule may include:
a starting point character determining unit, configured to determine a starting point character corresponding to the mapping track;
and the non-starting point character determining unit is used for determining a non-starting point character corresponding to the mapping track according to the moving distance of the sliding track in the preset direction, the direction of the sliding track and the reference distance corresponding to one character in the character area.
Optionally, the reference distance corresponding to one character in the character area is obtained according to the pressing force degree corresponding to the sliding track.
Optionally, the larger the pressing force degree corresponding to the sliding track is, the smaller the reference distance corresponding to one character in the character area is.
Optionally, the sliding track is located in a first touch screen area where the character area is located, and the character sequence may include: the character that the sliding track passes through.
Optionally, thecharacter display module 801 is specifically configured to display a character area in response to a trigger operation of a user.
Optionally, thecharacter display module 801 is specifically configured to display a character region, and position an input focus to a preset character that may be included in the character region.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Embodiments of the present invention 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: displaying a character area; the character area includes: a plurality of characters arranged in a line or a column on the touch screen; capturing a sliding track of a user on the touch screen; acquiring a character sequence corresponding to the sliding track from the character area and displaying the character sequence; the character sequence includes: one character or a plurality of characters in succession; and acquiring a candidate item corresponding to the character sequence.
Optionally, the obtaining the character sequence corresponding to the sliding track from the character area includes: determining a mapping track corresponding to the sliding track in the first touch screen area; and obtaining a character sequence corresponding to the sliding track according to the characters passed by the mapping track.
Optionally, the determining a mapping track corresponding to the sliding track in the first touch screen area includes: determining a starting point character corresponding to the mapping track; and determining a non-starting point character corresponding to the mapping track according to the moving distance of the sliding track in the preset direction, the direction of the sliding track and the reference distance corresponding to one character in the character area.
Optionally, the reference distance corresponding to one character in the character area is obtained according to the pressing force degree corresponding to the sliding track.
Optionally, the larger the pressing force degree corresponding to the sliding track is, the smaller the reference distance corresponding to one character in the character area is.
Optionally, the sliding track is located in a first touch screen area where the character area is located, and the character sequence includes: the character that the sliding track passes through.
Optionally, the display character area includes: and responding to the triggering operation of the user, and displaying the character area.
Optionally, the display character area includes:
displaying a character area, and positioning an input focus to a preset character included in the character area.
Fig. 9 is a block diagram illustrating a structure of anapparatus 900 for input as a terminal according to an exemplary embodiment. For example, theapparatus 900 may be 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. 9,apparatus 900 may include one or more of the following components: processingcomponent 902,memory 904,power component 906,multimedia component 908,audio component 910, input/output (I/O)interface 912,sensor component 914, andcommunication component 916.
Theprocessing component 902 generally controls overall operation of thedevice 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.Processing element 902 may include one ormore processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further,processing component 902 can include one or more modules that facilitate interaction betweenprocessing component 902 and other components. For example, theprocessing component 902 can include a multimedia module to facilitate interaction between themultimedia component 908 and theprocessing component 902.
Thememory 904 is configured to store various types of data to support operation at thedevice 900. Examples of such data include instructions for any application or method operating ondevice 900, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 904 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.
Thepower supply component 906 provides power to the various components of thedevice 900. Thepower components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for thedevice 900.
Themultimedia component 908 comprises a screen providing an output interface between thedevice 900 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, themultimedia component 908 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 thedevice 900 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.
Theaudio component 910 is configured to output and/or input audio signals. For example,audio component 910 includes a Microphone (MIC) configured to receive external audio signals whenapparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 904 or transmitted via thecommunication component 916. In some embodiments,audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface betweenprocessing component 902 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.
Thesensor component 914 includes one or more sensors for providing status assessment of various aspects of theapparatus 900. For example, thesensor assembly 914 may detect an open/closed state of thedevice 900, the relative positioning of the components, such as a display and keypad of theapparatus 900, thesensor assembly 914 may also detect a change in the position of theapparatus 900 or a component of theapparatus 900, the presence or absence of user contact with theapparatus 900, orientation or acceleration/deceleration of theapparatus 900, and a change in the temperature of theapparatus 900. Thesensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. Thesensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 916 is configured to facilitate communications between theapparatus 900 and other devices in a wired or wireless manner. Theapparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 916 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, theapparatus 900 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 thememory 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.
Fig. 10 is a schematic diagram of a server in some embodiments of the invention. Theserver 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) andmemory 1932, one or more storage media 1930 (e.g., one or more mass storage devices)storing applications 1942 ordata 1944.Memory 1932 andstorage medium 1930 can be, among other things, transient or persistent storage. The program stored in thestorage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, acentral processor 1922 may be provided in communication with thestorage medium 1930 to execute a series of instruction operations in thestorage medium 1930 on theserver 1900.
Theserver 1900 may also include one ormore power supplies 1926, one or more wired orwireless network interfaces 1950, one or more input-output interfaces 1958, one ormore keyboards 1956, and/or one ormore operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (terminal or server), enable the apparatus to perform an input method, the method comprising: displaying a character area; the character area includes: a plurality of characters arranged in a line or a column on the touch screen; capturing a sliding track of a user on the touch screen; acquiring a character sequence corresponding to the sliding track from the character area and displaying the character sequence; the character sequence includes: one character or a plurality of characters in succession; and acquiring a candidate item corresponding to the character sequence.
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 invention 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 limited only 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.
The present invention provides an input method, an input device and a device for inputting, and a machine-readable medium, which are described in detail above, and the principles and embodiments of the present invention are explained herein by using specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.