WO2016107316A1 - 输入法光标操作方法和装置 - Google Patents

输入法光标操作方法和装置 Download PDF

Info

Publication number
WO2016107316A1
WO2016107316A1 PCT/CN2015/094841 CN2015094841W WO2016107316A1 WO 2016107316 A1 WO2016107316 A1 WO 2016107316A1 CN 2015094841 W CN2015094841 W CN 2015094841W WO 2016107316 A1 WO2016107316 A1 WO 2016107316A1
Authority
WO
WIPO (PCT)
Prior art keywords
candidate
cursor
sliding
sliding event
module
Prior art date
Application number
PCT/CN2015/094841
Other languages
English (en)
French (fr)
Inventor
符钧
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2016107316A1 publication Critical patent/WO2016107316A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Definitions

  • the present invention relates to the field of input method technologies, and in particular, to an input method cursor operation method and apparatus.
  • the default input language is a character in English.
  • English input can be entered by directly selecting a letter.
  • the input of other languages is more troublesome.
  • the Chinese language has tens of thousands of characters. It is impossible to input directly through the buttons.
  • the Chinese characters are encoded according to the pronunciation characteristics of Chinese characters (corresponding to the Pinyin input method).
  • the glyph characteristics of Chinese characters such as strokes and radicals
  • the Chinese characters are encoded (corresponding to the font input method), etc., and each key combination can be associated with the Chinese character encoding, so that the Chinese characters can be input.
  • the candidate method is displayed in the candidate column according to the edit string, if the user wants to select more candidates, the user needs to click the expand button to expand the candidate interface for selection, but the candidate interface will overwrite the input method keyboard. It is not possible to display new candidates directly in the candidate bar by the cursor of the candidate bar.
  • the present invention has been made in order to provide an input method cursor operating device and a corresponding input method cursor operation method that overcome the above problems or at least partially solve the above problems.
  • an input method cursor operation method including:
  • the listener receives a sliding event
  • the editing string cursor sliding mode is entered, and the cursor is controlled to move in the editing string according to the sliding event.
  • an input method cursor operation method including:
  • the listener receives a sliding event
  • the candidate cursor sliding mode is entered, and the cursor is controlled to move in the candidate according to the sliding event.
  • an input method cursor operation method including:
  • the listener receives a sliding event
  • the candidate cursor sliding mode is entered, and the cursor is controlled to move in the candidate according to the sliding event.
  • an apparatus for input cursor operation comprising:
  • the sliding monitoring module is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • a sliding determination module configured to determine whether the sliding event meets a preset condition if a sliding event is received
  • the cursor movement module is adapted to enter the edit string cursor sliding mode if the sliding event satisfies the preset condition, and control the cursor to move in the edit string according to the sliding event.
  • an apparatus for input cursor operation comprising:
  • the sliding monitoring module is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • a sliding determination module configured to determine whether the sliding event meets a preset condition if a sliding event is received
  • the cursor movement module is adapted to enter the candidate cursor sliding mode if the sliding event satisfies the preset condition, and control the cursor to move in the candidate according to the sliding event.
  • an apparatus for input cursor operation comprising:
  • the sliding monitoring module is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • a type determining module configured to determine, if a sliding event is received, a preset condition type that the sliding event meets
  • Editing the string cursor movement module if the sliding event meets the first type preset condition, entering the edit string cursor sliding mode, and controlling the cursor to move in the edit string according to the sliding event;
  • the candidate cursor movement module is adapted to enter the candidate cursor sliding mode if the sliding event satisfies the second type preset condition, and control the cursor to move in the candidate according to the sliding event.
  • a computer program comprising computer readable code causing the terminal device to perform any of the input method cursor operations described above when the computer readable code is run on a terminal device method.
  • a computer readable medium storing a computer program for performing any of the input method cursor operation methods described above.
  • the input method cursor operation method can monitor the sliding event received in the input method area in the interface of the input method normal character candidate mode, and determine whether the received sliding event satisfies a preset condition, if the sliding event is satisfied.
  • the preset condition enters the edit string cursor sliding mode, and controls the cursor to move in the edit string according to the sliding event, thereby solving the problem that if the user wants to input a cursor in the edit string to modify the edit string, the user needs to click a certain position in the edit string.
  • the cursor of the control input method enters the edit string and moves in the edit string without affecting the user's line of sight, so that the user can more accurately locate the beneficial effect of the cursor.
  • the input method cursor operation method can monitor the sliding event received in the input method area in the interface of the input method normal character candidate mode, and determine whether the received sliding event satisfies a preset condition, if the sliding If the event satisfies the preset condition, the candidate cursor sliding mode is entered, and the cursor is controlled to move in the candidate according to the sliding event, thereby solving the candidate column obtained by the input method according to the edit string, if the user wants to select more The candidate, the user needs to click the expand button to expand the candidate interface to select, but The selection interface will cover the input method keyboard, and the problem that the new candidate is not displayed directly in the candidate column by the cursor of the candidate column is obtained, and the user can control the input method to enter the candidate column according to the sliding operation in the input method. And move in the candidate, does not affect the user's line of sight, so that users can more easily choose the benefits of the candidate.
  • FIG. 1 is a flow chart showing an operation method of an input method cursor according to an embodiment of the present invention
  • FIG. 1A illustrates an example of a conventional text candidate mode in accordance with one embodiment of the present invention
  • FIG. 1B illustrates an example of an edit string cursor sliding mode in accordance with one embodiment of the present invention
  • FIG. 1C shows an example of the edit string cursor sliding mode obtained by FIG. 1B;
  • FIG. 2 is a schematic flow chart of an input method cursor operation method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of an input method cursor operation method according to an embodiment of the present invention.
  • FIG. 4 is a flow chart showing an operation method of an input method cursor according to an embodiment of the present invention.
  • FIG. 4A shows an example of a candidate cursor sliding mode in accordance with one embodiment of the present invention
  • FIG. 5 is a schematic flowchart diagram of an input method cursor operation method according to a fourth embodiment of the present invention.
  • FIG. 6 is a flow chart showing an operation method of an input method cursor according to an embodiment of the present invention.
  • FIG. 7 is a flow chart showing an operation method of an input method cursor according to a sixth embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an input method cursor operation device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an input method cursor operation device according to an eighth embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an input method cursor operation device according to an eighth embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an input method cursor operation device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an input method cursor operating device according to an eleventh embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an input method cursor operation device according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of an input method cursor operating device according to a thirteenth embodiment of the present invention.
  • Figure 15 shows a block diagram of a terminal device for performing the method according to the invention.
  • Figure 16 shows a memory unit for holding or carrying program code implementing a method in accordance with the present invention.
  • One of the core ideas of the present invention is: in the conventional character candidate mode of the input method, in the text candidate interface of the input method, receiving a triggered sliding event, and triggering to enter the editing string cursor sliding mode or the candidate cursor sliding according to the sliding event mode. It is convenient for the user to accurately position the cursor in the edit string, or to facilitate the user to select the candidate The candidates shown in the column.
  • FIG. 1 it is a schematic flowchart of an input method cursor operation method of the present invention, which may specifically include:
  • Step 110 in the regular text candidate mode of the input method, whether to receive a sliding event; if a sliding event is received, then proceeds to step 120;
  • the mobile terminal uses a pinyin input method of a nine-key keyboard, such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: jkl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • a nine-key keyboard such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: jkl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • the user can click the keyboard 516482 of the nine-key, then the input rule firstly recognizes the key sequence 516482 according to the recognition logic of the pinyin input method, and obtains the default pinyin string as "kai'gua".
  • the state is the input method.
  • Normal regular text candidate mode is an input method for identifying a key sequence obtained by a user, and identifying the edit string, and then obtaining a screen candidate from the vocabulary based on the edit string, and displaying the top screen candidate in the candidate column in the candidate column.
  • the conventional text candidate mode for other types of keyboards is similar to the above example.
  • the conventional text candidate mode of other types of input methods is similar to the above example.
  • the stroke input method after the user clicks the key sequence, the input method converts the key sequence into a stroke string, and according to the stroke string, the upper screen candidate is obtained from the thesaurus, and the ranking is determined by The previous upper screen candidate is displayed in the candidate column, and the current situation is the regular text candidate mode.
  • the input keyboard area may be an area below the input method candidate column. As shown in Figure 1A, areas such as “flowering” are in the area below the candidate column.
  • the preferred input keyboard area can be selected as the input interface where the 1-9 key is located, and of course, the interface area where the keys such as "character", "", "space", and "word” are located.
  • a sliding event is triggered. Then, after receiving the sliding event in the input method interface area, the embodiment of the present invention determines the sliding event.
  • the sliding event may be determined by the down event+move event on the touch screen, and the up event may be used to determine the end of the user operation.
  • Step 120 determining whether the sliding event meets a preset condition; if the sliding event meets a preset condition, proceed to step 130;
  • the present invention can determine whether the sliding event satisfies a preset condition, such as whether to determine whether the sliding event has a sliding distance to a predetermined direction reaching a threshold.
  • a preset condition is set as follows: the vertical direction and the horizontal direction of the touch screen are referenced (as shown in FIG. 1A), and the end point of the sliding event sliding is on the left side of the starting point (as shown in FIG. 1A corresponding to the vertical direction, up and down, and Corresponding to the horizontal direction left and right), the distance from the start point to the end point in the horizontal direction reaches a threshold value, such as 3 (the left and right direction of FIG.
  • the initial focus coordinate of the user after pressing the touch screen is (10, 10).
  • the coordinates of the touch focus change, for example, sliding to (7, 5), then the focus coordinate after the sliding is at the start.
  • the left side of the focus coordinate, then the sliding event is sliding to the left, and the horizontal sliding distance is 3, and when the aforementioned threshold value 3 is reached, it is determined that the sliding event satisfies the preset condition.
  • whether the sliding event meets the preset condition may be identified according to the coordinate position corresponding to the event of the up event, the down event+move event, and the relative position and distance between the coordinates.
  • determining whether the sliding event meets the preset condition comprises:
  • Sub-step 121 determining whether the sliding event is a sliding operation in the direction of the head end of the editing string in the keyboard area of the input method
  • Sub-step 122 if the sliding event is a sliding operation in the input method keyboard area to the head end of the editing string, it is determined that the sliding event meets the preset condition.
  • the preset condition may be specified as a sliding operation in the direction of the head end of the editing string in the input method keyboard area.
  • the end point of the sliding event sliding is on the left side of the starting point (upper and lower in the vertical direction as shown in FIG. 1A, and corresponding to the horizontal direction left, Right)
  • the distance threshold from the start point to the end point in the horizontal direction is x.
  • the sub-step 130 is entered.
  • the cursor appears from the end of the edit string, as shown in FIG. 1B.
  • step 130 the edit string cursor sliding mode is entered, and the cursor is moved in the edit string according to the sliding event.
  • the current regular text candidate mode can be switched to the edit string cursor sliding mode, that is, as shown in FIG. 1B, and then the cursor can be moved in the edit string according to the sliding event.
  • a sliding event of the user is triggered by a certain sliding operation of the user. If the direction and the sliding distance of the sliding event reach a predetermined condition, the cursor is generated at the designated position of the editing string, and the editing string cursor sliding mode is entered. . Then if the user's aforementioned sliding operation is not finished and continues to slide, the cursor can be moved in the edit string according to the direction and distance of the continued slide. When the user finishes the above sliding operation and receives the sliding operation again, since the sliding event is received in the edit string cursor sliding mode, the cursor in the editing string is directly moved according to the direction and distance of the sliding event.
  • controlling the movement of the cursor in the edit string according to the sliding event comprises:
  • Sub-step 133 controls the position of the cursor in the edit string in the same direction according to the sliding direction and the moving distance.
  • the moving direction of the cursor in the editing string coincides with the horizontal sliding direction, that is, when the user slides to the left, the cursor slides to the left, as shown in FIG. 1C, which is a sliding view from FIG. 1B to the right.
  • FIG. 1C which is a sliding view from FIG. 1B to the right.
  • the cursor slides to the right.
  • the left slide moves the cursor to the left, but the cursor does not respond to the left slide at the leftmost position of the edit string (ie, the edit string head end position).
  • the cursor moves to the right, and the rightmost edge of the edit string (that is, the last position of the edit string) does not respond to the right slider.
  • the user can exit the edit string cursor sliding mode and then enter the process of step 120 after receiving the sliding event again.
  • the method further includes:
  • Step 140 When the cursor is at the end of the edit string, if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the user when the cursor is at a position other than the end of the edit string, the user may need to modify the edit string, or need to adjust the pinyin string, etc., and the character input by the user is inserted into the cursor position, such as a picture.
  • the user continues to input the character u, and then u is inserted into k, and the edit string "ku ⁇ ai'gua" is obtained.
  • the edit string cursor sliding mode is not exited.
  • the cursor is at the end of the editing string, as shown in the cursor position of FIG. 1B, when the user inputs a button to input a character, the edit string cursor sliding mode is exited and the conventional character candidate mode is restored.
  • the input method cursor operation method can monitor the sliding event received in the input method area in the interface of the input method normal character candidate mode, and determine whether the received sliding event satisfies a preset condition, if When the sliding event meets the preset condition, the edit string cursor sliding mode is entered, and the cursor is controlled to move in the edit string according to the sliding event, thereby solving the problem that if the user wants to input the cursor in the edit string to modify the edit string, the user needs to click on the edit string.
  • the user's touch screen click action is difficult to accurately click to the desired position, and the user click action will block the edit string, which further affects the accuracy of the user operation, and has achieved It is convenient for the user to control the input method cursor to enter the edit string according to the sliding operation in the input method, and move in the edit string without affecting the user's line of sight, so that the user can more accurately locate the beneficial effect of the cursor.
  • FIG. 2 it is a schematic flowchart of an input method cursor operation method of the present invention, which may specifically include:
  • Step 210 in the regular text candidate mode of the input method, monitor whether a sliding event is received; if a sliding event is received, proceed to step 220;
  • Step 220 it is determined whether the sliding event meets a preset condition; if the sliding event meets the preset condition, then proceeds to step 230;
  • Step 230 Enter an edit string cursor sliding mode, and modify the first state identifier currently in the regular text candidate mode to the second state identifier of the edit string cursor sliding mode;
  • the present invention maintains the first state identifier of the regular character candidate mode and ensures that the operation of entering the judgment cursor sliding mode is triggered each time to ensure that the predetermined condition is not satisfied by each sliding.
  • Edit the second state identifier of the string cursor sliding mode In the appropriate mode, the corresponding status ID is enabled.
  • the above is the input method for identifying the key sequence obtained by the user, performing the recognition of the edit string, and then obtaining the upper screen candidate from the vocabulary based on the edit string, and displaying the upper-ranked candidate on the candidate list in the candidate column is normal.
  • the text candidate mode when the first state identifier is enabled, and then enters the edit string cursor sliding mode, the first state identifier that is currently the regular text candidate mode is modified to the second state identifier of the edit string cursor sliding mode.
  • step 134 after receiving the sliding event, it is determined whether the status identifier of the current input method is the second status identifier; if the status identifier of the current input method is the second status identifier, proceed to step 250;
  • step 210 determines which state the current input method is identified, and if it is the first state identifier, the determination process of step 210 is continued. If it is the second status flag, then step 250 is entered.
  • Step 250 moving the position of the cursor in the edit string according to the sliding event.
  • the method further includes:
  • Step 254 when the cursor is at the end of the edit string, if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the second state identifier of the edit string cursor sliding mode is modified to be the first of the regular text candidate mode.
  • Status identifier when the cursor is at the end of the edit string, if the character sequence input by the user is received again, the second state identifier of the edit string cursor sliding mode is modified to be the first of the regular text candidate mode.
  • the button can be clicked to input characters, such as one or more of a-z.
  • the invention solves the problem that if the user wants to input a cursor in the edit string to modify the edit string, the user needs to click on a certain position in the edit string, and because the display area of the edit string is narrow, the user's touch screen click action is difficult to accurately click to the desired position. Position, and the user clicks on the action to block the edit string, which affects the accuracy of the user's operation.
  • the sliding operation in the input method the user controls the input method cursor to enter the edit string and moves in the edit string without affecting the user's line of sight, so that the user can more accurately locate the beneficial effect of the cursor.
  • the marking of the status indicator makes the judgment of the sliding event simpler and saves system resources.
  • FIG. 3 it is a schematic flowchart of a method for operating an input method cursor according to the present invention, which may specifically include:
  • Step 310 in the conventional text candidate mode of the input method, whether to receive a sliding event; if the sliding event is received, then proceeds to step 320;
  • the mobile terminal uses a nine-key keyboard pinyin input method, such as a nine-key keyboard as follows: 1 key corresponding: word segmentation, 2 key correspondence: abc, 3 key correspondence: def, 4 key correspondence: ghi, 5 Key correspondence: jkl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • a nine-key keyboard pinyin input method such as follows: 1 key corresponding: word segmentation, 2 key correspondence: abc, 3 key correspondence: def, 4 key correspondence: ghi, 5 Key correspondence: jkl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • the user can click the keyboard 516482 of the nine-key, then the input rule firstly recognizes the key sequence 516482 according to the recognition logic of the pinyin input method, and obtains the default pinyin string as "kai'gua", through which the pinyin string can be found from the thesaurus.
  • a plurality of initial screen candidates such as a series of upper screen candidates such as "open”, “open”, “kai”. Where "'" is the segmentation symbol automatically generated by the input method, regardless of the key sequence input by the user.
  • step 320 the sliding event triggered by the sliding operation of the user in the input method keyboard area proceeds to step 320 for subsequent determination.
  • Step 320 it is determined whether the sliding event meets a preset condition; if the sliding event meets the preset condition, then proceeds to step 330;
  • Step 330 entering an edit string cursor sliding mode, and controlling the cursor to move in the edit string according to the sliding event;
  • the stroke filtering mode is also triggered, and the stroke input interface is generated to receive the filtered stroke sequence input by the user.
  • the stroke input interface is generated to receive the filtered stroke sequence input by the user.
  • the Chinese character strokes are divided into examples by “horizontal and vertical folding”.
  • the user can click the five buttons to input strokes.
  • Step 340 determining a button subsequence corresponding to the cursor
  • the positioning cursor can be passed through Position corresponding to the button sub-sequence in 516482, such as the key sequence of the first pinyin substring after the cursor is positioned, after the positioning cursor of the positioning of "kai' ⁇ gua” or "kai ⁇ 'gua”
  • a pinyin substring has a corresponding button subsequence of 482.
  • the pinyin substring in which the cursor is located is gua, and the corresponding button subsequence is also 482.
  • Step 350 Receive a sequence of filtered strokes input by a user
  • the input rule receives a sequence of filtered strokes "a glimpse”.
  • Step 360 matching the screening stroke sequence with the first stroke sequence of each initial candidate corresponding to the button subsequence
  • the corresponding Pinyin string may have multiple forms, and the corresponding words and/or words may have different types.
  • the corresponding pinyin substring may include “gua”, “hua”, etc., and each pinyin substring corresponds to a series of initial candidates in the thesaurus, and the present invention may use the foregoing screening stroke sequence with these The first stroke sequence of the initial candidate is matched, and for the initial candidate on the match, step 370 is entered.
  • the pin subsequence needs to obtain each pinyin substring that can be composed of the button subsequence, and then the corresponding initial candidates are extracted from the lexicon by each pinyin substring, and then The initial candidates of the individual Pinyin substrings are combined into an initial candidate corresponding to the button subsequence.
  • the initial candidate that can be combined with other Pinyin strings as a word/sentence is preferentially matched.
  • the above “kai ⁇ 'gua”, Pinyin kai does not deal with it, the latter 482, its corresponding "gua”, “hua”, then prefer “kai'gua”, “"kai'hua” and other pinyin
  • the words in the words corresponding to the string combination such as the words “open”, “flowering”, “opening” and other words in the word "kai”, and then select other words that cannot be combined into words to match.
  • Step 370 Correct the pinyin substring corresponding to the button subsequence and the subsequent button subsequence according to the matched initial candidates, and correct the corresponding upper screen candidate.
  • the upper screen candidate is "open”, etc., because the foregoing steps filter the initial candidate of 482, and get “flower”, and the flower
  • the pinyin string is "hua”
  • the pinyin string of the upper screen is corrected to "kai'hua”
  • the upper screen candidate such as "opening” is revoked
  • the upper screen candidate of "kai'hua” is modified, that is, The first ones are “flowering”, “opening” and so on.
  • the determining the button sub-sequence corresponding to the cursor comprises:
  • Sub-step A361 determining, according to the first position of the cursor in the Pinyin string, whether the first position is in a Pinyin substring that conforms to the Pinyin rule;
  • Sub-step A362 if the first position is not in the pinyin substring that conforms to the pinyin rule, starting from the first pinyin substring corresponding to the pinyin rule after the first position, selecting the corresponding button subsequence as the The button subsequence corresponding to the cursor;
  • Sub-step A363 if the first position is in the pinyin substring that conforms to the pinyin rule, starting from the pinyin substring corresponding to the pinyin rule where the first position is located, selecting the corresponding button subsequence as the button corresponding to the cursor sequence.
  • a key sequence of only one pinyin substring matching the pinyin rule may be selected as the button subsequence corresponding to the positioning cursor, or a key sequence specifying a plurality of pinyin substrings conforming to the pinyin rule may be used as The button subsequence corresponding to the positioning cursor.
  • the input method recognizes the default pinyin string "yi'xian'tian", and the default upper screen candidate includes "first-line day” and the like. If only one key sequence that matches a Pinyin substring conforming to the Pinyin rule is specified as the key subsequence corresponding to the positioning cursor:
  • the button sub-sequence 94 corresponding to yi is used as the button sub-sequence corresponding to the positioning cursor.
  • the positioning cursor When the user inputs the positioning cursor in "y i' ⁇ xian'tian", since the positioning cursor " ⁇ " is before x, according to the pinyin rule of Chinese Pinyin, the positioning cursor is not in a certain pinyin substring, behind it The first pinyin substring is xian, then the button sequence 9426 corresponding to xian is used as the button subsequence corresponding to the positioning cursor.
  • the key sequence 9426 serves as a key sub-sequence corresponding to the positioning cursor.
  • the positioning cursor is not in a pinyin substring according to the pinyin rule of the Chinese pinyin.
  • the first pinyin substring is t ian, then the button sequence 8426 corresponding to tian is used as the button subsequence corresponding to the positioning cursor.
  • buttons corresponding to the positioning cursor can be used as the buttons corresponding to the positioning cursor.
  • the subsequence, the subsequent stroke screening sequence can simultaneously filter the words and/or words corresponding to the two key subsequences. Other cases and so on.
  • the first position of the positioning cursor in the Pinyin string it is determined whether there is a Pinyin substring that conforms to the Pinyin rule before the first position; if the first position has a Pinyin substring that conforms to the Pinyin rule And the button subsequence after the pinyin substring corresponding to the pinyin rule is used as the button subsequence corresponding to the positioning cursor; if the first position does not match the pinyin substring of the pinyin rule, the first button is The initial button subsequence is used as the button subsequence corresponding to the positioning cursor.
  • the matching the sequence of the stroke strokes with the first stroke sequence of each initial candidate corresponding to the button subsequence includes:
  • Sub-step B361 searching for various pinyin sub-strings corresponding to the button sub-sequence
  • Sub-step B362 obtaining corresponding words and/or words from each Pinyin string to obtain initial candidates
  • Sub-step B363 the screening stroke sequence is matched with the stroke sequence of each initial candidate.
  • step 370 Based on sub-step B361-step B363, it is combined to step 370.
  • the foregoing examples are exemplified herein.
  • the user inputs 9494242426, and the input method recognizes the default pinyin string "yi'xian'tian”.
  • the default screen selection options include "first-line day” and the like.
  • Case 1 The user inputs the positioning cursor to obtain "y i' ⁇ xian'tian", then according to the foregoing steps, it can be determined that the button subsequence corresponding to the positioning cursor is 94.
  • the “West” is selected for each word corresponding to 94, then the yi in the default “yi'xian'tian” can be changed to xi, of course yi
  • the following Pinyin substrings can also be modified accordingly or not. For example, for the case of no modification, it can be "xi'xian'tian", the first word on the screen candidate is west, and the others can be based on the following pinyin. Substrings are looked up from the thesaurus.
  • the third word can be a word that can be combined with the second word as a word, such as days.
  • Other upper-screen candidates can be looked up from the thesaurus based on the subsequent pinyin substrings.
  • Case 3 The user inputs the positioning cursor to obtain "y i' ⁇ xian'tian", then according to the foregoing steps, it can be determined that the button subsequence corresponding to the positioning cursor is 94424426.
  • the strokes of the plurality of words since it is possible to match the strokes of the plurality of words, it may be predetermined to match the first stroke sequence composed of at least the first stroke of the plurality of words. Take the first stroke of each word as an example. When the user loses Into the screening stroke sequence " ⁇ ", then through the foregoing steps, for each word corresponding to 94424426, a "small day” is selected. Of course, if there are multiple words/words matching the strokes, they can also be selected according to the frequency of use, and the frequency of use is preferred.
  • the xian’tian in the default “yi’xian’tian” can be changed to xiao’tian, and the first word on the screen candidate is still one, and the second and third words are small days.
  • Other upper-screen candidates can be looked up from the thesaurus based on the subsequent pinyin substrings.
  • the screening stroke sequence is matched with the stroke sequence of each initial candidate corresponding to the button subsequence, including:
  • Sub-step C361 matching the sequence of filtered strokes input by the user with the first sequence of strokes consisting of at least the first stroke of each word of each initial candidate.
  • the button subsequence corresponding to the positioning cursor can correspond to several pinyin strings, and each pinyin string corresponds to multiple initial candidates. Therefore, each button subsequence corresponds to more initials through its corresponding pinyin string.
  • Candidate For example, in the step, a plurality of pinyin substrings corresponding to the pinyin rules of the first position corresponding to the first position corresponding to the positioning cursor are obtained, and the plurality of button subsequences corresponding to the plurality of pinyin substrings are used as the button subsequence corresponding to the positioning cursor. Then, the sequence of key words may correspond to words.
  • 94224426 in the second embodiment may correspond to "xiao'tian” and “xian'tian”, and each of these pinyin strings corresponds to two words, or may be understood as corresponding words. .
  • the invention can then match a stroke sequence to match multiple words of an initial candidate.
  • the matching the sequence of the filtered strokes input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate comprises:
  • Sub-step C362 matching the screening stroke sequence with a first stroke sequence consisting of a complete stroke sequence of each initial candidate word
  • the complete strokes of each word of each initial screen candidate can be extracted to form a first stroke sequence, such as “Asia”, and the complete stroke sequence of “Asia” is “one by one”.
  • the complete stroke sequence of "Zhou” is " ⁇ "
  • the first stroke sequence composed is " ⁇ ”
  • the sequence of screening strokes can be The first stroke sequence is matched.
  • sub-step C363 matching the filtered stroke sequence with a first stroke sequence consisting of the first stroke of each word of each initial candidate.
  • the complete strokes of each word of each initial screen candidate can be extracted to form a first stroke sequence, such as the aforementioned "Asia", the first stroke of "Asia” is "one”, “continental” The first stroke of the stroke is " ⁇ ”, then the first stroke sequence composed is " ⁇ ”, and the sequence of the filtered strokes can be matched with the first stroke sequence.
  • the method before the matching the sequence of the stroke stroke input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate, the method further comprises:
  • Sub-step C364 for each initial candidate, the first stroke sequence of each initial candidate is obtained from the thesaurus.
  • the stroke of each word can be saved in the vocabulary in advance, and the vocabulary can be installed in the specified path of the system with the client at the time of installation.
  • the first stroke sequence of each initial upper screen candidate may be extracted from the thesaurus before, during or after the process of receiving the user input screening stroke sequence.
  • a first stroke sequence composed of at least a first stroke of each word of each initial upper screen candidate may be extracted.
  • the sequence of screening strokes input by the user is at least first with each word of each initial candidate
  • the matching of the first stroke sequence composed of strokes also includes:
  • Sub-step C365 when the screening stroke sequence does not completely match the first stroke sequence of the initial candidate, using the stroke-based error correction model to determine the stroke sequence input by the user and the first candidate The probability of matching stroke sequences;
  • an error may be input.
  • the "one, ⁇ , ⁇ , ⁇ , and B" of the five-stroke input method is taken as an example.
  • the correct stroke order should be “ ⁇ ”, and the input next to the vertical is easy to make mistakes, such as “ ⁇ ”, then the wrong input can be judged by the stroke-based error correction model to judge the stroke sequence input by the user.
  • the probability of matching the first stroke sequence of the initial upper screen candidate is taken as an example.
  • the screening stroke sequence and the initial may be considered The first stroke sequence of the upper screen candidate matches; otherwise, it is considered that there is no match.
  • the method further includes:
  • Sub-step C367 constructing the stroke-based error correction model by using a binary or plural relationship of words in the phrase and/or sentence;
  • the binary relationship is used to indicate the probability that two elements appear successively, that is, P(B
  • Multivariate relationships are derived from binary relationships.
  • the probability of occurrence of the stroke can be determined according to the strokes of the pre-statistical phrase and the word, according to the direct binary or multi-dimensional relationship of the direct word of the phrase or the sentence. For example, the sequence of happy strokes is “ ⁇ ”, and the probability of corresponding happiness is “90% by ⁇ ”, “ ⁇ The probability that ⁇ ” corresponds to happiness is 79%, and so on, thus constructing a stroke-based error correction model.
  • the matching probability of the stroke selection sequence and each initial upper screen candidate may be determined according to the stroke-based error correction model, and if it is greater than the threshold, for example, greater than 34%, It can be considered that the initial screen candidate is matched.
  • sub-step C342 constructing the stroke-based error correction model using binary or multivariate relationships between the strokes that make up each word.
  • the stroke of "fast” is “ ⁇ "
  • the probability that the stroke sequence " ⁇ " corresponds to "fast” is 90%
  • the stroke sequence is " ⁇ ”
  • the probability of corresponding "fast” word is 80%, and similar principles can construct a correction model based on strokes.
  • the matching probability of the stroke selection sequence and each initial upper screen candidate may also be determined according to the stroke-based error correction model. If it is greater than the threshold, for example, greater than 34%, the initial upper screen candidate may be considered to be matched.
  • the receiving a sequence of screening strokes input by a user includes:
  • Sub-step C369 determining whether there is a separator in the sequence of the filtered strokes; if there is a separator, separating the sequence of the filtered strokes input by the user into each of the screening stroke sub-sequences according to the separator.
  • the matching the sequence of the filtered strokes input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate comprises:
  • Sub-step C370 in the unit of filtering the stroke sub-sequence, sequentially matching the screening stroke sub-sequence with the target stroke sub-sequence of the word in the corresponding order in each initial candidate.
  • the separator identification rule may be set in advance, for example, "," or “;” is set as a separator, and the user may input a separator between the input filter strokes, and separate the filter stroke sequence into the filter strokes. Sequence, each of the filtered stroke subsequences may correspond to a sequence of filtered strokes of one word.
  • the filtered stroke sequence can be matched in sequence with the first stroke sequence consisting of at least the first stroke of each word of each initial upper screen candidate.
  • the filter stroke subsequence between the two separators corresponds to the initial match.
  • the word at the corresponding position of the screen For example, there are two separators.
  • the filter stroke subsequence before the first separator corresponds to the first word matching the initial screen candidate
  • the filter stroke subsequence between the first separator and the second separator corresponds to Matches the second word of the initial upper screen candidate
  • the filtered stroke subsequence after the second delimiter corresponds to the third word that matches the initial upper screen candidate
  • Sub-steps C369 and C370 may be used when matching the first stroke sequence composed of at least the first two strokes of each word of the initial candidate, which can improve the recognition speed of the screening stroke sequence and improve the matching efficiency.
  • the invention solves the problem that if the user wants to input a cursor in the edit string to modify the edit string, the user needs to click on a certain position in the edit string, and because the display area of the edit string is narrow, the user's touch screen click action is difficult to accurately click to the desired position. The location, and the user click action will block the edit string, which further affects the accuracy of the user's operation. It is convenient for the user to control the input method's cursor to enter the edit string according to the sliding operation in the input method, and move in the edit string. Does not affect the user's line of sight, allowing the user to more accurately locate the beneficial effects of the cursor. Moreover, the marking of the status identifier makes the judgment of the sliding event simpler and saves system resources.
  • the method for determining candidate Chinese characters needs to be determined after pinyin determination, and the operation process is many, and further filtering is not performed, which affects the input efficiency of the user, improves the flexibility of the user to use the positioning cursor, and further filters the candidate on the screen. To improve user input efficiency.
  • multiple words of the initial candidate can be filtered by a plurality of strokes, which is not limited to single word filtering, and the screening efficiency is high, and the input efficiency is further improved.
  • FIG. 4 it is a schematic flowchart of a method for operating an input method cursor according to the present invention, which may specifically include:
  • Step 410 in the regular text candidate mode of the input method, whether to receive a sliding event; if the sliding event is received, then proceeds to step 420;
  • the mobile terminal uses a pinyin input method of a nine-key keyboard, such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: ikl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • a nine-key keyboard such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: ikl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • the user can click the keyboard 516482 of the nine-key, then the input rule firstly recognizes the key sequence 516482 according to the recognition logic of the pinyin input method, and obtains the default pinyin string as "kai'gua".
  • the state is the input method.
  • Normal regular text candidate mode is an input method for identifying a key sequence obtained by a user, and identifying the edit string, and then obtaining a screen candidate from the vocabulary based on the edit string, and ranking the previous one.
  • the upper screen candidate is displayed in the candidate column. Taking the nine-key input method as an example, as shown in FIG. 1A, a conventional character candidate mode of the input method is shown.
  • the conventional text candidate mode for other types of keyboards is similar to the above example.
  • the conventional text candidate mode of other types of input methods is similar to the above example.
  • the stroke input method after the user clicks the key sequence, the input method converts the key sequence into a stroke string, and according to the stroke string, the upper screen candidate is obtained from the thesaurus, and the ranking is determined by The previous upper screen candidate is displayed in the candidate column, and the current situation is the regular text candidate mode.
  • the input keyboard area may be an area below the input method candidate column. As shown in Figure 1A, areas such as “flowering” are in the area below the candidate column.
  • the preferred input keyboard area can be selected as the input interface where the 1-9 key is located, and of course, the interface area where the keys such as "character", "", "space", and "word” are located.
  • a sliding event is triggered. Then, after receiving the sliding event in the input method interface area, the embodiment of the present invention determines the sliding event.
  • the sliding event may be determined by the down event+move event on the touch screen, and the up event may be used to determine the end of the user operation.
  • Step 420 it is determined whether the sliding event meets the preset condition; if the sliding event meets the preset condition, then proceeds to step 430;
  • the present invention can determine whether the sliding event satisfies a preset condition, such as whether to determine whether the sliding event has a sliding distance to a predetermined direction reaching a threshold.
  • a preset condition is set as follows: the vertical direction and the horizontal direction of the touch screen are referenced (as shown in FIG. 1A), and the end point of the sliding event sliding is on the right side of the starting point (as shown in FIG. 1A corresponding to the vertical direction, up and down, and Corresponding to the horizontal direction left and right), the distance from the start point to the end point in the horizontal direction reaches a threshold value, such as 3 (the left and right direction of FIG.
  • the initial focus coordinate of the user after pressing the touch screen is (7, 5).
  • the coordinates of the touch focus change, for example, sliding to (10, 10), then the focus coordinate after the sliding is at the start.
  • the left side of the focus coordinate, then the sliding event is sliding to the left, and the horizontal sliding distance is 3, and when the aforementioned threshold value 3 is reached, it is determined that the sliding event satisfies the preset condition.
  • whether the sliding event meets the preset condition may be identified according to the coordinate position corresponding to the event of the up event, the down event+move event, and the relative position and distance between the coordinates.
  • determining whether the sliding event meets the preset condition comprises:
  • Sub-step 421 determining whether the sliding event is a sliding operation in the direction of the candidate tail in the input method keyboard area
  • Sub-step 422 if the sliding event is a sliding operation in the input method keyboard area to the candidate tail end direction, it is determined that the sliding event meets the preset condition.
  • the preset condition may be specified as a sliding operation in the direction of the head end of the editing string in the input method keyboard area.
  • the end point of the sliding event sliding is on the right side of the starting point (upper and lower in the vertical direction as shown in FIG. 1A, and corresponding to the horizontal direction left, Right)
  • the distance threshold from the start point to the end point in the horizontal direction is x.
  • the sub-step 430 is entered.
  • step 430 the candidate cursor sliding mode is entered, and the cursor is controlled to move in the candidate according to the sliding event.
  • the current regular text candidate mode can be switched to the candidate cursor sliding mode, that is, as shown in FIG. 4A, and then the cursor can be moved in the candidate column according to the sliding event, and moved to the candidate “Kayhua”.
  • the cursor In the candidate In the cursor sliding mode, the cursor is generally invisible, which is only displayed on the moving item, that is, moving a position in the candidate column, and correspondingly moving to the next candidate.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step 431 highlights the candidate corresponding to the cursor.
  • the candidate is highlighted. It is convenient for the user to determine the specific position of the cursor.
  • a sliding event of the entry candidate column is triggered for a certain sliding operation of the user, and if the direction and the sliding distance of the sliding event reach a predetermined condition, the candidate cursor sliding mode is entered. Then, if the user's sliding operation is not finished and continues to slide, the cursor can be moved in the candidate column according to the direction and distance of the continuous sliding, that is, the candidate corresponding to the cursor is moved.
  • the cursor in the candidate column is directly moved according to the direction and distance of the sliding event.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step 432 moves the position of the cursor in the candidate column in the same direction according to the sliding direction and the moving distance.
  • the moving direction of the cursor in the candidate column coincides with the horizontal sliding direction, that is, when the user slides to the right, the cursor slides to the right, as shown in FIG. 4A, which is a schematic diagram of the cursor moving to the right in the candidate.
  • FIG. 4A is a schematic diagram of the cursor moving to the right in the candidate.
  • the left sliding moves the cursor to the left, but the cursor has no action in the leftmost position of the candidate column, but moves the candidate.
  • you slide right the cursor moves to the right, and there is no action at the far right of the candidate column, but the candidate is moved.
  • the user can exit the candidate cursor sliding mode and then receive the sliding event again and proceed to the process of step 420.
  • the method further includes:
  • the character input by the user is continued to be received. For example, if u is input in the pinyin input method, the edit string is changed, and the corresponding candidate also changes, and the candidate cursor can be exited. Sliding mode.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step 434 when the cursor moves to the last candidate displayed in the candidate column, if the sliding event to the end of the candidate is continuously received, it is determined whether the last candidate displayed in the candidate column is the last candidate;
  • Sub-step 435 if the last candidate displayed in the candidate column is not the last candidate, the candidates displayed in the candidate column are moved to the head end;
  • candidates for simultaneous display in the subsequent columns are limited. For example, only four or so candidates can be displayed in FIG. 4A, and actually the number of candidates corresponding to one edit string or the user-entered key sequence. It is generally far more than the number of candidates that can be displayed in the candidate bar. Then, when the cursor moves to the last candidate displayed in the candidate column, as shown in "Kaihua" in Fig. 4A, then it is judged whether "Kaihua" is the last candidate for all sorting, if it is "Kaihua" It is not the last candidate. For the right sliding event, you need to match the cursor to the candidate after the current candidate.
  • FIG. 4A “Kaiser” is obtained by moving all the candidates to the left after moving the cursor to the right in FIG. 1A. If it is "Kaihua" is the last one The candidate does not respond to the right slider.
  • Sub-step 436 when the cursor moves to the first candidate displayed in the candidate column, if the sliding event to the candidate head end is continuously received, it is determined whether the first candidate displayed in the candidate column is the first candidate item;
  • Sub-step 437 if the first candidate displayed in the candidate column is not the first candidate, the candidates displayed in the candidate column are skipped to the tail end.
  • the method further includes:
  • Sub-step 438 correcting the corresponding edit string according to the candidate corresponding to the position where the cursor moves.
  • each candidate corresponding to each edit string corresponding to the key sequence may be selected according to the key sequence, such as the key sequence “516482” in the foregoing example, which corresponds to at least two Pinyin strings.
  • the key sequence such as the key sequence “516482” in the foregoing example, which corresponds to at least two Pinyin strings.
  • the initial Pinyin string is “kai'gua”, then after entering the candidate cursor sliding mode, after moving the cursor to the right to “Kaihua”, the Pinyin string is adjusted according to “Kaihua”. For "kai'hua”.
  • the input method cursor operation method can monitor the sliding event received in the input method area in the interface of the input method normal character candidate mode, and determine whether the received sliding event satisfies a preset condition, if the sliding event is satisfied.
  • the preset condition enters the candidate cursor sliding mode, and the cursor is controlled to move in the candidate according to the sliding event, thereby solving the candidate for the input method according to the edit string displayed in the candidate column, if the user wants to select more candidates Item, the user needs to click the expand button to expand the candidate interface to select, but the candidate interface will overwrite the input method keyboard, which cannot display the new candidate problem directly in the candidate column by the cursor of the candidate column, and the user is conveniently input according to the input.
  • the cursor of the control input method enters the candidate column and moves in the candidate, which does not affect the user's line of sight, so that the user can more conveniently select the beneficial effects of the candidate.
  • FIG. 5 it is a schematic flowchart of an input method cursor operation method of the present invention, which may specifically include:
  • Step 510 in the conventional text candidate mode of the input method, whether to receive a sliding event; if a sliding event is received, then proceeds to step 520;
  • Step 520 it is determined whether the sliding event meets a preset condition; if the sliding event meets the preset condition, then proceeds to step 530;
  • Step 530 Enter a candidate cursor sliding mode, and modify the first state identifier that is the current text candidate mode to be the third state identifier of the candidate cursor sliding mode.
  • the present invention maintains the first state identifier of the regular character candidate mode and ensures that the operation of entering the judgment cursor sliding mode is triggered each time to ensure that the predetermined condition is not satisfied by each sliding.
  • the third status indicator of the candidate cursor sliding mode In the appropriate mode, the corresponding status ID is enabled.
  • the above is the input method for identifying the key sequence obtained by the user, performing the recognition of the edit string, and then obtaining the upper screen candidate from the vocabulary based on the edit string, and displaying the upper-ranked candidate on the candidate list in the candidate column is normal.
  • the text candidate mode when the first state identifier is enabled, and then enters the candidate cursor sliding mode, the first state identifier that is currently the regular text candidate mode is modified to the third state identifier of the edit string cursor sliding mode.
  • Step 540 after receiving the sliding event, it is determined whether the status identifier of the current input method is a third status identifier; if the status identifier of the current input method is the third status identifier, then proceeds to step 550;
  • step 510 determines which state the current input method is identified, and if it is the third state identifier, the determination process of step 510 is continued. If it is the second status flag, then step 550 is entered.
  • Step 550 Move the position of the cursor in the candidate according to the sliding event.
  • Step 560 if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the third state identifier of the candidate cursor sliding mode is modified to the first state identifier of the regular character candidate mode.
  • FIG. 6 it is a schematic flowchart of an input method cursor operation method of the present invention, which may specifically include:
  • Step 610 Listening to whether a sliding event is received in a regular text candidate mode of the input method
  • the mobile terminal uses a pinyin input method of a nine-key keyboard, such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: ikl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • a nine-key keyboard such as a nine-key keyboard as follows: 1 key corresponds to: participle, 2 key corresponds: abc, 3 key corresponds: def, 4 key corresponds: ghi, 5 Key correspondence: ikl, 6 keys correspond to: mno, 7 keys correspond to: pqrs, 8 keys correspond to: tuv, 9 keys correspond to: wxyz.
  • the user can click the keyboard 516482 of the nine-key, then the input rule firstly recognizes the key sequence 516482 according to the recognition logic of the pinyin input method, and obtains the default pinyin string as "kai'gua".
  • the state is the input method.
  • Normal regular text candidate mode is an input method for identifying a key sequence obtained by a user, and identifying the edit string, and then obtaining a screen candidate from the vocabulary based on the edit string, and displaying the top screen candidate in the candidate column in the candidate column.
  • the conventional text candidate mode for other types of keyboards is similar to the above example.
  • the conventional text candidate mode of other types of input methods is similar to the above example.
  • the stroke input method after the user clicks the key sequence, the input method converts the key sequence into a stroke string, and according to the stroke string, the upper screen candidate is obtained from the thesaurus, and the ranking is determined by The previous upper screen candidate is displayed in the candidate column, and the current situation is the regular text candidate mode.
  • the input keyboard area may be an area below the input method candidate column. As shown in Figure 1A, areas such as “flowering” are in the area below the candidate column.
  • the preferred input keyboard area can be selected as the input interface where the 1-9 key is located, and of course, the interface area where the keys such as "character", "", "space", and "word” are located.
  • a sliding event is triggered. Then, after receiving the sliding event in the input method interface area, the embodiment of the present invention determines the sliding event.
  • the sliding event may be determined by the down event+move event on the touch screen, and the up event may be used to determine the end of the user operation.
  • Step 620 if a sliding event is received, determining a preset condition type that the sliding event meets;
  • two types of preset conditions may be preset, corresponding to the edit string cursor slide mode and the candidate cursor slide mode, respectively.
  • setting the first type of preset condition is: taking the vertical direction and the horizontal direction of the touch screen as a reference (as shown in FIG. 1A).
  • the end point of the sliding event sliding is on the left side of the starting point (upper and lower in the vertical direction as shown in FIG. 1A, and corresponding to the horizontal direction left and right), and the distance from the starting point to the ending point in the horizontal direction reaches a threshold, such as 3 (eg In the left-right direction of FIG. 1, if the sliding event satisfies the above condition, it is judged that it satisfies the first type of preset condition.
  • setting the second type of preset condition is: taking the vertical direction and the horizontal direction of the touch screen as a reference (as shown in FIG. 1A), the end point of the sliding event sliding is on the right side of the starting point, and the distance from the starting point to the ending point in the horizontal direction reaches a threshold value. If 3, if the sliding event satisfies the above condition, it is judged that it satisfies the second type preset condition.
  • the initial focus coordinate of the user after pressing the touch screen is (10, 10).
  • the coordinates of the touch focus change, for example, sliding to (7, 5), then the focus coordinate after the sliding is at the start.
  • the left side of the focus coordinate, then the sliding event is sliding to the left, and the horizontal sliding distance is 3, and when the aforementioned threshold value 3 is reached, it is determined that the sliding event satisfies the first type preset condition.
  • the initial focus coordinate of the user after pressing the touch screen is (7, 5).
  • the coordinates of the touch focus change, for example, sliding to (10, 10), then the focus coordinate after the sliding is at the start.
  • the left side of the focus coordinate, then the sliding event is sliding to the left, and the horizontal sliding distance is 3, and when the aforementioned threshold value 3 is reached, it is determined that the sliding event satisfies the second type preset condition.
  • the down event+move event which type of preset condition is satisfied by the sliding event, or both Not satisfied.
  • determining the preset condition type that the sliding event is satisfied includes:
  • Sub-step 621 when it is determined that the sliding event is a sliding operation in the direction of the head end of the editing string in the input method keyboard area, determining that the sliding event satisfies the first type preset condition;
  • the embodiment of the present invention determines whether the sliding event is a sliding operation in the direction of the head end of the editing string in the keyboard area of the input method, with the vertical direction and the horizontal direction of the touch screen as reference (as shown in FIG. 1A ), and the end point of the sliding event sliding is at the starting point.
  • the distance threshold from the start point to the end point in the horizontal direction is x, and it is determined that the slide event satisfies the first type preset condition.
  • Sub-step 622 when it is determined that the sliding event is a sliding operation in the direction of the candidate tail in the input method keyboard area, it is determined that the sliding event satisfies the second type preset condition.
  • the embodiment of the present invention determines whether the sliding event is a sliding operation in the direction of the head end of the editing string in the keyboard area of the input method, with the vertical direction and the horizontal direction of the touch screen as reference (as shown in FIG. 1A ), and the end point of the sliding event sliding is at the starting point.
  • the distance threshold from the start point to the end point in the horizontal direction is x, and it is determined that the sliding event satisfies the first type of preset condition.
  • Step 630 if the sliding event meets the first type preset condition, enter an edit string cursor sliding mode, and control the cursor to move in the edit string according to the sliding event;
  • the current regular text candidate mode can be switched to the edit string cursor sliding mode, that is, as shown in FIG. 1B, and then the cursor can be moved in the edit string according to the sliding event.
  • the cursor when a certain sliding operation of the user is triggered to enter the edit string cursor sliding mode, and then if the user's sliding operation does not end and continues to slide, the cursor may be moved in the edit string according to the direction and distance of the continued sliding. .
  • the cursor in the editing string is directly moved according to the direction and distance of the sliding event.
  • controlling the movement of the cursor in the edit string according to the sliding event comprises:
  • Sub-step 631 controls the position of the cursor in the edit string in the same direction according to the sliding direction and the moving distance.
  • the moving direction of the cursor in the editing string coincides with the horizontal sliding direction, that is, when the user slides to the left, the cursor slides to the left, as shown in FIG. 1C, which is a sliding view from FIG. 1B to the right.
  • FIG. 1C which is a sliding view from FIG. 1B to the right.
  • the cursor slides to the right.
  • the left slide moves the cursor to the left, but the cursor does not respond to the left slide at the leftmost position of the edit string (ie, the edit string head end position).
  • the cursor moves to the right, and the rightmost edge of the edit string (that is, the last position of the edit string) does not respond to the right slider.
  • the user can exit the edit string cursor slide mode and then enter the process of step 620 after receiving the slide event again.
  • the method further includes:
  • Step S631 when the cursor is at the end of the edit string, if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the user when the cursor is at a position other than the end of the edit string, the user may need to modify the edit string, or need to adjust the pinyin string, etc., and the character input by the user is inserted into the cursor position, such as a picture.
  • the user continues to input the character u, and then u is inserted into k, and the edit string "ku ⁇ ai'gua" is obtained.
  • the edit string cursor sliding mode is not exited.
  • the cursor is at the end of the editing string, as shown in the cursor position of FIG. 1B, when the user inputs a button to input a character, the edit string cursor sliding mode is exited and the conventional character candidate mode is restored.
  • the button can be clicked to input characters, such as one or more of a-z.
  • the stroke filtering mode is also triggered, and the stroke input interface is generated to receive the filtered stroke sequence input by the user.
  • the stroke input interface is generated to receive the filtered stroke sequence input by the user.
  • the Chinese character strokes are divided into examples by “horizontal and vertical folding”.
  • the user can click the five buttons to input strokes.
  • the method further includes:
  • Step S632 determining a button subsequence corresponding to the cursor
  • the positioning cursor can be passed through Position corresponding to the button sub-sequence in 516482, such as the key sequence of the first pinyin substring after the cursor is positioned, after the positioning cursor of the positioning of "kai' ⁇ gua” or "kai ⁇ 'gua”
  • a pinyin substring has a corresponding button subsequence of 482.
  • the pinyin substring in which the cursor is located is gua, and the corresponding button subsequence is also 482.
  • Step S633 receiving a sequence of screening strokes input by the user
  • the input rule receives a sequence of filtered strokes "a glimpse”.
  • Step S634 matching the screening stroke sequence with the first stroke sequence of each initial candidate corresponding to the button subsequence
  • the corresponding Pinyin string may have multiple forms, and the corresponding words and/or words may have different types.
  • the corresponding pinyin substring may include “gua”, “hua”, etc., and each pinyin substring corresponds to a series of initial candidates in the thesaurus, and the present invention may use the foregoing screening stroke sequence with these The first stroke sequence of the initial candidate is matched, and the initial candidate for the match is entered into the step 370.
  • the pin subsequence needs to obtain each pinyin substring that can be composed of the button subsequence, and then the corresponding initial candidates are extracted from the lexicon by each pinyin substring, and then The initial candidates of the individual Pinyin substrings are combined into an initial candidate corresponding to the button subsequence.
  • the initial candidate that can be combined with other Pinyin strings as a word/sentence is preferentially matched.
  • the above “kai ⁇ 'gua”, Pinyin kai does not deal with it, the latter 482, its corresponding "gua”, “hua”, then prefer “kai'gua”, “"kai'hua” and other pinyin
  • the words in the words corresponding to the string combination such as the words “open”, “flowering”, “opening” and other words in the word "kai”, and then select other words that cannot be combined into words to match.
  • Step S635 correcting the pinch substring corresponding to the button subsequence and the subsequent button subsequence according to the matched initial candidates, and correcting the corresponding upper screen candidate.
  • the upper screen candidate is "open”, etc., because the foregoing steps filter the initial candidate of 482, and get “flower”, and the flower
  • the pinyin string is "hua”
  • the pinyin string of the upper screen is corrected to "kai'hua”
  • the upper screen candidate such as "opening” is revoked
  • the upper screen candidate of "kai'hua” is modified, that is, The first ones are “flowering”, “opening” and so on.
  • step S632 the determining the button subsequence corresponding to the cursor comprises:
  • Sub-step S6321 the cursor is at a first position in the Pinyin string, and determining whether the first position is in a Pinyin substring that conforms to the Pinyin rule;
  • Sub-step S6322 if the first position is not in the pinyin substring conforming to the pinyin rule, starting from the first pinyin substring corresponding to the pinyin rule after the first position, selecting the corresponding button subsequence as the The button subsequence corresponding to the cursor;
  • Sub-step S6323 if the first position is in the pinyin substring matching the pinyin rule, starting from the pinyin substring corresponding to the pinyin rule where the first position is located, selecting the corresponding button subsequence as the button corresponding to the cursor sequence.
  • a key sequence of only one pinyin substring matching the pinyin rule may be selected as the button subsequence corresponding to the positioning cursor, or a key sequence specifying a plurality of pinyin substrings conforming to the pinyin rule may be used as The button subsequence corresponding to the positioning cursor.
  • the input method recognizes the default pinyin string "yi'xian'tian", and the default upper screen candidate includes "first-line day” and the like. If only one key sequence that matches a Pinyin substring conforming to the Pinyin rule is specified as the key subsequence corresponding to the positioning cursor:
  • the button sub-sequence 94 corresponding to yi is used as the button sub-sequence corresponding to the positioning cursor.
  • the positioning cursor When the user inputs the positioning cursor in "y i' ⁇ xian'tian", since the positioning cursor " ⁇ " is before x, according to the pinyin rule of Chinese Pinyin, the positioning cursor is not in a certain pinyin substring, behind it The first pinyin substring is xian, then the button sequence 9426 corresponding to xian is used as the button subsequence corresponding to the positioning cursor.
  • xian corresponds Key sequence Column 9426 serves as a sub-sequence of keys corresponding to the positioning cursor.
  • the positioning cursor is not in a pinyin substring according to the pinyin rule of the Chinese pinyin.
  • the first pinyin substring is t ian, then the button sequence 8426 corresponding to tian is used as the button subsequence corresponding to the positioning cursor.
  • buttons corresponding to the positioning cursor can be used as the buttons corresponding to the positioning cursor.
  • the subsequence, the subsequent stroke screening sequence can simultaneously filter the words and/or words corresponding to the two key subsequences. Other cases and so on.
  • the first position of the positioning cursor in the Pinyin string it is determined whether there is a Pinyin substring that conforms to the Pinyin rule before the first position; if the first position has a Pinyin substring that conforms to the Pinyin rule And the button subsequence after the pinyin substring corresponding to the pinyin rule is used as the button subsequence corresponding to the positioning cursor; if the first position does not match the pinyin substring of the pinyin rule, the first button is The initial button subsequence is used as the button subsequence corresponding to the positioning cursor.
  • step S634 the matching, by the screening stroke sequence, the first stroke sequence of each initial candidate corresponding to the button subsequence includes:
  • Sub-step S6341 searching for various pinyin substrings corresponding to the button subsequence
  • Sub-step S6342 obtaining corresponding words and/or words from each Pinyin string to obtain initial candidates
  • Sub-step S6343 the screening stroke sequence is matched with the stroke sequence of each initial candidate.
  • the user inputs 9494242426, and the input method recognizes the default pinyin string "yi'xian'tian”.
  • the default screen selection options include "first-line day” and the like.
  • Case 1 The user inputs the positioning cursor to obtain "y i' ⁇ xian'tian", then according to the foregoing steps, it can be determined that the button subsequence corresponding to the positioning cursor is 94.
  • the “West” is selected for each word corresponding to 94, then the yi in the default “yi'xian'tian” can be changed to xi, of course yi
  • the following Pinyin substrings can also be modified accordingly or not. For example, for the case of no modification, it can be "xi'xian'tian", the first word on the screen candidate is west, and the others can be based on the following pinyin. Substrings are looked up from the thesaurus.
  • the third word can be a word that can be combined with the second word as a word, such as days.
  • Other upper-screen candidates can be looked up from the thesaurus based on the subsequent pinyin substrings.
  • Case 3 The user inputs the positioning cursor to obtain "y i' ⁇ xian'tian", then according to the foregoing steps, it can be determined that the button subsequence corresponding to the positioning cursor is 94424426.
  • the strokes of a plurality of words since it is possible to match the strokes of a plurality of words, it is possible to predetermine the The first stroke sequence consisting of the first stroke is matched. Take the first stroke of each word as an example. When the user inputs the screening stroke sequence " ⁇ ", then through the foregoing steps, "small days" are selected for each word corresponding to 94424426. Of course, if there are multiple words/words matching the strokes, they can also be selected according to the frequency of use, and the frequency of use is preferred.
  • the xian’tian in the default “yi’xian’tian” can be changed to xiao’tian, and the first word on the screen candidate is still one, and the second and third words are small days.
  • Other upper-screen candidates can be looked up from the thesaurus based on the subsequent pinyin substrings.
  • the screening stroke sequence is matched with the stroke sequence of each initial candidate corresponding to the button subsequence, including:
  • Sub-step B6341 matching the sequence of filtered strokes input by the user with the first sequence of strokes consisting of at least the first stroke of each word of each initial candidate.
  • the button subsequence corresponding to the positioning cursor can correspond to several pinyin strings, and each pinyin string corresponds to multiple initial candidates. Therefore, each button subsequence corresponds to more initials through its corresponding pinyin string.
  • Candidate For example, in the step, a plurality of pinyin substrings corresponding to the pinyin rules of the first position corresponding to the first position corresponding to the positioning cursor are obtained, and the plurality of button subsequences corresponding to the plurality of pinyin substrings are used as the button subsequence corresponding to the positioning cursor. Then, the sequence of key words may correspond to words.
  • 94224426 in the second embodiment may correspond to "xiao'tian” and “xian'tian”, and each of these pinyin strings corresponds to two words, or may be understood as corresponding words. .
  • the invention can then match a stroke sequence to match multiple words of an initial candidate.
  • the matching the sequence of the filtered strokes input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate comprises:
  • Sub-step B6342 matching the screening stroke sequence with a first stroke sequence consisting of a complete stroke sequence of each initial candidate word
  • the complete strokes of each word of each initial screen candidate can be extracted to form a first stroke sequence, such as “Asia”, and the complete stroke sequence of “Asia” is “one by one”.
  • the complete stroke sequence of "Zhou” is " ⁇ "
  • the first stroke sequence composed is " ⁇ ”
  • the sequence of screening strokes can be The first stroke sequence is matched.
  • sub-step B6343 matching the filtered stroke sequence with a first stroke sequence consisting of the first stroke of each word of each initial candidate.
  • the complete strokes of each word of each initial screen candidate can be extracted to form a first stroke sequence, such as the aforementioned "Asia", the first stroke of "Asia” is "one”, “continental” The first stroke of the stroke is " ⁇ ”, then the first stroke sequence composed is " ⁇ ”, and the sequence of the filtered strokes can be matched with the first stroke sequence.
  • the method before the matching the sequence of the stroke stroke input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate, the method further comprises:
  • Sub-step B6344 for each initial candidate, obtain a first stroke sequence for each initial candidate from the thesaurus.
  • the stroke of each word can be saved in the vocabulary in advance, and the vocabulary can be installed in the specified path of the system with the client at the time of installation.
  • the first stroke sequence of each initial upper screen candidate may be extracted from the thesaurus before, during or after the process of receiving the user input screening stroke sequence.
  • a first stroke sequence composed of at least a first stroke of each word of each initial upper screen candidate may be extracted.
  • the matching the sequence of the filtered strokes input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate further comprises:
  • Sub-step B6327 when the screening stroke sequence does not completely match the first stroke sequence of the initial candidate, using the stroke-based error correction model to determine the stroke sequence input by the user and the first candidate The probability of matching stroke sequences;
  • an error may be input.
  • the "one, ⁇ , ⁇ , ⁇ , and B" of the five-stroke input method is taken as an example.
  • the correct stroke order should be “ ⁇ ”, and the input next to the vertical is easy to make mistakes, such as “ ⁇ ”, then the wrong input can be judged by the stroke-based error correction model to judge the stroke sequence input by the user.
  • the probability of matching the first stroke sequence of the initial upper screen candidate is taken as an example.
  • Sub-step B6346 when the probability of the matching is greater than the threshold, determining that the screening stroke sequence matches the first stroke sequence of the initial candidate.
  • the screening stroke sequence and the initial may be considered The first stroke sequence of the upper screen candidate matches; otherwise, it is considered that there is no match.
  • the method further includes:
  • Sub-step B6347 constructing the stroke-based error correction model by using a binary or plural relationship of words in the phrase and/or the sentence;
  • the binary relationship is used to indicate the probability that two elements appear successively, that is, P(B
  • Multivariate relationships are derived from binary relationships.
  • the probability of occurrence of the stroke can be determined according to the strokes of the pre-statistical phrase and the word, according to the direct binary or multi-dimensional relationship of the direct word of the phrase or the sentence. For example, the sequence of happy strokes is “ ⁇ ”, and the probability of corresponding happiness is “90% by ⁇ ”, “ ⁇ The probability that ⁇ ” corresponds to happiness is 79%, and so on, thus constructing a stroke-based error correction model.
  • the matching probability of the stroke selection sequence and each initial upper screen candidate may be determined according to the stroke-based error correction model, and if it is greater than the threshold, for example, greater than 34%, It can be considered that the initial screen candidate is matched.
  • sub-step B6348 constructing the stroke-based error correction model using binary or multivariate relationships between the strokes that make up each word.
  • the stroke of "fast” is “ ⁇ "
  • the probability that the stroke sequence " ⁇ " corresponds to "fast” is 90%
  • the stroke sequence is " ⁇ ”
  • the probability of corresponding "fast” word is 80%, and similar principles can construct a correction model based on strokes.
  • the matching probability of the stroke selection sequence and each initial upper screen candidate may also be determined according to the stroke-based error correction model. If it is greater than the threshold, for example, greater than 34%, the initial upper screen candidate may be considered to be matched.
  • the receiving a sequence of screening strokes input by a user comprises:
  • Sub-step B6349 determining whether there is a delimiter in the screening stroke sequence; if there is a delimiter, separating the filtering stroke sequence input by the user into each screening stroke sub-sequence according to the delimiter.
  • the matching the sequence of the filtered strokes input by the user with the first stroke sequence consisting of at least the first stroke of each word of each initial candidate comprises:
  • Sub-step B6350 in order to filter the stroke sub-sequences, sequentially perform the screening stroke sub-sequence with each initial The target stroke subsequence of the word in the corresponding order in the candidate is matched.
  • the separator identification rule may be set in advance, for example, "," or “;” is set as a separator, and the user may input a separator between the input filter strokes, and separate the filter stroke sequence into the filter strokes. Sequence, each of the filtered stroke subsequences may correspond to a sequence of filtered strokes of one word.
  • the filtered stroke sequence can be matched in sequence with the first stroke sequence consisting of at least the first stroke of each word of each initial upper screen candidate.
  • the filter stroke subsequence between the two separators corresponds to the initial match.
  • the word at the corresponding position of the screen For example, there are two separators.
  • the filter stroke subsequence before the first separator corresponds to the first word matching the initial screen candidate
  • the filter stroke subsequence between the first separator and the second separator corresponds to Matches the second word of the initial upper screen candidate
  • the filtered stroke subsequence after the second delimiter corresponds to the third word that matches the initial upper screen candidate
  • Sub-step B6349 and sub-step B6350 may be used when matching the first stroke sequence composed of at least the first two strokes of each word of the initial candidate, which can improve the recognition speed of the screening stroke sequence and improve the matching efficiency.
  • Step 640 If the sliding event satisfies the second type preset condition, enter the candidate cursor sliding mode, and control the cursor to move in the candidate according to the sliding event.
  • the current regular text candidate mode can be switched to the candidate cursor sliding mode, that is, as shown in FIG. 4A, and then the cursor can be moved in the candidate column according to the sliding event, and moved to the candidate “Kayhua”.
  • the cursor In the candidate cursor sliding mode, the cursor is generally invisible, it is only displayed on the moving item, that is, moving a position in the candidate column, and correspondingly moving to the next candidate.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step S641 highlighting the candidate corresponding to the cursor.
  • the candidate is highlighted. It is convenient for the user to determine the specific position of the cursor.
  • a sliding event of the entry candidate column is triggered for a certain sliding operation of the user, and if the direction and the sliding distance of the sliding event reach a predetermined condition, the candidate cursor sliding mode is entered. Then, if the user's sliding operation is not finished and continues to slide, the cursor can be moved in the candidate column according to the direction and distance of the continuous sliding, that is, the candidate corresponding to the cursor is moved.
  • the cursor in the candidate column is directly moved according to the direction and distance of the sliding event.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step S642 the position of the cursor in the candidate column is moved in the same direction according to the sliding direction and the moving distance.
  • the moving direction of the cursor in the candidate column coincides with the horizontal sliding direction, that is, when the user slides to the right, the cursor slides to the right, as shown in FIG. 4A, which is a schematic diagram of the cursor moving to the right in the candidate.
  • FIG. 4A is a schematic diagram of the cursor moving to the right in the candidate.
  • the left sliding moves the cursor to the left, but the cursor has no action in the leftmost position of the candidate column, but moves the candidate.
  • you slide right the cursor moves to the right and there is no action at the far right of the candidate column.
  • the user can exit the candidate cursor sliding mode and then receive the sliding event again and proceed to the process of step 620.
  • the method further includes:
  • Sub-step S643 if the character sequence input by the user is received again, the candidate cursor sliding mode is exited.
  • the character input by the user is continued to be received. For example, if u is input in the pinyin input method, the edit string is changed, and the corresponding candidate also changes, and the candidate cursor can be exited. Sliding mode.
  • controlling the movement of the cursor in the candidate according to the sliding event comprises:
  • Sub-step S644 when the cursor moves to the last candidate displayed in the candidate column, if the sliding event to the end of the candidate is continuously received, it is determined whether the last candidate displayed in the candidate column is the last candidate;
  • Sub-step S627 if the last candidate displayed in the candidate column is not the last candidate, the candidates displayed in the candidate column are moved to the head end;
  • candidates for simultaneous display in the subsequent columns are limited. For example, only four or so candidates can be displayed in FIG. 4A, and actually the number of candidates corresponding to one edit string or the user-entered key sequence. It is generally far more than the number of candidates that can be displayed in the candidate bar. Then, when the cursor moves to the last candidate displayed in the candidate column, as shown in "Kaihua" in Fig. 4A, then it is judged whether "Kaihua" is the last candidate for all sorting, if it is "Kaihua" It is not the last candidate. For the right sliding event, you need to match the cursor to the candidate after the current candidate.
  • FIG. 4A “Kaiser” is obtained by moving all the candidates to the left after moving the cursor to the right in FIG. 1A. If “Kaihua” is the last candidate, it will not respond to right-sliding.
  • Sub-step S646 when the cursor moves to the first candidate displayed in the candidate column, if the sliding event to the candidate head end is continuously received, it is determined whether the first candidate displayed in the candidate column is the first candidate item;
  • Sub-step S647 if the first candidate displayed in the candidate column is not the first candidate, the candidates displayed in the candidate column are skipped to the tail end.
  • the method further includes:
  • each candidate corresponding to each edit string corresponding to the key sequence may be selected according to the key sequence, such as the key sequence “516482” in the foregoing example, which corresponds to at least two Pinyin strings.
  • the key sequence such as the key sequence “516482” in the foregoing example, which corresponds to at least two Pinyin strings.
  • the initial Pinyin string is “kai'gua”, then after entering the candidate cursor sliding mode, after moving the cursor to the right to “Kaihua”, the Pinyin string is adjusted according to “Kaihua”. For "kai'hua”.
  • two cursor sliding modes are provided, that is, an edited string cursor sliding mode and a candidate cursor sliding mode, and the user can enter a certain character from the regular text candidate mode according to a predetermined user-triggered predetermined sliding event.
  • the cursor sliding mode is convenient for the user to select the edit string and the candidate, and to facilitate the user to select the candidate in the case of having the candidate field of view.
  • the positioning light can be directly
  • the corresponding key sequence of the target position is filtered by a sequence of filtered strokes input by the user, and various words and/or words corresponding to the various Pinyin strings corresponding to the key sequence (ie, initial candidates) are filtered, and the positioning is corrected according to the screening result.
  • the pinyin substring of the key sequence corresponding to the cursor does not need to determine the pinning tone before determining the candidate on the screen. You can determine the upper screen candidate by filtering the stroke sequence and correct the corresponding pinyin substring.
  • the method for determining candidate Chinese characters needs to be determined after pinyin determination, and the operation process is many, and further filtering is not performed, which affects the input efficiency of the user, improves the flexibility of the user to use the positioning cursor, and further filters the candidate on the screen. To improve user input efficiency.
  • multiple words of the initial candidate can be filtered by a plurality of strokes, which is not limited to single word filtering, and the screening efficiency is high, and the input efficiency is further improved.
  • FIG. 7 is a schematic flowchart diagram of an input method cursor operation method according to the present invention, which may specifically include:
  • Step 710 In the regular text candidate mode of the input method, monitor whether a sliding event is received;
  • Step 712 If a sliding event is received, determine a preset condition type that the sliding event is satisfied; if the sliding event meets the first type preset condition, proceed to step 714; if the sliding event satisfies the second type If conditions are met, proceed to step 722;
  • the operation of entering the judgment cursor sliding mode is triggered each time, and the present invention maintains the normal character candidate mode.
  • the corresponding status ID is enabled.
  • the above is the input method for identifying the key sequence obtained by the user, performing the recognition of the edit string, and then obtaining the upper screen candidate from the vocabulary based on the edit string, and displaying the upper-ranked candidate on the candidate list in the candidate column is normal.
  • the first state identifier is enabled at this time. Then, when entering the edit string cursor sliding mode, the first state identifier of the current regular character candidate mode is modified to the second state identifier of the edit string cursor sliding mode. When entering the candidate cursor sliding mode, the first state identifier currently in the regular character candidate mode is modified to the third state identifier of the edit string cursor sliding mode.
  • Step 714 If the sliding event meets the first type preset condition, enter the edit string cursor sliding mode, and modify the first state identifier that is the current text candidate mode to be the second state identifier of the edit string cursor sliding mode. Go to step 716,
  • Step 716 after receiving the sliding event, it is determined whether the status identifier of the current input method is the second status identifier; if the status identifier of the current input method is the second status identifier, then proceeds to step 718;
  • Step 718 moves the position of the cursor in the edit string according to the sliding event
  • Step 720 when the cursor is at the end of the edit string, if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the second state identifier of the edit string cursor sliding mode is modified to be the first of the regular text candidate mode.
  • Status identifier when the cursor is at the end of the edit string, if the character sequence input by the user is received again, the second state identifier of the edit string cursor sliding mode is modified to be the first of the regular text candidate mode.
  • Step 722 If the sliding event meets the second type preset condition, enter the candidate cursor sliding mode, and modify the first state identifier that is the current text candidate mode to be the third state identifier of the candidate cursor sliding mode; Go to step 724;
  • Step 724 after continuing to receive the sliding event, determining whether the status identifier of the current input method is the third shape If the status identifier of the current input method is the third status identifier, proceed to step 726;
  • Step 726 moving the position of the cursor in the candidate according to the sliding event.
  • Step 728 if the character sequence input by the user is received again, the edit string cursor sliding mode is exited.
  • the third state identifier of the candidate cursor sliding mode is modified to the first state identifier of the regular character candidate mode.
  • FIG. 8 is a schematic structural diagram of an input method cursor operation device according to the present invention, which may specifically include:
  • the sliding monitoring module 810 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the slip determination module 820 is adapted to determine whether the sliding event meets a preset condition if a sliding event is received;
  • the cursor movement module 830 is adapted to enter the edit string cursor sliding mode if the sliding event satisfies the preset condition, and control the cursor to move in the edit string according to the sliding event.
  • FIG. 9 is a schematic structural diagram of an input method cursor operation device according to the present invention, which may specifically include:
  • the sliding monitoring module 910 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the slip determination module 920 is adapted to determine whether the sliding event meets a preset condition if a sliding event is received;
  • the cursor movement module 930 is adapted to enter the edit string cursor sliding mode if the sliding event meets the preset condition, and control the movement of the cursor in the edit string according to the sliding event, which specifically includes:
  • the first state identifier switching module 931 is adapted to modify the first state identifier that is the current text candidate mode to the second state identifier of the edit string cursor sliding mode, if the sliding event satisfies the preset condition;
  • the first state identifier determining module 932 is adapted to determine whether the state identifier of the current input method is the second state identifier after continuing to receive the sliding event;
  • the first cursor movement module 933 is adapted to move the position of the cursor in the edit string according to the sliding event if the status identifier of the current input method is the second status identifier.
  • the sliding determination module includes:
  • the head end direction determining module is adapted to determine whether the sliding event is a sliding operation in a direction of a head end of the editing string in the keyboard area of the input method; if the sliding event is a sliding operation in a direction of the head end of the editing string in the keyboard area of the input method And determining that the sliding event meets a preset condition.
  • the cursor movement module comprises:
  • the first co-moving module is adapted to control the position of the cursor in the edit string in the same direction according to the sliding direction and the moving distance.
  • the method further includes:
  • the edit string cursor slide mode exit module is adapted to exit the edit string cursor slide mode if the character sequence input by the user is received again when the cursor is at the end of the edit string.
  • FIG. 10 is a schematic structural diagram of an input method cursor operation device according to the present invention, which may specifically include:
  • the sliding monitoring module 1010 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the slip determination module 1020 is adapted to determine whether the sliding event meets a preset condition if a sliding event is received;
  • the cursor movement module 1030 is adapted to enter the edit string cursor sliding mode if the sliding event satisfies the preset condition, and control the cursor to move in the edit string according to the sliding event.
  • the cursor determining module 1040 is adapted to determine a button subsequence corresponding to the cursor
  • the screening sequence receiving module 1050 is adapted to receive a sequence of screening strokes input by the user;
  • the screening matching module 1060 is adapted to match the screening stroke sequence with the first stroke sequence of each initial candidate corresponding to the button subsequence;
  • the adjusting module 1070 is adapted to correct the pin sub-sequence and the pinyin sub-string corresponding to the subsequent button sub-sequence according to the matched initial candidates, and correct the corresponding upper-screen candidate.
  • the cursor determination module comprises:
  • the cursor position determining module is adapted to determine, according to the first position of the cursor in the Pinyin string, whether the first position is in a Pinyin substring that conforms to the Pinyin rule;
  • a first button determining module if the first position is not in the pinyin substring that conforms to the pinyin rule, starting from the first pinyin substring corresponding to the pinyin rule after the first position, selecting a corresponding button a subsequence is used as a button subsequence corresponding to the cursor;
  • a second button determining module configured to select a corresponding button subsequence as the cursor if the first position is in a pinyin substring that conforms to a pinyin rule, starting from a pinyin substring corresponding to the pinyin rule in the first position Corresponding button subsequence.
  • the screening matching module includes:
  • the Pinyin string search module is adapted to find various Pinyin substrings corresponding to the button subsequence;
  • An initial candidate obtaining module is adapted to obtain corresponding words and/or words from each Pinyin string to obtain initial candidates
  • a matching module is adapted to match the sequence of filtered strokes with the sequence of strokes of each initial candidate.
  • the screening matching module includes:
  • the first screening matching module is adapted to match the sequence of the filtered strokes input by the user with the first sequence of strokes consisting of at least the first stroke of each word of each initial candidate.
  • the first screening matching module includes:
  • a complete matching module adapted to match the filtered stroke sequence with a first stroke sequence consisting of a complete stroke sequence of each initial candidate word
  • a first matching module adapted to match the sequence of screening strokes with a first sequence of strokes consisting of the first stroke of each word of each initial candidate.
  • the method further includes:
  • the first stroke sequence acquisition module is adapted to obtain a first stroke sequence of each initial candidate from the thesaurus for each initial candidate.
  • the first screening matching module further includes:
  • An error correction module configured to determine, by using a stroke-based error correction model, a stroke sequence of the user input and the initial candidate when the screening stroke sequence does not completely match the first stroke sequence of the initial candidate The probability of the first stroke sequence matching; when the probability of the match is greater than the threshold, determining that the filter stroke sequence matches the first stroke sequence of the initial candidate.
  • the method further includes:
  • a first error correction model building module is adapted to construct the stroke-based error correction model by using a binary or multi-dimensional relationship of words in a phrase and/or a sentence;
  • a second error correction model building module is adapted to construct the stroke-based error correction model by using a binary or multi-dimensional relationship between the strokes constituting each word.
  • the screening sequence receiving module comprises:
  • the delimiter receiving module is adapted to determine whether a delimiter exists in the sequence of the filtered strokes; if there is a delimiter, the sequence of the filtered strokes input by the user is separated into the sub-sequences of the selected strokes according to the delimiters.
  • the first screening matching module includes:
  • the separation matching module is adapted to match the screening stroke subsequence with the target stroke subsequence of the word in the corresponding order in each initial candidate in units of the screening stroke subsequence.
  • FIG. 11 is a schematic structural diagram of an input method cursor operation device according to the present invention, which may specifically include:
  • the sliding monitoring module 1110 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the slip determination module 1120 is adapted to determine whether the sliding event meets a preset condition if a sliding event is received;
  • the cursor movement module 1130 is adapted to enter the candidate cursor sliding mode if the sliding event satisfies the preset condition, and control the cursor to move in the candidate according to the sliding event.
  • FIG. 12 is a schematic structural diagram of an input method cursor operation device according to the present invention, which may specifically include:
  • the sliding monitoring module 1210 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the slip determination module 1220 is adapted to determine whether the sliding event meets a preset condition if a sliding event is received;
  • the cursor movement module 1230 is adapted to enter the candidate cursor sliding mode if the sliding event meets the preset condition, and control the movement of the cursor in the candidate according to the sliding event, which specifically includes:
  • the second state identifier switching module 1231 is adapted to: if the sliding event meets the preset condition, modify the first state identifier that is the current text candidate mode to be the third state identifier of the candidate cursor sliding mode;
  • the second state identifier determining module 1232 is adapted to determine whether the state identifier of the current input method is a third state identifier after continuing to receive the sliding event;
  • the second cursor moving module 1233 is adapted to move the position of the cursor in the candidate according to the sliding event if the status identifier of the current input method is the third status identifier.
  • the sliding determination module comprises:
  • the tail end judging module is adapted to determine whether the sliding event is a sliding operation in a direction of a candidate tail end in the input method keyboard area; if the sliding event is a sliding operation in a direction of the candidate tail end in the input method keyboard area, Then, it is determined that the sliding event satisfies a preset condition.
  • the cursor movement module comprises:
  • a second synchronous movement module adapted to control the cursor in the candidate according to the sliding direction and the moving distance mobile.
  • the method further includes:
  • the candidate cursor slide mode exit module is adapted to exit the candidate cursor slide mode if the character sequence input by the user is received again.
  • the cursor movement module comprises:
  • the first candidate movement judging module is adapted to determine, when the cursor moves to the last candidate displayed in the candidate column, if the sliding event to the end of the candidate is continued, determining the last candidate displayed in the candidate column Whether it is the last candidate; if the last candidate displayed in the candidate column is not the last candidate, the candidates displayed in the candidate column are moved to the leading end;
  • the second candidate movement judging module determines, when the cursor moves to the first candidate displayed in the candidate column, if the sliding event to the candidate head end is continuously received, determining the first candidate displayed in the candidate column Whether it is the first candidate; if the first candidate displayed in the candidate column is not the first candidate, the candidates displayed in the candidate column are skipped to the end.
  • the cursor movement module comprises:
  • the highlight module is adapted to highlight the candidate corresponding to the cursor.
  • the method further includes:
  • the edit string correction module is adapted to correct the corresponding edit string according to the candidate corresponding to the position where the cursor moves.
  • FIG. 13 it is a schematic structural diagram of an input method cursor operation device of the present invention, which may specifically include:
  • the sliding monitoring module 1310 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the type judging module 1320 is adapted to determine a preset condition type that the sliding event satisfies if a sliding event is received:
  • the edit string cursor moving module 1330 is adapted to enter the edit string cursor sliding mode if the sliding event satisfies the first type preset condition, and control the cursor to move in the edit string according to the sliding event;
  • the candidate cursor movement module 1340 is adapted to enter the candidate cursor sliding mode if the sliding event satisfies the second type preset condition, and control the cursor to move in the candidate according to the sliding event.
  • the edit string cursor movement module comprises:
  • the first state identifier switching module is adapted to modify the first state identifier that is the current text candidate mode to the second state identifier of the edit string cursor sliding mode, if the sliding event satisfies the first preset condition type
  • the first state identifier determining module is configured to determine, after continuing to receive the sliding event, whether the state identifier of the current input method is the second state identifier;
  • the first cursor movement module is adapted to move the position of the cursor in the edit string according to the sliding event if the status identifier of the current input method is the second status identifier.
  • the candidate cursor movement module comprises:
  • a second state identifier switching module configured to: if the sliding event meets the second preset condition, modify the first state identifier that is the current text candidate mode to be the third state identifier of the candidate cursor sliding mode;
  • a second status identifier determining module configured to determine, after continuing to receive the sliding event, whether the status identifier of the current input method is a third status identifier
  • a second cursor moving module configured to: if the status identifier of the current input method is the third status identifier, according to the The sliding event moves the position of the cursor in the candidate.
  • the type judging module comprises:
  • the first end judging module is adapted to determine that the sliding event is a sliding operation in a direction of a head end of the editing string in the input method keyboard area, and determine that the sliding event satisfies the first type preset condition;
  • the tail end determining module is adapted to determine that the sliding event satisfies the second type preset condition when the sliding event is determined to be a sliding operation in the input method keyboard area to the candidate tail end direction.
  • the edit string cursor movement module comprises:
  • the first co-moving module is adapted to control the position of the cursor in the edit string in the same direction according to the sliding direction and the moving distance.
  • the method further includes:
  • the edit string cursor slide mode exit module is adapted to exit the edit string cursor slide mode if the character sequence input by the user is received again when the cursor is at the end of the edit string.
  • the method further includes:
  • a cursor determining module configured to determine a button subsequence corresponding to the cursor
  • a screening sequence receiving module adapted to receive a sequence of filtered strokes input by the user
  • the screening matching module is adapted to match the screening stroke sequence with the first stroke sequence of each initial candidate corresponding to the button subsequence;
  • the adjusting module is adapted to correct the pinch substring corresponding to the button subsequence and the subsequent button subsequence according to the matched initial candidates, and correct the corresponding upper screen candidate.
  • the candidate cursor determination module comprises:
  • the cursor position determining module is adapted to determine, according to the first position of the cursor in the Pinyin string, whether the first position is in a Pinyin substring that conforms to the Pinyin rule;
  • a first button determining module if the first position is not in the pinyin substring that conforms to the pinyin rule, starting from the first pinyin substring corresponding to the pinyin rule after the first position, selecting a corresponding button a subsequence is used as a button subsequence corresponding to the cursor;
  • a second button determining module configured to select a corresponding button subsequence as the cursor if the first position is in a pinyin substring that conforms to a pinyin rule, starting from a pinyin substring corresponding to the pinyin rule in the first position Corresponding button subsequence.
  • the screening matching module includes:
  • the Pinyin string search module is adapted to find various Pinyin substrings corresponding to the button subsequence;
  • An initial candidate obtaining module is adapted to obtain corresponding words and/or words from each Pinyin string to obtain initial candidates
  • a matching module is adapted to match the sequence of filtered strokes with the sequence of strokes of each initial candidate.
  • the screening matching module includes:
  • the first screening matching module is adapted to match the sequence of the filtered strokes input by the user with the first sequence of strokes consisting of at least the first stroke of each word of each initial candidate.
  • the first screening matching module includes:
  • a complete matching module adapted to match the filtered stroke sequence with a first stroke sequence consisting of a complete stroke sequence of each initial candidate word
  • a first matching module adapted to match the sequence of screening strokes with a first sequence of strokes consisting of the first stroke of each word of each initial candidate.
  • the method further includes:
  • the first stroke sequence acquisition module is adapted to obtain a first stroke sequence of each initial candidate from the thesaurus for each initial candidate.
  • the first screening matching module further includes:
  • An error correction module configured to determine, by using a stroke-based error correction model, a stroke sequence of the user input and the initial candidate when the screening stroke sequence does not completely match the first stroke sequence of the initial candidate The probability of the first stroke sequence matching; when the probability of the match is greater than the threshold, determining that the filter stroke sequence matches the first stroke sequence of the initial candidate.
  • the method further includes:
  • a first error correction model building module is adapted to construct the stroke-based error correction model by using a binary or multi-dimensional relationship of words in a phrase and/or a sentence;
  • a second error correction model building module is adapted to construct the stroke-based error correction model by using a binary or multi-dimensional relationship between the strokes constituting each word.
  • the screening sequence receiving module comprises:
  • the delimiter receiving module is adapted to determine whether a delimiter exists in the sequence of the filtered strokes; if there is a delimiter, the sequence of the filtered strokes input by the user is separated into the sub-sequences of the selected strokes according to the delimiters.
  • the first screening matching module includes:
  • the separation matching module is adapted to match the screening stroke subsequence with the target stroke subsequence of the word in the corresponding order in each initial candidate in units of the screening stroke subsequence.
  • the candidate cursor movement module comprises:
  • the second synchronous movement module is adapted to control the movement of the cursor in the candidate in the same direction according to the sliding direction and the moving distance.
  • the method further includes:
  • the candidate cursor slide mode exit module is adapted to exit the candidate cursor slide mode if the character sequence input by the user is received again.
  • the candidate cursor movement module comprises:
  • the first candidate movement judging module is adapted to determine, when the cursor moves to the last candidate displayed in the candidate column, if the sliding event to the end of the candidate is continued, determining the last candidate displayed in the candidate column Whether it is the last candidate; if the last candidate displayed in the candidate column is not the last candidate, the candidates displayed in the candidate column are moved to the leading end;
  • the second candidate movement judging module determines, when the cursor moves to the first candidate displayed in the candidate column, if the sliding event to the candidate head end is continuously received, determining the first candidate displayed in the candidate column Whether it is the first candidate; if the first candidate displayed in the candidate column is not the first candidate, the candidates displayed in the candidate column are skipped to the end.
  • the candidate cursor movement module comprises:
  • the highlight module is adapted to highlight the candidate corresponding to the cursor.
  • the method further includes:
  • the edit string correction module is adapted to correct the corresponding edit string according to the candidate corresponding to the position where the cursor moves.
  • FIG. 14 is a schematic structural diagram of an input method cursor operation device of the present invention, which may specifically include include:
  • the sliding monitoring module 1410 is adapted to monitor whether a sliding event is received in a regular text candidate mode of the input method
  • the type determining module 1420 is configured to determine, if the sliding event is received, a preset condition type that the sliding event meets;
  • the edit string cursor moving module 1430 is adapted to enter the edit string cursor sliding mode if the sliding event satisfies the first type preset condition, and control the cursor to move in the edit string according to the sliding event; specifically:
  • the first state identifier switching module 1431 is adapted to modify the first state identifier that is the current text candidate mode to the second state identifier of the edit string cursor sliding mode, if the sliding event satisfies the first preset condition type.
  • the first state identifier determining module 1432 is adapted to determine whether the state identifier of the current input method is the second state identifier after continuing to receive the sliding event;
  • the first cursor moving module 1433 is adapted to: if the status identifier of the current input method is the second status identifier, move the position of the cursor in the edit string according to the sliding event;
  • the candidate cursor movement module 1440 is adapted to enter the candidate cursor sliding mode if the sliding event satisfies the second type of preset condition, and control the movement of the cursor in the candidate according to the sliding event, which specifically includes:
  • the second state identifier switching module 1441 is adapted to modify the first state identifier that is the current text candidate mode to the third state identifier of the candidate cursor sliding mode, if the sliding event satisfies the second preset condition;
  • the second state identifier determining module 1442 is configured to determine, after continuing to receive the sliding event, whether the state identifier of the current input method is the third state identifier;
  • the second cursor moving module 1443 is adapted to move the position of the cursor in the candidate according to the sliding event if the status identifier of the current input method is the third status identifier.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and so on All processes or units of any method or device disclosed are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the input cursor operating device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 15 illustrates a terminal device that can implement an input method cursor operation in accordance with the present invention.
  • the terminal device conventionally includes a processor 1510 and a computer program product or computer readable medium in the form of a memory 1520.
  • the memory 1520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1520 has a storage space 1530 for program code 1531 for performing any of the method steps described above.
  • storage space 1530 for program code may include various program code 1531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 1520 in the terminal device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 1531', ie code that can be read by a processor, such as, for example, 1510, which when executed by the terminal device causes the terminal device to perform each of the methods described above step.

Landscapes

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

Abstract

本发明公开了一种输入法光标操作方法和装置,涉及输入法技术领域。根据本发明的输入法光标操作方法可以在输入法常规文字候选模式的界面中,监听输入法区域中接收到的滑动事件,判断接收到的滑动事件是否满足预设条件,如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动,或者判断接收到的滑动事件是否满足预设条件,如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。本发明方便用户根据在输入法中的滑动操作,控制输入法的光标在编辑串或者在候选项中移动,不影响用户的视线,使用户可以更精确的定位光标的有益效果。

Description

输入法光标操作方法和装置 技术领域
本发明涉及输入法技术领域,具体涉及一种输入法光标操作方法和装置。
背景技术
在各种计算机系统中,默认的输入语言是英语中的字符。英语输入可以直接选择字母即可进行输入。而其他语言的输入则较为麻烦,比如中文语言有上万个字符,完全无法简单的通过按键直接进行输入,需要对汉字进行编码,比如按照汉字的发音特性对汉字进行编码(对应拼音输入法),按照汉字的字形特性(如笔画和偏旁部首)对汉字进行编码(对应字型输入法)等等,各个按键组合则可与汉字编码进行对应,从而可进行汉字的输入。
但是,目前移动终端的输入法中,对于用户点击按键序列转换得到的编辑串,如果用户要在编辑串中输入光标以修改编辑串,需要用户点击编辑串中某个位置,而由于编辑串的展示区域狭小,用户的触屏点击动作很难精准点击到想要的位置,并且,用户点击动作会遮挡编辑串,更影响用户操作的精确性。
另外,对于输入法根据编辑串得到的候选项展示在候选栏中,如果用户要选择更多的候选项,需要用户点击展开按钮,展开候选界面进行选择,但是候选界面会覆盖输入法键盘,其无法通过候选栏的光标直接在候选栏中展示新的候选项。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的输入法光标操作装置和相应的输入法光标操作方法。
依据本发明的一个方面,提供了一种输入法光标操作方法,包括:
在输入法的常规文字候选模式,监听是否接收到滑动事件;
如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
依据本发明的另一个方面,提供了一种输入法光标操作方法,包括:
在输入法的常规文字候选模式,监听是否接收到滑动事件;
如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
依据本发明的另一个方面,提供了一种输入法光标操作方法,包括:
在输入法的常规文字候选模式,监听是否接收到滑动事件;
如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
依据本发明的另一个方面,提供了一种输入法光标操作的装置,包括:
滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块,适于如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
依据本发明的另一个方面,提供了一种输入法光标操作的装置,包括:
滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块,适于如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
依据本发明的另一个方面,提供了一种输入法光标操作的装置,包括:
滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
类型判断模块,适于如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
编辑串光标移动模块,适于如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
候选光标移动模块,适于如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在终端设备上运行时,导致所述终端设备执行上述的任一个输入法光标操作方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了执行上述的任一个输入法光标操作方法的计算机程序。
根据本发明的输入法光标操作方法可以在输入法常规文字候选模式的界面中,监听输入法区域中接收到的滑动事件,判断接收到的滑动事件是否满足预设条件,如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动,由此解决了如果用户要在编辑串中输入光标以修改编辑串,需要用户点击编辑串中某个位置,而由于编辑串的展示区域狭小,用户的触屏点击动作很难精准点击到想要的位置,并且,用户点击动作会遮挡编辑串,更影响用户操作的精确性的问题,取得了方便用户根据在输入法中的滑动操作,控制输入法的光标进入编辑串,并在编辑串中移动,不影响用户的视线,使用户可以更精确的定位光标的有益效果。
另外,根据本发明的输入法光标操作方法可以在输入法常规文字候选模式的界面中,监听输入法区域中接收到的滑动事件,判断接收到的滑动事件是否满足预设条件,如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动,由此解决了对于输入法根据编辑串得到的候选项展示在候选栏中,如果用户要选择更多的候选项,需要用户点击展开按钮,展开候选界面进行选择,但是候 选界面会覆盖输入法键盘,其无法通过候选栏的光标直接在候选栏中展示新的候选项的问题,取得了方便用户根据在输入法中的滑动操作,控制输入法的光标进入候选栏,并在候选项中移动,不影响用户的视线,使用户可以更方便的选择候选项的有益效果。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的一种输入法光标操作方法的流程示意图;
图1A示出了根据本发明一个实施例的常规文字候选模式示例;
图1B示出了根据本发明一个实施例的编辑串光标滑动模式示例;
图1C示出了由图1B得到的编辑串光标滑动模式示例;
图2示出了根据本发明一个实施例一的一种输入法光标操作方法的流程示意图;
图3示出了根据本发明一个实施例一的一种输入法光标操作方法的流程示意图;
图4示出了根据本发明一个实施例的一种输入法光标操作方法的流程示意图;
图4A示出了根据本发明一个实施例的候选项光标滑动模式示例;
图5示出了根据本发明一个实施例四的一种输入法光标操作方法的流程示意图;
图6示出了根据本发明一个实施例的一种输入法光标操作方法的流程示意图;
图7示出了根据本发明一个实施例六的一种输入法光标操作方法的流程示意图;
图8示出了根据本发明一个实施例的一种输入法光标操作装置的结构示意图;
图9示出了根据本发明一个实施例八的一种输入法光标操作装置的结构示意图;
图10示出了根据本发明一个实施例八的一种输入法光标操作装置的结构示意图;
图11示出了根据本发明一个实施例的一种输入法光标操作装置的结构示意图;
图12示出了根据本发明一个实施例十一的一种输入法光标操作装置的结构示意图;
图13示出了根据本发明一个实施例的一种输入法光标操作装置的结构示意图;
图14示出了根据本发明一个实施例十三的一种输入法光标操作装置的结构示意图;
图15示出了用于执行根据本发明的方法的终端设备的框图;
图16示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本发明的核心思想之一是:在输入法的常规文字候选模式中,在输入法的文字候选界面中,接收触发的滑动事件,根据该滑动事件触发进入编辑串光标滑动模式或者候选项光标滑动模式。方便用户精确定位光标在编辑串中的位置,或者方便用户选择在候选 栏中展示的候选项。
实施例一
参照图1,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤110,在输入法的常规文字候选模式,监听是否接收到滑动事件;如果接收到滑动事件,则进入步骤120;
在本发明实施例中,比如移动终端使用九键键盘的拼音输入法,比如九键键盘如下:1键对应:分词,2键对应:abc,3键对应:def,4键对应:ghi,5键对应:jkl,6键对应:mno,7键对应:pqrs,8键对应:tuv,9键对应:wxyz。
用户可以点击九键的键盘516482,那么输入法则首先按照拼音输入法的识别逻辑,首先识别按键序列516482,得到默认拼音串为“kai’gua”,通过该拼音串,该种状态即为输入法正常的常规文字候选模式。该常规文字候选模式即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏的情况。以九键输入法为例,如图1A,其示出输入法的常规文字候选模式。
当然,对于其他类型的键盘,比如全键盘的输入法和其他类型的输入法的常规文字候选模式类似上述例子。其他类型输入法的常规文字候选模式也类似上述例子,比如笔画输入法,用户点击按键序列后,输入法将按键序列转换为笔画串,根据笔画串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏,此刻的情况即为常规文字候选模式。
那么在常规文字候选模式下,在输入法的输入键盘区域接收用户在屏幕上的滑动事件。在本发明实施例中,输入键盘区域可以为输入法候选栏之下的区域。输如图1A中,比如“开花”等字所在候选栏之下的区域。当然,优选的输入键盘区域可以选择为1-9键所在的输入界面,当然还可以包括“符”、“’”“空格”、“词字”等按键所在界面区域。
那么用户在输入法的输入键盘区域进行滑动操作时,会触发滑动事件,然后本发明实施例在输入法界面区域接收到滑动事件之后,则会对该滑动事件进行判断。
当然本发明实施例中,可以通过触摸屏上的down事件+move事件判断出现滑动事件,通过up事件判断用户的操作结束。
步骤120,判断所述滑动事件是否满足预设条件;如果所述滑动事件满足预设条件,则进入步骤130;
本发明可判断所述滑动事件是否满足预设条件,比如是否判断所述滑动事件是否向预定方向的滑动距离达到阈值。比如设置预设条件为:以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的左侧(如图1A所示对应竖直方向的上、下,和对应水平方向左、右),滑动起点到终点在水平方向的距离达到阈值,如3(如图1的左右方向),则如果滑动事件满足上述条件则判断其满足预设条件。那么比如用户按下触摸屏后的起始焦点坐标为(10,10),用户滑动后,触摸焦点的坐标随着变化,比如滑动到(7,5),那么其滑动后的焦点坐标在起始焦点坐标的左侧,那么滑动事件为向左滑动,其水平滑动的距离则为3,达到前述的阈值3,则判断该滑动事件满足预设条件。
本发明实施例中,如前述例子,可以根据up事件、down事件+move事件这些事件对应的坐标位置和坐标间的相对位置及距离,识别滑动事件是否满足预设条件。
优选的,判断所述滑动事件是否满足预设条件包括:
子步骤121,判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作;
子步骤122,如果所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足预设条件。
在本发明实施例中,可以规定预设条件为在输入法键盘区域中向编辑串首端方向的滑动操作。比如,以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的左侧(如图1A所示对应竖直方向的上、下,和对应水平方向左、右),滑动起点到终点在水平方向的距离阈值为x。
那么用户在输入法键盘区域中向左滑动的水平距离达到x后,则进入子步骤130。该种情况下,在步骤130中进入编辑串光标滑动模式时,光标从编辑串尾部出现,如图1B。
步骤130,进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
然后,即可将当前的常规文字候选模式,切换到编辑串光标滑动模式,即如图1B,然后即可根据滑动事件控制光标在编辑串中移动。
在本发明实施例中,对于用户的某个滑动操作触发进入编辑串的滑动事件,如果该滑动事件的方向和滑动距离达到预定条件,则在编辑串指定位置生成光标,进入编辑串光标滑动模式。然后如果用户前述滑动操作并未结束,继续滑动,则可以根据继续滑动的方向和距离控制光标在编辑串中移动。当用户上述滑动操作结束,再次接收滑动操作时,由于是在编辑串光标滑动模式中接收的滑动事件,则直接根据滑动事件的方向和距离移动编辑串中的光标。
优选的,所述根据滑动事件控制光标在编辑串中移动包括:
子步骤133,根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
在本发明中光标在编辑串中的移动方向跟前述水平滑动方向一致,即用户向左滑动操作时,光标向左滑动,如图1C,是从图1B向右滑动得到的示意图。用户向右滑动操作时,光标向右滑动。在本发明实施例中编辑串光标滑动模式下,左滑则向左移动光标,但是光标在编辑串最左边位置(即编辑串首端位置)则不响应左滑。右滑则光标向右移动,在编辑串最右边(即编辑串最末尾位置)不响应右滑。
另外,用户可以退出编辑串光标滑动模式,然后再次接收到滑动事件后则进入步骤120的过程。
优选的,根据滑动事件控制光标在编辑串中移动之后,还包括:
步骤140,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,光标在编辑串尾端之外的其他位置时,说明用户可能需要修改编辑串,或者需要调整拼音串等操作,接收用户输入的字符则会插入光标所在位置,比如图1C中用户继续输入字符u,则会将u插入k之后,得到编辑串“ku丨ai’gua”,光标在u之后,并不退出编辑串光标滑动模式。但是如果光标在编辑串尾端时,如图1B的光标位置,用户输入点击按键输入字符时,则退出所述编辑串光标滑动模式,恢复到前述的常规文字候选模式。
根据本发明的输入法光标操作方法可以在输入法常规文字候选模式的界面中,监听输入法区域中接收到的滑动事件,判断接收到的滑动事件是否满足预设条件,如果所述 滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动,由此解决了如果用户要在编辑串中输入光标以修改编辑串,需要用户点击编辑串中某个位置,而由于编辑串的展示区域狭小,用户的触屏点击动作很难精准点击到想要的位置,并且,用户点击动作会遮挡编辑串,更影响用户操作的精确性的问题,取得了方便用户根据在输入法中的滑动操作,控制输入法的光标进入编辑串,并在编辑串中移动,不影响用户的视线,使用户可以更精确的定位光标的有益效果。
实施例二
参照图2,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤210,在输入法的常规文字候选模式,监听是否接收到滑动事件;果接收到滑动事件,则进入步骤220;
步骤220,判断所述滑动事件是否满足预设条件;如果所述滑动事件满足预设条件,则进入步骤230;
步骤230,进入编辑串光标滑动模式,将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;
在本发明实施例中,为了保证不使每次滑动都判断其是否满足前述预设条件,每次都触发进入判断光标滑动模式的操作,本发明维护了常规文字候选模式的第一状态标识和编辑串光标滑动模式的第二状态标识。在相应模式下,则启用相应的状态标识。比如前述即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏时即为常规文字候选模式,此时启用第一状态标识,然后进入编辑串光标滑动模式时,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识。
步骤134,当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;如果当前输入法的状态标识为第二状态标识,则进入步骤250;
那么当继续接收到滑动事件后,则判断当前输入法的状态标识为哪一种,如果为第一状态标识,则会继续采用步骤210的判断过程。如果为第二状态标识,则会进入步骤250。
步骤250,根据所述滑动事件移动光标在编辑串中的位置。
当然,用户在不移动后,可以点击按键输入字符,比如a-z中的一个或者多个。
优选的,根据滑动事件控制光标在编辑串中移动之后,还包括:
步骤254,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则将编辑串光标滑动模式的第二状态标识,修改为常规文字候选模式的第一状态标识。
当然,当所述光标不在编辑串尾端时,可以点击按键输入字符,比如a-z中的一个或者多个。
本发明解决了如果用户要在编辑串中输入光标以修改编辑串,需要用户点击编辑串中某个位置,而由于编辑串的展示区域狭小,用户的触屏点击动作很难精准点击到想要的位置,并且,用户点击动作会遮挡编辑串,更影响用户操作的精确性的问题,取得了方 便用户根据在输入法中的滑动操作,控制输入法的光标进入编辑串,并在编辑串中移动,不影响用户的视线,使用户可以更精确的定位光标的有益效果。并且,通过状态标识的标记,使对滑动事件的判断更简单,节省了系统资源。
实施例三
参照图3,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤310,在输入法的常规文字候选模式,监听是否接收到滑动事件;果接收到滑动事件,则进入步骤320;
比如在本发明实施例中比如移动终端使用九键键盘的拼音输入法,比如九键键盘如下:1键对应:分词,2键对应:abc,3键对应:def,4键对应:ghi,5键对应:jkl,6键对应:mno,7键对应:pqrs,8键对应:tuv,9键对应:wxyz。
用户可以点击九键的键盘516482,那么输入法则首先按照拼音输入法的识别逻辑,首先识别按键序列516482,得到默认拼音串为“kai’gua”,通过该拼音串,可以从词库中查找到多个初始的上屏候选项,比如排序第一为“开挂”、“开”、“凯”等一系列的上屏候选项。其中“’”为输入法自动生成的切分符号,与用户输入的按键序列无关。
那么用户在输入法键盘区域的滑动操作触发的滑动事件则进入步骤320,进行后续判断。
步骤320,判断所述滑动事件是否满足预设条件;如果所述滑动事件满足预设条件,则进入步骤330;
步骤330,进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
在本发明进入编辑串光标滑动模式之后,还会触发笔画筛选模式,生成笔画输入界面,以接收用户输入的筛选笔画序列。比如“横竖竖”,以“横竖撇捺折”对汉字笔画进行切分为例,具体如“一丨丿丶乙”,那么用户可以点击这5个按键进行笔画输入。如图1B中的“一丨丿丶乙”所在界面。
步骤340,确定所述光标对应的按键子序列;
在本发明移动编辑串中的光标之后,比如移动后的情况如“kai’丨gua”,或者“kai丨’gua”,或者“kai’gu丨a”,那么则可通过所述定位光标“丨”的位置定位516482中对应的按键子序列,比如定位光标之后的第一个拼音子串的按键序列,对于“kai’丨gua”或者“kai丨’gua”其定位的定位光标之后的第一个拼音子串,其对应的按键子序列为482,对于“kai’gu丨a”,定位光标所在的拼音子串为gua,那么其对应的按键子序列也为482。
步骤350,接收用户输入的筛选笔画序列;
比如用户输入“一丨丨”,那么输入法则接收到筛选笔画序列“一丨丨”。
步骤360,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
在输入法中,对于某个按键子序列,其对应的拼音串可能有多种形式,其对应的字和/或词也会有不同的类型。比如前述482,其对应的拼音子串可以包括“gua”、“hua”等,每个拼音子串在词库中又对应一系列的初始候选项,那么本发明可将前述筛选笔画序列与这些初始候选项的第一笔画序列进行匹配,对于匹配上的初始候选项则进入步骤370。
可以理解,本步骤在匹配之前,需要通过所述按键子序列,获取可以由所述按键子序列组成的各拼音子串,然后由各个拼音子串从词库中提取对应的初始候选项,然后将各个拼音子串的初始候选项组合为对应所述按键子序列的初始候选项。
当然在本发明实施例中,对于初始候选项的选择,优先将能与其他拼音串组合为词/句的初始候选项进行匹配。比如前述“kai丨’gua”,拼音串kai没有对其进行处理,后面的482,其对应的“gua”、“hua”,则优先选择“kai’gua”,““kai’hua”等拼音串组合对应的词中的字,比如“开挂”、“开花”、“开化”等词中“kai”后面的字,然后才会选择其他不能组合为词的单字进行匹配。
那么对于前述例子中的筛选笔画序列“一丨丨”,则与482的各初始候选项中匹配到“花”。
步骤370,根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
对于前述例子中,对于上屏的拼音串“kai’gua”,其上屏候选项为“开挂”等,那么由于前述步骤对于482的初始候选项进行了过滤,得到“花”,而花的拼音串为“hua”,那么将上屏的拼音串修正为“kai’hua”,同时将“开挂”等上屏候选项撤销,修改为“kai’hua”的上屏候选项,即排序第一的为“开花”,“开化”等。
优选的,步骤340中,所述确定所述光标对应的按键子序列包括:
子步骤A361,根据所述光标在拼音串中的第一位置,判断所述第一位置是否在符合拼音规则的拼音子串中;
子步骤A362,如果所述第一位置没在符合拼音规则的拼音子串中,则从所述第一位置之后的第一个符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列;
子步骤A363,如果所述第一位置在符合拼音规则的拼音子串中,则从第一位置所在的符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列。
当然,本发明实施例中可以规定只选择一个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列,也可以是规定多个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列。
以前述九键盘为例,当用户输入了9494242426,输入法识别为默认拼音串“yi’xian’tian”,默认上屏候选项包括“一线天”等。如果只规定选择一个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列:
那么当用户在“y丨i’xian’tian”输入定位光标,那么由于定位光标“丨”在第一个i之前,按照汉语拼音的拼音规则,该定位光标在拼音子串yi中,那么将yi对应的按键子序列94作为所述定位光标对应的按键子序列。
当用户在“y i’丨xian’tian”输入定位光标,那么由于定位光标“丨”在x之前,按照汉语拼音的拼音规则,该定位光标没有在某个拼音子串之中,其后面的第一个拼音子串为xian,那么将xian对应的按键序列9426作为所述定位光标对应的按键子序列。
当用户在“y i’xi丨an’tian”输入定位光标,那么由于定位光标“丨”在a之前,按照汉语拼音的拼音规则,该定位光标在拼音子串xian中,,那么将xian对应的按键序列9426作为所述定位光标对应的按键子序列。
当用户在“y i’xian’丨t ian”输入定位光标,那么由于定位光标“丨”在后面一个i之前,按照汉语拼音的拼音规则该定位光标没有在某个拼音子串之中,其后面的第一个拼音子串为t ian,那么将tian对应的按键序列8426作为所述定位光标对应的按键子序列。
当然,如果选择多个拼音子串作为所述定位光标对应的按键子序列,比如前述“y i’xi丨an’tian”,可以将“9426”和“8426”作为所述定位光标对应的按键子序列,后续笔画筛选序列可以同时筛选这两个按键子序列对应的字和/或词。其他情况以此类推。
当然,还可以根据所述定位光标在拼音串中的第一位置,判断所述第一位置之前是否有符合拼音规则的拼音子串;如果所述第一位置之前有符合拼音规则的拼音子串,则将所述符合拼音规则的拼音子串之后的按键子序列作为所述定位光标对应的按键子序列;如果所述第一位置之前没符合拼音规则的拼音子串,则将第一个按键开始的按键子序列作为所述定位光标对应的按键子序列。
优选的,步骤360中,所述将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配包括:
子步骤B361,查找与所述按键子序列对应的各种拼音子串;
子步骤B362,由各拼音串获取相应的字和/或词,得到各初始候选项;
子步骤B363,将所述筛选笔画序列,与各初始候选项的笔画序列进行匹配。
以前述“y i’丨xian’tian”对应的按键序列9426为例,其可对应“xian”、“xiao”、“zhao”等拼音子串,这些拼音子串对应一系列的字,那么可将这些字作为初始候选项,以筛选笔画序列进行筛选。
基于子步骤B361-步骤B363,结合到步骤370。为了更方便的理解本发明实施例,在此以前述的例子进行举例说明。比如用户输入9494242426,输入法识别为默认拼音串“yi’xian’tian”,默认上屏候选项包括“一线天”等。
情况1:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为94。当用户输入筛选笔画序列“一丨乙”,那么通过前述步骤,对于94对应的各字中筛选得到“西”,那么可将默认“yi’xian’tian”中的yi修改为xi,当然yi后面的拼音子串也可以相应修改,也可以不修改,比如对于不修改的情况可为“xi’xian’tian”,其上屏候选项第一个字为西,其他的可根据后面的拼音子串从词库中查找。
情况2:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为9426。当用户输入筛选笔画序列“丨丿丶”,那么通过前述步骤,对于9426对应的各字中筛选得到“小”,那么可将默认“yi’xian’tian”中的xian修改为xiao,当然xian后面的拼音子串也可以相应修改,也可以不修改,比如对于不修改的情况可为“xi’xiao’tian”,其上屏候选项第一个字为依然为一,第二个字则为小,第三个字可为与第二个字能组合为词的字,比如天。其他的上屏候选项可根据后面的拼音子串从词库中查找。
情况3:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为94242426。
在本种情况中,由于可能对多个字的笔画进行匹配,可以预先规定是对多个字的至少第一个笔画所组成的第一笔画序列进行匹配。以各字的首笔进行匹配为例。当用户输 入筛选笔画序列“丿一”,那么通过前述步骤,对于94242426对应的各字中筛选得到“小天”。当然对于笔画匹配的字/词如果有多个,也可以按照使用频率进行选择,优先选择使用频率高的。
那么可将默认“yi’xian’tian”中的xian’tian修改为xiao’tian,其上屏候选项第一个字为依然为一,第二、三个字则为小天。其他的上屏候选项可根据后面的拼音子串从词库中查找。
优选的,步骤360中,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的笔画序列进行匹配,包括:
子步骤C361,将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
在本发明实施例中,定位光标对应的按键子序列能对应几个拼音串,而每个拼音串对应多个初始候选项,因此,各按键子序列通过其对应的拼音串对应更多的初始候选项。比如步骤中规定获得定位光标对应的第一位置当前或者之后的多个符合拼音规则的拼音子串,将该多个拼音子串对应的多个按键子序列作为所述定位光标对应的按键子序列,那么该按键字序列可能对应词,比如实施例二中94242426可对应“xiao’tian”、“xian’tian”,这些拼音串均每个都对应两个字,或者可以理解为其对应一个词。那么本发明可以通过筛选笔画序列同时匹配一个初始候选项的多个字。
优选的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配包括:
子步骤C362,将所述筛选笔画序列与由每个初始候选项各字的完整笔画序列组成的第一笔画序列进行匹配;
在本发明实施例中可将各初始上屏候选项的各字的完整笔画提取出来,组成第一笔画序列,比如“亚洲”,“亚”的完整笔画序列为“一丨丨丿丶一”,“洲”的完整笔画序列为“丶丶一丶丿丶丨丶丨”,那么组成的第一笔画序列为“一丨丨丿丶一丶丶一丶丿丶丨丶丨”,所述筛选笔画序列可与该第一笔画序列进行匹配。
和/或,子步骤C363,将所述筛选笔画序列与由每个初始候选项的各字的首个笔画组成的第一笔画序列相匹配。
在本发明实施例中可将各初始上屏候选项的各字的完整笔画提取出来,组成第一笔画序列,比如前述“亚洲”,“亚”的首个笔画为“一”,“洲”的首个笔画为“丶”,那么组成的第一笔画序列为“一丶”,所述筛选笔画序列可与该第一笔画序列进行匹配。
优选的,在将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配之前还包括:
子步骤C364,针对每个初始候选项,从词库中获取每个初始候选项的第一笔画序列。
在本发明实施例中,可预先在词库中保存每个字的笔画,该词库可在安装时随客户端安装在系统的指定路径下。
本发明实施例中,在接收用户输入筛选笔画序列的过程之前、之中或者之后,均可从词库中提取每个初始上屏候选项的第一笔画序列。当然如实施例一所述,可以提取每个初始上屏候选项的各字的至少第一个笔画所组成的第一笔画序列。
优选的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一 个笔画所组成的第一笔画序列进行匹配还包括:
子步骤C365,当所述筛选笔画序列与所述初始候选项的第一笔画序列不完全匹配时,利用基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始候选项的第一笔画序列匹配的概率;
在实际应用中,用户输入筛选笔画序列时,可能会输入错误,比如输入“快”字时,以五笔输入法的“一、丨、丿、丶、乙”为例,正确的笔画顺序应该为“丶丶丨乙一丿丶”,而对于竖心旁的输入则容易出错,比如“丨丶丶”,那么该种错误输入则可通过基于笔画的纠错模型对其进行判断,判断用户输入的笔画序列与初始上屏候选项的第一笔画序列匹配的概率。
子步骤C366,当所述匹配的概率大于阈值时,则判断所述筛选笔画序列与所述初始候选项的第一笔画序列匹配上。
当通过基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始上屏候选项的第一笔画序列匹配的概率大于一定的阈值时,则可认为所述筛选笔画序列与所述初始上屏候选项的第一笔画序列匹配上;反之,则认为没有匹配上。
优选的,还包括:
子步骤C367,利用词组和/或句子中字词的二元或多元关系,构建所述基于笔画的纠错模型;
二元关系,用于表示两个元素相继出现的概率,即P(B|A),表示A出现的条件下,B出现的概率。多元关系由二元关系衍生而来。
在本发明实施例中,可以根据预先统计词组和字词的笔画,根据词组或者句子直接的字直接的二元或者多元关系确定笔画出现的概率。比如快乐的笔画序列为“丶丶丨乙一丿丶丿乙丨丿丶”,通过统计得到“丶丨丶乙一丿丶丿乙丨丿丶”对应快乐的概率为90%,“丨丶丶乙一丿丶丿乙丨丿丶”对应快乐的概率为79%,以此类推,从而构建基于笔画的纠错模型。如此,对于未匹配上初始上屏候选项的笔画筛选序列,可以根据上述基于笔画的纠错模型判断笔画筛选序列与各初始上屏候选项的匹配概率,如果大于阈值,比如大于34%,则可认为初始上屏候选项被匹配上。
和/或,子步骤C342,利用组成每个字的笔画之间的二元或者多元关系,构建所述基于笔画的纠错模型。
比如“快”字的笔画“丶丶丨乙一丿丶”为,统计可得到笔画序列“丶丨丶乙一丿丶”对应“快”字的概率为为90%,笔画序列“丨丶丶乙一丿丶”对应“快”字的概率为80%,类似原理可以构建基于笔画的纠错模型。也可以根据上述基于笔画的纠错模型判断笔画筛选序列与各初始上屏候选项的匹配概率,如果大于阈值,比如大于34%,则可认为初始上屏候选项被匹配上。
优选的,步骤350中,所述接收用户输入的筛选笔画序列,包括:
子步骤C369,判断所述筛选笔画序列中是否存在分隔符;如果存在分隔符,则根据所述分隔符将用户输入的筛选笔画序列分隔为各筛选笔画子序列。
进一步的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配包括:
子步骤C370,以筛选笔画子序列为单位,按序将所述筛选笔画子序列与每个初始候选项中相应顺序上的字的目标笔画子序列进行匹配。
在本发明实施例中,可以在预先设置分隔符识别规则,比如设置“、”或者“;”为分隔符,用户可以在输入筛选笔画之间输入分隔符,将筛选笔画序列分隔为筛选笔画子序列,每个筛选笔画子序列可以对应一个字的筛选笔画序列。
如果没有分隔符,则可按序将筛选笔画序列与由每个初始上屏候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
比如用户输入“一丨”后输入分隔符“;”,那么即可确定“一丨”为筛选初始上屏候选项第一个字的筛选笔画子序列,用户在输入分隔符之后,继续输入“丶丶”,那么可以将该“丶丶”作为为筛选初始上屏候选项第二个字的筛选笔画子序列,如果还有分隔符,那么两个分隔符之间的筛选笔画子序列对应匹配初始上屏候选项相应位置的字。比如有两个分隔符,第一个分隔符之前的筛选笔画子序列对应匹配初始上屏候选项的第一个字,第一个分隔符和第二个分隔符之间的筛选笔画子序列对应匹配初始上屏候选项的第二个字,第二个分隔符之后的筛选笔画子序列对应匹配初始上屏候选项的第三个字。
子步骤C369和C370可以为在对初始候选项各个字的至少前两笔组成的第一笔画序列进行匹配时使用,可以提高对筛选笔画序列的识别速度,提高匹配效率。
本发明解决了如果用户要在编辑串中输入光标以修改编辑串,需要用户点击编辑串中某个位置,而由于编辑串的展示区域狭小,用户的触屏点击动作很难精准点击到想要的位置,并且,用户点击动作会遮挡编辑串,更影响用户操作的精确性的问题,取得了方便用户根据在输入法中的滑动操作,控制输入法的光标进入编辑串,并在编辑串中移动,不影响用户的视线,使用户可以更精确的定位光标的有益效果。并且,通过状态标识的标记,使对滑动事件的判断更简单,节省了系统资源
。并且可以直接根据定位光标位置的对应的按键序列,以用户再次输入的筛选笔画序列,对该按键序列对应的各种拼音串对应的各种字和/词(即初始候选项)进行筛选,并且根据筛选结果修正定位光标对应的按键序列的拼音子串,不需要先确定拼音后再确定上屏候选项,可以通过筛选笔画序列确定上屏候选项,同时更正相应的拼音子串。解决了确定候选汉字的过程需要拼音确定之后才能获得候选,操作过程多,并且不能进行进一步过滤,影响用户的输入效率的问题,提高用户使用定位光标的灵活性,进一步对上屏候选项进行筛选,以提高用户的输入效率。并且,本发明实施例中,可以通过多个笔画对初始候选项的多个字进行筛选,不局限于单字的过滤,筛选效率高,进一步提高了输入效率。
实施例四
参照图4,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤410,在输入法的常规文字候选模式,监听是否接收到滑动事件;果接收到滑动事件,则进入步骤420;
在本发明实施例中,比如移动终端使用九键键盘的拼音输入法,比如九键键盘如下:1键对应:分词,2键对应:abc,3键对应:def,4键对应:ghi,5键对应:ikl,6键对应:mno,7键对应:pqrs,8键对应:tuv,9键对应:wxyz。
用户可以点击九键的键盘516482,那么输入法则首先按照拼音输入法的识别逻辑,首先识别按键序列516482,得到默认拼音串为“kai’gua”,通过该拼音串,该种状态即为输入法正常的常规文字候选模式。该常规文字候选模式即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前 的上屏候选项展示在候选栏的情况。以九键输入法为例,如图1A,其示出输入法的常规文字候选模式。
当然,对于其他类型的键盘,比如全键盘的输入法和其他类型的输入法的常规文字候选模式类似上述例子。其他类型输入法的常规文字候选模式也类似上述例子,比如笔画输入法,用户点击按键序列后,输入法将按键序列转换为笔画串,根据笔画串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏,此刻的情况即为常规文字候选模式。
那么在常规文字候选模式下,在输入法的输入键盘区域接收用户在屏幕上的滑动事件。在本发明实施例中,输入键盘区域可以为输入法候选栏之下的区域。输如图1A中,比如“开花”等字所在候选栏之下的区域。当然,优选的输入键盘区域可以选择为1-9键所在的输入界面,当然还可以包括“符”、“’”“空格”、“词字”等按键所在界面区域。
那么用户在输入法的输入键盘区域进行滑动操作时,会触发滑动事件,然后本发明实施例在输入法界面区域接收到滑动事件之后,则会对该滑动事件进行判断。
当然本发明实施例中,可以通过触摸屏上的down事件+move事件判断出现滑动事件,通过up事件判断用户的操作结束。
步骤420,判断所述滑动事件是否满足预设条件;如果所述滑动事件满足预设条件,则进入步骤430;
本发明可判断所述滑动事件是否满足预设条件,比如是否判断所述滑动事件是否向预定方向的滑动距离达到阈值。比如设置预设条件为:以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的右侧(如图1A所示对应竖直方向的上、下,和对应水平方向左、右),滑动起点到终点在水平方向的距离达到阈值,如3(如图1的左右方向),则如果滑动事件满足上述条件则判断其满足预设条件。那么比如用户按下触摸屏后的起始焦点坐标为(7,5),用户滑动后,触摸焦点的坐标随着变化,比如滑动到(10,10),那么其滑动后的焦点坐标在起始焦点坐标的左侧,那么滑动事件为向左滑动,其水平滑动的距离则为3,达到前述的阈值3,则判断该滑动事件满足预设条件。
本发明实施例中,如前述例子,可以根据up事件、down事件+move事件这些事件对应的坐标位置和坐标间的相对位置及距离,识别滑动事件是否满足预设条件。
优选的,判断所述滑动事件是否满足预设条件包括:
子步骤421,判断所述滑动事件是否为输入法键盘区域中向候选项尾端方向的滑动操作;
子步骤422,如果所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足预设条件。
在本发明实施例中,可以规定预设条件为在输入法键盘区域中向编辑串首端方向的滑动操作。比如,以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的右侧(如图1A所示对应竖直方向的上、下,和对应水平方向左、右),滑动起点到终点在水平方向的距离阈值为x。
那么用户在输入法键盘区域中向左滑动的水平距离达到x后,则进入子步骤430。
步骤430,进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
然后,即可将当前的常规文字候选模式,切换到候选项光标滑动模式,即如图4A,然后即可根据滑动事件控制光标在候选栏中移动,移动到候选项“凯华”上。在候选项 光标滑动模式下,光标一般为不可见的,其只是显示在移动项上,即在候选栏中移动一个位置,其对应移动到下一个候选项上。
优选的,根据滑动事件控制光标在候选项中移动包括:
子步骤431,将光标对应的候选项进行高亮显示。
即光标移动在哪个候选项上,则高亮显示所述候选项。方便用户确定光标具体的位置。
在本发明实施例中,对于用户的某个滑动操作触发进入候选栏的滑动事件,如果该滑动事件的方向和滑动距离达到预定条件,则进入候选项光标滑动模式。然后如果用户前述滑动操作并未结束,继续滑动,则可以根据继续滑动的方向和距离控制光标在候选栏中移动,即将移动光标所对应的候选项。当用户上述滑动操作结束,再次接收滑动操作时,由于是在候选项光标滑动模式中接收的滑动事件,则直接根据滑动事件的方向和距离移动候选栏中的光标。
优选的,所述根据滑动事件控制光标在候选项中移动包括:
子步骤432,根据滑动方向以及移动距离,同向移动所述光标在候选栏中的位置。
在本发明中光标在候选栏中的移动方向跟前述水平滑动方向一致,即用户向右滑动操作时,光标向右滑动,如图4A,是光标在候选项中向右移动后的示意图。用户向右滑动操作时,光标向右滑动。在本发明实施例中候选项光标滑动模式下,左滑则向左移动光标,但是光标在候选栏最左边位置则无动作,而是移动候选项。右滑则光标向右移动,在候选栏最右边无动作,而是移动候选项。
另外,用户可以退出候选项光标滑动模式,然后再次接收到滑动事件后则进入步骤420的过程。
优选的,根据滑动事件控制光标在候选项中移动之后,还包括:
子步骤433,如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
在本发明实施例中,在候选项光标滑动模式继续接收用户输入的字符,比如在拼音输入法中输入u,则意味的编辑串变化,那么对应的候选项也变化,则可以退出候选项光标滑动模式。
优选的,根据滑动事件控制光标在候选项中移动包括:
子步骤434,当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;
子步骤435,如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
在本发明实施例中,后续栏同时展示的候选项有限定,比如图4A中只能展示4个左右的候选项,而实际上一个编辑串或者说用户输入的按键序列对应的候选项个数一般都远远多于候选栏可以展示的候选项的个数。那么光标在移动至候选栏中展示的最后一个候选项时,如图4A中的“凯华”,那么则会判断“凯华”是不是所有排序最后的一个候选项,如果是“凯华”不是最后的一个候选项,那么对于向右的滑动事件,需要将光标对应当前候选项的后面的候选项,则需要将所有候选项按序向首端顺移,以保证处于候选栏尾端的光标能够对应到相应候选项。在本发明实施例中,图4A“凯华”即是通过图1A中的光标向右移动后,所有候选项向左移动得到的。如果是“凯华”是最后的一个 候选项,则不响应右滑。
子步骤436,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;
子步骤437,如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
如前述逻辑,如果光标移动至候选栏第一个候选项的位置时,比如移动至图1A中的“开挂”上时,需要判断“开挂”是否为所有候选项中排序第一的候选项,如果“开挂”不是所有候选项中排序第一的候选项,那么对于向左滑动事件,则将所有候选项向右顺移。如果“开挂”是所有候选项中排序第一的候选项,则不响应左滑。
优选的,根据滑动事件控制光标在候选项中移动之后还包括:
子步骤438,根据光标移动后所在位置对应的候选项,修正对应的编辑串。
在本发明实施例中,对于候选项,可以按照按键序列,选择按键序列对应的各种编辑串对应的各个候选项,比如前述例子中的按键序列“516482”,其至少对应两个拼音串,比如“kai’hua”,“kai’gua”,那么候选项中可以把这些拼音串的各个字和/或词均作为候选项。那么以图1A和图4A为例中初始的拼音串为“kai’gua”,那么在进入候选项光标滑动模式后,向右移动光标到“凯华”后,根据“凯华”调整拼音串为“kai’hua”。
根据本发明的输入法光标操作方法可以在输入法常规文字候选模式的界面中,监听输入法区域中接收到的滑动事件,判断接收到的滑动事件是否满足预设条件,如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动,由此解决了对于输入法根据编辑串得到的候选项展示在候选栏中,如果用户要选择更多的候选项,需要用户点击展开按钮,展开候选界面进行选择,但是候选界面会覆盖输入法键盘,其无法通过候选栏的光标直接在候选栏中展示新的候选项的问题,取得了方便用户根据在输入法中的滑动操作,控制输入法的光标进入候选栏,并在候选项中移动,不影响用户的视线,使用户可以更方便的选择候选项的有益效果。
实施例五
参照图5,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤510,在输入法的常规文字候选模式,监听是否接收到滑动事件;果接收到滑动事件,则进入步骤520;
步骤520,判断所述滑动事件是否满足预设条件;如果所述滑动事件满足预设条件,则进入步骤530;
步骤530,进入候选项光标滑动模式,将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
在本发明实施例中,为了保证不使每次滑动都判断其是否满足前述预设条件,每次都触发进入判断光标滑动模式的操作,本发明维护了常规文字候选模式的第一状态标识和候选项光标滑动模式的第三状态标识。在相应模式下,则启用相应的状态标识。比如前述即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏时即为常规文字候选模式,此时启用第一状态标识,然后进入候选项光标滑动模式时,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第三状态标识。
步骤540,当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;如果当前输入法的状态标识为第三状态标识,则进入步骤550;
那么当继续接收到滑动事件后,则判断当前输入法的状态标识为哪一种,如果为第三状态标识,则会继续采用步骤510的判断过程。如果为第二状态标识,则会进入步骤550。
步骤550,根据所述滑动事件移动光标在候选项中的位置。
步骤560,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,再次接收到用户输入的字符序列,则将候选项光标滑动模式的第三状态标识,修改为常规文字候选模式的第一状态标识。
实施例六
参照图6,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤610,在输入法的常规文字候选模式,监听是否接收到滑动事件;
在本发明实施例中,比如移动终端使用九键键盘的拼音输入法,比如九键键盘如下:1键对应:分词,2键对应:abc,3键对应:def,4键对应:ghi,5键对应:ikl,6键对应:mno,7键对应:pqrs,8键对应:tuv,9键对应:wxyz。
用户可以点击九键的键盘516482,那么输入法则首先按照拼音输入法的识别逻辑,首先识别按键序列516482,得到默认拼音串为“kai’gua”,通过该拼音串,该种状态即为输入法正常的常规文字候选模式。该常规文字候选模式即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏的情况。以九键输入法为例,如图1A,其示出输入法的常规文字候选模式。
当然,对于其他类型的键盘,比如全键盘的输入法和其他类型的输入法的常规文字候选模式类似上述例子。其他类型输入法的常规文字候选模式也类似上述例子,比如笔画输入法,用户点击按键序列后,输入法将按键序列转换为笔画串,根据笔画串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏,此刻的情况即为常规文字候选模式。
那么在常规文字候选模式下,在输入法的输入键盘区域接收用户在屏幕上的滑动事件。在本发明实施例中,输入键盘区域可以为输入法候选栏之下的区域。输如图1A中,比如“开花”等字所在候选栏之下的区域。当然,优选的输入键盘区域可以选择为1-9键所在的输入界面,当然还可以包括“符”、“’”“空格”、“词字”等按键所在界面区域。
那么用户在输入法的输入键盘区域进行滑动操作时,会触发滑动事件,然后本发明实施例在输入法界面区域接收到滑动事件之后,则会对该滑动事件进行判断。
当然本发明实施例中,可以通过触摸屏上的down事件+move事件判断出现滑动事件,通过up事件判断用户的操作结束。
步骤620,如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
在本发明中,可以预设两种类型的预设条件,分别对应编辑串光标滑动模式和候选项光标滑动模式。
比如设置第一类型预设条件为:以触摸屏的竖直方向和水平方向为参考(如图1A), 滑动事件滑动的终点在起点的左侧(如图1A所示对应竖直方向的上、下,和对应水平方向左、右),滑动起点到终点在水平方向的距离达到阈值,如3(如图1的左右方向),则如果滑动事件满足上述条件则判断其满足第一类型预设条件。
比如设置第二类型预设条件为:以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的右侧,滑动起点到终点在水平方向的距离达到阈值,如3,则如果滑动事件满足上述条件则判断其满足第二类型预设条件。
那么比如用户按下触摸屏后的起始焦点坐标为(10,10),用户滑动后,触摸焦点的坐标随着变化,比如滑动到(7,5),那么其滑动后的焦点坐标在起始焦点坐标的左侧,那么滑动事件为向左滑动,其水平滑动的距离则为3,达到前述的阈值3,则判断该滑动事件满足第一类型预设条件。
那么比如用户按下触摸屏后的起始焦点坐标为(7,5),用户滑动后,触摸焦点的坐标随着变化,比如滑动到(10,10),那么其滑动后的焦点坐标在起始焦点坐标的左侧,那么滑动事件为向左滑动,其水平滑动的距离则为3,达到前述的阈值3,则判断该滑动事件满足第二类型预设条件。
本发明实施例中,如前述例子,可以根据up事件、down事件+move事件这些事件对应的坐标位置和坐标间的相对位置及距离,识别滑动事件满足哪一种类型的预设条件,还是都不满足。
优选的,判断所述滑动事件满足的预设条件类型包括:
子步骤621,当判断所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足第一类型预设条件;
本发明实施例判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作,以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的左侧,即向编辑串首端方向滑动,滑动起点到终点在水平方向的距离阈值为x,判断所述滑动事件满足第一类型预设条件。
子步骤622,当判断所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足第二类型预设条件。
本发明实施例判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作,以触摸屏的竖直方向和水平方向为参考(如图1A),滑动事件滑动的终点在起点的右侧,即向候选项尾端方向滑动,滑动起点到终点在水平方向的距离阈值为x,判断所述滑动事件满足第一类型预设条件。
步骤630,如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
然后,即可将当前的常规文字候选模式,切换到编辑串光标滑动模式,即如图1B,然后即可根据滑动事件控制光标在编辑串中移动。
当然,用户在不移动后,可以点击按键输入字符,比如a-z中的一个或者多个。
在本发明实施例中,当用户的某个滑动操作触发进入编辑串光标滑动模式,然后如果用户前述滑动操作并未结束,继续滑动,则可以根据继续滑动的方向和距离控制光标在编辑串中移动。当用户上述滑动操作结束,再次接收滑动操作时,由于是在编辑串光标滑动模式中接收的滑动事件,则直接根据滑动事件的方向和距离移动编辑串中的光标。
当然,用户在不移动后,可以点击按键输入字符,比如a-z中的一个或者多个。
优选的,所述根据滑动事件控制光标在编辑串中移动包括:
子步骤631,根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
在本发明中光标在编辑串中的移动方向跟前述水平滑动方向一致,即用户向左滑动操作时,光标向左滑动,如图1C,是从图1B向右滑动得到的示意图。用户向右滑动操作时,光标向右滑动。在本发明实施例中编辑串光标滑动模式下,左滑则向左移动光标,但是光标在编辑串最左边位置(即编辑串首端位置)则不响应左滑。右滑则光标向右移动,在编辑串最右边(即编辑串最末尾位置)不响应右滑。
另外,用户可以退出编辑串光标滑动模式,然后再次接收到滑动事件后则进入步骤620的过程。
优选的,根据滑动事件控制光标在编辑串中移动之后,还包括:
步骤S631,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,光标在编辑串尾端之外的其他位置时,说明用户可能需要修改编辑串,或者需要调整拼音串等操作,接收用户输入的字符则会插入光标所在位置,比如图1C中用户继续输入字符u,则会将u插入k之后,得到编辑串“ku丨ai’gua”,光标在u之后,并不退出编辑串光标滑动模式。但是如果光标在编辑串尾端时,如图1B的光标位置,用户输入点击按键输入字符时,则退出所述编辑串光标滑动模式,恢复到前述的常规文字候选模式。
当然,当所述光标不在编辑串尾端时,可以点击按键输入字符,比如a-z中的一个或者多个。
在本发明进入编辑串光标滑动模式之后,还会触发笔画筛选模式,生成笔画输入界面,以接收用户输入的筛选笔画序列。比如“横竖竖”,以“横竖撇捺折”对汉字笔画进行切分为例,具体如“一丨丿丶乙”,那么用户可以点击这5个按键进行笔画输入。如图1B中的“一丨丿丶乙”所在界面。
那么优选的,根据滑动事件控制光标在编辑串中移动之后,还包括:
步骤S632,确定所述光标对应的按键子序列;
在本发明移动编辑串中的光标之后,比如移动后的情况如“kai’丨gua”,或者“kai丨’gua”,或者“kai’gu丨a”,那么则可通过所述定位光标“丨”的位置定位516482中对应的按键子序列,比如定位光标之后的第一个拼音子串的按键序列,对于“kai’丨gua”或者“kai丨’gua”其定位的定位光标之后的第一个拼音子串,其对应的按键子序列为482,对于“kai’gu丨a”,定位光标所在的拼音子串为gua,那么其对应的按键子序列也为482。
步骤S633,接收用户输入的筛选笔画序列;
比如用户输入“一丨丨”,那么输入法则接收到筛选笔画序列“一丨丨”。
步骤S634,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
在输入法中,对于某个按键子序列,其对应的拼音串可能有多种形式,其对应的字和/或词也会有不同的类型。比如前述482,其对应的拼音子串可以包括“gua”、“hua”等,每个拼音子串在词库中又对应一系列的初始候选项,那么本发明可将前述筛选笔画序列与这些初始候选项的第一笔画序列进行匹配,对于匹配上的初始候选项则进入步骤 370。
可以理解,本步骤在匹配之前,需要通过所述按键子序列,获取可以由所述按键子序列组成的各拼音子串,然后由各个拼音子串从词库中提取对应的初始候选项,然后将各个拼音子串的初始候选项组合为对应所述按键子序列的初始候选项。
当然在本发明实施例中,对于初始候选项的选择,优先将能与其他拼音串组合为词/句的初始候选项进行匹配。比如前述“kai丨’gua”,拼音串kai没有对其进行处理,后面的482,其对应的“gua”、“hua”,则优先选择“kai’gua”,““kai’hua”等拼音串组合对应的词中的字,比如“开挂”、“开花”、“开化”等词中“kai”后面的字,然后才会选择其他不能组合为词的单字进行匹配。
那么对于前述例子中的筛选笔画序列“一丨丨”,则与482的各初始候选项中匹配到“花”。
步骤S635,根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
对于前述例子中,对于上屏的拼音串“kai’gua”,其上屏候选项为“开挂”等,那么由于前述步骤对于482的初始候选项进行了过滤,得到“花”,而花的拼音串为“hua”,那么将上屏的拼音串修正为“kai’hua”,同时将“开挂”等上屏候选项撤销,修改为“kai’hua”的上屏候选项,即排序第一的为“开花”,“开化”等。
优选的,步骤S632中,所述确定所述光标对应的按键子序列包括:
子步骤S6321,所述光标在拼音串中的第一位置,判断所述第一位置是否在符合拼音规则的拼音子串中;
子步骤S6322,如果所述第一位置没在符合拼音规则的拼音子串中,则从所述第一位置之后的第一个符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列;
子步骤S6323,如果所述第一位置在符合拼音规则的拼音子串中,则从第一位置所在的符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列。
当然,本发明实施例中可以规定只选择一个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列,也可以是规定多个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列。
以前述九键盘为例,当用户输入了9494242426,输入法识别为默认拼音串“yi’xian’tian”,默认上屏候选项包括“一线天”等。如果只规定选择一个符合拼音规则的拼音子串的按键序列作为所述定位光标对应的按键子序列:
那么当用户在“y丨i’xian’tian”输入定位光标,那么由于定位光标“丨”在第一个i之前,按照汉语拼音的拼音规则,该定位光标在拼音子串yi中,那么将yi对应的按键子序列94作为所述定位光标对应的按键子序列。
当用户在“y i’丨xian’tian”输入定位光标,那么由于定位光标“丨”在x之前,按照汉语拼音的拼音规则,该定位光标没有在某个拼音子串之中,其后面的第一个拼音子串为xian,那么将xian对应的按键序列9426作为所述定位光标对应的按键子序列。
当用户在“y i’xi丨an’tian”输入定位光标,那么由于定位光标“丨”在a之前,按照汉语拼音的拼音规则,该定位光标在拼音子串xian中,,那么将xian对应的按键序 列9426作为所述定位光标对应的按键子序列。
当用户在“y i’xian’丨t ian”输入定位光标,那么由于定位光标“丨”在后面一个i之前,按照汉语拼音的拼音规则该定位光标没有在某个拼音子串之中,其后面的第一个拼音子串为t ian,那么将tian对应的按键序列8426作为所述定位光标对应的按键子序列。
当然,如果选择多个拼音子串作为所述定位光标对应的按键子序列,比如前述“y i’xi丨an’tian”,可以将“9426”和“8426”作为所述定位光标对应的按键子序列,后续笔画筛选序列可以同时筛选这两个按键子序列对应的字和/或词。其他情况以此类推。
当然,还可以根据所述定位光标在拼音串中的第一位置,判断所述第一位置之前是否有符合拼音规则的拼音子串;如果所述第一位置之前有符合拼音规则的拼音子串,则将所述符合拼音规则的拼音子串之后的按键子序列作为所述定位光标对应的按键子序列;如果所述第一位置之前没符合拼音规则的拼音子串,则将第一个按键开始的按键子序列作为所述定位光标对应的按键子序列。
优选的,步骤S634中,所述将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配包括:
子步骤S6341,查找与所述按键子序列对应的各种拼音子串;
子步骤S6342,由各拼音串获取相应的字和/或词,得到各初始候选项;
子步骤S6343,将所述筛选笔画序列,与各初始候选项的笔画序列进行匹配。
以前述“y i’丨xian’tian”对应的按键序列9426为例,其可对应“xian”、“xiao”、“zhao”等拼音子串,这些拼音子串对应一系列的字,那么可将这些字作为初始候选项,以筛选笔画序列进行筛选。
基于子步骤B661-步骤B663,结合到步骤S635。为了更方便的理解本发明实施例,在此以前述的例子进行举例说明。比如用户输入9494242426,输入法识别为默认拼音串“yi’xian’tian”,默认上屏候选项包括“一线天”等。
情况1:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为94。当用户输入筛选笔画序列“一丨乙”,那么通过前述步骤,对于94对应的各字中筛选得到“西”,那么可将默认“yi’xian’tian”中的yi修改为xi,当然yi后面的拼音子串也可以相应修改,也可以不修改,比如对于不修改的情况可为“xi’xian’tian”,其上屏候选项第一个字为西,其他的可根据后面的拼音子串从词库中查找。
情况2:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为9426。当用户输入筛选笔画序列“丨丿丶”,那么通过前述步骤,对于9426对应的各字中筛选得到“小”,那么可将默认“yi’xian’tian”中的xian修改为xiao,当然xian后面的拼音子串也可以相应修改,也可以不修改,比如对于不修改的情况可为“xi’xiao’tian”,其上屏候选项第一个字为依然为一,第二个字则为小,第三个字可为与第二个字能组合为词的字,比如天。其他的上屏候选项可根据后面的拼音子串从词库中查找。
情况3:用户输入定位光标得到,“y i’丨xian’tian”,那么根据前述步骤,可确定定位光标对应的按键子序列为94242426。
在本种情况中,由于可能对多个字的笔画进行匹配,可以预先规定是对多个字的至 少第一个笔画所组成的第一笔画序列进行匹配。以各字的首笔进行匹配为例。当用户输入筛选笔画序列“丿一”,那么通过前述步骤,对于94242426对应的各字中筛选得到“小天”。当然对于笔画匹配的字/词如果有多个,也可以按照使用频率进行选择,优先选择使用频率高的。
那么可将默认“yi’xian’tian”中的xian’tian修改为xiao’tian,其上屏候选项第一个字为依然为一,第二、三个字则为小天。其他的上屏候选项可根据后面的拼音子串从词库中查找。
优选的,步骤S634中,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的笔画序列进行匹配,包括:
子步骤B6341,将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
在本发明实施例中,定位光标对应的按键子序列能对应几个拼音串,而每个拼音串对应多个初始候选项,因此,各按键子序列通过其对应的拼音串对应更多的初始候选项。比如步骤中规定获得定位光标对应的第一位置当前或者之后的多个符合拼音规则的拼音子串,将该多个拼音子串对应的多个按键子序列作为所述定位光标对应的按键子序列,那么该按键字序列可能对应词,比如实施例二中94242426可对应“xiao’tian”、“xian’tian”,这些拼音串均每个都对应两个字,或者可以理解为其对应一个词。那么本发明可以通过筛选笔画序列同时匹配一个初始候选项的多个字。
优选的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配包括:
子步骤B6342,将所述筛选笔画序列与由每个初始候选项各字的完整笔画序列组成的第一笔画序列进行匹配;
在本发明实施例中可将各初始上屏候选项的各字的完整笔画提取出来,组成第一笔画序列,比如“亚洲”,“亚”的完整笔画序列为“一丨丨丿丶一”,“洲”的完整笔画序列为“丶丶一丶丿丶丨丶丨”,那么组成的第一笔画序列为“一丨丨丿丶一丶丶一丶丿丶丨丶丨”,所述筛选笔画序列可与该第一笔画序列进行匹配。
和/或,子步骤B6343,将所述筛选笔画序列与由每个初始候选项的各字的首个笔画组成的第一笔画序列相匹配。
在本发明实施例中可将各初始上屏候选项的各字的完整笔画提取出来,组成第一笔画序列,比如前述“亚洲”,“亚”的首个笔画为“一”,“洲”的首个笔画为“丶”,那么组成的第一笔画序列为“一丶”,所述筛选笔画序列可与该第一笔画序列进行匹配。
优选的,在将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配之前还包括:
子步骤B6344,针对每个初始候选项,从词库中获取每个初始候选项的第一笔画序列。
在本发明实施例中,可预先在词库中保存每个字的笔画,该词库可在安装时随客户端安装在系统的指定路径下。
本发明实施例中,在接收用户输入筛选笔画序列的过程之前、之中或者之后,均可从词库中提取每个初始上屏候选项的第一笔画序列。当然如实施例一所述,可以提取每个初始上屏候选项的各字的至少第一个笔画所组成的第一笔画序列。
优选的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配还包括:
子步骤B6327,当所述筛选笔画序列与所述初始候选项的第一笔画序列不完全匹配时,利用基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始候选项的第一笔画序列匹配的概率;
在实际应用中,用户输入筛选笔画序列时,可能会输入错误,比如输入“快”字时,以五笔输入法的“一、丨、丿、丶、乙”为例,正确的笔画顺序应该为“丶丶丨乙一丿丶”,而对于竖心旁的输入则容易出错,比如“丨丶丶”,那么该种错误输入则可通过基于笔画的纠错模型对其进行判断,判断用户输入的笔画序列与初始上屏候选项的第一笔画序列匹配的概率。
子步骤B6346,当所述匹配的概率大于阈值时,则判断所述筛选笔画序列与所述初始候选项的第一笔画序列匹配上。
当通过基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始上屏候选项的第一笔画序列匹配的概率大于一定的阈值时,则可认为所述筛选笔画序列与所述初始上屏候选项的第一笔画序列匹配上;反之,则认为没有匹配上。
优选的,还包括:
子步骤B6347,利用词组和/或句子中字词的二元或多元关系,构建所述基于笔画的纠错模型;
二元关系,用于表示两个元素相继出现的概率,即P(B|A),表示A出现的条件下,B出现的概率。多元关系由二元关系衍生而来。
在本发明实施例中,可以根据预先统计词组和字词的笔画,根据词组或者句子直接的字直接的二元或者多元关系确定笔画出现的概率。比如快乐的笔画序列为“丶丶丨乙一丿丶丿乙丨丿丶”,通过统计得到“丶丨丶乙一丿丶丿乙丨丿丶”对应快乐的概率为90%,“丨丶丶乙一丿丶丿乙丨丿丶”对应快乐的概率为79%,以此类推,从而构建基于笔画的纠错模型。如此,对于未匹配上初始上屏候选项的笔画筛选序列,可以根据上述基于笔画的纠错模型判断笔画筛选序列与各初始上屏候选项的匹配概率,如果大于阈值,比如大于34%,则可认为初始上屏候选项被匹配上。
和/或,子步骤B6348,利用组成每个字的笔画之间的二元或者多元关系,构建所述基于笔画的纠错模型。
比如“快”字的笔画“丶丶丨乙一丿丶”为,统计可得到笔画序列“丶丨丶乙一丿丶”对应“快”字的概率为为90%,笔画序列“丨丶丶乙一丿丶”对应“快”字的概率为80%,类似原理可以构建基于笔画的纠错模型。也可以根据上述基于笔画的纠错模型判断笔画筛选序列与各初始上屏候选项的匹配概率,如果大于阈值,比如大于34%,则可认为初始上屏候选项被匹配上。
优选的,所述接收用户输入的筛选笔画序列,包括:
子步骤B6349,判断所述筛选笔画序列中是否存在分隔符;如果存在分隔符,则根据所述分隔符将用户输入的筛选笔画序列分隔为各筛选笔画子序列。
进一步的,所述将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配包括:
子步骤B6350,以筛选笔画子序列为单位,按序将所述筛选笔画子序列与每个初始 候选项中相应顺序上的字的目标笔画子序列进行匹配。
在本发明实施例中,可以在预先设置分隔符识别规则,比如设置“、”或者“;”为分隔符,用户可以在输入筛选笔画之间输入分隔符,将筛选笔画序列分隔为筛选笔画子序列,每个筛选笔画子序列可以对应一个字的筛选笔画序列。
如果没有分隔符,则可按序将筛选笔画序列与由每个初始上屏候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
比如用户输入“一丨”后输入分隔符“;”,那么即可确定“一丨”为筛选初始上屏候选项第一个字的筛选笔画子序列,用户在输入分隔符之后,继续输入“丶丶”,那么可以将该“丶丶”作为为筛选初始上屏候选项第二个字的筛选笔画子序列,如果还有分隔符,那么两个分隔符之间的筛选笔画子序列对应匹配初始上屏候选项相应位置的字。比如有两个分隔符,第一个分隔符之前的筛选笔画子序列对应匹配初始上屏候选项的第一个字,第一个分隔符和第二个分隔符之间的筛选笔画子序列对应匹配初始上屏候选项的第二个字,第二个分隔符之后的筛选笔画子序列对应匹配初始上屏候选项的第三个字。
子步骤B6349和子步骤B6350可以为在对初始候选项各个字的至少前两笔组成的第一笔画序列进行匹配时使用,可以提高对筛选笔画序列的识别速度,提高匹配效率。
步骤640,如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
然后,即可将当前的常规文字候选模式,切换到候选项光标滑动模式,即如图4A,然后即可根据滑动事件控制光标在候选栏中移动,移动到候选项“凯华”上。在候选项光标滑动模式下,光标一般为不可见的,其只是显示在移动项上,即在候选栏中移动一个位置,其对应移动到下一个候选项上。
优选的,根据滑动事件控制光标在候选项中移动包括:
子步骤S641,将光标对应的候选项进行高亮显示。
即光标移动在哪个候选项上,则高亮显示所述候选项。方便用户确定光标具体的位置。
在本发明实施例中,对于用户的某个滑动操作触发进入候选栏的滑动事件,如果该滑动事件的方向和滑动距离达到预定条件,则进入候选项光标滑动模式。然后如果用户前述滑动操作并未结束,继续滑动,则可以根据继续滑动的方向和距离控制光标在候选栏中移动,即将移动光标所对应的候选项。当用户上述滑动操作结束,再次接收滑动操作时,由于是在候选项光标滑动模式中接收的滑动事件,则直接根据滑动事件的方向和距离移动候选栏中的光标。
优选的,所述根据滑动事件控制光标在候选项中移动包括:
子步骤S642,根据滑动方向以及移动距离,同向移动所述光标在候选栏中的位置。
在本发明中光标在候选栏中的移动方向跟前述水平滑动方向一致,即用户向右滑动操作时,光标向右滑动,如图4A,是光标在候选项中向右移动后的示意图。用户向右滑动操作时,光标向右滑动。在本发明实施例中候选项光标滑动模式下,左滑则向左移动光标,但是光标在候选栏最左边位置则无动作,而是移动候选项。右滑则光标向右移动,在候选栏最右边无动作。
另外,用户可以退出候选项光标滑动模式,然后再次接收到滑动事件后则进入步骤620的过程。
优选的,根据滑动事件控制光标在候选项中移动之后,还包括:
子步骤S643,如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
在本发明实施例中,在候选项光标滑动模式继续接收用户输入的字符,比如在拼音输入法中输入u,则意味的编辑串变化,那么对应的候选项也变化,则可以退出候选项光标滑动模式。
优选的,根据滑动事件控制光标在候选项中移动包括:
子步骤S644,当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;
子步骤S627,如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
在本发明实施例中,后续栏同时展示的候选项有限定,比如图4A中只能展示4个左右的候选项,而实际上一个编辑串或者说用户输入的按键序列对应的候选项个数一般都远远多于候选栏可以展示的候选项的个数。那么光标在移动至候选栏中展示的最后一个候选项时,如图4A中的“凯华”,那么则会判断“凯华”是不是所有排序最后的一个候选项,如果是“凯华”不是最后的一个候选项,那么对于向右的滑动事件,需要将光标对应当前候选项的后面的候选项,则需要将所有候选项按序向首端顺移,以保证处于候选栏尾端的光标能够对应到相应候选项。在本发明实施例中,图4A“凯华”即是通过图1A中的光标向右移动后,所有候选项向左移动得到的。如果是“凯华”是最后的一个候选项,则不响应右滑。
子步骤S646,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;
子步骤S647,如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
如前述逻辑,如果光标移动至候选栏第一个候选项的位置时,比如移动至图1A中的“开挂”上时,需要判断“开挂”是否为所有候选项中排序第一的候选项,如果“开挂”不是所有候选项中排序第一的候选项,那么对于向左滑动事件,则将所有候选项向右顺移。如果“开挂”是所有候选项中排序第一的候选项,则不响应左滑。
优选的,根据滑动事件控制光标在候选项中移动之后还包括:
子步骤S648,根据光标移动后所在位置对应的候选项,修正对应的编辑串。
在本发明实施例中,对于候选项,可以按照按键序列,选择按键序列对应的各种编辑串对应的各个候选项,比如前述例子中的按键序列“516482”,其至少对应两个拼音串,比如“kai’hua”,“kai’gua”,那么候选项中可以把这些拼音串的各个字和/或词均作为候选项。那么以图1A和图4A为例中初始的拼音串为“kai’gua”,那么在进入候选项光标滑动模式后,向右移动光标到“凯华”后,根据“凯华”调整拼音串为“kai’hua”。
在本发明实施例中,首先,提供了两种光标滑动模式,即编辑串光标滑动模式和候选项光标滑动模式,用户可以根据预定的用户触发的预定滑动事件,从常规文字候选模式,进入某个光标滑动模式,方便用户对编辑串的编辑和候选项的选择,以及方便用户在具备候选项视野的情况下,方便的进行候选项的选择。
其次,本发明实施例中,特别是在编辑串的光标滑动模式下,可以直接根据定位光 标位置的对应的按键序列,以用户再次输入的筛选笔画序列,对该按键序列对应的各种拼音串对应的各种字和/词(即初始候选项)进行筛选,并且根据筛选结果修正定位光标对应的按键序列的拼音子串,不需要先确定拼音后再确定上屏候选项,可以通过筛选笔画序列确定上屏候选项,同时更正相应的拼音子串。解决了确定候选汉字的过程需要拼音确定之后才能获得候选,操作过程多,并且不能进行进一步过滤,影响用户的输入效率的问题,提高用户使用定位光标的灵活性,进一步对上屏候选项进行筛选,以提高用户的输入效率。并且,本发明实施例中,可以通过多个笔画对初始候选项的多个字进行筛选,不局限于单字的过滤,筛选效率高,进一步提高了输入效率。
实施例七
参照图7,其示出了本发明的一种输入法光标操作方法的流程示意图,具体可以包括:
步骤710,在输入法的常规文字候选模式,监听是否接收到滑动事件;
步骤712,如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;如果所述滑动事件满足第一类型预设条件,则进入步骤714;如果所述滑动事件满足第二类型预设条件,则进入步骤722;
在本发明实施例中,为了保证不使每次滑动都判断其是否满足前述某种类型的预设条件,每次都触发进入判断光标滑动模式的操作,本发明维护了常规文字候选模式的第一状态标识、编辑串光标滑动模式的第二状态标识、候选项光标滑动模式的第三状态标识。在相应模式下,则启用相应的状态标识。比如前述即为输入法对于用户点击得到的按键序列,进行编辑串的识别,然后基于编辑串从词库得到上屏候选项,将排序靠前的上屏候选项展示在候选栏时即为常规文字候选模式,此时启用第一状态标识。然后进入编辑串光标滑动模式时,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识。而进入候选项光标滑动模式时,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第三状态标识。
步骤714,如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;进入步骤716,
步骤716,当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;如果当前输入法的状态标识为第二状态标识,则进入步骤718;
步骤718根据所述滑动事件移动光标在编辑串中的位置;
步骤720,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则将编辑串光标滑动模式的第二状态标识,修改为常规文字候选模式的第一状态标识。
步骤722,如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;进入步骤724;
步骤724,当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状 态标识;如果当前输入法的状态标识为第三状态标识,则进入步骤726;
步骤726,根据所述滑动事件移动光标在候选项中的位置。
步骤728,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
在本发明实施例中,在候选项光标滑动模式中再次接收到用户输入的字符序列,则将候选项光标滑动模式的第三状态标识,修改为常规文字候选模式的第一状态标识。
实施例八
参照图8,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块810,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块820,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块830,适于如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
实施例九
参照图9,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块910,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块920,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块930,适于如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动,具体包括:
第一状态标识切换模块931,适于如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;
第一状态标识判断模块932,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
第一光标移动模块933,适于如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
所述滑动判断模块包括:
首端方向判断模块,适于判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作;如果所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足预设条件。
优选的,所述光标移动模块包括:
第一同向移动模块,适于根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
优选的,所述光标移动模块之后,还包括:
编辑串光标滑动模式退出模块,适于当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
实施例十
参照图10,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块1010,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块1020,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块1030,适于如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
光标确定模块1040,适于确定所述光标对应的按键子序列
筛选序列接收模块1050,适于接收用户输入的筛选笔画序列;
筛选匹配模块1060,适于将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
调整模块1070,适于根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
优选的,所述光标确定模块包括:
光标位置判断模块,适于根据所述光标在拼音串中的第一位置,判断所述第一位置是否在符合拼音规则的拼音子串中;
第一按键确定模块,适于如果所述第一位置没在符合拼音规则的拼音子串中,则从所述第一位置之后的第一个符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列;
第二按键确定模块,适于如果所述第一位置在符合拼音规则的拼音子串中,则从第一位置所在的符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列。
优选的,所述筛选匹配模块包括:
拼音串查找模块,适于查找与所述按键子序列对应的各种拼音子串;
初始候选项获取模块,适于由各拼音串获取相应的字和/或词,得到各初始候选项;
匹配模块,适于将所述筛选笔画序列,与各初始候选项的笔画序列进行匹配。
优选的,所述筛选匹配模块包括:
第一筛选匹配模块,适于将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
优选的,所述第一筛选匹配模块包括:
完整匹配模块,适于将所述筛选笔画序列与由每个初始候选项各字的完整笔画序列组成的第一笔画序列进行匹配;
和/或,首笔匹配模块,适于将所述筛选笔画序列与由每个初始候选项的各字的首个笔画组成的第一笔画序列相匹配。
优选的,在第一筛选匹配模块之前还包括:
第一笔画序列获取模块,适于针对每个初始候选项,从词库中获取每个初始候选项的第一笔画序列。
优选的,所述第一筛选匹配模块还包括:
纠错模块,适于当所述筛选笔画序列与所述初始候选项的第一笔画序列不完全匹配时,利用基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始候选项的第一笔画序列匹配的概率;当所述匹配的概率大于阈值时,则判断所述筛选笔画序列与所述初始候选项的第一笔画序列匹配上。
优选的,还包括:
第一纠错模型构建模块,适于利用词组和/或句子中字词的二元或多元关系,构建所述基于笔画的纠错模型;
和/或,第二纠错模型构建模块,适于利用组成每个字的笔画之间的二元或者多元关系,构建所述基于笔画的纠错模型。
优选的,所述筛选序列接收模块包括:
分隔符接收模块,适于判断所述筛选笔画序列中是否存在分隔符;如果存在分隔符,则根据所述分隔符将用户输入的筛选笔画序列分隔为各筛选笔画子序列。
优选的,所述第一筛选匹配模块包括:
分隔匹配模块,适于以筛选笔画子序列为单位,按序将所述筛选笔画子序列与每个初始候选项中相应顺序上的字的目标笔画子序列进行匹配。
实施例十一
参照图11,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块1110,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块1120,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块1130,适于如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
实施例十二
参照图12,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块1210,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
滑动判断模块1220,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
光标移动模块1230,适于如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动,具体包括:
第二状态标识切换模块1231,适于如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
第二状态标识判断模块1232,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
第二光标移动模块1233,适于如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
优选的,所述滑动判断模块包括:
尾端判断模块,适于判断所述滑动事件是否为输入法键盘区域中向候选项尾端方向的滑动操作;如果所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足预设条件。
优选的,所述光标移动模块包括:
第二同步移动模块,适于根据滑动方向以及移动距离,同向控制光标在候选项中的 移动。
优选的,所述光标移动模块之后,还包括:
候选项光标滑动模式退出模块,适于如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
优选的,所述光标移动模块包括:
第一候选项移动判断模块,适于当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
第二候选项移动判断模块,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
优选的,所述光标移动模块包括:
高亮显示模块,适于将光标对应的候选项进行高亮显示。
优选的,所述光标移动模块之后还包括:
编辑串修正模块,适于根据光标移动后所在位置对应的候选项,修正对应的编辑串。
实施例十三
参照图13,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包括:
滑动监听模块1310,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
类型判断模块1320,适于如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型:
编辑串光标移动模块1330,适于如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
候选光标移动模块1340,适于如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
优选的,所述编辑串光标移动模块包括:
第一状态标识切换模块,适于如果所述滑动事件满足第一预设条件类型,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识
第一状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
第一光标移动模块,适于如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
优选的,所述候选光标移动模块包括:
第二状态标识切换模块,适于如果所述滑动事件满足第二预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
第二状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
第二光标移动模块,适于如果当前输入法的状态标识为第三状态标识,则根据所述 滑动事件移动光标在候选项中的位置。
优选的,所述类型判断模块包括:
首端判断模块,适于当判断所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足第一类型预设条件;
尾端判断模块,适于当判断所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足第二类型预设条件。
优选的,所述编辑串光标移动模块包括:
第一同向移动模块,适于根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
优选的,所述编辑串光标移动模块之后,还包括:
编辑串光标滑动模式退出模块,适于当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
优选的,所述编辑串光标移动模块之后,还包括:
光标确定模块,适于确定所述光标对应的按键子序列;
筛选序列接收模块,适于接收用户输入的筛选笔画序列;
筛选匹配模块,适于将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
调整模块,适于根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
优选的,所述候选光标确定模块包括:
光标位置判断模块,适于根据所述光标在拼音串中的第一位置,判断所述第一位置是否在符合拼音规则的拼音子串中;
第一按键确定模块,适于如果所述第一位置没在符合拼音规则的拼音子串中,则从所述第一位置之后的第一个符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列;
第二按键确定模块,适于如果所述第一位置在符合拼音规则的拼音子串中,则从第一位置所在的符合拼音规则的拼音子串开始,选择对应的按键子序列作为所述光标对应的按键子序列。
优选的,所述筛选匹配模块包括:
拼音串查找模块,适于查找与所述按键子序列对应的各种拼音子串;
初始候选项获取模块,适于由各拼音串获取相应的字和/或词,得到各初始候选项;
匹配模块,适于将所述筛选笔画序列,与各初始候选项的笔画序列进行匹配。
优选的,所述筛选匹配模块包括:
第一筛选匹配模块,适于将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
优选的,所述第一筛选匹配模块包括:
完整匹配模块,适于将所述筛选笔画序列与由每个初始候选项各字的完整笔画序列组成的第一笔画序列进行匹配;
和/或,首笔匹配模块,适于将所述筛选笔画序列与由每个初始候选项的各字的首个笔画组成的第一笔画序列相匹配。
优选的,在第一筛选匹配模块之前还包括:
第一笔画序列获取模块,适于针对每个初始候选项,从词库中获取每个初始候选项的第一笔画序列。
优选的,所述第一筛选匹配模块还包括:
纠错模块,适于当所述筛选笔画序列与所述初始候选项的第一笔画序列不完全匹配时,利用基于笔画的纠错模型判断所述用户输入的笔画序列与所述初始候选项的第一笔画序列匹配的概率;当所述匹配的概率大于阈值时,则判断所述筛选笔画序列与所述初始候选项的第一笔画序列匹配上。
优选的,还包括:
第一纠错模型构建模块,适于利用词组和/或句子中字词的二元或多元关系,构建所述基于笔画的纠错模型;
和/或,第二纠错模型构建模块,适于利用组成每个字的笔画之间的二元或者多元关系,构建所述基于笔画的纠错模型。
优选的,所述筛选序列接收模块包括:
分隔符接收模块,适于判断所述筛选笔画序列中是否存在分隔符;如果存在分隔符,则根据所述分隔符将用户输入的筛选笔画序列分隔为各筛选笔画子序列。
优选的,所述第一筛选匹配模块包括:
分隔匹配模块,适于以筛选笔画子序列为单位,按序将所述筛选笔画子序列与每个初始候选项中相应顺序上的字的目标笔画子序列进行匹配。
优选的,所述候选光标移动模块包括:
第二同步移动模块,适于根据滑动方向以及移动距离,同向控制光标在候选项中的移动。
优选的,所述候选光标移动模块之后,还包括:
候选项光标滑动模式退出模块,适于如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
优选的,所述候选光标移动模块包括:
第一候选项移动判断模块,适于当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
第二候选项移动判断模块,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
优选的,所述候选光标移动模块包括:
高亮显示模块,适于将光标对应的候选项进行高亮显示。
优选的,所述光标移动模块之后还包括:
编辑串修正模块,适于根据光标移动后所在位置对应的候选项,修正对应的编辑串。
实施例十四
参照图14,其示出了本发明的一种输入法光标操作装置的结构示意图,具体可以包 括:
滑动监听模块1410,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
类型判断模块1420,适于如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
编辑串光标移动模块1430,适于如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;具体包括:
第一状态标识切换模块1431,适于如果所述滑动事件满足第一预设条件类型,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识
第一状态标识判断模块1432,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
第一光标移动模块1433,适于如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置;
候选光标移动模块1440,适于如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动,具体包括:
第二状态标识切换模块1441,适于如果所述滑动事件满足第二预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
第二状态标识判断模块1442,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
第二光标移动模块1443,适于如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此 公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的输入法光标操作设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图15示出了可以实现根据本发明的一种输入法光标操作的终端设备。该终端设备传统上包括处理器1510和以存储器1520形式的计算机程序产品或者计算机可读介质。存储器1520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1520具有用于执行上述方法中的任何方法步骤的程序代码1531的存储空间1530。例如,用于程序代码的存储空间1530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图16所述的便携式或者固定存储单元。该存储单元可以具有与图15的终端设备中的存储器1520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1531’,即可以由例如诸如1510之类的处理器读取的代码,这些代码当由终端设备运行时,导致该终端设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多 修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (54)

  1. 一种输入法光标操作方法,包括:
    在输入法的常规文字候选模式,监听是否接收到滑动事件;
    如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
    如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
  2. 如权利要求1所述的方法,其特征在于,如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动包括:
    如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;
    当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
    如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
  3. 如权利要求1所述的方法,其特征在于,判断所述滑动事件是否满足预设条件包括:
    判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作;
    如果所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足预设条件。
  4. 如权利要求1所述的方法,其特征在于,所述根据滑动事件控制光标在编辑串中移动包括:
    根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
  5. 如权利要求1所述的方法,其特征在于,根据滑动事件控制光标在编辑串中移动之后,还包括:
    当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
  6. 如权利要求1所述的方法,其特征在于,根据滑动事件控制光标在编辑串中移动之后,还包括:
    确定所述光标对应的按键子序列;
    接收用户输入的筛选笔画序列;
    将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
    根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
  7. 如权利要求6所述的方法,其特征在于,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的笔画序列进行匹配,包括:
    将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
  8. 一种输入法光标操作方法,包括:
    在输入法的常规文字候选模式,监听是否接收到滑动事件;
    如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
    如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
  9. 如权利要求8所述的方法,其特征在于,如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动包括:
    如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
    当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
    如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
  10. 如权利要求8所述的方法,其特征在于,判断所述滑动事件是否满足预设条件包括:
    判断所述滑动事件是否为输入法键盘区域中向候选项尾端方向的滑动操作;
    如果所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足预设条件。
  11. 如权利要求8所述的方法,其特征在于,所述根据滑动事件控制光标在候选项中移动包括:
    根据滑动方向以及移动距离,同向控制光标在候选项中的移动。
  12. 如权利要求8所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动之后,还包括:
    如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
  13. 如权利要求8所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动包括:
    当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;
    如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
    当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选 项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;
    如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
  14. 如权利要求8所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动包括:
    将光标对应的候选项进行高亮显示。
  15. 如权利要求8所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动之后还包括:
    根据光标移动后所在位置对应的候选项,修正对应的编辑串。
  16. 一种输入法光标操作方法,包括:
    在输入法的常规文字候选模式,监听是否接收到滑动事件;
    如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
    如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
    如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
  17. 如权利要求16所述的方法,其特征在于,如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动包括:
    如果所述滑动事件满足第一预设条件类型,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;
    当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
    如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
  18. 如权利要求16所述的方法,其特征在于,如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动包括:
    如果所述滑动事件满足第二预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
    当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
    如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
  19. 如权利要求16所述的方法,其特征在于,判断所述滑动事件满足的预设条件类型包括:
    当判断所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足第一类型预设条件;
    当判断所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足第二类型预设条件。
  20. 如权利要求16所述的方法,其特征在于,
    所述根据滑动事件控制光标在编辑串中移动包括:根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置;
    所述根据滑动事件控制光标在候选项中移动包括:根据滑动方向以及移动距离,同向控制光标在候选项中的移动。
  21. 如权利要求16所述的方法,其特征在于,
    所述根据滑动事件控制光标在编辑串中移动之后,还包括:
    当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式;
    所述根据滑动事件控制光标在候选项中移动之后,还包括:
    如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
  22. 如权利要求16所述的方法,其特征在于,根据滑动事件控制光标在编辑串中移动之后,还包括:
    确定所述光标对应的按键子序列;
    接收用户输入的筛选笔画序列;
    将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
    根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
  23. 如权利要求22所述的方法,其特征在于,将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的笔画序列进行匹配,包括:
    将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
  24. 如权利要求16所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动包括:
    当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;
    如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
    当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候 选项;
    如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
  25. 如权利要求16所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动包括:
    将光标对应的候选项进行高亮显示。
  26. 如权利要求16所述的方法,其特征在于,根据滑动事件控制光标在候选项中移动之后还包括:
    根据光标移动后所在位置对应的候选项,修正对应的编辑串。
  27. 一种输入法光标操作的装置,包括:
    滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
    滑动判断模块,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
    光标移动模块,适于如果所述滑动事件满足预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动。
  28. 如权利要求27所述的装置,其特征在于,所述光标移动模块包括:
    第一状态标识切换模块,适于如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识;
    第一状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
    第一光标移动模块,适于如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
  29. 如权利要求27所述的装置,其特征在于,所述滑动判断模块包括:
    首端方向判断模块,适于判断所述滑动事件是否为输入法键盘区域中向编辑串首端方向的滑动操作;如果所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足预设条件。
  30. 如权利要求27所述的装置,其特征在于,所述光标移动模块包括:
    第一同向移动模块,适于根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置。
  31. 如权利要求27所述的装置,其特征在于,所述光标移动模块之后,还包括:
    编辑串光标滑动模式退出模块,适于当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式。
  32. 如权利要求27所述的装置,其特征在于,所述光标移动模块之后,还包括:
    光标确定模块,适于确定所述光标对应的按键子序列
    筛选序列接收模块,适于接收用户输入的筛选笔画序列;
    筛选匹配模块,适于将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
    调整模块,适于根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
  33. 如权利要求32所述的装置,其特征在于,所述筛选匹配模块包括:
    第一筛选匹配模块,适于将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
  34. 一种输入法光标操作的装置,包括:
    滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
    滑动判断模块,适于如果接收到滑动事件,则判断所述滑动事件是否满足预设条件;
    光标移动模块,适于如果所述滑动事件满足预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
  35. 如权利要求34所述的装置,其特征在于,所述光标移动模块包括:
    第二状态标识切换模块,适于如果所述滑动事件满足预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
    第二状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第三状态标识;
    第二光标移动模块,适于如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
  36. 如权利要求34所述的装置,其特征在于,所述滑动判断模块包括:
    尾端判断模块,适于判断所述滑动事件是否为输入法键盘区域中向候选项尾端方向的滑动操作;如果所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足预设条件。
  37. 如权利要求34所述的装置,其特征在于,所述光标移动模块包括:
    第二同步移动模块,适于根据滑动方向以及移动距离,同向控制光标在候选项中的移动。
  38. 如权利要求34所述的装置,其特征在于,所述光标移动模块之后,还包括:
    候选项光标滑动模式退出模块,适于如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
  39. 如权利要求34所述的方法,其特征在于,所述光标移动模块包括:
    第一候选项移动判断模块,适于当光标移动至候选栏中显示的最后一个 候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中显示的最后一个候选项是否为末尾候选项;如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
    第二候选项移动判断模块,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
  40. 如权利要求34所述的装置,其特征在于,所述光标移动模块包括:
    高亮显示模块,适于将光标对应的候选项进行高亮显示。
  41. 如权利要求34所述的装置,其特征在于,所述光标移动模块之后还包括:
    编辑串修正模块,适于根据光标移动后所在位置对应的候选项,修正对应的编辑串。
  42. 一种输入法光标操作的装置,包括:
    滑动监听模块,适于在输入法的常规文字候选模式,监听是否接收到滑动事件;
    类型判断模块,适于如果接收到滑动事件,则判断所述滑动事件满足的预设条件类型;
    编辑串光标移动模块,适于如果所述滑动事件满足第一类型预设条件,则进入编辑串光标滑动模式,根据滑动事件控制光标在编辑串中移动;
    候选光标移动模块,适于如果所述滑动事件满足第二类型预设条件,则进入候选项光标滑动模式,根据滑动事件控制光标在候选项中移动。
  43. 如权利要求42所述的装置,其特征在于,所述编辑串光标移动模块包括:
    第一状态标识切换模块,适于如果所述滑动事件满足第一预设条件类型,则将当前为常规文字候选模式的第一状态标识,修改为编辑串光标滑动模式的第二状态标识
    第一状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输入法的状态标识是否为第二状态标识;
    第一光标移动模块,适于如果当前输入法的状态标识为第二状态标识,则根据所述滑动事件移动光标在编辑串中的位置。
  44. 如权利要求42所述的装置,其特征在于,所述候选光标移动模块包括:
    第二状态标识切换模块,适于如果所述滑动事件满足第二预设条件,则将当前为常规文字候选模式的第一状态标识,修改为候选项光标滑动模式的第三状态标识;
    第二状态标识判断模块,适于当继续接收到滑动事件之后,判断当前输 入法的状态标识是否为第三状态标识;
    第二光标移动模块,适于如果当前输入法的状态标识为第三状态标识,则根据所述滑动事件移动光标在候选项中的位置。
  45. 如权利要求42所述的装置,其特征在于,所述类型判断模块包括:
    首端判断模块,适于当判断所述滑动事件为输入法键盘区域中向编辑串首端方向的滑动操作,则判断所述滑动事件满足第一类型预设条件;
    尾端判断模块,适于当判断所述滑动事件为输入法键盘区域中向候选项尾端方向的滑动操作,则判断所述滑动事件满足第二类型预设条件。
  46. 如权利要求42所述的装置,其特征在于,所述编辑串光标移动模块包括:
    第一同向移动模块,适于根据滑动方向以及移动距离,同向控制所述光标在编辑串中的位置;
    所述候选光标移动模块包括:
    第二同步移动模块,适于根据滑动方向以及移动距离,同向控制光标在候选项中的移动。
  47. 如权利要求42所述的装置,其特征在于,
    所述编辑串光标移动模块之后,还包括:
    编辑串光标滑动模式退出模块,适于当所述光标在编辑串尾端时,如果再次接收到用户输入的字符序列,则退出所述编辑串光标滑动模式;
    所述候选光标移动模块之后,还包括:
    候选项光标滑动模式退出模块,适于如果再次接收到用户输入的字符序列,则退出所述候选项光标滑动模式。
  48. 如权利要求42所述的装置,其特征在于,所述编辑串光标移动模块之后,还包括:
    光标确定模块,适于确定所述光标对应的按键子序列;
    筛选序列接收模块,适于接收用户输入的筛选笔画序列;
    筛选匹配模块,适于将所述筛选笔画序列,与所述按键子序列对应的各初始候选项的第一笔画序列进行匹配;
    调整模块,适于根据匹配到的各初始候选项,修正所述按键子序列以及之后的按键子序列对应的拼音子串,以及修正对应的上屏候选项。
  49. 如权利要求48所述的装置,其特征在于,所述筛选匹配模块包括:
    第一筛选匹配模块,适于将用户输入的筛选笔画序列,与由每个初始候选项的各字的至少第一个笔画所组成的第一笔画序列进行匹配。
  50. 如权利要求42所述的装置,其特征在于,所述候选光标移动模块包括:
    第一候选项移动判断模块,适于当光标移动至候选栏中显示的最后一个候选项时,如果继续接收到向候选项尾端的滑动事件,则判断所述候选栏中 显示的最后一个候选项是否为末尾候选项;如果所述候选栏中显示的最后一个候选项不为末尾候选项,则将候选栏中展示的各候选项向首端顺移;
    第二候选项移动判断模块,当光标移动至候选栏中显示的第一个候选项时,如果继续接收到向候选项首端的滑动事件,则判断所述候选栏中显示的第一个候选项是否为首位候选项;如果所述候选栏中显示的第一个候选项不为首位候选项,则将候选栏中展示的各候选项向尾端顺移。
  51. 如权利要求42所述的装置,其特征在于,所述候选光标移动模块包括:
    高亮显示模块,适于将光标对应的候选项进行高亮显示。
  52. 如权利要求42所述的装置,其特征在于,所述光标移动模块之后还包括:
    编辑串修正模块,适于根据光标移动后所在位置对应的候选项,修正对应的编辑串。
  53. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端设备上运行时,导致所述终端设备执行根据权利要求1-26中的任一个所述的输入法光标操作方法。
  54. 一种计算机可读介质,其中存储了如权利要求53所述的计算机程序。
PCT/CN2015/094841 2014-12-30 2015-11-17 输入法光标操作方法和装置 WO2016107316A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410851035.6A CN104571863A (zh) 2014-12-30 2014-12-30 输入法光标操作方法和装置
CN201410851035.6 2014-12-30

Publications (1)

Publication Number Publication Date
WO2016107316A1 true WO2016107316A1 (zh) 2016-07-07

Family

ID=53088070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094841 WO2016107316A1 (zh) 2014-12-30 2015-11-17 输入法光标操作方法和装置

Country Status (2)

Country Link
CN (1) CN104571863A (zh)
WO (1) WO2016107316A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814734A (zh) * 2019-01-15 2019-05-28 上海趣虫科技有限公司 一种修正汉语拼音输入的方法及处理终端
CN111949139A (zh) * 2019-05-16 2020-11-17 北京搜狗科技发展有限公司 一种输入方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571863A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 输入法光标操作方法和装置
CN107291362A (zh) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 一种信息输入方法、装置和智能终端
CN106502545B (zh) * 2016-10-31 2019-07-26 维沃移动通信有限公司 一种滑动控件的操作方法和移动终端
CN106648333B (zh) * 2016-12-15 2019-09-24 天脉聚源(北京)传媒科技有限公司 一种界面处理方法及装置
CN108536312A (zh) * 2018-03-14 2018-09-14 珠海市魅族科技有限公司 候选字符控制方法及装置、计算机装置和可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331A (zh) * 2008-08-28 2010-03-03 北京搜狗科技发展有限公司 一种字词输入的方法和输入法系统
CN103543947A (zh) * 2013-10-28 2014-01-29 北京三星通信技术研究有限公司 在具有触摸屏的电子设备上修正输入内容的方法及系统
CN103941979A (zh) * 2014-04-10 2014-07-23 北京搜狗科技发展有限公司 一种在移动设备中输入文字的方法和装置
CN104199607A (zh) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 一种基于输入法的候选选择方法和装置
CN104571863A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 输入法光标操作方法和装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9355090B2 (en) * 2008-05-30 2016-05-31 Apple Inc. Identification of candidate characters for text input
CN101876879B (zh) * 2009-04-29 2012-09-19 深圳富泰宏精密工业有限公司 双轴式滑动界面应用系统及方法
CN102081464A (zh) * 2009-11-28 2011-06-01 段起阳 一种用选词模式选择候选词的输入法
CN103026318B (zh) * 2010-05-21 2016-08-17 谷歌公司 输入法编辑器
CN102541410A (zh) * 2010-12-26 2012-07-04 上海量明科技发展有限公司 滑动型输入操作界面的实现方法及系统
JP5361913B2 (ja) * 2011-01-25 2013-12-04 株式会社ソニー・コンピュータエンタテインメント 入力装置、入力方法及びコンピュータプログラム
CN107656693A (zh) * 2013-02-28 2018-02-02 联想(北京)有限公司 一种在触摸屏中确定光标位置的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331A (zh) * 2008-08-28 2010-03-03 北京搜狗科技发展有限公司 一种字词输入的方法和输入法系统
CN103543947A (zh) * 2013-10-28 2014-01-29 北京三星通信技术研究有限公司 在具有触摸屏的电子设备上修正输入内容的方法及系统
CN103941979A (zh) * 2014-04-10 2014-07-23 北京搜狗科技发展有限公司 一种在移动设备中输入文字的方法和装置
CN104199607A (zh) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 一种基于输入法的候选选择方法和装置
CN104571863A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 输入法光标操作方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814734A (zh) * 2019-01-15 2019-05-28 上海趣虫科技有限公司 一种修正汉语拼音输入的方法及处理终端
CN109814734B (zh) * 2019-01-15 2022-04-15 上海趣虫科技有限公司 一种修正汉语拼音输入的方法及处理终端
CN111949139A (zh) * 2019-05-16 2020-11-17 北京搜狗科技发展有限公司 一种输入方法及装置
CN111949139B (zh) * 2019-05-16 2024-03-08 北京搜狗科技发展有限公司 一种输入方法及装置

Also Published As

Publication number Publication date
CN104571863A (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2016107316A1 (zh) 输入法光标操作方法和装置
WO2016107317A1 (zh) 输入法光标操作方法和装置
WO2016107344A1 (zh) 对输入法的上屏候选项进行筛选的方法和装置
US9508028B2 (en) Converting text strings into number strings, such as via a touchscreen input
KR101586890B1 (ko) 입력 처리 방법 및 장치
JP2005196140A (ja) テキストを入力するための方法
CN107544684B (zh) 一种候选词显示方法及装置
WO2017133697A1 (zh) 二次输入文本的方法和装置
WO2014012485A1 (zh) 一种基于多词连续输入的字词识别方法、装置和系统
EP2897055A1 (en) Information processing device, information processing method, and program
JP2013206141A (ja) 文字入力装置、文字入力方法、及び文字入力プログラム
CN107797676B (zh) 一种单字输入方法及装置
WO2016131425A1 (zh) 滑行输入方法及装置
CN104571584B (zh) 文字输入方法和装置
CN105843414A (zh) 输入法的输入修正方法和输入法装置
US20130073572A1 (en) Method of learning character segments from received text, and associated handheld electronic device
WO2016119549A1 (zh) 一种基于输入的候选文本的加载方法和装置
US20150278176A1 (en) Providing for text entry by a user of a computing device
KR101651909B1 (ko) 음성 인식 텍스트 수정 방법 및 이 방법을 구현한 장치
WO2013145505A1 (ja) 情報提示装置、情報提示方法、及び情報提示用プログラム
KR101727953B1 (ko) 문자를 번역하는 방법 및 그 장치
CA2658586C (en) Learning character segments from received text
US20220261092A1 (en) Method and device for inputting text on a keyboard
US10970481B2 (en) Intelligently deleting back to a typographical error
CN109271094B (zh) 一种文本编辑的方法、装置及设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15874996

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15874996

Country of ref document: EP

Kind code of ref document: A1