Input method, conversion method, system and device and storage medium
Through the screening and processing of the medieval initials and medieval finals of the medieval Chinese Pinyin, the pinyin string is generated, which solves the problem of many homophones in the modern Chinese Pinyin input method, improves the efficiency of Chinese character input and reduces the occurrence of typos.
Patent Information
- Application Number
- CN202410169155.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-05
- Filing Date
- 2024-02-06
- Publication Date
- 2025-07-25
AI Technical Summary
The large number of homophones in modern Chinese pinyin input methods leads to low efficiency in Chinese character input and prone to typos.
By using the medieval initials and medieval finals of the medieval Chinese pinyin, a Chinese character pinyin comparison table is established, and the medieval initials, finals and tone are processed to generate pinyin strings to reduce the number of homophones.
Effectively reduce the number of homophones, improve the efficiency of Chinese character input, and reduce the frequency of typos.
Smart Images

Figure CN120371141A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of input methods, and particularly relates to an input method, a conversion method, a system, a device, and a storage medium. Background Art
[0002] For users who use Chinese characters, to input Chinese characters into a computer, the user needs to input a character string through a keyboard. The processor in the computer executes the input program of the storage device stored in the memory, and converts the received character string into the corresponding Chinese characters for display.
[0003] Currently, the commonly used input method for users to input Chinese characters is the pinyin input method based on modern Chinese pinyin. The pinyin input method based on modern Chinese pinyin generally uses a character string composed of modern initials and modern finals of Chinese characters as the pinyin string corresponding to the Chinese characters. Since modern Chinese pinyin is based on the modern Chinese phonetic system, and the modern Chinese phonetic system has evolved from the Middle Chinese phonetic system. From the Middle Chinese phonetic system to the modern standard Chinese phonetic system, there are both differentiations and simplifications, but mainly simplifications. There are about 40 initials in the Middle Chinese Guangyun system, and more than 80 finals without tones in the Middle Chinese. While there are only 21 modern initials in modern Chinese pinyin, and only 39 modern finals without tones in modern Chinese pinyin. Since the number of modern initials and modern finals in modern Chinese pinyin formed after differentiation or simplification is relatively small, the number of different Chinese characters corresponding to the same pinyin string in the Chinese character pinyin look-up table is relatively large, that is, the number of homophonic characters with the same modern initials and the same modern finals in the Chinese character pinyin look-up table is relatively large. When the user inputs a pinyin string, a large number of homophonic characters often appear in the candidate box, and the user constantly needs to distinguish and select the homophonic characters in the candidate box, resulting in relatively low input efficiency of Chinese characters, and it is easy to display misspelled characters due to incorrect selection. Summary of the Invention
[0004] The purpose of this application is to provide an input method, a conversion method, a system, a device, and a storage medium; the input method, system, device, and storage medium provided by this application can effectively reduce the number of homophonic characters in the Chinese character pinyin look-up table, can effectively reduce the frequency of the user distinguishing and selecting homophonic characters in the candidate box, thereby effectively improving the input efficiency of Chinese characters, and effectively reducing the situation of displaying misspelled characters due to incorrect selection.
[0005] The technical solution provided by this application is as follows:
[0006] An input method, comprising:
[0007] Screen each of the Chinese characters according to the Middle Chinese initial consonants and Middle Chinese final vowels of their Middle Chinese phonetic transcriptions, to obtain multiple first groups of Chinese characters and multiple second Chinese characters with different Middle Chinese initial consonants or Middle Chinese final vowels, where each of the first groups of Chinese characters includes multiple first Chinese characters with the same Middle Chinese initial consonants and Middle Chinese final vowels;
[0008] According to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones, and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and a first preset rule, process the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively, to obtain the corresponding pinyin strings for each of the first Chinese characters in each of the first groups of Chinese characters;
[0009] Use the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the second Chinese characters as the corresponding pinyin strings for the second Chinese characters;
[0010] Establish a Chinese character - pinyin look - up table according to each of the first Chinese characters and their corresponding pinyin strings, and each of the second Chinese characters and their corresponding pinyin strings;
[0011] Receive the pinyin string input by the user through the keyboard;
[0012] According to the input pinyin string, query the Chinese character - pinyin look - up table, and obtain and display the target Chinese character or target word corresponding to the input pinyin string.
[0013] Optionally, the step of according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones, and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and a first preset rule, processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively, to obtain the corresponding pinyin strings for each of the first Chinese characters in each of the first groups of Chinese characters includes:
[0014] If the Middle Chinese tones of each of the first Chinese characters in the first group of Chinese characters are entering tones, then according to the Middle Chinese final vowels and types of modern tones of each of the first Chinese characters, process the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively, to obtain the corresponding pinyin strings for each of the first Chinese characters in the first group of Chinese characters;
[0015] If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are level tones, rising tones, or falling tones, then according to the types of the Middle Chinese initials of the first Chinese characters and the first preset rule, the strings formed by the Middle Chinese initials and Middle Chinese finals of the first Chinese characters are respectively processed to obtain the pinyin strings corresponding to the first Chinese characters in the first Chinese character group, and / or, according to the types of the Middle Chinese finals and Middle Chinese tones of the first Chinese characters, the strings formed by the Middle Chinese initials and Middle Chinese finals of the first Chinese characters are respectively processed to obtain the pinyin strings corresponding to the first Chinese characters in the first Chinese character group.
[0016] Optionally, if the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, then according to the types of the Middle Chinese finals and modern tones of the first Chinese characters, the strings formed by the Middle Chinese initials and Middle Chinese finals of the first Chinese characters are respectively processed to obtain the pinyin strings corresponding to the first Chinese characters in the first Chinese character group, including:
[0017] If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters and the modern tones of the two first Chinese characters are different, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include three types: high level tone, rising tone, falling tone, and departing tone, then select the current first Chinese character from the first Chinese character group;
[0018] If the modern tone of the current first Chinese character is high level tone or rising tone, then the string formed by the Middle Chinese initial and Middle Chinese final of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character;
[0019] If the modern tone of the current first Chinese character is rising tone, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character;
[0020] If the modern tone of the current first Chinese character is departing tone, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character;
[0021] Until the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group are obtained.
[0022] Optionally, if the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, then according to the Middle Chinese finals and the types of modern tones of the first Chinese characters, the strings formed by the Middle Chinese initials and Middle Chinese finals of the first Chinese characters are respectively processed to obtain the pinyin strings corresponding to the first Chinese characters in the first Chinese character group, including:
[0023] If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, and the modern tones of multiple first Chinese characters in the first Chinese character group are the same, if the first Chinese character group includes two first Chinese characters, then the two first Chinese characters are sorted in the positive order according to the second preset rule, the string formed by the Middle Chinese initial and Middle Chinese final of the first Chinese character ranked first is used as the pinyin string corresponding to the first Chinese character ranked first, the coda of the Middle Chinese final of the first Chinese character ranked second is modified to the first preset character or the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked second is used as the pinyin string corresponding to the first Chinese character ranked second; if the first Chinese character group includes three or more first Chinese characters, then the three or more first Chinese characters are sorted in the positive order according to the second preset rule, the string formed by the Middle Chinese initial and Middle Chinese final of the first Chinese character ranked first is used as the pinyin string corresponding to the first Chinese character ranked first, the coda of the Middle Chinese final of the first Chinese character ranked second is modified to the first preset character, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked second is used as the pinyin string corresponding to the first Chinese character ranked second, the coda of the Middle Chinese final of the first Chinese character ranked third is modified to the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked third is used as the pinyin string corresponding to the first Chinese character ranked third;
[0024] If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include any two of high level, rising, falling and entering tones, if there is a first Chinese character with a modern tone of falling or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of high level and / or rising, then modify the coda of the Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising to the first preset character or the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising as the pinyin string corresponding to the first Chinese character with a modern tone of falling or rising. Sort the two or more first Chinese characters with modern tones of high level and / or rising in the first Chinese character group in the positive order according to the second preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string or the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the string corresponding to the first Chinese character ranked second; if there is one or more first Chinese characters with modern tones of high level and / or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of falling, then use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character with a modern tone of high level and / or rising as the pinyin string corresponding to the first Chinese character with a modern tone of high level and / or rising. Sort the two or more first Chinese characters with modern tones of falling in the first Chinese character group in the positive order according to the second preset rule, modify the coda of the Middle Chinese rhyme of the first Chinese character ranked first to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the pinyin string corresponding to the first Chinese character ranked second;If there is a first Chinese character in the first group of Chinese characters with a modern tone of the rising tone, and there are two or more first Chinese characters with modern tones of the falling tone, then modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character with a modern tone of the rising tone to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of the rising tone as the pinyin string corresponding to the first Chinese character with a modern tone of the rising tone. Sort the two or more first Chinese characters with modern tones of the falling tone in the first group of Chinese characters in the positive direction according to the second preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the string corresponding to the first Chinese character ranked second.;
[0025] Optionally, the step of respectively processing the strings formed by the Middle Chinese initials and the Middle Chinese rhymes of each of the first Chinese characters according to the type of the Middle Chinese initials of each of the first Chinese characters and the first preset rule to obtain the pinyin strings corresponding to each of the first Chinese characters in the first group of Chinese characters includes:
[0026] If the Middle Chinese initial of the first Chinese character in the first group of Chinese characters is a fully voiced consonant, add a second preset character after the Middle Chinese initial of the first Chinese character that conforms to the first preset rule in the first group of Chinese characters, and use the string formed by the added Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character that conforms to the first preset rule as the pinyin string corresponding to the first Chinese character that conforms to the first preset rule. Use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character that does not conform to the first preset rule in the first group of Chinese characters as the pinyin string corresponding to the first Chinese character that does not conform to the first preset rule;
[0027] If the Middle Chinese initial of the first Chinese character in the first group of Chinese characters is a semi-voiced consonant, add a third preset character before the Middle Chinese initial of the first Chinese character with a modern tone of the high-level tone or the first Chinese character that conforms to the first preset rule in the first group of Chinese characters, and use the string formed by the added Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character with a modern tone of the high-level tone or the first Chinese character that conforms to the first preset rule as the pinyin string corresponding to the first Chinese character with a modern tone of the high-level tone or the first Chinese character that conforms to the first preset rule. Use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character with a modern tone other than the high-level tone or the first Chinese character that does not conform to the first preset rule in the first group of Chinese characters as the pinyin string corresponding to the first Chinese character with a modern tone other than the high-level tone or the first Chinese character that does not conform to the first preset rule;
[0028] If the Middle Chinese initial of the first Chinese character in the first Chinese character group is fully voiceless or voiceless aspirated, then the string formed by the Middle Chinese initial and Middle Chinese final of each of the first Chinese characters is used as the pinyin string corresponding to each of the first Chinese characters in the first Chinese character group.
[0029] Optionally, the processing of the string formed by the Middle Chinese initial and Middle Chinese final of each of the first Chinese characters according to the types of the Middle Chinese finals and Middle Chinese tones of each of the first Chinese characters to obtain the pinyin string corresponding to each of the first Chinese characters in the first Chinese character group includes:
[0030] If the Middle Chinese final of the first Chinese character in the first Chinese character group has no coda, select the current first Chinese character from the first Chinese character group. If the Middle Chinese tone of the current first Chinese character is level tone, then the string formed by the Middle Chinese initial and Middle Chinese final of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is rising tone, then a fourth preset character is added after the Middle Chinese final of the current first Chinese character, and the string formed by the Middle Chinese initial of the current first Chinese character and the augmented Middle Chinese final is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is falling tone, then a fifth preset character is added after the Middle Chinese final of the current first Chinese character, and the string formed by the Middle Chinese initial of the current first Chinese character and the augmented Middle Chinese final is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each of the first Chinese characters in the first Chinese character group are obtained;
[0031] If the coda of the Middle Chinese final of the first Chinese character in the first Chinese character group is a vowel coda, select the current first Chinese character from the first Chinese character group. If the Middle Chinese tone of the current first Chinese character is level tone, then the string formed by the Middle Chinese initial and Middle Chinese final of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is rising tone, then the coda of the Middle Chinese final of the current first Chinese character is modified to a sixth preset character, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese final is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is falling tone, then the coda of the Middle Chinese final of the current first Chinese character is modified to a seventh preset character, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese final is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each of the first Chinese characters in the first Chinese character group are obtained;
[0032] If the coda of the Middle Chinese rhyme of the first Chinese character in the first group of Chinese characters is a nasal coda, select the current first Chinese character from the first group of Chinese characters. If the Middle Chinese tone of the current first Chinese character is a level tone, use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to a second preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a falling tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to a third preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each of the first Chinese characters in the first group of Chinese characters are obtained.
[0033] This application also provides a conversion method, including:
[0034] Screen each of the Chinese characters according to the Middle Chinese initials and Middle Chinese rhymes of the Middle Chinese pinyin of each Chinese character, to obtain multiple first groups of Chinese characters and multiple second Chinese characters with different Middle Chinese initials or Middle Chinese rhymes, where each of the first groups of Chinese characters includes multiple first Chinese characters with the same Middle Chinese initials and Middle Chinese rhymes;
[0035] According to the Middle Chinese initials, Middle Chinese rhymes, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and a first preset rule, process the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters respectively, to obtain the pinyin strings corresponding to each of the first Chinese characters in each of the first groups of Chinese characters;
[0036] Use the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the second Chinese characters as the pinyin strings corresponding to the second Chinese characters;
[0037] Establish a Chinese character-pinyin look-up table according to each of the first Chinese characters and the corresponding pinyin strings, and each of the second Chinese characters and the corresponding pinyin strings;
[0038] Receive a Chinese character or a word or a text to be converted, and a conversion instruction;
[0039] Based on the conversion instruction, query the Chinese character-pinyin look-up table according to the Chinese character or the word or the text to be converted, and obtain and display the target pinyin string corresponding to the Chinese character or the word or the text to be converted.
[0040] This application also provides an input system, including:
[0041] The first screening module is used to screen each of the Chinese characters according to the Middle Chinese initial consonants and Middle Chinese final vowels of their Middle Chinese Pinyin, to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese final vowels. Each of the first Chinese character groups includes a plurality of first Chinese characters with the same Middle Chinese initial consonants and Middle Chinese final vowels;
[0042] The first processing module is used to process the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters in each of the first Chinese character groups respectively according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first Chinese character groups and a first preset rule, to obtain the corresponding Pinyin strings of each of the first Chinese characters in each of the first Chinese character groups;
[0043] The second processing module is used to use the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the second Chinese characters as the corresponding Pinyin strings of the second Chinese characters;
[0044] The first establishing module is used to establish a Chinese character - Pinyin comparison table according to each of the first Chinese characters and the corresponding Pinyin strings, and each of the second Chinese characters and the corresponding Pinyin strings;
[0045] The first receiving module is used to receive the Pinyin string input by the user through the keyboard;
[0046] The first querying module is used to query the Chinese character - Pinyin comparison table according to the input Pinyin string, and obtain and display the target Chinese character or target word corresponding to the input Pinyin string.
[0047] This application further provides a conversion system, including:
[0048] The second screening module is used to screen each of the Chinese characters according to the Middle Chinese initial consonants and Middle Chinese final vowels of their Middle Chinese Pinyin, to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese final vowels. Each of the first Chinese character groups includes a plurality of first Chinese characters with the same Middle Chinese initial consonants and Middle Chinese final vowels;
[0049] The third processing module is used to process the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters in each of the first Chinese character groups respectively according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first Chinese character groups and a first preset rule, to obtain the corresponding Pinyin strings of each of the first Chinese characters in each of the first Chinese character groups;
[0050] The fourth processing module is used to use the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the second Chinese characters as the corresponding Pinyin strings of the second Chinese characters;
[0051] A second establishment module, configured to establish a Chinese character - pinyin comparison table according to each of the first Chinese characters and their corresponding pinyin strings, and each of the second Chinese characters and their corresponding pinyin strings;
[0052] A second receiving module, configured to receive a Chinese character to be converted, a word to be converted, or a text to be converted, and a conversion instruction;
[0053] A second query module, configured to query the Chinese character - pinyin comparison table based on the conversion instruction according to the Chinese character to be converted, the word to be converted, or the text to be converted, and obtain and display a target pinyin string corresponding to the Chinese character to be converted, the word to be converted, or the text to be converted.
[0054] This application further provides an electronic device, characterized by comprising: a processor, a memory, and a communication bus;
[0055] The communication bus is used to implement connection communication between the processor and the memory;
[0056] The processor is configured to execute an input program of a storage device stored in the memory to implement the steps of the input method of the storage device as described in any one of the above, or to implement the steps of the conversion method of the storage device as described above.
[0057] This application further provides a readable storage medium, in which computer - executable instructions are stored. When the computer - executable instructions are loaded and executed by a processor, the steps of the input method of the storage device as described in any one of the above are implemented, or the steps of the conversion method of the storage device as described above are implemented.
[0058] Compared with the prior art, an input method, system, device and storage medium provided by the present application screen each Chinese character according to the Middle Ancient initial consonant and Middle Ancient final of the Middle Ancient Chinese Pinyin of each Chinese character to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Ancient initial consonants or Middle Ancient finals. Each first Chinese character group includes a plurality of first Chinese characters with the same Middle Ancient initial consonant and Middle Ancient final. Then, according to the Middle Ancient initial consonant, Middle Ancient final, Middle Ancient tone and type of modern tone of each first Chinese character in each first Chinese character group and a first preset rule, the string composed of the Middle Ancient initial consonant and Middle Ancient final of each first Chinese character is processed to obtain the Pinyin string corresponding to each first Chinese character in each first Chinese character group. The string composed of the Middle Ancient initial consonant and Middle Ancient final of each second Chinese character is used as the Pinyin string corresponding to the second Chinese character. Then, according to each first Chinese character and the corresponding Pinyin string, and each second Chinese character and the corresponding Pinyin string, a Chinese character-Pinyin look-up table is established. The Pinyin string input by the user through the keyboard is received, and according to the input Pinyin string, the Chinese character-Pinyin look-up table is queried to obtain and display the target Chinese character or target word corresponding to the input Pinyin string. In the present application, since the number of Middle Ancient initial consonants and Middle Ancient finals of the Middle Ancient Chinese Pinyin is relatively large, the number of first Chinese character groups including a plurality of first Chinese characters with the same Middle Ancient initial consonant and Middle Ancient final can be effectively reduced, that is, the number of homophonic characters in the Chinese character-Pinyin look-up table can be effectively reduced. By processing the strings composed of the Middle Ancient initial consonants and Middle Ancient finals of each first Chinese character in the first Chinese character group respectively, the number of Pinyin strings corresponding to the first Chinese character group increases, and the number of first Chinese characters corresponding to each Pinyin string is significantly reduced, which can further reduce the number of homophonic characters in the Chinese character-Pinyin look-up table, effectively reduce the frequency of the user's discrimination and selection of homophonic characters in the candidate box, thereby effectively improving the input efficiency of Chinese characters and effectively reducing the occurrence of misspelled words due to incorrect selection. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0060] Figure 1 It is a schematic flowchart of an input method provided in an embodiment of the present application;
[0061] Figure 2 It is a schematic flowchart of a conversion method provided in an embodiment of the present application;
[0062] Figure 3A schematic structural diagram of an input system provided in an embodiment of the present application;
[0063] Figure 4 A schematic structural diagram of a conversion system provided in an embodiment of the present application;
[0064] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present invention. Detailed implementation manners
[0065] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0066] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly disposed on the other element; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0067] It should be understood that the orientation or positional relationship indicated by terms such as "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be understood as a limitation to the present application.
[0068] In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, the meaning of "a plurality of" or "several" is two or more, unless otherwise specifically defined.
[0069] It should be noted that the structures, proportions, sizes, etc. shown in the attached drawings of this specification are only used to cooperate with the content disclosed in the specification for those familiar with this technology to understand and read, and are not used to limit the implementation conditions of this application. Therefore, they do not have substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size, without affecting the effects that this application can produce and the purposes that can be achieved, should still fall within the scope covered by the technical content disclosed in this application.
[0070] As Figure 1 shown, an embodiment of this application provides an input method, including:
[0071] S11. Screen each Chinese character according to the Middle Chinese initial consonant and Middle Chinese final of the Middle Chinese Pinyin of each Chinese character to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals, where each first Chinese character group includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final;
[0072] In this embodiment, Middle Chinese Pinyin includes Middle Chinese initial consonants, Middle Chinese finals, and Middle Chinese tones. There are about 40 Middle Chinese initial consonants, more than 80 Middle Chinese finals without tones, and Middle Chinese tones include level tone, rising tone, falling tone, and entering tone. As shown in Table 1, classified according to whether the vocal cords vibrate during pronunciation, Middle Chinese initial consonants are divided into fully clear, semi-clear, fully voiced, and semi-voiced. Among them, fully clear initial consonants can be further divided into stop consonants, affricates, and fricatives according to the manner of articulation obstruction. Fully voiced initial consonants can also be divided into stop consonants, affricates, and fricatives according to the manner of articulation obstruction. The specific is as shown in the following table:
[0073] Table 1 Middle Chinese Pinyin Initial Consonant Table
[0074]
[0075] In this embodiment, the Middle Chinese Pinyin initial consonants in Table 1 and the subsequent Middle Chinese Pinyin finals mainly refer to the Middle Chinese Pinyin of user polyhedron. Among them, the Chinese characters in front of the initial consonants (such as "bang" in front of p) are the names corresponding to the initial consonants in the traditional phonology of Middle Chinese. The letter expressions of each initial consonant in the above initial consonant table and the finals of Middle Chinese Pinyin are just one implementation scheme, and in actual implementation, certain modifications or adjustments can be made to the initial consonants in the initial consonant table and the finals of Middle Chinese Pinyin.
[0076] In this embodiment, each Chinese character is screened according to the Middle Chinese initial consonant and Middle Chinese final of the Middle Chinese Pinyin of each Chinese character to obtain a plurality of first Chinese character groups, each first Chinese character group includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final, and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals are obtained.
[0077] For example, the first Chinese character group includes three first Chinese characters: du, du, and du of which the Middle Chinese initial consonant is t and the Middle Chinese final vowel is u.
[0078] S12. According to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones, and types of modern tones of each first Chinese character in each first Chinese character group, as well as the first preset rule, process the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each first Chinese character respectively to obtain the corresponding pinyin strings for each first Chinese character in each first Chinese character group;
[0079] In this application, the Middle Chinese tones include four types: level tone, rising tone, departing tone, and entering tone. The types of modern tones include high level tone, rising tone, falling tone, and departing tone. However, high level tone or rising tone, as a type of tone, together with falling tone and departing tone form three types of modern tones. The above "same" means being the same as one of these three, and the above "different" means being different among these three.
[0080] In this embodiment, according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones, and types of modern tones of each first Chinese character in each first Chinese character group, as well as the first preset rule, modify the Middle Chinese initial consonant or Middle Chinese final vowel in the string formed by the Middle Chinese initial consonant and Middle Chinese final vowel of a first Chinese character in the first Chinese character group, or modify the Middle Chinese initial consonant or Middle Chinese final vowel in the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of multiple first Chinese characters, to obtain the corresponding pinyin strings for each first Chinese character in each first Chinese character group, so as to increase the number of corresponding pinyin strings for the first Chinese character group and significantly reduce the number of first Chinese characters corresponding to each pinyin string.
[0081] S13. Use the string formed by the Middle Chinese initial consonant and Middle Chinese final vowel of each second Chinese character as the corresponding pinyin string for the second Chinese character;
[0082] S14. Establish a Chinese character - pinyin comparison table according to each first Chinese character and its corresponding pinyin string, and each second Chinese character and its corresponding pinyin string;
[0083] In this embodiment, a Chinese character - pinyin comparison table can be established by corresponding the first Chinese character with its corresponding pinyin string and the second Chinese character with its corresponding pinyin string. It can also be established by corresponding the first Chinese character with its corresponding pinyin string, the second Chinese character with its corresponding pinyin string, corresponding the words formed by multiple first Chinese characters with their corresponding pinyin strings, corresponding the words formed by multiple second Chinese characters with their corresponding pinyin strings, and corresponding the words formed by the first Chinese character and the second Chinese character with their corresponding pinyin strings.
[0084] S15. Receive the pinyin string input by the user through the keyboard;
[0085] S16. Query the Chinese character pinyin comparison table based on the input pinyin string, and obtain and display the target Chinese character or target word corresponding to the input pinyin string.
[0086] In this embodiment, according to the pinyin string input by the user through the keyboard, query in the pre-established Chinese character pinyin comparison table, obtain the target Chinese character or target word corresponding to the input pinyin string, and display the target Chinese character or target word.
[0087] Compared with the prior art, an input method, system, device and storage medium provided by the present application screen each Chinese character according to the Middle Chinese initial consonant and Middle Chinese final of the Middle Chinese pinyin of each Chinese character to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals. Each first Chinese character group includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final. Then, according to the Middle Chinese initial consonant, Middle Chinese final, Middle Chinese tone and type of modern tone of each first Chinese character in each first Chinese character group and the first preset rule, process the string composed of the Middle Chinese initial consonant and Middle Chinese final of each first Chinese character to obtain the pinyin string corresponding to each first Chinese character in each first Chinese character group. Use the string composed of the Middle Chinese initial consonant and Middle Chinese final of each second Chinese character as the pinyin string corresponding to the second Chinese character. Then, establish a Chinese character pinyin comparison table according to each first Chinese character and the corresponding pinyin string, and each second Chinese character and the corresponding pinyin string. Receive the pinyin string input by the user through the keyboard, query the Chinese character pinyin comparison table according to the input pinyin string, and obtain and display the target Chinese character or target word corresponding to the input pinyin string. In the present application, since the number of Middle Chinese initial consonants and Middle Chinese finals of Middle Chinese pinyin is relatively large, the number of first Chinese character groups including a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final can be effectively reduced, that is, the number of homophonic characters in the Chinese character pinyin comparison table can be effectively reduced. By separately processing the strings composed of the Middle Chinese initial consonant and Middle Chinese final of each first Chinese character in the first Chinese character group, the number of pinyin strings corresponding to the first Chinese character group increases, and the number of first Chinese characters corresponding to each pinyin string is significantly reduced, which can further reduce the number of homophonic characters in the Chinese character pinyin comparison table, effectively reduce the frequency of the user's discrimination and selection of homophonic characters in the candidate box, thereby effectively improving the input efficiency of Chinese characters and effectively reducing the situation of displaying misspelled words due to incorrect selection.
[0088] As an implementation manner, in the embodiment of the present application, step S12 includes:
[0089] S121. If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, then according to the Middle Chinese rhymes and the types of modern tones of each of the first Chinese characters, the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters are processed separately to obtain the corresponding pinyin strings of each of the first Chinese characters in the first Chinese character group;
[0090] In this embodiment, if the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, the current first Chinese character can be selected from the first Chinese character group. If the modern tone of the current first Chinese character is high level or rising tone, then the string formed by the Middle Chinese initial and Middle Chinese rhyme of the current first Chinese character is used as the corresponding pinyin string of the current first Chinese character. If the modern tone of the current first Chinese character is falling-rising tone or falling tone, then the coda of the Middle Chinese rhyme of the current first Chinese character is modified correspondingly, and the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character is used as the corresponding pinyin string of the current first Chinese character, until the corresponding pinyin strings of each of the first Chinese characters in the first Chinese character group are obtained, which can increase the number of corresponding pinyin strings of the first Chinese character group and significantly reduce the number of first Chinese characters corresponding to each pinyin string, and can effectively reduce the number of homophones.
[0091] S122. If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are level tones, or rising tones, or falling tones, then according to the types of the Middle Chinese initials of each of the first Chinese characters and the first preset rule, the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters are processed separately to obtain the corresponding pinyin strings of each of the first Chinese characters in the first Chinese character group, and / or according to the Middle Chinese rhymes and the types of Middle Chinese tones of each of the first Chinese characters, the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters are processed separately to obtain the corresponding pinyin strings of each of the first Chinese characters in the first Chinese character group.
[0092] In this embodiment, if the Middle Chinese tones of the first Chinese characters in the first Chinese character group are level tones, or rising tones, or falling tones, by processing the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters according to the types of the Middle Chinese initials of each of the first Chinese characters and the first preset rule and / or according to the Middle Chinese rhymes and the types of Middle Chinese tones of each of the first Chinese characters, the corresponding pinyin strings of each of the first Chinese characters in the first Chinese character group are obtained, which can increase the number of corresponding pinyin strings of the first Chinese character group and significantly reduce the number of first Chinese characters corresponding to each pinyin string, and can effectively reduce the number of homophones.
[0093] As an implementation manner, in the embodiment of the present application, step S121 includes:
[0094] S1211. If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters with different modern tones, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include three types: high level, rising, and falling, then select the current first Chinese character from the first Chinese character group;
[0095] S1212. If the modern tone of the current first Chinese character is high level or rising, then use the string formed by the Middle Chinese initial and the Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character;
[0096] S1213. If the modern tone of the current first Chinese character is rising, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character;
[0097] S1214. If the modern tone of the current first Chinese character is falling, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character;
[0098] S1215. Until the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group are obtained.
[0099] In this embodiment, since in Middle Chinese pinyin, if the Middle Chinese tone is an entering tone, then the Middle Chinese final is a p coda or a t coda or a k coda. The Middle Chinese finals with a p coda include ap, rap, rep, iep, iap, ep, yap, op, ip, and the Middle Chinese finals with a t coda include at, rat 、ret, iet, iat, et, uat, ruat, ruet, yet, yat, uet, ot, it, iot, uot, yt, yot. The Middle Chinese finals with the k rhyme tail include ak, uak, iak, yak, rak, rek, iek, ek, ruak, ruek, yek, uek, ok, uok, ik, uk, uuk, yuk, iuk, ruk, yk. Among them, the specific Middle Chinese finals are referred to the Middle Chinese pinyin of the user polyhedron; The first preset string is a preset string, and the first preset character is a preset character. The first preset string can be pp or tt or ck, and the first preset character can be b or d or g; If the Middle Chinese tones of each first Chinese character in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters and the modern tones of the two first Chinese characters are different, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include the three types of high level, rising, falling and entering tones, and the Middle Chinese final is a p rhyme tail, then select the current first Chinese character from the first Chinese character group. If the modern tone of the current first Chinese character is high level or rising, then form a string with the Middle Chinese initial and the Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is falling, then modify the rhyme tail of the Middle Chinese final of the current first Chinese character to pp, and form a string with the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is entering, then modify the rhyme tail of the Middle Chinese final of the current first Chinese character to b, and form a string with the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until obtaining the pinyin strings corresponding to each first Chinese character in the first Chinese character group;If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters and the modern tones of the two first Chinese characters are different, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include three types: high level or rising, falling-rising, and falling tones, and the Middle Chinese rhyme ends with a t rhyme tail, then select the current first Chinese character from the first Chinese character group. If the modern tone of the current first Chinese character is high level or rising, then the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is falling-rising, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to tt, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is falling, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to d, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group are obtained. If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters and the modern tones of the two first Chinese characters are different, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include three types: high level or rising, falling-rising, and falling tones, and the Middle Chinese rhyme ends with a k rhyme tail, then select the current first Chinese character from the first Chinese character group. If the modern tone of the current first Chinese character is high level or rising, then the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is falling-rising, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to ck, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is falling, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to g, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group are obtained.;
[0100] For example, as shown in Table 2 below, the first Chinese character in the first Chinese character group has a Chinese initial consonant of th and a Chinese final consonant of ap, that is, a final consonant of p, namely, the three first Chinese characters of 垮, 鋎, and 榻. The current first Chinese character "垮" is selected from the first Chinese character group. Since the modern tone of "垮" is yinping, the string thap composed of the Chinese initial consonant th and the Chinese final consonant ap of "垮" is used as the pinyin string corresponding to "垮". "鋎" is selected from the first Chinese character group as the current first Chinese character. Since the modern tone of "鋎" is shangsheng, "鋎" is selected as the pinyin string corresponding to "垮". The final vowel of the Middle Ages finals of "苎" is modified to pp, and the string thapp consisting of the Middle Ages initial consonant th of "苎" and the modified Middle Ages finals app is used as the pinyin string corresponding to "苎", and "榻" is selected from the first Chinese character group as the current first Chinese character. Since the modern tone of "榻" is falling tone, the final vowel of the Middle Ages finals of "榻" is modified to b, and the string thab consisting of the Middle Ages initial consonant th of "苎" and the modified Middle Ages finals ab is used as the pinyin string corresponding to "榻", as shown below:
[0101] Table 2
[0102]
[0103]
[0104] As an implementation manner, in the embodiment of the present application, step S121 includes:
[0105] S1216. If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, and the modern tones of multiple first Chinese characters in the first Chinese character group are the same. If the first Chinese character group includes two first Chinese characters, then sort the two first Chinese characters in the forward order according to the second preset rule. The string formed by the Middle Chinese initial and the Middle Chinese final of the first first Chinese character arranged in the first place is used as the pinyin string corresponding to the first first Chinese character arranged in the first place. Modify the coda of the Middle Chinese final of the second first Chinese character to the first preset character or the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the second first Chinese character is used as the pinyin string corresponding to the second first Chinese character arranged in the second place. If the first Chinese character group includes three or more first Chinese characters, then sort the three or more first Chinese characters in the forward order according to the second preset rule. The string formed by the Middle Chinese initial and the Middle Chinese final of the first first Chinese character arranged in the first place is used as the pinyin string corresponding to the first first Chinese character arranged in the first place. Modify the coda of the Middle Chinese final of the second first Chinese character to the first preset character, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the second first Chinese character is used as the pinyin string corresponding to the second first Chinese character arranged in the second place. Modify the coda of the Middle Chinese final of the third first Chinese character to the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the third first Chinese character is used as the pinyin string corresponding to the third first Chinese character arranged in the third place;
[0106] In this embodiment, the second preset rule may be the order from the fewest to the most strokes, or the order from the highest to the lowest Chinese character usage frequency, or other rules. The first preset character may be d or b or g, and the first preset string may be tt or pp or ck. If the Middle Chinese tones of the two first Chinese characters in the first Chinese character group are entering tones and the modern tones of the two first Chinese characters in the first Chinese character group are the same, then sort the two first Chinese characters in the first Chinese character group in the order from the fewest to the most strokes, and use the string formed by the Middle Chinese initial and the Middle Chinese final of the first first Chinese character with the fewest strokes as the pinyin string corresponding to the first first Chinese character. Modify the coda of the Middle Chinese final of the second first Chinese character with the most strokes to d or b or g or modify it to tt or pp or ck, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the second first Chinese character as the pinyin string corresponding to the second first Chinese character; if the Middle Chinese tones of the three first Chinese characters in the first Chinese character group are entering tones and the modern tones of the three first Chinese characters in the first Chinese character group are the same, then sort the three first Chinese characters in the first Chinese character group in the order from the fewest to the most strokes, and use the string formed by the Middle Chinese initial and the Middle Chinese final of the first first Chinese character with the fewest strokes as the pinyin string corresponding to the first first Chinese character. Modify the coda of the Middle Chinese final of the second first Chinese character ranked between the fewest and the most strokes to d or b or g, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the second first Chinese character as the pinyin string corresponding to the second first Chinese character. Modify the coda of the Middle Chinese final of the third first Chinese character with the most strokes to tt or pp or ck, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the third first Chinese character as the pinyin string corresponding to the third first Chinese character;If the Middle Chinese tone of 4 or more first Chinese characters in the first Chinese character group is entering tone, and the modern tone of the 4 first Chinese characters in the first Chinese character group is the same, then the 4 first Chinese characters in the first Chinese character group are sorted in order of the number of strokes from least to most, and the string consisting of the Middle Chinese initial consonant and the Middle Chinese final of the first first Chinese character with the least strokes is used as the pinyin string corresponding to the first first Chinese character, the final of the Middle Chinese final of the second first Chinese character is modified to d or b or g, and the string consisting of the Middle Chinese initial consonant and the modified Middle Chinese final of the second first Chinese character is used as the pinyin string corresponding to the second first Chinese character, the final of the Middle Chinese final of the third first Chinese character is modified to tt or pp or ck, and the Middle Chinese final of the third first Chinese character is modified to tt or pp or ck. The string consisting of the ancient initials and the modified Chinese finals is used as the pinyin string corresponding to the third first Chinese character, and the string consisting of the Chinese initials and Chinese finals of the fourth or fourth to last first Chinese character can be used as the pinyin string corresponding to the fourth or fourth to last first Chinese character, and the Chinese initials of the fourth or fourth to last first Chinese character can be modified according to the type of the Chinese initials of the fourth or fourth to last first Chinese character, and the string consisting of the modified Chinese initials and Chinese finals of the fourth or fourth to last first Chinese character can be used as the pinyin string corresponding to the fourth or fourth to last first Chinese character. ;
[0107] For example, the first Chinese character group includes three first Chinese characters, namely, list, fierce, and crack. The Chinese initial consonant of the three first Chinese characters, namely, list, fierce, and crack is l, the Chinese final consonant is iet, and the Chinese tone is entering tone. Moreover, the modern tone of the three first Chinese characters, namely, list, fierce, and crack, in the first Chinese character group is the same. The three first Chinese characters in the first Chinese character group are sorted in order from the least to the most strokes. The sorted order is list, fierce, and crack. The string liet consisting of the Chinese initial consonant l and the Chinese final consonant iet of the word “list” with the least strokes is used as the character string corresponding to “list”. Pinyin string; modify the final t of the Chinese vowel iet of "烈", which ranks between the word with the least strokes and the word with the most strokes, to d, and use the string lied consisting of the Chinese initial consonant l of "烈" and the modified Chinese final ied as the Pinyin string corresponding to "烈"; modify the final t of the Chinese vowel iet of "裂", which has the most strokes, to tt, and use the string liet consisting of the Chinese initial consonant l of "裂" and the modified Chinese final iett as the Pinyin string corresponding to "烈".
[0108] S1217. If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include any two of high level, rising, falling and entering tones, if there is one first Chinese character with a modern tone of falling or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of high level and / or rising, then modify the coda of the Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising to the first preset character or the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising as the pinyin string corresponding to the first Chinese character with a modern tone of falling or rising. Arrange two or more first Chinese characters with modern tones of high level and / or rising in positive order according to the second preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string or the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the string corresponding to the first Chinese character ranked second; if there is one or more first Chinese characters with modern tones of high level and / or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of falling, then use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character with a modern tone of high level and / or rising as the pinyin string corresponding to the first Chinese character with a modern tone of high level and / or rising. Arrange two or more first Chinese characters with modern tones of falling in positive order according to the second preset rule, modify the coda of the Middle Chinese rhyme of the first Chinese character ranked first to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the pinyin string corresponding to the first Chinese character ranked second;If there is a first Chinese character in the first group of Chinese characters with a modern tone of the rising tone, and there are two or more first Chinese characters with a modern tone of the falling tone, then modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character with a modern tone of the rising tone to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of the rising tone as the pinyin string corresponding to the first Chinese character with a modern tone of the rising tone. Sort the two or more first Chinese characters with a modern tone of the falling tone in the positive order according to the second preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the string corresponding to the first Chinese character ranked second.;
[0109] In this embodiment, if the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include any two of high level, rising, falling and entering tones, if there is one first Chinese character with a modern tone of falling in the first Chinese character group, and there are two or more first Chinese characters with modern tones of high level and / or rising, then modify the coda of the Middle Chinese rhyme of the first Chinese character with a modern tone of falling to the first preset character d or b or g, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of falling as the pinyin string corresponding to the first Chinese character with a modern tone of falling. Sort the two or more first Chinese characters with modern tones of high level and / or rising in ascending order according to the number of strokes, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the second-ranked first Chinese character to the first preset string tt or pp or ck, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the second-ranked first Chinese character as the string corresponding to the second-ranked first Chinese character; if there is one first Chinese character with a modern tone of rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of high level and / or rising, then modify the coda of the Middle Chinese rhyme of the first Chinese character with a modern tone of rising to the first preset string tt or pp or ck, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of rising as the pinyin string corresponding to the first Chinese character with a modern tone of rising. Sort the two or more first Chinese characters with modern tones of high level and / or rising in ascending order according to the number of strokes, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the second-ranked first Chinese character to the first preset character d or b or g, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the second-ranked first Chinese character as the string corresponding to the second-ranked first Chinese character;If there is one or more first Chinese characters in the first Chinese character group whose modern tones are high level or rising tone, and there are two or more first Chinese characters whose modern tones are falling tone, then the string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character with a modern tone of high level or rising tone is used as the pinyin string corresponding to the first Chinese character with a modern tone of high level or rising tone. The two or more first Chinese characters with a modern tone of falling tone are sorted in ascending order according to the number of strokes. The rhyme tail of the Middle Chinese final of the first Chinese character ranked first is modified to the first preset character d or b or g, and the string formed by the Middle Chinese initial of the first Chinese character ranked first and the modified Middle Chinese final is used as the pinyin string corresponding to the first Chinese character ranked first. The rhyme tail of the Middle Chinese final of the second first Chinese character is modified to the first preset string tt or pp or ck, and the string formed by the Middle Chinese initial of the second first Chinese character and the modified Middle Chinese final is used as the pinyin string corresponding to the second first Chinese character. If there is one first Chinese character in the first Chinese character group whose modern tone is departing tone, and there are two or more first Chinese characters whose modern tones are falling tone, then the rhyme tail of the Middle Chinese final of the first Chinese character with a modern tone of departing tone is modified to the first preset string tt or pp or ck, and the string formed by the Middle Chinese initial of the first Chinese character with a modern tone of departing tone and the modified Middle Chinese final is used as the pinyin string corresponding to the first Chinese character with a modern tone of departing tone. The two or more first Chinese characters with a modern tone of falling tone are sorted in ascending order according to the number of strokes. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character ranked first is used as the pinyin string corresponding to the first Chinese character ranked first. The rhyme tail of the Middle Chinese final of the second first Chinese character is modified to the first preset character d or b or g, and the string formed by the Middle Chinese initial of the second first Chinese character and the modified Middle Chinese final is used as the string corresponding to the second first Chinese character.
[0110] For example, the first Chinese character group includes three first Chinese characters, ge, and shea, and the Middle Chinese initial consonant of the three first Chinese characters, ge, and shea is k, the Middle Chinese final vowel is ak, and the Middle Chinese tone is entering tone. In addition, the three first Chinese characters, ge, and shea in the first Chinese character group include two types, yinping or yangping and departing tone, among which yinping and yangping are modern tones, the modern tones of "ge" and "shea" are yinping or yangping, and the modern tone of "ge" is departing tone. Therefore, the final consonant of "ge" is modified to the first preset character g, and the Middle Chinese initial consonant k of "ge" and the modified Middle Chinese final vowel ag constitute the character string kag, as the pinyin string corresponding to "各", sort "阁" and "搁" with modern tones of yinping or yangping in forward order according to the number of strokes from least to most, and use the string kak composed of the Middle Chinese initial consonant k and the Middle Chinese final ak of the first "阁" as the pinyin string corresponding to "阁", modify the final k of the Middle Chinese final of the second "搁" to ck, and use the string kack composed of the Middle Chinese initial consonant k and the modified Middle Chinese final ack of the second "搁" as the pinyin string corresponding to "搁".
[0111] In this embodiment, steps S1216 and S1217 can be executed after steps S1211 to S1215, or before steps S1211 to S1215. The specific execution order is, if the specific conditions in the steps are met, then the steps that meet the conditions are specifically executed.
[0112] As an implementation mode, in the embodiment of the present application, according to the type of the Chinese initial consonant of each first Chinese character and the first preset rule, the character strings composed of the Chinese initial consonant and the Chinese final consonant of each first Chinese character are processed respectively to obtain the pinyin character string corresponding to each first Chinese character in the first Chinese character group, including:
[0113] If the Chinese initial consonant of the first Chinese character in the first Chinese character group is fully voiced, then a second preset character is added after the Chinese initial consonant of the first Chinese character that meets the first preset rule in the first Chinese character group, and the character string consisting of the added Chinese initial consonant and the Chinese final consonant of the first Chinese character that meets the first preset rule is used as the pinyin character string corresponding to the first Chinese character that meets the first preset rule, and the character string consisting of the Chinese initial consonant and the Chinese final consonant of the first Chinese character that does not meet the first preset rule in the first Chinese character group is used as the pinyin character string corresponding to the first Chinese character that does not meet the first preset rule;
[0114] In this embodiment, the second preset character is a pre-set character, the second preset character may be h, the first preset rule may be the character with the most strokes, or having radicals, or not being a common character, if the Chinese initial consonant of the first Chinese character in the first Chinese character group is one of b, d, dr, z, zr, zj, and g, or if the Chinese initial consonant of the first Chinese character in the first Chinese character group is one of b, d, dr, z, zr, zj, g, zs, zsr, zsj, and gh, then the character with the most strokes in the first Chinese character group is selected. h is added after the Chinese initial consonant of the first Chinese character, and the string consisting of the Chinese initial consonant after adding h and the Chinese final vowel of the first Chinese character with the largest number of strokes is used as the pinyin string corresponding to the first Chinese character with the largest number of strokes; the string consisting of the Chinese initial consonant and the Chinese final vowel of the first Chinese character with fewer strokes in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character with fewer strokes; if two or more first Chinese characters in the first Chinese character group have the same number of strokes, the Chinese initial consonant of the first Chinese character with radicals is selected in the first Chinese character group. h is added at the end, and the string consisting of the Chinese initial consonant and the Chinese final vowel of the first Chinese character with radical after h is added is used as the pinyin string corresponding to the first Chinese character with radical, and the string consisting of the Chinese initial consonant and the Chinese final vowel of the first Chinese character without radical in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character without radical; if two or more first Chinese characters in the first Chinese character group have no radical, then h is added after the Chinese initial consonant of the first Chinese character that is not a common character in the first Chinese character group, and the added Chinese initial consonant and the Chinese final vowel are used as the pinyin string corresponding to the first Chinese character without radical. The character string consisting of the Middle Chinese vowels of the first Chinese character of a commonly used character is used as the pinyin character string corresponding to the first Chinese character that is not a commonly used character, and the character string consisting of the Middle Chinese initial consonant and the Middle Chinese finals of the first Chinese character of a commonly used character in the first Chinese character group is used as the pinyin character string corresponding to the first Chinese character of the commonly used character; if the three first preset rules of the largest number of strokes, or the presence of radicals, or the non-common character, are unable to distinguish the first Chinese characters in the first Chinese character group, then the first Chinese characters in the first Chinese character group can be distinguished according to their shapes or other methods.
[0115] For example, the first Chinese character group includes two first Chinese characters, "平" and "评", whose Middle Chinese initial consonant is b and Middle Chinese final vowel is ieng. Since the number of strokes of "评" is more than that of "平", h is added after the Middle Chinese initial consonant b of "评", and the character string bhieng composed of the added Middle Chinese initial consonant bh and the Middle Chinese final vowel ieng of "评" is used as the pinyin character string corresponding to "评", and the character string bieng composed of the Middle Chinese initial consonant b of "平" and the Middle Chinese final vowel ieng is used as the pinyin character string corresponding to "平".
[0116] If the Middle Chinese initial of the first Chinese character in the first group of Chinese characters is a voiceless sonorant, then add a third preset character in front of the Middle Chinese initial of the first Chinese character with a modern tone of high level in the first group of Chinese characters or the first Chinese character that conforms to the first preset rule, and use the string formed by the added Middle Chinese initial and the Middle Chinese final of the first Chinese character with a modern tone of high level or the first Chinese character that conforms to the first preset rule as the pinyin string corresponding to the first Chinese character with a modern tone of high level or the first Chinese character that conforms to the first preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character with a modern tone other than high level or the first Chinese character that does not conform to the first preset rule in the first group of Chinese characters as the pinyin string corresponding to the first Chinese character with a modern tone other than high level or the first Chinese character that does not conform to the first preset rule;
[0117] In this embodiment, the third preset character is a pre-set character, and the third preset character can be "q". If the Middle Chinese initial of the first Chinese character in the first Chinese character group is "m", "n", "nr", "nj", "ng", "j", or "l", and there is a first Chinese character in the first Chinese character group with a modern Chinese pronunciation in the yin tone (only the high level tone in Mandarin), then in the first Chinese character group, "q" is added in front of the Middle Chinese initial of the first Chinese character with a modern Chinese pronunciation in the yin tone (high level tone in Mandarin). The string formed by the Middle Chinese initial after adding "q" and the Middle Chinese final of the first Chinese character with a modern Chinese pronunciation in the yin tone is used as the pinyin string corresponding to the first Chinese character with a modern Chinese pronunciation in the yin tone. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character with a modern Chinese pronunciation in the yang tone (or the high rising tone in modern tones) in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character with a modern Chinese pronunciation in the yang tone. If there is no first Chinese character with a modern Chinese pronunciation in the yin tone in the first Chinese character group, then in the first Chinese character group, "q" is added in front of the Middle Chinese initial of the first Chinese character with the most strokes. The string formed by the Middle Chinese initial after adding "q" and the Middle Chinese final of the first Chinese character with the most strokes is used as the pinyin string corresponding to the first Chinese character with the most strokes. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character with fewer strokes in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character with fewer strokes. If there is no first Chinese character with a modern Chinese pronunciation in the yin tone in the first Chinese character group and two or more first Chinese characters in the first Chinese character group have the same number of strokes, then in the first Chinese character group, "q" is added in front of the Middle Chinese initial of the first Chinese character with a radical. The string formed by the Middle Chinese initial after adding "q" and the Middle Chinese final of the first Chinese character with a radical is used as the pinyin string corresponding to the first Chinese character with a radical. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character without a radical in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character without a radical. If there is no first Chinese character with a modern Chinese pronunciation in the yin tone in the first Chinese character group and two or more first Chinese characters in the first Chinese character group have no radicals, then in the first Chinese character group, "q" is added in front of the Middle Chinese initial of the first Chinese character that is not a commonly used character. The string formed by the Middle Chinese initial after adding "q" and the Middle Chinese final of the first Chinese character that is not a commonly used character is used as the pinyin string corresponding to the first Chinese character that is not a commonly used character. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character that is a commonly used character in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character that is a commonly used character. If the rules of modern Chinese pronunciation in the yin tone, or the most strokes, or having a radical, or not being a commonly used character cannot distinguish each first Chinese character in the first Chinese character group, then the first Chinese characters in the first Chinese character group can be distinguished according to their glyphs or other methods.
[0118] For example, the first Chinese character group includes two first Chinese characters, Lao and Lao, whose Middle Chinese initial consonant is l and whose Middle Chinese final vowel is au. Since the tone of "Lao" in modern Chinese is yinping, q is added after the Middle Chinese initial consonant l of "Lao", and the character string qlau composed of the added Middle Chinese initial consonant ql and the Middle Chinese final vowel au of "Lao" is used as the pinyin character string corresponding to "Lao". Since the tone of "Lao" in modern Chinese is yangping, the character string lau composed of the Middle Chinese initial consonant l and the Middle Chinese final vowel au of "Lao" is used as the pinyin character string corresponding to "Lao".
[0119] For example, the first Chinese character group includes the two first Chinese characters, Lang and Lang, whose Middle Chinese initial consonant is l and Middle Chinese final vowel is ang. Both characters have yangping tone in modern Mandarin Chinese. Since "狼" has more strokes, q is added in front of the Middle Chinese initial consonant l of "狼", and the character string qlang composed of the added Middle Chinese initial consonant ql and the Middle Chinese final vowel ang of "狼" is used as the pinyin character string corresponding to "狼". Since "郎" has fewer strokes, the character string lang composed of the Middle Chinese initial consonant l and the Middle Chinese final vowel ang of "郎" is used as the pinyin character string corresponding to "郎".
[0120] In this application, Middle Chinese entering tone characters are preferentially differentiated by using the method of dealing with rhyme endings. However, for Middle Chinese entering tone characters that have not been fully differentiated through the aforementioned implementation method (sub-steps S1211 - S1217 of step S121), that is, for the first Chinese characters in a specific first Chinese character group that still have the same rhyme endings after going through each step of sub-steps S1211 - S1217 of S121, if the Middle Chinese initial consonant of the first Chinese character is fully voiced or semi-voiced, then the implementation method for fully voiced and semi-voiced initial consonants can be further used for processing. There are specifically two cases: The first case is that after implementing steps S1211 - S1215 and S1217, the entering tone rhyme endings of all the first Chinese characters contained in the specific first Chinese character group have been assigned among their Middle Chinese original forms (corresponding to modern high and rising tones), the first preset character (corresponding to modern falling tones), and the first preset character string (corresponding to modern rising tones). Then, the secondary first Chinese character group of the first Chinese characters in the specific first Chinese character group that still have the same rhyme endings after steps S1211 - S1215 and step S1217 is processed according to the rules for fully voiced initial consonant characters and semi-voiced initial consonant characters, that is, for each first Chinese character in the secondary first Chinese character group that conforms to the first preset rule, add the second preset character after the initial consonant (if it is a fully voiced initial consonant entering tone character) or add the third preset character before its initial consonant (if it is a semi-voiced initial consonant entering tone character); The second case is that after being processed through step S1216, for the first Chinese characters ranked 4th, 5th, and 6th according to the second preset rule, the second preset character can be added after the Middle Chinese initial consonant of the first Chinese character (if it is a fully voiced initial consonant entering tone character) or the third preset character can be added before the Middle Chinese initial consonant of the first Chinese character (if it is a semi-voiced initial consonant entering tone character), and then the rhyme ending is processed according to step S1216, that is, modify the Middle Chinese rhyme ending of the first Chinese character ranked first according to the second preset rule to remain in its original form, modify the rhyme ending of the second ranked first Chinese character to the first preset character, and modify the rhyme ending of the third ranked first Chinese character to the first preset character string.
[0121] If the Middle Chinese initial consonant of the first Chinese character in the first Chinese character group is fully voiceless or semi-voiceless, then the string formed by the Middle Chinese initial consonant and the Middle Chinese final of each first Chinese character is used as the pinyin string corresponding to each first Chinese character in the first Chinese character group.
[0122] As an implementation manner, in the embodiments of this application, according to the types of the Middle Chinese finals and Middle Chinese tones of each first Chinese character, the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each first Chinese character are processed separately to obtain the pinyin strings corresponding to each first Chinese character in the first Chinese character group, including:
[0123] If the Middle Ancient rhyme of the first Chinese character in the first Chinese character group has no rhyme tail, select the current first Chinese character from the first Chinese character group. If the Middle Ancient tone of the current first Chinese character is the level tone, then use the string formed by the Middle Ancient initial and the Middle Ancient rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Ancient tone of the current first Chinese character is the rising tone, then add the fourth preset character after the Middle Ancient rhyme of the current first Chinese character, and use the string formed by the Middle Ancient initial of the current first Chinese character and the augmented Middle Ancient rhyme as the pinyin string corresponding to the current first Chinese character. If the Middle Ancient tone of the current first Chinese character is the falling tone, then add the fifth preset character after the Middle Ancient rhyme of the current first Chinese character, and use the string formed by the Middle Ancient initial of the current first Chinese character and the augmented Middle Ancient rhyme as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first Chinese character group are obtained;
[0124] In this embodiment, the fourth preset character and the fifth preset character are preset characters. The fourth preset character can be q, and the fifth preset character can be h. If the Middle Ancient rhyme of the first Chinese character in the first Chinese character group has no rhyme tail, that is, if the Middle Ancient rhyme of the first Chinese character in the first Chinese character group is one of a, u, e, i, then select the current first Chinese character from the first Chinese character group. If the Middle Ancient tone of the current first Chinese character is the level tone, then use the string formed by the Middle Ancient initial and the Middle Ancient rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Ancient tone of the current first Chinese character is the rising tone, then add q after the Middle Ancient rhyme of the current first Chinese character, and use the string formed by the Middle Ancient initial of the current first Chinese character and the Middle Ancient rhyme augmented with q as the pinyin string corresponding to the current first Chinese character. If the Middle Ancient tone of the current first Chinese character is the falling tone, then add h after the Middle Ancient rhyme of the current first Chinese character, and use the string formed by the Middle Ancient initial of the current first Chinese character and the Middle Ancient rhyme augmented with h as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first Chinese character group are obtained.
[0125] For example, as shown in Table 3 below, if the Chinese final of the first Chinese character in the first Chinese character group is u, the first Chinese character group includes three first Chinese characters, namely, 都, 堵, and 蠹, whose Chinese initial consonant is t and Chinese final consonant is u, "都" is selected from the first Chinese character group as the current first Chinese character. Since the Chinese tone of "都" is a level tone, the character string tu consisting of the Chinese initial consonant t and the Chinese final consonant u of "都" is used as the pinyin character string corresponding to "都". "堵" is continued to be selected from the first Chinese character group as the current first Chinese character. Since the Chinese tone of "堵" is a rising tone, in Add q after the Middle Chinese vowel u of "du", and use the string tuq consisting of the Middle Chinese initial consonant t of "du" and the Middle Chinese final consonant uq after adding q after u as the pinyin string corresponding to "du", and continue to select "蠹" from the first Chinese character group as the current first Chinese character. Since the Middle Chinese tone of "蠹" is rising, add h after the Middle Chinese final consonant u of "蠹", and use the string tuh consisting of the Middle Chinese initial consonant t of "蠹" and the Middle Chinese final consonant uh after adding h after u as the pinyin string corresponding to "蠹", as shown below:
[0126] Table 3
[0127]
[0128] If the final rhyme of the Middle Ages vowel of the first Chinese character in the first Chinese character group is a vowel final rhyme (i or u), then select the current first Chinese character from the first Chinese character group, if the Middle Ages tone of the current first Chinese character is a level tone, then use the Middle Ages initial consonant and the Middle Ages final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, if the Middle Ages tone of the current first Chinese character is a rising tone, then modify the final rhyme of the Middle Ages vowel of the current first Chinese character to a sixth preset character, and use the Middle Ages initial consonant and the modified Middle Ages final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, if the Middle Ages tone of the current first Chinese character is a falling tone, then modify the final rhyme of the Middle Ages vowel of the current first Chinese character to a seventh preset character, and use the Middle Ages initial consonant and the modified Middle Ages final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to the first Chinese characters in the first Chinese character group are obtained;
[0129] In this embodiment, if the Middle Chinese rhyme of the first Chinese character in the first Chinese character group is a compound rhyme and has a rhyme tail, and the rhyme tail is a vowel rhyme tail, that is, the Middle Chinese rhyme is one of ai, rai, uai, ruai, ii, ioi, yi, yoi, au, rau, ieu, eu, then select the current first Chinese character from the first Chinese character group. If the Middle Chinese tone of the current first Chinese character is a level tone, then the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to the sixth preset character, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character. If the modern tone of the current first Chinese character is a falling tone, then the rhyme tail of the Middle Chinese rhyme of the current first Chinese character is modified to the seventh preset character, and the string formed by the Middle Chinese initial of the current first Chinese character and the modified Middle Chinese rhyme is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first Chinese character group are obtained. Among them, the sixth preset character and the seventh preset character are preset characters, and the specific characters of the sixth preset character and the seventh preset character can be set correspondingly according to the specific Middle Chinese rhyme. For example, when the Middle Chinese rhyme is ai, the sixth preset character can be e, and the seventh preset character can be y or j; when the Middle Chinese rhyme is au, the sixth preset character can be v, and the seventh preset character can be w.
[0130] For example, as shown in Table 4 below, if the final rhyme of the Middle Ages vowel of the first Chinese character in the first Chinese character group is the final rhyme i, the first Chinese character group includes four first Chinese characters, namely, guess, pick, vegetable, and cai, whose Middle Ages initial consonant is ch and whose Middle Ages final rhyme is ai, "guess" is selected from the first Chinese character group as the current first Chinese character. Since the Middle Ages tone of "guess" is a level tone, the character string chai composed of the Middle Ages initial consonant ch and the Middle Ages final rhyme ai of guess is used as the pinyin character string corresponding to "guess". "guess" is further selected from the first Chinese character group as the current first Chinese character. Since the Middle Ages tone of "picking" is a rising tone, the final rhyme i of the Middle Ages final rhyme of pick is modified to Change it to e, and use the string chae composed of the Middle Chinese initial consonant ch of "采" and the modified Middle Chinese final ae as the pinyin string corresponding to "采", and continue to select "菜" from the first Chinese character group as the current first Chinese character. Since the Middle Chinese tone of "菜" is the falling tone, the final rhyme i of the Middle Chinese final of "菜" is modified to y, and the string chay composed of the Middle Chinese initial consonant ch of "菜" and the modified Middle Chinese final ay is used as the pinyin string corresponding to "菜", and continue to select "蔡" from the first Chinese character group as the current first Chinese character. Since the Middle Chinese tone of "蔡" is the special falling tone (i.e., Taiyun), the final rhyme of the Middle Chinese final of "蔡" is changed to Modify to j, and use the string chaj composed of the Middle Chinese initial consonant ch of Cai and the modified Middle Chinese final aj as the pinyin string corresponding to "Cai";; If the final consonant of the Middle Chinese final of the first Chinese character in the first Chinese character group is u final and the Middle Chinese final is au, the first Chinese character group includes the three first Chinese characters kau高, kau槁, and kau告 whose Middle Chinese initial consonant is k and Middle Chinese final is au, select "高" from the first Chinese character group as the current first Chinese character, and since the Middle Chinese tone of 高 is level, use the string kau composed of the Middle Chinese initial consonant k of 高 and the Middle Chinese final au as the pinyin character corresponding to "高" String, continue to select "槁" from the first Chinese character group as the current first Chinese character, because the Middle Ages tone of 槁 is rising tone, the final vowel u of the Middle Ages vowel of 槁 is modified to v, and the string kav composed of the Middle Ages initial consonant k of 槁 and the modified Middle Ages vowel av is used as the pinyin string corresponding to "槁", and continue to select "告" from the first Chinese character group as the current first Chinese character, because the Middle Ages tone of 告 is falling tone, the final vowel u of the Middle Ages vowel of 告 is modified to w, and the string kaw composed of the Middle Ages initial consonant k of 告 and the modified Middle Ages vowel aw is used as the pinyin string corresponding to "告", as shown in the following table:
[0131] Table 4
[0132]
[0133]
[0134] If the coda of the Middle Chinese rhyme of the first Chinese character in the first Chinese character group is a nasal coda, then select the current first Chinese character from the first Chinese character group. If the Middle Chinese tone of the current first Chinese character is a level tone, then use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to a second preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a falling tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to a third preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first Chinese character group are obtained.
[0135] In this embodiment, if the Middle Chinese rhyme of the first Chinese character in the first Chinese character group has a coda and the coda is a nasal coda, that is, the coda is an m coda, an n coda, and an ng coda. Among them, the Middle Chinese rhymes with an m coda include am, ram, rem, iem, iam, em, yam, om, im, and the Middle Chinese rhymes with an n coda include an, ran 、ren, ien, ian, en, uan, ruan, ruen, yen, yan, uen, on, in, ion, uon, yn, yon, The Middle Chinese finals with the ng coda include ang, uang, iang, yang, rang, reng, ieng, eng, ruang, rueng, yeng, ueng, ong, uong, ing, ung, uung, yung, iung, rung. The second preset string and the third preset string are preset strings. The second preset string can be mm or nn or nk, and the third preset string can be hm or hn or hg. If the coda of the Middle Chinese finals of the first Chinese character in the first group of Chinese characters is the m coda, select the current first Chinese character from the first group of Chinese characters. If the Middle Chinese tone of the current first Chinese character is the level tone, the string formed by the Middle Chinese initial and the Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is the rising tone, modify the coda of the Middle Chinese finals of the current first Chinese character to mm, and the string formed by the Middle Chinese initial and the modified Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is the falling tone, modify the coda of the Middle Chinese finals of the current first Chinese character to hm, and the string formed by the Middle Chinese initial and the modified Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first group of Chinese characters are obtained; If the coda of the Middle Chinese finals of the first Chinese character in the first group of Chinese characters is the n coda, select the current first Chinese character from the first group of Chinese characters. If the Middle Chinese tone of the current first Chinese character is the level tone, the string formed by the Middle Chinese initial and the Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is the rising tone, modify the coda of the Middle Chinese finals of the current first Chinese character to nn, and the string formed by the Middle Chinese initial and the modified Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is the falling tone, modify the coda of the Middle Chinese finals of the current first Chinese character to hn, and the string formed by the Middle Chinese initial and the modified Middle Chinese finals of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first group of Chinese characters are obtained;If the final vowel of the Chinese vowel of the first Chinese character in the first Chinese character group is ng, the current first Chinese character is selected from the first Chinese character group. If the Chinese tone of the current first Chinese character is Pingsheng, the string consisting of the Chinese initial consonant and the Chinese final vowel of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Chinese tone of the current first Chinese character is Shangsheng, the final vowel of the Chinese vowel of the current first Chinese character is modified to nk, and the string consisting of the Chinese initial consonant and the modified Chinese final vowel of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character. If the Chinese tone of the current first Chinese character is Qusheng, the final vowel of the Chinese vowel of the current first Chinese character is modified to hg, and the string consisting of the Chinese initial consonant and the modified Chinese final vowel of the current first Chinese character is used as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to the first Chinese characters in the first Chinese character group are obtained. ;
[0136] For example, as shown in Table 5 below, if the first Chinese character in the first Chinese character group has a Chinese initial consonant of k and a Chinese final consonant of im, that is, the three first Chinese characters of 今, 锦, and 禁, and the Chinese initial consonant of the first Chinese character in the first Chinese character group is im, that is, the final consonant of m, the current first Chinese character "今" is selected from the first Chinese character group. Since the Chinese tone of "今" is a level tone, the string kim composed of the Chinese initial consonant k and the Chinese final consonant im of "今" is used as the pinyin string corresponding to "今". Continue to select "锦" from the first Chinese character group as the current first Chinese character. Since the Chinese tone of "锦" is a rising tone, the string "锦" is used as the pinyin string corresponding to "今". The final m of the Chinese vowel im of "jin" is changed to mm, and the string kimm composed of the Chinese initial consonant k of "jin" and the modified Chinese vowel imm is used as the pinyin string corresponding to "jin", and "jin" is selected from the first Chinese character group as the current first Chinese character. Since the Chinese tone of "jin" is falling tone, the final m of the Chinese vowel im of "jin" is changed to hm, and the string kihm composed of the Chinese initial consonant k of "jin" and the modified Chinese vowel ihm is used as the pinyin string corresponding to "jin".
[0137] If the Middle Chinese initial of the first Chinese character in the first group of Chinese characters is p and the Middle Chinese rhyme is ang, that is, the three first Chinese characters "bang", "bǎng", and "bàng" with the final n, select "bang" as the current first Chinese character from the first group of Chinese characters. Since the Middle Chinese tone of "bang" is the level tone, the string pang formed by the Middle Chinese initial p and the Middle Chinese rhyme ang of "bang" is used as the corresponding pinyin string of "bang". Then continue to select "bǎng" as the current first Chinese character from the first group of Chinese characters. Since the Middle Chinese tone of "bǎng" is the rising tone, modify the final ng of the Middle Chinese rhyme ang of "bǎng" to nk, and the string pank formed by the Middle Chinese initial p of "bǎng" and the modified Middle Chinese rhyme ank is used as the corresponding pinyin string of "bǎng". Then continue to select "bàng" as the current first Chinese character from the first group of Chinese characters. Since the Middle Chinese tone of "bàng" is the falling tone, modify the final ng of the Middle Chinese rhyme ang of "bàng" to hg, and the string pahg formed by the Middle Chinese initial p of "bàng" and the modified Middle Chinese rhyme ahg is used as the corresponding pinyin string of "bàng". Specifically, it is as follows:
[0138] Table 5
[0139]
[0140] As Figure 2 shown, the embodiment of the present application also provides a conversion method, including:
[0141] S21. Screen each Chinese character according to the Middle Chinese initial and Middle Chinese rhyme of the Middle Chinese pinyin of each Chinese character to obtain multiple first groups of Chinese characters and multiple second Chinese characters with different Middle Chinese initials or Middle Chinese rhymes. Among them, each first group of Chinese characters includes multiple first Chinese characters with the same Middle Chinese initial and Middle Chinese rhyme;
[0142] S22. Process the strings formed by the Middle Chinese initial and Middle Chinese rhyme of each first Chinese character in each first group of Chinese characters respectively according to the Middle Chinese initial, Middle Chinese rhyme, Middle Chinese tone and modern tone type of each first Chinese character in each first group of Chinese characters and the first preset rule to obtain the corresponding pinyin strings of each first Chinese character in each first group of Chinese characters;
[0143] S23. Use the strings formed by the Middle Chinese initial and Middle Chinese rhyme of each second Chinese character as the corresponding pinyin strings of the second Chinese characters;
[0144] S24. Establish a Chinese character-pinyin comparison table according to each first Chinese character and the corresponding pinyin string, and each second Chinese character and the corresponding pinyin string;
[0145] S25. Receive the Chinese character or word or text to be converted, and the conversion instruction;
[0146] In this embodiment, the text to be converted may be a sentence to be converted, or a paragraph to be converted, or a chapter to be converted.
[0147] S26. Based on the conversion instruction, according to the Chinese characters to be converted or the words to be converted or the text to be converted, a Chinese character pinyin comparison table is searched to obtain and display a target pinyin string corresponding to the Chinese characters to be converted or the words to be converted or the text to be converted.
[0148] In this embodiment, based on the conversion instruction, a Chinese character-pinyin comparison table can be queried according to the Chinese characters to be converted, or the words to be converted, or a sentence to be converted, or a paragraph to be converted, or a chapter to be converted, to obtain and display the target pinyin string corresponding to the Chinese characters to be converted, or the words to be converted, or a sentence to be converted, or a paragraph to be converted, or a chapter to be converted.
[0149] like Figure 3 As shown, the embodiment of the present application also provides an input system, including:
[0150] The first screening module 101 is used to screen each Chinese character according to the Middle Chinese initial consonant and the Middle Chinese final vowel of the Middle Chinese Pinyin of each Chinese character, and obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese final vowels, wherein each first Chinese character group includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and the same Middle Chinese final vowel;
[0151] The first processing module 102 is used to process the character strings composed of the Middle Ages initial consonants and the Middle Ages final consonants of each first Chinese character in each first Chinese character group according to the types of the Middle Ages initial consonants, the Middle Ages final consonants, the Middle Ages tones and the modern tones of each first Chinese character in each first Chinese character group and the first preset rule, so as to obtain the pinyin character strings corresponding to each first Chinese character in each first Chinese character group;
[0152] The second processing module 103 is used to use the character string composed of the Chinese initial consonants and the Chinese finals of each second Chinese character as the pinyin character string corresponding to the second Chinese character;
[0153] Establishing module 104, for establishing a Chinese character pinyin comparison table according to each first Chinese character and the corresponding pinyin string, each second Chinese character and the corresponding pinyin string;
[0154] The first receiving module 105 is used to receive a pinyin string input by a user through a keyboard;
[0155] The first query module 106 is used to query the Chinese character and pinyin comparison table according to the input pinyin string, and obtain and display the target Chinese character or target word corresponding to the input pinyin string.
[0156] like Figure 4As shown, an embodiment of the present application further provides a conversion system, including:
[0157] A second screening module 201, configured to screen each Chinese character according to the Middle Chinese initial consonant and Middle Chinese final of the Middle Chinese Pinyin of each Chinese character, to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals, where each first Chinese character group includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final;
[0158] A third processing module 202, configured to process the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each first Chinese character in each first Chinese character group respectively according to the Middle Chinese initial consonant, Middle Chinese final, Middle Chinese tone, and type of modern tone of each first Chinese character in each first Chinese character group and a first preset rule, to obtain the corresponding Pinyin strings of each first Chinese character in each first Chinese character group;
[0159] A fourth processing module 203, configured to use the string formed by the Middle Chinese initial consonant and Middle Chinese final of each second Chinese character as the corresponding Pinyin string of the second Chinese character;
[0160] A second establishment module 204, configured to establish a Chinese character - Pinyin comparison table according to each first Chinese character and the corresponding Pinyin string, and each second Chinese character and the corresponding Pinyin string;
[0161] A second receiving module 205, configured to receive a Chinese character to be converted, or a word to be converted, or a text to be converted, and a conversion instruction;
[0162] A second query module 206, configured to query the Chinese character - Pinyin comparison table based on the conversion instruction according to the Chinese character to be converted, or the word to be converted, or the text to be converted, and obtain and display the target Pinyin string corresponding to the Chinese character to be converted, or the word to be converted, or the text to be converted.
[0163] As Figure 5 shown, an embodiment of the present application further provides an electronic device, including: a processor 301, a memory 302, and a communication bus 303;
[0164] The communication bus 303 is used to realize the connection and communication between the processor 301 and the memory 302;
[0165] The processor 301 is configured to execute the input program of the storage device stored in the memory 302 to implement the steps of the input method of the storage device as described in any one of the above, or to implement the steps of the conversion method of the storage device as described above.
[0166] The present application also provides a readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the input method of the storage device as described in any one of the above, or implement the steps of the conversion method of the storage device as described above.
[0167] It should be understood that in the present application, if terms such as "system", "device", "unit" and / or "module" are used, they are only a way to distinguish multiple components, elements, parts, portions or assemblies at multiple levels. However, if other terms can achieve the same purpose, they can be replaced by other expressions.
[0168] The embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other.
[0169] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An input method, characterized in that, Including: Screening each of the Chinese characters according to the Middle Chinese initial consonants and Middle Chinese final vowels of the Middle Chinese phonetic spellings of the Chinese characters, to obtain a plurality of first groups of Chinese characters and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese final vowels, wherein each of the first groups of Chinese characters includes a plurality of first Chinese characters with the same Middle Chinese initial consonants and Middle Chinese final vowels; Processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters in each of the first groups of Chinese characters respectively according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and a first preset rule, to obtain the phonetic strings corresponding to each of the first Chinese characters in each of the first groups of Chinese characters; Taking the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the second Chinese characters as the phonetic strings corresponding to the second Chinese characters; Establishing a Chinese character - phonetic alphabet correspondence table according to each of the first Chinese characters and the corresponding phonetic strings, and each of the second Chinese characters and the corresponding phonetic strings; Receiving the phonetic string input by the user through the keyboard; Querying the Chinese character - phonetic alphabet correspondence table according to the input phonetic string, and obtaining and displaying the target Chinese character or target word corresponding to the input phonetic string.
2. The method according to claim 1, characterized in that The processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters in each of the first groups of Chinese characters respectively according to the Middle Chinese initial consonants, Middle Chinese final vowels, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and a first preset rule, to obtain the phonetic strings corresponding to each of the first Chinese characters in each of the first groups of Chinese characters includes: If the Middle Chinese tones of each of the first Chinese characters in the first group of Chinese characters are entering tones, then processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively according to the Middle Chinese final vowels and types of modern tones of each of the first Chinese characters, to obtain the phonetic strings corresponding to each of the first Chinese characters in the first group of Chinese characters; If the Middle Chinese tones of each of the first Chinese characters in the first group of Chinese characters are level tones or rising tones or falling tones, then processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively according to the types of Middle Chinese initial consonants of each of the first Chinese characters and the first preset rule, to obtain the phonetic strings corresponding to each of the first Chinese characters in the first group of Chinese characters, and / or, processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively according to the Middle Chinese final vowels and types of Middle Chinese tones of each of the first Chinese characters, to obtain the phonetic strings corresponding to each of the first Chinese characters in the first group of Chinese characters.
3. The method according to claim 2, characterized in that, The if the Middle Chinese tones of each of the first Chinese characters in the first group of Chinese characters are entering tones, then processing the strings formed by the Middle Chinese initial consonants and Middle Chinese final vowels of each of the first Chinese characters respectively according to the Middle Chinese final vowels and types of modern tones of each of the first Chinese characters, to obtain the phonetic strings corresponding to each of the first Chinese characters in the first group of Chinese characters includes: If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes two first Chinese characters with different modern tones, or the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include three types: high level, rising, and falling, then select the current first Chinese character from the first Chinese character group; If the modern tone of the current first Chinese character is high level or rising, then use the string formed by the Middle Chinese initial and the Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character; If the modern tone of the current first Chinese character is rising, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character; If the modern tone of the current first Chinese character is falling, then modify the coda of the Middle Chinese final of the current first Chinese character to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character; Until the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group are obtained.
4. The method according to claim 2 or 3, characterized in that, If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, then according to the types of the Middle Chinese finals and the modern tones of all the first Chinese characters, process the strings formed by the Middle Chinese initials and the Middle Chinese finals of all the first Chinese characters respectively to obtain the pinyin strings corresponding to all the first Chinese characters in the first Chinese character group, including: If the Middle Chinese tones of all the first Chinese characters in the first Chinese character group are entering tones, and the modern tones of multiple first Chinese characters in the first Chinese character group are the same. If the first Chinese character group includes two first Chinese characters, then sort the two first Chinese characters in the positive order according to the second preset rule. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character ranked first is used as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese final of the first Chinese character ranked second to the first preset character or the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked second is used as the pinyin string corresponding to the first Chinese character ranked second. If the first Chinese character group includes three or more first Chinese characters, then sort the three or more first Chinese characters in the positive order according to the second preset rule. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character ranked first is used as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese final of the first Chinese character ranked second to the first preset character, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked second is used as the pinyin string corresponding to the first Chinese character ranked second. Modify the coda of the Middle Chinese final of the first Chinese character ranked third to the first preset string, and the string formed by the Middle Chinese initial and the modified Middle Chinese final of the first Chinese character ranked third is used as the pinyin string corresponding to the first Chinese character ranked third; If the Middle Chinese tones of the first Chinese characters in the first Chinese character group are entering tones, and the first Chinese character group includes three or more first Chinese characters and the modern tones of the first Chinese characters in the first Chinese character group include any two of high level, rising, falling, and entering tones, if there is a first Chinese character with a modern tone of falling or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of high level and / or rising, then modify the coda of the Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising to the first preset character or the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character with a modern tone of falling or rising as the pinyin string corresponding to the first Chinese character with a modern tone of falling or rising. Arrange two or more first Chinese characters with modern tones of high level and / or rising in positive order according to the second preset rule, and use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string or the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the string corresponding to the first Chinese character ranked second; if there is one or more first Chinese characters with modern tones of high level and / or rising in the first Chinese character group, and there are two or more first Chinese characters with modern tones of falling, then use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the first Chinese character with a modern tone of high level and / or rising as the pinyin string corresponding to the first Chinese character with a modern tone of high level and / or rising. Arrange two or more first Chinese characters with modern tones of falling in positive order according to the second preset rule, modify the coda of the Middle Chinese rhyme of the first Chinese character ranked first to the first preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the coda of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the first Chinese character ranked second as the pinyin string corresponding to the first Chinese character ranked second;If there is a first Chinese character in the first Chinese character group with a modern tone of the rising tone, and there are two or more first Chinese characters with a modern tone of the falling tone, then modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character with a modern tone of the rising tone to the first preset string, and use the string formed by the Middle Chinese initial consonant of the first Chinese character with a modern tone of the rising tone and the modified Middle Chinese rhyme as the pinyin string corresponding to the first Chinese character with a modern tone of the rising tone. Sort two or more first Chinese characters with a modern tone of the falling tone in the positive order according to the second preset rule. Use the string formed by the Middle Chinese initial consonant and the Middle Chinese rhyme of the first Chinese character ranked first as the pinyin string corresponding to the first Chinese character ranked first. Modify the rhyme tail of the Middle Chinese rhyme of the first Chinese character ranked second to the first preset character, and use the string formed by the Middle Chinese initial consonant of the first Chinese character ranked second and the modified Middle Chinese rhyme as the string corresponding to the first Chinese character ranked second.
5. The method according to claim 2, wherein Processing the strings formed by the Middle Chinese initials and Middle Chinese finals of each of the first Chinese characters according to the type of the Middle Chinese initials of each of the first Chinese characters and the first preset rule to obtain the pinyin strings corresponding to each of the first Chinese characters in the first Chinese character group includes: If the Middle Chinese initial of the first Chinese character in the first Chinese character group is a fully voiced stop, add a second preset character after the Middle Chinese initial of the first Chinese character that conforms to the first preset rule in the first Chinese character group. The string formed by the added Middle Chinese initial and the Middle Chinese final of the first Chinese character that conforms to the first preset rule is used as the pinyin string corresponding to the first Chinese character that conforms to the first preset rule. The string formed by the Middle Chinese initial and the Middle Chinese final of the first Chinese character that does not conform to the first preset rule in the first Chinese character group is used as the pinyin string corresponding to the first Chinese character that does not conform to the first preset rule; If the Middle Chinese initial of the first Chinese character in the first Chinese character group is a voiceless sonorant, then add a third preset character in front of the Middle Chinese initial of the first Chinese character with a modern tone of high level in the first Chinese character group or the first Chinese character that conforms to the first preset rule, and use the string formed by the added Middle Chinese initial and the Middle Chinese final of the first Chinese character with a modern tone of high level or the first Chinese character that conforms to the first preset rule as the pinyin string corresponding to the first Chinese character with a modern tone of high level or the first Chinese character that conforms to the first preset rule, and use the string formed by the Middle Chinese initial and Middle Chinese final of the first Chinese character with a modern tone other than high level or the first Chinese character that does not conform to the first preset rule in the first Chinese character group as the pinyin string corresponding to the first Chinese character with a modern tone other than high level or the first Chinese character that does not conform to the first preset rule; If the Middle Chinese initial of the first Chinese character in the first Chinese character group is a voiceless stop or voiceless aspirated stop, then use the string formed by the Middle Chinese initial and Middle Chinese final of each first Chinese character as the pinyin string corresponding to each first Chinese character in the first Chinese character group.
6. The method according to claim 2, characterized in that, The processing of the strings formed by the Middle Chinese initial and Middle Chinese final of each first Chinese character according to the type of the Middle Chinese final and Middle Chinese tone of each first Chinese character to obtain the pinyin strings corresponding to each first Chinese character in the first Chinese character group includes: If the Middle Chinese final of the first Chinese character in the first Chinese character group has no coda, select the current first Chinese character from the first Chinese character group. If the Middle Chinese tone of the current first Chinese character is a level tone, then use the string formed by the Middle Chinese initial and Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, then add a fourth preset character after the Middle Chinese final of the current first Chinese character, and use the string formed by the Middle Chinese initial and the added Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a falling tone, then add a fifth preset character after the Middle Chinese final of the current first Chinese character, and use the string formed by the Middle Chinese initial and the added Middle Chinese final of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each first Chinese character in the first Chinese character group are obtained; If the coda of the Middle Chinese rhyme of the first Chinese character in the first group of Chinese characters is a vowel coda, select the current first Chinese character from the first group of Chinese characters. If the Middle Chinese tone of the current first Chinese character is a level tone, use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to the sixth preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a falling tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to the seventh preset character, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each of the first Chinese characters in the first group of Chinese characters are obtained; If the coda of the Middle Chinese rhyme of the first Chinese character in the first group of Chinese characters is a nasal coda, select the current first Chinese character from the first group of Chinese characters. If the Middle Chinese tone of the current first Chinese character is a level tone, use the string formed by the Middle Chinese initial and the Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a rising tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to the second preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character. If the Middle Chinese tone of the current first Chinese character is a falling tone, modify the coda of the Middle Chinese rhyme of the current first Chinese character to the third preset string, and use the string formed by the Middle Chinese initial and the modified Middle Chinese rhyme of the current first Chinese character as the pinyin string corresponding to the current first Chinese character, until the pinyin strings corresponding to each of the first Chinese characters in the first group of Chinese characters are obtained.
7. A conversion method, characterized in that, Including: Screen each of the Chinese characters according to the Middle Chinese initials and Middle Chinese rhymes of their Middle Chinese pinyins, to obtain multiple first groups of Chinese characters and multiple second Chinese characters with different Middle Chinese initials or Middle Chinese rhymes, where each of the first groups of Chinese characters includes multiple first Chinese characters with the same Middle Chinese initial and Middle Chinese rhyme; Process the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the first Chinese characters in each of the first groups of Chinese characters respectively according to the Middle Chinese initials, Middle Chinese rhymes, Middle Chinese tones and types of modern tones of each of the first Chinese characters in each of the first groups of Chinese characters and the first preset rule, to obtain the pinyin strings corresponding to each of the first Chinese characters in each of the first groups of Chinese characters; Use the strings formed by the Middle Chinese initials and Middle Chinese rhymes of each of the second Chinese characters as the pinyin strings corresponding to the second Chinese characters; Establish a Chinese character-pinyin comparison table according to each of the first Chinese characters and their corresponding pinyin strings, and each of the second Chinese characters and their corresponding pinyin strings; Receive the Chinese characters, words or texts to be converted, and conversion instructions; Based on the conversion instruction, query the Chinese character pinyin look-up table according to the Chinese character to be converted, the word to be converted, or the text to be converted, and obtain and display the target pinyin string corresponding to the Chinese character to be converted, the word to be converted, or the text to be converted.
8. An input system, characterized in that, Including: A first screening module, configured to screen each of the Chinese characters according to the Middle Chinese initial consonant and the Middle Chinese final of the Middle Chinese pinyin of each Chinese character, to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals, wherein each of the first Chinese character groups includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final; A first processing module, configured to process the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each of the first Chinese characters in each of the first Chinese character groups respectively according to the Middle Chinese initial consonants, Middle Chinese finals, Middle Chinese tones, and types of modern tones of each of the first Chinese characters in each of the first Chinese character groups and a first preset rule, to obtain the pinyin strings corresponding to each of the first Chinese characters in each of the first Chinese character groups; A second processing module, configured to use the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each of the second Chinese characters as the pinyin strings corresponding to each of the second Chinese characters; A first establishment module, configured to establish a Chinese character pinyin look-up table according to each of the first Chinese characters and the corresponding pinyin strings, and each of the second Chinese characters and the corresponding pinyin strings; A first receiving module, configured to receive the pinyin string input by the user through the keyboard; A first query module, configured to query the Chinese character pinyin look-up table according to the input pinyin string, and obtain and display the target Chinese character or target word corresponding to the input pinyin string.
9. A conversion system, characterized in that, Including: A second screening module, configured to screen each of the Chinese characters according to the Middle Chinese initial consonant and the Middle Chinese final of the Middle Chinese pinyin of each Chinese character, to obtain a plurality of first Chinese character groups and a plurality of second Chinese characters with different Middle Chinese initial consonants or Middle Chinese finals, wherein each of the first Chinese character groups includes a plurality of first Chinese characters with the same Middle Chinese initial consonant and Middle Chinese final; A third processing module, configured to process the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each of the first Chinese characters in each of the first Chinese character groups respectively according to the Middle Chinese initial consonants, Middle Chinese finals, Middle Chinese tones, and types of modern tones of each of the first Chinese characters in each of the first Chinese character groups and a first preset rule, to obtain the pinyin strings corresponding to each of the first Chinese characters in each of the first Chinese character groups; A fourth processing module, configured to use the strings formed by the Middle Chinese initial consonants and Middle Chinese finals of each of the second Chinese characters as the pinyin strings corresponding to each of the second Chinese characters; A second establishment module, configured to establish a Chinese character pinyin look-up table according to each of the first Chinese characters and the corresponding pinyin strings, and each of the second Chinese characters and the corresponding pinyin strings; A second receiving module, configured to receive the Chinese character to be converted, the word to be converted, or the text to be converted, and the conversion instruction; A second query module, configured to query the Chinese character pinyin look-up table based on the conversion instruction according to the Chinese character to be converted, the word to be converted, or the text to be converted, and obtain and display a target pinyin string corresponding to the Chinese character to be converted, the word to be converted, or the text to be converted.
10. An electronic device, characterized in that, Comprising: a processor, a memory, and a communication bus; The communication bus is configured to enable connection communication between the processor and the memory; The processor is configured to execute an input program of the storage device stored in the memory to implement the steps of the input method of the storage device according to any one of claims 1-6, or to implement the steps of the conversion method of the storage device according to claim 7.
11. A readable storage medium, characterized in that, The readable storage medium stores computer-executable instructions, which, when loaded and executed by the processor, implement the steps of the input method of the storage device according to any one of claims 1 to 6, or implement the steps of the conversion method of the storage device according to claim 7.