CN101571851A - Method capable of displaying Thai and Arabic in mixed arrangement - Google Patents

Method capable of displaying Thai and Arabic in mixed arrangement Download PDF

Info

Publication number
CN101571851A
CN101571851A CNA2009100229202A CN200910022920A CN101571851A CN 101571851 A CN101571851 A CN 101571851A CN A2009100229202 A CNA2009100229202 A CN A2009100229202A CN 200910022920 A CN200910022920 A CN 200910022920A CN 101571851 A CN101571851 A CN 101571851A
Authority
CN
China
Prior art keywords
character
wen
arabic
display buffer
code value
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
CNA2009100229202A
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.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CNA2009100229202A priority Critical patent/CN101571851A/en
Publication of CN101571851A publication Critical patent/CN101571851A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method capable of displaying Thai and Arabic in mixed arrangement, which comprises the following steps: 1) storing character strings to be displayed in a display buffer area; 2) judging whether the display direction of the display buffer area is from right to left; 3) selecting characters from the character strings; 4) judging whether the characters are Thai characters; 5) judging whether the characters consist of more than two code values; 6) arranging the characters in negative sequence according to an Arabic parser; 7) judging whether the characters in the display buffer area have been analyzed completely; 8) inputting the data stored in the display buffer area to the Arabic parser for processing, and storing output data of the Arabic parser in the display buffer area; and 9) displaying the data stored in the display buffer area. The method realizes the display of the Thai and the Arabic in mixed arrangement.

Description

But mixing shows the method for safe literary composition and Arabic
Technical field
The present invention relates to a kind of multilingual display packing, but especially a kind of mixing shows the method for safe literary composition and Arabic.
Background technology
At present, the palm type electronic consumer products as mobile phone, electronic dictionary or PDA (Personal Digital Assistant), have ease of use and built-in multi-lingual information or the like advantage, make the palm type electronic consumer products be subjected to many people's favor.Wherein, can provide more multinational family languages information, pronunciation, and realize that various countries' pen friends show for mixing, have become the standard of judging of palm type electronic consumer products function quality.
Arabic (being called for short A Wen) is the language that middle east official uses.It is the relevant language of a kind of grammer, Ah's Chinese character can corresponding four kinds of literary styles, specifically look civilian environment decision before and after it, and be from right to left when writing, so show that Ah's Chinese character string is more complicated compared with English, Chinese, Japanese, French and Korean.Before showing Ah's Chinese character string, need could correctly show that above-mentioned other Languages can show one by one directly that then single character just can allow the user read by the A Wen syntax analyzer.
Tai Wen is the language that Thailand official uses, its presentation direction is to write from left to right, a safe literal is to be piled up by upper, middle and lower three parts to form, be encoded to example with standard ten thousand country codes (UNICODE), a safe literal can be made up of a UNICODE coding (two bytes), two UNICODE codings (four bytes) or three UNICODE codings (six bytes).Forming the code value front and back order of a safe literal in addition can not put upside down, and promptly is that its code value is sequential, otherwise can't normally shows.
In background technology, realize that A Wen and English, Chinese, Japanese, French or Korean etc. use UNICODE codings (two bytes), and coding and show that only need directly call the A Wen syntax analyzer before demonstration when font is the demonstration of the mixing between the languages one to one gets final product.But when realizing that A Wen and Tai Wen mixing show, because the singularity of safe literary composition realizes relatively difficulty.
Summary of the invention
The present invention is for solving the above-mentioned technical matters that exists in the background technology, but and proposes the method that a kind of mixing shows safe literary composition and Arabic.
Technical solution of the present invention is: but the present invention shows the method for safe literary composition and Arabic for a kind of mixing, be applicable to electronic installation with Presentation Function, this electronic installation has display buffer (buffer) and shows output buffer, and its special character is: this method comprises the following step:
1) stores the character string that desire shows in the display buffer;
2) judge that whether the display direction of display buffer is for showing from right to left, if then execution in step 3), if not, then directly proceed to step 8);
3) select character from character string;
4) judge whether character is safe Chinese character, if then proceed to step 5);
5) judge whether this character is made up of plural code value, if then execution in step 6); If not, then character is kept and be stored in the display buffer and do not handle;
6) the output character backward of character being pressed the A Wen syntax analyzer is arranged;
7) judge whether the character in the display buffer finishes by analysis, if execution in step 8 then), execution in step 3 then if not);
8) will be stored in data in the display buffer and input to the A Wen syntax analyzer and handle, and the output data of A Wen syntax analyzer will be stored in the demonstration output buffer;
9) show the data that are stored in the demonstration output buffer.
Above-mentioned steps 4) if this character is not safe Chinese character, judge then whether this character is to preset the Chinese language word, in if then execution in step 7), if this character is not default Chinese language word, then use the processing function of corresponding this character to handle, follow execution in step 7 again).
Above-mentioned default Chinese language word comprises use standard ten thousand country codes (UNICODE) codings, and coding and show that font is languages one to one.
Above-mentioned A Wen syntax analyzer will convert the character of being made up of UNICODE code value or the local code value of Ah's literal pool code value and Fei Awen to through grammatical analysis by the character that A Wen standard ten thousand country codes (UNICODE) code value or local code value are formed according to the difference of display direction.
But mixing provided by the invention shows the method for safe literary composition and Arabic, has realized that A Wen and Tai Wen mixing show.
Description of drawings
Fig. 1 is the flow chart of steps of the inventive method;
Fig. 2 avoids the flow chart of steps of safe civilian erroneous arrangement program for the present invention.
Embodiment
Referring to Fig. 1, this method is used to have the electronic installation of Presentation Function, for example computing machine, mobile phone, electronic dictionary or personal digital assistant.Electronic installation has display buffer (buffer) and shows output buffer, and this method comprises the following step: in step 11, store the character string that desire shows in the display buffer.In step 12, judge that whether display direction in the display buffer is for showing from right to left, if not, represent that this character string symbol is not is main the demonstration with A Wen, then the data inputs A Wen syntax analyzer that will be stored in the display buffer in step 13 is handled, and in step 15 output data of A Wen syntax analyzer is stored in the demonstration output buffer.
The function of A Wen syntax analyzer is used for will converting the character of being made up of UNICODE code value or the local code value of Ah's literal pool code value and Fei Awen to through grammatical analysis by the character that A Wen standard ten thousand country codes (UNICODE) code value or local code value are formed by the difference of display direction.
Therefore, the A Wen syntax analyzer is only handled the grammer part of relevant A Wen in step 13, be about to A Wen UNICODE code value or local code value and be converted to Ah's literal pool code value, the reservation of can being remained untouched of the code value of other Fei Awen, it is similar with English mixing with the Tai Wen mixing to handle A Wen like this, need not do other special processing.So,, A Wen is arranged, or A Wen and other presentation direction are when being from left to right Chinese language mixing, then can correctly show this Ah's Chinese character as if in the character string though this character string is not to be main the demonstration with A Wen.
If the display direction in the display buffer is for showing from right to left, represent that this character string symbol is main the demonstration with A Wen, then execution in step 14, avoid the program of safe civilian erroneous arrangement to being stored in character in the display buffer, more then execution in step 13 and step 15.At last, step 16 shows the character that is stored in the demonstration output buffer.
Because, the presentation direction of safe literary composition is to write from left to right, and a safe literal is to be piled up by upper, middle and lower three parts to form, be encoded to example with standard ten thousand country codes (UNICODE), a safe literal can be made up of a UNICODE coding (two bytes), two UNICODE codings (four bytes) or three UNICODE codings (six bytes), and order can not be put upside down before and after forming the code value of a safe literal, and its code value is sequential, otherwise can't normally show.When the display direction of display buffer when showing from right to left, if be stored in the character string display buffer in safe literal is arranged, then this safe literal can can't be read because of align-err, therefore need execution avoids the program of safe civilian erroneous arrangement.
Referring to Fig. 2, step 141 is selected character in the display buffer.In step 142, judge whether this character is safe Chinese character, if then execution in step 143 judges whether this character is made up of plural code value, if then the output character backward of the A Wen syntax analyzer being pressed in this character in step 144 is arranged.Then, whether the character in step 146 is judged the display buffer finishes by analysis, if execution in step 13 then, execution in step 141 then if not.
If this character is not safe Chinese character, then execution in step 145, judge whether this character is default Chinese language word.If then execution in step 146.Wherein, default Chinese language word comprises use standard ten thousand country codes (UNICODE) coding, and coding and show that font is languages one to one, and is for example English, Chinese, Japanese, French or Korean or the like.If this character is not above-mentioned default Chinese language word, then use the processing function of corresponding this character to handle in step 147, follow execution in step 146 again.By step 147, then the present invention can optionally expand to show the mixing of other special language and A Wen and safe literary composition.
To the processing of step 147, safe civilian erroneous arrangement can be avoided in the character in the display buffer, then just carries out step 13 shown in Figure 1 through step 141, and the data input A Wen syntax analyzer that is stored in the display buffer is handled.

Claims (4)

1, but a kind of mixing shows the method for safe literary composition and Arabic, is applicable to the electronic installation with Presentation Function, and this electronic installation has display buffer (buffer) and shows output buffer, and it is characterized in that: this method comprises the following step:
1) stores the character string that desire shows in the display buffer;
2) judge that whether the display direction of display buffer is for showing from right to left, if then execution in step 3), if not, then directly proceed to step 8);
3) select character from character string;
4) judge whether character is safe Chinese character, if then proceed to step 5);
5) judge whether this character is made up of plural code value, if then execution in step 6); If not, then character is kept and be stored in the display buffer and do not handle;
6) the output character backward of character being pressed the A Wen syntax analyzer is arranged;
7) judge whether the character in the display buffer finishes by analysis, if execution in step 8 then), execution in step 3 then if not);
8) will be stored in data in the display buffer and input to the A Wen syntax analyzer and handle, and the output data of A Wen syntax analyzer will be stored in the demonstration output buffer;
9) show the data that are stored in the demonstration output buffer.
2, but a kind of mixing according to claim 1 shows the method for safe literary composition and Arabic, it is characterized in that: in the described step 4) if this character be not safe Chinese character, judge then whether this character is default Chinese language word, if, then execution in step 7), if this character is not default Chinese language word, then use the processing function of corresponding this character to handle, follow execution in step 7 again).
3, but a kind of mixing according to claim 2 shows the method for safe literary composition and Arabic, it is characterized in that: described default Chinese language word comprises use standard ten thousand country codes (UNICODE) codings, and coding and show that font is languages one to one.
But 4, show the method for safe literary composition and Arabic according to claim 1 or 2 or 3 described a kind of mixings, it is characterized in that: described A Wen syntax analyzer will convert the character of being made up of UNICODE code value or the local code value of Ah's literal pool code value and Fei Awen to through grammatical analysis by the character that A Wen standard ten thousand country codes (UNICODE) code value or local code value are formed according to the difference of display direction.
CNA2009100229202A 2009-06-11 2009-06-11 Method capable of displaying Thai and Arabic in mixed arrangement Pending CN101571851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100229202A CN101571851A (en) 2009-06-11 2009-06-11 Method capable of displaying Thai and Arabic in mixed arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100229202A CN101571851A (en) 2009-06-11 2009-06-11 Method capable of displaying Thai and Arabic in mixed arrangement

Publications (1)

Publication Number Publication Date
CN101571851A true CN101571851A (en) 2009-11-04

Family

ID=41231210

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100229202A Pending CN101571851A (en) 2009-06-11 2009-06-11 Method capable of displaying Thai and Arabic in mixed arrangement

Country Status (1)

Country Link
CN (1) CN101571851A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098448A (en) * 2009-12-09 2011-06-15 新奥特(北京)视频技术有限公司 Broadcast control system of multilanguage caption
CN102098447A (en) * 2009-12-09 2011-06-15 新奥特(北京)视频技术有限公司 Multi-language caption broadcasting method and equipment
CN102104742A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Multi-language caption mixing arrangement method and device
CN102104743A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Method and device for editing multi-language hybrid arranged captions
CN102110081A (en) * 2011-02-25 2011-06-29 凌阳成芯科技(成都)有限公司 File name display processing method and device
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system
CN102723067A (en) * 2012-06-01 2012-10-10 中国科学院声学研究所 Character display method and device
CN103646014A (en) * 2013-11-20 2014-03-19 上海富士施乐有限公司 Mixed display method of graphs and texts including Thai character
CN102104741B (en) * 2009-12-16 2014-12-24 新奥特(北京)视频技术有限公司 Method and device for arranging multi-language captions
CN102104740B (en) * 2009-12-16 2015-04-29 新奥特(北京)视频技术有限公司 Hybrid arranging method and device for multi-language captions
CN106845315A (en) * 2015-10-12 2017-06-13 讯宝科技有限责任公司 The method and apparatus for reading two-dimensional symensional symbol by the way that coded symbols character is converted into global character collection from local character set
CN110188329A (en) * 2019-05-29 2019-08-30 惠州市德赛西威汽车电子股份有限公司 Method for mutually conversing and its system between the number of both font types

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098447B (en) * 2009-12-09 2014-12-24 新奥特(北京)视频技术有限公司 Multi-language caption broadcasting method and equipment
CN102098447A (en) * 2009-12-09 2011-06-15 新奥特(北京)视频技术有限公司 Multi-language caption broadcasting method and equipment
CN102098448B (en) * 2009-12-09 2015-06-17 新奥特(北京)视频技术有限公司 Broadcast control system of multilanguage caption
CN102098448A (en) * 2009-12-09 2011-06-15 新奥特(北京)视频技术有限公司 Broadcast control system of multilanguage caption
CN102104740B (en) * 2009-12-16 2015-04-29 新奥特(北京)视频技术有限公司 Hybrid arranging method and device for multi-language captions
CN102104742B (en) * 2009-12-16 2015-02-18 新奥特(北京)视频技术有限公司 Multi-language caption mixing arrangement method and device
CN102104742A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Multi-language caption mixing arrangement method and device
CN102104743A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Method and device for editing multi-language hybrid arranged captions
CN102104743B (en) * 2009-12-16 2015-02-18 新奥特(北京)视频技术有限公司 Method and device for editing multi-language hybrid arranged captions
CN102104741B (en) * 2009-12-16 2014-12-24 新奥特(北京)视频技术有限公司 Method and device for arranging multi-language captions
CN102110081A (en) * 2011-02-25 2011-06-29 凌阳成芯科技(成都)有限公司 File name display processing method and device
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system
CN102723067A (en) * 2012-06-01 2012-10-10 中国科学院声学研究所 Character display method and device
CN102723067B (en) * 2012-06-01 2015-11-04 中国科学院声学研究所 A kind of character display method and device
CN103646014A (en) * 2013-11-20 2014-03-19 上海富士施乐有限公司 Mixed display method of graphs and texts including Thai character
CN103646014B (en) * 2013-11-20 2016-10-19 上海富士施乐有限公司 A kind of combining text-graphics displaying method comprising Thai language character
CN106845315A (en) * 2015-10-12 2017-06-13 讯宝科技有限责任公司 The method and apparatus for reading two-dimensional symensional symbol by the way that coded symbols character is converted into global character collection from local character set
CN106845315B (en) * 2015-10-12 2019-04-30 讯宝科技有限责任公司 The method and apparatus for reading two-dimensional symensional symbol by the way that coded symbols character is converted into global character collection from local character set
CN110188329A (en) * 2019-05-29 2019-08-30 惠州市德赛西威汽车电子股份有限公司 Method for mutually conversing and its system between the number of both font types

Similar Documents

Publication Publication Date Title
CN101571851A (en) Method capable of displaying Thai and Arabic in mixed arrangement
US8200475B2 (en) Phonetic-based text input method
US7707515B2 (en) Digital user interface for inputting Indic scripts
US20060080082A1 (en) System and method for product migration in multiple languages
US8077974B2 (en) Compact stylus-based input technique for indic scripts
CN104133561B (en) Auxiliary information based on input method shows method and apparatus
KR20110025829A (en) Method for customizing data entry for individual text fields
WO2016197265A1 (en) Method for inputting rarely-used characters
Byrne Localisation-when language, culture and technology join forces
CN105148519A (en) Character rendering method and system in game program
US20020146181A1 (en) System, method and computer program product for a multi-lingual text engine
KR101319948B1 (en) Method for inputting characters using a software keyboard
CN102253725A (en) Method for inputting multiple languages
Lu Computers and Chinese writing systems
Katre A Position Paper On-Cross cultural Usability Issues of Bilingual (Hindi & English) Mobile Phones
CN102685347A (en) Image processing apparatus and image processing method
CN105892710B (en) Chinese character input method and device based on text box
CN111045530B (en) Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment
JP6933395B2 (en) Automatic translation device and automatic translation program
McLelland Early challenges to multilingualism on the Internet: the case of Han character-based scripts
CN104991657A (en) Chinese and Japanese katakana integrated input method and input method system
CN103793186A (en) Foreign language displaying method and device by displaying buffer arrangement
KR100923258B1 (en) Unicode converting method for mobile terminal source file
KR100804316B1 (en) Alphabet input device and method in keypad
TW201007481A (en) Method of mixedly display Thai and Arabic

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091104