A method for specifying a fixed value for a coded string in an input method
By specifying the cured value for the code string in the input method, users are allowed to accept and reject candidates locally, solving the problems of low space utilization and cumbersome single-word search and correction process in the prior art, achieving more efficient Enter experience.
Patent Information
- Application Number
- CN201710154161.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-03-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2037-03-15
AI Technical Summary
In the existing Chinese input method, users can only accept or reject candidates as a whole, resulting in low space utilization, difficult to find and cumbersome process of single words.
The method of specifying the cured value for the encoding string in the input method allows users to partially accept and reject the content in the candidates, divide the cured code segment and the active code segment, generate a candidate list, and realize the candidates through segmentation instructions and key operations. Flexible segmentation of items.
Improve space utilization, simplify the single-word selection and defect correction process, making the input method more convenient and efficient.
Smart Images

Figure CN107122061B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information input, and particularly to a method for specifying a fixed value for an encoding string in an input method. Background Art
[0002] The input process of a Chinese input method generally can be divided into two links. The first link is to generate an encoding string by user operation, and the second link is to generate a candidate list and let the user select. In the present invention, the fixed value refers to the target content corresponding to the encoding in the encoding string and specified by the user to be output to the application program, that is, the content accepted by the user in the candidate items.
[0003] In the prior art, the user can only accept or reject each candidate item as a whole, so there are some defects as follows:
[0004] First, the space utilization rate is low. For example, for the encoding string "shurufalingyu", assuming the first three candidate items given are "1. Input method field", "2. Input method", and "3. Input" in sequence, then candidate item 1 actually already contains the content of candidate items 2 and 3, but the latter two contents are still given separately as candidate items, occupying valuable display space.
[0005] Second, single characters are not easy to find. The candidate list generally displays short sentences and phrases first, and single characters often appear several pages later. In the above example, although the character "shu" appears in the first candidate item, the user cannot directly use it, but often needs to flip back several pages to find the candidate item exclusive to this single character.
[0006] Third, the process of correcting defects is cumbersome. Suppose the target text of the user is "input valve field", which is only one character different from the candidate item "1. Input method field". Generally, there are two methods at this time. One is to select the candidate item "1. Input method field", then manually delete the character "valve", manually input the pinyin "fa" again and find the character "valve". The other is to first select the candidate item "3. Input", and the system regenerates the remaining encoding "falingyu" to generate candidate items for the user to select. The former method requires manually inputting the pinyin "ling" again, and in the latter method, "falingyu" needs to find the text "valve field" again. Therefore, no matter which method is used, it requires more additional operations and the process is cumbersome.
[0007] Therefore, it is urgent to find a new method to solve the above problems. Summary of the Invention
[0008] In view of the above problems, the present invention proposes a method for specifying a fixed value for an encoding string in an input method, allowing the user to partially accept the content in the candidate item and reject the remaining content, making the process of selecting the fixed value more flexible and convenient.
[0009] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0010] A method for specifying a fixed value for a code string in an input method, wherein the fixed value refers to a target content that corresponds to a code in the code string and is specified by a user to be output to an application program, comprising: step A, receiving a code string input by a user; step B, classifying the code in the code string that has a fixed value as a fixed code segment, and classifying the code without a fixed value as an active code segment; step C, generating a candidate item list according to the current first active code segment and presenting it to the user; step D, receiving an instruction for splitting a single candidate item into x acceptance value segments and y rejection value segments, wherein x≥1, y≥0, the split candidate item is recorded as a raw material option, when y=0, the instruction is recorded as a full acceptance instruction, and when y≠0, the instruction is recorded as a split instruction; step E, specifying the content of the acceptance value segment in step D as the fixed value of the corresponding code in the code string; if there is still a code without a fixed value after step E, re-execute steps B to E until all codes have fixed values; and at least once in the process of executing steps B to E, the instruction received in step D is a split instruction.
[0011] The present invention allows the user to partially accept the content in the candidate items and reject the rest of the content in the candidate items. For the rejected content, the system will regenerate the corresponding candidate items for the user to choose, which brings many beneficial effects. First, the space utilization rate is improved. For example, for the code string "shurufalingyu", if there is already a candidate item "input method field" in the candidate list, then the "input method", "input" and other contents that are already included in the aforementioned candidate items do not need to be listed separately as candidate items. Second, it is more convenient to search for single words. For example, the first word that the user needs to input is "input" and the subsequent text is not "enter the law field" or is not completely consistent. At this time, the user can directly accept the first word in the "input method field" without turning the page to search. Third, it is very convenient to correct defects. The user can partially accept based on the existing candidate items to quickly obtain the required results.
[0012] Preferably, the execution step of the segmentation instruction includes: executing y-1 additional selection instruction units, the additional selection instruction units are used to select local text in the raw material options; executing the ending instruction unit, which is used to select local text in the raw material options and end the segmentation instruction; after the instruction is executed, the text selected by each instruction unit is divided into a rejection value segment, and the remaining text in the raw material option is segmented with the rejection value segment as the boundary, and each segment is divided into an acceptance value segment.
[0013] The segmentation instruction consists of an add-select instruction unit and a tail instruction unit, which allows the user to easily split the candidate items into multiple value segments, and at the same time allows the system to easily determine whether the user's operation has ended. When receiving the add-select instruction unit, the system will wait for the user to continue to select until the tail instruction unit is received. In particular, when the user only needs one rejection value segment, that is, y=1, y-1=0, and the tail instruction unit is directly executed without executing the add-select instruction unit.
[0014] Preferably, the method further comprises the following step: assigning an index key on the keyboard to each candidate item in the candidate item list.
[0015] Setting index keys on a physical keyboard can facilitate users to operate on specific candidate items, such as using numeric keys as index keys.
[0016] Preferably, the execution steps of the split instruction include: receiving a long press signal of an index key pointing to a candidate item, and the long press time is ≥ a preset first time threshold T1; after the instruction is executed, the first character of the candidate item pointed to by the index key is classified as an acceptance value segment, and all remaining characters of the candidate item are classified as rejection value segments.
[0017] It is a very common situation that only the first word is accepted when accepting partial content of a candidate item. This can be quickly achieved by long pressing the corresponding index key for more than a certain period of time, so that the user does not need to turn back pages to find a single word.
[0018] Preferably, an accept key, a reject key and an end reject key are designated on the keyboard, and the execution steps of the segmentation instruction include: step S1, receiving a press signal of an index key pointing to a candidate item, and starting step S2 within a preset second time threshold T2; step S2, receiving several keystroke signals, the keystroke signals starting with several accept keys or reject keys, and ending with m end reject keys, where m≥0; step S3, receiving a release signal of the index key; for the i-th character in the raw material option, if the i-th tap in step S2 is an accept key, the character is classified into the accept value segment, and if it is a reject key, the character is classified into the reject value segment; the m characters at the end of the raw material option are classified as the reject value segment; if there are any remaining characters in the raw material option at this time, the remaining characters are classified as the value segment opposite to the previous value segment.
[0019] The above gives a method for quickly accepting the first character of a candidate item. For a more general situation, the user can implement it as needed by the following operations: press the index key, and according to the content of the candidate item, when encountering accepted characters, press the acceptance key corresponding to the number of characters, and when encountering rejected characters, press the rejection key corresponding to the number of times, and finally release the index key; in particular, if the end of the candidate item is a rejection value segment, the key operation of the rejection value segment and the immediately preceding acceptance value segment can be changed to directly pressing the end rejection key corresponding to the number of characters of the rejection value segment. In the operation, after pressing the index key, the subsequent operation needs to be started within a certain period of time, otherwise it will conflict with the operation of accepting the first character; after the instruction is executed, the system will segment the candidate item according to the type and number of keys, where the "opposite value segment" of the rejection value segment refers to the acceptance value segment, and the "opposite value segment" of the acceptance value segment refers to the rejection value segment. The method is implemented by combining keys with different functions, and can be flexibly operated according to different segmentation requirements. The order and number of keys are determined by the acceptance or rejection of the candidate item, which is intuitive and logically clear.
[0020] Preferably, the accept key is the space bar and the terminal reject key is the Shift key.
[0021] The space bar and the Shift key are two keys that are relatively convenient to operate. Using them as the accept key and the end rejection key helps ensure operational efficiency and is easy to understand.
[0022] Preferably, the index key of each candidate item is a numeric key, and the rejection key is any other key.
[0023] Numeric keys are very suitable for use as index keys because they are numerous, and the rejection keys can be used by keys other than the index key, the accept key, and the terminal rejection key.
[0024] Preferably, the index keys of each candidate item are as follows: the first candidate item: letter key A; the second candidate item: letter key S; the third candidate item: letter key D; the fourth candidate item: letter key F; the fifth candidate item: letter key G; the sixth candidate item: letter key H; the seventh candidate item: letter key J; the eighth candidate item: letter key K; the ninth candidate item: letter key L; the rejection key is any other key.
[0025] Compared to using number keys as index keys, using these letter keys is easier to locate and operate, so that the fingers do not need to cross a long distance like searching for number keys, and because the index keys are operated by long presses, they will not be confused with letter input.
[0026] The method of the present invention specifies a fixed value for the code by locally accepting specific candidate items, which is intuitive and fast and has the following advantages:
[0027] First, the space utilization rate is high. There is no need to set up additional candidates for the text contained in the front of a candidate, which fully utilizes the existing resources and display space and reduces the number of candidates.
[0028] Second, word selection is quick, reducing the chance of turning back pages.
[0029] Third, improve the utilization value of candidates. If there are candidates with a small number of defects, they can be partially accepted and corrected to achieve the goal of making full use of the existing candidates. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flow chart of the steps of the present invention;
[0031] Figure 2 is a schematic diagram of step C in the present invention;
[0032] Figure 3 This is a user interface diagram in step D scenario 1 of the present invention;
[0033] Figure 4 This is a user interface diagram in step D scenario 2 of the present invention;
[0034] Figure 5 This is a user interface diagram in step D scenario 2 of the present invention;
[0035] Figure 6 This is a user interface diagram in step D scenario 2 of the present invention;
[0036] Figure 7 It is a user interface schematic diagram in step D scenario 2 of the present invention. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0038] Figure 1 is a flow chart of the steps of the present invention. In the process, if there are still codes without fixed values after step E, steps B to E are executed again until all codes have fixed values; and at least once in the process of executing steps B to E, the instruction received in step D is a split instruction. Each step is described one by one as follows.
[0039] Step A, receiving a code string input by a user;
[0040] The coding string mentioned in the present invention refers to the original information input by the user, and its form depends on the specific input method, which can be a pinyin code, a stroke code, a Wubi code, etc. For example, in the full-keyboard pinyin input method, the pinyin string "guojishoujiscfx" entered by the user to obtain the text "International Mobile Phone Market Analysis" is a coding string, and in the nine-square input method, the pinyin string "wxyz-mno" entered to obtain the text "I" is a coding string. The following examples are all explained using the full-keyboard pinyin input method as an example.
[0041] Step B, classifying the codes with fixed values in the code string as fixed code segments, and classifying the codes without fixed values as active code segments;
[0042] The fixed value in the present invention refers to the target content that corresponds to the code in the code string and is specified by the user to be output to the application, that is, the content accepted by the user among the candidate items. For example, for the code "shili", the system generates many candidate items such as "instance", "example", and "case". If the user selects "example" among them, the fixed value of the code "shili" is "example".
[0043] exist Figure 1 In the process, if there are still codes without fixed values after step E, steps B to E must be executed again. Therefore, step B has two sources. The first source is directly coming from step A to this step. At this time, the user has not yet made a selection operation, so all codes in the code string have no fixed values. According to the division rules, the entire code string is now an active code segment; the second source is returning from step E to this step. At this time, the code string needs to be re-divided into code segments based on whether there are fixed values. It should be noted that since the jump from E to B may occur multiple times, the code segment division may also occur multiple times. Each time the division is performed, the segmentation result obtained by the previous jump should be discarded, and a new division should be performed based on the standard of whether there are fixed values.
[0044] For example, if the user's code string "guojishoujiscfx" is received in step A, it is obvious that the entire code string is an active code segment at this time. Subsequently, through steps B to E, a fixed value "international" is assigned to "guoji", and a fixed value "market" is assigned to "sc". The remaining codes have no fixed values. In this case, the process should return to step B and redivide the code segments. The result of the redivision is: the codes "guoji" and "sc" with fixed values are two fixed code segments respectively, and the codes "shouji" and "fx" without fixed values are two active code segments respectively. It should be pointed out that the divided code segments should be fully extended to both sides. For example, the code "shouji" is an active code segment at this time, but "shou" and "ji" are not active code segments.
[0045] Step C: Generate a candidate list based on the current first active code segment and present it to the user;
[0046] Using the previous example, there are two active code segments, "shouji" and "fx". "shouji" is the first active code segment, so a candidate list is generated based on "shouji", such as Figure 2 shown.
[0047] Step D, receiving an instruction for dividing a single candidate item into x acceptance value segments and y rejection value segments, where x≥1, y≥0, the divided candidate item is recorded as a raw material option, when y=0, the instruction is recorded as a full acceptance instruction, and when y≠0, the instruction is recorded as a division instruction;
[0048] In this step, the full acceptance instruction and the selection instruction in the prior art have the same purpose, that is, to accept the content of a candidate item as a whole. The full acceptance instruction can be operated in the existing way, such as clicking the target candidate item on the touch screen or tapping the corresponding number keys on the physical keyboard, or a special method can be used, such as by clicking the last character of the target candidate item or the blank space to its right on the touch screen. The advantage of limiting the operation area of the full acceptance instruction is that more abundant segmentation instructions can be arranged.
[0049] The split instruction is used to accept partial content in the candidate items and reject the rest of the content. The split instruction can be implemented in different ways according to different usage scenarios, which are not limited in the present invention. Some specific implementations are given below:
[0050] Scenario 1: On a desktop computer, the initial code string is "guojishoujiscfx", and the entire code string is an active code segment, such as Figure 3 As shown, the following operations are performed on candidate 1: first hold down the Ctrl key, then use the cursor to select the word "mobile phone" in the candidate, then use the cursor to select the word "analysis", and then release the Ctrl key. The above operation is a complete segmentation instruction example. The segmentation result of this instruction is that the selected words "mobile phone" and "analysis" are respectively used as two rejection value segments, and the remaining words "international" and "market" are respectively used as two acceptance value segments.
[0051] In particular, when the user needs to reject the content at the end of the candidate, the user can use the cursor to click the space before the text instead of swiping to select the text. For example, in the above process, the next rejection value segment "analysis" can be selected by swiping the cursor, and can also be achieved by clicking the space between "field" and "points". In addition, when the user needs to reject only one value segment, there is no need to hold down the Ctrl key, and the cursor can be directly swiped or clicked.
[0052] In Scenario 2, on a touch-screen smartphone, the segmentation instruction consists of several selection instruction units and a termination instruction unit. Each instruction unit is used to divide the selected text in the raw material options into a rejection value segment, and the termination instruction unit is also used to end the segmentation instruction.
[0053] Take Figure 4 as an example. Initially, the coding string is "guojishoujiscfx", and the entire coding string is an active code segment. At this time, the following operations are performed:
[0054] (1) Swipe from left to right across the text "mobile phone" in the first candidate item on the touch screen. The selected content will be displayed on the user interface during the swiping process. If a single character is long-pressed, that single character will be selected and also displayed on the user interface.
[0055] (2) If the selected content does not match the user's expectation, it can be corrected in the following ways: If the end point of the selected content does not match the user's expectation, move the finger left or right to change the end position of the selection area; if the start point of the selected content does not match the user's expectation, first swipe up. At this time, the active object is converted to the start point of the selection area. For example, after swiping up in Figure 4 , the user interface becomes as shown in Figure 5 , and then swipe the finger left or right to change the start position of the selection area.
[0056] (3) When the selected text meets the user's expectation, the user can directly lift the finger, and the segmentation instruction ends; if the user still needs to select another segment of text and does not want to end, the user can swipe down a certain distance and then lift the finger. At this time, the system confirms the previous selection content and waits for the user's new selection operation. For example, after swiping down and lifting the finger in Figure 4 or Figure 5 , the user interface becomes as shown in Figure 6 , and the user can perform additional selection in the same operation manner.
[0057] In the above operations, the operation of swiping down and lifting the finger after selecting text is the selection instruction unit, and the operation of directly lifting the finger after selecting text is the termination instruction unit. The termination instruction unit is used to end the segmentation instruction.
[0058] Specifically, when the user needs to reject the content at the end of the candidate item, a simplified operation method can be adopted. For example, in Figure 7 , if the user needs to accept the first two characters "international" in candidate item 1 and reject the remaining text, the user can swipe down a certain distance from the first rejected character, that is, the character "hand", and then let go. This operation method is intuitive and vivid, and appropriate prompts can be given on the user interface during the swiping down process. For example, the rejected text "mobile phone market analysis" is displayed in gray.
[0059] In this scenario, the splitting instruction consists of several additional selection instruction units and a finishing instruction unit. The additional selection instruction unit is solely used to select local text, and the finishing instruction unit is used to end the instruction while selecting the text, thereby ensuring good operability and logical differentiation on a touchscreen mobile phone.
[0060] Scenario Three, on a desktop computer, initially the coding string is "guojishoujiscfx", and the entire coding string is an active code segment. As Figure 3 shown, the following operations are performed at this time: Hold down the number key 1 without releasing it, then tap the space bar 2 times, tap the letter key J once, tap the Shift key 2 times, and release the number key 1. The aforementioned operations are an example of a complete splitting instruction, and the specific meanings are as follows: The number key is the index key, the number key 1 points to candidate item 1, the space bar is the acceptance key, the letter key J is the rejection key, and the Shift key is the end rejection key;
[0061] (1) First, hold down the number key 1 without releasing it, indicating that the splitting of candidate item 1 will be performed next.
[0062] (2) Tap the space bar 2 times, indicating the acceptance of the first 2 characters "国际".
[0063] (3) Tap the letter key J once, indicating the rejection of the subsequent 1 character "手".
[0064] (4) Tap the Shift key 2 times, indicating the rejection of the last 2 characters "分析".
[0065] (5) Releasing the number key 1 indicates the end of the instruction. At this time, there is still "机市场" that has not been designated, so it is classified as a value segment opposite to the previous value segment. Among them, the "opposite value segment" to the rejection value segment refers to the acceptance value segment, and the "opposite value segment" to the acceptance value segment refers to the rejection value segment. Since the previous character "手" is the rejection value segment, "机市场" should be classified as the acceptance value segment.
[0066] The present invention does not limit the positions of the index key, acceptance key, rejection key, and end rejection key on the keyboard. It can be agreed upon in advance. The above example gives a relatively optimal solution. In addition, the letter keys A, S, D, F, G, H, J, K, L can be used to replace the number keys 1 to 9 as the index key, and the rejection key can be any other key.
[0067] In addition, if it is necessary to accept the first character in a certain candidate item and reject the remaining characters, there is also the following simplified operation method: Hold down the corresponding index key and the duration is greater than the preset time threshold T. Obviously, in the aforementioned example, after pressing the index key in step (1), the operation of tapping the space bar in step (2) needs to be started within the time T, otherwise it conflicts with the simplified operation method of accepting the first character.
[0068] Step E: Designate the content of the accepted value segment in Step D as the固化 value of the corresponding code in the code string;
[0069] In terms of function, Step D divides a candidate item into an accepted value segment and a rejected value segment, while this step designates the accepted value segment in Step D to the corresponding code, that is, establishes the connection between the text and the code. Continuing the example of Scenario 1 in Step D above, after turning to this step, "国际" should be designated as the固化 value of "guoji" in the code, and "市场" as the固化 value of "sc", and the codes "shouji" and "fx" have no固化 values.
[0070] If there are still codes without固化 values after Step E, re-execute Steps B to E until all codes have固化 values. Continuing the above example, since the codes "shouji" and "fx" have no固化 values, it is necessary to return to Step B and operate according to the same rules until all codes are designated with固化 values.
[0071] The key point of the present invention is to locally accept the content of the candidate item. Therefore, at least once during the execution of Steps B to E, the selection instruction in Step D is a segmentation instruction, that is, when all codes in the code string are designated with固化 values, there is at least one segmentation instruction in the whole operation process. In addition, the present invention only involves how to designate固化 values for the codes, and the present invention does not involve how to output to the application program after all codes have固化 values.
[0072] It should be particularly noted that the present invention does not limit the specific content in the candidate item list. For example, for the code string "guojishoujiscfx", the prior art generally lists "国际手机市场分析", "国际手机市场", "国际" as three separate candidate items. In the foregoing embodiment of the present invention, only "国际手机市场分析" is listed, and the latter two are not listed to save space and improve efficiency. However, in fact, the present invention also allows the latter two candidate items to be listed separately to provide a richer experience or function.
[0073] The above detailed description is a specific description of the feasible embodiments of the present invention. This embodiment is not intended to limit the patent scope of the present invention. Any equivalent implementation or change made without departing from the present invention should be included in the patent scope of this case.
Claims
1. A method for specifying a fixed value for a code string in an input method, wherein the fixed value refers to a target content corresponding to the code in the code string and specified by the user to be output to an application program, It is characterized in that include: Step A, receiving a code string input by a user; Step B, classifying the codes with fixed values in the code string as fixed code segments, and classifying the codes without fixed values as active code segments; Step C: Generate a candidate list based on the current first active code segment and present it to the user; Step D, receiving an instruction for dividing a single candidate item into x acceptance value segments and y rejection value segments, where x≥1, y≥0, the divided candidate item is recorded as a raw material option, when y=0, the instruction is recorded as a full acceptance instruction, and when y≠0, the instruction is recorded as a division instruction; Step E, specifying the content of the accepted value segment in step D as the fixed value of the corresponding code in the code string; If there are still codes without fixed values after step E, then steps B to E are executed again until all codes have fixed values; and at least once during the execution of steps B to E, the instruction received in step D is a split instruction; Wherein, when y≠0, the execution steps of the split instruction include: Execute the add-select command unit y-1 times, the add-select command unit is used to select a local text in the raw material option. When y=1, the add-select command unit does not need to be executed. The operation of the add-select command unit is to long press or horizontally swipe on the local text of the raw material option, then swipe down a certain distance and lift the finger. Long press is used to select the corresponding single text, and horizontal swipe is used to select the corresponding single or multiple texts. The execution end instruction unit is used to select a local character in the raw material option and end the segmentation instruction; the operation of the end instruction unit is to long press or horizontally swipe or directly stroke down on the local character of the raw material option, and then directly lift the finger; long press is used to select the corresponding single character, horizontal swipe is used to select the corresponding single or multiple characters, and stroke down is used to select all characters from the corresponding character to the end; After the instruction is executed, the text selected by each instruction unit is divided into a rejection value segment, and the remaining text in the raw material option is segmented based on the rejection value segment, and each segment is divided into an acceptance value segment.
2. The method for specifying a fixed value for a code string in an input method according to claim 1, It is characterized in that For the additional selection command unit or the finalization command unit, during long pressing or horizontal swiping on the raw material option: If the end point of the selected content does not match the user's expectations, continue to swipe left and right to change the end point of the selection. If the starting point of the selected content does not match the user's expectations, first swipe upward to convert the active end of the selection to the starting point, and then swipe left and right to change the starting point of the selection.
Citation Information
Patent Citations
Character and phrase input method and input method system
CN101661331A
Input method and device
CN102375555A
Input Method Editor Providing Language Assistance
US20160196150A1
