Input correction method and device
By marking and replacing the character string to be corrected in the input method interface, the problem of long-term character correction during the input process is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202110491536.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-06
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-05-06
AI Technical Summary
The existing input method takes a long time to correct character during the input process, and the user experience is poor.
Provided an input correction method and device, by receiving a second character string input by a user in the first character string that has been inputted in the current input method interface, if the first character string includes a second character string, and the user input is received The third character string is marked with the corrected string associated with the second character string in the first character string, and the target corrected string is replaced with the third character string.
It reduces the time-consuming character correction during the input process and improves the user experience. Users do not need to delete the wrong characters one by one and re-enter, making the operation easier.
Smart Images

Figure CN113190125B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an input correction method and device. Background Art
[0002] With the increasing popularity of smart electronic devices, using electronic devices for communication has become a common habit. The system provides users with a variety of communication forms, such as text, voice, video, etc., among which the most commonly used is text communication. In order to better meet user needs, various input methods have emerged.
[0003] However, a common problem with the input schemes of various existing input methods is that users inevitably make mistakes when inputting. When inputting a complete string of characters, the keyboard may be accidentally touched due to typing too fast, resulting in wrong characters appearing in the string. If the user needs to modify the wrong character, the user needs to click the cursor to the position after the wrong character, delete the wrong character and re-enter the correct character, and then click the cursor again to the position after the last character of the string, that is, the end of the string to re-enter the character, etc. The operation is cumbersome, resulting in a long time spent in the input correction process and a poor user experience. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an input correction method and device that can solve the problem of time-consuming character correction during the input process.
[0005] In a first aspect, an embodiment of the present application provides an input correction method, the method comprising:
[0006] When the first character string has been input in the current input method interface, receiving a second character string input by the user;
[0007] In the case where the first character string includes the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string that is associated with the second character string;
[0008] The target character string to be corrected in the at least one character string to be corrected is replaced with the third character string.
[0009] In a second aspect, an embodiment of the present application provides an input correction device, the device comprising:
[0010] A first receiving module, used for receiving a second character string input by a user when a first character string has been input in the current input method interface;
[0011] a first marking module, configured to mark at least one character string to be corrected in the first character string that is associated with the second character string if a third character string input by a user is received when the first character string includes the second character string;
[0012] A replacement module is used to replace a target character string to be corrected in the at least one character string to be corrected with the third character string.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In the input correction method of the embodiment of the present application, when the first string has been entered in the current input method interface, the second string entered by the user can be received. When the second string is included in the first string, if the third string entered by the user is received, at least one string to be corrected in the first string that is associated with the second string can be marked for correction, and the target string to be corrected in at least one string to be corrected can be replaced with the third string later. That is, when the second string is included in the first string, the user can continue to enter the corrected third string, and then mark at least one string to be corrected, and replace the target string to be corrected in at least one string to be corrected with the third string, so as to achieve input correction without moving the cursor to the position of the string to be corrected to delete them one by one, and then re-enter the correct string, which can reduce the time consumption of character correction during the input process and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is one of the flow charts of the input correction method provided in the embodiment of the present application;
[0018] Figure 2 This is the second flow chart of the input correction method provided in the embodiment of the present application;
[0019] Figure 3It is one of the display interfaces of the electronic device provided in the embodiment of the present application;
[0020] Figure 4 This is the second display interface of the electronic device provided in the embodiment of the present application;
[0021] Figure 5 This is the third display interface of the electronic device provided in the embodiment of the present application;
[0022] Figure 6 This is the fourth display interface of the electronic device provided in the embodiment of the present application;
[0023] Figure 7 is a schematic diagram of an input correction device provided in an embodiment of the present application;
[0024] Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application.
[0025] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The input correction method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0029] like Figure 1 As shown, the present application provides an input correction method of an embodiment, the method comprising:
[0030] Step 101: When a first character string has been input in the current input method interface, receiving a second character string input by a user.
[0031] In user chat scenarios or other scenarios where content needs to be input, users can input content through input methods such as Pinyin input method. As an example, in the process of inputting content through Pinyin input method, not only the input Pinyin will be displayed, but also the text matched according to the Pinyin will be displayed. In this way, the user can select the required text in the text at the matching position to implement text input, etc. In this embodiment, in the current input method interface, the user has entered the first string, but there may be wrong characters in the first string due to mis-input, so it is necessary to correct the wrong characters in the first string that has been entered. During the correction process, the user can enter the second string based on the first string. It should be noted that the second string is the string entered after the last character of the first string. Among them, the first string and the second string each include at least one character. As an example, if the Pinyin input method is used for input, the strings in the embodiments of the present application are all Pinyin strings.
[0032] Step 102: When the first character string includes the second character string, if a third character string input by a user is received, at least one character string to be corrected in the first character string that is associated with the second character string is marked.
[0033] After receiving the second string input by the user, the second string can be compared with the input first string to determine whether the first string includes the second string. It should be noted that in the process of determining whether the first string includes the second string, the second string is detected as a whole in the first string.
[0034] In the case where the second string is included in the first string, it means that the second string has been input. At this time, the correction mode can be entered. If the third string (including at least one character) input by the user is subsequently accepted, the third string can be used as a replacement string to replace the string that needs to be corrected. In order to facilitate the user to view the correctable strings for correction and improve the correction efficiency, at least one string to be corrected associated with the second string in the first string can be marked when the third string input by the user is received. The first string may include at least one second string, and there may be more than one string to be corrected associated with the second string in the first string. In this way, at least one string to be corrected associated with the second string in the first string can be marked. It can be understood that the string that can be corrected in the first string is associated with the second string in the first string, that is, at least one string to be corrected in the first string can be determined by the second string, and any string to be corrected includes at least one character.
[0035] Step 103: replacing a target character string to be corrected in at least one character string to be corrected with a third character string.
[0036] After marking at least one character string to be corrected, correction can be performed by replacing the target character string to be corrected in the at least one character string to be corrected with a third character string, thereby correcting the target character string to be corrected in the first character string to the third character string, that is, implementing input correction.
[0037] In the input correction method of the embodiment of the present application, when the first string has been entered in the current input method interface, the second string entered by the user can be received. When the second string is included in the first string, if the third string entered by the user is received, at least one string to be corrected in the first string that is associated with the second string can be marked for correction, and the target string to be corrected in at least one string to be corrected can be replaced with the third string later. That is, when the second string is included in the first string, the user can continue to enter the corrected third string, and then mark at least one string to be corrected, and replace the target string to be corrected in at least one string to be corrected with the third string, so as to achieve input correction without moving the cursor to the position of the string to be corrected to delete them one by one, and then re-enter the correct string, which can reduce the time consumption of character correction during the input process and improve the user experience.
[0038] In one embodiment, after receiving the second character string input by the user, the method further includes:
[0039] Displaying first text information corresponding to the first character string and the second character string on the input method interface;
[0040] After receiving the third character string input by the user or replacing the target character string to be corrected in at least one character string to be corrected with the third character string, the method further includes:
[0041] The text information corresponding to the second character string is deleted from the first text information.
[0042] The first text information includes text information corresponding to the first character string and text information corresponding to the second character string. After the first character string is input, the text information corresponding to the first character string can be displayed. After the second character string is input, the text information corresponding to the second character string can also be displayed. Thus, after receiving the second character string, the first text information corresponding to the first character string and the second character string can be displayed in the current input method interface. In this way, it is convenient for users to view the text information corresponding to the character string and to find input errors.
[0043] As an example, after receiving the third string, the text information corresponding to the third string can be displayed in the input method interface. After replacing the target string to be corrected in at least one string to be corrected with the third string, the text information corresponding to the third string in the input method interface can be deleted, that is, the text information corresponding to the third string will not be displayed to avoid occupying the display space of the input method interface.
[0044] If the first character string includes the second character string, and the subsequent user continues to input characters, and a third character string input by the user is received, or a target character string to be corrected in at least one character string to be corrected is replaced with the third character string, it can be understood that the input second character string is used for correction prompt or correction trigger, and is not a normal input. In this way, after receiving the third character string input by the user or replacing the target character string to be corrected in at least one character string to be corrected with the third character string, the text information corresponding to the second character string in the first text information can be deleted to reduce the misleading of the text information to the user, avoid the user from determining whether the input is incorrect by checking the text information of the second character string, improve the accuracy of the input, and at the same time, allow the input method interface to have more display space to display other content.
[0045] In one embodiment, the first character string and the second character string are characters input in an input box of the input method interface. After receiving the second character string input by the user, the method further includes:
[0046] When the second character string input by the user meets the preset condition, the text information corresponding to the first character string is displayed on the input method interface, wherein the text information corresponding to the second character string is not displayed.
[0047] That is, in this embodiment, after receiving the first character string, if the second character string meets the preset conditions, it can be understood that the second character string meets the conditions for serving as a correction prompt or correction trigger, and the text information of the second character string is not required. The text information corresponding to the first character string can be displayed in the input method interface, and the text information corresponding to the second character string is not displayed, so as to avoid occupying the display space of the input method interface and facilitate the user to view other input content.
[0048] As an example, the above preset conditions may include but are not limited to at least one of the following:
[0049] No character input is received within a second preset time period after the input end time of the second character string;
[0050] The input time interval between characters in the second character string is greater than the third preset time length.
[0051] In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string comprises:
[0052] When a first input of marking a target character string to be corrected is received from the user within a first preset time after the target time, the target character string to be corrected in at least one character string to be corrected is replaced with a third character string, wherein the target time is the input end time of the third character string.
[0053] In this embodiment, a character string to be corrected can be selected from at least one character string to be corrected. To reduce the correction time and improve the correction efficiency, a first input can be made to the mark of the target character string to be corrected within a first preset time period after the third character string is input, and the target character string to be corrected in at least one character string to be corrected can be replaced with the third character string to achieve input correction.
[0054] In one embodiment, when the second string is included in the first string, the method further comprises:
[0055] Mark the second string in the first string.
[0056] That is, not only the character string to be corrected needs to be marked, but also the second character string in the first character string needs to be marked, which is helpful for prompting the second character string so as to locate the second character string, and thus, it is also helpful for prompting the characters around the second character string. It should be noted that after replacing the target character string to be corrected in at least one character string to be corrected with the third character string, the mark of the character string to be corrected can be deleted, and in addition, the mark of the second character string can also be deleted.
[0057] In one embodiment, at least one character string to be corrected includes:
[0058] At least one character string in the first character string that is associated with the position of the second character string and matches the third character string in similarity.
[0059] Position association may include adjacent positions, which may be after the position of the second string or before the position of the second string, etc. The smaller the number of different characters between the two strings, the more similar the strings are, and the greater the similarity. Conversely, the greater the difference, the less similar the strings are, and the smaller the similarity. The similarity between the two strings can be obtained by dividing the number of identical characters between the two strings by the number of characters in any of the two strings, and matching the similarity with the third string, which can be understood as the same number of characters as the third string and the number of different characters from the third string is less than the first preset number. For example, the first preset number can be selected as 2, etc. It should be noted that the comparison is performed with each character of the third string in the order of character positions, that is, the characters at the same position are compared. For example, the third string is "guai", the string to be compared is "huai", the characters at the first position are g and h, respectively, and the results are different. The characters at the second position are u and u, respectively, and the results are the same. The characters at the third position are a and a, respectively, and the results are the same. The characters at the fourth position are i and i, respectively, and the results are the same. That is, the number of characters with differences is 1.
[0060] It should be noted that the number of first strings can be at least one, and for a target second string (any second string) in at least one second string, if the string associated with the position of the target second string does not match the third string, the mark of the target second string can be deleted.
[0061] In one embodiment, marking at least one character string to be corrected in the first character string that is associated with the second character string includes at least one of the following:
[0062] Highlight at least one character string to be corrected;
[0063] Marking at least one character string to be corrected by a first marking pattern, wherein the character string to be corrected is located within the first marking pattern;
[0064] At least one character string to be corrected is marked by a marking button, and the marking button is located in a display area of the character string to be corrected in an input box of the input method interface.
[0065] It should be noted that the number of first marking graphics can be the same as the number of character strings to be corrected, each character string to be corrected corresponds to a first marking graphic, and a character string to be corrected is located in a corresponding first marking graphic. For example, the first marking graphic can be a marking box, such as an elliptical box, a rectangular box, a circular box, a polygonal box, etc. In addition, the color of the color highlight mark of at least one character string to be corrected can be the same or different. In addition to the color highlighting and the comparison through the first marking graphics, a marking button can also be displayed in the display area of the character string to be corrected in the input box of the input method interface, and the marking of at least one character string to be corrected can be achieved through the marking button. The above-mentioned first input can be an input to the marking button, for example, click input, etc.
[0066] The process of the above input correction method is described in detail below with a specific embodiment. The embodiment of the present application provides a text input solution for fast and uninterrupted correction of misspellings based on intelligent matching. During the input process, the previous string of the misspelled string and the correct string spelling are re-entered, and the corresponding input is intelligently matched and marked. Click the corresponding mark to implement fast replacement correction. Taking the Pinyin input method and the string as a Pinyin string as an example, Figure 2 As shown, the process of inputting the correction method is as follows:
[0067] Step 201. In a user chat scenario or other scenario, a first character string is input in a current input method interface using a pinyin input method, and text information corresponding to the first character string is displayed.
[0068] Step 202: The user independently determines whether there is any incorrect pinyin spelling input in the first character string. If yes, proceed to step 203; otherwise, proceed directly to step 209.
[0069] Step 203. When the user determines that there is an incorrect pinyin input, he does not need to click to move the cursor to the incorrect pinyin input position, but only needs to continue to enter the previous pinyin string of the incorrect pinyin spelling. For example, if the user plans to enter "tashinajiagongsideyeshiguairen" in the input interface 210, the result is "tashinajiagongsideyeshihuairen". Figure 3 As shown in the figure, "guai" is mistakenly entered as "huai". The user does not need to move the cursor, but only needs to continue to enter the previous string "shi" (corresponding to the second string). Figure 4 shown.
[0070] Step 204. The system will automatically match all the strings in the currently entered first string that are the same as the re-entered pinyin spelling, i.e., the second string, and highlight them in color. The system can enter the correction mode. Taking step 203 as an example, the "shi" in "shihuairen" and the "shi" in "shinajia" will be highlighted in color. Figure 4 shown.
[0071] Step 205. Continue to enter the correct pinyin spelling. Taking step 204 as an example, continue to enter "guairen", which corresponds to the third character string, such as Figure 5 shown.
[0072] Step 206. The system continues to perform similarity verification based on the third string input by the re-pinyin spelling and the string associated with the spelling of the original mark, that is, the second string position, to determine at least one string to be corrected and mark it. For example, if the similarity is greater than a certain threshold, the highlight mark is extended, otherwise the original highlight mark is cancelled. Continuing with step 205 as an example, "guairen" is re-entered, and the system performs similarity matching with "huairen" and "najiago". It is found that the similarity of "huairen" reaches 85.7% (6 of the 7 characters are the same, and the result of 6 divided by 7 is 85.7%), while the similarity of "najiago" is only 14.3%, so "huairen" can be marked, and the highlight mark is extended to "shihuairen", and the original "shi" highlight mark of "shinajia" is cancelled, and "huairen" is the target string to be corrected. The preset threshold of similarity can be 50%, that is, the similarity between the character string to be corrected and the third character string should be greater than the preset threshold. Subsequently, as the frequency of use increases, the system continuously matches and learns, and trains to generate a more reasonable threshold.
[0073] Step 207 . The system determines whether the highlight mark of the target character string to be corrected is clicked within the first preset time length, such as whether the user clicks the highlight mark within 5 seconds. If yes, the system proceeds to step 208 , otherwise, the system directly proceeds to step 209 .
[0074] Step 208. The system replaces the highlighted target character string to be corrected with the re-spelled third character string, and may delete the second character string and the third character string, that is, delete the subsequent re-entered "shiguairen", such as Figure 6 shown.
[0075] Step 209: The user continues the current input without interruption.
[0076] Through the input correction method of the embodiment of the present application, the user can quickly replace and correct the erroneous input by clicking the intelligently matched mark without interrupting the current input and without affecting the continuity of the user input, thereby greatly improving the user's input speed and input experience.
[0077] like Figure 7 As shown, an input correction device 700 of an embodiment is provided, and the device 700 includes:
[0078] The first receiving module 701 is used to receive a second character string input by a user when a first character string has been input in the current input method interface;
[0079] A first marking module 702 is configured to mark at least one character string to be corrected in the first character string that is associated with the second character string if a third character string input by a user is received when the first character string includes the second character string;
[0080] The replacement module 703 is configured to replace a target character string to be corrected in at least one character string to be corrected with a third character string.
[0081] In one embodiment, the apparatus further comprises:
[0082] A first display module, configured to display first text information corresponding to the first character string and the second character string on the input method interface after receiving the second character string input by the user;
[0083] The deleting module is used to delete the text information corresponding to the second character string in the first text information after receiving the third character string input by the user or replacing the target character string to be corrected in at least one character string to be corrected with the third character string.
[0084] In one embodiment, the first character string and the second character string are characters input in an input box of an input method interface;
[0085] The device also includes:
[0086] The second display module is used to receive the second character string input by the user, and if the second character string input by the user meets the preset condition, display the text information corresponding to the first character string on the input method interface, wherein the text information corresponding to the second character string is not displayed.
[0087] In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string comprises:
[0088] When a first input of marking a target character string to be corrected is received from the user within a first preset time after the target time, the target character string to be corrected in at least one character string to be corrected is replaced with a third character string, wherein the target time is the input end time of the third character string.
[0089] In one embodiment, the apparatus further comprises:
[0090] The second marking module is used to mark the second character string in the first character string when the second character string is included in the first character string.
[0091] In one embodiment, at least one character string to be corrected includes:
[0092] At least one character string in the first character string that is associated with the position of the second character string and matches the third character string in similarity.
[0093] In one embodiment, marking at least one character string to be corrected in the first character string that is associated with the second character string includes at least one of the following:
[0094] Highlight at least one character string to be corrected;
[0095] Marking at least one character string to be corrected by a first marking pattern, wherein the character string to be corrected is located within the first marking pattern;
[0096] At least one character string to be corrected is marked by a marking button, and the marking button is located in a display area of the character string to be corrected in an input box of the input method interface.
[0097] The input correction device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0098] The input correction device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0099] The input correction device provided in the embodiment of the present application can implement each process implemented in the above-mentioned input correction method embodiment, for example, it can implement Figure 1 and Figure 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0100] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned input correction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0101] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0102] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0103] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.
[0104] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0105] The user input unit 907 is used to receive a second character string input by a user when a first character string has been input in the current input method interface;
[0106] The processor 910 is configured to mark at least one character string to be corrected in the first character string that is associated with the second character string if a third character string input by a user is received when the first character string includes the second character string;
[0107] The processor 910 is configured to replace a target character string to be corrected in at least one character string to be corrected with a third character string.
[0108] In one embodiment, the display unit 906 is configured to display first text information corresponding to the first character string and the second character string on the input method interface after receiving the second character string input by the user;
[0109] The processor 910 is configured to delete text information corresponding to the second character string in the first text information after receiving a third character string input by a user or replacing a target character string to be corrected in at least one character string to be corrected with the third character string.
[0110] In one embodiment, the first character string and the second character string are characters input in an input box of an input method interface;
[0111] The display unit 906 is configured to, after receiving the second character string input by the user, display text information corresponding to the first character string in the input method interface if the second character string input by the user meets a preset condition, wherein the text information corresponding to the second character string is not displayed.
[0112] In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string comprises:
[0113] When a first input of marking a target character string to be corrected is received from the user within a first preset time after the target time, the target character string to be corrected in at least one character string to be corrected is replaced with a third character string, wherein the target time is the input end time of the third character string.
[0114] In one embodiment, the processor 910 is configured to mark the second character string in the first character string when the second character string is included in the first character string.
[0115] In one embodiment, at least one character string to be corrected includes:
[0116] At least one character string in the first character string that is associated with the position of the second character string and matches the third character string in similarity.
[0117] In one embodiment, marking at least one character string to be corrected in the first character string that is associated with the second character string includes at least one of the following:
[0118] Highlight at least one character string to be corrected;
[0119] Marking at least one character string to be corrected by a first marking pattern, wherein the character string to be corrected is located within the first marking pattern;
[0120] At least one character string to be corrected is marked by a marking button, and the marking button is located in a display area of the character string to be corrected in an input box of the input method interface.
[0121] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.
[0122] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned input correction method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0123] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0124] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned input correction method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0125] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0126] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0128] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An input correction method, the method comprising: When the first character string has been input in the current input method interface, receiving a second character string input by the user; In the case where the first character string includes the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string that is associated with the second character string; replacing a target character string to be corrected in the at least one character string to be corrected with the third character string; The at least one character string to be corrected comprises: At least one character string in the first character string that is associated with the position of the second character string and matches the third character string in similarity.
2. The method according to claim 1, characterized in that After receiving the second character string input by the user, the method further includes: Displaying first text information corresponding to the first character string and the second character string on the input method interface; After receiving the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the method further includes: The text information corresponding to the second character string is deleted from the first text information.
3. The method according to claim 1, characterized in that The first character string and the second character string are characters input in an input box of an input method interface. After receiving the second character string input by a user, the method further includes: When the second character string input by the user meets a preset condition, text information corresponding to the first character string is displayed on the input method interface, wherein the text information corresponding to the second character string is not displayed.
4. The method according to claim 1, characterized in that The step of replacing the target character string to be corrected in the at least one character string to be corrected with the third character string comprises: When a first input of marking the target character string to be corrected by the user is received within a first preset time after the target time, the target character string to be corrected in the at least one character string to be corrected is replaced with the third character string, wherein the target time is the input end time of the third character string.
5. The method according to claim 1, characterized in that In the case where the first character string includes the second character string, the method further includes: The second character string in the first character string is marked.
6. An input correction device, comprising: A first receiving module, used for receiving a second character string input by a user when a first character string has been input in the current input method interface; a first marking module, configured to mark at least one character string to be corrected in the first character string that is associated with the second character string if a third character string input by a user is received when the first character string includes the second character string; A replacement module, used for replacing a target character string to be corrected in the at least one character string to be corrected with the third character string; The at least one character string to be corrected comprises: At least one character string in the first character string that is associated with the position of the second character string and matches the third character string in similarity.
7. The device according to claim 6, characterized in that The device also includes: A first display module, configured to display first text information corresponding to the first character string and the second character string on the input method interface after receiving the second character string input by the user; The deleting module is configured to delete the text information corresponding to the second character string in the first text information after receiving the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
8. The device according to claim 6, characterized in that The first character string and the second character string are characters input in an input box of an input method interface; The device also includes: The second display module is used for displaying text information corresponding to the first string in the input method interface after receiving the second string input by the user, if the second string input by the user meets a preset condition, wherein the text information corresponding to the second string is not displayed.
9. The device according to claim 6, characterized in that The step of replacing the target character string to be corrected in the at least one character string to be corrected with the third character string comprises: When a first input of marking the target character string to be corrected by the user is received within a first preset time after the target time, the target character string to be corrected in the at least one character string to be corrected is replaced with the third character string, wherein the target time is the input end time of the third character string.
10. The device according to claim 6, characterized in that The device also includes: The second marking module is configured to mark the second character string in the first character string when the second character string is included in the first character string.
Citation Information
Patent Citations
Method for replacing character by input method and client
CN102945113A
Character string input control method and device
CN104246663A