Method and system for digitally inputting ancient characters

Through root coding, stroke coding and pronunciation coding, unified standardized coding is designed, which solves the problems of low efficiency and poor compatibility of the existing ancient text input methods, and realizes the unified input of ancient text and modern Chinese characters, which is suitable for all ancient text and modern texts. Chinese characters simplify the digital processing process.

CN119105654AInactive Publication Date: 2024-12-10JILIN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411571088.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2024-12-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing digital input methods of ancient characters ignore the usage habits and thinking logic of ancient characters, resulting in low input efficiency and accuracy, and lack of unified standardized encoding, resulting in compatibility issues between different input methods and frequent user switching of digital input methods. The burden cannot be adapted to all ancient and modern Chinese characters from the pre-Qin and medieval times at the same time.

Method used

Using root code, stroke code and pronunciation code, different encoding methods are designed based on whether ancient characters are official and whether they have pronunciation, and they are designed to cover more than 11,000 ancient characters, including characters from the pre-Qin and medieval eras and modern Chinese characters. , provides a special font library and input system for ancient characters to simplify the input process.

Benefits of technology

It improves the efficiency and accuracy of ancient text input, solves the compatibility problem between input methods, reduces the difficulty of user learning and use, realizes the unified input between ancient text and modern Chinese characters, and is suitable for all ancient text and modern Chinese characters. Simplified the digital processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105654A_ABST
    Figure CN119105654A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for digitally inputting ancient characters, and the method comprises the steps: obtaining the ancient characters, coding the ancient characters, and storing the coded ancient characters in a special font library for the ancient characters; the codes comprise etymon codes, stroke codes and pronunciation codes; and inputting the current code into a special ancient character library according to the coding rule, and obtaining the ancient character corresponding to the current code. Coding is simple and easy to learn, and use is convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ancient character digitization, and in particular to a method and system for ancient character digitization input. Background Art

[0002] Ancient characters are a valuable heritage of Chinese civilization, and they play a key role in the inheritance and development of culture. With the advancement of computer technology and the country's increased investment in ancient character research, more and more people are engaged in the digitization of ancient characters, which has greatly promoted the research, dissemination and application of ancient characters. However, the newly unearthed ancient books, the diversity of ancient characters and the huge character set have brought considerable challenges to the digitization of ancient books. Only by converting these documentary materials into digital formats can researchers and enthusiasts communicate and study more conveniently, so as to better explore and utilize these materials.

[0003] There are about 11,000 ancient characters such as oracle bone inscriptions, bronze inscriptions, Chu bamboo slips and Chinese characters. The process of digitizing ancient texts is also constantly advancing, but how to reasonably input ancient texts on computers still faces many challenges. First, with the development of ancient text research, many ancient characters have been classified as regular script by ancient philologists, which not only converts ancient text materials into a form that modern scholars can read and understand, but also promotes the study and understanding of ancient documents. However, the existing ancient text input method ignores this work and focuses on outputting ancient characters in an unclassified form, which makes it difficult for ancient character beginners or enthusiasts to understand and study ancient characters. Second, the existing encoding method does not fully consider the usage habits and thinking logic of ancient philologists, which affects the efficiency and accuracy of inputting ancient characters. Third, the continuous progress of ancient text research has led to the lack of unified standardized encoding, which not only makes the compatibility between different input methods a problem, but also increases the burden of users frequently switching digital input methods when inputting different ancient characters and modern Chinese characters. Fourth, the coverage of ancient characters is not complete. Many input methods only support one type of ancient characters, and cannot adapt to all ancient characters from the pre-Qin and medieval times as well as modern Chinese characters at the same time. There is even no ready-made digital input method for some ancient characters from the medieval times, and they can only be recorded and written in the form of pictures. Even if there are some methods for digital input of ancient characters, their operation is complicated and the input method is not easy to understand, which is a big obstacle for non-professionals.

[0004] These limitations not only result in many ancient text materials being stored in the form of images and unable to be converted into text, but also severely limit the natural language processing capabilities of ancient texts. This situation has brought great inconvenience to ancient text researchers and enthusiasts, and also hindered the research progress of combining ancient texts with modern artificial intelligence technology. Summary of the invention

[0005] In order to solve the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method and system for digital input of ancient characters, the coding of which is simple, easy to learn and convenient to use.

[0006] To achieve the above object, the present invention provides the following solutions: A method for digital input of ancient characters, comprising: Acquire ancient characters, encode the ancient characters, and store them in a special character library for ancient characters; the encoding includes: radical encoding, stroke encoding, and pronunciation encoding; Input the current code into the ancient character special character library according to the coding rules to obtain the ancient character corresponding to the current code.

[0007] Optionally, obtaining the ancient characters includes: Determine whether the ancient characters are official script characters. If the ancient characters are official script characters, split the official script characters into character roots. If the ancient characters are unofficial script characters, classify the unofficial script characters by pronunciation.

[0008] Optionally, splitting the ancient characters into root characters includes: The ancient characters that have been classified are divided into the largest unit radical with pronunciation and the smallest unit radical with pronunciation.

[0009] Optionally, encoding the ancient characters comprises: Determine whether the radical of the defined character has a pronunciation. If the radical has a pronunciation, encode it according to the pronunciation of the radical. If the radical has no pronunciation, encode it according to the strokes of the radical without pronunciation.

[0010] Optionally, encoding according to the strokes of the unpronounced radical includes: According to the number of strokes of the unpronounced radical, the first letter of the Chinese pinyin of the number of strokes is used as the code corresponding to the unpronounced radical.

[0011] Optionally, classifying the pronunciation of the undetermined ancient characters includes: Determine whether the undetermined ancient characters have pronunciations. If the undetermined ancient characters have pronunciations, encode the pronunciations according to the undetermined characters with pronunciations. If the undetermined ancient characters have no pronunciations, split the undetermined characters without pronunciations according to their strokes.

[0012] Optionally, splitting the unpronounced undefined characters according to strokes comprises: Dividing the strokes of the ancient Chinese character type in the unpronounced unfixed characters into basic categories; The unpronounced undefined characters are split according to strokes according to the basic categories, and corresponding codes are designed for the basic categories.

[0013] Optionally, the basic categories include dot, horizontal, vertical, left-falling stroke, right-falling stroke, circle, curve and frame.

[0014] Optionally, encoding the ancient characters also includes: Setting a stroke splitting rule, wherein the stroke splitting rule includes: from top to bottom, from left to right, and from inside to outside; Design corresponding codes for the basic classes, split the unpronounced characters according to the strokes according to the basic classes according to the split stroke rules, and combine them into codes for the unpronounced characters based on the split stroke rules.

[0015] To achieve the above object, the present invention also provides a system for digital input of ancient characters, comprising: The ancient character encoding module is used to obtain ancient characters, encode the ancient characters, and store them in the ancient character special character library; the encoding includes: radical encoding, stroke encoding and pronunciation encoding; The ancient character search module inputs the current code into the ancient character special character library according to the coding rules to obtain the ancient character corresponding to the current code.

[0016] The beneficial effects of the present invention are: First, the present invention classifies the ancient characters that have been assigned by ancient philologists according to whether the split radicals have pronunciations, and encodes different classifications in different encoding methods. This solves the problem that the existing ancient character digital input methods focus on ancient characters that have not yet been assigned, thereby ignoring the large amount of ancient character assignment work done by ancient philologists, which is beneficial for ancient character beginners or enthusiasts to understand and study ancient characters.

[0017] Second, the encoding method of the present invention fully considers the usage habits and thinking logic of ancient philologists, which improves the efficiency and accuracy of inputting ancient characters.

[0018] Third, the ancient characters of different times and modern Chinese characters in the present invention adopt a unified standardized encoding, which not only solves the compatibility problem between input methods, but also avoids the burden of users having to frequently switch digital input methods when inputting different ancient characters and modern Chinese characters.

[0019] Fourth, the ancient characters in the present invention are fully covered, and are compatible with all ancient characters from the pre-Qin and medieval times as well as modern Chinese characters. This solves the problem that some ancient characters from the medieval times have no ready-made digital input methods and can only be recorded and written in the form of pictures. In addition, the method for digital input of ancient characters in the present invention is simple to operate and the input method is easy to understand, which is very friendly to non-professionals. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flow chart of a method for digital input of ancient characters according to an embodiment of the present invention; Figure 2 A flow chart of determining whether ancient characters are classified as fixed characters or unfixed characters according to an embodiment of the present invention; Figure 3 The diagram is a schematic diagram of the steps of combining the root characters with pronunciation and encoding according to an embodiment of the present invention; Figure 4 It is a root combination step and coding schematic diagram of the pronunciation of an embodiment of the present invention; Figure 5 It is a deployment interface of the ancient Chinese character input method according to an embodiment of the present invention; Figure 6 The input code "sug" of the embodiment of the present invention can retrieve its corresponding ancient character schematic diagram; Figure 7 The input code "laog" of the embodiment of the present invention can retrieve its corresponding ancient character schematic diagram; Figure 8 For the embodiment of the present invention, by adding "x" and inputting "rendianx", the corresponding modern Chinese character schematic diagram can be retrieved. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] In the present invention, this embodiment creates a TrueType format ancient character special character library, which is intended to solve the limitations of the method of digital input of ancient characters in the prior art. In order to achieve this goal, this embodiment adopts the Private Use Area (PUA) in the Unicode standard and allocates a specific encoding range to it to ensure the compatibility and expansibility of the character library. The ancient character character library in the present invention covers more than 11,000 ancient character characters, including oracle bone inscriptions, bronze inscriptions, Warring States Chu bamboo slips and other pre-Qin ancient characters, Chinese characters such as Chinese characters and modern Chinese characters in the Middle Ages. This comprehensive character set design not only provides a unified input platform for ancient character researchers, but also greatly simplifies the digital processing flow of ancient character texts. By using the present invention, users can easily input various ancient characters without frequently switching between different input methods. This design not only improves input efficiency, but also reduces the difficulty of learning and using the method of digital input of ancient characters.

[0025] like Figure 1 As shown, this embodiment discloses a method for digital input of ancient characters, including: obtaining ancient characters, encoding the ancient characters, and storing them in a special character library for ancient characters; the encoding includes: radical encoding, stroke encoding and pronunciation encoding; inputting the current encoding into the special character library for ancient characters according to the encoding rules, and obtaining the ancient characters corresponding to the current encoding.

[0026] Furthermore, after obtaining the ancient characters, it includes: judging whether the ancient characters are fixed characters; if the ancient characters are fixed characters, splitting the fixed characters into character roots; if the ancient characters are unfixed characters, classifying the pronunciation of the unfixed characters.

[0027] Splitting the ancient characters that have been assigned into radicals includes: splitting the ancient characters that have been assigned from the largest unit radical with pronunciation to the smallest unit radical with pronunciation.

[0028] Specifically, the ancient characters in the ancient character library are divided into characters that have been fixed and characters that have not been fixed. Fixed is a process of converting ancient characters into modern fonts. During fixed, the ancient characters in seal script are transcribed according to their original structure using the brushwork of official script or regular script, so as to form the glyphs corresponding to modern Chinese characters. For the ancient characters that have been fixed, they are further divided into ancient characters with pronunciations and ancient characters without pronunciations according to the characteristics of their roots. For the ancient characters that have not yet been fixed, they are divided into ancient characters with pronunciations and ancient characters without pronunciations according to whether they have a recognized standard pronunciation, such as Figure 2 shown.

[0029] Further, encoding the ancient characters includes: determining whether the radicals of the already-identified characters have pronunciations. If a radical has a pronunciation, encoding is assigned according to the pronunciation of the radical. If a radical has no pronunciation, encoding is performed according to the strokes of the radical without pronunciation.

[0030] Encoding according to the strokes of the radical without pronunciation includes: based on the number of strokes of the radical without pronunciation, taking the first letter of the Chinese pinyin of the number of strokes as the encoding corresponding to the radical without pronunciation.

[0031] Specifically, for the already-identified ancient characters, first, they are split into radicals. A radical is the basic unit that constitutes the glyph of an ancient character. When splitting radicals, start from the largest unit radical with a pronunciation and split to the smallest unit radical with a pronunciation. An ancient character can correspond to multiple splitting methods, and these splitting methods can all constitute the encoding of the ancient character. For example: There are two splitting methods, namely (宀, 毳) and (宀, 毛, 毛, 毛). The first splitting method is the one that includes the largest unit radical with a pronunciation, and the second splitting method is the one that includes the smallest unit radical with a pronunciation. Since the radicals 宀, 毳, and 毛 all have pronunciations, both of these splitting methods are the radical compositions of the ancient character of.

[0032] There are also two splitting methods, namely (忄, 猷) and (忄, 酋, 犬). The first splitting method is the one that includes the largest unit radical with a pronunciation, and the second splitting method is the one that includes the smallest unit radical with a pronunciation. Since the radicals 忄, 猷, 酋, and 犬 all have pronunciations, both of these splitting methods are the radical compositions of the ancient character of.

[0033] If the already-identified ancient character cannot be split into radicals with pronunciations according to the above method, then the ancient character is classified as an ancient character with radicals having no pronunciations.

[0034] For example: The ancient character can only be split into (辶, , , 口), among which ( , ) all have no pronunciations. Therefore, the ancient character cannot be split into radicals all having pronunciations according to the splitting rules, and it is classified as an ancient character with radicals having no pronunciations.

[0035] The ancient character can only be split into ( , ), and both of these radicals have no pronunciations. Therefore, the ancient character Split into radicals with pronunciations and classify them as ancient characters with radicals that have no pronunciations.

[0036] When dealing with established ancient characters with radicals that have pronunciations, first, according to the splitting principle mentioned in Step 2, split the ancient characters into radicals. Then, for each split radical, encode it according to its corresponding pronunciation. After completing the encoding of a single radical, enter the combination stage. When combining, since ancient character experts recognize that ancient characters do not have a standard writing order, the encodings of different radicals are combined in multiple possible orders to construct the encoding of the entire ancient character. Suppose an ancient character has n radicals, then it has 2 n kinds of encodings.

[0037] Some ancient characters may have multiple reasonable radical splitting methods. For such cases, the present invention is not limited to a single splitting method, but performs the above encoding steps for each possible splitting method. This flexible processing method is to adapt to the common diversity and controversy in the study of ancient characters. Different scholars may propose different radical splitting methods based on their understanding and research. The design strategy of one ancient character glyph corresponding to multiple encodings not only reflects respect for the rich diversity of ancient characters but also conforms to the actual usage habits of researchers in the field of ancient characters. For example: can be split into radicals (person, grain). Person corresponds to the encoding ren, and grain corresponds to the encoding he. The encodings of different radicals are recombined in multiple possible ways, and the encodings of this ancient character constructed are two, namely renhe and heren respectively.

[0038] can be split into (few, big). Few corresponds to the encoding shao, and big corresponds to the encoding da. The encodings of different radicals are recombined in multiple possible ways, and the encodings of this ancient character constructed are two, namely shaoda and dashao respectively.

[0039] can be split into (rule, heart). Rule corresponds to the encoding ze, and heart corresponds to the encoding xin. The encodings of different radicals are recombined in multiple possible ways, and the encodings of this ancient character constructed are two, namely zexin and xinze respectively.

[0040] For there are two radical splitting methods with pronunciations, namely (heart, plan) and (heart, chief, dog) respectively. First, encode each radical according to its pronunciation, as shown in Table 1.

[0041] Table 1

[0042] Then, respectively combine the two splitting methods in all possible front-back orders of the radicals. Finally, the ancient character Eight different encodings can be obtained, and any one of the encodings can output the character in the present invention. The specific combination steps and encodings are shown in Figure 3.

[0043] When processing the already determined ancient characters whose radicals have no pronunciation, first, according to the splitting principle mentioned in Step 2, the ancient characters are split into radicals. For some radicals with pronunciation, the radicals are encoded according to the encoding principle in Step 3. For the radicals without pronunciation, their stroke numbers are used for encoding, and the first letters of the Chinese pinyin of the Arabic numerals 0-9 are used as their corresponding stroke number encodings. After completing the encoding of individual radicals, enter the combination stage. The combination method is the same as that of the encoding combination of ancient characters with pronounced radicals, and it is combined in multiple possible orders to construct the encoding of the entire ancient character. Suppose an ancient character has n kinds of radicals, then it has 2 n kinds of encodings. For example: can be split into ( , , 冖, 一, 殷), where (冖, 一, 殷) are all radicals with pronunciation, and these three radicals are encoded according to the above steps. The specific encodings are shown in Table 2.

[0044] Table 2

[0045] And the radical ( ) has no pronunciation, so it needs to be encoded according to its stroke number. The radical ( ) has a total of six strokes, and according to the rule in Step 4, its encoding is l. Finally, the encodings of the radicals are combined into the encoding of the ancient character, and there are a total of 24 encodings, one of which is llmiyiyin.

[0046] can be split into ( , , 广, 殳), where (广, 殳) are radicals with pronunciation, and these two radicals are encoded according to the above steps. The specific encodings are shown in Table 3.

[0047] Table 3

[0048] The other radicals ( , ) have no corresponding pronunciation, so they are encoded according to their stroke numbers. The stroke number is eleven strokes, The stroke number is eight strokes. According to the rule in Step 4, the encodings are sy and b respectively. According to the combination rule, it can be known that the ancient character has a total of 32 encodings, one of which is syguangbguangshu.

[0049] can be split into ( , 冋, 心), where (冋, 心) are radicals with pronunciations. Encode these two radicals. The specific encoding is shown in Table 4.

[0050] Table 4

[0051] Radical has no pronunciation, so it is encoded according to its stroke count. The stroke count is seven. According to the rules in Step 4, the encoding is q. Then combine the above three radicals in all possible front-back orders. Finally, the ancient character can obtain four different encodings. In the present invention, any one of the encodings can be input to output the character. The specific combination steps and encodings are as Figure 4 .

[0052] For ancient characters that have not been identified, if the pronunciations of the ancient characters have been recognized by researchers in the field of ancient character studies, then encode them according to this pronunciation. This approach respects academic consensus and ensures the standardization and consistency of the encoding, as shown in Table 5: Table 5

[0053] Furthermore, classifying the pronunciations of unidentified ancient characters includes: determining whether an unidentified ancient character has a pronunciation. If the unidentified ancient character has a pronunciation, then perform pronunciation encoding according to the unidentified character with a pronunciation. If the unidentified ancient character has no pronunciation, then split the unidentified character without a pronunciation according to its strokes.

[0054] Furthermore, splitting the unidentified character without a pronunciation according to its strokes includes: dividing the strokes of the ancient character font in the unidentified character without a pronunciation into basic categories; splitting the unidentified character without a pronunciation according to its strokes according to the basic categories, and designing corresponding encodings for the basic categories. Among them, the basic categories include dot, horizontal, vertical, left-falling stroke, right-falling stroke, circle, bend, and frame.

[0055] Encoding the ancient character also includes: setting rules for splitting strokes. The rules for splitting strokes include: from top to bottom, from left to right, and from inside to outside; designing corresponding encodings for the basic categories. According to the rules for splitting strokes, split the unidentified character without a pronunciation according to its strokes according to the basic categories, and combine them into the encoding of the unidentified character without a pronunciation based on the rules for splitting strokes.

[0056] Specifically, for ancient characters whose pronunciation has not yet been determined, a coding strategy based on strokes is adopted. Strokes are the basic elements that constitute Chinese characters, and all Chinese characters are composed of a series of strokes. Basic strokes such as dot, horizontal, vertical, left-falling stroke, and right-falling stroke are the basis of Chinese character writing, and they are also applicable in ancient characters. But in ancient characters, the definition of strokes may not be as clear as modern Chinese characters, and because of the long time, some strokes may become blurred due to writing style or corrosion. Therefore, in order to better fit the ancient character font, through the in-depth analysis of the ancient character font structure, the present embodiment divides the strokes of the ancient character font into eight basic categories: dot, horizontal, vertical, left-falling stroke, right-falling stroke, circle, bend, frame, and the corresponding coding design is "d", "h", "s", "p", "n", "y", "w", "k", as shown in Table 6. In this coding strategy based on strokes, in order to better adapt to the characteristics of ancient characters, the definition of left-falling stroke and right-falling stroke is expanded. In modern Chinese characters, the writing method of left-falling stroke and right-falling stroke is fixed, and in ancient characters, there are very few roots that have a fixed writing method. Therefore, the radicals defined in this embodiment from the upper right to the lower left are defined as left strokes, and the radicals defined from the upper left to the lower right are defined as right strokes. For the category of circle, it is defined as a stroke that forms a closed loop and has no obvious corners. For the category of frame, this embodiment defines it as a stroke that forms a closed loop and has three or more corners or a semi-enclosed structure, which is used to represent the common container shape in the ancient character radicals. The category of bend is used for radicals with more than two bends from the start to the end. Finally, the encoding of the corresponding ancient characters is formed by combining the encoding of each stroke. When splitting the strokes, follow the rules from top to bottom, from left to right, and from inside to outside. Here, unlike the ancient characters that have been assigned, any splitting order is supported, because an ancient character that has not yet been assigned is usually composed of multiple strokes. Following certain rules makes it easier for users to distinguish different strokes and reduce the inability to output correct ancient characters due to splitting errors. Finally, the encoding of the split strokes is combined into the encoding of the ancient characters in the order from top to bottom, from left to right, and from inside to outside. Therefore, ancient characters that have not yet been determined and have no pronunciation only correspond to one code.

[0057] Table 6

[0058] For example: It can be divided into eight basic stroke categories ( ), the corresponding codes are k, w, k, s, h, s. According to the combination order from top to bottom, from left to right, from inside to outside, it can be known that the code of the ancient character is wshkks.

[0059] It can be divided into eight basic stroke categories ( ), the corresponding codes are d, d, k, h, s, d, d. According to the combination order from top to bottom, from left to right, and from inside to outside, it can be known that the code of this ancient character is ddyshdd.

[0060] Advantages of this ancient character digital input method: The present invention covers more than 11,000 ancient characters, including pre-Qin characters such as oracle bone inscriptions and bronze inscriptions, medieval characters such as Chu bamboo slips and Chinese characters, and modern Chinese characters, and can realize the output of different types of ancient characters using a digital input method. The present invention has complete coverage of ancient characters, which not only solves the problem that the existing ancient character digital input method only supports one type of ancient characters and cannot adapt to all ancient characters from the pre-Qin and medieval times and modern Chinese characters at the same time, but also provides a method for digital input of ancient characters for some ancient characters that do not have an input method yet.

[0061] The present invention divides ancient characters into those that have been fixed and those that have not been fixed and encodes them separately. This design helps to use the writing method of ancient characters in fixed form, making ancient characters easier to read and understand, and is also in line with the progress of ancient character research and development.

[0062] The coding method in the present invention is not only more suitable for the use habits and thinking logic of paleographers, but also more friendly to beginners. When coding ancient characters that have been determined by the official code, for ancient characters with pronunciations of radicals, the coding method according to pronunciation is adopted. These radicals with pronunciations are the same as the characters or radicals of modern Chinese characters, so no additional knowledge is required. As long as there is a basis of modern Chinese characters, the coding of this type of ancient characters can be easily known. And for ancient characters whose radicals do not have pronunciations, the coding method according to the number of strokes is adopted. Such a coding method is not only easy to understand, but also has a short coding length, and is more convenient to input. When coding ancient characters that have not yet been determined by the official code, for some complex ancient characters, the method of splitting by stroke major categories is adopted. This method is also extended from the stroke splitting of modern Chinese characters, so it is also easy to understand and use.

[0063] The present invention adopts a unified standardized encoding, which not only makes different digital input methods have good compatibility, but also avoids the burden of users frequently switching digital input methods when inputting different ancient characters and modern Chinese characters.

[0064] The method for digital input of ancient characters in the present invention has good scalability. For example, ancient characters such as Mayan characters, which are composed of basic graphic symbols, can all be digitally input using the encoding method corresponding to the undetermined ancient characters without pronunciation in the present invention. For another example, for characters such as Phoenician letters and Japanese kana, which can be split into radicals and most of the radicals have pronunciations, the encoding method corresponding to the determined ancient characters with pronunciations of the split radicals in the present invention can be used to achieve digital input. For ancient Egyptian hieroglyphics and other characters that can be further split into smaller components, but these components do not always have independent pronunciations, the encoding method corresponding to the determined ancient characters with radicals without pronunciations of the split in the present invention can be used to achieve digital input. Therefore, the method for digital input of ancient characters can not only solve the problem of digital input of ancient characters in different eras of China through the same input tool, but also enable the input and output of characters in different countries and different eras through the same digital input method.

[0065] In order to apply the present invention to actual scenarios, in this embodiment, a special input method for ancient characters is developed using this method for digital input of ancient characters. Using this input method, ancient characters can be output in various text processing tools. Figure 5 The deployment interface and implementation effect of the special input method for ancient characters are shown in Table 7.

[0066] Table 7

[0067] The present invention can not only achieve digital input of ancient character texts, but also realize the function of mutual retrieval between ancient characters and modern Chinese characters.

[0068] The process of retrieving ancient characters from modern Chinese characters is called forward retrieval. When the pinyin encoding of a modern Chinese character is input and followed by "g", the corresponding encoding will retrieve the ancient character corresponding to the modern Chinese character. For example, if you want to retrieve the ancient character corresponding to the character "宿", input the encoding "sug" to retrieve its corresponding ancient character, such as Figure 6 .

[0069] If you want to retrieve the ancient character corresponding to the character "牢", input the encoding "laog" to retrieve its corresponding ancient character, such as Figure 7 .

[0070] The process of retrieving modern Chinese characters from ancient characters is called reverse retrieval. When the encoding of an ancient character is input and followed by "x", the corresponding encoding will retrieve the modern Chinese character corresponding to the ancient character. For example, if you want to retrieve For the modern Chinese character corresponding to the character "", it is necessary to first determine the encoding of the character. According to the above encoding rules, the encoding of the character is "rendian". Adding "x" and inputting "rendianx" can retrieve the corresponding modern Chinese character "宿", as Figure 8 .

[0071] The encodings of some ancient Chinese characters are shown in Table 8 as follows: Table 8

[0072] This embodiment also provides a system for digital input of ancient Chinese characters, including: an ancient Chinese character encoding module, which is used to obtain ancient Chinese characters, encode the ancient Chinese characters, and store them in a special character library for ancient Chinese characters; the encoding includes: root encoding, stroke encoding, and pronunciation encoding; an ancient Chinese character search module, which inputs the current encoding into the special character library for ancient Chinese characters according to the encoding rules to obtain the ancient Chinese character corresponding to the current encoding.

[0073] The embodiments described above are only descriptions of the preferred embodiments of the present invention, and do not limit the scope of the present invention. Without departing from the design spirit of the present invention, various deformations and improvements made by those of ordinary skill in the art to the technical solutions of the present invention shall fall within the protection scope determined by the claims of the present invention.

Claims

1. A method for digital input of ancient characters, characterized in that: include: Acquire ancient characters, encode the ancient characters, and store them in a special character library for ancient characters; The coding includes: radical coding, stroke coding and pronunciation coding; Input the current code into the ancient character special character library according to the coding rules to obtain the ancient character corresponding to the current code.

2. The method for digital input of ancient characters according to claim 1, characterized in that: After obtaining the ancient characters, the following steps are included: Determine whether the ancient characters are official script characters. If the ancient characters are official script characters, split the official script characters into character roots. If the ancient characters are unofficial script characters, classify the unofficial script characters by pronunciation.

3. The method for digital input of ancient characters according to claim 2, characterized in that: The ancient characters that have been determined are split into radicals, including: The ancient characters that have been classified are divided into the largest unit radical with pronunciation and the smallest unit radical with pronunciation.

4. The method for digital input of ancient characters according to claim 2, characterized in that: Encoding the ancient characters includes: Determine whether the radical of the defined character has a pronunciation. If the radical has a pronunciation, encode it according to the pronunciation of the radical. If the radical has no pronunciation, encode it according to the strokes of the radical without pronunciation.

5. The method for digital input of ancient characters according to claim 4, characterized in that: Encoding based on the strokes of unpronounced radicals includes: According to the number of strokes of the unpronounced radical, the first letter of the Chinese pinyin of the number of strokes is used as the code corresponding to the unpronounced radical.

6. The method for digital input of ancient characters according to claim 2, characterized in that: The pronunciation classification of the undetermined ancient characters includes: Determine whether the undetermined ancient characters have pronunciations. If the undetermined ancient characters have pronunciations, encode the pronunciations according to the undetermined characters with pronunciations. If the undetermined ancient characters have no pronunciations, split the undetermined characters without pronunciations according to their strokes.

7. The method for digital input of ancient characters according to claim 6, characterized in that: Splitting the unpronounced undefined characters according to strokes includes: Dividing the strokes of the ancient Chinese character type in the unpronounced unfixed characters into basic categories; The unpronounced undefined characters are split according to strokes according to the basic categories, and corresponding codes are designed for the basic categories.

8. The method for digital input of ancient characters according to claim 7, characterized in that: The basic categories include dot, horizontal, vertical, left-falling stroke, right-falling stroke, circle, curve and frame.

9. The method for digital input of ancient characters according to claim 7, characterized in that: Encoding ancient characters also includes: Setting a stroke splitting rule, wherein the stroke splitting rule includes: from top to bottom, from left to right, and from inside to outside; Design corresponding codes for the basic classes, split the unpronounced characters according to the strokes according to the basic classes according to the stroke splitting rules, and combine them into codes for the unpronounced characters based on the stroke splitting rules.

10. A system for digital input of ancient characters, characterized in that: include: The ancient character encoding module is used to obtain ancient characters, encode the ancient characters, and store them in the ancient character special character library; The coding includes: radical coding, stroke coding and pronunciation coding; The ancient character search module inputs the current code into the ancient character special character library according to the coding rules to obtain the ancient character corresponding to the current code.