Text screening method and device, storage medium and electronic equipment

By using a method that filters strokes based on candidate characters in the input method, the process of selecting target characters from a set of candidate characters is simplified, solving the problem of inconvenience caused by too many candidate characters in the existing technology and improving the convenience of the input method.

CN119828900BActive Publication Date: 2025-11-18BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411376779.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-11-18
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

Existing input methods have too many candidate characters when inputting Pinyin, which makes it inconvenient for users to manually flip through pages or click to expand the list.

Method used

By responding to the user's text input, the system displays a first set of candidate characters and processes them based on stroke count to obtain a second set of candidate characters. The user can then confirm the target character through the text confirmation operation.

Benefits of technology

It simplifies the process for users to select from candidate text, avoids frequent swiping or page switching, and improves the convenience of input.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119828900B_ABST
    Figure CN119828900B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a character screening method and device, a storage medium and an electronic device. The method comprises: in response to a character input operation input by a user, displaying a first candidate character set, determining a candidate character screening stroke input by the user, performing character screening processing on the first candidate character set based on the candidate character screening stroke to obtain a second candidate character set, and in response to a character confirmation operation on the second candidate character set, determining a target character. Since there are many candidate characters matched according to the character input operation in the first candidate character set, the first candidate character set is screened through the candidate character screening stroke, the second candidate character set meeting the candidate character screening stroke is screened from the many candidate characters matched with the character input operation, so that the user can quickly select the desired input character from the many candidate characters with the same partial stroke, and the convenience of character input of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a text filtering method, apparatus, storage medium, and electronic device. Background Technology

[0002] An input method is a software tool used to input natural language text into computers or mobile devices. With the advent of the digital age, input methods support an increasing number of text input functions, such as Pinyin input, handwriting recognition input, and voice recognition input. In related technologies, input methods not only support multiple input methods but also multilingual input, providing users with convenient and rich input features. Summary of the Invention

[0003] This application provides a text filtering method, apparatus, computer storage medium, and electronic device. The technical solution is as follows:

[0004] In a first aspect, embodiments of this application provide a text filtering method, the method comprising:

[0005] In response to the user's text input, display the first set of candidate texts;

[0006] Determine the candidate character selection strokes input by the user, perform character selection processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and display the second candidate character set;

[0007] In response to a text confirmation operation on the second set of candidate characters, the target character is determined.

[0008] In some possible implementations, after performing text filtering processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and displaying the second candidate character set, the method further includes:

[0009] Determine the stroke order for the next candidate character selection by the user for the second candidate character set;

[0010] The next candidate character selection stroke is used as the candidate character selection stroke, and the second candidate character set is used as the first candidate character set. The steps of performing character selection processing on the first candidate character set based on the candidate character selection stroke to obtain the second candidate character set and displaying the second candidate character set are then performed.

[0011] In some possible implementations, determining the candidate character filtering strokes input by the user includes:

[0012] Receive a key selection operation for a target key and determine the candidate character selection strokes corresponding to the key selection operation.

[0013] In some possible implementations, receiving a key selection operation for a target key and determining the candidate character selection strokes corresponding to the key selection operation includes:

[0014] Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

[0015] In some possible implementations, receiving a key selection operation for a target key and determining the candidate character selection strokes corresponding to the key selection operation includes:

[0016] Receive a first key selection operation for a preset stroke key position, and perform text filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set;

[0017] Based on the third candidate character set, a reference stroke is determined, and based on the reference stroke, the preset stroke key position is updated to obtain the updated preset stroke key position, and the updated preset stroke key position is displayed.

[0018] Receive a second key selection operation for the updated preset stroke key position, and determine the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

[0019] In some possible implementations, the method further includes: setting a stroke input area in the user interface;

[0020] The step of determining the stroke order of the candidate characters input by the user includes:

[0021] Receive the stroke input operation entered by the user in the stroke input area, and determine the candidate character filtering strokes.

[0022] In some possible implementations, displaying a first set of candidate characters in response to a user's text input operation includes:

[0023] In response to a user's text input operation, the target character corresponding to the text input operation is obtained;

[0024] A first set of candidate characters is determined for the target character, and the first set of candidate characters is displayed.

[0025] In some possible implementations, the step of performing text filtering processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and displaying the second candidate character set, includes:

[0026] Determine the character composition structure corresponding to the strokes used in the candidate character selection process;

[0027] Based on the character composition structure, target candidate characters are matched in the first candidate character set, and a second candidate character set is determined based on the target candidate characters, and the second candidate character set is displayed.

[0028] Secondly, embodiments of this application provide a text filtering device, the device comprising:

[0029] The first filtering module is used to respond to the user's text input operation and display the first set of candidate texts;

[0030] The second filtering module is used to determine the candidate character filtering strokes input by the user, perform character filtering processing on the first candidate character set based on the candidate character filtering strokes to obtain a second candidate character set, and display the second candidate character set;

[0031] The third filtering module is used to determine the target text in response to the text confirmation operation for the second candidate text set.

[0032] Optionally, the text filtering device further includes:

[0033] The stroke selection determination module is used to determine the stroke selection for the next candidate character in the second candidate character set by the user.

[0034] The candidate text filtering module takes the next candidate text filtering stroke as the candidate text filtering stroke, and takes the second candidate text set as the first candidate text set, and performs the step of filtering the first candidate text set based on the candidate text filtering stroke to obtain the second candidate text set, and displays the second candidate text set.

[0035] Optionally, the second filtering module includes:

[0036] The first stroke determination unit is used to receive a key selection operation for a target key and determine the candidate character filtering strokes corresponding to the key selection operation.

[0037] Optionally, the first stroke determination unit is specifically used for:

[0038] Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

[0039] Optionally, the first stroke determination unit is specifically used for:

[0040] Receive a first key selection operation for a preset stroke key position, and perform text filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set;

[0041] Based on the third candidate character set, a reference stroke is determined, and based on the reference stroke, the preset stroke key position is updated to obtain the updated preset stroke key position, and the updated preset stroke key position is displayed.

[0042] Receive a second key selection operation for the updated preset stroke key position, and determine the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

[0043] Optionally, the text filtering device is further configured to: set a stroke input area in the user interface; the second filtering module includes:

[0044] The first stroke determination unit is used to receive the stroke input operation entered by the user in the stroke input area and determine the candidate character filtering strokes.

[0045] Optionally, the first filtering module includes:

[0046] A character determination unit is used to obtain the target character corresponding to the text input operation in response to the user's text input operation;

[0047] The text determination unit is used to determine a first set of candidate texts for the target character and to display the first set of candidate texts.

[0048] Optionally, the second filtering module includes:

[0049] A character composition determination unit is used to determine the character composition structure corresponding to the strokes of the candidate character selection;

[0050] The candidate text filtering unit is used to match target candidate texts in the first candidate text set based on the text composition structure, and to determine a second candidate text set based on the target candidate texts.

[0051] Thirdly, embodiments of this application provide a computer storage medium having multiple instructions adapted for loading and executing the methods described above by a processor.

[0052] Fourthly, embodiments of this application provide an electronic device, which may include: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the memory and to execute the above-described method.

[0053] The beneficial effects of the technical solutions provided in this application include at least the following:

[0054] The text filtering method provided in this application first responds to the user's text input operation by displaying a first set of candidate characters. Then, it determines the selection strokes of the candidate characters input by the user, and performs text filtering on the first set of candidate characters based on these selection strokes to obtain a second set of candidate characters. Finally, it responds to a text confirmation operation on the second set of candidate characters to determine the target character. Since the first set of candidate characters is determined based on the text input operation, it contains many candidate characters that match the text input operation. By determining the selection strokes of the candidate characters input by the user and filtering the first set of candidate characters, a second set of candidate characters matching the selection strokes can be selected from among many candidate characters that match the text input operation. This allows users to quickly select the desired text from many candidate characters with partially identical strokes, avoiding the cumbersome text input operation caused by users frequently scrolling through the candidate text list or switching pages to expand the candidate text list, thus improving the convenience of text input for users. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a schematic diagram illustrating an application scenario of a text filtering method provided in an embodiment of this application;

[0057] Figure 2 This is a flowchart illustrating a text filtering method provided in an embodiment of this application;

[0058] Figure 3 This is a flowchart illustrating another text filtering method provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of a virtual keyboard provided in an embodiment of this application;

[0060] Figure 5 This is a schematic diagram illustrating a method for switching between displaying a first candidate text set and a second candidate text set, as provided in an embodiment of this application.

[0061] Figure 6 This is a flowchart illustrating another text filtering method provided in the embodiments of this application;

[0062] Figure 7 This is a schematic diagram of another virtual keyboard provided in an embodiment of this application;

[0063] Figure 8 This is a schematic diagram of the structure of a text filtering device provided in an embodiment of this application;

[0064] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0065] To make the inventive objectives, features, and advantages of the embodiments of this application more apparent and understandable, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0066] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise expressly specified and limited, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0067] In related technologies, when using Pinyin input to input text in an input method, since there are many Chinese characters with the same Pinyin, the input method usually cannot directly display all candidate characters after the user inputs Pinyin. Users often need to manually flip through pages to display more candidate characters, or click to expand the list to display more candidate characters. Therefore, the Pinyin input method in the input method has the problem of inconvenience.

[0068] To address the aforementioned technical problems, this application will be described in detail below with reference to specific embodiments.

[0069] Please see Figure 1 This is a schematic diagram illustrating an application scenario of a text filtering method provided in an embodiment of this application. For example... Figure 1 As shown, the application scenarios of this text filtering method can include at least a client cluster and a server 100.

[0070] In some embodiments, the client cluster may include at least one client, such as Figure 1 As shown, it specifically includes client 1 corresponding to user 1, client 2 corresponding to user 2, ..., client n corresponding to user n, where n is an integer greater than 0.

[0071] Each client in a client cluster can be an electronic device with communication capabilities, including but not limited to: wearable devices, handheld devices, personal computers, tablets, in-vehicle devices, smartphones, computing devices, or other processing devices connected to a wireless modem. Electronic devices may have different names in different networks, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), and electronic devices in 5G networks or future evolved networks.

[0072] In this embodiment of the application, when the electronic device performs the text filtering method, it specifically performs the following steps: in response to the text input operation input by the user, a first candidate text set is displayed; the candidate text filtering strokes input by the user are determined, and the first candidate text set is processed based on the candidate text filtering strokes to obtain a second candidate text set, and the second candidate text set is displayed; in response to the text confirmation operation for the second candidate text set, the target text is determined.

[0073] For example, an electronic device is equipped with input method software. When a user inputs text through the input method software, the electronic device can obtain a second set of candidate texts through the above-mentioned text filtering method, so that the user can perform a text confirmation operation in the second set of candidate texts to determine the target text.

[0074] Server 100 can be a standalone server device, such as a rack-mount, blade, tower, or cabinet-type server device, or a workstation, mainframe, or other hardware device with strong computing power; it can also be a server cluster composed of multiple servers, wherein the servers in the service cluster can be composed in a symmetrical manner, wherein each server is functionally and hierarchically equivalent in the transaction link, and each server can provide services to the outside world independently, wherein providing services independently can be understood as not requiring the assistance of other servers.

[0075] In this embodiment of the application, server 100 may specifically be a backend server for input method software.

[0076] In some embodiments, server 100 can establish a communication connection with at least one client in the client cluster to complete data interaction during the text filtering process. For example, in response to a user's text input operation, the electronic device displays a first candidate text set by sending the user's text input operation to the server, the server determining the first candidate text set based on the text input operation and feeding it back to the electronic device, which then displays the first candidate text set. As another example, the electronic device performs text filtering on the first candidate text set based on the candidate text filtering strokes to obtain a second candidate text set and displays the second candidate text set by sending the candidate text filtering strokes to the server, so that the server performs text filtering on the first candidate text set based on the candidate text filtering strokes to obtain the second candidate text set, the server feeding the second candidate text set back to the electronic device, and then the electronic device displays the first candidate text set.

[0077] In some other embodiments, the first candidate text set may also be determined by the electronic device (without server determination), and then the electronic device displays the first candidate text set. The second candidate text set may also be determined by the electronic device (without server determination), and then the electronic device displays the second candidate text set.

[0078] It should be noted that server 100 establishes a communication connection with at least one client in the client cluster to conduct interactive communication. This network can be a wireless network or a wired network. Wireless networks include, but are not limited to, cellular networks, wireless LANs, infrared networks, or Bluetooth networks. Wired networks include, but are not limited to, Ethernet, universal serial bus (USB), or controller area networks. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network (such as target compressed packets). Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.

[0079] In one embodiment, such as Figure 2 As shown, a text filtering method is proposed, which can be implemented using a computer program and can run on a text filtering device based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone utility application.

[0080] Specifically, the text filtering method is executed by an electronic device, and the text filtering method includes:

[0081] S202, in response to the user's text input operation, display the first candidate text set.

[0082] Text input refers to the operation of entering characters in input method software. Input method software has various text input methods, and the meaning of the characters entered differs depending on the input method. For example, using Pinyin input, the characters entered are Pinyin characters; using Wubi input, the characters entered are radical characters.

[0083] The first candidate character set refers to the set of candidate characters that match the input characters indicated by the text input operation. For example, when inputting Pinyin characters using the Pinyin input method, the first candidate character set includes candidate characters that match the Pinyin characters; similarly, when inputting radical characters using the Wubi input method, the first candidate character set includes candidate characters that match the radical characters.

[0084] Understandably, in scenarios where the first candidate text set includes candidate text matched by pinyin characters, the candidate text matched by pinyin characters can be candidate Chinese characters with the same pinyin, or candidate English characters corresponding to candidate Chinese characters with the same pinyin, where the candidate English characters are the English translations of the candidate Chinese characters. For example, taking the 26-key input method in input software as an example, when the user inputs pinyin characters including: h, a, o, then it can be determined that the pinyin indicated by the pinyin characters is hao. Therefore, it can match candidate Chinese characters with the pinyin hao, and it can also match candidate English characters corresponding to the pinyin hao. For example, taking the input method software with fewer than 26 keys as an example, such as the 9-key input method, when the user clicks the "GHI" key, "ABC" key, and "MNO" key, in response to the key click, the software can determine the candidate pinyin characters in the combinations of "gan", "gao", "han", "hao", "ga", and "ha". When the user selects any of the above candidate pinyin characters, the selected candidate pinyin character can be determined as the pinyin character entered by the user. For example, if the pinyin character entered by the user is "hao", and the determined pinyin character indicates the pinyin as "hao", then the software can match candidate Chinese characters with the pinyin "hao" and also match candidate English characters corresponding to the pinyin "hao".

[0085] In some embodiments, the execution of S202 may specifically involve: responding to a user's text input operation, obtaining the target character corresponding to the text input operation; determining a first candidate character set for the target character, and displaying the first candidate character set. Here, the target character is the input character indicated by the text input operation, that is, the target character is the character input by the user, and the target character may include at least one input character. When the input character is a pinyin character, the target character may include at least one pinyin character; when the input character is a radical character, the target character may include at least one radical character.

[0086] S204, determine the candidate character selection strokes input by the user, perform character selection processing on the first candidate character set based on the candidate character selection strokes to obtain the second candidate character set, and display the second candidate character set.

[0087] Among them, the candidate character selection strokes refer to the strokes used to select specific characters from the first candidate character set. The candidate character selection strokes can include at least one Chinese character stroke. The candidate character selection strokes can include at least one of the basic Chinese character strokes and the compound Chinese character strokes. The basic Chinese character strokes can include dot, horizontal, vertical, left-falling, right-falling, rising, turning, and hook. The compound Chinese character strokes can be compound strokes derived from the basic Chinese character strokes.

[0088] The second candidate character set refers to the set of candidate characters in the first candidate character set that have the same stroke count as the candidate character selection criteria.

[0089] In some embodiments, determining the candidate character filtering strokes input by the user can be achieved by: receiving a key selection operation for a target key and determining the candidate character filtering strokes corresponding to the key selection operation. The target key may be configured with basic Chinese character strokes and / or compound Chinese character strokes. It is understood that when the key selection operation is performed on one target key, the determined candidate character filtering strokes include one Chinese character stroke; when the key selection operation is performed on multiple target keys, the determined candidate character filtering strokes include multiple Chinese character strokes.

[0090] In some other embodiments, determining the candidate character selection strokes input by the user can be achieved by receiving a stroke drawing operation input by the user in a designated stroke drawing area, and then determining the candidate character selection strokes. The designated stroke drawing area can be a fixed stroke drawing area or a movable stroke drawing area. It is understood that when the stroke drawing operation is to draw a single Chinese character stroke, the candidate character selection strokes include that single Chinese character stroke; when the stroke drawing operation is to draw multiple Chinese character strokes, the candidate character selection strokes include multiple Chinese character strokes.

[0091] The second candidate character set can be determined as follows: determine the character composition structure corresponding to the strokes of the candidate characters; match the target candidate characters in the first candidate character set based on the character composition structure; and determine the second candidate character set based on the target candidate characters.

[0092] The second candidate text set can be displayed in the text display area of ​​the input interface. It's understood that the total number of candidate characters in the second candidate text set can be less than a preset threshold, equal to the preset threshold, or greater than the preset threshold, where the preset threshold is the maximum number of characters that can be displayed in the text display area. In scenarios where the total number of candidate characters in the second candidate text set exceeds the preset threshold, a sliding display method can be used. In this case, a slider control can be configured in the text display area. When a user touches the slider control, the display area can switch between displaying candidate characters from the second candidate text set. When no user touches the slider control, a portion of the candidate characters from the second candidate text set remains displayed in the text display area, with the number of these partial candidate characters equal to the preset threshold. In scenarios where the total number of candidate characters in the second candidate character set exceeds a preset threshold, an expanded list can be used to display the second candidate character set. In this case, an expanded list control can be configured in the text display area. When a user performs a touch operation on the expanded list control, the area of ​​the text display area can be increased to display the second candidate character set in list form. When no user performs a touch operation on the expanded list control, a portion of the candidate characters in the second candidate character set will remain displayed in the text display area, and the number of the partial candidate characters will be equal to the preset threshold.

[0093] Optionally, after executing step S204, the next candidate character selection stroke for the second candidate character set can be determined; the next candidate character selection stroke is used as the candidate character selection stroke in S204, and the second candidate character set is used as the first candidate character set in S204, and step S204 is executed. Here, the next candidate character selection stroke refers to the candidate character selection stroke entered by the user again after the second candidate character set is displayed to the user. The user's input of the next candidate character selection stroke is intended to instruct the electronic device to perform character selection processing on the second candidate character set based on the next candidate character selection stroke to obtain a new second candidate character set, and to display the new second candidate character set. Therefore, after displaying the second candidate character set to the user, it is possible to detect whether there is a next candidate character selection stroke input by the user for the second candidate character set. After determining the next candidate character selection stroke input by the user for the second candidate character set, the next candidate character selection stroke is used as the candidate character selection stroke in S204, and the second candidate character set is used as the first candidate character set in S204. Step S204 can be executed again to display a new second candidate character set based on the new candidate character selection stroke input by the user, so that the user can quickly select the desired input text. However, if the user does not input a candidate character selection stroke after displaying the second candidate character set, the following steps are canceled: determining the next candidate character selection stroke input by the user for the second candidate character set, using the next candidate character selection stroke as the candidate character selection stroke in S204, and using the second candidate character set as the first candidate character set in S204, and executing step S204. Until a text confirmation operation is received from the user for the second candidate character set, the following step S206 is executed.

[0094] S206, in response to the text confirmation operation for the second candidate text set, determine the target text.

[0095] The "text confirmation" operation refers to the confirmation operation of selecting a candidate text from the second candidate text set. The target text is the candidate text selected in the text confirmation operation.

[0096] In some embodiments, a user-inputted text confirmation operation for a second set of candidate characters can be received. Specifically, the text confirmation operation can be a single touch on a candidate character, or it can be multiple touches on a candidate character. Upon receiving the text confirmation operation, the candidate character indicated by the text confirmation operation can be determined as the target character.

[0097] The text filtering method provided in this application first responds to the user's text input operation by displaying a first set of candidate characters. Then, it determines the selection strokes of the candidate characters input by the user, and performs text filtering on the first set of candidate characters based on these selection strokes to obtain a second set of candidate characters. Finally, it responds to a text confirmation operation on the second set of candidate characters to determine the target character. Since the first set of candidate characters is determined based on the text input operation, it contains many candidate characters that match the text input operation. By determining the selection strokes of the candidate characters input by the user and filtering the first set of candidate characters, a second set of candidate characters matching the selection strokes can be selected from among many candidate characters that match the text input operation. This allows users to quickly select the desired text from many candidate characters with partially identical strokes, avoiding the cumbersome text input operation caused by users frequently scrolling through the candidate text list or switching pages to expand the candidate text list, thus improving the convenience of text input for users.

[0098] Please see below. Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the text filtering method proposed in this application.

[0099] Specifically, the text filtering method is executed by an electronic device, and the text filtering method includes:

[0100] S302, in response to the user's text input operation, obtain the target character corresponding to the text input operation.

[0101] In some embodiments, the text input operation performed by the user in the input interface of the input method can obtain the target character indicated by the text input operation in response to the user's text input operation. For example, in a scenario where the text input operation is performed using the Pinyin input method, the target character may include at least one Pinyin character. As another example, in a scenario where the text input operation is performed using the Wubi input method, the target character may include at least one radical character.

[0102] S304, determine the first candidate text set for the target character, and display the first candidate text set.

[0103] In some embodiments, the target character can be a pinyin character. Specifically, determining the first candidate character set for the pinyin character can be: determining the target pinyin indicated by the pinyin character, and matching the first candidate character set corresponding to the target pinyin in a dictionary. The pinyin corresponding to each candidate character in the first candidate character set is the target pinyin. The dictionary can include a local dictionary and a cloud-based dictionary. The local dictionary can include user-preferred words determined based on the user's historical input operations, and the cloud-based dictionary can include words determined based on big data from the internet.

[0104] Specifically, the first candidate text set matching the target pinyin in the lexicon can be: searching for candidate Chinese characters with the target pinyin in the lexicon to determine the first candidate text set including the candidate Chinese characters; or, it can be: searching for the candidate English corresponding to the Chinese character with the target pinyin in the lexicon to determine the first candidate text set including the candidate English; or, it can also be: searching for candidate Chinese characters with the target pinyin in the lexicon and searching for the candidate English corresponding to the Chinese character with the target pinyin in the lexicon to determine the first candidate text set including the candidate Chinese characters and the candidate English. For example, when it is determined that the target pinyin is "hao", it can be determined that the candidate Chinese characters include: good, number, pull out, consume, grand, millimeter, vast, Hao, etc.; when it is determined that the target pinyin is "hao", it can be determined that the Chinese character with the target pinyin "hao" is "good", then it can be determined that the candidate English corresponding to "good" includes: ok, OK, nice, fine, etc.

[0105] In some embodiments, displaying the first candidate text set can be specifically implemented as: displaying the first candidate text set in the text display area of the input interface. It can be understood that the number of all candidate texts in the first candidate text set can be less than the preset quantity threshold, the number of all candidate texts in the first candidate text set can also be equal to the preset quantity threshold, and the number of all candidate texts in the first candidate text set can also be greater than the preset quantity threshold, where the preset quantity threshold is the maximum number of texts that can be displayed in the text display area. In the scenario where the number of all candidate texts in the first candidate text set is greater than the preset quantity threshold, a sliding display method can be adopted to display the first candidate text set. At this time, a scroll bar control can be configured in the text display area. When receiving a touch operation of the user on the scroll bar control, the candidate texts in the first candidate text set can be switched and displayed in the text display area, and when not receiving a touch operation of the user on the scroll bar control, a part of the candidate texts in the first candidate text set are kept displayed in the text display area, and the number of the part of the candidate texts is equal to the preset quantity threshold. In the scenario where the number of all candidate texts in the first candidate text set is greater than the preset quantity threshold, the first candidate text set can also be displayed in the form of an expanded list. At this time, an expanded list control can be configured in the text display area. When receiving a touch operation of the user on the expanded list control, the area of the text display area can be increased to display the first candidate text set in the form of a list, and when not receiving a touch operation of the user on the expanded list control, a part of the candidate texts in the first candidate text set are kept displayed in the text display area, and the number of the part of the candidate texts is equal to the preset quantity threshold.

[0106] It is also understood that when displaying the first candidate text set, the candidate texts in the first candidate text set are displayed according to the priority of the candidate texts. The priority can be determined based on factors such as the number of times the candidate texts have been entered in the past and the rarity of the candidate texts. This application embodiment does not impose specific restrictions on the factors for determining the priority.

[0107] In some embodiments, the target character can be a radical character. Specifically, determining the first candidate character set for the radical character can be: determining the target radical indicated by the radical character, the target radical may include at least one basic radical; matching the first candidate character set corresponding to the target radical in a dictionary, wherein the Chinese character structure of each candidate character in the first candidate character set includes the target radical. The dictionary may include a local dictionary and a cloud dictionary. The local dictionary may include user-preferred words determined based on user historical input operations, and the cloud dictionary may include words determined based on internet big data. It is understood that the radical character may include at least one letter symbol used to indicate the radical. When the radical character includes one letter symbol used to indicate the radical, the target radical indicated by the radical character is the radical indicated by that letter symbol. When the radical character includes multiple character symbols used to indicate the radical, the target radical level indicated by the radical character includes the radical indicated by each letter symbol.

[0108] S306, receives a key selection operation for a target key, and determines the candidate character filtering strokes corresponding to the key selection operation.

[0109] In this context, a target key refers to a virtual key that is configured with character strokes. A target key can be configured with fixed or variable character strokes; a target key can be configured with at least one of the basic strokes or compound strokes of a Chinese character, and a target key can be configured with at least one basic stroke of a Chinese character or at least one compound stroke of a Chinese character.

[0110] The key selection operation can refer to the operation of selecting one or more target keys.

[0111] In some embodiments, step S306 may be: receiving a key selection operation for at least one specified stroke key, and determining the candidate character filtering strokes corresponding to the key selection operation.

[0112] Among them, the specified stroke key position refers to the virtual key position configured with the specified Chinese character stroke. The Chinese character stroke configured in the specified stroke key position is a fixed Chinese character stroke. The specified stroke key position can be configured with at least one of the basic Chinese character strokes and the compound Chinese character strokes. The specified stroke key position can be configured with at least one basic Chinese character stroke, and the specified stroke key position can also be configured with at least one compound Chinese character stroke.

[0113] For example, refer to Figure 4 the display schematic diagram of a virtual keyboard shown. As Figure 4 shown, the key positions "D", "F", "G", "H", and "J" are all target key positions. The basic Chinese character stroke configured in the key position "D" is "one horizontal stroke (一)", the basic Chinese character stroke configured in the key position "F" is "one vertical stroke (丨)", the basic Chinese character stroke configured in the key position "G" is "one left-falling stroke (丿)", the basic Chinese character stroke configured in the key position "H" is "one dot stroke (丶)", and the basic Chinese character stroke configured in the key position "J" is "one hook stroke (乛)". In other embodiments where the virtual keyboard schematic diagram is not shown, two basic Chinese character strokes can be configured in the key position "D" simultaneously, such as "one horizontal stroke (一)" and "one left-falling stroke (丿)"; only one compound Chinese character stroke can be configured in the key position "D", such as the slanting horizontal hook (⺄); one basic Chinese character stroke and one compound Chinese character stroke can also be configured in the key position "D" simultaneously, such as "one horizontal stroke (一)" and "⺄".

[0114] Specifically, in a scenario where one Chinese character stroke is configured in one specified stroke key position, the key position selection operation received for at least one specified stroke key position can be a key position selection operation for one specified stroke key position, and the first Chinese character stroke configured in the specified stroke key position can be determined and used as the candidate character screening stroke. Alternatively, the key position selection operation received for at least one specified stroke key position is multiple key position selection operations, each key position selection operation corresponding to one specified stroke key position, and different key position selection operations can correspond to the same or different specified stroke key positions. Determine the second Chinese character stroke configured in the specified stroke key position corresponding to each key position selection operation, and determine that the candidate character screening stroke includes the second Chinese character stroke corresponding to each key position selection operation; for example, if the second Chinese character stroke corresponding to a certain key position selection operation is "one horizontal stroke (一)" and the second Chinese character stroke corresponding to another key position selection operation is "one vertical stroke (丨)", it can be determined that the candidate character screening stroke includes: "one horizontal stroke (一)" and "one vertical stroke (丨)".

[0115] Specifically, in a scenario where multiple Chinese character strokes are configured for a specified stroke key position, the key selection operation received for at least one specified stroke key position can be a key selection operation for a single specified stroke key position. Determine the third Chinese character stroke selected by this key selection operation from the multiple specified Chinese character strokes configured in the specified stroke key position, and use the third Chinese character stroke as the candidate character screening stroke. For example, if the specified stroke key position corresponding to a certain key selection operation is configured with "一" and "丨", and the third Chinese character stroke selected by this key selection operation from "一" and "丨" is "一", it can be determined that the candidate character screening stroke is "一". Alternatively, the key selection operation received for at least one specified stroke key position is multiple key selection operations. Each key selection operation corresponds to a specified stroke key position respectively. Different key selection operations can correspond to the same or different specified stroke key positions. Determine the fourth Chinese character stroke selected by each key selection operation from the multiple specified stroke key positions configured in the specified stroke key position, and determine that the candidate character screening stroke includes the fourth Chinese character stroke corresponding to each key operation. For example, if the specified stroke key position corresponding to a certain key selection operation is configured with "一" and "丨", and the fourth Chinese character stroke selected by this key selection operation from "一" and "丨" is "一", and another key selection operation corresponds to a specified stroke key position configured with "丿" and "丶", and the fourth Chinese character stroke selected by this other key selection operation from "丿" and "丶" is "丿", it can be determined that the candidate character screening stroke includes: "一" and "丿".

[0116] It can be understood that when the key selection operation is an operation of selecting a certain specified Chinese character stroke from at least one specified Chinese character stroke configured for a specified stroke key position, the key selection operation can specifically be an operation of swiping left to select a certain specified Chinese character stroke after clicking or pressing the specified stroke key position, an operation of swiping right to select a certain specified Chinese character stroke after clicking or pressing the specified stroke key position, an operation of swiping up to select a certain specified Chinese character stroke after clicking or pressing the specified stroke key position, or an operation of swiping down to select a certain specified Chinese character stroke after clicking or pressing the specified stroke key position.

[0117] In some other embodiments, performing step S306 may include the following steps:

[0118] A2: Receive a first key selection operation for a preset stroke key position, and perform a character screening process on the first candidate character set based on the first key selection operation to obtain a third candidate character set;

[0119] Among them, the preset stroke key position refers to a virtual key position configured with variable Chinese character strokes. In the virtual keyboard, the number of preset stroke key positions can be multiple. A preset stroke key position can be configured with basic Chinese character strokes or compound Chinese character strokes.

[0120] Specifically, the preset strokes corresponding to the first key selection operation can be determined. The preset strokes are the Chinese character strokes configured in the preset stroke key positions. The specified candidate characters that match the preset strokes are determined in the first candidate character set, and the third candidate character set including the specified candidate characters is determined.

[0121] A4: Determine reference strokes based on the third candidate character set, update the preset stroke key positions based on the reference strokes to obtain the updated preset stroke key positions, and display the updated preset stroke key positions.

[0122] Specifically, common strokes are extracted from each specified candidate character in the third candidate character set to obtain reference strokes. Reference strokes can be common strokes of at least two specified candidate characters in the third candidate character set, and can include at least one of basic Chinese character strokes and compound Chinese character strokes. For example, if the common strokes extracted from each specified candidate character in the third candidate character set include “ナ”, then the reference stroke can be determined to be “ナ”.

[0123] Furthermore, the preset Chinese character strokes in the preset stroke key positions can be updated to reference strokes, resulting in updated preset stroke key positions. When displaying the updated preset stroke key positions, you can see that the Chinese character strokes displayed within them have changed to reference strokes.

[0124] A6: Receives the second key selection operation for the updated preset stroke key position, and determines the candidate text filtering strokes corresponding to the second key selection operation and the first key selection operation.

[0125] Specifically, the second key selection operation selects the reference strokes displayed by the updated preset stroke keys, while the first key selection operation selects the preset strokes displayed by default by the unupdated preset stroke keys, thus determining the candidate character filtering strokes that include both preset strokes and reference strokes.

[0126] Therefore, by configuring preset stroke keys that can display variable Chinese character strokes, the flexibility of displaying Chinese character strokes with preset stroke keys is improved, and the convenience for users to select Chinese character strokes is increased.

[0127] S308, determine the character composition structure corresponding to the strokes of the candidate characters.

[0128] In some embodiments, when the candidate character selection strokes include a single Chinese character stroke, the Chinese character stroke is determined as the character composition structure; when the candidate character selection strokes include multiple Chinese character strokes, the multiple Chinese character strokes in the candidate character selection strokes are spliced ​​together to obtain the character composition structure.

[0129] S310. Match the target candidate character in the first candidate character set based on the character composition structure, determine the second candidate character set based on the target candidate character, and display the second candidate character set.

[0130] In some embodiments, detect the target candidate character that matches the character composition structure in the first candidate character set, determine the second candidate character set including the target candidate character, and display the second candidate character set. Specifically, the target candidate character that matches the character composition structure can be a target candidate character with a character composition structure, and some of the character stroke structures in the target candidate character are the same as the character composition structure.

[0131] For example: Please refer to Figure 5 The schematic diagram showing the switching from the first candidate character set to display the second candidate character set as shown in Figure 5 As shown, if the user expects to input the Chinese character "希" (xi), the pinyin characters input by the user in step S304 are "xi", and the first candidate character set determined in step S304 may include candidate Chinese characters such as "洗" (xi), "西" (xi), "喜" (xi), "系" (xi), "嘻" (xi), "戏" (xi), "希" (xi), "细" (xi), "囍" (xi). It can be seen that "希" ranks seventh in the first candidate character set. If the candidate character screening stroke in step S306 is "丿", the character composition structure can be determined as "丿" through step S308. Therefore, through step S310, it can be determined that the second candidate character set includes candidate Chinese characters such as "系" (xi), "希" (xi), "兮" (xi), "夕" (xi), "息" (xi), "锡" (xi), "稀" (xi), "膝" (xi), "玺" (xi). It can be seen that "希" ranks second in the second candidate character set. Therefore, by determining the candidate character screening stroke through the key selection operation for the target key position and then screening the first candidate character set using the candidate character screening stroke, the order of the Chinese character expected to be input by the user in the candidate character set can be advanced, so that the user does not need to expand the list to display more candidate characters to select the expected input Chinese character, nor does the user need to manually turn the page to display more candidate characters to select the expected input Chinese character.

[0132] Optionally, after performing step S310, the following steps are further performed: within a preset time for displaying the second set of candidate characters, detect whether there is a next key selection operation input by the user. If there is a next key selection operation input by the user, determine the candidate character screening stroke corresponding to the next key selection operation as the next character screening stroke of the user for the second set of candidate characters, use the next candidate character screening stroke as the candidate character screening stroke in step S308, and use the second set of candidate characters as the first set of candidate characters in step S310, and then return to execute step S308 and step S310. Herein, the next key selection operation refers to the key selection operation input again by the user within the preset time for displaying the second set of candidate characters, aiming to instruct the electronic device to determine a new candidate character screening stroke input by the user based on the next key selection operation, that is, the next candidate character screening stroke, and after performing character screening processing on the second set of candidate characters based on the next candidate character screening stroke to obtain a new second set of candidate characters, display the new second set of candidate characters, so as to facilitate the user to quickly select the desired input character from the new second set of candidate characters. Herein, the next key selection operation can be an operation on one or more specified stroke keys.

[0133] For example, continuing with the example cited above Figure 5 After step S310, it can be determined that the displayed second set of candidate characters includes candidate Chinese characters such as "系", "希", "兮", "夕", "息", "锡", "稀", "膝", "玺", etc. It can be seen that "希" ranks second in the second set of candidate characters. Within the preset time for displaying the second set of candidate characters, if it is detected that the user has input a next key selection operation for the stroke key "丶", it can be determined that the next character screening stroke is "丶", and then the new second set of candidate characters obtained through the next character screening stroke "丶" includes characters such as "希", "兮", "奚", "悉", etc.

[0134] Within the preset time for displaying the second set of candidate characters, if there is no next key selection operation input by the user, cancel the execution of the following steps: determine the candidate character screening stroke corresponding to the next key selection operation as the next character screening stroke of the user for the second set of candidate characters, use the next candidate character screening stroke as the candidate character screening stroke in step S308, and use the second set of candidate characters as the first set of candidate characters in step S310, and execute step S308 and step S310. Until a character confirmation operation for the second set of candidate characters input by the user is received, execute the following step S312.

[0135] It is understandable that after each execution of step S310, the above-mentioned steps can be executed: "Within a preset time for displaying the second candidate text set, detect whether there is a user input of the next key selection operation; if there is a user input of the next key selection operation, determine the candidate text filtering stroke corresponding to the next key selection operation as the user's next text filtering stroke for the second candidate text set, use the next candidate text filtering stroke as the candidate text filtering stroke in step S308, and use the second candidate text set as the first candidate text set in step S310, and return to execute steps S308 and S310." This is to continuously monitor whether the user inputs the next key selection operation, to continuously filter and obtain the latest second candidate text set, and to continuously display the latest second candidate text set to the user.

[0136] S312, in response to a text confirmation operation for the second candidate text set, determines the target text.

[0137] In some embodiments, a user-inputted text confirmation operation for a second set of candidate characters can be received. Specifically, the text confirmation operation can be a single touch on a candidate character, or it can be multiple touches on a candidate character. Upon receiving the text confirmation operation, the candidate character indicated by the text confirmation operation can be determined as the target character.

[0138] In the text filtering method provided in this application embodiment, in response to a user's text input operation, the method obtains the target character corresponding to the text input operation, determines a first candidate text set for the target character, displays the first candidate text set, receives a key selection operation for a target key, determines the candidate text filtering strokes corresponding to the key selection operation, determines the text composition structure corresponding to the candidate text filtering strokes, matches the target candidate text in the first candidate text set based on the text composition structure, determines a second candidate text set based on the target candidate text, displays the second candidate text set, and in response to a text confirmation operation for the second candidate text set, determines the target text. Thus, by configuring a target key that can display Chinese character strokes, users can quickly input Chinese character strokes using the keys for inputting pinyin. Therefore, the electronic device can filter and obtain a second candidate text set based on the text composition structure, making it easier for users to quickly select the desired text from the second candidate text set. This avoids the cumbersome text input operation caused by users frequently swiping the candidate text list or switching pages to expand the candidate text list, improving the convenience of text input for users.

[0139] Please see below. Figure 6 , Figure 6 This is a flowchart illustrating another embodiment of the text filtering method proposed in this application.

[0140] Specifically, the text filtering method is executed by an electronic device, and the text filtering method includes:

[0141] S602, in response to the user's text input operation, obtains the target character corresponding to the text input operation.

[0142] S604, determine the first candidate character set for the target character, and display the first candidate character set.

[0143] Specifically, the implementation of steps S602-S604 can be found in [reference needed]. Figure 3 The descriptions of the relevant parts in steps S302-S304 of the illustrated embodiment will not be repeated here.

[0144] S606 receives the stroke input operation entered by the user in the stroke input area and determines the candidate character filtering strokes.

[0145] The stroke input area refers to the stroke input area set in the user interface. The stroke input area is a specific display area in the user interface. The position of the stroke input area in the user interface is fixed. Stroke keys can be configured in the stroke input area.

[0146] Stroke input can be the operation of inputting stroke keys. Users can touch the stroke keys in the stroke input area to trigger the input of stroke keys, thereby enabling the electronic device to receive the stroke input operation and determine the character strokes configured in the corresponding stroke keys as candidate character filtering strokes. The stroke input area can be configured with at least one stroke key, and different stroke keys can be configured to display different character strokes. Each stroke key can display at least one of the following: basic Chinese character strokes and compound Chinese character strokes.

[0147] For example, see Figure 7 This is a schematic diagram of another virtual keyboard display. (See diagram below.) Figure 7As shown, the key positions "one", "vertical line", "slash", "dot", and "horizontal hook" in the middle of the last row are all stroke key positions. The basic Chinese character stroke configured in the key position "one" is "one", the basic Chinese character stroke configured in the key position "vertical line" is "vertical line", the basic Chinese character stroke configured in the key position "slash" is "slash", the basic Chinese character stroke configured in the key position "dot" is "dot", and the basic Chinese character stroke configured in the key position "horizontal hook" is "horizontal hook". In other embodiments where the virtual keyboard schematic diagram is not shown, two basic Chinese character strokes, such as "one" and "slash", can be configured in the stroke key position shown by the key position "one"; only one compound Chinese character stroke, such as the horizontal oblique hook "⺄", can also be configured in the stroke key position shown by the key position "one"; one basic Chinese character stroke and one compound Chinese character stroke, such as "one" and "⺄", can also be configured in the stroke key position shown by the key position "one".

[0148] It can be understood that before executing step S606, a stroke input area is set in the user interface, or before executing the text screening method of the embodiment of the present application, a stroke input area is set in the user interface. Setting a stroke input area in the user interface can specifically be: setting a specific area in the input method area for inputting text in the user interface as the stroke input area. The input method area can include a first area for displaying the first candidate text set and a second area located below the first area, and the second area is the specific area.

[0149] Further, an implementation method for determining the candidate text screening stroke can be: in a scenario where a Chinese character stroke is displayed in a stroke key position, the first stroke input operation received by the user in the first stroke input area can be the first stroke input operation of the user for a stroke key position, and the first preset Chinese character stroke displayed in the stroke key position can be determined, and the first preset Chinese character stroke is used as the candidate text screening stroke. Or, the first stroke input operation received by the user in the first stroke input area is multiple first stroke input operations, each first stroke input operation corresponds to a stroke key position respectively, and different first stroke input operations can correspond to the same or different stroke key positions. Determine the second preset Chinese character stroke displayed in the stroke key position corresponding to each first stroke input operation, and determine that the candidate text screening stroke includes the second preset Chinese character stroke corresponding to each first stroke input operation; for example, the second preset Chinese character stroke corresponding to a certain first stroke input operation is "one", and the second preset Chinese character stroke corresponding to another key position selection operation is "vertical line", and it can be determined that the candidate text screening stroke includes: "one" and "vertical line".

[0150] Another implementation method for determining the candidate character screening stroke can be as follows: In a scenario where multiple Chinese character strokes are displayed on a single stroke key position, the first stroke input operation received from the user in the first stroke input area can be a first stroke input operation for a single stroke key position. Determine the third preset Chinese character stroke selected from the multiple Chinese character strokes displayed on the stroke key position for this first stroke input operation, and use the third preset Chinese character stroke as the candidate character screening stroke. For example, if the stroke key position corresponding to a certain first stroke input operation is configured with "一" and "丨", and the third preset Chinese character stroke selected by this first stroke input operation from "一" and "丨" is "一", then the candidate character screening stroke can be determined as "一". Or, the first stroke input operation received from the user in the first stroke input area is multiple first stroke input operations, each of which corresponds to a single stroke key position. Different first stroke input operations can correspond to the same or different stroke key positions. Determine the fourth preset Chinese character stroke selected by each first stroke input operation from the multiple stroke key positions displayed on the stroke key position, and determine that the candidate character screening stroke includes the fourth preset Chinese character stroke corresponding to each first stroke input operation. For example, if the stroke key position corresponding to a certain first stroke input operation displays "一" and "丨", and the fourth preset Chinese character stroke selected by this first stroke input operation from "一" and "丨" is "一", and another first stroke input operation corresponds to a stroke key position that displays "丿" and "丶", and the fourth preset Chinese character stroke selected by this another first stroke input operation from "丿" and "丶" is "丿", then the candidate character screening stroke can be determined to include: "一" and "丿".

[0151] It can be understood that when the stroke input operation is an operation of selecting a certain Chinese character stroke from at least two Chinese character strokes displayed on a single stroke key position, the stroke input operation can specifically be an operation of swiping left after clicking or pressing the stroke key position to select a certain Chinese character stroke, an operation of swiping right after clicking or pressing the stroke key position to select a certain Chinese character stroke, an operation of swiping up after clicking or pressing the stroke key position to select a certain Chinese character stroke, or an operation of swiping down after clicking or pressing the stroke key position to select a certain Chinese character stroke.

[0152] It can be understood that, in addition to step S606, another method for determining the candidate character screening stroke can be: Receive the first stroke input operation entered by the user in the preset stroke input area, and determine the candidate character screening stroke.

[0153] Among them, the preset stroke input area can be a designated area for the user to draw strokes. The preset stroke input area is not a fixed area in the user interface. The preset stroke input area can be an area that exists in the form of a floating window. Specifically, the preset stroke input area can be a movable window area floating on the surface of the input method interface.

[0154] In some embodiments, the first stroke input operation can be a user-drawn stroke input operation. The user can draw character strokes in a preset stroke input area to trigger the stroke drawing input operation, thereby allowing the electronic device to receive the first stroke input operation and determine the drawn stroke corresponding to the first stroke input operation as a candidate character filtering stroke. It is understood that the strokes drawn by the user can include at least one of basic Chinese character strokes and compound Chinese character strokes. Therefore, by setting a relatively large, movable preset stroke input area, it is convenient for the user to manually draw strokes.

[0155] S608, determine the character composition structure corresponding to the strokes of the candidate characters.

[0156] In some embodiments, when the candidate character selection strokes include a single Chinese character stroke, the Chinese character stroke is determined as the character composition structure; when the candidate character selection strokes include multiple Chinese character strokes, the multiple Chinese character strokes in the candidate character selection strokes are spliced ​​together to obtain the character composition structure.

[0157] S610, match the target candidate text in the first candidate text set based on the text composition structure, determine the second candidate text set based on the target candidate text, and display the second candidate text set.

[0158] In some embodiments, target candidate characters that match the character composition structure are detected in the first candidate character set, and a second candidate character set including the target candidate characters is determined. Specifically, the target candidate characters that match the character composition structure can be target candidate characters with a character composition structure, wherein some of the stroke structures of the target candidate characters are the same as the character composition structure.

[0159] Optionally, after executing step S610, the following steps are also performed: within a preset time for displaying the second candidate character set, it is detected whether there is a user input operation for the next stroke. If there is a user input operation for the next stroke, the candidate character filtering stroke corresponding to the next stroke input operation is determined as the user's next character filtering stroke for the second candidate character set. The next candidate character filtering stroke is used as the candidate character filtering stroke in step S608, and the second candidate character set is used as the first candidate character set in step S610. Then, steps S608 and S610 are returned to be executed. Here, the next stroke input operation refers to the stroke input operation that the user inputs again within the preset time for displaying the second candidate character set to the user. It is intended to instruct the electronic device to determine the new candidate character filtering stroke input by the user based on the next stroke input operation, that is, the next candidate character filtering stroke. After performing character filtering processing on the second candidate character set based on the next candidate character filtering stroke to obtain a new second candidate character set, the new second candidate character set is displayed so that the user can quickly select the desired input character from the new second candidate character set. The next stroke input operation can be a stroke input operation targeting one or more stroke keys.

[0160] If no user input of a next key selection operation is received within the preset time period for displaying the second candidate character set, the following steps are cancelled: the candidate character selection stroke corresponding to the next key selection operation is determined as the user's next character selection stroke for the second candidate character set; the next candidate character selection stroke is used as the candidate character selection stroke in step S608; and the second candidate character set is used as the first candidate character set in step S610. Steps S608 and S610 are then executed. This continues until a user input of a text confirmation operation for the second candidate character set is received, at which point step S612 is executed.

[0161] It is understandable that after each execution of step S610, the above-mentioned steps can be executed: "Within a preset time for displaying the second candidate character set, detect whether there is a user input operation for the next stroke; if there is a user input operation for the next stroke, determine the candidate character filtering stroke corresponding to the next stroke input operation as the user's next character filtering stroke for the second candidate character set, use the next candidate character filtering stroke as the candidate character filtering stroke in step S608, and use the second candidate character set as the first candidate character set in step S610, and return to execute steps S608 and S610." This is to continuously monitor whether the user input is a next stroke input operation, to continuously filter and obtain the latest second candidate character set, and to continuously display the latest second candidate character set to the user.

[0162] S612, in response to a text confirmation operation for the second candidate text set, determines the target text.

[0163] In some embodiments, a user-inputted text confirmation operation for a second set of candidate characters can be received. Specifically, the text confirmation operation can be a single touch on a candidate character, or it can be multiple touches on a candidate character. Upon receiving the text confirmation operation, the candidate character indicated by the text confirmation operation can be determined as the target character.

[0164] In the text filtering method provided in this application embodiment, in response to a user's text input operation, the target character corresponding to the text input operation is obtained, a first candidate text set for the target character is determined, and the first candidate text set is displayed. Then, the stroke input operation input by the user in the stroke input area is received, candidate text filtering strokes are determined, and then the text composition structure corresponding to the candidate text filtering strokes is determined. Based on the text composition structure, the target candidate text is matched in the first candidate text set, and a second candidate text set is determined based on the target candidate text. In response to a text confirmation operation for the second candidate text set, the target text is determined. Thus, by configuring the stroke input area, users can quickly input strokes, allowing them to quickly input text strokes. The user-inputted text strokes are then used to determine the candidate text filtering strokes, thereby determining the corresponding text composition structure. The second candidate text set is then filtered based on the text composition structure, facilitating users to quickly select the desired text from the second candidate text set. This avoids the cumbersome text input operation caused by users frequently swiping the candidate text list or switching pages to expand the candidate text list, improving the convenience of text input for users.

[0165] The following will combine Figure 8 This application provides a detailed description of the text filtering device provided in its embodiments. It should be noted that... Figure 8 The text filtering device shown is used to perform the present application. Figures 1-7 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 1-7 The example shown.

[0166] Please see Figure 8 This diagram illustrates the structure of a text filtering device according to an embodiment of this application. The text filtering device 1 can be implemented as all or part of a device through software, hardware, or a combination of both. According to some embodiments, the text filtering device 1 includes a first filtering module 11, a second filtering module 12, and a third filtering module 13, specifically used for:

[0167] The first filtering module 11 is used to display the first candidate text set in response to the user's text input operation;

[0168] The second filtering module 12 is used to determine the candidate character filtering strokes input by the user, perform character filtering processing on the first candidate character set based on the candidate character filtering strokes to obtain a second candidate character set, and display the second candidate character set;

[0169] The third filtering module 13 is used to determine the target text in response to a text confirmation operation on the second candidate text set.

[0170] Optionally, the text filtering device 1 further includes:

[0171] The stroke selection determination module is used to determine the stroke selection for the next candidate character in the second candidate character set by the user.

[0172] The candidate text filtering module takes the next candidate text filtering stroke as the candidate text filtering stroke, and takes the second candidate text set as the first candidate text set, and performs the step of filtering the first candidate text set based on the candidate text filtering stroke to obtain the second candidate text set, and displays the second candidate text set.

[0173] Optionally, the second filtering module 12 includes:

[0174] The first stroke determination unit is used to receive a key selection operation for a target key and determine the candidate character filtering strokes corresponding to the key selection operation.

[0175] Optionally, the first stroke determination unit is specifically used for:

[0176] Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

[0177] Optionally, the first stroke determination unit is specifically used for:

[0178] Receive a first key selection operation for a preset stroke key position, and perform text filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set;

[0179] Based on the third candidate character set, a reference stroke is determined, and based on the reference stroke, the preset stroke key position is updated to obtain the updated preset stroke key position, and the updated preset stroke key position is displayed.

[0180] Receive a second key selection operation for the updated preset stroke key position, and determine the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

[0181] Optionally, the text filtering device 1 is further configured to: set a stroke input area in the user interface; the second filtering module 12 includes:

[0182] The first stroke determination unit is used to receive the stroke input operation entered by the user in the stroke input area and determine the candidate character filtering strokes.

[0183] Optionally, the first filtering module 11 includes:

[0184] A character determination unit is used to obtain the target character corresponding to the text input operation in response to the user's text input operation;

[0185] The text determination unit is used to determine a first set of candidate texts for the target character and to display the first set of candidate texts.

[0186] Optionally, the second filtering module 12 includes:

[0187] A character composition determination unit is used to determine the character composition structure corresponding to the strokes of the candidate character selection;

[0188] The candidate text filtering unit is used to match target candidate texts in the first candidate text set based on the text composition structure, and to determine a second candidate text set based on the target candidate texts.

[0189] The text filtering device provided in this application first responds to a user's text input operation by displaying a first set of candidate characters. Then, it determines the selection strokes of the candidate characters input by the user, and performs text filtering on the first set of candidate characters based on these selection strokes to obtain a second set of candidate characters. Finally, it responds to a text confirmation operation on the second set of candidate characters to determine the target character. Since the first set of candidate characters is determined based on the text input operation, it contains many candidate characters that match the text input operation. By determining the selection strokes of the candidate characters input by the user and filtering the first set of candidate characters, a second set of candidate characters matching the selection strokes can be selected from among many candidate characters that match the text input operation. This allows users to quickly select the desired text from many candidate characters with partially identical strokes, avoiding the cumbersome text input operation caused by users frequently swiping the candidate text list or switching pages to expand the candidate text list, thus improving the convenience of text input for users.

[0190] Please refer to Figure 9 , Figure 9This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example, the electronic device in this embodiment may specifically be a server, and the electronic device may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 can be connected via the bus 150.

[0191] Processor 110 may include one or more processing cores. Processor 110 connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 120, and by calling data stored in memory 120. Optionally, processor 110 may be implemented using at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). Processor 110 may integrate one or more of a central processing unit (CPU), graphics processing unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 110 and may be implemented separately using a communication chip.

[0192] The memory 120 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 120 may include a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., touch function, sound playback function, image playback function, etc.), instructions for implementing the various method embodiments described below, etc. The operating system may be the Android system, including systems deeply developed based on the Android system, the iOS system developed by Apple Inc., including systems deeply developed based on the iOS system, or other systems.

[0193] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to establish data communication between the third-party applications and the operating system. This would allow the operating system to obtain the current scenario information of the third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0194] The input device 130 is used to receive input instructions or data, and includes, but is not limited to, a keyboard, mouse, camera, microphone, or touch device. The output device 140 is used to output instructions or data, and includes, but is not limited to, a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 can be a touch display screen.

[0195] The touch display screen can be designed as a full-screen, curved screen, or irregularly shaped screen. It can also be designed as a combination of a full-screen and a curved screen, or a combination of an irregularly shaped screen and a curved screen; however, this application does not limit the specific design of the touch display screen.

[0196] In addition, those skilled in the art will understand that the structure of the electronic device shown in the above figures does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the electronic device may also include radio frequency circuits, input units, sensors, audio circuits, Wireless Fidelity (WiFi) modules, power supplies, Bluetooth modules, etc., which will not be described in detail here.

[0197] exist Figure 9In the illustrated electronic device, the processor 110 can be used to call the program for the text filtering method stored in the memory 120, and specifically perform the following operations:

[0198] In response to the user's text input, display the first set of candidate texts;

[0199] Determine the candidate character selection strokes input by the user, perform character selection processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and display the second candidate character set;

[0200] In response to a text confirmation operation on the second set of candidate characters, the target character is determined.

[0201] In some embodiments, after performing the text filtering process on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set and displaying the second candidate character set, the processor 110 further performs the following operations:

[0202] Determine the stroke order for the next candidate character selection by the user for the second candidate character set;

[0203] The next candidate character selection stroke is used as the candidate character selection stroke, and the second candidate character set is used as the first candidate character set. The steps of performing character selection processing on the first candidate character set based on the candidate character selection stroke to obtain the second candidate character set and displaying the second candidate character set are then performed.

[0204] In some embodiments, when the processor 110 performs the step of determining the candidate character filtering strokes input by the user, it specifically performs the following operations:

[0205] Receive a key selection operation for a target key and determine the candidate character selection strokes corresponding to the key selection operation.

[0206] In some embodiments, when the processor 110 executes the key selection operation for the target key and determines the candidate character filtering strokes corresponding to the key selection operation, it specifically performs the following operations:

[0207] Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

[0208] In one embodiment, when the processor 110 performs the step of receiving the key selection operation for the target key and determining the candidate character filtering strokes corresponding to the key selection operation, it specifically performs the following operations:

[0209] Receive a first key selection operation for a preset stroke key position, and perform text filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set;

[0210] Based on the third candidate character set, a reference stroke is determined, and based on the reference stroke, the preset stroke key position is updated to obtain the updated preset stroke key position, and the updated preset stroke key position is displayed.

[0211] Receive a second key selection operation for the updated preset stroke key position, and determine the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

[0212] In some embodiments, the processor 110 further performs the following operations: setting a stroke input area in the user interface; when performing the step of determining the candidate character filtering strokes input by the user, the processor 110 specifically performs the following operations:

[0213] Receive the stroke input operation entered by the user in the stroke input area, and determine the candidate character filtering strokes.

[0214] In some embodiments, when the processor 110 performs the step of displaying the first candidate text set in response to a user input text input operation, it specifically performs the following operations:

[0215] In response to a user's text input operation, the target character corresponding to the text input operation is obtained;

[0216] A first set of candidate characters is determined for the target character, and the first set of candidate characters is displayed.

[0217] In some embodiments, when the processor 110 performs text filtering processing on the first candidate character set based on the candidate character filtering strokes to obtain a second candidate character set, it specifically performs the following operations:

[0218] Determine the character composition structure corresponding to the strokes used in the candidate character selection process;

[0219] Based on the character composition structure, target candidate characters are matched in the first candidate character set, and a second candidate character set is determined based on the target candidate characters.

[0220] This application also provides a computer-readable storage medium storing at least one instruction that is executed by a processor to implement the text filtering method as described in the above embodiments.

[0221] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the text filtering method described in the above embodiments.

[0222] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0223] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A text filtering method, characterized in that, The method includes: In response to the user's text input, display the first set of candidate texts; Determine the candidate character selection strokes input by the user, perform character selection processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and display the second candidate character set; In response to a text confirmation operation on the second set of candidate characters, the target character is determined; The step of determining the candidate character filtering strokes input by the user includes: receiving a first key selection operation for a preset stroke key position; performing character filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set; determining a reference stroke based on the third candidate character set; performing a stroke key position update processing on the preset stroke key position based on the reference stroke to obtain an updated preset stroke key position; and displaying the updated preset stroke key position; receiving a second key selection operation for the updated preset stroke key position; and determining the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

2. The method according to claim 1, characterized in that, After performing text filtering processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and displaying the second candidate character set, the process further includes: Determine the stroke order for the next candidate character selection by the user for the second candidate character set; The next candidate character selection stroke is used as the candidate character selection stroke, and the second candidate character set is used as the first candidate character set. The steps of performing character selection processing on the first candidate character set based on the candidate character selection stroke to obtain the second candidate character set and displaying the second candidate character set are then performed.

3. The method according to claim 1, characterized in that, The step of determining the candidate character selection strokes input by the user also includes: Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

4. The method according to claim 1, characterized in that, The method further includes: setting a stroke input area in the user interface; The step of determining the stroke order of the candidate characters input by the user includes: Receive the stroke input operation entered by the user in the stroke input area, and determine the candidate character filtering strokes.

5. The method according to claim 1, characterized in that, The first candidate text set, displayed in response to a user's text input operation, includes: In response to a user's text input operation, the target character corresponding to the text input operation is obtained; A first set of candidate characters is determined for the target character, and the first set of candidate characters is displayed.

6. The method according to claim 1, characterized in that, The step of performing text filtering processing on the first candidate character set based on the candidate character selection strokes to obtain a second candidate character set, and displaying the second candidate character set, includes: Determine the character composition structure corresponding to the strokes used in the candidate character selection process; Based on the character composition structure, target candidate characters are matched in the first candidate character set, and a second candidate character set is determined based on the target candidate characters, and the second candidate character set is displayed.

7. A text filtering device, characterized in that, The device includes: The first filtering module is used to respond to the user's text input operation and display the first set of candidate texts; The second filtering module is used to determine the candidate character filtering strokes input by the user, perform character filtering processing on the first candidate character set based on the candidate character filtering strokes to obtain a second candidate character set, and display the second candidate character set; The third filtering module is used to determine the target text in response to the text confirmation operation for the second candidate text set; The step of determining the candidate character filtering strokes input by the user includes: receiving a first key selection operation for a preset stroke key position; performing character filtering processing on the first candidate character set based on the first key selection operation to obtain a third candidate character set; determining a reference stroke based on the third candidate character set; performing a stroke key position update processing on the preset stroke key position based on the reference stroke to obtain an updated preset stroke key position; and displaying the updated preset stroke key position; receiving a second key selection operation for the updated preset stroke key position; and determining the candidate character filtering strokes corresponding to the second key selection operation and the first key selection operation.

8. The apparatus according to claim 7, characterized in that, The text filtering device also includes: The stroke selection determination module is used to determine the stroke selection for the next candidate character in the second candidate character set by the user. The candidate text filtering module takes the next candidate text filtering stroke as the candidate text filtering stroke, and takes the second candidate text set as the first candidate text set, and performs the step of filtering the first candidate text set based on the candidate text filtering stroke to obtain the second candidate text set, and displays the second candidate text set.

9. The apparatus according to claim 7, characterized in that, The step of determining the candidate character selection strokes input by the user also includes: Receive a key selection operation for at least one specified stroke key, and determine the candidate character filtering strokes corresponding to the key selection operation.

10. The apparatus according to claim 7, characterized in that, The text filtering device is also used to: set a stroke input area in the user interface; The second filtering module includes: The first stroke determination unit is used to receive the stroke input operation entered by the user in the stroke input area and determine the candidate character filtering strokes.

11. The apparatus according to claim 7, characterized in that, The first filtering module includes: A character determination unit is used to obtain the target character corresponding to the text input operation in response to the user's text input operation; The text determination unit is used to determine a first set of candidate texts for the target character and to display the first set of candidate texts.

12. The apparatus according to claim 7, characterized in that, The second filtering module includes: A character composition determination unit is used to determine the character composition structure corresponding to the strokes of the candidate character selection; The candidate text filtering unit is used to match target candidate texts in the first candidate text set based on the text composition structure, and to determine a second candidate text set based on the target candidate texts.

13. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and executed as described in any one of claims 1 to 6.

14. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for screening input candidate Chinese characters by means of handwriting strokes

    CN104461050A

  • Method and device for screening on-screen candidate items of input method

    CN104571587A