Processing method and device for multi-language text display in embedded device
By finding and requesting target characters in an embedded device, obtaining and displaying multilingual text from the target download source, the problem of character restriction in the local text library is solved, and the rich display of multilingual text is achieved.
Patent Information
- Application Number
- CN202310628732.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-12-03
AI Technical Summary
The local text library of embedded devices only supports a fixed number of characters, resulting in limited display content and inability to effectively display multilingual text.
Find the target character through the search command. If it is not found in the local text library, send request information to the target download source (such as cloud server or upper computer) to obtain the target character and display it on the display screen. Use different character size information to find it The corresponding local text library is stored.
It realizes the support of full font library on low-performance embedded devices, including multilingual target characters, enriches the display content and avoids fixed character restrictions.
Smart Images

Figure CN119065750A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular to a processing method and device for displaying multi-language text in an embedded device. Background Art
[0002] In the related art, when executing text display on an embedded device, the text display characters can only be written into the local text library in advance through a specified writing tool. Since the local text library only supports a fixed number of characters, the local text library is incomplete, which in turn limits the display content when the embedded device calls the local text library for character display. Summary of the invention
[0003] The present disclosure provides a processing method, device, electronic device and storage medium for displaying multilingual text in an embedded device. The main purpose is to solve the problem that the local text library is incomplete because the local text library only supports a fixed number of characters, thereby limiting the display content when the embedded device calls the local text library for character display.
[0004] According to a first aspect of the present disclosure, a method for processing multilingual text display in an embedded device is provided, comprising:
[0005] According to the search instruction of the character to be displayed, the corresponding target character is searched;
[0006] If the target character is not found, sending a request message for obtaining the target character to the target download source;
[0007] The target character sent by the target download source is received, and the target character is displayed on a display screen of the embedded device.
[0008] In some embodiments, the target download source includes a cloud server, and sending a request message for obtaining the target character to the target download source includes:
[0009] Writing the target characters to be downloaded into a first download list, wherein the first download list is used to temporarily store the target characters to be downloaded;
[0010] The target characters to be downloaded are read from the first download list, and request information for downloading the target characters is sent to the cloud server.
[0011] In some embodiments, the target download source includes a host computer connected via a physical bus, and the sending of request information for obtaining the target character to the target download source includes:
[0012] Writing the target characters to be downloaded into a second download list, wherein the second download list is used to temporarily store the target characters to be downloaded;
[0013] The target character to be downloaded is read from the second download list, and request information for downloading the target character is sent to the host computer.
[0014] In some embodiments, after receiving the target character sent by the target download source, the method further includes:
[0015] Acquire character size information corresponding to the target character sent by the target download source;
[0016] searching a corresponding local text library according to the character size information, wherein different character size information corresponds to different local text libraries;
[0017] The target characters are stored in the local text library according to the storage order of the local text library.
[0018] In some embodiments, displaying the target character on a display screen of the embedded device includes:
[0019] A preset drawing function is called to draw the target character received from the target download source on the display screen of the embedded device.
[0020] According to a second aspect of the present disclosure, a method for processing multilingual text display in an embedded device is provided, characterized by comprising:
[0021] Receiving a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when a corresponding target character is not found;
[0022] Searching for a target character corresponding to the character to be displayed according to the request information;
[0023] The target character is sent to the embedded device.
[0024] According to a third aspect of the present disclosure, a processing device for displaying multilingual text in an embedded device is provided, comprising:
[0025] A first search unit, used to search for a corresponding target character according to a search instruction of a character to be displayed;
[0026] A sending unit, used for sending a request message for obtaining the target character to a target download source when the target character is not found;
[0027] A receiving unit, used for receiving the target character sent by the target download source;
[0028] A display unit is used to display the target character on the display screen of the embedded device.
[0029] In some embodiments, the target download source includes a cloud server, and the sending unit is further configured to:
[0030] Writing the target characters to be downloaded into a first download list, wherein the first download list is used to temporarily store the target characters to be downloaded;
[0031] The target characters to be downloaded are read from the first download list, and request information for downloading the target characters is sent to the cloud server.
[0032] In some embodiments, the target download source includes a host computer connected via a physical bus, and the sending unit is further used to:
[0033] Writing the target characters to be downloaded into a second download list, wherein the second download list is used to temporarily store the target characters to be downloaded;
[0034] The target character to be downloaded is read from the second download list, and request information for downloading the target character is sent to the host computer.
[0035] In some embodiments, the apparatus further comprises:
[0036] an acquiring unit, configured to acquire character size information corresponding to the target character sent by the target download source after the receiving unit receives the target character sent by the target download source;
[0037] A second search unit, configured to search a corresponding local text library according to the character size information, wherein different character size information corresponds to different local text libraries;
[0038] The storage unit is used to store the target characters in the local text library according to the storage order of the local text library.
[0039] In some embodiments, the display unit is further used to call a preset drawing function to draw the target character received from the target download source on the display screen of the embedded device.
[0040] According to a fourth aspect of the present disclosure, a processing device for displaying multilingual text in an embedded device is provided, comprising:
[0041] A receiving unit, configured to receive a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when the corresponding target character is not found;
[0042] A searching unit, configured to search for a target character corresponding to the character to be displayed according to the request information;
[0043] A sending unit is used to send the target character to the embedded device.
[0044] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:
[0045] at least one processor; and
[0046] a memory communicatively connected to the at least one processor; wherein,
[0047] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect or the second aspect.
[0048] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect or the second aspect.
[0049] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect or the second aspect.
[0050] The processing method and device for displaying multilingual text in an embedded device provided by the present disclosure searches for corresponding target characters according to the search instruction of the characters to be displayed; if the target characters are not found, sends a request message to a target download source to obtain the target characters; receives the target characters sent by the target download source, and displays the target characters on the display screen of the embedded device. Compared with the related art, which only supports a fixed number of characters, resulting in an incomplete text library of the embedded device, the embodiment of the present application obtains the corresponding target characters by sending a request message to the target download source. Since the target download source has no fixed number of character restrictions, it supports the full character library (including target characters in multiple languages) on a low-performance embedded device, thereby enriching the display content.
[0051] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0053] Figure 1A flowchart of a method for processing multi-language text display in an embedded device provided by an embodiment of the present disclosure;
[0054] Figure 2 A schematic diagram of character size information provided by an embodiment of the present disclosure;
[0055] Figure 3 A flowchart of another method for processing multi-language text display in an embedded device provided by an embodiment of the present disclosure;
[0056] Figure 4 A flowchart of another method for processing multi-language text display in an embedded device provided by an embodiment of the present disclosure;
[0057] Figure 5 A schematic diagram of the structure of a processing device for displaying multi-language text in an embedded device provided by an embodiment of the present disclosure;
[0058] Figure 6 A schematic diagram of the structure of another processing device for displaying multi-language text in an embedded device provided by an embodiment of the present disclosure;
[0059] Figure 7 A schematic diagram of the structure of another processing device for displaying multi-language text in an embedded device provided by an embodiment of the present disclosure;
[0060] Figure 8 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0062] The following describes a method, apparatus, electronic device, and storage medium for processing multi-language text display in an embedded device according to an embodiment of the present disclosure with reference to the accompanying drawings.
[0063] Figure 1 A flowchart of a method for processing multi-language text display in an embedded device provided by an embodiment of the present disclosure is provided.
[0064] like Figure 1 As shown, the method comprises the following steps:
[0065] Step 101, searching for corresponding target characters according to a search instruction for characters to be displayed.
[0066] The characters to be displayed are input through a preset input device, and in response to the triggered query instruction for the characters to be displayed, the corresponding target display characters are searched in the local text library. In the embodiment of the present application, the local text library includes but is not limited to storing 26 English characters, numbers, Chinese characters, characters of various languages, etc. Specifically, the embodiment of the present application does not limit the storage content of the local text library.
[0067] It should be noted that when searching for the corresponding target character, searching the local text library first can ensure the search speed. After determining that the target character cannot be found in the local text library, step 102 is performed.
[0068] Taking the target character as Chinese character as an example, the byte string corresponding to the UTF-8 encoding of the character to be displayed usually only needs to occupy less than three bytes. In the local text library, the corresponding node of the UTF-8 of the text is searched, and the corresponding node in the ordered list can be quickly found through the binary search method, saving CPU processing time. The above example is an explanation based on UTF-8 encoding as an example, and UTF-16 encoding or UTF-32 encoding, etc. can also be used. Specifically, the embodiments of this application are not limited.
[0069] Step 102: If the target character is not found, a request message for obtaining the target character is sent to a target download source.
[0070] The target download source described in the embodiment of the present application includes but is not limited to a server and a host computer with a physical connection relationship. The server and the host computer record 26 English characters, numbers, Chinese characters, various types of other characters, etc. The specific contents contained in the server and the host computer are not limited in the embodiment of the present application.
[0071] It should be noted that, compared with the related art, the embodiment of the present application not only enriches the display content but also realizes the timely update of the text library by obtaining the target characters through the cloud server and the host computer.
[0072] Step 103: receiving the target character sent by the target download source, and displaying the target character on the display screen of the embedded device.
[0073] After the target download source queries the target character, the target character is returned to the embedded device. The embedded device receives the target character sent by the target download source and calls the underlying drawing function to draw it on the display screen of the embedded device, completing the display of multi-language text on the embedded device.
[0074] The processing method for displaying multilingual text in an embedded device provided by the present disclosure searches for corresponding target characters according to a search instruction for characters to be displayed; if the target characters are not found, sends a request message to a target download source to obtain the target characters; receives the target characters sent by the target download source, and displays the target characters on the display screen of the embedded device. Compared with the related art, which only supports a fixed number of characters, resulting in an incomplete text library of the embedded device, the embodiment of the present application obtains the corresponding target characters by sending a request message to the target download source. Since the target download source has no fixed number of character restrictions, it supports the full character library (including target characters in multiple languages) on a low-performance embedded device, thereby enriching the display content.
[0075] It can be seen from the above embodiments that the target download source includes but is not limited to a cloud server and a host computer connected via a physical bus. The following two methods will describe in detail the process of sending request information for obtaining the target character to different target download sources:
[0076] Method 1: When the target download source is a cloud server, the target characters to be downloaded are written into a first download list, which is used to temporarily store the target characters to be downloaded; the target characters to be downloaded are read from the first download list, and a request message for downloading the target characters is sent to the cloud server.
[0077] In the example of step 101, after determining that the target character is not found in the local text library, the byte string corresponding to the UTF-8 encoding (the target character to be downloaded) is added to the first download list, and the first download list is used to temporarily store the target character to be downloaded. When writing to the first download list, the size information of the target character (including the character width and the character length) is carried. The target character to be downloaded is read from the first download list, and a request information for downloading the target character to be downloaded is sent to the cloud server through the HyperText Transfer Protocol (HTTP), so that the cloud server responds to the request information.
[0078] Method 2: The target download source is a host computer connected to the embedded device through a physical bus. The target characters to be downloaded are written into a second download list, and the second download list is used to temporarily store the target characters to be downloaded. The target characters to be downloaded are read from the second download list, and a request information for downloading the target characters is sent to the host computer.
[0079] In the example of step 101, after determining that the target character is not found in the local text library, the byte string corresponding to the UTF-8 encoding (the target character to be downloaded) is added to the second download list, and the second download list is used to temporarily store the target character to be downloaded. When writing the second download list, the size information of the target character (including the character width and the character length) is carried, and the target character to be downloaded is read from the second download list, and a request information for downloading the target character is sent to the host computer through any bus protocol, so that the host computer responds to the request information.
[0080] It should be noted that the first download list and the second download list described in the embodiment of the present application do not have any meaning such as priority. The first and second are only used to distinguish different download lists corresponding to different request methods. In actual applications, they may be the same download list or different ones, and the specific display form is not limited.
[0081] After sending a request message for obtaining the target character to the target download source based on the above-mentioned method 1 and method 2, and receiving the target character sent by the target download source, the target character received from the target download source is stored in the local text library according to the storage order of the local text library. The target character sent by the target download source is stored in the local text library, and its purpose is to speed up the speed of searching for the target character.
[0082] When storing the target characters sent by the target download source in the local text library, it is necessary to first determine whether the target characters exist in the local text library. After determining that the target characters do not exist in the local text library, the target characters sent by the target download source are stored in the local text library in the storage order according to the storage order of the local text library. For example, assuming that the local text library is in the form of a linked list, the data is stored in order according to the storage location of the unstored data in the linked list to ensure the orderly storage of the linked list.
[0083] As a refinement of step 101, when searching for the corresponding target character according to the character search instruction to be displayed, the following methods may be adopted but are not limited to: in response to the character search instruction to be displayed, obtaining the character size information corresponding to the character to be displayed; searching for the corresponding target character from the local text library according to the character size information, wherein different character size information corresponds to different local text libraries. The target characters in the local text library exist in the form of dot matrix sets, and the dot matrix set sizes corresponding to the target characters with different size information are also different, and the dot matrix set size is not specifically limited.
[0084] In order to facilitate the understanding of character size information, such as Figure 2 As shown, Figure 2A schematic diagram of character size information provided by an embodiment of the present application is shown, and the target characters "B" and "Han" are used as examples for explanation. The character width of the target character B is 8 and the character length is 12, and the character width of the target character Han is 16 and the character length is 12. It should be noted that the above examples are only for illustration and do not limit the specific character width and length. The character size information of the target character is determined according to the character size capacity supported by the target download source, and its specific value is not limited.
[0085] After the target character is found, a preset drawing function is called according to the dot matrix set corresponding to the target character, and the target character received from the target download source is drawn on the display screen of the embedded device. The preset drawing functions include but are not limited to void LCD_P6x8Str(u8 x,u8 y,u8*ch,const u8*F6x8), void LCD_P8x16Str(u8 x,u8 y,u8*ch,const u8*F8x16), void LCD_P14x16Str(u8 x,u8 y,u8ch[],const u8*F14x16_Idx,const u8*F14x16), void LCD_P16x16Str(u8 x,u8 y,u8*ch,const u8*F16x16_Idx,const u8*F16x16), and void LCD_P16x32Str(u8 x,u8 y,u8*ch,const u8*F16x32). Specifically, the embodiments of the present application do not limit the preset drawing functions.
[0086] The present application also provides a method for processing multi-language text display in an embedded device, such as Figure 3 As shown, the method includes:
[0087] Step 201, in response to the to-be-displayed character search instruction, obtaining character size information corresponding to the to-be-displayed character;
[0088] Step 202: searching the local text library for the corresponding target character according to the character size information.
[0089] When the target character is not found in the local text library, step 203 or step 204 is executed. When the target character is found in the local text library, step 208 is executed.
[0090] Step 203, write the target characters to be downloaded into a first download list, the first download list is used to temporarily store the target characters to be downloaded, read the target characters to be downloaded from the first download list, and send a request message for downloading the target characters to a cloud server.
[0091] Step 204, write the target characters to be downloaded into a second download list, the second download list is used to temporarily store the target characters to be downloaded, read the target characters to be downloaded from the second download list, and send a request message for downloading the target characters to a host computer.
[0092] Step 205, receiving the target character sent by the cloud server or the host computer.
[0093] Step 206, obtaining character size information corresponding to the target character, and searching a corresponding local text library according to the character size information, wherein different character size information corresponds to different local text libraries;
[0094] Step 207: store the target characters in the local text library according to the storage order of the local text library.
[0095] Step 208: calling a preset drawing function to display the target character found in the local text library on the display screen of the embedded device.
[0096] For the description of steps 201 to 208, please refer to the above detailed description.
[0097] The present application also provides a method for processing multi-language text display in an embedded device, such as Figure 4 As shown, including:
[0098] Step 301: receiving a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when the corresponding target character is not found.
[0099] The method is applied to a cloud server, or a host computer connected to the embedded device through a physical bus, collectively referred to as a target download source.
[0100] When the embedded device fails to find the target character in its local text library, it sends a request message for obtaining the target character to the target download source.
[0101] Step 302: searching for a target character corresponding to the character to be displayed according to the request information.
[0102] The target download source stores target characters in multiple languages, including 26 English characters, numbers, Chinese characters, various types of other characters, etc. The specific target characters contained in the server and the host computer are not limited in the embodiment of the present application.
[0103] Step 303: Send the target character to the embedded device.
[0104] The target download source sends the found target character to the embedded device, so that after receiving the target character, the embedded device calls a preset drawing function to draw the target character received from the target download source on the display screen of the embedded device.
[0105] Corresponding to the above-mentioned method for processing multilingual text display in an embedded device, the present invention also provides a device for processing multilingual text display in an embedded device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0106] Figure 5 A schematic diagram of a structure of a processing device for displaying multilingual text in an embedded device provided by an embodiment of the present disclosure, such as Figure 5 As shown, including:
[0107] A first search unit 41 is used to search for a corresponding target character according to a search instruction of a character to be displayed;
[0108] The sending unit 42 is used to send a request message for obtaining the target character to a target download source when the target character is not found;
[0109] The receiving unit 43 is used to receive the target character sent by the target download source;
[0110] The display unit 44 is used to display the target character on the display screen of the embedded device.
[0111] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the target download source includes a cloud server, and the sending unit 42 is further used for:
[0112] Writing the target characters to be downloaded into a first download list, wherein the first download list is used to temporarily store the target characters to be downloaded;
[0113] The target characters to be downloaded are read from the first download list, and request information for downloading the target characters is sent to the cloud server.
[0114] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the target download source includes a host computer connected via a physical bus, and the sending unit 42 is also used for:
[0115] Writing the target characters to be downloaded into a second download list, wherein the second download list is used to temporarily store the target characters to be downloaded;
[0116] The target character to be downloaded is read from the second download list, and request information for downloading the target character is sent to the host computer.
[0117] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the device also includes:
[0118] An acquiring unit 45 is configured to acquire character size information corresponding to the target character sent by the target download source after the receiving unit receives the target character sent by the target download source;
[0119] A second search unit 46 is used to search the corresponding local text library according to the character size information, wherein different character size information corresponds to different local text libraries;
[0120] The storage unit 47 is used to store the target characters in the local text library according to the storage order of the local text library.
[0121] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the display unit 44 is further used to call a preset drawing function to draw the target character received from the target download source on the display screen of the embedded device.
[0122] Figure 7 A schematic diagram of a structure of a processing device for displaying multilingual text in an embedded device provided by an embodiment of the present disclosure, such as Figure 7 As shown, including:
[0123] The receiving unit 51 is used to receive a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when the corresponding target character is not found;
[0124] A searching unit 52, configured to search for a target character corresponding to the character to be displayed according to the request information;
[0125] The sending unit 53 is used to send the target character to the embedded device.
[0126] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0127] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0128] Figure 8A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0129] like Figure 8 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.
[0130] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0131] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a processing method for displaying multilingual text in an embedded device. For example, in some embodiments, the processing method for displaying multilingual text in an embedded device may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned processing method for displaying multi-language texts in an embedded device in any other appropriate manner (for example, by means of firmware).
[0132] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0133] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0136] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0137] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0138] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0139] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0140] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing multi-language text display in an embedded device, characterized in that: include: According to the search instruction of the character to be displayed, the corresponding target character is searched; If the target character is not found, sending a request message for obtaining the target character to the target download source; The target character sent by the target download source is received, and the target character is displayed on a display screen of the embedded device.
2. The method according to claim 1, characterized in that: The target download source includes a cloud server, and the sending of request information for obtaining the target character to the target download source includes: Writing the target characters to be downloaded into a first download list, wherein the first download list is used to temporarily store the target characters to be downloaded; The target characters to be downloaded are read from the first download list, and request information for downloading the target characters is sent to the cloud server.
3. The method according to claim 1, characterized in that: The target download source includes a host computer connected via a physical bus, and the request information for obtaining the target character is sent to the target download source including: Writing the target characters to be downloaded into a second download list, wherein the second download list is used to temporarily store the target characters to be downloaded; The target character to be downloaded is read from the second download list, and request information for downloading the target character is sent to the host computer.
4. The method according to claim 1, characterized in that: After receiving the target character sent by the target download source, the method further includes: Acquire character size information corresponding to the target character sent by the target download source; searching a corresponding local text library according to the character size information, wherein different character size information corresponds to different local text libraries; The target characters are stored in the local text library according to the storage order of the local text library.
5. The method according to any one of claims 1 to 4, characterized in that The displaying of the target character on the display screen of the embedded device comprises: A preset drawing function is called to draw the target character received from the target download source on the display screen of the embedded device.
6. A method for processing multi-language text display in an embedded device, characterized in that: include: Receiving a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when a corresponding target character is not found; Searching for a target character corresponding to the character to be displayed according to the request information; The target character is sent to the embedded device.
7. A processing device for displaying multilingual text in an embedded device, characterized in that: include: A first search unit, used to search for a corresponding target character according to a search instruction of a character to be displayed; A sending unit, used for sending a request message for obtaining the target character to a target download source when the target character is not found; A receiving unit, used for receiving the target character sent by the target download source; A display unit is used to display the target character on the display screen of the embedded device.
8. A processing device for displaying multilingual text in an embedded device, characterized in that: include: A receiving unit, configured to receive a request message for obtaining a target character sent by an embedded device, wherein the request message is triggered according to a search instruction for a character to be displayed when the corresponding target character is not found; A searching unit, configured to search for a target character corresponding to the character to be displayed according to the request information; A sending unit is used to send the target character to the embedded device.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5 or claim 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5 or claim 6.
