CN115935902A - Method and system for generating Arabic character string resources and embedded equipment - Google Patents

Method and system for generating Arabic character string resources and embedded equipment Download PDF

Info

Publication number
CN115935902A
CN115935902A CN202211597624.7A CN202211597624A CN115935902A CN 115935902 A CN115935902 A CN 115935902A CN 202211597624 A CN202211597624 A CN 202211597624A CN 115935902 A CN115935902 A CN 115935902A
Authority
CN
China
Prior art keywords
arabic
string
character
resource
generating
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
CN202211597624.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.)
Continental Automotive Body Electronic System Wuhu Co Ltd
Original Assignee
Continental Automotive Body Electronic System Wuhu 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 Continental Automotive Body Electronic System Wuhu Co Ltd filed Critical Continental Automotive Body Electronic System Wuhu Co Ltd
Priority to CN202211597624.7A priority Critical patent/CN115935902A/en
Publication of CN115935902A publication Critical patent/CN115935902A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

Provided are a generation method and a system of Arabic character string resources and an embedded device. The generation method of the Arabic character string resource is suitable for being used in the embedded equipment and comprises the following steps: acquiring a standard character encoding string of an Arabic character string; converting the standard character code string into a representation character code string according to a preset conversion rule; converting the expression character coding string into a display resource coding string according to a preset typesetting rule; downloading the display resource coding string and the Arabic fonts to the embedded equipment; wherein the embedded device is adapted to directly call an Arabic font according to the display resource encoding string to display the Arabic character string. The generation method and system of the Arabic character string resource and the embedded equipment have the advantages of low requirement on hardware resources of the embedded equipment, low software maintenance cost and the like.

Description

Method and system for generating Arabic character string resources and embedded equipment
Technical Field
The invention relates to an automobile electronic technology, in particular to a method and a system for generating an Arabic character string resource and an embedded device.
Background
At present, most electronic equipment is not friendly enough to support Arabic, and traditionally, the Arabic is displayed by using a language script scheme and a picture scheme. The language script scheme performs secondary operation during font rendering, and is mostly used in scenes with rich hardware resources, such as Personal Computers (PCs), smart phones and the like. For an embedded system with relatively limited hardware resources, the language script scheme has the defects of high requirements on the hardware resources, script development cost, difficulty in meeting the requirements of personalized display of a client and the like. The imaging scheme can fix all text strings into images, and can reduce the requirement on hardware resources to a certain extent, but on one hand, the direct conversion of character strings into images can cause the waste of storage space, especially when the number of Arabic texts is large; on the other hand, when the size of the text and the font is changed, the corresponding picture needs to be regenerated, which finally causes the maintenance cost of the software to be greatly increased.
Disclosure of Invention
The invention provides a generation method and a system of Arabic character string resources and an embedded device, and has the advantages of low requirement on hardware resources of the embedded device, low software maintenance cost and the like.
In order to solve the above problems, an aspect of the present invention provides a method for generating an arabic string resource, the arabic string resource being suitable for use in an embedded device, including: acquiring a standard character code string of the Arabic character string; converting the standard character code string into an expression character code string according to a preset conversion rule; converting the expression character coding string into a display resource coding string according to a preset typesetting rule; downloading the display resource coding string and the Arabic fonts to the embedded equipment; the embedded device is suitable for directly calling the Arabic fonts according to the display resource coding strings so as to display the Arabic character strings.
Another aspect of the present invention provides a generation system of an arabic string resource adapted to be used in an embedded device, including: a computer readable storage medium having stored thereon a plurality of instructions; one or more processors adapted to execute the plurality of instructions to implement the method of generating an arabic string resource as described above.
Yet another aspect of the present invention provides an embedded device, including: a computer readable storage medium having stored thereon a plurality of instructions, the display resource encoding string generated by the generation method of an arabic string resource as described above, and an arabic font; one or more processors adapted to execute the plurality of instructions to invoke the Arabic font directly from the display resource encoding string to display the Arabic string.
Compared with the prior art, the scheme has the following advantages:
the generation system of the Arabic character string resource and the generation method of the Arabic character string resource convert a standard character coding string of the Arabic character string to be displayed into an expression character coding string, and convert the expression character coding string into a display resource coding string according to a typesetting rule; the vehicle-mounted embedded equipment can directly call the Arabic fonts according to the display resource coding strings to display the Arabic character strings only by storing the display resource coding strings and the corresponding Arabic fonts. Therefore, the method has the advantages of low software maintenance cost, low requirement on hardware resources of the vehicle-mounted embedded equipment and the like.
Drawings
FIG. 1 illustrates a schematic block diagram of a system for generation of an Arabic string resource in accordance with one or more embodiments of the present invention;
FIG. 2 illustrates a flow diagram of a method of generating an Arabic string resource in accordance with one or more embodiments of the present invention;
FIG. 3 illustrates an example of positional distortion of Arabic in accordance with one or more embodiments of the present invention;
FIG. 4 illustrates an example of a connection variant of Arabic in accordance with one or more embodiments of the present invention;
FIG. 5 illustrates a schematic block diagram of an embedded device in accordance with one or more embodiments of the invention.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention to those of ordinary skill in the art. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. Furthermore, it should be understood that the invention is not limited to the specific embodiments described. Rather, it is contemplated that the invention may be practiced with any combination of the following features and elements, whether or not they relate to different embodiments. Thus, the following aspects, features, embodiments and advantages are merely illustrative and should not be considered elements or limitations of the claims except where explicitly recited in a claim(s).
Fig. 1 illustrates a schematic block diagram of a generation system of an arabic string resource in accordance with one or more embodiments of the present invention. Referring to fig. 1, a generation system 100 of an arabic string resource includes one or more processors 110 and a computer-readable storage medium 120. The computer-readable storage medium 120 has stored thereon a plurality of instructions that can be executed by the processor 110 to implement the method 300 for generating an arabic string resource that downloads display resource encoding strings and arabic fonts to the embedded device 200 as will be described below. In one or more embodiments, computer-readable storage medium 120 may be a non-volatile computer-readable storage medium. The generation system 100 of the arabic string resource may include, for example, one or more of a personal computer, a notebook computer, a tablet computer, a server, and the like.
Fig. 2 illustrates a flow diagram of a method for generating an arabic string resource in accordance with one or more embodiments of the present invention. The generation method 300 of an arabic string resource may be executed on the generation system 100 of an arabic string resource, for example. Referring to fig. 2, the generation method 300 of the arabic character string resource includes the following steps:
step 310: acquiring a standard character encoding string of the Arabic character string;
step 320: converting the standard character code string into an expression character code string according to a preset conversion rule;
step 330: converting the expression character coding string into a display resource coding string according to a preset typesetting rule; and
step 340: and downloading the display resource coding string and the Arabic fonts to the embedded device.
In step 310, the generation system 100 of the arabic character string resource obtains the standard character encoding string of the arabic character string. The standard encoded string of characters may be, for example, a standard encoded string of characters that was entered by a developer via a keyboard or that has been stored in the computer readable storage medium 120.
In step 320, the Arabic character string resource generating system 100 converts the standard character encoding string into the representation character encoding string according to a predetermined conversion rule. Wherein the predetermined transformation rule comprises a position deformation rule and/or a connection deformation rule.
In one or more embodiments, the positional warping rule includes determining a representation character encoding for a character in the word based on a character preceding and/or a character succeeding the character. Specifically, according to the situation that the characters in the words belong to a word which is connected in front, connected behind, in the middle or independent, the standard character codes of the characters are replaced by the corresponding expression character codes. If the character before the character is in the front hyphen set, the character is determined to be a front hyphen, and the standard character code of the character is replaced by the corresponding front hyphen expression character code. If the character next to the character is in the postcursor character set, the character is determined to be postcursor, and the standard character code of the character is replaced by the corresponding postcursor expression character code. If the character is in the preceding hyphen set and the next character is in the succeeding hyphen set, the character is determined to be in the middle, and the standard character code of the character is replaced by the corresponding middle expression character code. And after the character is a single word, the standard character code of the character is the same as the expression character code. Fig. 3 illustrates an example of positional distortion of arabic in accordance with one or more embodiments of the present disclosure. Referring to fig. 3, if a character b following the character a is in the hyphen set, that is, if the character a is a hyphen, the character a is replaced with a character a'; the character b is replaced with a character b' if the preceding character a of the character b is in the hyphen set, i.e. the character b is a preceding hyphen.
In one or more embodiments, concatenating the distortion rules includes replacing the standard character encoding of two adjacent characters with a corresponding representation character encoding if the two characters conform to the hyphen rules of arabic. FIG. 4 illustrates an example of a connection variant of Arabic in accordance with one or more embodiments of the present invention. Referring to fig. 4, adjacent characters c and d conform to the hyphenation rule of arabic, and it is necessary to replace the two characters with one character e, and replace the standard character codes of the characters c and d with the expression character codes corresponding to the character e.
In step 330, the generating system 100 of the arabic character string resource predetermines the typesetting rules including reverse-ordering the representation character encoding strings. Since the arabic language is laid out from right to left, the encoded strings of the representation characters obtained in step 320 need to be inverted. That is, the first character encoding in the presentation character encoding string needs to be permuted to the last, the second character encoding to the second to last, and so on. If the expression character code string includes a non-arabic character, the encoding of the non-arabic character does not require a reverse operation.
In step 340, the generation system 100 of the arabic string resource downloads the display resource encoding string and the arabic font to the embedded device 200. The embedded device 200 may call an arabic font directly from the display resource encoding string to display the arabic character string.
In one or more embodiments, the generation system 100 of the arabic string resource may download only the arabic fonts corresponding to the rendering characters in the encoded string of rendering characters to the embedded device 200. In this way, the hardware resources required to store the arabic fonts can be reduced.
In one or more embodiments, the arabic fonts can include vector fonts and/or dot matrix fonts. Vector fonts describe the graphic information of each character by a curve equation (e.g., bezier N times), which can ensure arbitrary scaling without distortion. The dot matrix font is the graphic information describing each character through the dot matrix, the display speed is high, but the font needs to be regenerated aiming at the fonts with different sizes.
FIG. 5 illustrates a schematic block diagram of an embedded device in accordance with one or more embodiments of the invention. Referring to FIG. 5, the in-vehicle embedded device 200 includes one or more processors 210 and a computer-readable storage medium 220. The computer-readable storage medium 220 has stored thereon a plurality of instructions, the display resource encoding string generated by the generation method 300 of arabic string resources described above, and an arabic font, which the processor 210 can execute to invoke directly from the display resource encoding string the arabic font for displaying the arabic string. In one or more embodiments, the computer-readable storage medium 220 may be a non-volatile computer-readable storage medium. In one or more embodiments, the in-vehicle embedded device 200 may be an in-vehicle meter.
As described above, the generation system 100 and the generation method 300 of the arabic character string resource of the present invention convert the standard character encoding string of the arabic character string to be displayed into the expression character encoding string, and convert the expression character encoding string into the display resource encoding string according to the typesetting rule; the in-vehicle embedded device 200 may only need to store the display resource encoding string and the corresponding arabic font, and may directly call the arabic font according to the display resource encoding string to display the arabic character string. Therefore, the invention has the advantages of low software maintenance cost, low requirement on hardware resources of the vehicle-mounted embedded equipment 200 and the like.
Although the present invention has been described in connection with the preferred embodiments, it is not limited thereto. Various changes and modifications within the spirit and scope of the present invention will become apparent to those skilled in the art from this disclosure, and it is intended that the scope of the present invention be defined by the appended claims.

Claims (11)

1. A method for generating an arabic string resource adapted to be used in an embedded device, comprising:
acquiring a standard character encoding string of the Arabic character string;
converting the standard character code string into an expression character code string according to a preset conversion rule;
converting the expression character coding string into a display resource coding string according to a preset typesetting rule; and
downloading the display resource encoding string and the Arabic fonts to the embedded equipment;
the embedded device is suitable for directly calling the Arabic fonts according to the display resource coding strings so as to display the Arabic character strings.
2. The method for generating an arabic character string resource according to claim 1, wherein the predetermined conversion rule includes a position distortion rule and/or a connection distortion rule.
3. The method of generating an arabic character string resource as claimed in claim 2, wherein the position morphing rule includes determining a presentation character encoding of a character in a word based on a preceding character and/or a following character of the character.
4. The method as claimed in claim 2, wherein the connection distortion rule comprises replacing a standard character code of two adjacent characters with a corresponding representation character code if the two adjacent characters conform to the hyphen rule of arabic language.
5. The method of generating an arabic character string resource as claimed in claim 1, wherein the predetermined layout rule includes a reverse order of the presentation character encoding strings.
6. The method for generating an arabic character string resource according to claim 1, wherein only an arabic font corresponding to a rendering character in the rendering character code string is downloaded.
7. The method for generating an arabic character string resource according to claim 1 or 6, wherein the arabic font includes a vector font and/or a lattice font.
8. The method of generating an arabic character string resource of claim 1, wherein the embedded device is an in-vehicle meter.
9. A system for generating an arabic string resource adapted to be used in an embedded device, comprising:
a computer readable storage medium having stored thereon a plurality of instructions;
one or more processors adapted to execute the plurality of instructions to implement the method of generating an arabic string resource of any of claims 1-8.
10. An embedded device, comprising:
a computer readable storage medium having stored thereon a plurality of instructions, the display resource encoding string generated by the method of generating an arabic string resource of any one of claims 1 to 7, and an arabic font;
one or more processors adapted to execute the plurality of instructions to invoke the Arabic font directly from the display resource encoding string to display the Arabic string.
11. The embedded device of claim 10, wherein the embedded device is an in-vehicle meter.
CN202211597624.7A 2022-12-12 2022-12-12 Method and system for generating Arabic character string resources and embedded equipment Pending CN115935902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211597624.7A CN115935902A (en) 2022-12-12 2022-12-12 Method and system for generating Arabic character string resources and embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211597624.7A CN115935902A (en) 2022-12-12 2022-12-12 Method and system for generating Arabic character string resources and embedded equipment

Publications (1)

Publication Number Publication Date
CN115935902A true CN115935902A (en) 2023-04-07

Family

ID=86697499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211597624.7A Pending CN115935902A (en) 2022-12-12 2022-12-12 Method and system for generating Arabic character string resources and embedded equipment

Country Status (1)

Country Link
CN (1) CN115935902A (en)

Similar Documents

Publication Publication Date Title
US7228501B2 (en) Method for selecting a font
CN102439588B (en) Serving font glyphs
JP2002507289A (en) Glyph drawing method using layout service library
US11030389B2 (en) Acquisition of a font portion using a compression mechanism
US7940273B2 (en) Determination of unicode points from glyph elements
KR20060067141A (en) Remote content rendering for mobile viewing
US20060181532A1 (en) Method and system for pixel based rendering of multi-lingual characters from a combination of glyphs
US10134367B2 (en) Rendering texts on electronic devices
CN109375962A (en) The implementation method of chinese character mixing output display based on embedded OS
CN102970596A (en) Method and system for realizing multi-language font display of set top box and set top box
JP2006236315A (en) Method and apparatus for enabling foreign language text display when encoding is not available
JP2007517251A (en) Configuration for font scaling
US20170249292A1 (en) Conditional determination of lookups in glyph processing
CN115935902A (en) Method and system for generating Arabic character string resources and embedded equipment
US10049478B2 (en) Retrieval and display of visual objects
US11132497B2 (en) Device and method for inputting characters
US20080072142A1 (en) Code transformation method for an operation system
JP2009519551A (en) Inserting objects using a text editor that supports scalable fonts
CN1379347A (en) Display control method of character produced based on dynamic coding
Anderson Bridging the Divide: Supporting Minority and Historic Scripts in Fonts: Problems and Recommendations
CN115237515A (en) High-performance font loading and rendering method for low-cost vehicle-mounted instrument platform
CN113657085A (en) Text typesetting method and device, electronic equipment and computer readable storage medium
CN115237517A (en) Graphic language display method and system and vehicle
JPS63113597A (en) Document generator
Pentzlin Preliminary Proposal to encode Bodoni Ornament symbols in the UCS

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