CN101814286A - Restoration method and device of Arabic character display - Google Patents

Restoration method and device of Arabic character display Download PDF

Info

Publication number
CN101814286A
CN101814286A CN 201010148651 CN201010148651A CN101814286A CN 101814286 A CN101814286 A CN 101814286A CN 201010148651 CN201010148651 CN 201010148651 CN 201010148651 A CN201010148651 A CN 201010148651A CN 101814286 A CN101814286 A CN 101814286A
Authority
CN
China
Prior art keywords
character
row
bitmap
repaired
benchmark
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.)
Granted
Application number
CN 201010148651
Other languages
Chinese (zh)
Other versions
CN101814286B (en
Inventor
徐佳宏
朱吕亮
李攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN2010101486517A priority Critical patent/CN101814286B/en
Publication of CN101814286A publication Critical patent/CN101814286A/en
Priority to HK11101331.3A priority patent/HK1147342A1/en
Application granted granted Critical
Publication of CN101814286B publication Critical patent/CN101814286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses restoration method and device of Arabic character display, which carries out restoration aiming at characters returned by a character library, wherein the method comprises the following steps of: acquiring a reference character and a font bitmap thereof; determining a row required to be restored according to the bitmap properties of the reference character and a character to be restored; and restoring the bitmap of the character to be restored by adopting the bitmap of the reference character according to the type of the variant of the character to be restored. It is clear that the scheme carries out the restoration based on the font bitmap of a single character but not restoration based on the condition of character combinations, thereby simplifying the use case quantity of a testing unit and providing the feasibility of a restoration scheme. In addition, the reference character in the character library is adopted, thereby guaranteeing the consistency of font styles on restoration vision.

Description

Restorative procedure and device that Arabic character shows
Technical field
The present invention relates to computing machine and networking technology area, relate in particular to a kind of computing machine and network technology utilized and Arabic character is shown method and the device of repairing.
Background technology
Most of Arabic alphabets all have variant (Contextual forms), comprise (Middle/Medial), suffix (End/Final) in separate component (Isolated), prefix (Beginning/Initial), the word, i.e. Arabic character, in unicode (Unicode, ten thousand country codes, single sign indicating number) coding, except there being a coding to be used to represent also may have 4 variant corresponding codes the original input character (General Unicode).Referring to table 1, be an example of Arabic variant corresponding tables.
Table 1
Figure GSA00000066787400011
By computer technology, show that on browser the flow process of Arabic character is as follows:
S1, by the http requests for page, downloading page is in local internal memory;
S2, the parsing html page generate corresponding page node element tree in internal memory, determine the content and the attribute of each element;
S3, according to each element of html rule composing, determine the positional information of each element in window;
S4, show each element, specifically comprise:
S4.1, according to the result of S3 step, determine the position that shows;
S4.2, according to the result of S2 step, the attribute that sets font;
S4.3, according to the result of S2 step, determine content displayed;
S4.4, according to from right to left composing rule, the needs content displayed is set type;
S4.5, according to the variant rule, determine the character code of actual displayed;
S4.6, to each character, be encoded to parameter with character display, to character library inquiry font data;
The bitmap (bitmap) of S4.7, character library return character correspondence;
S4.8, at the position display bitmap of correspondence.
Yet, be difficult to sometimes accurately show by above-mentioned existing scheme particularly in the realization of Arabic write the two or more syllables of a word together, have inaccurate part by Arabic character.
For example, the Arab that Egyptian (egypt) is corresponding is encoded to 0x0645 0x0635 0x0631.Below table 2 in comprise row in the variant coding corresponding tables of three characters:
Table 2
Figure GSA00000066787400021
Computing machine at first determines that according to the rule of setting type from right to left the lexicographic order of actual displayed is: 0x06310x0635 0x0645.
According to the position at alphabetical place in the word, determine that the variant that each letter needs to adopt is shown in the table 3 again:
Table 3
Original input character ????0x0631 ????0x0635 ????0x0645
Variant Suffix In the word Prefix
According to variant coding corresponding tables, determine the coding that actual needs shows again, as shown in table 4:
Table 4
Original input character 0x0631 ?0x0635 ?0x0645
Variant Suffix In the word Prefix
Code displaying 0xFEAD ?0xFEBC ?0xFEE3
At last, from left to right, get the code displaying (Visual Unicode) of letter one by one and inquire about to character library
Figure GSA00000066787400031
Font data is drawn on screen.
If font is Arial, what show at last is:
The basis of computer realization Arabic alphabet write the two or more syllables of a word together is that character library provides correct variant font data.Therefore, character library needs to guarantee that if there is variant in an Arabic alphabet, then the font data of this variant is plotted in the font data of the adjacent letter of this letter, visually should be thought write the two or more syllables of a word together by the user.But not all font can both guarantee this point.
Figure GSA00000066787400032
Being another kind of font (font name is GE SS TV Bold) below, is that the effect that shows under the 40px is in font size:
Can see, two characters in last right side not well write the two or more syllables of a word together visually, have the gap between sensation word and the word together.
Summary of the invention
In view of this, the invention provides restorative procedure and device that a kind of Arabic character shows, to solve the problem that the character that existing displaying scheme exists does not have fine write the two or more syllables of a word together, has the gap.
For this reason, the embodiment of the invention adopts following technical scheme:
The restorative procedure that a kind of Arabic character shows is repaired at the character that character library is returned, and comprising: obtain benchmark character and font bitmap thereof; According to the attribute bitmap of benchmark character and character to be repaired, need to determine the row of reparation; According to the variant type of character to be repaired, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line.
Wherein, realize that the detailed process of repairing is: the row to the needs reparation pursues row inspection, is determining that the row-column position that needs to repair adopts the secondary series pixel content of benchmark character to fill.
If the variant type of described character to be repaired is in suffix or the word, realize that then the flow process of repairing is as follows:
Step 1: the row that variable col is a rightmost side correspondence are set, and the col default value is the bitmap width width of character to be repaired;
Step 2: be provided with and repair sign flag for false;
Step 3: obtain four pixels that are positioned at rowstart-1, rowstart, rowend, rowend-1 four lines when the prostatitis, deposit variable p1, p2, p3, p4 respectively in, wherein, rowstart, rowend represent to repair initial row and termination row respectively;
Step 4: if p1, p2, p3, p4 are 0 entirely, then execution in step 6;
Step 5: if p2>p1 and p3>p4 are provided with and repair sign flag for true, otherwise, jump to step 8;
Step 6:col subtracts 1;
Step 7:, jump to step 1 if col is not less than 0;
Step 8: finish inspection to row;
Step 9:, then begin to utilize the benchmark character to repair to the right from the col row if flag is true.
If the variant type of described character to be repaired is in prefix or the word, realize that then the flow process of repairing is as follows:
Step 1: the row that variable col is a leftmost side correspondence are set, and the col default value is 0;
Step 2: be provided with and repair sign flag for false;
Step 3: obtain four pixels that are positioned at rowstart-1, rowstart, rowend, rowend-1 four lines when the prostatitis, deposit variable p1, p2, p3, p4 respectively in, wherein, rowstart, rowend represent to repair initial row and termination row respectively;
Step 4: if p1, p2, p3, p4 are 0 entirely, then execution in step 6;
Step 5: if p2>p1 and p3>p4 are provided with and repair sign flag for true, otherwise, jump to step 8;
Step 6:col adds 1;
Step 7:, jump to step 1 if col is not more than the bitmap width width of character to be repaired;
Step 8: finish inspection to row;
Step 9:, then begin to utilize the benchmark character to repair to the right from the col row if flag is true.
Described attribute bitmap according to benchmark character and character to be repaired determines that the detailed process of the row of needs reparation is: obtain the vertical range of the bitmap initial row of the bitmap height of the bitmap height of benchmark character, character to be repaired and character to be repaired apart from datum line; Determine initial row and the termination row that needs are repaired according to the bitmap height of the bitmap height of benchmark character, character to be repaired and the bitmap initial row of character to be repaired apart from the vertical range of datum line.
Wherein, described benchmark character is 0x0640.
The prosthetic device that a kind of Arabic character shows is repaired at the character that character library is returned, and comprising: benchmark character acquiring unit is used to obtain benchmark character and font bitmap thereof; Repair the row determining unit, be used for attribute bitmap, need to determine the row of reparation according to benchmark character and character to be repaired; Repair performance element, be used for variant type, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line according to character to be repaired.
Wherein, described reparation performance element comprises: variant type is determined subelement, is used for determining the variant type of character to be repaired; OK-column position determines subelement, is used for according to described variant type, and the row of needs reparation is pursued row inspection, need to determine row-column position of repairing; The concrete subelement of repairing is used for determining that the row that needs are repaired-column position adopts the secondary series pixel content of benchmark character to fill.
Wherein, described reparation row determining unit specifically comprises: attribute bitmap obtains subelement, is used to obtain the vertical range of the bitmap initial row of the bitmap height of the bitmap height of benchmark character, character to be repaired and character to be repaired apart from datum line; Repair the row computation subunit, determine initial row and the termination row that needs are repaired apart from the vertical range of datum line according to the bitmap height of the bitmap height of benchmark character, character to be repaired and the bitmap initial row of character to be repaired.
Wherein, the benchmark character that obtains of described benchmark character acquiring unit is 0x0640.
Repair in the gap that the present invention program can effectively show Arabic character, and have following advantage at least:
1. repair based on the font data bitmap of single character, rather than repair, simplified the use-case quantity of unit testing, improved the feasibility of recovery scenario based on the character combination situation.
2. the benchmark character that exists in the use character library has guaranteed to repair the consistance on the font style on the after-vision.
3. based on the variant situation of unicode sign indicating number, determine to repair font data left side or right side, avoid aligning the improper reparation of determining symbol, reduced risk.
4. use 0x0640 as the benchmark character, utilized the singularity of 0x0640 font.
5. vector font library reverse sawtooth algorithm can be filled in the gradual change of character edge place, uses the second picture image data of benchmark character to repair bitmap, has avoided the use gradual change look gap of filling character.
Description of drawings
The restorative procedure process flow diagram that Fig. 1 shows for the Arabic character of the present invention;
Fig. 2 is the bitmap of benchmark character 0x0640 of the present invention;
Fig. 3 is the data bitmap synoptic diagram of benchmark character 0x0640 of the present invention;
Fig. 4 is the bitmap of the present invention character 0xFEE3 to be repaired;
Fig. 5 is the data bitmap synoptic diagram of the present invention character 0xFEE3 to be repaired;
The prosthetic device synoptic diagram that Fig. 6 shows for the Arabic character of the present invention.
Embodiment
The invention provides the restorative procedure that a kind of Arabic character shows, repair at the character that character library is returned, referring to Fig. 1, this method may further comprise the steps:
S101: obtain benchmark character and font bitmap thereof;
S102:, need to determine the row of reparation according to the attribute bitmap of benchmark character and character to be repaired;
S103:, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line according to the variant type of character to be repaired.
As seen, the present invention program is based on the reparation of the font bitmap of single character, rather than repairs based on the character combination situation, has simplified the use-case quantity of unit testing, and the feasibility of recovery scenario is provided.In addition, adopt the benchmark character that exists in the character library, guaranteed to repair the consistance of font style visually.
Preferably, realize that the detailed process of repairing is: at first the row to the needs reparation pursues row inspection; Determining that the row-column position that needs to repair adopts the secondary series pixel content of benchmark character to fill then.At this moment, vector font library reverse sawtooth algorithm can become gradual change at character edge fills, and uses second pixel data of benchmark character to repair bitmap, has avoided the use gradual change look gap of filling character.
Introduce the inventive method embodiment below in detail.
1, connects the bitmap (bitmap) of S4.7 (seeing also this paper background technology) character library return character correspondence.
2, get the font bitmap of identical character library, identical character library character datum symbol (for example 0x0640).
3,, need to determine the row of reparation, i.e. the row at write the two or more syllables of a word together place according to the attribute bitmap of benchmark character and character to be repaired.
3.1, establish and repair initial row and number be rowStart
3.2, establish and repair termination row and number be rowEnd
4, get the variant type of character to be repaired.
If 5 variant type are in suffix (FINAL) or the word (MEDIAL), then check the character rightmost side:
5.1, the row that variable col is a rightmost side correspondence are set, promptly value is the bitmap width width of character to be repaired.
5.2, be provided with and need repair sign flag for false.
5.3, get when the prostatitis and be positioned at rowStart-1, rowStart, rowEnd, four picture image points of rowEnd-1 four lines deposit variable p1 in, p2, p3, p4.
If 5.4 p1, p2, p3, p4 are 0 entirely, then jumped to for the 5.6th step.
If 5.5 p2>p1 and p3>p4, it is true being provided with and repairing sign flag, otherwise, jumped to for 5.8 steps.
5.6, col subtracts one.
5.7 if col is not less than 0, jumped to for 5.1 steps.
5.8, at this moment, to row inspection finish.
If 5.9 repair sign flag is true, then begin to the right to repair from the col row.(rowStart~rowEnd) fills the secondary series pixel content of benchmark character to repair the row promptly repaired at needs.
If 6 variant type are INITIAL or MEDIAL, then check the character leftmost side:
6.1, the row that variable col is a leftmost side correspondence are set, promptly value is 0.
6.2, be provided with and need repair sign flag for false.
6.3, get when the prostatitis and be positioned at rowStart-1, rowStart, rowEnd, four picture image points of rowEnd-1 four lines deposit variable p1 in, p2, p3, p4.
If 6.4 p1, p2, p3, p4 are 0 entirely, then jumped to for the 6.6th step.
If 6.5 p2>p1 and p3>p4, it is true being provided with and repairing sign flag, otherwise, jumped to for 6.8 steps.
6.6, col adds one.
6.7 if col is not more than width, jumped to for 6.1 steps.
6.8, at this moment, to row inspection finish.
If 6.9 repair sign flag is true, then begin to the right to repair from the col row.(rowStart~rowEnd) fills the secondary series pixel content of benchmark character to repair the row promptly repaired at needs.
7, meet S4.8 (seeing also this paper background technology) at the correspondence position display bitmap.
Preferably, the present invention program adopts 0x0640 as the benchmark character, under " GE SS TV Bold " font, the 40px font size, the bitmap of 0x0640 as shown in Figure 2, its corresponding data see also Fig. 3.
About the attribute of bitmap, can pass through unicode (unicode of correspondence behind general unicode or the variant) is parameter, and to the corresponding font of character library inquiry, what character library was returned is the parameter of a bitmap and bitmap.
For example, under " GE SS TV Bold " font, the 40px font size, the bitmap of character 0xFEE3 correspondence to be repaired as shown in Figure 4, wherein:
HoriBearingX: the horizontal range of initial row of bitmap and current pen position
HoriBearingY: the bitmap initial row is from the vertical range of baseline (baseline)
HoriAdvance: the distance of advancing for the paintbrush level
Width: the width of bitmap
Rows: the line number of bitmap, just height
Buffer: data bitmap is a continuous internal memory, and size is width*rows, corresponding byte of each point in the bitmap.Type is unsigned char, represents the transparency (alpha) of current point.During actual draw characters, can calculate actual color (color) of drawing: color=textColor*alpha+backColor* (1-alpha) with character color (textColor) according to the background colour (backColor) of a position.
For determining that according to the attribute bitmap of benchmark character and character to be repaired the detailed process of the row of needs reparation is described below:
When from character library, getting the character bitmap data, can get relevant attribute.Need to determine the row of reparation, the attribute of using is horiBearingY, can think that this is the vertical range of character top from baseline.
0***
1******
2**????**
3**????****??????**************
4*********????**************
5******??????????**************
6-----------------------------------------------------------baseline
Suppose among the last figure that The Scarlet Letter font is to need to repair, blue font is an x0640 benchmark character.HoriBearingY is respectively 5 and 2.In addition, the height height of benchmark character also can get access to, and is 3.
Can obtain repairing character by reparation character .horiBearingY-benchmark character .horiBearingY=5-2=3 need begin to repair from which.
Which needing can obtain finishing to repair by repairing character .horiBearingY-benchmark character .horiBearingY+ benchmark character .height-1=5-2+3-1=5 to.
The buffer data of above-mentioned Fig. 4 bitmap correspondence as shown in Figure 5.
For the judgement of variant type, the part relevant with font arabic is the subregion definition among the unicode, has four zones, and be as follows:
0x0600~0x06ff?????Arabic
0x0750~0x077f?????Arabic?Supplement
0xfb50~0xfdff??Arabic?Presentation?Forms?A
0xfe70~0xfeff??Arabic?Presentation?Forms?B
Unicode one behind the variant is positioned 0xfb50~0xfdff and these two zones of 0xfe70~0xfeff.
At first define variant type:
#define????ARABIC_FORM_GENERAL???0
#define????ARABIC_FORM_ISOLATED??1
#define????ARABIC_FORM_FINAL?????2
#define????ARABIC_FORM_MEDIAL????3
#define????ARABIC_FORM_INITIAL???4
Define two arrays again,
unsigned?char_arabic_form_fd50_fdff[]={
ARABIC_FORM_ISOLATED????,/*0xFB50*/
ARABIC_FORM_FINAL???????,/*0xFB51*/
ARABIC_FORM_ISOLATED????,/*0xFB52*/
……
ARABIC_FORM_GENERAL????/*0xFDFF*/
};
unsigned?char_arabic_form_fe70_feff[]={
ARABIC_FORM_ISOLATED????,/*0xFE70*/
ARABIC_FORM_MEDIAL??????,/*0xFE71*/
ARABIC_FORM_ISOLATED????,/*0xFE72*/
……
ARABIC_FORM_GENERAL???????/*0xFEFF*/
};
At last, can realize getting the function of variant type from unicode:
int?arabic_get_form(unsigned?short?charCode)
{
if(charCode>=0xfb50&&charCode<=0xfdff){
return_arabic_form_fd50_fdff[charCode-0xfb50];
}
else?if(charCode>=0xfe70&&charCode<=0xfeff){
return_arabic_form_fe70_feff[charCode-0xfe70];
}
else{
return?ARABIC_FORM_GENERAL;
}
}
Based on Array Implementation In, advantage is that velocity ratio is very fast.
Repair in the gap that the present invention program can effectively show Arabic character, and have following advantage at least:
1. repair based on the font data bitmap of single character, rather than repair, simplified the use-case quantity of unit testing, improved the feasibility of recovery scenario based on the character combination situation.
2. the benchmark character that exists in the use character library has guaranteed to repair the consistance on the font style on the after-vision.
3. based on the variant situation of unicode sign indicating number, determine to repair font data left side or right side, avoid aligning the improper reparation of determining symbol, reduced risk.
4. use 0x0640 as the benchmark character, utilized the singularity of 0x0640 font.
5. vector font library reverse sawtooth algorithm can be filled in the gradual change of character edge place, uses the second picture image data of benchmark character to repair bitmap, has avoided the use gradual change look gap of filling character.
The prosthetic device corresponding with said method, that the present invention also provides a kind of Arabic character to show is repaired at the character that character library is returned, and referring to Fig. 6, this device comprises with lower unit:
Benchmark character acquiring unit 601 is used to obtain benchmark character and font bitmap thereof;
Repair row determining unit 602, be used for attribute bitmap, need to determine the row of reparation according to benchmark character and character to be repaired;
Repair performance element 603, be used for variant type, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line according to character to be repaired.
Preferably, the benchmark character that obtains of benchmark character acquiring unit 601 is 0x0640.
Wherein, repairing performance element 603 comprises:
Variant type is determined subelement, is used for determining the variant type of character to be repaired;
OK-column position determines subelement, is used for according to described variant type, and the row of needs reparation is pursued row inspection, need to determine row-column position of repairing;
The concrete subelement of repairing is used for determining that the row that needs are repaired-column position adopts the secondary series pixel content of benchmark character to fill.
Wherein, repairing row determining unit 602 specifically comprises:
Attribute bitmap obtains subelement, is used to obtain the vertical range of the bitmap initial row of the bitmap height of the bitmap height of benchmark character, character to be repaired and character to be repaired apart from datum line;
Repair the row computation subunit, determine initial row and the termination row that needs are repaired apart from the vertical range of datum line according to the bitmap height of the bitmap height of benchmark character, character to be repaired and the bitmap initial row of character to be repaired.
Specific implementation about device sees also method embodiment, does not give unnecessary details herein.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. the restorative procedure that Arabic character shows is repaired at the character that character library is returned, and it is characterized in that, comprising:
Obtain benchmark character and font bitmap thereof;
According to the attribute bitmap of benchmark character and character to be repaired, need to determine the row of reparation;
According to the variant type of character to be repaired, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line.
2. according to the described method of claim 1, it is characterized in that, realize that the detailed process of repairing is:
Row to the needs reparation pursues row inspection,
Determining that the row-column position that needs to repair adopts the secondary series pixel content of benchmark character to fill.
3. according to claim 1 or 2 described methods, it is characterized in that,, realize that then the flow process of repairing is as follows if the variant type of described character to be repaired is in suffix or the word:
Step 1: the row that variable col is a rightmost side correspondence are set, and the col default value is the bitmap width width of character to be repaired;
Step 2: be provided with and repair sign flag for false;
Step 3: obtain four pixels that are positioned at rowstart-1, rowstart, rowend, rowend-1 four lines when the prostatitis, deposit variable p1, p2, p3, p4 respectively in, wherein, rowstart, rowend represent to repair initial row and termination row respectively;
Step 4: if p1, p2, p3, p4 are 0 entirely, then execution in step 6;
Step 5: if p2>p1 and p3>p4 are provided with and repair sign flag for true, otherwise, jump to step 8;
Step 6:col subtracts 1;
Step 7:, jump to step 1 if col is not less than 0;
Step 8: finish inspection to row;
Step 9:, then begin to utilize the benchmark character to repair to the right from the col row if flag is true.
4. according to claim 1 or 2 described methods, it is characterized in that,, realize that then the flow process of repairing is as follows if the variant type of described character to be repaired is in prefix or the word:
Step 1: the row that variable col is a leftmost side correspondence are set, and the col default value is 0;
Step 2: be provided with and repair sign flag for false;
Step 3: obtain four pixels that are positioned at rowstart-1, rowstart, rowend, rowend-1 four lines when the prostatitis, deposit variable p1, p2, p3, p4 respectively in, wherein, rowstart, rowend represent to repair initial row and termination row respectively;
Step 4: if p1, p2, p3, p4 are 0 entirely, then execution in step 6;
Step 5: if p2>p1 and p3>p4 are provided with and repair sign flag for true, otherwise, jump to step 8;
Step 6:col adds 1;
Step 7:, jump to step 1 if col is not more than the bitmap width width of character to be repaired;
Step 8: finish inspection to row;
Step 9:, then begin to utilize the benchmark character to repair to the right from the col row if flag is true.
5. according to the described method of claim 1, it is characterized in that described attribute bitmap according to benchmark character and character to be repaired determines that the detailed process of the row of needs reparation is:
Obtain the vertical range of the bitmap initial row of the bitmap height of the bitmap height of benchmark character, character to be repaired and character to be repaired apart from datum line;
Determine initial row and the termination row that needs are repaired according to the bitmap height of the bitmap height of benchmark character, character to be repaired and the bitmap initial row of character to be repaired apart from the vertical range of datum line.
6. according to the described method of claim 1, it is characterized in that described benchmark character is 0x0640.
7. the prosthetic device that Arabic character shows is repaired at the character that character library is returned, and it is characterized in that, comprising:
Benchmark character acquiring unit is used to obtain benchmark character and font bitmap thereof;
Repair the row determining unit, be used for attribute bitmap, need to determine the row of reparation according to benchmark character and character to be repaired;
Repair performance element, be used for variant type, adopt the bitmap of described benchmark character that the bitmap of character to be repaired is repaired line by line according to character to be repaired.
8. according to the described device of claim 7, it is characterized in that described reparation performance element comprises:
Variant type is determined subelement, is used for determining the variant type of character to be repaired;
OK-column position determines subelement, is used for according to described variant type, and the row of needs reparation is pursued row inspection, need to determine row-column position of repairing;
The concrete subelement of repairing is used for determining that the row that needs are repaired-column position adopts the secondary series pixel content of benchmark character to fill.
9. according to claim 7 or 8 described devices, it is characterized in that described reparation row determining unit specifically comprises:
Attribute bitmap obtains subelement, is used to obtain the vertical range of the bitmap initial row of the bitmap height of the bitmap height of benchmark character, character to be repaired and character to be repaired apart from datum line;
Repair the row computation subunit, determine initial row and the termination row that needs are repaired apart from the vertical range of datum line according to the bitmap height of the bitmap height of benchmark character, character to be repaired and the bitmap initial row of character to be repaired.
10. according to claim 7 or 8 described devices, it is characterized in that the benchmark character that described benchmark character acquiring unit obtains is 0x0640.
CN2010101486517A 2010-04-14 2010-04-14 Restoration method and device of Arabic character display Active CN101814286B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010101486517A CN101814286B (en) 2010-04-14 2010-04-14 Restoration method and device of Arabic character display
HK11101331.3A HK1147342A1 (en) 2010-04-14 2011-02-11 A method and device for repairing display of arabic characters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101486517A CN101814286B (en) 2010-04-14 2010-04-14 Restoration method and device of Arabic character display

Publications (2)

Publication Number Publication Date
CN101814286A true CN101814286A (en) 2010-08-25
CN101814286B CN101814286B (en) 2012-06-06

Family

ID=42621524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101486517A Active CN101814286B (en) 2010-04-14 2010-04-14 Restoration method and device of Arabic character display

Country Status (2)

Country Link
CN (1) CN101814286B (en)
HK (1) HK1147342A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109085978A (en) * 2018-07-18 2018-12-25 厦门美图移动科技有限公司 View display methods, storage medium and mobile terminal
CN110609980A (en) * 2019-08-15 2019-12-24 崔晓珂 Arabic display method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0466330A2 (en) * 1990-07-13 1992-01-15 Adobe Systems Inc. Method for editing character bit maps at small sizes using connected runs
CN1606028A (en) * 2004-11-12 2005-04-13 清华大学 Printed font character identification method based on Arabic character set
CN1741035A (en) * 2005-09-23 2006-03-01 清华大学 Blocks letter Arabic character set text dividing method
CN1831765A (en) * 2006-04-25 2006-09-13 四川长虹电器股份有限公司 Method for setting screen display menu of Arabic and Persian

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0466330A2 (en) * 1990-07-13 1992-01-15 Adobe Systems Inc. Method for editing character bit maps at small sizes using connected runs
CN1606028A (en) * 2004-11-12 2005-04-13 清华大学 Printed font character identification method based on Arabic character set
CN1741035A (en) * 2005-09-23 2006-03-01 清华大学 Blocks letter Arabic character set text dividing method
CN1831765A (en) * 2006-04-25 2006-09-13 四川长虹电器股份有限公司 Method for setting screen display menu of Arabic and Persian

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109085978A (en) * 2018-07-18 2018-12-25 厦门美图移动科技有限公司 View display methods, storage medium and mobile terminal
CN109085978B (en) * 2018-07-18 2020-06-05 厦门美图移动科技有限公司 View display method, storage medium and mobile terminal
CN110609980A (en) * 2019-08-15 2019-12-24 崔晓珂 Arabic display method
CN110609980B (en) * 2019-08-15 2023-03-14 崔晓珂 Arabic display method

Also Published As

Publication number Publication date
HK1147342A1 (en) 2011-08-05
CN101814286B (en) 2012-06-06

Similar Documents

Publication Publication Date Title
US11461077B2 (en) Method of displaying data in a table with fixed header
US20150067463A1 (en) Method of displaying data in a table while retaining a fixed header
CN105912336A (en) Multi-screen adaptive method for mobile terminal front-end development
US20060181532A1 (en) Method and system for pixel based rendering of multi-lingual characters from a combination of glyphs
CN106095437A (en) The implementation method of the layout type of user interface RTL from right to left and device
US20140285494A1 (en) Display apparatus and method of outputting text thereof
US20140362104A1 (en) Layered z-order and hinted color fonts with dynamic palettes
CN106202058B (en) Apparatus and method for reflecting handwriting attributes in typographic characters
JP2003044035A (en) Irreversible compression and storage method for font
CN111612871A (en) Handwritten sample generation method and device, computer equipment and storage medium
US20240143898A1 (en) Content typesetting method and apparatus, computer device, and storage medium
CN101814286B (en) Restoration method and device of Arabic character display
US7134083B1 (en) Method and system for generating button and tab user interface control components within the context of a hypertext markup language (HTML) based web page
CN111783007B (en) Display rendering method and device, electronic equipment and storage medium
US20140320527A1 (en) Hardware glyph cache
CN103489268B (en) A kind of Arabic display packing for POS platform
US20080181531A1 (en) Emboldening glyphs without causing conglutination
CN116663496A (en) SVG technology-based browser small font display component, display method and creation method
US8185818B2 (en) Mixed techniques for HTML crosstab rendering
US8497874B2 (en) Pixel snapping for anti-aliased rendering
US9905030B2 (en) Image processing device, image processing method, information storage medium, and program
US7532216B2 (en) Method of scaling a graphic character
CN102902658A (en) Colorful character displaying method and device
KR20140116777A (en) Display apparatus and Method for outputting text thereof
CN113962193A (en) Table typesetting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1147342

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1147342

Country of ref document: HK