CN112949257A - Character display method, device, equipment and computer readable storage medium - Google Patents

Character display method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112949257A
CN112949257A CN202110223034.7A CN202110223034A CN112949257A CN 112949257 A CN112949257 A CN 112949257A CN 202110223034 A CN202110223034 A CN 202110223034A CN 112949257 A CN112949257 A CN 112949257A
Authority
CN
China
Prior art keywords
unicode
character
characters
font data
address information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110223034.7A
Other languages
Chinese (zh)
Inventor
黄伟鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Invt Electric Co Ltd
Original Assignee
Shenzhen Invt Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN202110223034.7A priority Critical patent/CN112949257A/en
Publication of CN112949257A publication Critical patent/CN112949257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Abstract

The application discloses a character display method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction; acquiring address information of the font data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of font data; and obtaining the font data according to the address information, and displaying the font data to a display interface. The technical problems that when the characters to be displayed are required to be converted into the Unicode codes through a conversion tool, terminal hardware resources are consumed, and the display speed of the characters to be displayed is reduced are solved, and the display speed of the characters to be displayed is improved.

Description

Character display method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of display technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for displaying characters.
Background
In the application field of the LCD liquid crystal keyboard, in order to display the text content file on the LCD liquid crystal screen, the text content is usually independently stored in a FLASH memory, then read by an MCU, and finally displayed on the LCD liquid crystal screen in a driving way.
The LCD screen can display the language category of each country in the world. Different countries have corresponding character set codes, such as ASCII code, GB2312 character set, GB12345-90 character set, GBK character set, BIG5 character set, Universal Character Set (UCS) character set, etc. Therefore, when the LCD displays the language character sets of various countries, it is necessary to use the character sets commonly used in each country, and to know the encoding arrangement and addressing method of each character set. And then developing a corresponding conversion tool of the character set, namely converting the character set of each country into a binary coding file which can be read by a single chip microcomputer through the conversion tool. The converted binary code file is burned into a memory, so that the MCU can read the binary code file conveniently, but the corresponding coding addressing mode needs to be compiled when the mode is used for searching each character set, the coding rule is complex, and the character sets of each language need to develop a conversion tool corresponding to the character sets, so that time and labor are wasted.
Disclosure of Invention
The embodiment of the application aims to solve the technical problems of consuming terminal hardware resources and reducing the display speed of the character to be displayed when the character to be displayed is also required to be converted into the Unicode code by a conversion tool through providing a character display method, a device, equipment and a computer readable storage medium.
To achieve the above object, an aspect of the present application provides a character display method, including:
receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction;
acquiring address information of the font data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of font data;
and obtaining the font data according to the address information, and displaying the font data to a display interface.
Optionally, the step of obtaining, according to the Unicode code, address information of the font data corresponding to the Unicode code in a target file includes:
determining a language type corresponding to the Unicode;
acquiring an addressing mode of the language type;
and calculating to obtain the address information of the character module data corresponding to the Unicode according to the addressing mode.
Optionally, the step of obtaining address information of the data of the matrices corresponding to the Unicode code by calculation according to the addressing mode includes:
respectively acquiring the low order and the high order of the Unicode;
performing difference operation according to the high order and the high order of the initial code of the language type to obtain a first difference;
performing difference operation according to the low order and the low order of the initial code of the language type to obtain a second difference;
and adding the first difference value after moving the target digit number according to the target direction and the second difference value, and multiplying the value obtained by adding by the size of the font data to obtain the address information of the font data in the target file.
Optionally, before the step of obtaining, according to the Unicode code, address information of the font data corresponding to the Unicode code in the target file, the method includes:
acquiring characters containing various languages and parameter information corresponding to the characters;
converting the characters and the parameter information into a Unicode configuration file according to a Unicode conversion rule;
and combining the Unicode configuration file and the font file to obtain the target file.
Optionally, before the step of combining the Unicode configuration file and the font file to obtain the target file, the method includes:
copying the characters of each language type to a matrix generator in sequence;
controlling the font generator to generate the font data from the characters;
and saving the font data to obtain the font file.
Optionally, the step of controlling the matrix generator to generate the matrix data from the character includes:
acquiring the resolution of characters corresponding to each language type;
and controlling the character model generator to generate the character model data according to the resolution.
Optionally, after the step of obtaining the characters including various languages and the parameter information corresponding to the characters, the method further includes:
checking characters and the parameter information;
and adjusting the character and the parameter information when the character and the parameter information have errors.
In addition, to implement the foregoing embodiment, the present application further provides a character display method apparatus, including:
the device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for receiving a display instruction and acquiring a Unicode code of a character corresponding to the display instruction;
the second acquisition module is used for acquiring the address information of the character module data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of character module data;
and the display module is used for obtaining the font data according to the address information and displaying the font data to a display interface.
In addition, in order to implement the foregoing embodiments, the present application further provides a character display method apparatus, where the character display method apparatus includes a processor, a memory, and a character display program stored on the memory and executable on the processor, and the character display program implements the steps of any one of the character display methods described above when executed by the processor.
In addition, to implement the above embodiments, the present application also provides a computer-readable storage medium having a character display program stored thereon, where the character display program, when executed by a processor, implements the steps of the character display method as described in any one of the above.
According to the method and the device, when a display instruction input by a user is received, a Unicode code of a character corresponding to the display instruction is obtained based on a current display interface, corresponding font data are obtained in a target file through the Unicode, the font data are displayed on the display interface, the corresponding Unicode code can be directly obtained according to the display instruction when the display instruction is received, address information of the corresponding font data is directly found according to the Unicode in the target file containing the Unicode code and the font data, the font data are read through the address information, and the font data are displayed on the display interface. When a switching instruction is not required to be received, the characters to be displayed are converted into computer-readable Unicode codes through a conversion tool, and then the font data corresponding to the Unicode codes are obtained. The reading of the MCU is facilitated, the time required for the character conversion of the MCU is saved, and the speed of character matrix data display is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating an embodiment of a character display method of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a character display method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating another exemplary character display method of the present application;
FIG. 5 is a functional block diagram of a character display method according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction; acquiring address information of the font data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of font data; and obtaining the font data according to the address information, and displaying the font data to a display interface.
In the prior art, when the LCD displays language character sets of various countries, it is necessary to use the character sets commonly used in each country to know the coding arrangement and addressing mode of each character set. And then developing a corresponding conversion tool of the character set, namely converting the character set of each country into a binary coding file which can be read by a single chip microcomputer through the conversion tool. And the converted binary code file is burned into the memory, so that the MCU can conveniently read and display the binary code file.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a character display program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the character display program stored in the memory 1005 and perform the following operations:
receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction;
acquiring address information of the font data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of font data;
and obtaining the font data according to the address information, and displaying the font data to a display interface.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a character display method of the present application.
While the embodiments of the present application provide an embodiment of a character display method, it should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
The character display method includes:
step S10, receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction;
the method can be applied to any terminal formed by the LCD screen, such as a mobile phone, a computer, a television and the like of the LCD screen, wherein the terminal can receive a switching instruction input by a user and control different type matrix data to be displayed on a display interface-the LCD screen of the terminal according to the switching instruction so as to be read by the user and execute corresponding control operation.
The display instruction comprises a starting instruction input by a user when the terminal equipment is initialized and a switching instruction for switching the current display interface. The receiving mode of the display instruction can be obtained through an external hardware device connected with the terminal, such as a mouse, a keyboard, a remote controller, and the like, or can be obtained through a key integrally connected with the terminal.
In the application, the Unicode code of the character corresponding to the display instruction can be displayed by acquiring the display instruction input by the user.
It is to be understood that the characters described in this application are characters stored in advance in a target file. Specifically, the characters are correspondingly displayed through a preset connection relation, so that the characters corresponding to the switching instruction can be searched according to the connection relation when the switching instruction is received. For example, in the target file, the first-level title includes riding style, time and road charge, the second-level title includes subway, bicycle riding and taxi taking, the time corresponding to different transportation modes is respectively 20 minutes, 30 minutes and 15 minutes, the road charge spent is 8 yuan, 2 yuan and 16 yuan, only the first-level title is displayed in the initial interface, when the user clicks the riding time of the first-level title, the user is considered to need to display the second-level title corresponding to the time in the display interface, and the 20 minutes, 30 minutes and 15 minutes are displayed in the display interface, and it can be understood that the display mode in the display interface can be displayed according to the size set by the character model data corresponding to the characters of 20 minutes, 30 minutes, 15 minutes and the like and the size of the screen.
The Unicode is a ten thousand international code of characters to be displayed, and it can be understood that all characters in the machine language are stored in a Unicode mode. In the application, the characters to be displayed in the display interface and the Unicode codes thereof are stored in a one-to-one mode, so that the Unicode codes of the characters corresponding to the display instruction can be obtained when the display instruction is obtained.
And step S20, according to the Unicode, acquiring the address information of the font data corresponding to the Unicode in a target file, wherein the target file comprises characters of languages of various countries, Unicode codes and the address information of a plurality of font data.
The target file is a combined file of the configuration file and the font file, and comprises characters of languages of various countries, Unicode codes, parameter information, address information of a plurality of font data and the like.
In the application, when the configuration file and the font file are combined, the corresponding matching can be performed according to the coding sequence of the Unicode corresponding to the characters in the configuration file and the sequence of each font datum in the font file, the conversion of the font datum is controlled according to the sequence of the Unicode when the conversion is performed by the font conversion tool, and the font datum is stored in the font file. Thus, the address information of the character pattern data corresponding to the character can be directly acquired after the character is determined.
And step S30, obtaining the font data according to the address information, and displaying the font data to a display interface.
And the MCU of the terminal reads the address information of the character module data, obtains the character module data through the read address information and displays the character module data on a display interface.
According to the method and the device, when a display instruction input by a user is received, a Unicode code of a character corresponding to the display instruction is obtained based on a current display interface, corresponding font data are obtained in a target file through the Unicode, the font data are displayed on the display interface, the corresponding Unicode code can be directly obtained according to the display instruction when the display instruction is received, address information of the corresponding font data is directly found according to the Unicode in the target file containing the Unicode code and the font data, the font data are read through the address information, and the font data are displayed on the display interface. When a switching instruction is not required to be received, the characters to be displayed are converted into computer-readable Unicode codes through a conversion tool, and then the font data corresponding to the Unicode codes are obtained. The reading of the MCU is facilitated, the time required for the character conversion of the MCU is saved, and the speed of character matrix data display is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another embodiment of the present application. The step of acquiring the address information of the font data corresponding to the Unicode in the target file according to the Unicode comprises the following steps:
step S21, determining the language type corresponding to the Unicode;
it will be appreciated that the current characters are laid out in 17 groups, 0x0000 to 0x10FFFF, each group being called a Plane (Plane), and each Plane having 65536 code bits for a total of 1114112. The Unicode code converts characters of all countries in the world into a computer-readable Unicode code, and specifically, assigns a corresponding Unicode coding range to characters required by a language used in each country.
Step S22, obtaining the addressing mode of the language type;
the addressing mode is a method for obtaining address information of the matrix data.
In this embodiment, the Unicode encoding ranges used according to the language types of different countries are different, so that when a Unicode is acquired, the language type of the Unicode is determined by the acquired Unicode, and an addressing mode corresponding to the language type is further obtained. The addressing modes corresponding to different countries are different.
And step S23, calculating and obtaining the address information of the character module data corresponding to the Unicode according to the addressing mode.
And then calculating by an addressing mode to obtain the address information of the character module data corresponding to the Unicode code.
The step of obtaining the font data corresponding to the Unicode code by calculation according to the addressing mode comprises the following steps:
step S231, respectively acquiring the low order and the high order of the Unicode;
step S232, performing difference operation according to the high order and the high order of the initial coding of the language type to obtain a first difference;
step S233, difference operation is carried out according to the low order and the low order of the initial code of the language type to obtain a second difference;
step S234, adding the first difference value after moving the target digit number according to the target direction, and multiplying the value obtained by the addition by the size of the font data to obtain the address information of the font data in the target file.
The target direction may be a direction in which the upper bits need to be moved when the upper bits and the lower bits are added, and the target number of bits is a number of bits in which the upper bits need to be moved when the upper bits and the lower bits are added. Specifically, in the embodiment, the first difference value is a difference value of high bits, the second difference value is a difference value of low bits, the first difference value (high bits) is first shifted to the left when the high bits and the low bits are added, and the storage byte of the Unicode code in this application is 2B, so when the high bits and the low bits are added, the high bits need to be shifted to the left by one byte, i.e. 8 bits, i.e. the value of the high bits is expanded by 2 bits8(256) And (4) doubling.
It will be appreciated that each Unicode encoded storage byte is 2B, the upper order is the first byte of the storage byte, and the lower order is the second byte of each Unicode encoded storage byte. In this embodiment, the high order is the Unicode code, and after the Unicode code is acquired, the high order and the low order of the Unicode code are acquired.
And then obtaining the high order of the initial code of the language type from the high order of the Unicode code to perform difference operation to obtain a first difference value, and then performing difference operation on the low order of the Unicode code and the low order of the initial code of the language type to obtain a second difference value. And the first difference is added with the second difference after being shifted to the left by 8 bits, and the value obtained by the addition is multiplied by the size of the font data to obtain the address information of the font data in the target file. Specific examples are as follows: when the obtained Unicode code is 529F, and the Unicode code is in the range of 4E00-9FFF, determining that the language type of the Unicode is Chinese type, and obtaining the addressing mode F of the Chinese type as follows: f ═ H [ (H-0x4E) × 256+ (L-0x00) ] × 28
H: high order of Chinese characters, L: the low order of Chinese characters, the size of the Chinese type character module data is 28 bytes;
the high-order H is 0x52 and the low-order L is 0x9f by Unicode coding 0x529f of the character work, further the address information of the work in the target file is obtained by obtaining the addressing address [ (0x52-0x4E) × 256+ (0x9f-0x00) ] 28 ═ 0x8164 (decimal 33124) by an addressing mode, and further the character modulus data of the work is obtained by the address information 0x 8164.
The initial encoding may be set autonomously by a user without limiting the Unicode encoding of the first character corresponding to the language type. In the embodiment, the initial codes of different languages can be set as the Unicode codes in the middle of the language range, so that the time for facilitating the font data one by one when the first character is used as the Unicode code is shortened, and the efficiency of acquiring the font data is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of another embodiment of the present application. Before the step of obtaining the font data corresponding to the Unicode in the target file according to the Unicode, the method comprises the following steps:
step S01, acquiring characters containing various languages and parameter information corresponding to the characters;
step S02, converting the characters and the parameter information into a Unicode configuration file according to a Unicode conversion rule;
and step S03, combining the Unicode configuration file and the font file to obtain the target file.
In the present application, it is first necessary to set characters of different language types and parameter information corresponding to the characters, where the parameter information includes display sizes of the characters and the like.
The characters and the parameter information corresponding to the characters are converted into hexadecimal Unicode configuration files by the conversion rules of the Unicode conversion tool, and are stored, for example, for the character "successful" converted into "529F". And then combining the Unicode configuration file and the font file to obtain the target file. And then, when the Unicode code is read, the address information of the font data corresponding to the Unicode is obtained in the target file, so that the font data can be obtained without a process of coding arrangement, and the obtaining efficiency of the font data is improved.
Before the step of combining the Unicode configuration file and the font file to obtain the target file, the method comprises the following steps:
step S04, copying the characters of each language type to the matrix generator in sequence;
step S05, controlling the matrix generator to generate the matrix data from the character;
and step S06, saving the font data to obtain the font file.
The character module data is taken according to the character range of each country corresponding to the character set, for example, the range of the basic Chinese character set is 4E00-9FFF, total 20902 Chinese characters, the range of the basic Latin letters is 0020-. The characters are numbered according to the sequence of each language character arrangement, the character model data are generated through character model software to obtain a character model file, and a foundation is provided for the MCU to obtain the character model data through the Unicode coding. The step of controlling the matrix generator to generate the matrix data from the characters comprises:
step S051, acquiring the resolution of the character corresponding to each language type;
and step S052 of controlling the matrix generator to generate the matrix data from the character according to the resolution.
In the present application, when the matrix generator generates matrix data in the encoding order of characters, the Unicode encoding is controlled to generate the matrix data.
And making font data according to the size of each character distribution displayed on the LCD screen so as to display the font data on the LCD screen according to the preset size.
After the step of acquiring the characters including various languages and the parameter information corresponding to the characters, the method further includes:
step S07, checking the character and the parameter information;
and step S08, when the character and the parameter information have errors, adjusting the character and the parameter information.
In the application, before the corresponding Unicode codes are generated by the characters and the parameter information, whether errors exist in the characters and the parameter information or not can be checked, and when the errors exist, the characters and the parameter information with the errors are adjusted, so that the correctness of generating the Unicode configuration file is improved.
In addition, referring to fig. 5, fig. 5 is a block diagram of the present application. In order to implement the foregoing embodiments, the present application further provides a character display method apparatus, including:
a first obtaining module 10, configured to receive a display instruction, and obtain a Unicode code of a character corresponding to the display instruction;
a second obtaining module 20, configured to obtain, according to the Unicode code, address information of the font data corresponding to the Unicode code in a target file, where the target file includes characters of languages, Unicode codes, and address information of multiple font data;
and the display module 30 is configured to obtain the font data according to the address information, and display the font data on a display interface.
In addition, in order to implement the foregoing embodiments, the present application further provides a character display method apparatus, where the character display method apparatus includes a processor, a memory, and a character display program stored on the memory and executable on the processor, and the character display program implements the steps of any one of the character display methods described above when executed by the processor.
In addition, to implement the above embodiments, the present application also provides a computer-readable storage medium having a character display program stored thereon, where the character display program, when executed by a processor, implements the steps of the character display method as described in any one of the above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A character display method, characterized in that the character display method comprises:
receiving a display instruction, and acquiring a Unicode code of a character corresponding to the display instruction;
acquiring address information of the font data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of font data;
and obtaining the font data according to the address information, and displaying the font data to a display interface.
2. The character display method according to claim 1, wherein the step of obtaining address information of the font data corresponding to the Unicode code in the object file according to the Unicode code comprises:
determining a language type corresponding to the Unicode;
acquiring an addressing mode of the language type;
and calculating to obtain the address information of the character module data corresponding to the Unicode according to the addressing mode.
3. The character display method of claim 2, wherein the step of calculating the address information of the font data corresponding to the Unicode code according to the addressing mode comprises:
respectively acquiring the low order and the high order of the Unicode;
performing difference operation according to the high order and the high order of the initial code of the language type to obtain a first difference;
performing difference operation according to the low order and the low order of the initial code of the language type to obtain a second difference;
and adding the first difference value after moving the target digit number according to the target direction and the second difference value, and multiplying the value obtained by adding by the size of the font data to obtain the address information of the font data in the target file.
4. The character display method according to claim 1, wherein the step of obtaining address information of the font data corresponding to the Unicode code in the target file according to the Unicode code is preceded by:
acquiring characters containing various languages and parameter information corresponding to the characters;
converting the characters and the parameter information into a Unicode configuration file according to a Unicode conversion rule;
and combining the Unicode configuration file and the font file to obtain the target file.
5. The method for displaying characters according to claim 4, wherein said step of combining said Unicode configuration file with a font file to obtain said target file comprises:
copying the characters of each language type to a matrix generator in sequence;
controlling the font generator to generate the font data from the characters;
and saving the font data to obtain the font file.
6. The character display method of claim 5, wherein the step of controlling the matrix generator to generate the character into the matrix data comprises:
acquiring the resolution of characters corresponding to each language type;
and controlling the character model generator to generate the character model data according to the resolution.
7. The character display method according to claim 4, wherein after the step of acquiring the characters containing various languages and the parameter information corresponding to the characters, the method further comprises:
checking characters and the parameter information;
and adjusting the character and the parameter information when the character and the parameter information have errors.
8. A character display method apparatus, comprising:
the device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for receiving a display instruction and acquiring a Unicode code of a character corresponding to the display instruction;
the second acquisition module is used for acquiring the address information of the character module data corresponding to the Unicode in a target file according to the Unicode, wherein the target file comprises characters of languages of all countries, Unicode codes and address information of a plurality of character module data;
and the display module is used for obtaining the font data according to the address information and displaying the font data to a display interface.
9. A character display method apparatus, characterized in that the character display method apparatus comprises a processor, a memory and a character display program stored on the memory and executable on the processor, the character display program, when executed by the processor, implementing the steps of the character display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a character display program is stored thereon, which when executed by a processor implements the steps of the character display method according to any one of claims 1 to 7.
CN202110223034.7A 2021-02-26 2021-02-26 Character display method, device, equipment and computer readable storage medium Pending CN112949257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110223034.7A CN112949257A (en) 2021-02-26 2021-02-26 Character display method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110223034.7A CN112949257A (en) 2021-02-26 2021-02-26 Character display method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112949257A true CN112949257A (en) 2021-06-11

Family

ID=76246833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110223034.7A Pending CN112949257A (en) 2021-02-26 2021-02-26 Character display method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112949257A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1737822A (en) * 2004-05-20 2006-02-22 微软公司 Low resolution optical character recognition for camera acquired documents
CN101110068A (en) * 2007-08-21 2008-01-23 无敌科技(西安)有限公司 Encoding method suitable for single codeword lattice character library
CN101266776A (en) * 2008-04-21 2008-09-17 哈尔滨侨航通信设备有限公司 A method for displaying any language at a hardware terminal via establishing lattice word library
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
US20120046949A1 (en) * 2010-08-23 2012-02-23 Patrick John Leddy Method and apparatus for generating and distributing a hybrid voice recording derived from vocal attributes of a reference voice and a subject voice
CN102750337A (en) * 2012-06-01 2012-10-24 中国科学院声学研究所 Producing method and device for font
CN102799590A (en) * 2011-05-26 2012-11-28 安凯(广州)微电子技术有限公司 Embedded type electronic product word stock as well as word stock generating method and word stock searching method
US20170364702A1 (en) * 2015-06-02 2017-12-21 ALTR Solutions, Inc. Internal controls engine and reporting of events generated by a network or associated applications
CN109086256A (en) * 2018-07-12 2018-12-25 郑州众智科技股份有限公司 A kind of generation and application method of the character library dot matrix that length is variable
CN110147330A (en) * 2019-05-23 2019-08-20 深圳市创维软件有限公司 A kind of caching method of character pattern data, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1737822A (en) * 2004-05-20 2006-02-22 微软公司 Low resolution optical character recognition for camera acquired documents
CN101110068A (en) * 2007-08-21 2008-01-23 无敌科技(西安)有限公司 Encoding method suitable for single codeword lattice character library
CN101266776A (en) * 2008-04-21 2008-09-17 哈尔滨侨航通信设备有限公司 A method for displaying any language at a hardware terminal via establishing lattice word library
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
US20120046949A1 (en) * 2010-08-23 2012-02-23 Patrick John Leddy Method and apparatus for generating and distributing a hybrid voice recording derived from vocal attributes of a reference voice and a subject voice
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
CN102799590A (en) * 2011-05-26 2012-11-28 安凯(广州)微电子技术有限公司 Embedded type electronic product word stock as well as word stock generating method and word stock searching method
CN102750337A (en) * 2012-06-01 2012-10-24 中国科学院声学研究所 Producing method and device for font
US20170364702A1 (en) * 2015-06-02 2017-12-21 ALTR Solutions, Inc. Internal controls engine and reporting of events generated by a network or associated applications
CN109086256A (en) * 2018-07-12 2018-12-25 郑州众智科技股份有限公司 A kind of generation and application method of the character library dot matrix that length is variable
CN110147330A (en) * 2019-05-23 2019-08-20 深圳市创维软件有限公司 A kind of caching method of character pattern data, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张一娇;田书林;张沁川;: "示波器多国语言的设计与实现", 自动化仪表, no. 06 *
王健飞;郭志川;叶晓舟;刘春梅;: "一种嵌入式系统汉语与维吾尔语双语显示的方法", 网络新媒体技术, no. 02 *
陈小朴, 曾育星, 沈烈: "在嵌入式操作系统中嵌入中文字库方法的探讨", 机电产品开发与创新, no. 01 *

Similar Documents

Publication Publication Date Title
CN108388598B (en) Electronic device, data storage method, and storage medium
US5682158A (en) Code converter with truncation processing
US5784069A (en) Bidirectional code converter
CN107133199B (en) Acquiring font parts using a compression mechanism
CN112948427B (en) Data query method, device, equipment and storage medium
CN111104197A (en) Display language switching method and device and storage medium
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN110990008B (en) Page updating method and device, storage medium and electronic equipment
KR20030072574A (en) Large character set browser
CN112464619B (en) Big data processing method, device and equipment and computer readable storage medium
CN113032275A (en) Method and device for testing field, electronic equipment and storage medium
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
CN107643906B (en) Data processing method and device
CN112949257A (en) Character display method, device, equipment and computer readable storage medium
CN112380238A (en) Database data query method and device, electronic equipment and storage medium
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
WO1997010556A9 (en) Unicode converter
CN111143398B (en) Extra-large set query method and device based on extended SQL function
CN109840080B (en) Character attribute comparison method and device, storage medium and electronic equipment
CN111225005B (en) Push content generation method and device, electronic equipment and computer storage medium
CN112612427A (en) Vehicle stop data processing method and device, storage medium and terminal
CN112015425A (en) Data storage method, data reading device, electronic equipment and storage medium
EP0852037B1 (en) Unicode converter
CN113672565B (en) File marking method and device, electronic equipment and storage medium
CN107729013B (en) Method for managing operation buttons on web page and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination