Method and system for generating diversified language interface based on embedded operating system

By constructing and sorting character dot matrix graphics for each language and generating multilingual standard library files, the problem of difficult coexistence of diversified language interface display is solved, and the efficiency of multilingual interface coexistence and software development and maintenance is improved.

CN114489611BActive Publication Date: 2025-02-11BEIJING MECHANICAL EQUIP INST
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011149743.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2025-02-11
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

In the prior art, diversified language interface display is difficult to coexist, resulting in the inability of user interface and development and maintenance interface language to coexist, software development and maintenance work is large, and it is not convenient for equipment development and maintenance.

Method used

By constructing character dot matrix graphics for each language, extracting character dot matrix data, setting attribute information for encapsulation, sorting and assigning internal codes to establish encoding correspondence, generating multiple single-language character dot matrix font library files, and configuring them into multiple Language standard library files are displayed using graphical interfaces.

Benefits of technology

It realizes the coexistence of multilingual interfaces, reduces the workload of software development and maintenance, improves the reusability and reliability of software design, and reduces the dependence on the underlying font library.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489611B_ABST
    Figure CN114489611B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for generating a diversified language interface based on an embedded operating system, which belongs to the technical field of embedded operating systems and solves the problem in the prior art that the workload of maintaining and developing character libraries is large and it is difficult to realize the display of diversified languages. The method comprises: constructing a dot matrix graphic of characters contained in each language, and extracting the dot matrix data of the characters therefrom; setting the attribute information of the character dot matrix corresponding to the dot matrix data, and encapsulating to obtain a usable character dot matrix; sorting the encapsulated character dot matrix, sequentially allocating internal codes to establish a coding correspondence, obtaining multiple single-language character dot matrix font files, and configuring to obtain a multi-language standard library file; calling the multi-language standard library file, and using a graphical interface to display the target language characters. The present invention reduces the workload of developing and maintaining the underlying dot matrix font library by separating the application layer software from the underlying system font library, and improves the reusability and reliability of the application layer software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded operating systems, and in particular to a method and system for generating a diversified language interface based on an embedded operating system. Background Art

[0002] With the development of economic globalization, more and more domestically developed equipment are going abroad. However, in the early stages of development, the operating interfaces of most domestic equipment are mainly in Chinese and English. In order to increase the international market share of products and adapt to diversified language environments, it is necessary to develop corresponding user language interfaces for users in different language environments, such as French, Russian and other small language interfaces. Due to limitations of many factors such as disk space, memory size, execution efficiency and development environment, embedded operating systems generally use graphical dot matrix methods to display non-English characters. By constructing the corresponding language character dot matrix font library, the interface display is freed from the limitations of the operating system and development environment.

[0003] For the display of diversified language interfaces, the traditional method is usually to construct corresponding single-language character dot matrix font files for users in different language environments, and then develop versions of software with the same functions but different language display interfaces. Language character dot matrix fonts are usually bound to the application layer software, and the software inheritance between different versions is poor, and the workload of software redevelopment and maintenance is large. Alternatively, in order to reduce the repetitive workload during the software development process, a complete multi-language character dot matrix font library is built in the early stage of software development. However, the character encodings of different language character dot matrix font libraries conflict with each other and are incompatible with each other. The workload of font library maintenance and development is large in the later stage, and it is difficult to continue to expand. Therefore, it is difficult to build a complete multi-language character dot matrix font library, which ultimately makes it difficult for diversified language display interfaces to coexist. The user's interface and the designer's device maintenance and development interface must maintain the same language style. In some non-universal or familiar language environments, it is very inconvenient for engineers to maintain and develop equipment.

[0004] The prior art has at least the following defects: first, language character dot matrix fonts are usually bound to application layer software, and the software inheritance between different versions is poor. The corresponding single-language character dot matrix font files need to be reconstructed, and the workload of software redevelopment and maintenance is large; second, a complete multi-language character dot matrix font library is constructed in the early stage of software development, and the character encodings of different language character dot matrix font libraries conflict and are incompatible with each other, resulting in the inability of multiple languages ​​to coexist in the user interface and the development and maintenance interface. The workload of later maintenance and development of the font library is large, it is difficult to continue to expand, and it is not convenient for designers to develop and maintain the equipment. Summary of the invention

[0005] In view of the above analysis, the present invention aims to provide a method and system for generating a diversified language interface based on an embedded operating system, so as to solve the problems in the prior art of large workload of software redevelopment and maintenance, large workload of font maintenance and development, and inconvenience in equipment development and maintenance.

[0006] On the one hand, the present invention provides a method for generating a diversified language interface based on an embedded operating system, comprising the following steps:

[0007] Constructing a dot matrix pattern of characters included in each language, and extracting dot matrix data of corresponding characters from the dot matrix pattern;

[0008] Set the attribute information of the character dot matrix corresponding to the dot matrix data of each character, and encapsulate it to obtain the usable character dot matrix;

[0009] Sorting the encapsulated character dot matrixes contained in each language, and sequentially assigning internal codes to establish coding correspondences, so as to obtain a plurality of single-language character dot matrix font library files;

[0010] Configuring a plurality of the single-language character dot matrix font library files to obtain a multi-language standard library file;

[0011] The multi-language standard library file is called, and the target language characters are displayed using a graphic interface.

[0012] Furthermore, the step of sorting the encapsulated character dot matrix contained in each language and assigning internal codes in sequence to establish a coding correspondence includes:

[0013] Sorting the encapsulated character dot matrix according to the character order in the standard character set;

[0014] The internal code is allocated to the encapsulated character dot matrix according to the encoding correspondence between the characters and the internal code in the standard character set.

[0015] Furthermore, the step of sorting the encapsulated character dot matrix contained in each language and assigning internal codes in sequence to establish a coding correspondence includes:

[0016] The encapsulated character dot matrix is ​​sorted in a customized manner, and internal codes are assigned in sequence to establish a coding correspondence.

[0017] Furthermore, the attribute information of the character dot matrix includes the name and identifier of the character set to which the character dot matrix belongs.

[0018] Furthermore, configuring the plurality of single-language character dot matrix font library files to obtain a multi-language standard library file includes:

[0019] Configuring the display device, display type and display parameters of the application environment of the single-language character dot matrix font file, and loading the single-language character dot matrix font file into a target path;

[0020] Perform font configuration on each of the single-language character dot matrix font library files and compile to obtain a multi-language standard library file; and compile to obtain a driver for a selected graphics device corresponding to the multi-language standard library file.

[0021] Furthermore, the step of calling the multi-language standard library file and displaying the target language characters using a graphical interface includes:

[0022] Create a graphics device and initialize the graphics device;

[0023] Selecting a font engine corresponding to a target single-language character dot matrix font library file, and using the font engine to search for the target single-language character dot matrix font library file in the multi-language standard library file according to the attribute information of the character dot matrix;

[0024] Creating a font according to the found target single-language character dot matrix font file, obtaining the font ID, and selecting the font into a graphics context according to the font ID;

[0025] Obtaining the first address of the character dot matrix in the target single-language character dot matrix font file corresponding to the font;

[0026] The corresponding character dot matrix is ​​obtained according to the first address using the coding correspondence, and is displayed through a graphics device.

[0027] On the other hand, the present invention provides a system for generating a diversified language interface based on an embedded operating system, comprising:

[0028] A character creation module, used to construct dot-matrix graphics of characters contained in each language;

[0029] A dot matrix data acquisition module, used for extracting dot matrix data of corresponding characters from the dot matrix pattern;

[0030] The character dot matrix encapsulation module is used to set the attribute information of the character dot matrix corresponding to the dot matrix data of each character, and encapsulate to obtain a usable character dot matrix;

[0031] A character library building module, used for sorting the encapsulated character dot matrix contained in each language, and sequentially allocating internal codes to establish coding correspondences, so as to obtain a plurality of single-language character dot matrix character library files;

[0032] A graphical development configuration module, used for configuring a plurality of said single-language character dot matrix font library files to obtain a multi-language standard library file;

[0033] The graphic interface module is used to call the multi-language standard library file and display the target language characters using the graphic interface.

[0034] Furthermore, the character library building module is further used for:

[0035] Sorting the encapsulated character dot matrix according to the character sequence in the standard character set; assigning internal codes to the encapsulated character dot matrix according to the encoding correspondence between the characters and the internal codes in the standard character set;

[0036] Alternatively, the encapsulated character dot matrix is ​​sorted in a custom manner, and internal codes are assigned in sequence to establish a coding correspondence.

[0037] Furthermore, the graphical development configuration module is further used to:

[0038] Configuring the display device, display type and display parameters of the application environment of the single-language character dot matrix font file, and loading the single-language character dot matrix font file into a target path;

[0039] Perform font configuration on each of the single-language character dot matrix font library files and compile to obtain a multi-language standard library file; and compile to obtain a driver for a selected graphics device corresponding to the multi-language standard library file.

[0040] Furthermore, the graphic interface module is further used for:

[0041] Create a graphics device and initialize the graphics device;

[0042] Selecting a font engine corresponding to a target single-language character dot matrix font library file, and using the font engine to search for the target single-language character dot matrix font library file in the multi-language standard library file according to the attribute information of the character dot matrix;

[0043] Creating a font according to the found target single-language character dot matrix font file, obtaining the font ID, and selecting the font into a graphics context according to the font ID;

[0044] Obtaining the first address of the character dot matrix in the target single-language character dot matrix font file corresponding to the font;

[0045] The corresponding character dot matrix is ​​obtained according to the first address using the coding correspondence, and is displayed through a graphics device.

[0046] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:

[0047] 1. The method and system for generating a diversified language interface based on an embedded operating system proposed by the present invention obtains a multi-language standard library file by compiling multiple single-language character dot matrix font files, that is, obtains the underlying font file of the embedded operating system. When the application layer software calls the target font, the target single-language font file is loaded into the memory of the embedded operating system and called through the graphical interface of the embedded operating system, thereby realizing the separation of the language character dot matrix font from the application layer software, so that the single-language character dot matrix font file can be directly reused, and there is no need to re-modify and integrate the font file according to the requirements of the diversified language display interface of the application layer software. Only the font needs to be supplemented, which reduces the dependence of the diversified language display interface on the compatibility and integrity of the underlying font, and can realize the coexistence of multiple language interfaces. In addition, the workload of designers in developing and maintaining application layer software is greatly reduced, and the reusability and reliability of software design are improved.

[0048] 2. The method and system for generating a diversified language interface based on an embedded operating system proposed in the present invention sorts single-language character dot matrices and establishes encoding correspondences according to the standard character set (i.e., localized character set) in the computer system. When the target language font file is called, there is no need to look up and convert the encoding correspondences in the font and the encoding correspondences of the characters in the computer system, thereby reducing the work of character encoding conversion and analysis during software development and greatly improving efficiency.

[0049] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.

[0051] Figure 1 It is a flow chart of a method for generating a diversified language interface based on an embedded operating system according to an embodiment of the present invention;

[0052] Figure 2 It is a schematic diagram of a system for generating a diversified language interface based on an embedded operating system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0054] Method Embodiment

[0055] A specific embodiment of the present invention discloses a method for generating a diversified language interface based on an embedded operating system. Figure 1 As shown, the method includes:

[0056] Step 1: construct a dot matrix pattern of characters contained in each language, and extract binary dot matrix data of corresponding characters from the dot matrix pattern.

[0057] Step 2: Set the attribute information of the character dot matrix corresponding to the dot matrix data of each character, and encapsulate to obtain a usable character dot matrix.

[0058] Step 3: sort the encapsulated character dot matrixes contained in each language, and assign internal codes in sequence to establish encoding correspondences, so as to obtain a plurality of single-language character dot matrix font files.

[0059] Step 4: configuring the plurality of single-language character dot matrix font library files to obtain a multi-language standard library file.

[0060] Step 5: Call the multi-language standard library file and display the target language characters using a graphical interface.

[0061] Specifically, in step 1, the dot matrix graphics of the characters can be constructed according to the character encoding of the characters in the Unicode character set. Exemplarily, the encoding range of French characters in the Unicode character set is 00C0-00FF, then the dot matrix graphics corresponding to the characters can be obtained from the Unicode character set according to the correspondence between the character encoding and the dot matrix graphics. Preferably, before extracting the binary dot matrix data of the characters, the size, direction, font, font size and other attributes of the characters are first set, and the corresponding dot matrix graphics are displayed in the preview window, and adjusted so that the dot matrix graphics corresponding to the characters can be fully displayed in the display area, and then the corresponding binary dot matrix data are extracted from the adjusted character dot matrix graphics, thereby obtaining a language character dot matrix data set to meet the display data framing requirements when the interface is displayed. Among them, the dot matrix graphics of the characters are the graphical display of the language characters in the computer.

[0062] Preferably, in step 2, the attribute information of the character dot matrix corresponding to the dot matrix data of each character is set, and encapsulated to obtain a usable character dot matrix, which specifically includes:

[0063] Step 2.1, according to the standard format of the character dot matrix, set the attribute information of the character dot matrix corresponding to the character dot matrix data, including the size of the character dot matrix, the name and logo of the character set to which it belongs, the width, height and baseline initial position information of the character dot matrix display, etc. According to the use requirements of the language font library, you can also set the personalized configuration information such as bold, italic and scaling of the character dot matrix. Among them, if the computer system has a standard character set corresponding to the language character, the name and logo of the character set to which the character dot matrix belongs are set according to the standard character set; if the computer system does not have a standard character set corresponding to the language character, the name and logo of the character set to which the character dot matrix belongs are set in a customized way.

[0064] Step 2.2: Encapsulate the character dot matrix data and the corresponding attribute information of the character dot matrix to obtain a usable character dot matrix, wherein the character dot matrix can be displayed only according to the dot matrix data of the character and the attribute information of the character dot matrix.

[0065] Preferably, in step 3, the step of sorting the encapsulated character dot matrix contained in each language and sequentially assigning internal codes to establish a coding correspondence includes:

[0066] Step 3.1, sort the encapsulated character dot matrix according to the character sequence in the standard character set.

[0067] Step 3.2: assign internal codes to the encapsulated character dot matrix according to the encoding correspondence between characters and internal codes in the standard character set.

[0068] Among them, the standard character set is the localized character set of the computer, for example, the GB2312-80 character set of Chinese characters, the Windows-1251 character set of Russian characters, etc., which contain the encoding correspondence between characters and corresponding internal codes. Therefore, a character library is established according to the encoding correspondence, so that the encoding correspondence between the established character library characters and the internal codes is consistent with the encoding correspondence between the characters and the internal codes in the localized character set of the computer, so that when calling the character library, there is no need to look up and convert the encoding correspondence in the character library with the character encoding correspondence in the computer system, which reduces the work of character encoding conversion and parsing during application layer software development, and greatly improves efficiency. For example, when establishing a Chinese language character dot matrix character library, the character encoding is partitioned and sorted according to the internal code relationship in GB 2312-80, the high byte of the encoding is used as the page number, and the low byte of the encoding is used as the index number, and finally the page number and the index number are combined as the character encoding of the Chinese language character dot matrix character library.

[0069] Preferably, if a standard character set of a target language does not exist in the computer system, the encapsulated character dot matrix can be sorted in a custom manner, and internal codes can be assigned in sequence to establish a coding correspondence.

[0070] Preferably, in step 4, configuring a plurality of single-language character dot matrix font library files to obtain a multi-language standard library file includes:

[0071] Step 4.1, the character dot matrix is ​​a binary bitmap. When displaying, you must first configure the display device, display type and display parameters of the single-language character dot matrix font file application environment, and load the single-language character dot matrix font file into the target path for calling.

[0072] Step 4.2, configure the font for each single-language character dot matrix font file and compile to obtain a multi-language standard library file; and compile to obtain the driver of the selected graphics device corresponding to the multi-language standard library file. When calling the target single-language character dot matrix font file, first load the corresponding font data into the computer's memory for the graphics interface to call. Specifically, the single-language character dot matrix font file corresponds one-to-one to the configured font. The concept of the font is defined by the software API function used to call the single-language character dot matrix font file, which is different from the concept of the font of the character set in step 1.

[0073] Preferably, in step 5, the step of calling the multi-language standard library file and displaying the target language characters using a graphical interface includes:

[0074] Step 5.1, create a graphics device and initialize the graphics device. The multi-language interface means that different interfaces in an application layer software use different language characters, and the application layer software runs on the graphics device, so the graphics device is a hardware device for multi-language character display.

[0075] Step 5.2, select the font engine corresponding to the target single-language character dot matrix font file, and use the font engine to search for the target single-language character dot matrix font file in the multi-language standard library file according to the attribute information of the character dot matrix. The font engine searches for the target single-language character dot matrix font file in the multi-language standard library file according to the correspondence between the font and the single-language character dot matrix font file determined in step 4.2 and the attribute information of the character dot matrix.

[0076] Step 5.3: Create a corresponding font based on the found target single-language character dot matrix font file, obtain the font ID automatically assigned by the system, and select the font into the graphics context based on the font ID.

[0077] Step 5.4, obtain the first address of the character dot matrix in the target single language character dot matrix font file corresponding to the font through array addressing. Specifically, the process of establishing the font library from step 1 to step 3 is defined and created in an array manner, so the corresponding font library can be determined by array addressing.

[0078] Step 5.5, obtain the corresponding character dot matrix according to the first address using the encoding correspondence, set the foreground and background colors of the display, and then display it through the graphics device.

[0079] When the language display interface needs to be switched, the used language font engine is cleared through the graphical interface, and the corresponding font engine is reselected according to the language characters to be displayed, and the new target single language character dot matrix font file is loaded. The display is performed according to the above steps, thereby realizing the display and switching of the diversified language interface.

[0080] System Example

[0081] This embodiment and the method embodiment are based on the same inventive concept, and for repeated descriptions, reference may be made to the contents of the method embodiment.

[0082] Another embodiment of the present invention discloses a system for generating a multi-language interface based on an embedded operating system. Figure 2 As shown, the system includes:

[0083] The character creation module is used to construct the dot matrix graphics of the characters contained in each language.

[0084] The dot matrix data acquisition module is used to extract the dot matrix data of the corresponding character from the dot matrix graphic.

[0085] The character dot matrix encapsulation module is used to set the attribute information of the character dot matrix corresponding to the dot matrix data of each character, and encapsulate to obtain a usable character dot matrix.

[0086] The character library establishment module is used to sort the encapsulated character dot matrix contained in each language, and assign internal codes in sequence to establish encoding correspondences to obtain multiple single-language character dot matrix character library files.

[0087] A graphical development configuration module is used to configure multiple single-language character dot matrix font files to obtain multi-language standard library files.

[0088] The graphic interface module is used to call the multi-language standard library files and display the target language characters using the graphic interface.

[0089] Preferably, the character library building module is further used for:

[0090] The encapsulated character dot matrix is ​​sorted according to the character sequence in the standard character set; and the internal code is allocated to the encapsulated character dot matrix according to the coding correspondence between the character and the internal code in the standard character set.

[0091] Alternatively, the encapsulated character dot matrix is ​​sorted in a custom manner, and internal codes are assigned in sequence to establish a coding correspondence.

[0092] Preferably, the graphical development configuration module is further used to:

[0093] The display device, display type and display parameters of the single-language character dot matrix font file application environment are configured, and the single-language character dot matrix font file is loaded into the target path.

[0094] Perform font configuration on each single-language character dot matrix font library file and compile to obtain a multi-language standard library file; and compile to obtain a driver for a selected graphics device corresponding to the multi-language standard library file.

[0095] Preferably, the graphic interface module is further used for:

[0096] Create a graphics device and initialize it.

[0097] A font engine corresponding to the target single-language character dot matrix font library file is selected, and the font engine is used to search for the target single-language character dot matrix font library file in the multi-language standard library file according to the attribute information of the character dot matrix.

[0098] A font is created according to the found target single-language character dot matrix font file, and the font ID is obtained, and the font is selected into the graphics context according to the font ID.

[0099] Get the first address of the character dot matrix in the target single-language character dot matrix font file corresponding to the font.

[0100] The corresponding character dot matrix is ​​obtained according to the first address using the coding correspondence and displayed through a graphics device.

[0101] When the language display interface needs to be switched, the used language font engine is cleared through the graphical interface, and the corresponding font engine is reselected according to the language characters to be displayed, and the new target single language character dot matrix font file is loaded. The display is performed according to the above steps, thereby realizing the display and switching of the diversified language interface.

[0102] Compared with the prior art, the method and system for generating a diversified language interface based on an embedded operating system proposed in the present invention, on the one hand, compiles multiple single-language character dot matrix font files to obtain a multi-language standard library file, that is, obtains the underlying font file of the embedded operating system. When the application layer software calls the target font, the target single-language font file is loaded into the memory of the embedded operating system, and is called through the graphical interface of the embedded operating system, thereby realizing the separation of the language character dot matrix font file and the application layer software, so that the single-language character dot matrix font file can be directly reused, and there is no need to re-modify and integrate the font according to the requirements of the diversified language display interface of the application layer software. Only the font needs to be supplemented, which reduces the dependence of the diversified language display interface on the compatibility and integrity of the underlying font, and can realize the coexistence of multiple language interfaces. In addition, the workload of designers in developing and maintaining application layer software is greatly reduced, and the reusability and reliability of software design are improved. On the other hand, the present invention sorts the single-language character dot matrix and establishes a coding correspondence according to the standard character set (i.e., the localized character set) in the computer system. When the target language character library is called, there is no need to look up and convert the coding correspondence in the character library and the coding correspondence of the characters in the computer system, thereby reducing the work of character coding conversion and analysis during software development and greatly improving efficiency.

[0103] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0104] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for generating a diversified language interface based on an embedded operating system, characterized in that: The following steps are involved: Constructing the dot matrix graphics of the characters contained in each language, including: setting character attributes, the attributes including size, direction, font, and font size, displaying the corresponding dot matrix graphics in the preview window, and adjusting so that the dot matrix graphics corresponding to the character can be fully displayed in the display area, and then extracting the corresponding binary dot matrix data from the adjusted character dot matrix graphics, thereby obtaining a language character dot matrix data set to meet the display data framing requirements when the interface is displayed; extracting the dot matrix data of the corresponding character from the dot matrix graphics; The attribute information of the character dot matrix corresponding to the dot matrix data of each character is set, and the character dot matrix is ​​encapsulated to obtain a usable character dot matrix, including: according to the standard format of the character dot matrix, the attribute information of the character dot matrix corresponding to the character dot matrix data is set, including the size of the character dot matrix, the name and identifier of the character set to which it belongs, the width, height and baseline initial position information of the character dot matrix display, and according to the use requirements of the language font library, the bold, italic and zoom ratio personalized configuration information of the character dot matrix is ​​set, wherein, if the computer system has a standard character set corresponding to the language character, the name and identifier of the character set to which the character dot matrix belongs are set according to the standard character set; if the computer system does not have a standard character set corresponding to the language character, the name and identifier of the character set to which the character dot matrix belongs are set in a customized manner; Encapsulating character dot matrix data and corresponding attribute information of the character dot matrix to obtain a usable character dot matrix; The encapsulated character dot matrix contained in each language is sorted, and internal codes are assigned in sequence to establish a coding correspondence, including: sorting the encapsulated character dot matrix according to the character order in the standard character set, and assigning internal codes to the encapsulated character dot matrix according to the coding correspondence between the characters and the internal codes in the standard character set; if a standard character set of a target language does not exist in the computer system, sorting the encapsulated character dot matrix in a custom manner, and assigning internal codes in sequence to establish a coding correspondence; to obtain multiple single-language character dot matrix font files; The standard character set is a localized character set of a computer, which includes the encoding correspondence between characters and corresponding internal codes. Therefore, a character library is established according to the encoding correspondence, so that the encoding correspondence between the characters in the established character library and the internal codes is consistent with the encoding correspondence between the characters in the localized character set of the computer and the internal codes. Configuring a plurality of the single-language character dot matrix font library files to obtain a multi-language standard library file; Calling the multi-language standard library file, switching the single-language character dot matrix font file to be displayed based on the font engine, and displaying the target language characters using a graphical interface, including: Create a graphics device and initialize the graphics device; Selecting a font engine corresponding to a target single-language character dot matrix font library file, and using the font engine to search for the target single-language character dot matrix font library file in the multi-language standard library file according to the attribute information of the character dot matrix; Creating a font according to the target single-language character dot matrix font library file found, obtaining an ID of the automatically assigned font, and selecting the font into a graphics context according to the font ID; Obtaining the first address of the character dot matrix in the target single-language character dot matrix font file corresponding to the font; The corresponding character dot matrix is ​​obtained according to the first address using the coding correspondence, and is displayed through a graphics device.

2. The method for generating a multi-language interface according to claim 1, characterized in that: Configuring a plurality of the single-language character dot matrix font library files to obtain a multi-language standard library file includes: Configuring the display device, display type and display parameters of the application environment of the single-language character dot matrix font file, and loading the single-language character dot matrix font file into a target path; Perform font configuration on each of the single-language character dot matrix font library files and compile to obtain a multi-language standard library file; and compile to obtain a driver for a selected graphics device corresponding to the multi-language standard library file.

3. A diversified language interface generation system based on an embedded operating system, characterized in that: include: The character creation module is used to construct the dot matrix graphics of the characters contained in each language, including: setting character attributes, including size, direction, font, and font size, displaying the corresponding dot matrix graphics in the preview window, and adjusting so that the dot matrix graphics corresponding to the character can be fully displayed in the display area, and then extracting the corresponding binary dot matrix data from the adjusted character dot matrix graphics, thereby obtaining a language character dot matrix data set to meet the display data framing requirements when the interface is displayed; A dot matrix data acquisition module, used for extracting dot matrix data of corresponding characters from the dot matrix pattern; The character dot matrix encapsulation module is used to set the attribute information of the character dot matrix corresponding to the dot matrix data of each character, and encapsulate to obtain a usable character dot matrix, including: According to the standard format of the character dot matrix, the attribute information of the character dot matrix corresponding to the character dot matrix data is set, including the size of the character dot matrix, the name and logo of the character set to which it belongs, the width, height and baseline initial position information of the character dot matrix display, and according to the use requirements of the language font library, the bold, italic and zoom ratio personalized configuration information of the character dot matrix is ​​set, wherein, if the computer system has a standard character set corresponding to the language characters, the name and logo of the character set to which the character dot matrix belongs are set according to the standard character set; if the computer system does not have a standard character set corresponding to the language characters, the name and logo of the character set to which the character dot matrix belongs are set in a customized manner; Encapsulating character dot matrix data and corresponding attribute information of the character dot matrix to obtain a usable character dot matrix; The character library establishment module is used to sort the encapsulated character dot matrix contained in each language, and sequentially assign internal codes to establish a coding correspondence, including: sorting the encapsulated character dot matrix according to the character sequence in the standard character set; assigning internal codes to the encapsulated character dot matrix according to the coding correspondence between the characters and the internal codes in the standard character set; if there is no standard character set of a target language in the computer system, sorting the encapsulated character dot matrix in a custom manner, and sequentially assigning internal codes to establish a coding correspondence; to obtain multiple single-language character dot matrix font files; The standard character set is a localized character set of a computer, which includes the encoding correspondence between characters and corresponding internal codes. Therefore, a character library is established according to the encoding correspondence, so that the encoding correspondence between the characters in the established character library and the internal codes is consistent with the encoding correspondence between the characters in the localized character set of the computer and the internal codes. A graphical development configuration module, used for configuring a plurality of said single-language character dot matrix font library files to obtain a multi-language standard library file; A graphic interface module is used to call the multi-language standard library file, switch the single-language character dot matrix font file to be displayed based on the font engine, and display the target language characters using a graphic interface, including: Create a graphics device and initialize the graphics device; Selecting a font engine corresponding to a target single-language character dot matrix font library file, and using the font engine to search for the target single-language character dot matrix font library file in the multi-language standard library file according to the attribute information of the character dot matrix; Creating a font according to the target single-language character dot matrix font library file found, obtaining an ID of the automatically assigned font, and selecting the font into a graphics context according to the font ID; Obtaining the first address of the character dot matrix in the target single-language character dot matrix font file corresponding to the font; The corresponding character dot matrix is ​​obtained according to the first address using the coding correspondence, and is displayed through a graphics device.

4. The multi-language interface generation system according to claim 3, characterized in that: The graphical development configuration module is further used to: Configuring the display device, display type and display parameters of the application environment of the single-language character dot matrix font file, and loading the single-language character dot matrix font file into a target path; Performing font configuration on each of the single-language character dot matrix font library files and compiling them to obtain a multi-language standard library file; And compile and obtain the driver of the selected graphics device corresponding to the multi-language standard library file.

Citation Information

Patent Citations

  • Implementation method of dot matrix word library of embedded system

    CN101008939A

  • Beam limiting device interface display method and device

    CN102379707A

  • A realization method of mixed output display of Chinese characters based on embedded operating system

    CN109375962A