Chinese character output method and device, equipment and storage medium

By using sub-coding to indicate the stroke order direction, users can easily enter Chinese characters, solving the problem of high learning costs in the prior art, and realizing the knowledge of characters and efficient input.

CN119690253APending Publication Date: 2025-03-25HUAIHUA UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411556742.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Existing Chinese character output methods such as Wubi input method and Pinyin input method, users need to remember the keys or predict the pronunciation of Chinese characters, resulting in high learning costs.

Method used

By obtaining a set of subcodes, each subcode represents a stroke order direction, the candidate Chinese characters are determined based on these subcodes, and the Chinese characters are output. This method uses the numeric key position connection on the nine-grid numeric keypad to indicate the stroke order direction, simplifying the user input process.

Benefits of technology

Users can input Chinese characters more easily, realize the knowledge of characters and codes, reduce the learning and use costs, simplify traditional multi-finger or full-hand operation, and improve input efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690253A_ABST
    Figure CN119690253A_ABST
Patent Text Reader

Abstract

The invention discloses a Chinese character output method and device, equipment and a storage medium, and belongs to the technical field of information processing, the method comprises the steps that a first code string is acquired, the first code string comprises a plurality of sub-codes, any sub-code is used for indicating the direction of a stroke order, and the direction of the stroke order comprises the upper direction, the lower direction, the left direction, the right direction, the upper left direction, the lower left direction, the upper right direction and the lower right direction; and determining candidate Chinese characters corresponding to the first code string based on the stroke order indicated by the first code string, and outputting Chinese characters based on the candidate Chinese characters. According to the method, a user can easily output Chinese characters, and the purpose that codes are known when the user sees the Chinese characters is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to a Chinese character output method, device, equipment and storage medium. Background Art

[0002] At present, the commonly used method of inputting Chinese characters is to output according to strokes or pinyin. Taking the Wubi input method as an example, when a user uses the Wubi input method, he first maps several basic strokes to several keys on the keyboard, and then the user inputs the strokes according to these keys. After receiving the strokes, the computer device matches the corresponding candidate Chinese characters and outputs them for the user to choose.

[0003] However, this brings additional learning costs. For example, when users use the Wubi input method, although they only need to know the shape of the characters to output Chinese characters on the computer device, they need to remember the key positions of the Wubi input method, which has a high learning cost; and when users use the Pinyin input method, they need to know the pronunciation of Chinese characters in advance to output Chinese characters on the computer device, which also brings certain learning costs. Summary of the invention

[0004] The present disclosure provides a Chinese character output method, device, equipment and storage medium, which can enable users to easily output Chinese characters and know the code by seeing the characters. The technical solution at least includes the following solutions:

[0005] In a first aspect, a Chinese character output method is provided, comprising: obtaining a first code string, the first code string comprising a plurality of sub-codes, any sub-code being used to indicate a stroke direction, the stroke directions comprising up, down, left, right, upper left, lower left, upper right, and lower right; determining candidate Chinese characters corresponding to the first code string based on the stroke order indicated by the first code string, and outputting Chinese characters based on the candidate Chinese characters.

[0006] Optionally, the subcode is a three-digit number, the second digit of the three-digit number is the center of the nine-grid numeric keypad, and the direction obtained by connecting the positions of the corresponding numeric keys of any subcode on the nine-grid numeric keypad is the same as the stroke direction indicated by the subcode; when the first row to the third row of the nine-grid numeric keypad are 789, 456, and 123 respectively, the subcodes include: 159, 258, 357, 456, 654, 753, 852, and 951; among which, the stroke direction indicated by 159 is upper right, the stroke direction indicated by 258 is upper, the stroke direction indicated by 357 is upper left, the stroke direction indicated by 456 is right, the stroke direction indicated by 654 is left, the stroke direction indicated by 753 is lower right, the stroke direction indicated by 852 is lower, and the stroke direction indicated by 951 is lower left.

[0007] Optionally, determining the candidate Chinese characters corresponding to the first encoding string based on the stroke order indicated by the first encoding string includes: determining the similarity between a plurality of second encoding strings in a first database and the first encoding string, obtaining a plurality of similarities, where the first database includes a plurality of second encoding strings corresponding to a plurality of Chinese characters, and any Chinese character in the first database is encoded into a second encoding string according to the sub-encoding; sorting the plurality of similarities in descending order to obtain a similarity order, and the Chinese characters indicated by the second encoding strings corresponding to the top N similarities in the similarity order are the candidate Chinese characters; where N is a positive integer.

[0008] Optionally, the first encoding string further includes a plurality of delimiters. Determining the candidate Chinese characters corresponding to the first encoding string based on the stroke order indicated by the first encoding string includes: determining the stroke combination corresponding to the first encoding string based on the first encoding string and the plurality of delimiters, where the delimiters are used to separate a plurality of sub-encodings in the first encoding string into a plurality of sub-encoding groups, any sub-encoding group includes at least one sub-encoding and any sub-encoding group is used to indicate a stroke according to the direction of the stroke order; determining the candidate Chinese characters corresponding to the first encoding string based on the stroke combination corresponding to the first encoding string.

[0009] Optionally, there is a coding correspondence between the sub-encoding group and the stroke. In the coding correspondence, any sub-encoding group is used to indicate a stroke according to the direction of the stroke order; the coding correspondence includes: horizontal (一) = {456}, horizontal fold horizontal left-falling stroke horizontal hook (乛) = {456951}, horizontal fold hook horizontal fold and raise horizontal zigzag horizontal bend horizontal oblique hook horizontal fold and bend hook horizontal left-falling and bend hook horizontal left-falling and fold and raise horizontal zigzag and hook horizontal zigzag and fold vertical (丨) = {852}, vertical hook (亅) = {852357}, vertical raise vertical fold vertical bend vertical bend hook (乚) = {852456258}, vertical fold and left-falling stroke vertical zigzag vertical zigzag and hook left-falling stroke (丿) = {951}, left-falling and fold right-falling stroke right dot (丶) = {753}, hook oblique hook lying hook carry

[0010] In the second aspect, a Chinese character output device is also provided, including: an acquisition module, used to acquire a first code string, the first code string includes multiple sub-codes, any sub-code is used to indicate a stroke direction, the stroke directions include up, down, left, right, upper left, lower left, upper right, and lower right; a Chinese character output module, used to determine the candidate Chinese characters corresponding to the first code string based on the stroke order indicated by the first code string, and output Chinese characters based on the candidate Chinese characters.

[0011] Optionally, the Chinese character output module is also used to determine the similarity between multiple second code strings in the first database and the first code string to obtain multiple similarities, wherein the first database includes multiple second code strings corresponding to multiple Chinese characters, and any Chinese character in the first database is used to encode into a second code string according to the sub-code; the multiple similarities are sorted in order from large to small to obtain a similarity order, and the Chinese characters indicated by the second code strings corresponding to the first N similarities in the similarity order are the candidate Chinese characters; wherein N is a positive integer.

[0012] Optionally, when the first code string also includes multiple separators, the Chinese character output module is also used to determine the stroke combination corresponding to the first code string based on the first code string and the multiple separators, the separator is used to separate the multiple sub-codes in the first code string into multiple sub-code groups, any sub-code group includes at least one sub-code and any sub-code group is used to indicate a stroke in the direction of stroke order; based on the stroke combination corresponding to the first code string, determine the candidate Chinese characters corresponding to the first code string.

[0013] In a third aspect, a computer device is also provided, comprising: a memory and a processor, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor, thereby executing the Chinese character output method described in the above embodiment.

[0014] In a fourth aspect, a computer-readable storage medium is also provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor, thereby executing the Chinese character output method described in the above embodiment.

[0015] In a fifth aspect, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method described in the first aspect is implemented.

[0016] The beneficial effects brought by the technical solution provided by the embodiments of the present disclosure include at least:

[0017] In the disclosed embodiment, since any sub-code is used to indicate the direction of a stroke order, the user can easily input the first code string corresponding to a Chinese character when inputting the first code string, so as to know the code by seeing the character, thereby reducing the cost of learning and use for the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of a Chinese character output method provided by an exemplary embodiment of the present disclosure is shown;

[0021] Figure 3 A flowchart of a Chinese character output method provided by another exemplary embodiment of the present disclosure is shown;

[0022] Figure 4 This is a schematic diagram of a nine-square numeric keyboard;

[0023] Figure 5 A flowchart of a Chinese character output method provided by another exemplary embodiment of the present disclosure is shown;

[0024] Figure 6 A schematic structural diagram of a Chinese character output device provided by an exemplary embodiment of the present disclosure is shown;

[0025] Figure 7 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] Unless otherwise defined, the technical terms or scientific terms used herein shall have the usual meanings understood by persons with ordinary skills in the field to which the present disclosure belongs. The words "first", "second", "third" and similar words used in the patent application specification and claims of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantity limitation, but indicate the existence of at least one. Words such as "include" or "comprise" and similar words mean that the elements or objects appearing before "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0027] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0028] In order to facilitate understanding of the embodiments of the present disclosure, the terms involved in the embodiments of the present disclosure are first explained below.

[0029] Stroke order: Stroke order is the smallest unit of strokes. Any stroke is composed of multiple strokes.

[0030] Stroke: A stroke is the smallest unit of a Chinese character. Any Chinese character is composed of multiple strokes.

[0031] Figure 1 Schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 As shown, the computer device 101 is connected to the input device 102 and the display device 103 respectively, and the user 104 can input the first code string to the computer device 101 through the input device 102, and the process of inputting the first code string can be displayed on the display device 103.

[0032] The computer device 101 is used to receive a first code string input by a user 104 , and to display candidate Chinese characters indicated by the first code string on the display device 103 .

[0033] The display device 103 is used to display the process of the user 104 inputting the first code string and to display the candidate Chinese characters indicated by the first code string; after the display device 103 displays the candidate Chinese characters, the user 104 can select one as an input Chinese character from the candidate Chinese characters displayed in the display device 103 through the input device 102.

[0034] Optionally, the computer device 101 includes a processor and a memory, for example, a processor and a memory in a desktop computer, a smart phone, a tablet computer, etc.

[0035] Optionally, the input device 102 includes but is not limited to a keyboard, a touch screen, a capacitive button, or a capacitive touch screen with a virtual keyboard.

[0036] When the computer device 101 is a desktop computer, the input device 102 can be a keyboard, for example, a keyboard including a nine-square grid numeric keypad; when the computer device 101 is a device with a touch screen such as a smart phone or a tablet computer, the input device 102 can be a touch screen; when the display device 103 is a smart wearable device, the input device 102 can be a capacitive button or a capacitive touch screen with a virtual keyboard, etc.

[0037] Optionally, the display device 103 includes but is not limited to a display, a touch screen, a VR (Virtual Reality) device, etc.

[0038] Figure 2 A flowchart of a Chinese character output method provided by an exemplary embodiment of the present disclosure is shown, and the method can be executed by a computer device. Figure 2 , the method comprising:

[0039] In step 201, a first encoding string is obtained.

[0040] The first code string includes multiple sub-codes and multiple separators, and any sub-code is used to indicate a stroke direction, and the stroke directions include up, down, left, right, upper left, lower left, upper right, and lower right.

[0041] In step 202, based on the stroke order indicated by the first coding string, candidate Chinese characters corresponding to the first coding string are determined, and Chinese characters are output based on the candidate Chinese characters.

[0042] The candidate Chinese characters are the Chinese characters to be output.

[0043] Optionally, after the candidate Chinese characters corresponding to the first code string are displayed on the display device, the user can select one of the candidate Chinese characters through the input device, and then the user can press the confirmation symbol. After receiving the confirmation symbol, the computer device can output the candidate Chinese character selected by the user.

[0044] In the disclosed embodiment, since any sub-code is used to indicate the direction of a stroke order, the user can easily input the first code string corresponding to a Chinese character when inputting the first code string, so as to know the code by seeing the character, thereby reducing the cost of learning and use for the user.

[0045] Figure 3 A flowchart of a Chinese character output method provided by another exemplary embodiment of the present disclosure is shown, and the method can be executed by a computer device. Figure 3 , the method comprising:

[0046] In step 301, a first encoding string is obtained.

[0047] The first code string includes multiple sub-codes, any one of which is used to indicate a stroke direction, and the stroke directions include up, down, left, right, upper left, lower left, upper right, and lower right.

[0048] In the embodiment of the present disclosure, the first coding string is input by a user through an input device.

[0049] Optionally, the subcode is a three-digit number, the second digit of the three-digit number is the center of the nine-grid numeric keypad, and the direction obtained by connecting the positions of the corresponding numeric keys of any three-digit number of the subcode on the nine-grid numeric keypad is the same as the stroke order direction indicated by the subcode.

[0050] Figure 4 This is a diagram of a nine-square numeric keyboard. Figure 4 , when the first to third rows of the nine-square numeric keyboard are 789, 456, and 123 respectively, the sub-codes include: 159, 258, 357, 456, 654, 753, 852, and 951, a total of eight.

[0051] Among them, the stroke direction indicated by 159 is upper right, the stroke direction indicated by 258 is upper, the stroke direction indicated by 357 is upper left, the stroke direction indicated by 456 is right, the stroke direction indicated by 654 is left, the stroke direction indicated by 753 is lower right, the stroke direction indicated by 852 is lower, and the stroke direction indicated by 951 is lower left.

[0052] Here, 159 is connected to the corresponding number keys on the nine-square numeric keypad to get The number keys corresponding to 258 on the nine-square numeric keypad are connected to get "↑", which is the upper right direction. The number keys corresponding to 357 on the nine-square numeric keypad are connected to get The number keys corresponding to 456 on the nine-grid numeric keypad are connected to get "→", which is the right direction. The number keys corresponding to 654 on the nine-grid numeric keypad are connected to get "←", which is the left direction. The number keys corresponding to 753 on the nine-grid numeric keypad are connected to get The number keys corresponding to 852 on the nine-square numeric keypad are connected to get "↓", which is the down direction. The number keys corresponding to 951 on the nine-square numeric keypad are connected to get "↓", which is the down direction. That is the lower left direction.

[0053] In this way, when a three-digit subcode is input on the nine-square numeric keypad, the direction formed by the positions of the three digits on the keyboard is the same as the stroke order direction, and users can easily understand and remember the eight subcodes, reducing the user's learning cost and realizing the knowledge of the code when seeing the word. In specific scenarios, such as smart wearable devices, Chinese characters and letters can be input by quickly sliding a single finger on a capacitive button or on a capacitive touch screen with a virtual nine-square numeric keypad.

[0054] Optionally, after obtaining the first code string, before executing step 302, it is first necessary to determine whether the first code string is legal. Here, the legality of the first code string includes two cases: the first case, the first code string is all numbers and the length of the first code string is a multiple of 3; the second case, the second number of every 3 numbers in the first code string is 5.

[0055] In this case, determining whether the first coding string is legal includes: determining whether the first coding string satisfies the first condition; if the first coding string satisfies the first condition, determining whether the first coding string satisfies the second condition.

[0056] If the first coding string satisfies the first condition and the second condition, the first coding string is legal, and step 302 is performed on the first coding string.

[0057] If the first code string satisfies the first condition but does not satisfy the second condition, the first code string is illegal and the first code string is directly output without outputting Chinese characters.

[0058] If the first code string does not satisfy the first condition, it is determined whether the first M bits of the first code string satisfy the second condition. If the first M bits of the first code string satisfy the second condition, step 302 is performed on the first M bits of the first code string. If the first M bits of the first code string do not satisfy the second condition, the first code string is illegal, and the first code string is directly output without outputting Chinese characters.

[0059] Wherein, M is an integer and a multiple of 3, M is greater than 2, KM is less than or equal to 2, and K is the length of the first coding string.

[0060] Optionally, in order to reduce the amount of data transmission, the method further includes: converting each three-digit subcode in the first code string into a one-digit output code and then transmitting it to the computer device (that is, executing step 301). Here, since the number of subcodes is limited (a total of eight), a corresponding relationship between a subcode and an output code can be established, so that any three-digit subcode corresponds to a one-digit output code, and different subcodes correspond to different output codes, thereby reducing the amount of data transmission.

[0061] The output code may be a number, an English character or other types of characters. For example, the corresponding relationship between the subcode and the output code is shown in Table 1 below.

[0062] Table 1: Sub-coding and output code correspondence table.

[0063]

[0064] Since the computer device can only process binary data, when the output code corresponding to the first code string is transmitted to the computer device, the output code corresponding to the first code string needs to be converted into binary form. After receiving the output code corresponding to the first code string in binary form, the computer device will convert the output code corresponding to the first code string in binary form back to the first code string in binary form, and then execute step 302.

[0065] In step 302, the similarities between a plurality of second encoding strings in the first database and the first encoding string are determined to obtain a plurality of similarities.

[0066] The first database includes a plurality of second encoding strings corresponding to a plurality of Chinese characters, and any Chinese character in the first database is used to be encoded into a second encoding string according to the sub-coding.

[0067] Here, a first database can be pre-established and stored in a memory before executing the method in the embodiment of the present disclosure. When establishing the first database, for any Chinese character, the Chinese character can be first decomposed into a combination of multiple consecutive strokes according to writing habits, and then the combination of multiple strokes can be converted into multiple sub-codes according to sub-codes, so as to obtain the second code string of the Chinese character.

[0068] There are many methods for calculating similarity in the related art, and detailed description is omitted here.

[0069] In step 303, multiple similarities are sorted in descending order to obtain a similarity order, and the Chinese characters indicated by the second encoding strings corresponding to the first N similarities in the similarity order are candidate Chinese characters.

[0070] Here, N is a positive integer. Exemplarily, the value range of N is 5-10, for example, 5, 6, 10, etc.

[0071] In step 304, Chinese characters are output based on the candidate Chinese characters.

[0072] The relevant contents of step 304 refer to the aforementioned step 202, and the detailed description is omitted here.

[0073] In the disclosed embodiment, since any sub-code is used to indicate the direction of a stroke order, the user can easily input the first code string corresponding to a Chinese character when inputting the first code string, so as to know the code by seeing the character, thereby reducing the cost of learning and use for the user.

[0074] In addition, since the subcode consists of three digits, users only need three fingers or even one finger to operate when inputting, which simplifies the traditional multi-finger or full-hand operation and enables users to input Chinese characters more conveniently. Since this method only involves numbers throughout the data transmission process, this method is suitable for development environments. In various operating systems or bare metal development environments, developers can cut and optimize the code input as needed, and it has extremely high portability. When inputting, only the nine-square grid number area on the keyboard is used, and it can be used without switching the input method, which improves the user's input efficiency and thus improves the output efficiency of Chinese characters. This method is particularly suitable for assisting Chinese character input. Especially in situations where space is limited, keys are limited, or input devices are restricted.

[0075] Figure 5 A flowchart of a Chinese character output method provided by another exemplary embodiment of the present disclosure is shown, and the method can be executed by a computer device. Figure 5 , the method comprising:

[0076] In step 501, a first encoding string is obtained.

[0077] The relevant contents of step 501 refer to the aforementioned step 301, and the detailed description is omitted here.

[0078] In step 502, based on the first coding string and a plurality of separators, a stroke combination corresponding to the first coding string is determined.

[0079] The separator is used to separate the multiple subcodes in the first code string into multiple subcode groups, any subcode group includes at least one subcode and any subcode group is used to indicate a stroke according to the direction of the stroke order.

[0080] Here, the delimiter is also input by the user, and the user can manually input a delimiter after inputting a sub-code group. Exemplarily, the delimiter is a space, or the delimiter is other keys with a delimiting function, such as a comma, a period, etc.

[0081] Optionally, there is a coding correspondence between the sub-coding groups and the strokes. In the coding correspondence, any sub-coding group is used to indicate a stroke in the direction of the stroke order. When performing step 502, based on this coding correspondence, the stroke combination corresponding to the first coding string can be determined.

[0082] Optionally, the coding correspondence includes: horizontal (一) = {456}, horizontal fold horizontal left-falling stroke horizontal hook (乛) = {456951}, horizontal fold hook horizontal fold and raise horizontal double fold horizontal bend horizontal oblique hook horizontal fold and bend hook horizontal left-falling and bend hook horizontal left-falling and double fold horizontal triple fold hook horizontal triple fold vertical (丨) = {852}, vertical hook (亅) = {852357}, vertical raise vertical fold vertical bend vertical bend hook (乚) = {852456258}, vertical fold and left-falling stroke vertical double fold vertical double fold hook left-falling stroke (丿) = {951}, left-falling fold right-falling stroke right dot (丶) = {753}, hooked stroke oblique hook lying hook raise

[0083] Examples of each coding correspondence are shown in Table 2.

[0084] Table 2: Coding correspondence and its examples.

[0085]

[0086] In step 503, based on the stroke combination corresponding to the first coding string, the candidate Chinese characters corresponding to the first coding string are determined.

[0087] Regarding the implementation method of determining candidate Chinese characters based on stroke combinations, there are many in the related technologies. For example, a method similar to the五笔 input method for determining candidate Chinese characters based on stroke combinations can be adopted, which is not elaborated here.

[0088] In step 504, the Chinese characters are output based on the candidate Chinese characters.

[0089] The relevant contents of step 504 refer to the aforementioned step 202, and the detailed description is omitted here.

[0090] In the disclosed embodiment, since any sub-code is used to indicate the direction of a stroke order, the user can easily input the first code string corresponding to a Chinese character when inputting the first code string, realize knowing the code by seeing the character, and reduce the cost of user learning and use. Since the sub-code consists of three digits, the user only needs three fingers or even a single finger to operate when inputting, which simplifies the traditional multi-finger or full-hand operation, so that the user can input Chinese characters more conveniently. Since the method only involves numbers throughout the data transmission process, the method is suitable for the development environment. In various operating systems or bare metal development environments, developers can cut and optimize the code input as needed, and it has extremely high portability. When inputting, only the nine-square grid number area on the keyboard is used, and it can be used without switching the input method, which improves the user's input efficiency and thus improves the output efficiency of Chinese characters. The method is particularly suitable for assisting Chinese character input. Especially in the case of limited space, limited keys or limited input devices.

[0091] In addition, by first converting the first coding string into a stroke combination and then determining the candidate Chinese characters corresponding to the first coding string based on the strokes, the candidate Chinese characters can be quickly determined.

[0092] The following are device embodiments of the present application. For details not described in detail in the device embodiments, reference may be made to the above method embodiments.

[0093] Figure 6 A schematic diagram of the structure of a Chinese character output device provided by an exemplary embodiment of the present disclosure is shown. Figure 6 The Chinese character output device 600 includes: an acquisition module 601 and a Chinese character output module 602.

[0094] The acquisition module 601 is used to acquire a first code string, which includes multiple sub-codes. Any sub-code is used to indicate a stroke direction, and the stroke directions include up, down, left, right, upper left, lower left, upper right, and lower right.

[0095] The Chinese character output module 602 is used to determine the candidate Chinese characters corresponding to the first coding string based on the stroke order indicated by the first coding string, and output the Chinese characters based on the candidate Chinese characters.

[0096] Optionally, the Chinese character output module 602 is also used to determine the similarity between multiple second code strings in the first database and the first code string to obtain multiple similarities, where the first database includes multiple second code strings corresponding to multiple Chinese characters, and any Chinese character in the first database is used to encode a second code string according to the sub-code; the multiple similarities are sorted in order from large to small to obtain a similarity order, and the Chinese characters indicated by the second code strings corresponding to the first N similarities in the similarity order are candidate Chinese characters; wherein N is a positive integer.

[0097] Optionally, when the first code string also includes multiple separators, the Chinese character output module 602 is also used to determine the stroke combination corresponding to the first code string based on the first code string and the multiple separators, the separator is used to separate the multiple sub-codes in the first code string into multiple sub-code groups, any sub-code group includes at least one sub-code and any sub-code group is used to indicate a stroke in the direction of the stroke order; based on the stroke combination corresponding to the first code string, determine the candidate Chinese characters corresponding to the first code string.

[0098] It should be noted that: when the Chinese character output device provided in the above embodiment outputs Chinese characters, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the Chinese character output device provided in the above embodiment and the Chinese character output device method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0099] The division of modules in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present disclosure may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0100] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a terminal device (which can be a personal computer, a mobile phone, or a communication device, etc.) or a processor (processor) to perform all or part of the steps of the method of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0101] Figure 7 Schematic diagram of the structure of the computer device provided by the embodiment of the present disclosure. Figure 7 As shown, the computer device 700 includes: a processor 701 and a memory 702 .

[0102] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0103] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is used to be executed by the processor 701 to implement the Chinese character output method provided in the embodiment of the present disclosure.

[0104] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the computer device 700, and the computer device 700 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.

[0105] The embodiment of the present disclosure also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of a computer device, the computer device can execute the Chinese character output method provided in the embodiment of the present disclosure.

[0106] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the Chinese character output method provided in the embodiments of the present disclosure when the computer program / instruction is executed by a processor.

[0107] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A Chinese character output method, characterized in that: The method comprises: Obtain a first code string, the first code string includes a plurality of sub-codes, any sub-code is used to indicate a stroke direction, the stroke direction includes up, down, left, right, upper left, lower left, upper right, lower right; Based on the stroke order indicated by the first coding string, candidate Chinese characters corresponding to the first coding string are determined, and Chinese characters are output based on the candidate Chinese characters.

2. The method according to claim 1, characterized in that The subcode is a three-digit number, the second digit of the three-digit number is the center of the nine-grid numeric keypad, and the direction obtained by connecting the positions of the corresponding numeric keys on the nine-grid numeric keypad of the three-digit number of any subcode is the same as the stroke order direction indicated by the subcode; When the first to third rows of the nine-square numeric keyboard are 789, 456, and 123 respectively, the subcodes include: 159, 258, 357, 456, 654, 753, 852, and 951; Among them, the stroke direction indicated by 159 is upper right, the stroke direction indicated by 258 is upper, the stroke direction indicated by 357 is upper left, the stroke direction indicated by 456 is right, the stroke direction indicated by 654 is left, the stroke direction indicated by 753 is lower right, the stroke direction indicated by 852 is lower, and the stroke direction indicated by 951 is lower left.

3. The method according to claim 1 or 2, characterized in that: The step of determining the candidate Chinese character corresponding to the first coding string based on the stroke order indicated by the first coding string comprises: Determine the similarity between a plurality of second code strings in a first database and the first code string to obtain a plurality of similarities, wherein the first database includes a plurality of second code strings corresponding to a plurality of Chinese characters, and any one of the Chinese characters in the first database is used to be encoded into a second code string according to the sub-code; Sorting the multiple similarities in descending order to obtain a similarity order, wherein the Chinese characters indicated by the second encoding strings corresponding to the first N similarities in the similarity order are the candidate Chinese characters; Wherein, N is a positive integer.

4. The method according to claim 1 or 2, characterized in that: The first code string also includes a plurality of separators, and the determining of the candidate Chinese characters corresponding to the first code string based on the stroke order indicated by the first code string includes: Determine a stroke combination corresponding to the first code string based on the first code string and the plurality of separators, wherein the separator is used to separate a plurality of subcodes in the first code string into a plurality of subcode groups, any of which includes at least one subcode and is used to indicate a stroke according to a stroke order; Based on the stroke combination corresponding to the first coding string, a candidate Chinese character corresponding to the first coding string is determined.

5. The method according to claim 4, characterized in that There is a coding correspondence between the sub-coding groups and the strokes, in which any sub-coding group is used to indicate a stroke according to the direction of the stroke order; The encoding correspondence includes: horizontal (one) = {456}, horizontal fold Horizontal left-falling stroke Horizontal hook (乛) = {456951}, horizontal fold hook Horizontal fold and rising stroke Horizontal double fold Horizontal bend Horizontal slanting hook Horizontal fold and curved hook Horizontal left-falling and curved hook Horizontal double fold and left-falling stroke Horizontal triple fold hook Horizontal triple fold Vertical (丨) = {852}, vertical hook (亅) = {852357}, vertical rising stroke Vertical fold Vertical bend Vertical curved hook (乚) = {852456258}, vertical fold and left-falling stroke (ㄣ) = {852456951}, vertical double fold Vertical double fold hook Left-falling stroke (丿) = {951}, left-falling and fold Right-falling stroke Right dot (丶) = {753}, curved hook Slanting hook Recumbent hook Rising stroke 6. A Chinese character output device, characterized in that: The device comprises: An acquisition module is used to acquire a first code string, wherein the first code string includes a plurality of sub-codes, any of which is used to indicate a stroke direction, wherein the stroke directions include up, down, left, right, upper left, lower left, upper right, and lower right; A Chinese character output module is used to determine candidate Chinese characters corresponding to the first coding string based on the stroke order indicated by the first coding string, and output Chinese characters based on the candidate Chinese characters.

7. A computer device, characterized in that: The computer device comprises: a memory and a processor, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the method according to any one of claims 1 to 5.

9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.