Character screening method and device, storage medium and electronic equipment
By responding to the user input text input operation in the input method and filtering the candidate text collection, the cumbersome input operation problem caused by too many characters when entering the pinyin in the existing input method is solved, and a more convenient text input experience is achieved.
Patent Information
- Application Number
- CN202411376779.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-09-29
AI Technical Summary
When inputting pinyin in existing input methods, there are many Chinese characters with the same pinyin characters, which causes users to frequently slide the candidate character list or switch the page expansion list, resulting in cumbersome input operations.
By responding to the text input operation input by the user, the first candidate text set is displayed, and the candidate text filter strokes entered by the user are determined. The first candidate text set is filtered based on the stroke, and the second candidate text set is obtained, and the target text is determined after the user confirms.
This method can filter out text that meets the screening strokes of candidate text from many candidate text that match the text input operations, reduces the operation of user sliding or switching pages, and improves the convenience of user inputting text.
Smart Images

Figure CN119828900A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a text screening method, device, storage medium and electronic device. Background Art
[0002] An input method is a software tool used to input natural language text into a computer or mobile device. With the advent of the digital age, input methods also support more and more text input functions, such as pinyin input text, handwriting recognition input text, voice recognition input text, etc. In related technologies, input methods not only support multiple input methods, but also support multi-language input. The rich input functions of input methods provide convenience for users. Summary of the invention
[0003] The embodiments of the present application provide a text screening method, device, computer storage medium and electronic device. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a text screening method, the method comprising:
[0005] In response to a text input operation input by a user, displaying a first candidate text set;
[0006] Determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set;
[0007] In response to a character confirmation operation on the second candidate character set, a target character is determined.
[0008] In some possible implementations, the step of performing character screening on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and after displaying the second candidate character set, further includes:
[0009] Determining the user's next candidate character screening strokes for the second candidate character set;
[0010] The next candidate character screening stroke is used as the screening character screening stroke, and the second candidate character set is used as the first candidate character set, and the step of performing character screening processing on the first candidate character set based on the candidate character screening stroke to obtain a second candidate character set is performed, and the second candidate character set is displayed.
[0011] In some possible implementations, determining the candidate character screening strokes input by the user includes:
[0012] A key position selection operation for a target key position is received, and candidate character screening strokes corresponding to the key position selection operation are determined.
[0013] In some possible implementations, receiving a key position selection operation for a target key position and determining candidate character screening strokes corresponding to the key position selection operation include:
[0014] A key position selection operation for at least one designated stroke key position is received, and a candidate character screening stroke corresponding to the key position selection operation is determined.
[0015] In some possible implementations, receiving a key position selection operation for a target key position and determining candidate character screening strokes corresponding to the key position selection operation include:
[0016] receiving a first key position selection operation for a preset stroke key position, and performing a character screening process on the first candidate character set based on the first key position selection operation to obtain a third candidate character set;
[0017] Determine a reference stroke based on the third candidate character set, perform 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 display the updated preset stroke key position;
[0018] A second key position selection operation for the updated preset stroke key position is received, and candidate character screening strokes corresponding to the second key position selection operation and the first key position selection operation are determined.
[0019] In some possible implementations, the method further includes: setting a stroke input area in the user interface;
[0020] The step of determining the candidate character screening strokes input by the user includes:
[0021] Receive a stroke input operation input by the user in the stroke input area, and determine candidate character filtering strokes.
[0022] In some possible implementations, the displaying a first candidate character set in response to a character input operation input by a user includes:
[0023] In response to a text input operation input by a user, obtaining a target character corresponding to the text input operation;
[0024] A first candidate character set for the target character is determined, and the first candidate character set is displayed.
[0025] In some possible implementations, the performing character screening processing on the first candidate character set based on the candidate character screening 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 candidate character screening strokes;
[0027] Based on the character composition structure, a target candidate character is matched in the first candidate character set, a second candidate character set is determined based on the target candidate character, and the second candidate character set is displayed.
[0028] In a second aspect, an embodiment of the present application provides a text screening device, the device comprising:
[0029] A first screening module, configured to display a first candidate character set in response to a character input operation input by a user;
[0030] A second screening module, configured to determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set;
[0031] The third screening module is used to determine the target text in response to the text confirmation operation on the second candidate text set.
[0032] Optionally, the text screening device further includes:
[0033] A screening stroke determination module, used to determine the user's next candidate character screening stroke for the second candidate character set;
[0034] The candidate character screening module uses the next candidate character screening stroke as the screening character screening stroke, and uses the second candidate character set as the first candidate character set, and performs the steps of 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 displaying the second candidate character set.
[0035] Optionally, the second screening module includes:
[0036] The first stroke determination unit is used to receive a key position selection operation for a target key position, and determine a candidate character screening stroke corresponding to the key position selection operation.
[0037] Optionally, the first stroke determination unit is specifically configured to:
[0038] A key position selection operation for at least one designated stroke key position is received, and a candidate character screening stroke corresponding to the key position selection operation is determined.
[0039] Optionally, the first stroke determination unit is specifically configured to:
[0040] receiving a first key position selection operation for a preset stroke key position, and performing a character screening process on the first candidate character set based on the first key position selection operation to obtain a third candidate character set;
[0041] Determine a reference stroke based on the third candidate character set, perform 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 display the updated preset stroke key position;
[0042] A second key position selection operation for the updated preset stroke key position is received, and candidate character screening strokes corresponding to the second key position selection operation and the first key position selection operation are determined.
[0043] Optionally, the text screening device is further used to: set a stroke input area in the user interface; the second screening module includes:
[0044] The first stroke determination unit is used to receive a stroke input operation input by the user in the stroke input area, and determine the strokes for candidate character screening.
[0045] Optionally, the first screening module includes:
[0046] A character determination unit, configured to obtain a target character corresponding to a text input operation input by a user;
[0047] The character determination unit is used to determine a first candidate character set for the target character and display the first candidate character set.
[0048] Optionally, the second screening module includes:
[0049] A character composition determination unit, used to determine the character composition structure corresponding to the candidate character screening strokes;
[0050] The candidate character screening unit is used to 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.
[0051] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium has a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method.
[0052] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the memory and executing the above method.
[0053] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0054] The text screening method provided in the embodiment of the present application first displays a first candidate text set in response to a text input operation input by a user, then determines the candidate text screening strokes input by the user, performs text screening processing on the first candidate text set based on the candidate text screening strokes to obtain a second candidate text set, and then determines the target text in response to a text confirmation operation on the second candidate text set. Since the first candidate text set is determined according to the text input operation, there are many candidate texts in the first candidate text set that match the text input operation. By determining the candidate text screening strokes input by the user to screen the first candidate text set, a second candidate text set that meets the candidate text screening strokes can be screened out from a large number of candidate texts that match the text input operation, so that the user can quickly select the desired text from a large number of candidate texts with the same partial strokes, avoiding the problem of cumbersome text input operations caused by the user frequently sliding the candidate text list or switching pages to expand the candidate text list, thereby improving the convenience of user text input. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of 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 paying any creative work.
[0056] Figure 1 This is a schematic diagram of an application scenario of a text screening method provided in an embodiment of the present application;
[0057] Figure 2 It is a flowchart of a text screening method provided in an embodiment of the present application;
[0058] Figure 3 It is a flowchart of another text screening method provided in an embodiment of the present application;
[0059] Figure 4 is a display schematic diagram of a virtual keyboard provided in an embodiment of the present application;
[0060] Figure 5 is a schematic diagram of a first candidate character set switching to display a second candidate character set provided by an embodiment of the present application;
[0061] Figure 6 It is a flowchart of another text screening method provided in an embodiment of the present application;
[0062] Figure 7 is a display schematic diagram of another virtual keyboard provided in an embodiment of the present application;
[0063] Figure 8 is a structural schematic diagram of a text screening device provided in an embodiment of the present application;
[0064] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] In order to make the purpose, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0066] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. 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 optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0067] In the related art, in the scenario where the pinyin input method is used to input text, since there are many Chinese characters with the same pinyin character, after the user inputs the pinyin, the input method usually cannot directly display all the candidate characters, and often requires the user to manually turn the page to display more candidate characters, or the user needs to click to expand the list to display more candidate characters. Therefore, the pinyin input method in the input method has the problem of inconvenient operation.
[0068] In order to solve the above technical problems, the present application is described in detail below in conjunction with specific embodiments.
[0069] See also Figure 1 , is a schematic diagram of an application scenario of a text screening method provided in an embodiment of the present application. Figure 1 As shown, the application scenario of the text screening method may at least include a client cluster and a server 100 .
[0070] In some embodiments, a 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 the client cluster may be an electronic device with communication function, including but not limited to: wearable device, handheld device, personal computer, tablet computer, vehicle-mounted device, smart phone, computing device or other processing device connected to a wireless modem, etc. Electronic devices may be called 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 device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), electronic device in 5G network or future evolution network, etc.
[0072] In an embodiment of the present application, when an electronic device executes a text screening method, the following steps are specifically performed: in response to a text input operation input by a user, a first candidate text set is displayed; the candidate text screening strokes input by the user are determined, and based on the candidate text screening strokes, the first candidate text set is screened to obtain a second candidate text set, and the second candidate text set is displayed; in response to a text confirmation operation for the second candidate text set, a target text is determined.
[0073] Exemplarily, the electronic device is installed with input method software. When the user inputs text through the input method software, the electronic device can obtain a second candidate text set through the above-mentioned text screening method, so that the user can perform a text confirmation operation in the second candidate text set to determine the target text.
[0074] The server 100 may be a single server device, such as a rack-mounted, blade, tower, or cabinet-mounted server device, or a workstation, mainframe computer, or other hardware device with strong computing power; or it may be a server cluster composed of a plurality of servers, wherein each server in the service cluster may be symmetrically composed, wherein each server has equivalent functions and status in the transaction link, and each server may independently provide services to the outside, and the independent service may be understood as requiring no assistance from another server.
[0075] In the embodiment of the present application, the server 100 may specifically be a background server of the input method software.
[0076] In some embodiments, the server 100 may establish a communication connection with at least one client in the client cluster, and the data interaction in the text screening process is completed based on the communication connection. For example, the electronic device displays the first candidate text set in response to the text input operation input by the user, which may be: the electronic device sends the text input operation input by the user to the server, the server determines the first candidate text set based on the text input operation and feeds the first candidate text set back to the electronic device, and the electronic device displays the first candidate text set. For another example, the electronic device performs text screening processing on the first candidate text set based on the candidate text screening strokes to obtain the second candidate text set, and displays the second candidate text set, which may be: the electronic device sends the candidate text screening strokes to the server, so that the server performs text screening processing on the first candidate text set based on the candidate text screening strokes to obtain the second candidate text set, the server feeds 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 character set may also be determined by the electronic device (without the need for server determination), and then the electronic device displays the first candidate character set. The second candidate character set may also be determined by the electronic device (without the need for server determination), and then the electronic device displays the second candidate character set.
[0078] It should be noted that the server 100 and at least one client in the client cluster establish a communication connection through a network for interactive communication, wherein the network may be a wireless network or a wired network, the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to an Ethernet, a universal serial bus (USB) or a controller local area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data (such as a target compressed package) exchanged through a network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0079] In one embodiment, Figure 2 As shown, a text screening method is proposed, which can be implemented by a computer program and can be run on a text screening device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0080] Specifically, the text screening method is performed by an electronic device, and the text screening method includes:
[0081] S202: In response to a text input operation input by a user, display a first candidate text set.
[0082] The text input operation refers to the operation of inputting characters in the input method software. The input method software has multiple text input methods. The meanings of the characters inputted by using different text input methods are also different. For example, taking the pinyin input method as an example, the characters inputted by using the pinyin input method are pinyin characters. For another example, taking the Wubi input method as an example, the characters inputted by using the Wubi input method are radical characters.
[0083] The first candidate character set refers to a set of candidate characters that match the input characters indicated by the character input operation. For example, when a pinyin character is input by the pinyin input method, the first candidate character set includes candidate characters that match the pinyin character; for another example, when a radical character is input by the Wubi input method, the first candidate character set includes candidate characters that match the radical character.
[0084] It is understandable that in the scenario 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 corresponding to the candidate Chinese characters with the same pinyin, and the candidate English is the English translation of the candidate Chinese characters. For example, taking the 26-key input method in the input method software as an example, when the pinyin characters input by the user include: h, a, o, then it can be determined that the pinyin indicated by the pinyin characters is hao, then the candidate Chinese characters with the pinyin of hao can be matched, and the candidate English corresponding to the Chinese characters with the pinyin of hao can also be matched. For another example, taking the input method with less than 26 keys in the input method software as an example, taking the 9-key input method as an example, the user clicks the "GHI" key, the "ABC" key and the "MNO" key. In response to the keys clicked by the user, the alternative pinyin characters of the combinations of "gan", "gao", "han", "hao", "ga" and "ha" can be determined. When the user selects any of the above alternative pinyin characters, the alternative pinyin character selected by the user can be determined as the pinyin character input by the user. For example, if the pinyin character input by the user is hao, and it is determined that the pinyin indicated by the pinyin character is hao, then the candidate Chinese characters with the pinyin hao can be matched, and the candidate English characters corresponding to the Chinese characters with the pinyin hao can also be matched.
[0085] In some embodiments, the specific implementation of executing S202 may be: in response to a text input operation input by a user, obtaining a target character corresponding to the text input operation; determining a first candidate text set for the target character, and displaying the first candidate text set. 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, determining the candidate character screening strokes input by the user, performing character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and displaying the second candidate character set.
[0087] The candidate character screening strokes refer to strokes used to screen out specific characters from the first candidate character set. The candidate character screening strokes may include at least one Chinese character stroke. The candidate character screening strokes may include at least one of Chinese character basic strokes and Chinese character compound strokes. The Chinese character basic strokes may include dot, horizontal, vertical, left-falling stroke, right-falling stroke, lifting stroke, folding stroke and hook stroke. The Chinese character compound stroke may be a compound stroke derived from the Chinese character basic strokes.
[0088] The second candidate character set refers to a set of candidate characters in the first candidate character set that have the same candidate character screening strokes.
[0089] In some embodiments, determining the candidate text filtering strokes input by the user may be: receiving a key selection operation for a target key position, and determining the candidate text filtering strokes corresponding to the key selection operation. The target key position may be configured with basic Chinese character strokes and / or compound Chinese character strokes. It is understandable that when the key selection operation is an operation for a target key position, the determined candidate text filtering strokes include a Chinese character stroke; when the key selection operation is an operation for multiple target keys, the determined candidate text filtering strokes include multiple Chinese character strokes.
[0090] In some other embodiments, determining the candidate text screening strokes input by the user may be: receiving a stroke drawing operation input by the user in a designated stroke drawing area, and determining the candidate text screening strokes. The designated stroke drawing area may be a fixed stroke drawing area or a movable stroke drawing area. It is understood that when the stroke drawing operation is an operation of drawing a Chinese character stroke, the candidate text screening strokes include a Chinese character stroke; when the stroke drawing operation is an operation of drawing multiple Chinese character strokes, the candidate text screening strokes include multiple Chinese character strokes.
[0091] The second candidate character set may be determined by: determining a character composition structure corresponding to the candidate character screening strokes; matching target candidate characters in the first candidate character set based on the character composition structure, and determining the second candidate character set based on the target candidate characters.
[0092] The method of displaying the second candidate character set may be: displaying the second candidate character set in the character display area in the input interface. It is understandable that the number of all candidate characters in the second candidate character set may be less than the preset number threshold, the number of all candidate characters in the second candidate character set may also be equal to the preset number threshold, and the number of all candidate characters in the second candidate character set may also be greater than the preset number threshold, wherein the preset number threshold is the maximum number of characters that can be displayed in the character display area. In the scenario where the number of all candidate characters in the second candidate character set is greater than the preset number threshold, the second candidate character set may be displayed in a sliding display manner. At this time, a slider control may be configured in the character display area. When a user performs a touch operation on the slider control, the candidate characters in the second candidate character set may be switched to be displayed in the character display area. When no user performs a touch operation on the slider control, some of the candidate characters in the second candidate character set are kept displayed in the character display area, and the number of some of the candidate characters is equal to the preset number threshold. In a scenario where the number of all candidate characters in the second candidate character set is greater than a preset number threshold, the second candidate character set can also be displayed in an expanded list manner. At this time, an expanded list control can be configured in the character display area. When a user performs a touch operation on the expanded list control, the area of the character display area can be increased to display the second candidate character set in the form of a list. When no user performs a touch operation on the expanded list control, some candidate characters in the second candidate character set remain displayed in the character display area, and the number of some candidate characters is equal to the preset number threshold.
[0093] Optionally, after executing step S204, the user's next candidate character screening stroke for the second candidate character set may also be determined; the next candidate character screening stroke is used as the screening character screening stroke in S204, and the second candidate character set is used as the first candidate character set in S204, and step S204 is executed. The next candidate character screening stroke refers to the candidate character screening stroke input again by the user after the second candidate character set is displayed to the user, and the user inputs the next candidate character screening stroke to instruct the electronic device to perform a character screening process on the second candidate character set based on the next candidate character screening 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 screening stroke input by the user for the second candidate character set. After determining the next candidate character screening stroke of the user for the second candidate character set, the next candidate character screening stroke is used as the screening character screening stroke in S204, and the second candidate character set is used as the first candidate character set in S204. Step S204 can be returned to be executed again to display a new second candidate character set according to the new candidate character screening stroke input by the user, so that the user can quickly filter the characters expected to be input. After displaying the second candidate character set to the user, if the user does not input the candidate character screening stroke, the following steps are canceled: determining the next candidate character screening stroke of the user for the second candidate character set, using the next candidate character screening stroke as the screening character screening stroke in S204, and using the second candidate character set as the first candidate character set in S204, and executing step S204. Until receiving the text confirmation operation input by the user for the second candidate character set, the following step S206 is executed.
[0094] S206: Determine target characters in response to a character confirmation operation on the second candidate character set.
[0095] The character confirmation operation refers to a confirmation operation of selecting a candidate character from the second candidate character set. The target character is the candidate character selected in the character confirmation operation.
[0096] In some embodiments, a text confirmation operation for the second candidate text set input by the user may be received, and the text confirmation operation may be specifically an operation formed by a single touch on a candidate text, or specifically an operation formed by multiple touches on a candidate text. After receiving the text confirmation operation, the candidate text indicated by the text confirmation operation may be determined as the target text in response to the text confirmation operation.
[0097] The text screening method provided in the embodiment of the present application first displays a first candidate text set in response to a text input operation input by a user, then determines the candidate text screening strokes input by the user, performs text screening processing on the first candidate text set based on the candidate text screening strokes to obtain a second candidate text set, and then determines the target text in response to a text confirmation operation on the second candidate text set. Since the first candidate text set is determined according to the text input operation, there are many candidate texts in the first candidate text set that match the text input operation. By determining the candidate text screening strokes input by the user to screen the first candidate text set, a second candidate text set that meets the candidate text screening strokes can be screened out from a large number of candidate texts that match the text input operation, so that the user can quickly select the desired text from a large number of candidate texts with the same partial strokes, avoiding the problem of cumbersome text input operations caused by the user frequently sliding the candidate text list or switching pages to expand the candidate text list, thereby improving the convenience of user text input.
[0098] See next Figure 3 , Figure 3 It is a flow chart of another embodiment of a text screening method proposed in the present application.
[0099] Specifically, the text screening method is performed by an electronic device, and the text screening method includes:
[0100] S302: In response to a text input operation input by a user, obtain a target character corresponding to the text input operation.
[0101] In some embodiments, a user may input a text input operation in an input interface of an input method, and in response to the text input operation input by the user, a target character indicated by the text input operation may be obtained. For example, in a scenario where a pinyin input mode is selected to input a text input operation, the target character may include at least one pinyin character. For another example, in a scenario where a Wubi input mode is selected to input a text input operation, the target character may include at least one radical character.
[0102] S304, determining a first candidate character set for the target character, and displaying the first candidate character set.
[0103] In some embodiments, the target character may be a pinyin character. Specifically, determining the first candidate character set for the pinyin character may include: determining the target pinyin indicated by the pinyin character, matching the first candidate character set corresponding to the target pinyin in the word library, and the pinyin corresponding to each candidate character in the first candidate character set is the target pinyin. The word library may include a local word library and a cloud word library. The local word library may include user preference words determined based on user historical input operations, and the cloud word library may include words determined based on Internet big data.
[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 candidate English corresponding to the Chinese characters 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 candidate English corresponding to the Chinese characters 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", the candidate Chinese characters can be determined to include: good, number, pluck, consume, grand, hair, vast, sky etc.; when it is determined that the target pinyin is "hao", if the Chinese character with the target pinyin "hao" is determined to be "good", then the candidate English corresponding to "good" can be determined to include: 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 by 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 by 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 by 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 by 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 can also be understood that when displaying the first candidate character set, the candidate characters in the first candidate character set are displayed according to the priority corresponding to the candidate characters, wherein the priority can be comprehensively determined based on factors such as the historical number of inputs of the candidate characters and the degree of obscurity of the candidate characters. The embodiment of the present application does not impose specific restrictions on the factors for determining the priority.
[0107] In some other embodiments, the target character may be a radical character. Specifically, determining the first candidate character set for the radical character may include: 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 the vocabulary, and the Chinese character structure of each candidate character in the first candidate character set includes the target radical. The vocabulary may include a local vocabulary and a cloud vocabulary, the local vocabulary may include user preference words determined based on user historical input operations, and the cloud vocabulary may include words determined based on Internet big data. It is understandable that the radical character may include at least one letter symbol for indicating a radical. When the radical character includes a letter symbol for indicating a radical, the target radical indicated by the radical character is the radical indicated by the letter symbol. When the radical character includes multiple character symbols for indicating a radical, the target radical level indicated by the radical character includes the radical indicated by each letter symbol.
[0108] S306, receiving a key selection operation for a target key, and determining candidate character screening strokes corresponding to the key selection operation.
[0109] The target key position refers to a virtual key position configured with a character stroke. A fixed character stroke or a variable character stroke can be configured on the target key position; a target key position can be configured with at least one of a basic Chinese character stroke and a compound Chinese character stroke; a target key position can be configured with at least one basic Chinese character stroke, and a target key position can also be configured with at least one compound Chinese character stroke.
[0110] The key selection operation may refer to an operation of selecting one or more target keys.
[0111] In some embodiments, step S306 may be performed by: receiving a key position selection operation for at least one designated stroke key position, and determining a candidate text screening stroke corresponding to the key position selection operation.
[0112] Among them, the designated stroke key position refers to a virtual key position configured with a designated Chinese character stroke. The Chinese character stroke configured in the designated stroke key position is a fixed Chinese character stroke. The designated stroke key position can be configured with at least one of the basic Chinese character strokes and the compound Chinese character strokes. At least one basic Chinese character stroke can be configured in the designated stroke key position, and at least one compound Chinese character stroke can also be configured on the designated stroke key position.
[0113] For example, reference can be made to Figure 4 the display schematic diagram of a virtual keyboard shown in. 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, such as "one horizontal stroke" and "one left-falling stroke", can be configured in the key position "D" at the same time; or only one compound Chinese character stroke, such as a horizontal and oblique hook can also be configured in the key position "D" at the same time, such as "one horizontal stroke" and
[0114] Specifically, in a scenario where a Chinese character stroke is configured in 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, and the first Chinese character stroke configured in the specified stroke key position can be determined and used as the candidate character screening stroke. Or, the key selection operation received for at least one specified stroke key position is a plurality of key selection operations, each key selection operation corresponding to a specified stroke key position, and different key selection operations can correspond to the same or different specified stroke key positions. The second Chinese character stroke configured in the specified stroke key position corresponding to each key selection operation is determined, and it is determined that the candidate character screening stroke includes the second Chinese character stroke corresponding to each key selection operation; for example, the second Chinese character stroke corresponding to a certain key selection operation is "one horizontal stroke", and the second Chinese character stroke corresponding to another key selection operation is "one vertical stroke", and 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 on 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 from the multiple specified Chinese character strokes configured in the specified stroke key position for this key selection operation, 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 "一" (horizontal stroke) and "丨" (vertical stroke), and the third Chinese character stroke selected from "一" and "丨" by a certain key selection operation is "一", it can be determined that the candidate character screening stroke is "一". Or, 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 from the multiple specified stroke key positions configured in the specified stroke key position for each key selection operation, 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 from "一" and "丨" by this certain key selection operation is "一", and another key selection operation corresponds to a specified stroke key position configured with "丿" (left-falling stroke) and "丶" (dot stroke), and the fourth Chinese character stroke selected from "丿" and "丶" by this another key selection operation 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 on a specified stroke key position, the key selection operation can specifically be an operation of swiping left after clicking or pressing the specified stroke key position to select a certain specified Chinese character stroke, an operation of swiping right after clicking or pressing the specified stroke key position to select a certain specified Chinese character stroke, an operation of swiping up after clicking or pressing the specified stroke key position to select a certain specified Chinese character stroke, or an operation of swiping down after clicking or pressing the specified stroke key position to select a certain specified Chinese character stroke.
[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 stroke corresponding to the first key selection operation can be determined, the preset stroke is the Chinese character stroke configured in the preset stroke key, the specified candidate text that meets the preset stroke is determined in the first candidate text set, and the third candidate text set including the specified candidate text is determined.
[0121] A4: determining a reference stroke based on the third candidate character set, performing stroke key position update processing on the preset stroke key positions based on the reference strokes to obtain updated preset stroke key positions, and displaying the updated preset stroke key positions;
[0122] Specifically, common strokes are extracted from each designated candidate character in the third candidate character set to obtain reference strokes. The reference strokes may be common strokes of at least two designated candidate characters in the third candidate character set. The reference strokes may include at least one of basic Chinese character strokes and compound Chinese character strokes. For example, if the common strokes extracted from each designated candidate character in the third candidate character set include "ナ", then the reference stroke may be determined to be "ナ".
[0123] Furthermore, the preset Chinese character strokes in the preset stroke key positions can be updated as reference strokes to obtain updated preset stroke key positions. When the updated preset stroke key positions are displayed, it can be seen that the Chinese character strokes displayed therein become reference strokes.
[0124] A6: Receive a second key position selection operation for the updated preset stroke key position, and determine candidate text screening strokes corresponding to the second key position selection operation and the first key position selection operation.
[0125] Specifically, the second key selection operation selects the reference stroke displayed by the updated preset stroke key, and the first key selection operation selects the preset stroke displayed by default by the unupdated preset stroke key, to determine the candidate text screening strokes including the preset strokes and the reference strokes.
[0126] Therefore, by configuring preset stroke key positions that can display variable Chinese character strokes, the flexibility of the preset stroke key positions in displaying Chinese character strokes is improved, and the convenience of users in selecting Chinese character strokes is increased.
[0127] S308, determining the character composition structure corresponding to the strokes of the candidate characters.
[0128] In some embodiments, when the candidate text screening strokes include a Chinese character stroke, the Chinese character stroke is determined as a text composition structure; when the candidate text screening strokes include multiple Chinese character strokes, the multiple Chinese character strokes in the candidate text screening strokes are stroke-spliced to obtain a text 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 a part of the character stroke structure in the target candidate character is 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 flip 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 the preset time for displaying the second candidate character set, 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 candidate character set, use the next candidate character screening stroke as the screening character screening stroke in step S308, and use the second candidate character set as the first candidate character set in step S310, and 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 candidate character set, aiming to instruct the electronic device to determine the 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 candidate character set based on the next candidate character screening stroke to obtain a new second candidate character set, display the new second candidate character set, so as to facilitate the user to quickly select the desired input character from the new second candidate character screening set. Herein, the next key selection operation may 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 candidate character set includes candidate Chinese characters such as "系", "希", "兮", "夕", "息", "锡", "稀", "膝", "玺", etc. It can be seen that "希" ranks second in the second candidate character set. Within the preset time for displaying the second candidate character set, 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 "丶". Then, the new second candidate character set obtained through the next character screening stroke "丶" includes characters such as "希", "兮", "奚", "悉", etc.
[0134] Within the preset time for displaying the second candidate character set, 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 candidate character set, use the next candidate character screening stroke as the screening character screening stroke in step S308, and use the second candidate character set as the first candidate character set in step S310, and execute step S308 and step S310. Until a character confirmation operation for the second candidate character set input by the user is received, execute the following step S312.
[0135] It can be understood that after each execution of step S310, the above-mentioned step of "detecting whether there is a next key selection operation input by the user within the preset time of displaying the second candidate character set, and if there is a next key selection operation input by the user, determining the candidate character filtering stroke corresponding to the next key selection operation as the user's next character filtering stroke for the second candidate character set, using the next candidate character filtering stroke as the filtering character filtering stroke in step S308, and using the second candidate character set as the first candidate character set in step S310, and returning to execute steps S308 and S310" can be executed to continuously monitor whether the user inputs the next key selection operation, to continuously filter to obtain the latest second candidate character set, and to continuously display the latest second candidate character set to the user.
[0136] S312, in response to a character confirmation operation on the second candidate character set, determining a target character.
[0137] In some embodiments, a text confirmation operation for the second candidate text set input by the user may be received, and the text confirmation operation may be specifically an operation formed by a single touch on a candidate text, or specifically an operation formed by multiple touches on a candidate text. After receiving the text confirmation operation, the candidate text indicated by the text confirmation operation may be determined as the target text in response to the text confirmation operation.
[0138] In the text screening method provided in the embodiment of the present application, in response to the text input operation input by the user, the target character corresponding to the text input operation is obtained, the first candidate text set for the target character is determined, the first candidate text set is displayed, the key selection operation for the target key position is received, the candidate text screening strokes corresponding to the key selection operation are determined, the text composition structure corresponding to the candidate text screening strokes is determined, the target candidate text is matched in the first candidate text set based on the text composition structure, the second candidate text set is determined based on the target candidate text, the second candidate text set is displayed, and in response to the text confirmation operation for the second candidate text set, the target text is determined. Thus, by configuring the target key position that can display the Chinese character strokes, the user can quickly input the Chinese character strokes through the key position for inputting pinyin, so that the electronic device can obtain the second candidate text set according to the text composition structure, which is convenient for the user to quickly select the desired input text from the second candidate text set, avoiding the cumbersome text input operation caused by the user frequently sliding the candidate text list or switching pages to expand the candidate text list, and improving the convenience of the user inputting text.
[0139] See next Figure 6 , Figure 6 It is a flow chart of another embodiment of a text screening method proposed in the present application.
[0140] Specifically, the execution entity of this text screening method is an electronic device, and this text screening method includes:
[0141] S602, in response to a text input operation input by the user, obtain the target character corresponding to the text input operation.
[0142] S604, determine the first candidate text set for the target character, and display the first candidate text set.
[0143] Specifically, the implementation manners of steps S602 - S604 can refer to Figure 3 the descriptions of the relevant parts in steps S302 - S304 in the embodiments shown, which will not be elaborated here.
[0144] S606, receive a stroke input operation input by the user in the stroke input area, and determine the candidate text screening stroke.
[0145] Among them, 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, and the position of the stroke input area in the user interface is fixed and unchanged. The stroke input area can be configured with stroke keys.
[0146] The stroke input operation can be an operation of inputting a stroke key. The user can touch the stroke key in the stroke input area to trigger the operation of inputting the stroke key, so that the electronic device can receive the stroke input operation, and determine the text stroke configured in the stroke key corresponding to the stroke input operation as the candidate text screening stroke. At least one stroke key can be configured in the stroke input area, and different stroke keys can be configured to display different text strokes. Each stroke key can display at least one of the basic Chinese character strokes and the compound Chinese character strokes, and each stroke key can display at least one Chinese character stroke.
[0147] For example, reference can be made to Figure 7 the display schematic diagram of another virtual keyboard shown. As Figure 7 shown, the keys "一", "丨", "丿", "丶", "乛" located in the middle of the last row are all stroke keys. The basic Chinese character stroke configured in the key "一" is "一", the basic Chinese character stroke configured in the key "丨" is "丨", the basic Chinese character stroke configured in the key "丿" is "丿", the basic Chinese character stroke configured in the key "丶" is "丶", and the basic Chinese character stroke configured in the key "乛" is "乛". In other embodiments where the virtual keyboard schematic diagram is not shown, the stroke key shown by the key "一" can be configured with two basic Chinese character strokes at the same time, such as "一" and "丿"; the stroke key shown by the key "一" can also be configured with only one compound Chinese character stroke, such as the horizontal oblique hook In the stroke key position indicated by the key position "one", a basic Chinese character stroke and a compound Chinese character stroke can also be configured at the same time, such as "one" and
[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 the 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 may 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 manner 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 input by 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, and each first stroke input operation corresponds to a stroke key position respectively. 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", and it can be determined that the candidate text screening stroke includes: "one" and "vertical".
[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 stroke key, the first stroke input operation received from the user in the first stroke input area can be a first stroke input operation for a stroke key. Determine the third preset Chinese character stroke selected from the multiple Chinese character strokes displayed on the stroke key for the first stroke input operation, and use the third preset Chinese character stroke as the candidate character screening stroke. For example, if the stroke key corresponding to a certain first stroke input operation is configured with "一" (horizontal stroke) and "丨" (vertical stroke), and the third preset Chinese character stroke selected from "一" and "丨" for a certain first stroke input operation is "一", 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 first stroke input operation corresponds to a stroke key, and different first stroke input operations can correspond to the same or different stroke keys. Determine the fourth preset Chinese character stroke selected from the multiple stroke keys displayed on the stroke key for each first stroke input operation, 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 corresponding to a certain first stroke input operation displays "一" and "丨", and the fourth preset Chinese character stroke selected from "一" and "丨" for this first stroke input operation is "一", and another first stroke input operation corresponds to a stroke key that displays "丿" (left-falling stroke) and "丶" (dot stroke), and the fourth preset Chinese character stroke selected from "丿" and "丶" for this another first stroke input operation is "丿", it can be determined that the candidate character screening stroke includes: "一" 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 stroke key, the stroke input operation can specifically be an operation of swiping left after clicking or pressing the stroke key to select a certain Chinese character stroke, an operation of swiping right after clicking or pressing the stroke key to select a certain Chinese character stroke, an operation of swiping up after clicking or pressing the stroke key to select a certain Chinese character stroke, or an operation of swiping down after clicking or pressing the stroke key 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 specified 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 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 may be an input operation of a user drawing a stroke, and the user may draw a text stroke in a preset stroke input area to trigger the input operation of drawing a stroke, so that the electronic device may receive the first stroke input operation and determine the drawn stroke corresponding to the first stroke input operation as a candidate text screening stroke. It is understandable that the stroke drawn by the user may include at least one of a basic Chinese character stroke and a compound Chinese character stroke. Thus, by setting a preset stroke input area with a larger movable area, it is convenient for the user to manually draw a stroke.
[0155] S608, determining the character composition structure corresponding to the strokes of the candidate characters.
[0156] In some embodiments, when the candidate text screening strokes include a Chinese character stroke, the Chinese character stroke is determined as a text composition structure; when the candidate text screening strokes include multiple Chinese character strokes, the multiple Chinese character strokes in the candidate text screening strokes are stroke-spliced to obtain a text composition structure.
[0157] S610, matching a target candidate character in the first candidate character set based on the character composition structure, determining a second candidate character set based on the target candidate character, and displaying the second candidate character set.
[0158] In some embodiments, a target candidate character matching the character composition structure is detected in the first candidate character set, and a second candidate character set including the target candidate character is determined. Specifically, the target candidate character matching the character composition structure may be a target candidate character having the character composition structure, and a part of the character stroke structure in the target candidate character is the same as the character composition structure.
[0159] Optionally, after executing step S610, the following steps are further executed: within the preset time of displaying the second candidate character set, detecting whether there is a next stroke input operation input by the user, if there is a next stroke input operation input by the user, determining the candidate character screening stroke corresponding to the next stroke input operation as the next character screening stroke of the user for the second candidate character set, using the next candidate character screening stroke as the screening character screening stroke in step S608, and using the second candidate character set as the first candidate character set in step S610, and returning to execute step S608 and step S610. The next stroke input operation refers to a stroke input operation inputted by the user again within the preset time of displaying the second candidate character set to the user, which is intended to instruct the electronic device to determine a new candidate character screening stroke inputted by the user based on the next stroke input operation, i.e., the next candidate character screening stroke, and after performing a character screening process on the second candidate character set based on the next candidate character screening 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 character from the new second candidate character screening set. The next stroke input operation may be a stroke input operation for one or more stroke key positions.
[0160] If there is no next key selection operation input by the user within the preset time of displaying the second candidate character set, the following steps are canceled: the candidate character screening stroke corresponding to the next key selection operation is determined as the next character screening stroke of the user for the second candidate character set, the next candidate character screening stroke is used as the screening character screening stroke in step S608, and the second candidate character set is used as the first candidate character set in step S610, and steps S608 and S610 are executed. Until a character confirmation operation input by the user for the second candidate character set is received, the following step S612 is executed.
[0161] It can be understood that after each execution of step S610, the above-mentioned step of "detecting whether there is a next stroke input operation input by the user within the preset time of displaying the second candidate character set, and if there is a next stroke input operation input by the user, determining 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, using the next candidate character filtering stroke as the filtering character filtering stroke in step S608, and using the second candidate character set as the first candidate character set in step S610, and returning to execute steps S608 and S610" can be executed to continuously monitor whether the user inputs the next stroke input operation, to continuously filter to obtain the latest second candidate character set, and to continuously display the latest second candidate character set to the user.
[0162] S612: Determine target characters in response to a character confirmation operation on the second candidate character set.
[0163] In some embodiments, a text confirmation operation for the second candidate text set input by the user may be received, and the text confirmation operation may be specifically an operation formed by a single touch on a candidate text, or specifically an operation formed by multiple touches on a candidate text. After receiving the text confirmation operation, the candidate text indicated by the text confirmation operation may be determined as the target text in response to the text confirmation operation.
[0164] In the text screening method provided in the embodiment of the present application, in response to the text input operation input by the user, the target character corresponding to the text input operation is obtained, the first candidate text set for the target character is determined, and the first candidate text set is displayed. After that, the stroke input operation input by the user in the stroke input area is received, the candidate text screening strokes are determined, and then the text composition structure corresponding to the candidate text screening strokes is determined, the target candidate text is matched in the first candidate text set based on the text composition structure, the second candidate text set is determined based on the target candidate text, and in response to the text confirmation operation for the second candidate text set, the target text is determined. Thus, by configuring the stroke input area, the user can quickly input the stroke input operation, the user can quickly input the text strokes, and then the candidate text screening strokes are determined by the text strokes input by the user, and then the corresponding text composition structure is determined, and the second candidate text set is obtained by screening according to the text composition structure, so that the user can quickly select the text that is expected to be input from the second candidate text set, avoiding the cumbersome text input operation caused by the user frequently sliding the candidate text list or switching pages to expand the candidate text list, and improving the convenience of the user inputting text.
[0165] The following will be combined Figure 8 , the text screening device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 8 The text screening device shown is used to execute the present application Figure 1 to Figure 7 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 to Figure 7 The embodiment shown.
[0166] See also Figure 8 , which shows a schematic diagram of the structure of the text screening device of an embodiment of the present application. The text screening device 1 can be implemented as all or part of the device through software, hardware or a combination of both. According to some embodiments, the text screening device 1 includes a first screening module 11, a second screening module 12, and a third screening module 13, which are specifically used to:
[0167] A first screening module 11, for displaying a first candidate character set in response to a character input operation input by a user;
[0168] A second screening module 12, configured to determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set;
[0169] The third screening module 13 is used to determine the target text in response to the text confirmation operation on the second candidate text set.
[0170] Optionally, the text screening device 1 further includes:
[0171] A screening stroke determination module, used to determine the user's next candidate character screening stroke for the second candidate character set;
[0172] The candidate character screening module uses the next candidate character screening stroke as the screening character screening stroke, and uses the second candidate character set as the first candidate character set, and performs the steps of 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 displaying the second candidate character set.
[0173] Optionally, the second screening module 12 includes:
[0174] The first stroke determination unit is used to receive a key position selection operation for a target key position, and determine a candidate character screening stroke corresponding to the key position selection operation.
[0175] Optionally, the first stroke determination unit is specifically configured to:
[0176] A key position selection operation for at least one designated stroke key position is received, and a candidate character screening stroke corresponding to the key position selection operation is determined.
[0177] Optionally, the first stroke determination unit is specifically configured to:
[0178] receiving a first key position selection operation for a preset stroke key position, and performing a character screening process on the first candidate character set based on the first key position selection operation to obtain a third candidate character set;
[0179] Determine a reference stroke based on the third candidate character set, perform 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 display the updated preset stroke key position;
[0180] A second key position selection operation for the updated preset stroke key position is received, and candidate character screening strokes corresponding to the second key position selection operation and the first key position selection operation are determined.
[0181] Optionally, the text screening device 1 is further used to: set a stroke input area in the user interface; the second screening module 12 includes:
[0182] The first stroke determination unit is used to receive a stroke input operation input by the user in the stroke input area, and determine the strokes for candidate character screening.
[0183] Optionally, the first screening module 11 includes:
[0184] A character determination unit, configured to obtain a target character corresponding to a text input operation input by a user;
[0185] The character determination unit is used to determine a first candidate character set for the target character and display the first candidate character set.
[0186] Optionally, the second screening module 12 includes:
[0187] A character composition determination unit, used to determine the character composition structure corresponding to the candidate character screening strokes;
[0188] The candidate character screening unit is used to 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.
[0189] The text screening device provided in the embodiment of the present application first displays a first candidate text set in response to a text input operation input by a user, then determines the candidate text screening strokes input by the user, performs text screening processing on the first candidate text set based on the candidate text screening strokes to obtain a second candidate text set, and then determines the target text in response to a text confirmation operation on the second candidate text set. Since the first candidate text set is determined according to the text input operation, there are many candidate texts in the first candidate text set that match the text input operation. By determining the candidate text screening strokes input by the user to screen the first candidate text set, a second candidate text set that meets the candidate text screening strokes can be screened out from a large number of candidate texts that match the text input operation, so that the user can quickly select the desired text from a large number of candidate texts with the same partial strokes, avoiding the problem of cumbersome text input operations caused by the user frequently sliding the candidate text list or switching pages to expand the candidate text list, thereby improving the convenience of user text input.
[0190] Please refer to Fig. 9 , Fig. 9A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Exemplarily, the electronic device in the embodiment of the present application may 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, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.
[0191] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0192] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, 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., a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system 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 open up data communication between third-party applications and the operating system so that the operating system can 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 commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands 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 are touch screen displays.
[0195] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.
[0196] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.
[0197] exist Fig. 9In the electronic device shown, the processor 110 can be used to call the program of the text screening method stored in the memory 120, and specifically perform the following operations:
[0198] In response to a text input operation input by a user, displaying a first candidate text set;
[0199] Determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set;
[0200] In response to a character confirmation operation on the second candidate character set, a target character is determined.
[0201] In some embodiments, after performing the character screening process on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set and displaying the second candidate character set, the processor 110 further performs the following operations:
[0202] Determining the user's next candidate character screening strokes for the second candidate character set;
[0203] The next candidate character screening stroke is used as the screening character screening stroke, and the second candidate character set is used as the first candidate character set, and the step of performing character screening processing on the first candidate character set based on the candidate character screening stroke to obtain a second candidate character set is performed, and the second candidate character set is displayed.
[0204] In some embodiments, when the processor 110 executes the step of determining the candidate character screening strokes input by the user, the following operations are specifically performed:
[0205] A key position selection operation for a target key position is received, and candidate character screening strokes corresponding to the key position selection operation are determined.
[0206] In some embodiments, the processor 110 performs the following operations when receiving the key selection operation for the target key and determining the candidate character screening strokes corresponding to the key selection operation:
[0207] A key position selection operation for at least one designated stroke key position is received, and a candidate character screening stroke corresponding to the key position selection operation is determined.
[0208] In one embodiment, when the processor 110 performs the step of receiving a key selection operation for a target key and determining a candidate character screening stroke corresponding to the key selection operation, the processor 110 specifically performs the following operations:
[0209] receiving a first key position selection operation for a preset stroke key position, and performing a character screening process on the first candidate character set based on the first key position selection operation to obtain a third candidate character set;
[0210] Determine a reference stroke based on the third candidate character set, perform 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 display the updated preset stroke key position;
[0211] A second key position selection operation for the updated preset stroke key position is received, and candidate character screening strokes corresponding to the second key position selection operation and the first key position selection operation are determined.
[0212] In some embodiments, the processor 110 further performs the following operations: setting a stroke input area in the user interface; when the processor 110 performs the step of determining the candidate text filter strokes input by the user, the processor 110 specifically performs the following operations:
[0213] Receive a stroke input operation input by the user in the stroke input area, and determine candidate character filtering strokes.
[0214] In some embodiments, when the processor 110 executes the step of displaying the first candidate character set in response to the character input operation input by the user, the processor 110 specifically performs the following operations:
[0215] In response to a text input operation input by a user, obtaining a target character corresponding to the text input operation;
[0216] A first candidate character set for the target character is determined, and the first candidate character set is displayed.
[0217] In some embodiments, when the processor 110 performs character screening processing on the first candidate character set based on the candidate character screening strokes to obtain the second candidate character set, the processor 110 specifically performs the following operations:
[0218] Determine the character composition structure corresponding to the candidate character screening strokes;
[0219] A target candidate character is matched in the first candidate character set based on the character composition structure, and a second candidate character set is determined based on the target candidate character.
[0220] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the text screening method described in the above embodiments.
[0221] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the text screening method described in the above embodiments.
[0222] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with 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 codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0223] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A text screening method, characterized in that: The method comprises: In response to a text input operation input by a user, displaying a first candidate text set; Determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set; In response to a character confirmation operation on the second candidate character set, a target character is determined.
2. The method according to claim 1, characterized in that After performing character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set and displaying the second candidate character set, the method further includes: Determining the user's next candidate character screening strokes for the second candidate character set; The next candidate character screening stroke is used as the screening character screening stroke, and the second candidate character set is used as the first candidate character set, and the step of performing character screening processing on the first candidate character set based on the candidate character screening stroke to obtain a second candidate character set is performed, and the second candidate character set is displayed.
3. The method according to claim 1, characterized in that The step of determining the candidate character screening strokes input by the user includes: A key position selection operation for a target key position is received, and candidate character screening strokes corresponding to the key position selection operation are determined.
4. The method according to claim 3, characterized in that The receiving a key position selection operation for a target key position and determining candidate character screening strokes corresponding to the key position selection operation includes: A key position selection operation for at least one designated stroke key position is received, and a candidate character screening stroke corresponding to the key position selection operation is determined.
5. The method according to claim 3, characterized in that: The receiving a key position selection operation for a target key position and determining candidate character screening strokes corresponding to the key position selection operation includes: receiving a first key position selection operation for a preset stroke key position, and performing a character screening process on the first candidate character set based on the first key position selection operation to obtain a third candidate character set; Determine a reference stroke based on the third candidate character set, perform 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 display the updated preset stroke key position; A second key position selection operation for the updated preset stroke key position is received, and candidate character screening strokes corresponding to the second key position selection operation and the first key position selection operation are determined.
6. The method according to claim 1, characterized in that The method further comprises: setting a stroke input area in the user interface; The step of determining the candidate character screening strokes input by the user includes: Receive a stroke input operation input by the user in the stroke input area, and determine candidate character filtering strokes.
7. The method according to claim 1, characterized in that The step of displaying a first candidate character set in response to a character input operation input by a user comprises: In response to a text input operation input by a user, obtaining a target character corresponding to the text input operation; A first candidate character set for the target character is determined, and the first candidate character set is displayed.
8. A text screening device, characterized in that: The device comprises: A first screening module, configured to display a first candidate character set in response to a character input operation input by a user; A second screening module, configured to determine the candidate character screening strokes input by the user, perform character screening processing on the first candidate character set based on the candidate character screening strokes to obtain a second candidate character set, and display the second candidate character set; The third screening module is used to determine the target text in response to the text confirmation operation on the second candidate text set.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 7.
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
Text input method and device, equipment, medium and computer program product
CN116466830A
Text processing method and device, computer equipment, storage medium and program product
CN117555470A