A kind of method, device and equipment of form and sound grass script input and storage medium

By using a phonetic-semantic cursive input method, Chinese characters are broken down into radicals and encoded based on cursive codes. This solves the problem of inefficient input in existing input methods, enabling simple and convenient one-stroke cursive input with a low rate of duplicate codes.

CN123047802APending Publication Date: 2026-11-06钱辉
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410646432.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

Existing input methods cannot efficiently input cursive script in one stroke.

Method used

The method of using phonetic-semantic cursive script input is adopted. By acquiring user input information, the input information is parsed and matched based on phonetic-semantic encoding rules and one-stroke cursive script encoding rules. The phonetic-semantic encoding rules are used to break down Chinese characters into radicals and encode them according to cursive script codes. Finally, the target Chinese characters are searched in the dictionary and output.

Benefits of technology

It enables efficient input of cursive script in one stroke, with a simple and convenient input method, low homonym rate, and improved input efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123047802A_ABST
    Figure CN123047802A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of input method technology and discloses a method, device, equipment, and storage medium for inputting phonetic-semantic cursive script. The method includes: acquiring user input information, which includes typed information or written information; parsing the input information based on parsing rules for implementing phonetic-semantic cursive script input to obtain parsed information; searching in a dictionary constructed using encoding rules for implementing phonetic-semantic cursive script input based on the parsed information to match target Chinese characters of a preset font; wherein, the target Chinese characters of the preset font include: target Chinese characters in one-stroke cursive script or target Chinese characters in non-cursive script fonts; the encoding rules for implementing phonetic-semantic cursive script input include: phonetic-semantic encoding rules and one-stroke cursive script encoding rules, wherein the one-stroke cursive script encoding rules are determined based on the phonetic-semantic encoding rules; and outputting and displaying the target Chinese characters of the preset font. This invention achieves efficient input of one-stroke cursive script and has the advantages of simple and convenient input method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of input method technology, specifically relating to a phonetic-semantic cursive input method, device, equipment, and storage medium. Background Technology

[0002] Input methods are technologies that convert human language into numerical codes that computers can recognize and process. Chinese input methods are mainly divided into Pinyin input methods, Wubi input methods, and stroke input methods. Pinyin input methods allow users to quickly input Chinese characters by entering their Pinyin pronunciation; Wubi input methods input characters by entering their strokes and structure; and stroke input methods input characters by entering the number and order of their strokes.

[0003] Existing input methods cannot efficiently input cursive script in one stroke. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, device, and storage medium for inputting phonetic cursive script, in order to solve the problem that existing input methods cannot achieve efficient input of cursive script in one stroke.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] In a first aspect, the present invention provides a method for inputting phonetic-semantic cursive script, the method comprising:

[0007] Obtain user input information, including: typed information or handwritten information;

[0008] The input information is parsed based on the parsing rules for implementing phonetic-semantic cursive input to obtain parsed information;

[0009] Based on the parsed information, a search is performed in the dictionary constructed using the encoding rules for implementing phono-semantic cursive input, and the target Chinese characters of the preset font are matched; wherein, the target Chinese characters of the preset font include: target Chinese characters of one-stroke cursive or target Chinese characters of non-cursive font; the encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules;

[0010] Output and display the target Chinese characters in the preset font.

[0011] Preferably, the phonetic encoding rule is a rule that encodes based on a preset number of radicals and the phonetic codes of the radicals.

[0012] Preferably, the preset number of radicals is 241.

[0013] Preferably, the phonetic encoding rules include: single-character encoding rules, wherein the single-character encoding rules include:

[0014] Single-code and double-code rules: The codes of radicals are divided into single codes and double codes. The 36 radicals only take the shape code, which are single-code radicals; the codes of the remaining 205 radicals are double codes. Among them, the first code of the double code is the shape code, and the second code of the double code is the sound code.

[0015] Single-code completion code rules: The first radical of the input character is a single-code radical. The first code of the first, second, third and fourth radicals are used to form the input code. If the input character has less than four radicals, the last radical is used to form the full code.

[0016] Double-code completion code rules: The first radical of the input character is a double-code radical. Take the full code of the first radical, add it to the first code of the second and last radicals and the first code of the last radical to form the input code. If the input character has less than three radicals, take the full code of the last radical.

[0017] First rule for character identification codes: For characters composed of two radicals, if the input code is less than four codes, and the character has a top-bottom structure, add the structure identification code ";". If the radical contains a secondary radical, add the secondary radical's phonetic code ".".

[0018] Crossing rule: When radicals intersect to form a character, the first stroke distinguishes the beginning and end of the radicals;

[0019] The first major radical rule: a single-stroke radical is considered a minor radical. When a character is composed of three or more major radicals, the minor radicals in the middle of the major radicals are ignored.

[0020] First primary and secondary rules: The radicals are divided into primary radicals and secondary radicals. There are 241 primary radicals and 143 secondary radicals. Based on the shape of the radicals and the frequency of character formation, 36 radicals with one code are set.

[0021] The first rule for determining the root of a Chinese character is that if the two roots of a Chinese character form an outer-enclosing-inner structure, the outer root is used to represent it.

[0022] The first rule for combining multiple radicals: When a Chinese character is composed of multiple identical radicals arranged side by side, one of the radicals is selected and its code is increased;

[0023] Termination of input rule: If the input code is less than four characters, use the space bar to terminate and continue inputting. When four characters are reached, input will be entered automatically.

[0024] Preferably, the phonetic encoding rule further includes: word encoding rules, which include: when the input word consists of two characters, the first code of the first radical and the second radical of each of the two characters is taken to form the input code; when the input word consists of three characters, the first code of the first character, the first code of the second radical, and the first code of the second and last radicals are taken to form the output code; when the input word consists of four or more characters, the first code of the first radical of the first four characters is taken to form the input code.

[0025] Preferably, determining the encoding rule for a single stroke of cursive script based on phonetic-semantic encoding rules includes:

[0026] Based on the 241 radicals of the phonetic-semantic encoding rules, the character is broken down into radicals, and a single stroke of cursive script is encoded according to the cursive code of the radicals.

[0027] The rules for encoding a single stroke of cursive script based on the cursive code of its radicals include:

[0028] First and last code extraction rule: Chinese characters are split into radicals using 241 radicals. The cursive codes of the first, second, and last radicals are combined in sequence to obtain the cursive input code of the Chinese character.

[0029] The second rule for setting the identification code: For Chinese characters composed of two radicals, when the two radicals are in a top-bottom structure, add the structure identification code ";"; when one of the two radicals contains a secondary radical, add the secondary code ".".

[0030] Radical crossing rule: When radicals intersect to form a character, the first stroke distinguishes the beginning and end of the radicals;

[0031] The second major radical rule: Single-stroke radicals are considered minor radicals. When a Chinese character is composed of three or more major radicals, the minor radicals in the middle of the major radicals are ignored.

[0032] The second primary and secondary rule: Divide the radicals into primary radicals and secondary radicals. There are 241 primary radicals and 143 secondary radicals. When secondary radicals form characters, they are replaced by primary radicals. When secondary radicals are entered independently, they are entered in one stroke using cursive script.

[0033] The second rule for determining the root from the shape: If the two roots of a Chinese character form an outer-enclosing-inner structure, the outer root is used to represent it;

[0034] The second rule for multiple radicals: When a Chinese character is composed of multiple identical radicals arranged side by side, one of the radicals is selected and its code is increased;

[0035] Continuous stroke rules: Include the continuous stroke and the stroke preceding the continuous stroke in the radical strokes to reduce the number of strokes required for input;

[0036] Input rules reminder: When there are no duplicate characters, a beep sound will indicate that the character is not in use and should be entered without a pen.

[0037] Preferably, when the input information is written information, the parsing rules for realizing the input of phonetic-semantic cursive script include: cursive script recognition rules;

[0038] The cursive script recognition rules include: scanning the written information from top to bottom to identify the root genes of the written information, wherein the root genes are used to represent the core elements among all the roots that make up a Chinese character; and scanning the written information from left to right and from top to bottom to identify the first root of the written information.

[0039] Secondly, the present invention provides a phonetic-semantic cursive script input device for implementing the above-mentioned phonetic-semantic cursive script input method, the device comprising:

[0040] The acquisition module is used to acquire user input information, which includes: typed information or handwritten information;

[0041] The parsing module is used to parse the input information based on the parsing rules for implementing phonetic-semantic cursive input, and obtain the parsed information;

[0042] The matching module is used to search within a lexicon constructed based on the parsed information and the encoding rules for implementing phono-semantic cursive input, and to match the target Chinese characters in a preset font. The target Chinese characters in the preset font include: target Chinese characters in one-stroke cursive or target Chinese characters in non-cursive fonts. The encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules.

[0043] The output module is used to output and display the target Chinese characters in the preset font.

[0044] Thirdly, the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described phonetic-semantic cursive input method.

[0045] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described phonetic-semantic cursive input method.

[0046] Beneficial effects:

[0047] This invention enables efficient input of cursive script in one stroke, and has the advantages of simple and convenient input method. Attached Figure Description

[0048] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings:

[0049] Figure 1 This is a flowchart of a phonetic-semantic cursive input method provided in one embodiment of the present invention;

[0050] Figure 2 This is a partial schematic diagram of the encoding table of the present invention;

[0051] Figure 3 yes Figure 2 The following image;

[0052] Figure 4 yes Figure 3 The following image;

[0053] Figure 5 yes Figure 4 The following image;

[0054] Figure 6 This is a partial schematic diagram of the reference table for the cursive input method of this invention;

[0055] Figure 7 yes Figure 6 The following image;

[0056] Figure 8 yes Figure 7 The following image;

[0057] Figure 9 This is a block diagram of a phonetic-semantic cursive input device provided in one embodiment of the present invention. Detailed Implementation

[0058] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0059] Example 1

[0060] Figure 1 This is a flowchart of a phonetic-semantic cursive input method provided by one embodiment of the present invention, such as... Figure 1 As shown, this embodiment provides a phonetic-semantic cursive input method, the method including:

[0061] Step S10: Obtain user input information, including: typed information or written information;

[0062] Step S20: Parse the input information based on the parsing rules for implementing phonetic-semantic cursive input to obtain parsed information;

[0063] Step S30: Based on the parsed information, search in the dictionary constructed by the encoding rules for implementing phono-semantic cursive input, and match the target Chinese characters of the preset font; wherein, the target Chinese characters of the preset font include: target Chinese characters of one-stroke cursive or target Chinese characters of non-cursive font; the encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules;

[0064] Step S40: Output and display the target Chinese characters in the preset font.

[0065] In this embodiment, the method is applied to an input device, which has two input modes: keyboard input and handwriting input. Keystroke information can be input through keyboard input, and writing information can be input through handwriting input.

[0066] In the present invention, the input information is parsed based on the parsing rules for implementing pictophonetic cursive input to obtain parsed information, and the parsed information is used to perform a lookup in the lexicon to obtain the corresponding Chinese characters. The present invention realizes efficient character lookup with a single stroke, and has the advantages of simple and convenient input mode, and a character lookup code repetition rate lower than 0.04%.

[0067] As a further optimization of this embodiment, the pictophonetic coding rule is a rule for coding based on a preset number of constructed radicals and the pictophonetic codes of the radicals. The preset number of the radicals is 241 (as shown in Table 1).

[0068] Table 1 Radical Table of the Pictophonetic Coding Input Method (241)

[0069]

[0070]

[0071] As a further optimization of this embodiment, the pictophonetic coding rule includes: a single-character coding rule, and the single-character coding rule includes:

[0072] Single-code and double-code rule: The codes of radicals are divided into single codes and double codes. According to the character formation frequency, 36 radicals only take the form codes and are single-code radicals, and these 36 radicals are high-frequency radicals; the codes of the remaining 205 radicals are double codes, where the first code is a form code and the second code is a phonetic code; for example, "广" is a high-frequency radical, which is input with the form code "j" of "广". For another example, for the double-code radical "干", the first stroke of "干" is "一", so the form code "1" is taken, and the pronunciation of "干" is "g", so the code of the radical "干" is "1g".

[0073] Single-code full code completion rule: If the first radical of an input character is a single-code radical, the first codes of the first, second, third and fourth radicals are taken to form the input code. If the input character has less than four radicals, the full code is taken for the last radical, and the coding table is as Figure 2-5 shown (due to limited space, Figures 2-5 only part of the coding comparison table is listed). For example, for the character "谩", its radicals are "讠", "日", "四" and "又", so "i,8,9,2" are taken to form the input code. For another example, for the character "诸", its radicals are "讠", "耂" and "日", so "i,5,8" are taken to form the input code. For another example, for the character "讶", its radicals are "讠" and "牙", so "i,cy" are taken to form the input code.

[0074] Double-code completion code rule: When the first radical of an input character is a double-code radical, the full code of the first radical is taken, and the first codes of the second-last radical and the last radical are added to form the input code. If the input character has less than three radicals, the full code is taken for the last radical; for example, for "hong", the radicals of "hong" include "mi", "si", then "im,x,4" is taken to form the input code. For another example, for "ning", the radicals are: "mi" and "ding", then "im,1d" is taken to form the input code.

[0075] First identification code rule: For a character composed of two radicals, when the input code is less than four codes and the character is of upper-lower structure, the structure identification code ";" is added. For example, for "cheng", "cheng" has two radicals: "kou" and "wang", which is of upper-lower structure. The input code according to the radicals is "oz", which is less than four codes, so adding the upper-lower structure identification code ";", the input code of "cheng" is "oz;". If a radical contains a sub-radical, the sub-radical phonetic code "." is added. For example, for "xia", "xia" has two radicals: "kou" and "xia", the input code according to the radicals is "o1d", "xia" is the sub-code of "ding" (the sub-code table is shown in Table 2), adding the phonetic code "x" of "xia", the input code of "xia" is "o1dx".

[0076] Interleaving rule: When radicals are interleaved to form a character, the order of the radicals is distinguished by the first stroke. For example, for "zai", the first stroke is "heng", and the radical order is: "wang", "jiong". For another example, for "ran", the first stroke is "shu", and the radical order is: "jiong", "tu".

[0077] First large radical rule: A single-stroke radical is a small radical. When a character is composed of more than three large radicals, the small radical between the large radicals is ignored; for example, for "mi", the radicals taken are: "mi", "xin", "shan". The pie radical in the middle of xin is ignored. For a radical group that can be covered by a large radical, the large radical is taken. For example, for "jing", the decomposable radicals include: "yue", "ji". The radical "qing" covers and "yue", therefore, the decomposed radicals of "jing" are: "qing", "ji".

[0078] First main-sub rule: Radicals are divided into main radicals and sub-radicals. There are 241 main radicals and 143 sub-radicals. When a sub-radical forms a character, it is replaced by the main radical. When a sub-radical is input independently, the sub-radical is input by the main radical plus "." plus the sub-radical phonetic code. For example, "xia" is the sub-code of "ding", the input code of "ding" is "1d", and the input code of "xia" is "1d.x".

[0079] First external-shape radical extraction rule: For two radicals where one encloses the other, the outer radical is taken as the representative; for example, for the character "勾", the representative radical is "勹". According to the natural segmented radical extraction principle, when a character is composed of more than three natural segmented radical groups, representative radicals are extracted from each segment to form the input code. For example, for the character "蒽", the extracted representative radicals are "艹", "口", and "心", and the input code is "voi". For another example, for the character "葱", the extracted representative radicals are "艹", "勹", and "心", and the input code is "vyi".

[0080] First multi-radical combined extraction rule: When a Chinese character is formed by multiple identical radicals arranged side by side, one of the radicals is taken and the number of repeated radicals is added as a code; for example, the character "林" is composed of two identical radicals "木", and its input code is "f2"; for another example, the character "晶" is composed of three identical radicals "日", and its input code is "83".

[0081] Termination input rule: When the input code is less than four codes, press the space key to terminate and complete the input; when the input code reaches four codes, the input is completed automatically.

[0082] Abbreviated code input rule: The abbreviated code input refers to extracting the first two codes or the first three codes for input. When inputting with two codes or three codes, the software automatically matches common characters and conventionally used characters.

[0083] Table 2 Main and auxiliary code correspondence table

[0084]

[0085] As a further optimization of this embodiment, the word coding rule is: when the input word is two characters, the first code of the first radical of each of the two characters is extracted to form the input code; when the input word is three characters, the first code of the first radical and the first code of the second radical of the first character, and the first code of the first radical of each of the last two characters are extracted to form the input code; when the input word is four characters or more than four characters, the first code of the first radical of each of the first four characters is extracted to form the input code. For example, the input code of the word "语文" is "izjw", the input code of the word "三字经" is "z3jw", and the input code of the word "白日依山尽" is "68hc".

[0086] The pictophonetic coding rule of the present invention is based on 241 radicals, characters are split into radicals, and characters are input according to the pictophonetic codes of the radicals and the present rules. The present invention uses 26 letters and 10 Arabic numerals to encode the radicals, and the coding principles are as follows:

[0087] a. 36 high-frequency radicals are encoded with a letter or number that resembles the shape of the radical. For example, the radical "讠" resembles the letter "i", so "i" is used to encode "讠".

[0088] b. Other radicals are encoded with two letters or digits. The first code takes the letter or digit that the radical resembles, and the second code takes the pronunciation of the radical. For example, for the radical "良", the first code is "i": the first stroke (a dot) of "良" is the same as the first symbol of "i", and according to the convention, radicals with a single dot as the first stroke are encoded as "i". The first code of the radical "良" is "i", and the second code is "l" which is the pronunciation of "良", so the code for "良" is "il". The first code is determined by the shape: a horizontal stroke as the start corresponds to "1", and a "日" (sun) shape as the start corresponds to "8", while the second code adds the pronunciation. Such coding rules are easy to remember and hard to forget. However, there are a small number of special cases where the phonetic code is occupied by high-frequency radicals. The present invention specifies an easy-to-remember alternative solution. For example, for the radical "六", the present invention stipulates that the first code of radicals starting with "亠" is "j", and the second code is "l" which is the pronunciation of "六". Since "l" is occupied by a high-frequency radical, the present invention stipulates that the digit "6" is used instead, so the code for "六" is "j6" (this coding method is only applied to a very small number of radicals).

[0089] In the present invention, characters are split according to 241 radicals. If the first radical is one of the 36 high-frequency radicals, the first code of each of the first, second, third and fourth radicals is taken in sequence to form the code of the character; if the first radical is not a high-frequency radical, the code of the first radical plus the first codes of the second radical and the last radical are taken to form the character code. For example, the character "狎" is split into the radicals "犭" and "甲". The radical "犭" resembles "g", and is a high-frequency radical, so the first code "g" is taken as the radical code of "犭"; for "甲", which starts with a "日" shape, the shape code "8" corresponding to the "日" shape is selected, plus "j" which is the pronunciation of "甲", so the code of the radical "甲" is "8j", and the input code of "狎" is "g8j".

[0090] The longest input code of the characters in the present invention is 4 codes. The 36 high-frequency characters are encoded with one code, thousands of commonly used characters are encoded with two codes, and 90% of the characters are encoded with three codes. According to statistics on 7082 commonly used Chinese characters, the pictophonetic coding input method has a duplicate code rate of 2%.

[0091] As a further optimization of this embodiment, a one-stroke cursive coding rule is determined based on the pictophonetic coding rules, including:

[0092] Based on the 241 radicals defined by the pictophonetic coding rules, a character is split into radicals, and the one-stroke cursive script is coded according to the cursive codes of the radicals, as shown in Table 3;

[0093] The rules for coding the one-stroke cursive script according to the cursive codes of the radicals include:

[0094] First-second-last code taking rule: split the Chinese character into radicals using the 241 radicals, and sequentially combine the cursive codes of the first radical, the second radical and the last radical in a connected stroke manner to obtain the cursive input code of the Chinese character;

[0095] Second identification code rule: For a Chinese character composed of two radicals, when the two radicals are in an up-down structure, the structure identification code ";" is added; when one of the two radicals contains a secondary radical, the secondary code "." is added; for example: "ga" (the Chinese character 旮) has two radicals: "jiu" (九) and "ri" (日), and is in an up-down structure. According to the radical input code, it is The input code of "旮" is: For another example: "xia" (the Chinese character 吓) has two radicals: "kou" (口) and "xia" (下), and according to the radical input code, it is "Xia" (下) is the secondary code of "ding" (丁), add ".", then the input code of "吓" is:

[0096] Second intersection rule: When radicals intersect to form a character, the order of the radicals is distinguished by the first stroke; for example: "zai" (the Chinese character 再) has the first stroke of horizontal (一), and the radical order is: "wang" (王), "jiong" (冂). "Ran" (the Chinese character 冉) has the first stroke of vertical (丨), and the radical order is: "jiong" (冂), "tu" (土).

[0097] Second large radical rule: Single-stroke radicals are small radicals. When a Chinese character is composed of more than three large radicals, the small radicals in the middle of the large radicals are ignored; for example: "mi" (the Chinese character 密) takes the radicals: "mian" (宀), "xin" (心), "shan" (山), ignoring the "pie" (丿) radical in the middle of "xin". For a radical group that can be covered by a large radical, the large radical is taken. For example: "jing" (the Chinese character 静) can be decomposed into radicals including: "yue" (月), "ji" (彐). The radical "qing" (青) covers and "yue" (月), therefore, the decomposed radicals of "jing" (静) are: "qing" (青), "ji" (彐).

[0098] Second main-secondary rule: Radicals are divided into main radicals and secondary radicals, among which there are 241 main radicals and 143 secondary radicals. When a secondary radical forms a character, it is replaced by a main radical; when a secondary radical is input independently, it is input as one cursive stroke. For example: "wang" (亡) is the secondary radical of "yan" (讠), and when input independently, it is: Similarly, the input of "yu" (于) is

[0099] Second shape-based radical extraction rule: When two radicals of a Chinese character are in an outer-enclosing-inner structure, the outer radical is taken as the representative; for example: the representative radical of "gou" (the Chinese character 勾) is "bao" (勹). According to the principle of extracting radicals by natural segmentation, when a character is composed of more than three natural segmented radical groups, the representative radicals are extracted segment by segment to form the output code. For example: "en" (the Chinese character 蒽) takes the representative radicals: "cao" (艹), "kou" (口), "xin" (心), and the input code is: "cong" (the Chinese character 葱) takes the representative radicals: "cao" (艹), "bao" (勹), "xin" (心), and the input code is:

[0100]

[0101] Second multi-root conjunction rule: When a Chinese character is composed of multiple identical radicals arranged in parallel, take one of the radicals and increase the number of duplicate codes. For example, the character "ku" (cry) is decomposed into the radicals: "kou" (mouth), "kou" (mouth), "da" (big), and the output code is: For another example: "sen" (forest), the output code is

[0102] Connected stroke rule: Incorporate the connected stroke and the stroke immediately before the connected stroke into the radical strokes to reduce the number of input strokes; for example, the input code of "mang" is The input code of "wei" is

[0103] Prompt input rule: When there is no duplicate code, a beep prompt is given, and input is performed after the pen is lifted.

[0104] Table 3 Cursive Code Comparison Table of Radicals

[0105]

[0106]

[0107] The cursive design takes into account: a. Cursive radicals start on the left and end on the right, facilitating connected strokes; b. Large radicals facilitate character decomposition; c. Cursive radicals have extremely few strokes, improving writing efficiency; d. High radical representativeness reduces the number of radicals; e. Cursive radicals have established origins, facilitating cultural inheritance; f. High radical recognizability, most of which adopt single-stroke characters from historical cursive scripts, facilitating memorization.

[0108] The pictophonetic cursive input method of the present invention combines no more than three cursive radicals, and the duplicate code rate of 7082 Chinese characters is lower than 0.4%. The comparison table of the cursive input method is as Figure 6-8 shown in the figure.

[0109] The two input modes of the pictophonetic cursive input of the present invention share the same selected radicals and have similar input rules (the cursive input method performs combined input of the cursive forms of the first radical, the second radical, and the last radical, which is the same as the pictophonetic input method, except that in the pictophonetic input method, when the first radical is a single code, the input of the first, second, third and fourth radicals is slightly different). The differences are: one uses letters to represent radicals for input; the other uses cursive forms to represent radicals for input. For example, for the character "ming" (bright), in the pictophonetic input method, "ming" is decomposed into two radicals "ri" (sun) and "yue" (moon), and the character "ming" is input by combining the radical codes of "ri" and "yue". In the cursive input method, "ming" is decomposed into two radicals "ri" and "yue", and the cursive form of "ming" is formed by combining the cursive forms of "ri" and "yue" to output the cursive form of "ming" and output the character "ming" corresponding to its cursive form. The cursive input method takes into account the stroke order and shape of the radical cursives, inherits the essence of existing cursive scripts, and lays a foundation for single-stroke characters. The radical cursives are highly similar to the first codes of pictophonetic radicals, which facilitates memorization and the formation of new characters. For example, for the character "ti" (lift), the pictophonetic code is "78z", and the cursive code is: The two codes are very similar in shape. The combination of cursive codes evolves into new Chinese characters, which is defined as "one-stroke cursive script". The one-stroke cursive script is easy to recognize, easy to write, and has no duplicate codes.

[0110] As a further optimization of this embodiment, when the input information is writing information, the parsing rules for implementing pictophonetic cursive input include: cursive recognition rules;

[0111] The cursive recognition rules include:

[0112] First, perform radical scanning on the writing information from top to bottom, and identify the radical genes of the writing information, where the radical genes are used to characterize the core elements in all radicals that form a Chinese character; that is, first identify the radical genes, scan the cursive script from top to bottom, then compare it with the radicals to identify the radical genes. There are 36 radical genes in total, such as "丶", "亠", "丷", "一", "厂", "十", etc. The radical gene refers to the core element that constitutes a radical, and is the key factor that distinguishes other types of radicals. For example, the core gene of radicals of the "hui", "jin", and "jian" categories is "ren". Radicals are identified on the basis of identifying radical genes. For example, there are 15 radicals in the "丷" category, scan from top to bottom, scan to there are 8 radicals in total, then scan further down, scan to there is only one radical. Thus it is identified that the corresponding radicals are:

[0113] Then, scan the writing information from left to right and from top to bottom, and identify the first-stroke radical of the writing information; that is, as the writing pen moves, scan from left to right and simultaneously from top to bottom, identify the first radical gene, and identify the first radical. For example, to recognize the cursive script of "yi" (meaning "friendship"), place into a two-dimensional coordinate system, scan from top to bottom, the first stroke is a thus the radical gene is identified as "丶", when scanning to the vertical line position from left to right, the first radical is identified as "讠". Similarly, when scanning to the second vertical line position, there are only two characters left: "yi" and "cha". Similarly, scan down to finish recognizing and obtain the unique character "yi". On this basis, with synchronous glyph comparison, error-tolerant recognition and other technologies, modern technologies can be used to complete cursive script recognition relatively well.

[0114] Embodiment 2

[0115] Figure 9 is a block diagram of the pictophonetic cursive input device provided by an implementation of the present invention, as shown in Figure 9 this embodiment provides a pictophonetic cursive input device, which is used to implement the pictophonetic cursive input method of the first embodiment, and the device includes:

[0116] The acquisition module is used to acquire user input information, which includes: typed information or handwritten information;

[0117] The parsing module is used to parse the input information based on the parsing rules for implementing phonetic-semantic cursive input, and obtain the parsed information;

[0118] The matching module is used to search within a lexicon constructed based on the parsed information and the encoding rules for implementing phono-semantic cursive input, and to match the target Chinese characters in a preset font. The target Chinese characters in the preset font include: target Chinese characters in one-stroke cursive or target Chinese characters in non-cursive fonts. The encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules.

[0119] The output module is used to output and display the target Chinese characters in the preset font.

[0120] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the phonetic-semantic cursive input method of Embodiment 1.

[0121] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the phonetic-semantic cursive input method of Embodiment 1.

[0122] The phonetic-semantic encoded keypad of this invention is an input method keyboard constructed using phonetic-semantic encoding rules. Users operate the keys on the keyboard according to these rules to input a single-stroke cursive script character (i.e., input signal). The input signal contains the encoding information corresponding to the single-stroke cursive script character. By parsing this encoding information, parsing information is obtained, which contains the encoding value. This parsing information is then searched in a dictionary to obtain the corresponding Chinese character and its corresponding single-stroke cursive script character. This invention achieves efficient input of single-stroke cursive script and has the advantages of simple and convenient input methods.

[0123] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0125] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for inputting phonetic-semantic cursive script, characterized in that, The method includes: Obtain user input information, including: typed information or handwritten information; The input information is parsed based on the parsing rules for implementing phonetic-semantic cursive input to obtain parsed information; Based on the parsed information, a search is performed in the dictionary constructed using the encoding rules for implementing phono-semantic cursive input, and the target Chinese characters of the preset font are matched; wherein, the target Chinese characters of the preset font include: target Chinese characters of one-stroke cursive or target Chinese characters of non-cursive font; the encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules; Output and display the target Chinese characters in the preset font.

2. The phonetic-semantic cursive input method according to claim 1, characterized in that, The phonetic-semantic encoding rule is a rule that encodes based on a preset number of radicals and the phonetic-semantic codes of the radicals.

3. The phonetic-semantic cursive input method according to claim 2, characterized in that, The preset number of radicals is 241.

4. The phonetic-semantic cursive input method according to claim 3, characterized in that, The phonetic-semantic encoding rules include: single-character encoding rules, which include: Single-code and double-code rules: The codes of radicals are divided into single codes and double codes. The 36 radicals only take the shape code, which are single-code radicals; the codes of the remaining 205 radicals are double codes. Among them, the first code of the double code is the shape code, and the second code of the double code is the sound code. Single-code completion code rules: The first radical of the input character is a single-code radical. The first code of the first, second, third and fourth radicals are used to form the input code. If the input character has less than four radicals, the last radical is used to form the full code. Double-code completion code rules: The first radical of the input character is a double-code radical. Take the full code of the first radical, add it to the first code of the second and last radicals and the first code of the last radical to form the input code. If the input character has less than three radicals, take the full code of the last radical. First rule for character identification codes: For characters composed of two radicals, if the input code is less than four codes and the character has a top-bottom structure, add the structure identification code ";". If the radical contains a secondary radical, add the secondary radical's phonetic code ".". Crossing rule: When radicals intersect to form a character, the first stroke distinguishes the beginning and end of the radicals; The first major radical rule: a single-stroke radical is considered a minor radical. When a character is composed of three or more major radicals, the minor radicals in the middle of the major radicals are ignored. First primary and secondary rules: The radicals are divided into primary radicals and secondary radicals. There are 241 primary radicals and 143 secondary radicals. Based on the shape of the radicals and the frequency of character formation, 36 radicals with one code are set. The first rule for determining the root of a Chinese character is that if the two roots of a Chinese character form an outer-enclosing-inner structure, the outer root is used to represent it. The first rule for combining multiple radicals: When a Chinese character is composed of multiple identical radicals arranged side by side, one of the radicals is selected and its code is increased; Termination of input rule: If the input code is less than four characters, use the space bar to terminate and continue inputting. When four characters are reached, input will be entered automatically.

5. The phonetic-semantic cursive input method according to claim 4, characterized in that, The phonetic encoding rules also include: word encoding rules, which include: when the input word has two characters, the first code of the first radical and the second radical of each of the two characters is taken to form the input code; when the input word has three characters, the first code of the first radical, the first code of the second radical, and the first code of the last radical are taken to form the input code; when the input word has four or more characters, the first code of the first radical of the first four characters is taken to form the input code.

6. The phonetic-semantic cursive input method according to claim 3, characterized in that, The encoding rules for a single stroke of cursive script are determined based on phonetic-semantic encoding rules, including: Based on the 241 radicals of the phonetic-semantic encoding rules, the character is broken down into radicals, and a single stroke of cursive script is encoded according to the cursive code of the radicals. The rules for encoding a single stroke of cursive script based on the cursive code of its radicals include: First and last code extraction rule: Chinese characters are split into radicals using 241 radicals. The cursive codes of the first, second, and last radicals are combined in sequence to obtain the cursive input code of the Chinese character. The second rule for setting the identification code: For Chinese characters composed of two radicals, when the two radicals are in a top-bottom structure, add the structure identification code ";"; when one of the two radicals contains a secondary radical, add the secondary code "."; Radical crossing rule: When radicals intersect to form a character, the first stroke distinguishes the beginning and end of the radicals; The second major radical rule: Single-stroke radicals are considered minor radicals. When a Chinese character is composed of three or more major radicals, the minor radicals in the middle of the major radicals are ignored. The second primary and secondary rule: Divide the radicals into primary radicals and secondary radicals. There are 241 primary radicals and 143 secondary radicals. When secondary radicals form characters, they are replaced by primary radicals. When secondary radicals are entered independently, they are entered in one stroke using cursive script. The second rule for determining the root from the shape: If the two roots of a Chinese character form an outer-enclosing-inner structure, the outer root is used to represent it; The second rule for multiple radicals: When a Chinese character is composed of multiple identical radicals arranged side by side, one of the radicals is selected and its code is increased; Continuous stroke rules: Include the continuous stroke and the stroke preceding the continuous stroke in the radical strokes to reduce the number of strokes required for input; Input rules reminder: When there are no duplicate characters, a beep sound will indicate that the character is not in use and should be entered without a pen.

7. The phonetic-semantic cursive input method according to claim 6, characterized in that, When the input information is written information, the parsing rules for realizing the input of phonetic-semantic cursive script include: cursive script recognition rules; The cursive script recognition rules include: scanning the written information from top to bottom to identify the root genes of the written information, wherein the root genes are used to represent the core elements among all the roots that make up a Chinese character; and scanning the written information from left to right and from top to bottom to identify the first root of the written information.

8. A phonetic-semantic cursive script input device, characterized in that, The device includes: The acquisition module is used to acquire user input information, which includes: typed information or handwritten information; The parsing module is used to parse the input information based on the parsing rules for implementing phonetic-semantic cursive input, and obtain the parsed information; The matching module is used to search within a lexicon constructed based on the parsed information and the encoding rules for implementing phono-semantic cursive input, and to match the target Chinese characters in a preset font. The target Chinese characters in the preset font include: target Chinese characters in one-stroke cursive or target Chinese characters in non-cursive fonts. The encoding rules for implementing phono-semantic cursive input include: phono-semantic encoding rules and one-stroke cursive encoding rules, wherein the one-stroke cursive encoding rules are determined based on the phono-semantic encoding rules. The output module is used to output and display the target Chinese characters in the preset font.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the phonetic-semantic cursive input method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the phonetic-semantic cursive input method as described in any one of claims 1-7.