Mongolian Baiti-based Mongolian conversion method and device for Mongolian conforming to GBT25914-2023 standard, readable storage medium and equipment
By performing word input, preprocessing, glyph ID acquisition, and redundant control character filtering on Mongolian Baiti resources, the problem of converting Mongolian resources into the GB/T25914-2023 standard was solved, achieving convenient resource conversion and standard compliance.
Patent Information
- Application Number
- CN202510957904.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-11-11
AI Technical Summary
Existing technologies have failed to effectively address the need to convert Mongolian resources established by Mongolian Baiti into resources that conform to the GB/T25914-2023 standard, especially when using the Mongolian Baiti font library in the Windows operating system, as it cannot meet the new standard requirements.
This paper provides a method that includes word input, preprocessing, obtaining glyph IDs, converting to nominal character Unicode encoding strings conforming to the GB/T25914-2023 standard, filtering redundant control characters, and finally outputting standard-compliant Mongolian text. Text rendering engines such as DirectWrite, HalfBuzz, and HarfBuzzSharp are used for processing.
It enables the conversion of Mongolian Baiti resources into Mongolian resources that conform to the GB/T25914-2023 standard, simplifying the operation, saving time, money and manpower, and meeting policy requirements and actual needs.
Smart Images

Figure CN120930595A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer word processing technology, and more specifically, to a method, apparatus, readable storage medium, and device for converting Mongolian script based on Mongolian Baiti into Mongolian script conforming to the GBT25914-2023 standard. Background Technology
[0002] Since 2010, the development and production of Mongolian OpenType fonts have been required to comply with Unicode standards and national standards. Especially after the revision of GB / T 25914-2010 in 2016 and the subsequent upgrades of their fonts by seven major Mongolian font development companies based on this revision, the rules for major Mongolian OpenType fonts in the market have been largely unified. The revised standard GB / T 25914-2023 will be implemented from June 1, 2024, at which point GB / T 25914-2010 will be obsolete. Future Mongolian OpenType fonts must comply with the GB / T25914-2023 standard.
[0003] Microsoft's Windows operating system has supported Mongolian OpenType fonts since Vista, and the "Mongolian Baiti" font is included in the Windows system font library. Mongolian Baiti is likely the earliest Mongolian OpenType font, supporting not only traditional Mongolian but also Todo, Manchu, Xibe, and Aligari. Early Mongolian resources were largely based on Mongolian Baiti, and researchers and resource builders in Mongolian information processing possess a large number of resources built using this standard. Since the implementation of the GB / T25914-2023 standard, the need to convert resources built using Mongolian Baiti to conform to this standard has been very urgent.
[0004] To date, there is no method for converting Mongolian resources based on Mongolian Baiti into other font libraries or GB / T25914-2010, GB / T26226-2010, or GB / T25914-2023 standards. Summary of the Invention
[0005] In view of this, this application provides a method for converting Mongolian text based on Mongolian Baiti into Mongolian text conforming to the GB / T25914-2023 standard, in order to solve the technical problem of converting resources established in Mongolian Baiti into resources conforming to the GB / T25914-2023 standard.
[0006] To achieve the above objectives, the technical solution adopted in this application is as follows:
[0007] On the one hand, this application provides a method for converting Mongolian script based on Mongolian Baiti into Mongolian script conforming to the GBT25914-2023 standard, including:
[0008] S1: Input Mongolian text in word form;
[0009] S2: Preprocess Mongolian words, including deleting all control characters except the first control character from multiple consecutive control characters;
[0010] S3: Obtain the glyph ID of Mongolian words obtained through the text rendering engine;
[0011] S4: Convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard;
[0012] S5: Filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 using redundancy control characters;
[0013] S6: The final output conforms to the Mongolian script of GB / T25914-2023 standard.
[0014] Furthermore, the text rendering engine includes DirectWrite, HalfBuzz, and HarfBuzzSharp;
[0015] Furthermore, step S5 specifically includes:
[0016] S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord;
[0017] S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M;
[0018] S5.3: Let counter N = 1, where counter N is the loop variable;
[0019] S5.4: Determine if the count of N exceeds the number of control characters. If yes, output the Mongolian word stored in variable MWord and end the process; otherwise, execute the loop body, including: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine.
[0020] S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted.
[0021] S5.6: Let N = N + 1;
[0022] S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends;
[0023] S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
[0024] Furthermore, this application provides a device for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard, comprising:
[0025] Input unit, used for inputting Mongolian text in word form;
[0026] The preprocessing unit is used to preprocess Mongolian words, including deleting control characters other than the first control character from multiple consecutive control characters;
[0027] The acquisition unit is used to obtain the glyph ID of Mongolian words obtained through the text rendering engine.
[0028] The conversion unit is used to convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard;
[0029] The filtering unit is used to filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 by filtering the redundancy control characters.
[0030] The output unit is used to finally output Mongolian text conforming to the GB / T25914-2023 standard.
[0031] Furthermore, the text rendering engine includes DirectWrite, HalfBuzz, and HarfBuzzSharp;
[0032] Furthermore, the filtering unit is specifically used to execute the following algorithm:
[0033] S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord;
[0034] S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M;
[0035] S5.3: Let counter N = 1, where counter N is the loop variable;
[0036] S5.4: Determine if the count of N exceeds the number of control characters. If yes, output the Mongolian word stored in variable MWord and end the process; otherwise, execute the loop body, including: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine.
[0037] S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted.
[0038] S5.6: Let N = N + 1;
[0039] S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends;
[0040] S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
[0041] According to another aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the method of converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard of this application.
[0042] According to another aspect of this application, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard of this application.
[0043] Compared with the prior art, the beneficial effects of this application are:
[0044] 1. This application provides a method for converting Mongolian script based on Mongolian Baiti into Mongolian script conforming to the GB / T25914-2023 standard, in order to comply with policy requirements and meet the practical need to use Mongolian script conforming to the GB / T25914-2023 standard.
[0045] 2. This application plan is simple and easy to implement, requiring no complicated operations, saving a lot of time, money and manpower. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a flowchart illustrating the method for converting Mongolian script to Mongolian script conforming to the GB / T 25914-2023 standard based on Mongolian Baiti, as described in this application.
[0048] Figure 2 This is a block diagram of the device for converting Mongolian script to Mongolian script conforming to the GB / T25914-2023 standard, based on the Mongolian Baiti script of this application.
[0049] Figure 3 This is an example image of glyph IDs in the Mongolian Baiti font library.
[0050] Figure 4 This is a screenshot of the table showing the correspondence between character IDs and their encoded strings.
[0051] Figure 5 This is a flowchart for filtering redundant control characters in this application. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0053] like Figure 1 As shown, this application provides a method for converting Mongolian script based on Mongolian Baiti into Mongolian script conforming to the GBT25914-2023 standard, including:
[0054] S1: Input Mongolian text in word form;
[0055] This application submits the Mongolian resources to be converted in "word" format. The Mongolian conversion rule is based on the relationship between the nominal characters within a word, converting them into a variant display glyph. The word segmentation rule for Mongolian words is relatively simple (similar to English), using spaces, punctuation marks, and other non-Mongolian characters as word separators. Therefore, when converting Mongolian Baiti resources to conform to the GB / T25914-2023 standard, they are submitted in "word" format.
[0056] Nominal characters are the most representative form in the Mongolian character set. Among the multiple variants of each Mongolian letter, the nominal character is the unique form used for encoding. By assigning a unique code to the nominal character, the digital storage and transmission of Mongolian characters can be achieved, ensuring accurate recognition and processing of Mongolian characters in computer systems. Encoding based on nominal characters enables information processing functions such as Mongolian input, editing, searching, and sorting.
[0057] Mongolian script has a unique writing system, where letters in different positions (such as at the beginning, middle, and end of a word) exhibit different variant forms. These variant forms are called variant display characters. Nominal characters are the basis of these variant display characters. Through certain rules and algorithms, the nominal characters can be converted into the correct variant display characters based on their context, thus presenting the correct Mongolian script form on the screen or in print.
[0058] S2: Preprocess Mongolian words, including deleting all control characters except the first control character from multiple consecutive control characters;
[0059] During the input of Mongolian resources, some redundant data may appear. Due to the Unicode encoding and conversion rules of Mongolian, this redundant data is not displayed on the screen and is not visible to the naked eye. This redundant data mainly consists of Mongolian control characters (also known as variant control characters, which are combined characters that follow a specific nominal character to distinguish different variants of the same nominal character under the same conditions). For example, " / U+182A / U+1820 / U+1832 / U+1824 / U+1830 / U+1826 / U+180B". / U+180C / U+180D The encoded string " / U+182C / U+1821" contains " / U+180C / U+ 180D The colons are redundant control characters. Only the first control character in a series of consecutive control characters is effective. These redundant characters are filtered out using Mongolian word preprocessing.
[0060] S3: Obtain the glyph ID of Mongolian words through the text rendering engine;
[0061] The process of obtaining Mongolian words involves using a text rendering engine (such as DirectWrite, HalfBuzz, HarfBuzzSharp, etc.) to get the glyph ID. The display process for Mongolian words is as follows: the nominal character encoding of the Mongolian text is interpreted by the text rendering engine using the conversion rules in the OpenType font library to obtain the corresponding display character glyph. Then, the display character glyph is drawn to obtain the correct Mongolian word. For example, the nominal character corresponding to the encoded string " / U+1828 / U+1820 / U+1834 / U+1822 / U+1828" is... However, it's not the correct glyph. After rendering by a text rendering engine, the displayed character glyph is... The correct word is displayed after connection. (Chinese meaning: Peregrine falcon, the name of a bird; the corresponding glyph IDs in the Mongolian Baiti font are "331, 260, 687, 286, 337"). The encoded string " / U+182A / U+1820 / U+1832 / U+1824 / U+1830 / U+1826 / U+180B / U+182C / U+1821" (nominal character is...) Note: There is no garbled text here, but rather the glyphs of Mongolian control characters. These characters are normally not displayed; this indicates the presence of control characters at that location. The rendered text then displays the transformed characters. The connected words are (Chinese meaning: Batu Suhe is a personal name. The corresponding glyph ID in the Mongolian Baiti font is "369, 674, 300, 663, 317, 513").
[0062] S4: Convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard;
[0063] This step converts the obtained glyph IDs into corresponding nominal character Unicode encoding strings conforming to the GB / T25914-2023 standard. Each deformed display character corresponds to a Unicode encoding string specified in the GB / T25914-2023 standard. The Mongolian Baiti font library contains 1856 glyphs, as shown in Figure 3. This is achieved by retrieving the defined correspondence table (e.g., ...). Figure 4 As shown in the image, find the corresponding Unicode encoding string. For example, the glyph IDs "331, 260, 687, 286, 337" in the Mongolian Baiti font are converted to " / U+1828 / U+1820 / U+1834 / U+1822 / U+1828"; glyph IDs "369, 674, 300, 663, 317, 513" are converted to " / U+182C / U+1820 / U+1832 / U+1824 / U+1830 / U+1826 / U+180B / U+182C / U+1821". Examples of glyph IDs and their corresponding Unicode encoding strings are shown below. Figure 4 As shown.
[0064] S5: Filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 using redundancy control characters;
[0065] The converted Mongolian words are filtered using "redundant" or "invalid" control characters. These control characters regulate the transformation of the displayed characters, such as:
[0066] " / U+182A / U+1820 / U+1832 / U+1824 / U+1830 / U+1826 / U+180B The encoded string " / U+182C / U+1821" is rendered to produce deformed characters. The connected words are (Chinese meaning: Batu Suhe is a personal name; the corresponding glyph IDs in the Mongolian Baiti font library are "369, 674, 300, 663, 317, 513"). The encoded string " / U+182A / U+1820 / U+1832 / U+1824 / U+1830 / U+1826 / U+182C / U+1821" is rendered to produce the deformed characters. The connected words are (Chinese meaning: Batu Suhe is a personal name; the corresponding glyph IDs in the Mongolian Baiti font library are "369, 674, 300, 663, 317, 513"). Here, U+180B controls the glyph of U+1826. For example, the variant character displayed by U+1826 in the word is... The glyph ID is 318, which corresponds to two encoding strings: "U+1826" and "U+1826 / U+180D". During the conversion process, "U+1826 / U+180D" is selected. However, in some cases, U+180D is redundant or invalid. Such control characters are filtered out using the filtering function. The filtering process mainly compares the "glyph ID before deletion" and the "glyph ID after deletion". If the glyph IDs are the same, the control character is redundant and can be deleted; if the glyph IDs are different, the control character is not redundant and cannot be deleted (the process for filtering redundant control characters is as follows). Figure 5 (As shown), the specific filtering steps are as follows:
[0067] S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord;
[0068] S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M;
[0069] S5.3: Let counter N = 1, where counter N is the loop variable;
[0070] S5.4: Determine if the count of N exceeds the number of control characters. If yes, output the Mongolian word stored in variable MWord and end the process; otherwise, execute the loop body, including: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine.
[0071] S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted.
[0072] S5.6: Let N = N + 1;
[0073] S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends;
[0074] S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
[0075] S6: The final output conforms to the Mongolian script of GB / T25914-2023 standard.
[0076] In addition, such as Figure 2 As shown, this application provides a device for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard, comprising:
[0077] Input unit 210 is used to input Mongolian text in word form;
[0078] Preprocessing unit 220 is used to preprocess Mongolian words, including deleting control characters other than the first control character from multiple consecutive control characters;
[0079] Unit 230 is used to obtain the glyph ID of Mongolian words obtained through the text rendering engine.
[0080] The conversion unit 240 is used to convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard;
[0081] The filtering unit 250 is used to filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 by filtering the redundancy control characters.
[0082] Output unit 260 is used to finally output Mongolian text conforming to the GB / T25914-2023 standard.
[0083] Furthermore, the text rendering engine includes DirectWrite, HalfBuzz, and HarfBuzzSharp;
[0084] Furthermore, the filtering unit 250 is specifically used to execute the following algorithm:
[0085] S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord;
[0086] S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M;
[0087] S5.3: Let counter N = 1, where counter N is the loop variable;
[0088] S5.4: Determine if the count of N exceeds the number of control characters. If yes, output the Mongolian word stored in variable MWord and end the process; otherwise, execute the loop body, including: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine.
[0089] S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted.
[0090] S5.6: Let N = N + 1;
[0091] S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends;
[0092] S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
[0093] For the device embodiments, since they basically correspond to the method embodiments, the description is relatively simple, and relevant details can be found in the descriptions of the method embodiments. The device embodiments described above are merely illustrative. The units that are separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units, such as distributed across servers and clients. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0094] According to another aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the method of converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard of this application.
[0095] According to another aspect of this application, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard of this application.
[0096] This application can be presented in the form of a DLL (Dynamic Link Library). When using this application, you can directly call the interface using a high-level computer language that supports DLLs (C++, C#, etc.), sending the Mongolian text to be converted in Mongolian Baiti as a parameter, and returning Mongolian text conforming to the GB / T25914-2023 standard.
[0097] This application provides a method for converting Mongolian script based on Mongolian Baiti into Mongolian script conforming to the GB / T25914-2023 standard, in order to comply with policy requirements and meet the practical need to use Mongolian script conforming to the GB / T25914-2023 standard.
[0098] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GB / T25914-2023 standard, characterized in that... include: S1: Input Mongolian text in word form; S2: Preprocess Mongolian words, including deleting all control characters except the first control character from multiple consecutive control characters; S3: Obtain the glyph ID of Mongolian words through the text rendering engine; S4: Convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard; S5: Filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 using redundancy control characters; S6: The final output conforms to the Mongolian script of GB / T25914-2023 standard.
2. The method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in claim 1, characterized in that, The text rendering engines include DirectWrite, HalfBuzz, and HarfBuzzSharp.
3. The method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in claim 2, characterized in that, Step S5 specifically includes: S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord; S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M; S5.3: Set counter N=1, where counter N is the loop variable; S5.4: Determine if the count of N exceeds the number of control characters. If yes, output the Mongolian word stored in variable MWord and end the process; otherwise, execute the loop body, including: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine. S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted. S5.6: Let N = N + 1; S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends; S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
4. A device for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GB / T25914-2023 standard, characterized in that: include: Input unit, used for inputting Mongolian text in word form; The preprocessing unit is used to preprocess Mongolian words, including deleting control characters other than the first control character from multiple consecutive control characters; The acquisition unit is used to obtain the glyph ID of Mongolian words obtained through the text rendering engine. The conversion unit is used to convert the obtained glyph ID into the corresponding nominal character Unicode encoding string conforming to the GB / T25914-2023 standard; The filtering unit is used to filter the Mongolian words corresponding to the nominal character Unicode encoded string after step S4 by filtering the redundancy control characters. The output unit is used to finally output Mongolian text conforming to the GB / T25914-2023 standard.
5. The device for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in claim 4, characterized in that, The text rendering engines include DirectWrite, HalfBuzz, and HarfBuzzSharp.
6. The device for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in claim 5, characterized in that, The filtering unit is specifically used to execute the following algorithm: S5.1: Store the Mongolian words corresponding to the converted nominal character Unicode encoded strings in the variable MWord; S5.2: Count the number of Mongolian word control characters stored in the MWord and store the results in variable M; S5.3: Set counter N=1, where counter N is the loop variable; S5.4: Determine if the count of N exceeds the number of control characters. If so, output the Mongolian word stored in variable MWord and end the process. Otherwise, the loop body is executed, which includes: storing the word formed after pre-deleting the Nth control character from the Mongolian word in MWord in the intermediate result variable MidWord, and then obtaining the glyph ID string corresponding to the Mongolian word stored in MidWord through the text rendering engine; at the same time, obtaining the glyph ID string corresponding to the Mongolian word stored in MWord through the text rendering engine. S5.5: Compare whether the glyph ID string corresponding to the Mongolian word stored in MidWord is equal to the glyph ID string corresponding to the Mongolian word stored in MWord. If they are equal, it means that the Nth control character is a redundant control character, and the Nth control character of the Mongolian word stored in MWord is deleted. If they are not equal, it means that the Nth control character is necessary, and the Nth control character of the Mongolian word stored in MWord is not deleted. S5.6: Let N = N + 1; S5.7: Repeat steps S4-S6 until N>M, process all control characters, and then the loop ends; S5.8: Output the Mongolian words stored in the variable MWord after filtering out redundant control characters.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps in the method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in any one of claims 1 to 3.
8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the method for converting Mongolian script based on Mongolian Baiti to Mongolian script conforming to the GBT25914-2023 standard as described in any one of claims 1 to 3.