Chinese input method and electronic device
By generating candidate input methods and receiving gesture inputs, and using filtering criteria such as tone, stroke count, and pinyin to correct candidate input methods, the problem of high homonym rate in existing Chinese input methods is solved, thus improving input efficiency.
Patent Information
- Application Number
- CN202211494818.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-26
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-11-26
AI Technical Summary
Existing Chinese input methods have a high rate of homophones when using Pinyin input, resulting in low input efficiency. In particular, the use of abbreviated Pinyin, full Pinyin, and the nine-key keyboard is difficult, and the mapping relationship of the double Pinyin keyboard is complex and difficult to remember.
By generating candidate text and receiving the target user's gestures, the system identifies filtering criteria, modifies candidate text based on gestures, and selects target text from the database using filtering criteria such as tone, stroke count, pinyin, and structure.
It reduces the rate of duplicate characters, improves text input efficiency, and allows users to quickly obtain the desired text through simple gesture operations.
Smart Images

Figure CN116149486B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification relates to the technical field of input method, and particularly relates to a Chinese input method and an electronic device. BACKGROUND
[0002] With the rapid development of Internet technology, users have more and more opportunities to use Internet devices for communication, and therefore have more and more input requirements for input methods. The input method in the prior art has low input efficiency when inputting Chinese characters using pinyin. When inputting using simple pinyin (inputting the first letter of a Chinese character), there are many words, phrases, and sentences with the same first letter, resulting in many output results with the same code. The user needs to spend a lot of time to filter. For example, when trying to get "introduction", the user inputs "js" using simple pinyin, and many words such as "teacher", "family", "construction", and "metal" may appear. The user also needs to filter from a large number of words with the same code, which is low in efficiency. When inputting using full pinyin (inputting all the pinyin of a Chinese character), although the number of words with the same code is less than that of simple pinyin, there are still many words, phrases, and sentences with the same pinyin, resulting in many words with the same code. For example, when trying to get "count", the user inputs "jishu" using full pinyin, and many words such as "base", "technology", and "odd" may appear. The user also needs to flip the page to filter. Moreover, full pinyin needs to input all the letters of the pinyin, which takes a long time and is not efficient. For a nine-grid keyboard, because multiple letters share one keyboard, the number of words with the same code is higher, and the input efficiency is lower. For other input methods, such as a double-pinyin keyboard (the vowels and consonants are mapped to different letters on the keyboard), the mapping relationship is complex and difficult to remember, which makes it difficult to use and reduces the input efficiency.
[0003] Therefore, it is necessary to provide a Chinese input method and an electronic device that is simple to use and has higher input efficiency. SUMMARY
[0004] The present specification provides a Chinese input method and an electronic device that is simple to use and has higher input efficiency.
[0005] In a first aspect, the present specification provides a Chinese input method, including: generating and displaying at least one candidate corresponding to a string input by a target user in response to the string; obtaining a target gesture operation performed by the target user on a target candidate, the at least one candidate including the target candidate; identifying the target gesture operation to determine a target filtering condition corresponding to the target gesture operation; and correcting the target candidate based on the target filtering condition, and displaying the corrected target character.
[0006] In some embodiments, the string includes a pinyin corresponding to at least one Chinese character, and the pinyin includes one of simple pinyin and full pinyin.
[0007] In some embodiments, the string further comprises at least one corresponding stroke in the at least one Chinese character.
[0008] In some embodiments, the at least one candidate comprises at least one Chinese string corresponding to the string, and the generating and displaying the at least one corresponding candidate comprises: matching at least one Chinese string satisfying the string from a database and displaying.
[0009] In some embodiments, the at least one candidate further comprises the string.
[0010] In some embodiments, the obtaining the target gesture operation performed by the target user on the target candidate comprises: obtaining the target gesture operation; positioning the target gesture operation to determine a starting position of the target gesture operation; matching the starting position with the at least one candidate to determine the target candidate; and matching the starting position with the target candidate to determine a target character corresponding to the target gesture operation, the target candidate comprising the target character.
[0011] In some embodiments, the identifying the target gesture operation to determine a target filtering condition corresponding to the target gesture operation comprises: performing trajectory identification on the target gesture operation based on a preset trajectory identification rule to determine a target trajectory of the target gesture operation; and determining the target filtering condition corresponding to the target trajectory based on a mapping relationship between a preset filtering condition and an operation trajectory, wherein the filtering condition comprises the target filtering condition, and the operation trajectory comprises the target trajectory.
[0012] In some embodiments, the operation trajectory comprises at least one of a sliding operation and a pressing operation.
[0013] In some embodiments, the sliding operation comprises at least one of a sliding operation in multiple directions and a sliding operation in multiple lengths.
[0014] In some embodiments, the pressing operation comprises a pressing operation in multiple time lengths.
[0015] In some embodiments, the filtering condition comprises at least one of a tone filtering, a stroke filtering, a pinyin filtering, a structure filtering, a word segmentation filtering, and a locking filtering.
[0016] In some embodiments, the word segmentation filtering comprises segmenting a pinyin string corresponding to one Chinese character into pinyin strings corresponding to multiple Chinese characters.
[0017] In some embodiments, the locking filtering includes locking or unlocking the selected object, the locking including making the Chinese character corresponding to the selected object unmodifiable, and the unlocking including releasing the locked selected object to make the Chinese character corresponding to the selected object modifiable.
[0018] In some embodiments, the modifying the target candidate based on the target filtering condition and displaying the modified target text includes: matching, based on the target filtering condition, a target text from a database that satisfies the string and the target filtering condition; and modifying the target candidate based on the target text and displaying.
[0019] In a second aspect, the present specification also provides an electronic device, including a human-computer interaction device, at least one storage medium, and at least one processor, the human-computer interaction device is configured to receive a target user input string and a target gesture operation, and display at least one candidate generated in response to the string and a modified target text generated in response to the target gesture operation to the target user; the at least one storage medium stores at least one instruction set for Chinese input; and the at least one processor is in communication connection with the human-computer interaction device and the at least one storage medium, wherein when the electronic device is running, the at least one processor reads the at least one instruction set, and executes the Chinese input method of the first aspect of the present specification according to the indication of the at least one instruction set.
[0020] From the above technical solutions, the Chinese input method and the electronic device provided by the present specification can generate at least one corresponding candidate after receiving a target user input string; the target user can select a target candidate to be modified and perform a corresponding target gesture operation on the target candidate; the Chinese input method and the electronic device can generate a target filtering condition (such as a tone filtering condition, a stroke filtering condition, a pinyin filtering condition, and a structure filtering condition, etc.) for the target gesture operation to filter out a text satisfying the target filtering condition from a database, and modify the target candidate to quickly generate a target text. The Chinese input method and the electronic device can filter the target candidate by gesture operation to quickly obtain the desired text input, thereby reducing the homonymy rate and improving the text input efficiency through a simple operation method.
[0021] Other functions of the Chinese input method and the electronic device provided by the present specification will be partially listed in the following description. According to the description, the following numerical and example introduced contents will be obvious to those skilled in the art. The creative aspects of the Chinese input method and the electronic device provided by the present specification can be fully explained by practicing or using the methods, devices, and combinations described in the following detailed examples. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present specification, the drawings needed to be used in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present specification, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0023] Figure 1 An application scenario schematic diagram of an electronic device provided by an embodiment of the present specification is shown;
[0024] Figure 2 A structural schematic diagram of an electronic device provided by an embodiment of the present specification is shown;
[0025] Figure 3 An input method flowchart of Chinese provided by an embodiment of the present specification is shown;
[0026] Figure 4 A schematic diagram of at least one candidate provided by an embodiment of the present specification is shown;
[0027] Figure 5 A flowchart of obtaining a target gesture operation provided by an embodiment of the present specification is shown;
[0028] Figure 6 A flowchart of determining a target screening condition provided by an embodiment of the present specification is shown;
[0029] Figure 7 A schematic diagram of a gesture operation provided by an embodiment of the present specification is shown;
[0030] Figure 8 A flowchart of obtaining a target character provided by an embodiment of the present specification is shown;
[0031] Figure 9 A schematic diagram of a target gesture operation and a corrected target character provided by an embodiment of the present specification is shown;
[0032] Figure 10 A schematic diagram of another target gesture operation and a corrected target character provided by an embodiment of the present specification is shown;
[0033] Figure 11 A schematic diagram of another target gesture operation and a corrected target character provided by an embodiment of the present specification is shown;
[0034] Figure 12A diagram showing another target gesture operation and a corrected target character according to an embodiment of the present specification is shown. DETAILED DESCRIPTION
[0035] The following description provides specific applications and requirements of the present specification, in order to enable a person skilled in the art to manufacture and use the contents of the present specification. Various partial modifications of the disclosed embodiments are obvious to those skilled in the art, and the general principles defined herein can be applied to other embodiments and applications without departing from the spirit and scope of the present specification. Therefore, the present specification is not limited to the embodiments shown, but is consistent with the widest scope of the claims.
[0036] The terms used herein are used only for the purpose of describing specific example embodiments, and are not limiting. For example, as used herein, the singular forms "a", "an" and "the" can also include the plural forms unless the context clearly dictates otherwise. When used in the present specification, the terms "comprise", "include" and / or "contain" mean that the associated integer, step, operation, element and / or component exists, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups in the system / method.
[0037] In view of the following description, these features of the present specification and other features, as well as the operation and function of related elements of the structure, and the economy of combination and manufacture of components can be obviously improved. Referring to the drawings, all of which form part of the present specification. However, it should be clearly understood that the drawings are for illustrative and descriptive purposes only and are not intended to limit the scope of the present specification. It should also be understood that the drawings are not drawn to scale.
[0038] The flowchart used in the present specification shows the operation of system implementation according to some embodiments of the present specification. It should be clearly understood that the operations of the flowchart can not be implemented in sequence. On the contrary, the operations can be implemented in reverse order or simultaneously. In addition, one or more other operations can be added to the flowchart. One or more operations can be removed from the flowchart.
[0039] For the convenience of description, the present specification will explain the terms that will appear in the following description as follows:
[0040] Initial consonant: is a consonant used before the final consonant to form a complete syllable with the final consonant.
[0041] Final consonant: is a Chinese phonology term in Chinese phonology, which is the part of the initial consonant and the tone of the Chinese character sound.
[0042] Zero initial: Chinese pinyin without initial, only final independent into syllable.
[0043] Tone: refers to the change of the tone of the language, Mandarin has four tones, respectively, Yin Ping, Yang Ping, Shangsheng, Qusheng.
[0044] Basic strokes: refers to horizontal (including lift), vertical (including vertical hook), dash, point (including na), fold, five basic strokes.
[0045] Simple input: is a way to input initial or the first letter of initial.
[0046] Full input: input the full pinyin of Chinese characters (including initial and final, usually not including tone).
[0047] Double input: is an input method based on pinyin input method, which maps each initial or final with multiple letters in pinyin to a certain key, so that each pinyin can be typed with two keys.
[0048] Phonetic input method: the pinyin and the shape of Chinese characters (side, part, head, stroke, etc.) are used as input information.
[0049] Full keyboard: 26 letters, each letter occupies a key.
[0050] Word segmentation: the operation of dividing the pinyin string.
[0051] Figure 1An application scenario of an electronic device 001 is shown. The electronic device 001 can be any form of device with character input function. For example, a smart phone with touch screen, a tablet computer, a notebook computer, a smart wearable device, etc. In some embodiments, the electronic device 001 can also be an input device with physical keys, such as a notebook computer, etc. In some embodiments, the electronic device 001 can include a mobile device, a tablet computer, a notebook computer, a built-in device of a motor vehicle, or the like, or any combination thereof. In some embodiments, the mobile device can include a smart home device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home device can include a smart television, a desktop computer, or the like, or any combination thereof. In some embodiments, the smart mobile device can include a smart phone, a personal digital assistant, a game device, a navigation device, or the like, or any combination thereof. In some embodiments, the virtual reality device or the augmented reality device can include a virtual reality headset, a virtual reality glasses, a virtual reality patch, an augmented reality headset, an augmented reality glasses, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device or the augmented reality device can include Google glasses, a head-mounted display, VR, etc. In some embodiments, the built-in device in the motor vehicle can include an on-board computer, an on-board television, etc.
[0052] In some embodiments, the input method of Chinese can be executed on the electronic device 001. At this time, the electronic device 001 can store data or instructions for executing the input method of Chinese described in the present specification, and can execute or be used to execute the data or instructions. In some embodiments, the electronic device 001 can include a hardware device with data information processing function and necessary programs required to drive the hardware device to work.
[0053] The target user 002 can be a user of the electronic device 001. The target user 002 can perform a character input operation on the electronic device 001. The electronic device 001 can receive a character string input by the target user 002, and execute the input method of Chinese described in the present specification in response to the character string. The input method of Chinese is described in other parts of the present specification.
[0054] Figure 2 A hardware structure diagram of an electronic device 001 is shown. The electronic device 001 can execute the input method of Chinese described in the present specification. As shown in the figure, the electronic device 001 can include a processor 1001, a memory 1002, a storage 1003, a communication module 1004, a sensor module 1005, a user input module 1006, a display module 1007, and a power supply module 1008. The processor 1001 can be a hardware device for processing data information. The memory 1002 can be a device for storing data information. The storage 1003 can be a device for storing data information. The communication module 1004 can be a device for transmitting and receiving data information. The sensor module 1005 can be a device for detecting a physical quantity. The user input module 1006 can be a device for receiving a user input. The display module 1007 can be a device for displaying data information. The power supply module 1008 can be a device for supplying power. Figure 2As shown, the electronic device 001 can include a human-machine interaction device 140, at least one storage medium 130, and at least one processor 120. In some embodiments, the electronic device 001 can further include an internal communication bus 110. In some embodiments, the electronic device 001 can further include a communication port 150. In some embodiments, the electronic device 001 can further include an I / O component 160.
[0055] In some embodiments, the internal communication bus 110 can connect different system components, including but not limited to the human-machine interaction device 140, the storage medium 130, the processor 120, the communication port 150, and the I / O component 160.
[0056] The human-machine interaction device 140 can be communicatively connected to the at least one processor 120. The human-machine interaction device 140 can include a human-machine interaction interface for performing human-machine interaction functions with the target user 002. In some embodiments, the human-machine interaction functions include but are not limited to operation input, voice broadcast, voice input, web browsing, word processing, status prompt, etc. In some embodiments, the human-machine interaction device 140 can include a display screen. The display screen can be a touch screen type liquid crystal display (LCD). The display screen has an image user interface (GUI) that allows the target user 002 to perform human-machine interaction with the at least one processor 120 by touching the image user interface (GUI) and / or by gestures. In some embodiments, the human-machine interaction device 140 can further include a voice collection device such as a microphone. The voice collection device can be any form of device that can collect audio signals. The target user 002 can input voice information to the at least one processor 120 through the voice collection device, thereby performing human-machine interaction with the at least one processor 120. In some embodiments, executable instructions for performing the above-mentioned human-machine interaction functions are stored in one or more processor-executable computer program products or readable storage media.
[0057] In some embodiments, the human-machine interaction device 140 can be configured to receive a character string input by the target user 002 and a target gesture operation, and display at least one candidate generated in response to the character string and a corrected target text generated in response to the target gesture operation to the target user 002.
[0058] The storage medium 130 can include a data storage device. The data storage device can be a non-transitory storage medium or a transitory storage medium. For example, the data storage device can include one or more of a disk 132, a read-only memory (ROM) 134, or a random access memory (RAM) 136. The storage medium 130 also includes at least one set of instructions stored in the data storage device. The instructions can be computer program code, which can include programs, routines, objects, components, data structures, procedures, modules, and the like, that perform the input method of Chinese provided in the specification.
[0059] The at least one processor 120 can be communicatively connected to the human-machine interaction device 140, the at least one storage medium 130, and the communication port 150 through the internal communication bus 110. The at least one processor 120 is configured to execute the at least one set of instructions. When the electronic device 001 is running, the at least one processor 120 reads the at least one set of instructions and executes the input method of Chinese provided in the specification according to the instructions of the at least one set of instructions. The processor 120 can execute all steps of the input method of Chinese. The processor 120 can be in the form of one or more processors, and in some embodiments, the processor 120 can include one or more hardware processors, such as a microcontroller, a microprocessor, a reduced instruction set computer (RISC), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a central processing unit (CPU), a graphics processing unit (GPU), a physics processing unit (PPU), a microcontroller unit, a digital signal processor (DSP), a field programmable gate array (FPGA), an advanced RISC machine (ARM), a programmable logic device (PLD), any circuit or processor capable of executing one or more functions, or the like, or any combination thereof. For the sake of illustration only, only one processor 120 is described in the electronic device 001 in the specification. However, it should be noted that the electronic device 001 in the specification can also include multiple processors, and therefore, the operations and / or method steps disclosed in the specification can be executed by one processor as described in the specification, or jointly executed by multiple processors. For example, if the processor 120 of the electronic device 001 in the specification executes step A and step B, it should be understood that step A and step B can also be executed jointly or separately by two different processors 120 (for example, a first processor executes step A, and a second processor executes step B, or the first and second processors jointly execute steps A and B).
[0060] The communication port 150 can be used for data communication between the electronic device 001 and the outside world. The communication port 150 can be a wired communication port or a wireless communication port.
[0061] The I / O components 160 support input / output operations for the electronic device 001 and other components.
[0062] Figure 3 A flowchart of a Chinese input method P100 according to an embodiment of the present specification is shown. As mentioned before, the electronic device 001 can perform the Chinese input method P100 of the present specification. Specifically, the processor 120 can read a set of instructions stored in its local storage medium, and then perform the Chinese input method P100 of the present specification according to the provisions of the set of instructions. As shown, the method P100 can include: Figure 3
[0063] S120: generating and displaying at least one candidate corresponding to the string input by the target user 002.
[0064] The target user 002 can input the string to the electronic device 001 through the human-computer interaction device 140. In some embodiments, the target user 002 can input the string through manual operation through the keyboard on the human-computer interaction device 140. In some embodiments, the keyboard can be a virtual keyboard on the touch screen of the human-computer interaction device 140. In some embodiments, the keyboard can be a virtual keyboard generated by the electronic device 001 through projection. In some embodiments, the keyboard can be a physical keyboard on the human-computer interaction device 140. The keyboard can be any form of keyboard, such as a nine-square keyboard, a full-pinyin keyboard, a double-pinyin keyboard, etc. The present specification does not limit this. The keyboard can be displayed with keys. The target user 002 can input the string by touching or pressing the keys with fingers or touch pens, etc.
[0065] In some embodiments, the target user 002 can input the string through voice through the voice collection device on the human-computer interaction device 140.
[0066] The string can include a string corresponding to at least one Chinese character. That is, the string can be a string corresponding to one Chinese character, or a string corresponding to multiple Chinese characters. That is, the target user 002 can input single Chinese characters or multiple Chinese characters at the same time when inputting the string. For example, when the target user 002 wants to input “hello”, the target user 002 can input the string corresponding to “hello” in two times, input the string corresponding to “you” in the first time, and input the string corresponding to “good” in the second time. The target user 002 can also input the string corresponding to “hello” at one time.
[0067] When the target user 002 inputs the string, any form of string input method can be adopted. That is, the string can be in any form. For example, a string in pinyin form, or a string in Wubi form, or a string in stroke form, and so on.
[0068] In some embodiments, the target user 002 can adopt pinyin as the input method. At this time, the string can include the pinyin corresponding to at least one Chinese character. The pinyin can include one of abbreviated pinyin and full pinyin. For example, when the target user 002 wants to input "你好", the target user 002 can input "nihao", or "nh", or "nih", or "nhao", and so on.
[0069] In some embodiments, the target user 002 can adopt a form combining pinyin and strokes as the input method. At this time, the string can further include the pinyin and strokes corresponding to at least one of the at least one Chinese character. In some embodiments, the strokes can be the strokes corresponding to the Chinese character. In some embodiments, the input order of the strokes corresponds to the stroke writing order of the Chinese character in sequence. In some embodiments, the strokes can also be any one stroke of the Chinese character. In some embodiments, the strokes can be at least one of the first stroke and the last stroke. The first stroke can be the stroke of the first pen of the Chinese character. The last stroke can be the stroke of the last pen of the Chinese character. For example, when the target user 002 wants to input the character "装", the string input by the target user 002 can be "zh丶", or "zhuang丶", or "zhu丶", and so on. Among them, "丶" can be the stroke of the first pen of the character "装".
[0070] The electronic device 001 can receive the string input by the target user 002, generate at least one candidate item that matches the string, and display it to the target user 002. In some embodiments, the at least one candidate item can include at least one Chinese character string corresponding to the string. Specifically, step S120 can include: matching at least one Chinese character string that meets the string from the database and displaying it. Specifically, the electronic device 001 can control the human-computer interaction device 140 to display the at least one candidate item. Each Chinese character string can include at least one Chinese character. For example, when the string input by the target user 002 is "jishu", the at least one candidate item can be "基数", "技术", "奇数", "集数", "记述", "计数", and so on. The electronic device 001 can search for the Chinese character string that matches the string in the pre-established database and control the human-computer interaction device 140 to display it.
[0071] In some embodiments, the at least one candidate option may also include the string input by the target user 002. For example, when the target user 002 inputs "jishu", the at least one candidate option may include not only Chinese strings such as "basic", "technology", "odd number", "set number", "description", and "count", but also "jishu".
[0072] Figure 4 A schematic diagram of at least one candidate option provided according to an embodiment of this specification is shown. Figure 4 As shown, the string input by the target user 002 is "jishu", and the electronic device 001 can control the human-computer interaction device 140 to display the at least one candidate option.
[0073] like Figure 3 As shown, the method P100 may further include:
[0074] S140: Obtain the target gesture operation performed by the target user 002 on the target candidate.
[0075] The at least one candidate option includes the target candidate option. That is, the target candidate option is one of the at least one candidate options. The target user 002 can perform a target gesture operation on any of the at least one candidate option to filter the candidate options using the target gesture operation. The target gesture operation can be any of the pre-set gesture operations. In some embodiments, the gesture operation can be an operation trajectory formed by a movement operation performed by an electronic device such as a finger or stylus. The target user 002 can perform the target gesture operation through the human-computer interaction device 140. Taking the human-computer interaction device 140 as a touch screen as an example, the target user 002 can perform the target gesture operation by touching the touch screen on the human-computer interaction device 140. The electronic device 001 can obtain the target gesture operation from the human-computer interaction device 140. Specifically, the electronic device 001 can obtain the click and operation trajectory of the touch point of the electronic device such as a finger or stylus on the human-computer interaction device 140. The operation trajectory can be the movement trajectory of the touch point. Specifically, electronic device 001 can determine the operation trajectory of a touch point by observing the voltage changes at various coordinate points on the touch screen during the clicking or moving of the touch point. The operation trajectory includes the movement path of the touch point.
[0076] In some embodiments, the target user 002 can be in contact with the human-computer interaction device 140 when performing the target gesture operation. In some embodiments, the target user 002 can also not be in contact with the human-computer interaction device 140 when performing the target gesture operation, and the target user 002 can perform the target gesture operation through a mid-air operation. Specifically, the electronic device 001 can be provided with a visual sensor to capture an image of the target user 002 performing the target gesture operation, so as to obtain the target gesture operation of the target user 002.
[0077] Figure 5 A flowchart for obtaining a target gesture operation is shown according to an embodiment of the present specification. Figure 5 Step S140 is shown. As Figure 5 shown, step S140 can include:
[0078] S142: Obtain the target gesture operation.
[0079] Taking the touch screen as an example of the human-computer interaction device 140. As mentioned above, the electronic device 001 can obtain the operation trajectory of the touch point of the target user 002 on the human-computer interaction device 140 through the target gesture operation performed by the target user 002 on the touch screen.
[0080] S144: Position the target gesture operation to determine the starting position of the target gesture operation.
[0081] As mentioned above, the operation trajectory of the touch point includes the movement path of the touch point and the coordinate position of the touch point on the touch screen. The electronic device 001 can position the target gesture operation to determine the starting position of the target gesture operation. The starting position can be the position where the target gesture operation starts operating on the touch screen.
[0082] S146: Match the starting position with the at least one candidate to determine the target candidate.
[0083] As mentioned above, the at least one candidate can be displayed on the human-computer interaction device 140. The electronic device 001 can store the coordinate position of each candidate in the at least one candidate on the touch screen of the human-computer interaction device 140. The electronic device 001 can match the starting position of the target gesture operation with the coordinate position of the at least one candidate to determine the candidate corresponding to the starting position of the target gesture operation as the target candidate.
[0084] As Figure 5 shown, step S140 can also include:
[0085] S148: match the starting position with the target candidate, and determine a target character corresponding to the target gesture operation.
[0086] As described above, each candidate corresponds to a character string, which can include at least one character. The electronic device 001 can match the starting position of the target gesture operation with the coordinate position of the character string in the target candidate, to determine the target character to which the target gesture operation is directed. The target candidate includes the target character. The target character can be any one of the characters in the at least one candidate, including Chinese characters in the at least one candidate and the character string input by the target user 002.
[0087] As described above, in step S140, the target user 002 can perform the target gesture operation on the target candidate through the human-computer interaction device 140 to further screen the target candidate, so as to screen and correct the target candidate through the target screening condition.
[0088] As shown in Figure 3 The method P100 can further include:
[0089] S160: identifying the target gesture operation to determine a target screening condition corresponding to the target gesture operation.
[0090] Figure 6 A flowchart for determining a target screening condition is shown according to an embodiment of the present specification. Figure 6 Step S160 is shown. As shown in Figure 6 Step S160 can include:
[0091] S162: performing trajectory recognition on the target gesture operation based on a preset trajectory recognition rule, to determine a target trajectory of the target gesture operation.
[0092] Taking the touch screen as an example. As described above, the electronic device 001 can obtain the click of the electronic device's touch point such as a finger or a touch pen on the human-computer interaction device 140 and the moving trajectory of the touch point, i.e. the target trajectory of the target gesture operation.
[0093] S164: determining the target screening condition corresponding to the target trajectory based on a preset mapping relationship between the screening condition and the operation trajectory.
[0094] The screening condition can include the target screening condition, and the operation track can include the target track. In some embodiments, the electronic device 001 can pre-store a plurality of operation tracks. Different operation tracks correspond to different screening conditions. The electronic device 001 can also pre-store a mapping relationship between the plurality of operation tracks and a plurality of screening conditions.
[0095] The operation trajectory can be any form of movement trajectory. In some embodiments, the operation trajectory can include at least one of a sliding operation and a pressing operation. In some embodiments, the operation trajectory can include a sliding operation, such as a preset shape trajectory generated by a continuous sliding of a finger or a stylus. The preset shape can be any shape. Different shapes represent different operation trajectories. For example, the preset shape can be a certain number, such as 1, 2, 3, 4, and the like. For another example, the preset shape can also be a certain symbol, such as a triangle, a circle, a square, a polygon, a pentacle, and the like. In some embodiments, the preset shape can be a straight line. Taking the preset shape as a straight line as an example, the sliding operation can be at least one of a sliding operation in multiple directions and a sliding operation in multiple lengths. Different directions and different lengths respectively represent different operation trajectories. For example, the sliding operation can be a straight line sliding to the left (abbreviated as left sliding), a straight line sliding to the right (abbreviated as right sliding), a straight line sliding upwards (abbreviated as up sliding), a straight line sliding downwards (abbreviated as down sliding), or even a straight line sliding to the upper left (abbreviated as left up sliding), a straight line sliding to the lower left (abbreviated as left down sliding), a straight line sliding to the upper right (abbreviated as right up sliding), a straight line sliding to the lower right (abbreviated as right down sliding), and the like. For another example, the sliding operation can also be a sliding operation in a long distance (abbreviated as long sliding) and a sliding operation in a short distance (abbreviated as short sliding). For another example, the sliding operation can also be a sliding operation in different lengths and different directions, such as a straight line sliding to the left in a long distance (abbreviated as left long sliding), a straight line sliding to the left in a short distance (abbreviated as left short sliding), a straight line sliding to the right in a long distance (abbreviated as right long sliding), a straight line sliding to the right in a short distance (abbreviated as right short sliding), a straight line sliding upwards in a long distance (abbreviated as up long sliding), a straight line sliding upwards in a short distance (abbreviated as up short sliding), a straight line sliding downwards in a long distance (abbreviated as down long sliding), a straight line sliding downwards in a short distance (abbreviated as down short sliding), or even a straight line sliding to the upper left in a long distance (abbreviated as left up long sliding), a straight line sliding to the upper left in a short distance (abbreviated as left up short sliding), a straight line sliding to the lower left in a long distance (abbreviated as left down long sliding), a straight line sliding to the lower left in a short distance (abbreviated as left down short sliding), a straight line sliding to the upper right in a long distance (abbreviated as right up long sliding), a straight line sliding to the upper right in a short distance (abbreviated as right up short sliding), a straight line sliding to the lower right in a long distance (abbreviated as right down long sliding), a straight line sliding to the lower right in a short distance (abbreviated as right down short sliding), and the like.
[0096] In some embodiments, the operation track can also be a pressing operation, such as pressing at a preset position on the touch screen by a finger or a touch pen. In some embodiments, the pressing operation can include a plurality of pressing operations of different lengths of time. For example, pressing for different lengths of time, different lengths of time corresponding to different operation tracks, such as pressing for 2 seconds and pressing for 3 seconds representing different operation tracks, respectively. For example, the pressing operation can be short pressing, or long pressing, or even super long pressing, etc. In some embodiments, the pressing operation can include a plurality of pressing operations. For example, the pressing operation can be a plurality of continuous pressing operations of different numbers of times, different numbers of times representing different operation tracks, respectively, such as continuous pressing for 2 times, 3 times, 4 times, or even more times, etc.
[0097] Figure 7 A schematic diagram of a gesture operation is shown according to an embodiment of the present specification. As shown, short pressing, long pressing, left short sliding, left long sliding, right short sliding, right long sliding, up short sliding, up long sliding, down short sliding, and down long sliding are shown, 10 kinds of gesture operations. When the target user 002 slides in the area corresponding to each gesture, respectively, the corresponding operation track will be generated. Figure 7
[0098] The electronic device 001 can pre-store a plurality of operation tracks as described above. The electronic device 001 can identify the target gesture operation, and match the identified track with the plurality of operation tracks pre-stored to determine the target track corresponding to the target gesture operation.
[0099] The electronic device 001 can also pre-store a plurality of screening conditions, and store a mapping relationship between the plurality of screening conditions and the plurality of operation tracks. Different operation tracks correspond to different screening conditions. In some embodiments, the screening condition can include at least one of tone screening, stroke screening, pinyin screening, structure screening, word segmentation screening, and lock screening. Each screening condition can include a plurality of different objects. Details are described as follows.
[0100] In some embodiments, the filtering condition can include tone filtering. The tone filtering can be filtering or screening of the tone of the Chinese character to be input. The tone filtering can include a plurality of different tone objects. The electronic device 001 can pre-store a mapping relationship between the plurality of operation trajectories and the plurality of different tone objects in the tone filtering. As described above, the tone of the Mandarin in Chinese can include Yin Ping (also called one tone), Yang Ping (also called two tone), Shang Sheng (also called three tone), and Qu Sheng (also called four tone). In some embodiments, the tone can also include no tone. That is, the plurality of different tone objects can include no tone, one tone, two tone, three tone, and four tone. Table 1 shows a mapping relationship between an operation trajectory and a plurality of tone objects in tone filtering.
[0101]
[0102] It should be noted that Table 1 is only illustrative, and those skilled in the art should understand that other mapping relationships between tone objects and operation trajectories are also within the protection scope of the present specification.
[0103] In some embodiments, the filtering condition can include stroke filtering. The stroke filtering can be filtering or screening of the stroke of the Chinese character to be input. In some embodiments, the stroke filtering can be filtering of any one stroke of the Chinese character. In some embodiments, the stroke filtering can be screening of the writing stroke order of the Chinese character. When the stroke filtering corresponds to a plurality of stroke objects, the input order of the corresponding stroke in the stroke filtering corresponds to the stroke writing order of the Chinese character in turn. In some embodiments, the stroke filtering can also be at least one of the first stroke filtering and the last stroke filtering. The first stroke can be the stroke of the first stroke of the Chinese character. The last stroke can be the stroke of the last stroke of the Chinese character. The target user 002 can pre-set or change the type of the stroke filtering. The stroke filtering can include a plurality of different stroke objects. The electronic device 001 can pre-store a mapping relationship between the plurality of operation trajectories and the plurality of different stroke objects in the stroke filtering. As described above, the basic stroke of the Chinese character can include horizontal (including ti), vertical (including vertical hook), pa, dot (including na), and fold. Table 2 shows a mapping relationship between an operation trajectory and a plurality of stroke objects in stroke filtering.
[0104]
[0105] It should be noted that Table 2 is only illustrative, and those skilled in the art should understand that other mapping relationships between stroke objects and operation trajectories are also within the protection scope of the present specification.
[0106] In some embodiments, the filtering condition can include a pinyin filtering. The pinyin filtering can be filtering or screening the pinyin of the Chinese character to be input. In some embodiments, the pinyin filtering can include a filtering of the flat and hooked tongue. In some embodiments, the pinyin filtering can be a filtering of the rime. The target user 002 can pre-set or change the type of the pinyin filtering. When the pinyin filtering is the flat and hooked tongue filtering, the electronic device 001 can pre-store a mapping relationship between the plurality of operation trajectories and a plurality of different flat and hooked tongue objects in the flat and hooked tongue filtering. As described above, the flat and hooked tongue of the Chinese character can include both flat and hooked tongue. Table 3 shows a mapping relationship between an operation trajectory and the flat and hooked tongue filtering of the flat and hooked tongue. The target user 002 can perform a gesture operation on the target candidate corresponding to z, c, s or zh, ch, sh to add the flat and hooked tongue filtering.
[0107]
[0108] It should be noted that Table 3 is only illustrative, and those skilled in the art should understand that other mapping relationships between flat and hooked tongue objects and operation trajectories are also within the protection scope of the present specification.
[0109] In some embodiments, the pinyin filtering can be a filtering of the rime. Different operation trajectories correspond to different rimes. And the same operation trajectory corresponds to different rimes when the starting position of the operation trajectory is directed to different target characters. The electronic device 001 can pre-store a mapping relationship between the plurality of operation trajectories and a plurality of different rime objects in the rime filtering. Table 4 shows a mapping relationship between an operation trajectory and a rime object.
[0110]
[0111] It should be noted that Table 4 is only illustrative, and those skilled in the art should understand that other mapping relationships between rime objects and operation trajectories are also within the protection scope of the present specification.
[0112] In some embodiments, the filtering condition can include a structure filtering. The structure filtering can be filtering or screening the structure of the Chinese character to be input. The structure filtering can include a plurality of different structure objects. The electronic device 001 can pre-store a mapping relationship between the plurality of operation trajectories and a plurality of different structure objects in the structure filtering. The structure of the Chinese character can be divided into left-right structure and non-left-right structure. That is, the plurality of different structure objects can include both left-right structure and non-left-right structure. Table 5 shows a mapping relationship between an operation trajectory and a plurality of structure objects in the structure filtering.
[0113]
[0114] It should be noted that the structure of Chinese characters can also include other structures, such as up-down structure, full-enclosing structure, and the like, which are not enumerated in the present specification, and those skilled in the art should understand that other structures are also within the protection scope of the present specification. Table 5 is only illustrative, and those skilled in the art should understand that other mapping relationships between the structure object and the operation track are also within the protection scope of the present specification.
[0115] In some embodiments, the screening condition can include word segmentation screening. The word segmentation screening can be word segmentation on the input string. The word segmentation screening can include dividing a pinyin string corresponding to one Chinese character into pinyin strings corresponding to multiple Chinese characters. For example, when the input string is "tai", "tai" can be a pinyin of Chinese characters such as "tai" and can also be a pinyin of word groups such as "tai ai". The target user 002 can divide "tai" into "t'ai" through the word segmentation screening to clearly parse according to the word group, so as to further screen the string to clearly determine that the character corresponding to the string is a word group. The target user 002 can use the target operation gesture on the target character to perform word segmentation on the target character. Table 6 shows a mapping relationship between an operation track and word segmentation screening.
[0116]
[0117] Table 6 is only illustrative, and those skilled in the art should understand that other mapping relationships between the word segmentation screening and the operation track are also within the protection scope of the present specification.
[0118] In some embodiments, the filtering condition can include a lock filtering. The lock filtering can include locking or unlocking a selected object. The locking can include making the Chinese character corresponding to the selected object unmodifiable. In some embodiments, the selected object can be the aforementioned target character. In some embodiments, the selected object can be all characters before the target character. In some embodiments, the selected object can be all characters before the target character including the target character. In some embodiments, the selected object can be all characters after the target character. In some embodiments, the selected object can be all characters after the target character including the target character. When the selected object is locked, a subsequent target gesture operation targeting a target character other than the selected object will not cause the selected object to be changed according to the target filtering condition. In some embodiments, the operation track corresponding to the lock function can be a separate operation track different from the aforementioned filtering conditions, such as a long press, a long swipe, and the like. That is, performing the operation track corresponding to the lock function on the selected object can cause the selected object to be locked. In some embodiments, the operation track corresponding to the lock function can also be the operation track corresponding to any of the aforementioned filtering conditions. That is, if the operation track corresponding to any of the aforementioned filtering conditions is performed on the selected object, the selected object is locked and can be modified according to the filtering condition corresponding to the operation track.
[0119] In some embodiments, the selected object that is locked can also be unlocked. The unlocking can be full unlocking or partial unlocking. The unlocking can include releasing the locked selected object to make the Chinese character corresponding to the selected object modifiable. In some embodiments, the operation track corresponding to the unlock function can be a separate operation track different from the aforementioned filtering conditions, such as a short press, a short swipe, and the like. That is, performing the operation track corresponding to the unlock function on the locked selected object can cause the selected object to be unlocked. In some embodiments, the operation track corresponding to the unlock function can be the operation track corresponding to any of the aforementioned filtering conditions. That is, when the selected object is locked, if the operation track corresponding to any of the aforementioned filtering conditions is performed on the selected object, the selected object is unlocked and can be modified according to the filtering condition corresponding to the operation track. In some embodiments, the operation track corresponding to the lock function and the unlock function can be the same or different. When the operation track corresponding to the lock function and the unlock function is the same, performing the operation track on a selected object that is not locked can cause the selected object to be locked, and performing the operation track on a selected object that is already locked can cause the selected object to be unlocked.
[0120] It should be noted that in some embodiments, the tone screening, stroke screening, pinyin screening, structure screening, and word screening can each correspond to a different operation track. That is, each operation track can uniquely correspond to one of the screening conditions. In some embodiments, the tone screening, stroke screening, pinyin screening, structure screening, word screening, and locking screening can share the same operation track. That is, the same operation track can correspond to multiple ones of the tone screening, stroke screening, pinyin screening, structure screening, word screening, and locking screening. For example, a left long swipe can correspond to a certain tone in the tone screening, a certain stroke in the stroke screening, and so on. When the same operation track corresponds to multiple ones of the tone screening, stroke screening, pinyin screening, structure screening, word screening, and locking screening, the target user 002 can previously set the type of the screening condition corresponding to the operation track. For example, the target user 002 can previously set the screening condition corresponding to the operation track to one of the tone screening, stroke screening, pinyin screening, structure screening, word screening, and locking screening. The target user 002 can also change the type of the screening condition corresponding to the operation track.
[0121] As shown in Figure 3 the method P100 can further include:
[0122] S180: correcting the target candidate based on the target screening condition, and displaying the corrected target text.
[0123] As previously described, in step S140, the electronic device 001 can determine, based on the target gesture operation, a target candidate to which the target gesture operation is directed and a target character in the target candidate. In step S160, the electronic device 001 can determine, based on the target gesture operation, a target screening condition corresponding to the target gesture operation. In step S180, the electronic device 001 can screen or filter the target candidate and the target character based on the target screening condition to screen out Chinese characters meeting the target screening condition from the database, and control the man-machine interaction device 140 to display.
[0124] Figure 8 A flowchart of acquiring a target text according to an embodiment of the present specification is shown. Figure 8 Shown is step S180. As shown in Figure 8 step S180 can include:
[0125] S182: matching, based on the target screening condition, a target text meeting the character string and the target screening condition from the database.
[0126] In step S160, the electronic device 001 can determine a target filtering condition corresponding to the target gesture operation based on the target gesture operation. The electronic device 001 can further filter the target candidate based on the target filtering condition. For example, when the target filtering condition is a tone filtering, the target user 002 can perform the target gesture operation on the target character to determine a tone object corresponding to the target character, and the electronic device 001 can filter the target character based on the tone object to determine a target word that meets both the character string and the tone object.
[0127] In some embodiments, the target filtering condition can be a further limitation on the character string, and the electronic device 001 can further filter the character string by adding the target filtering condition. In some embodiments, the target filtering condition can be a modification of the character string, and the electronic device 001 can modify the character string by the target filtering condition. In some embodiments, the target user 002 can pre-set a type corresponding to the target filtering condition. In some embodiments, the electronic device 001 can set the type corresponding to the target filtering condition according to a use scenario. When the target filtering condition does not conflict with the character string, the target filtering condition can be a further limitation on the character string. When the target filtering condition conflicts with the character string, the target filtering condition can be a modification of the character string.
[0128] S184: correcting the target candidate based on the target word and displaying.
[0129] The electronic device 001 can correct the target candidate and the target character based on the target word to display the corrected target word.
[0130] Figure 9 A schematic diagram of a target gesture operation and a corrected target word is shown according to an embodiment of the present specification. As shown in Figure 9 The target filtering condition corresponding to the target gesture operation shown is a tone filtering. As described above, the target character can be any character in the at least one candidate, which can be a Chinese character or any character in the character string input by the target user 002. As shown in Figure 9 The character string input by the target user 002 is “zuihdes”. The Chinese character string that the target user 002 wants to get is “zuihdes”. The at least one candidate is shown in Figure 9 The target user 002 can perform the target gesture operation on any character. For example, the target user 002 can perform a target gesture operation (left swipe) corresponding to three tones on the character “h”, as shown in Figure 9As shown. Of course, the target user 002 can also directly perform the target gesture operation on Chinese characters. For example, perform the target gesture operation on the character "坏" in "最坏的是", or perform the target gesture operation on the character "后" in "最后的是".
[0131] Figure 10 FIG. shows a schematic diagram of another target gesture operation and the corrected target text provided according to an embodiment of the present specification. Taking Figure 10 the target screening condition corresponding to the target gesture operation shown as stroke screening as an example for illustration. As mentioned above, the target character can be any character in at least one candidate, which can be either a Chinese character or any character in the string input by the target user 002. As Figure 10 shown, the string input by the target user 002 is "zuihdes". The Chinese character string that the target user 002 wants to obtain is "最坏的是". At least one candidate is as Figure 10 shown. The target user 002 can perform the target gesture operation on any character. For example, the target user 002 can perform the target gesture operation corresponding to the horizontal stroke (swipe right) on the character "h", as Figure 10 shown. Of course, the target user 002 can also directly perform the target gesture operation on Chinese characters. For example, perform the target gesture operation on the character "好" in "最好的是".
[0132] Figure 11 FIG. shows a schematic diagram of another target gesture operation and the corrected target text provided according to an embodiment of the present specification. Taking Figure 11 the target screening condition corresponding to the target gesture operation shown as stroke screening as an example for illustration. Taking the stroke screening as adding a screening condition to the already input string to modify the already input string as an example for illustration. As Figure 11 shown, the string input by the target user 002 is a combination of pinyin and the first stroke "zh丶". The Chinese character string that the target user 002 wants to obtain is "珠". At least one candidate is as Figure 11 shown. Among them, the stroke input is incorrect. The target user 002 can perform the target gesture operation corresponding to the horizontal stroke (swipe right) on the character "丶" to make a modification, as Figure 11 shown.
[0133] Figure 12 FIG. shows a schematic diagram of another target gesture operation and the corrected target text provided according to an embodiment of the present specification. Taking Figure 12 the target screening condition corresponding to the target gesture operation shown including stroke screening and lock screening as an example for illustration. As Figure 12As shown, the string input by the target user 002 is the pinyin "jttqhbc". The Chinese string that the target user 002 wants to obtain is "today the weather is very good". At least one candidate is as shown. Figure 12 As shown. Among them, the first 4 Chinese characters "today weather" in the first candidate are correct, and the following Chinese characters are not required, and need to be filtered by adding a filtering condition. In order to avoid changing the first 4 Chinese characters when filtering the following characters by the target operation gesture, the target user 002 can make the target operation gesture have stroke filtering and locking filtering at the same time when performing the target operation gesture. For example, the target user 002 can perform a target operation gesture (left long slide) on "good" to perform stroke filtering (punctured), and lock the 4 Chinese characters before "good" at the same time of stroke filtering. When the first 4 Chinese characters that have been locked need to be modified, the target user 002 can perform a target operation gesture on the Chinese character that needs to be modified to add a target filtering condition, while unlocking the selected object.
[0134] In summary, the present specification provides an input method P100 of Chinese and an electronic device 001, which can generate at least one candidate corresponding to the string input by the target user 002 after receiving the string; the target user 002 can select a target candidate to be modified, and perform a corresponding target gesture operation on the target candidate; the method P100 and the electronic device 001 can generate a target filtering condition (such as tone filtering, stroke filtering, pinyin filtering, and structure filtering, etc.) for the target gesture operation, to filter out the characters that meet the target filtering condition from the database, and correct the target candidate, so as to quickly generate the target character. The method P100 and the electronic device 001 can filter the target candidate by gesture operation, so as to quickly obtain the desired character input, thereby reducing the ambiguity rate by a simple operation method, and improving the character input efficiency. The method P100 and the electronic device 001 can improve the input efficiency and working performance, make the filtering of characters, words, and sentences simple and efficient, and avoid frequent switching of interfaces; at the same time, the method P100 and the electronic device 001 are easy to use, and have low learning threshold. The filtering conditions introduced are all known by the user, or can be mastered in a short time, without additional learning burden; finally, the method P100 and the electronic device 001 have good compatibility, and can be compatible with all types of keyboard layouts.
[0135] Another aspect of the present specification provides a non-transitory storage medium storing at least one set of executable instructions for Chinese input. When the executable instructions are executed by a processor, the executable instructions direct the processor to implement the steps of the input method P100 of Chinese described in the present specification. In some possible implementation manners, various aspects of the present specification can also be implemented in the form of a program product, which includes program codes. When the program product runs on the electronic device 001, the program codes are used to make the electronic device 001 perform the steps of the input method P100 of Chinese described in the present specification. The program product for implementing the above method can include program codes in a portable compact disc read-only memory (CD-ROM) and can run on the electronic device 001. However, the program product of the present specification is not limited to this, and in the present specification, the readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium may, for example, be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the readable storage medium include an electrical connection having one or more wires, a portable disc, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer readable storage medium can include a data signal propagating in a baseband or as a carrier wave in a propagated signal, in which readable program codes are borne. Such a propagated data signal can take on many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium can also be any readable medium that is not a storage medium, which can send, propagate or transmit programs for use by or in connection with an instruction execution system, device or apparatus. The program codes contained on the readable storage medium can be transmitted in any suitable medium, including but not limited to wireless, wired, optical fiber, RF, and the like, or any suitable combination of the above. The program codes for performing the operations of the present specification can be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, C++, and the like, and a conventional procedural programming language such as the "C" language or a similar programming language. The program codes can be executed entirely on the electronic device 001, partially on the electronic device 001, as an independent software package, partially on the electronic device 001 and partially on a remote computing device, or entirely on a remote computing device.
[0136] The foregoing description of specific embodiments of the disclosure has been presented for the purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still accomplish the desired results. Additionally, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0137] In light of the above, those skilled in the art will appreciate that the foregoing detailed description of the present disclosure is susceptible to various modifications and / or revisions without departing from the spirit and scope of the present disclosure. Although specific embodiments have been described in detail, those skilled in the art will appreciate that various modifications and equivalents can be used without departing from the spirit and scope of the present disclosure. Accordingly, the disclosure is intended to embrace all such alterations, modifications, and variations that fall within the scope of the exemplary embodiments of the present disclosure.
[0138] In addition, certain terminology has been used to describe embodiments of the disclosure. For example, the terms "one embodiment" or "an embodiment" or "some embodiments" and / or "one specific embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the disclosure. The appearances of the phrase "in one embodiment" or "an embodiment" or "in at least one embodiment" in various places in the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics can be combined in any suitable manner on one or more embodiments without necessarily being included in a single implementation.
[0139] It should be understood that in the foregoing description of embodiments of the disclosure, various features can be combined in a single embodiment or in multiple embodiments of the disclosure. Such descriptions should be seen as but one embodiment of the disclosure and not as a way of practicing the disclosure. Moreover, not all of the features are necessarily required in every implementation. Thus, for example, the application can be practiced with less than all of these features. Additionally, some of these features can be implemented in software, hardware, firmware, or a combination thereof. Furthermore, unless specifically stated otherwise, embodiments of the present disclosure can be implemented in a single device or multiple devices.
[0140] Each patent, patent application, publication of a patent application, and other material, for example articles, books, specifications, publications, documents, things, or the like which can be cited in the present document can be accorded with the scope of their respective copyrights. The contents of all such cited patents, patent applications, publications of patent applications, and other material are hereby incorporated by reference herein, except that for any and all that can be dependent on the history of prosecution of any application incorporated herein by reference, to the extent that such history can be inconsistent with the term of this document now or hereafter associated with it. In the event of any such inconsistency, the term of this document controls. For example, if there is any discrepancy between what can be expressed herein as to the description, definition and / or use of terms associated with any incorporated material and what is expressed in the incorporated material, the term in this document controls.
[0141] Finally, it should be understood that the embodiments of the application disclosed herein are illustrative of the principles of the present specification. Other modifications that fall within the scope of the present specification can also be made. Accordingly, the present specification discloses embodiments only as examples. Those skilled in the art can attain alternative configurations of the application by making substitutions, alterations, and changes in light of the implementation of the application disclosed in the present specification without departing from the spirit of the present specification or the scope of the application. Therefore, the embodiments of the present specification are not limited to the embodiments precisely described in the application.
Claims
1. A Chinese input method, comprising: In response to a string input by a target user, at least one corresponding candidate option is generated and displayed, wherein the at least one candidate option includes at least one Chinese string corresponding to the string; The target user performs a target gesture operation on a target character, where the target character is a character in the string or at least one Chinese string. The target gesture operation is identified, and the target filtering conditions corresponding to the target gesture operation are determined. The mapping relationship between multiple gesture operations and multiple filtering objects is pre-stored. The multiple filtering objects include at least one of tone objects, stroke objects, retroflex and alveolar consonant objects, vowel objects, structural objects, word segmentation filtering, locking, and unlocking. The multiple gesture operations include the target gesture operation, and the multiple filtering objects include the target filtering conditions. as well as The candidate options are modified based on the target filtering criteria, and the modified target text is displayed.
2. The Chinese input method as described in claim 1, wherein, The string includes the pinyin corresponding to at least one Chinese character, and the pinyin includes either abbreviated pinyin or full pinyin.
3. The Chinese input method as described in claim 2, wherein, The string also includes at least one corresponding stroke of the at least one Chinese character.
4. The Chinese input method as described in claim 1, wherein, The generation and display of at least one corresponding candidate includes: Find and display at least one Chinese string that matches the given string from the database.
5. The Chinese input method as described in claim 4, wherein, The at least one candidate also includes the string.
6. The Chinese input method as described in claim 1, wherein, The step of acquiring the target user's target gesture operation on the target character includes: Acquire the target gesture operation; The target gesture operation is located to determine its starting position; The starting position is matched with the string or the at least one Chinese string to determine the target character corresponding to the target gesture operation.
7. The Chinese input method as described in claim 1, wherein, The step of recognizing the target gesture operation and determining the target filtering conditions corresponding to the target gesture operation includes: Based on preset trajectory recognition rules, the target gesture operation is identified to determine its target trajectory; and Based on the preset mapping relationship between filtering conditions and operation trajectories, the target filtering conditions corresponding to the target trajectory are determined, wherein the filtering conditions include the target filtering conditions, and the operation trajectory includes the target trajectory.
8. The Chinese input method as described in claim 7, wherein, The operation trajectory includes at least one of sliding and pressing operations.
9. The Chinese input method as described in claim 8, wherein, The sliding operation includes at least one of sliding operations in multiple directions and sliding operations of multiple lengths.
10. The Chinese input method as described in claim 8, wherein, The pressing operation includes pressing operations of multiple durations.
11. The Chinese input method as described in claim 7, wherein, The filtering criteria include at least one of tone filtering, stroke filtering, pinyin filtering, structure filtering, word segmentation filtering, and lock filtering.
12. The Chinese input method as described in claim 11, wherein, The word segmentation filtering includes splitting a pinyin string corresponding to a single Chinese character into pinyin strings corresponding to multiple Chinese characters.
13. The Chinese input method as described in claim 11, wherein, The locking filter includes locking or unlocking a selected object. Locking includes making the Chinese characters corresponding to the selected object unmodifiable, and unlocking includes releasing the locked selected object so that the corresponding Chinese characters can be modified.
14. The Chinese input method as described in claim 1, wherein, The step of modifying the candidate options based on the target filtering conditions and displaying the modified target text includes: Based on the target filtering conditions, target text that satisfies both the string and the target filtering conditions is matched from the database; and The candidate options are modified and displayed based on the target text.
15. An electronic device comprising: A human-computer interaction device is configured to receive a string input by a target user and a target gesture operation, and to display to the target user at least one candidate generated in response to the string and a modified target text generated in response to the target gesture operation; At least one storage medium storing at least one instruction set for Chinese input; as well as At least one processor is communicatively connected to the human-computer interaction device and the at least one storage medium. When the electronic device is running, the at least one processor reads the at least one instruction set and executes the Chinese input method according to any one of claims 1-14 according to the instructions of the at least one instruction set.
Citation Information
Patent Citations
Method and system for inputting content in electronic equipment with touch screen
CN103645851A
Candidate word updating method and device and electronic equipment
CN113359999A