CN103491414B - Method and device for processing character and set top box - Google Patents

Method and device for processing character and set top box Download PDF

Info

Publication number
CN103491414B
CN103491414B CN201310401151.3A CN201310401151A CN103491414B CN 103491414 B CN103491414 B CN 103491414B CN 201310401151 A CN201310401151 A CN 201310401151A CN 103491414 B CN103491414 B CN 103491414B
Authority
CN
China
Prior art keywords
character
coding
encoded
target
thai
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.)
Active
Application number
CN201310401151.3A
Other languages
Chinese (zh)
Other versions
CN103491414A (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 Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201310401151.3A priority Critical patent/CN103491414B/en
Publication of CN103491414A publication Critical patent/CN103491414A/en
Application granted granted Critical
Publication of CN103491414B publication Critical patent/CN103491414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention discloses a method and device for processing a character and a set top box. The method for processing the character comprises the steps of (1) reading a code of a target character from a coded Thai language character string; (2) determining a combination character set of the target character according to preset Thai language coding rules and preset split font bitmaps when the target character is not an independent display character, and the code of the target character is coded from a main character; (3) determining a character corresponding to the target character code according to a character, with a font bitmap with the code of 0x0e33, existing in the combination character set. When the method and device for processing the character and the set top box are adopted, the situation that Thai language characters with different fonts can be correctly displayed can be well ensured.

Description

A kind of processing method of character, device and Set Top Box
Technical field
The present invention relates to computer application field, more particularly to a kind of processing method of character, device and Set Top Box.
Background technology
It is Set Top Box that font shows(the Set-Top Box,STB)One of basic function, it is more aobvious using raster font Show, also referred to as bit-mapped font, i.e., represented with one group of two-dimensional pixel information.Set Top Box is used as embedded device, space Resource-constrained, needs, using a kind of both save resources, the font processing method of display speed can be improved again, in addition, in Set Top Box In not necessarily with more font size, therefore bit-mapped font is than vector fonts applied range.
And show different from general Chinese and english font using the means such as synthesis and overlap more than word-building in Thai, it is existing In the case of having, the processing mode of Thai font is essentially according to following steps:
Step 1:Character string is encoded.
Step 2:The Thai characters that will be shown, by the corresponding Thai data bitmap of coding lookup.
Step 3:After obtaining the data bitmap of correspondence character, deformation process is carried out.
Step 4:By the character output display after process.
Seen from the above description, Set Top Box is to Thai characters Unified coding, occurs after to coded treatment including can not It is correct to show, after combination the problems such as None- identified.
The content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of processing method of character, device, and machine top Box, can preferably ensure that Thai characters can correctly show under various fonts.
In order to solve above-mentioned technical problem, a kind of processing method of character is embodiments provided, including:
Target character coding is read from encoded Thai characters string;
If the target character is dependent character is shown, and target character coding starts coding from main body character, The combining characters collection of the target character is then determined by preset Thai coding rule and preset fractionation font bitmap;
The character that there is the font bitmap for being encoded to 0x0e33 is concentrated according to the combining characters, the target word is determined The corresponding character of symbol coding.
Wherein, it is described to read from encoded Thai characters string before target character coding, also include:
According to preset fractionation font bitmap, Thai dot character tables of data, character duration table and character index table are made;
Thai characters string to be processed is encoded, encoded Thai characters string is obtained.
Wherein, it is described to read from encoded Thai characters string before target character coding, also include:
The font bitmap that splits is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d fonts position Scheme and be encoded to 0x0e32 font bitmaps;
With it is described be encoded to 0x0e4d fonts bitmap replace described in be encoded to the font bitmap of 0x0e33, and the 0x0e33 Coding it is constant.
Wherein, target character coding starts coding from main body character, then by preset Thai coding rule and preset Fractionation font bitmap determine the combining characters collection of the target character, including:
Judge that whether the target character is encoded from main body character code;
If the determination result is YES, reading can encode with the character late of the target character coded combination, and under this The type of one character code correspondence character is nonbody character, then the character late is encoded into corresponding character and the mesh The corresponding character of mark character code is carried out or computing, obtains combining characters, repeats this step until determining the target character Combining characters collection.
Wherein, it is described that the character being present in the font bitmap for being encoded to 0x0e33 is concentrated according to the combining characters, really Make the target character and encode corresponding character, also include:
Determine that the target character is encoded after corresponding character, show the character.
Wherein, if the target character is dependent shows character, and the target character is encoded from main body character Start coding, then the combining characters of the target character are determined by preset Thai coding rule and preset fractionation font bitmap Collection, also includes:
If judged result is no, coding error sends miscue information.
Wherein, if the target character is dependent shows character, and the target character is encoded from main body character Start coding, then the combining characters of the target character are determined by preset Thai coding rule and preset fractionation font bitmap Collection, also includes:
If the type of the character late coding correspondence character is main body character, the character is shown.
Correspondingly, the embodiment of the present invention additionally provides a kind of processing meanss of character, including:
Read module, for reading target character coding from encoded Thai characters string;
Composite module, if it is that dependent shows character for the target character, and the target character is encoded from main body Character starts coding, then the combination of the target character is determined by preset Thai coding rule and preset fractionation font bitmap Character set;
Character determining module, for concentrating the word that there is the font bitmap for being encoded to 0x0e33 according to the combining characters Symbol, determines that the target character encodes corresponding character.
Wherein, also include:
Tables of data makes module, for according to preset fractionation font bitmap, making Thai dot character tables of data, character Width table and character index table;
Coding module, for encoding to Thai characters string to be processed, obtains encoded Thai characters string;
Module is split, for defining the fractionation font bitmap, the font bitmap fractionation that will be encoded to 0x0e33 is obtained It is encoded to 0x0e4d fonts bitmap and is encoded to 0x0e32 font bitmaps;
Replacement module, with it is described be encoded to 0x0e4d fonts bitmap replace described in be encoded to the font bitmap of 0x0e33, and The coding of the 0x0e33 is constant.
Wherein, the composite module includes:
Identifying unit, for judging that whether the target character is encoded from main body character code;
Processing unit, if the judged result of the identifying unit is yes, reading can be with the target character coded combination Character late is encoded, and when the type of the character late coding correspondence character is nonbody character, then by the next one The corresponding character of character code is carried out or computing with the target character corresponding character of coding, obtains combining characters, repeats this Step is until determine the combining characters collection of the target character.
Wherein, the character determining module includes:
Determining unit, if concentrating the character that there is the font bitmap for being encoded to 0x0e33 for the combining characters, it is determined that Go out the target character and encode corresponding character;
First display unit, for showing the character that the determining unit determines.
Wherein, the composite module also includes:
Tip element, for if it is determined that when the judged result of unit is no, coding error sends miscue information.
Second display unit, if the type for character late coding correspondence character in the processing unit is main body Character, then show the character.
Correspondingly, the embodiment of the present invention additionally provides a kind of Set Top Box, including the processing meanss of above-mentioned character.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention is adopted and shows character to dependent, by preset Thai coding rule and preset fractionation word Position figure determines the combining characters collection of the target character, then correctly determines that character code is corresponding from combining characters collection Character, it is to avoid to occurring after to coded treatment after Thai characters Unified coding including nothing after can not correctly showing, combining The problems such as method is recognized, can preferably ensure that Thai characters can correctly show under various fonts, improve various fonts pair The adaptability of Thai.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of the processing method of the character of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of the processing method of the character of the present invention;
Fig. 3 is the first embodiment structure composition schematic diagram of the processing meanss of the character of the present invention;
Fig. 4 be the present invention character processing meanss in composite module structure composition schematic diagram
Fig. 5 be the present invention character processing meanss in character determining module structure composition schematic diagram;
Fig. 6 is the second embodiment structure composition schematic diagram of the processing meanss of the character of the present invention;
Fig. 7 is the structure composition schematic diagram of the Set Top Box of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
It is the first embodiment schematic flow sheet of the processing method of the character of the present invention referring to Fig. 1, the embodiment of the present invention Methods described can be performed by Set Top Box, all kinds of intelligent terminals, and specifically, the method includes:
S101:Target character coding is read from encoded Thai characters string.
First, the font bitmap of Thai coding range is extracted from character library, Thai characters string to be shown is encoded, Then read single character code to encode as target character, in being put into caching.
S102:If the target character is dependent shows character, and the target character is encoded from the beginning of main body character Coding, then determined the combining characters collection of the target character by preset Thai coding rule and preset fractionation font bitmap.
Thai is divided into shoes character, cap character, tone character, main body character, respective character and mark according to spelling rules Six kinds of point character, if the target character shows character for independent, i.e., can respective character displayed separately and tone character, then Directly show on screen;If dependent shows character, then character process is combined.
In Thai coding rule, a complete character is all to start coding from main body character, then when the target word Symbol coding from main body character start coding when, according to preset Thai coding rule, the Thai coding rule such as Thai language Unicode is encoded, and Unicode is encoded to double byte, before be high byte, behind be low byte, hexadecimal table is all used here Show, such as 0E00 represents a space, and 0E is high byte, and 00 is low byte, analyzing pending character code has several single Character combination.
Preset fractionation font bitmap is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d fonts Bitmap and it is encoded to 0x0e32 font bitmaps;With the word for being encoded to and 0x0e33 being encoded to described in the replacement of 0x0e4d fonts bitmap Position figure, and the coding of the 0x0e33 is constant, i.e., original encoding is 0x0e33 for the corresponding coding of 0x0e4d font bitmaps.Its In, font bitmap is the picture of one secondary " .bmp ", and by carrying out bitmap parsing to it actual dot array data is can be obtained by, Show screen display.
S103:The character that there is the font bitmap for being encoded to 0x0e33 is concentrated according to the combining characters, is determined described Target character encodes corresponding character.
Judge that the combining characters are concentrated, if the character containing 0x0e33 codings, if it has, then needing to the target The corresponding character of character code shows remaining character in showing, so far, a complete character shows and finishes.
By the description of above-described embodiment, the present invention has advantages below:
The embodiment of the present invention is adopted and shows character to dependent, by preset Thai coding rule and preset fractionation word Position figure determines the combining characters collection of the target character, then correctly determines that character code is corresponding from combining characters collection Character, it is to avoid to occurring after to coded treatment after Thai characters Unified coding including nothing after can not correctly showing, combining The problems such as method is recognized, can preferably ensure that Thai characters can correctly show under various fonts, improve various fonts pair The adaptability of Thai.
Refer to Fig. 2, be the present invention character processing method second embodiment schematic flow sheet, the embodiment of the present invention Methods described can be performed by Set Top Box, all kinds of intelligent terminals, specifically, the method includes:
S201:It is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d fonts position to split font bitmap Scheme and be encoded to 0x0e32 font bitmaps.
With it is described be encoded to 0x0e4d fonts bitmap replace described in be encoded to the font bitmap of 0x0e33, and the 0x0e33 Coding it is constant.
S202:According to described fractionation font bitmap, Thai dot character tables of data, character duration table and character rope are made Draw table.
The corresponding start code of the character according to needed for character index table is searched in character data table first, then according to word Symbol width table extracts the complete coding of character.
S203:Thai characters string to be processed is encoded, encoded Thai characters string is obtained.
S204:Target character coding is read from encoded Thai characters string.
S205:If the target character is dependent shows character, judge that whether the target character is encoded from main body Character starts coding.
Thai is divided into shoes character, cap character, tone character, main body character, respective character and mark according to spelling rules Six kinds of point character, if the target character shows character for independent, i.e., can respective character displayed separately and tone character, then Directly show on screen;If dependent shows character, then character process is combined.
S206:If the determination result is YES, reading can encode with the character late of the target character coded combination, and The type of the character late coding correspondence character is nonbody character, then the character late is encoded into corresponding character and institute Stating the corresponding character of target character coding is carried out or computing, obtains combining characters, repeats this step until determining the target The combining characters collection of character.If the type of the character late coding correspondence character is main body character, the character is shown.
Wherein, target character described in combining characters collection of the number of times of repetitive cycling step S205 with the target character Number of combinations is equal, if the number of repetition is less than the number of combinations of the target character, proceeds combination, because root According to Thai rule of combination, a combining characters are up to four independent character compositions.
S207:If judged result is no, coding error sends miscue information.
S208:If the combining characters concentrate the character that there is the font bitmap for being encoded to 0x0e33, after the character The bitmap of 0x0e32 is encoded to described in showing.
Judge that the combining characters are concentrated, if the character containing 0x0e33 codings, if it has, then needing to the target The corresponding character of character code shows remaining character in showing, because when incipient, 0x0e33 is split as into 0x0e4d And 0x0e32, and the bitmap for simply encoding 0x0e4d replaces the bitmap of 0x0e33 codings, therefore in the bitmap of 0x0e33 codings After display, the bitmap of 0x0e32 codings is shown, so far, a complete character shows and finishes.
By the description of above-described embodiment, the invention has the advantages that:
Character is shown to dependent, the mesh is determined by preset Thai coding rule and preset fractionation font bitmap The combining characters collection of marking-up symbol, to the character comprising 0x0e33 codings, is first shown in 0x0e4d and encodes after corresponding bitmap, connects The bitmap for showing 0x0e32 codings, this mode that specially treated is carried out to spcial character so that can under any font Enough correct displays, improve adaptability of the various fonts to Thai.
Fig. 3 is referred to, is the first embodiment structure composition schematic diagram of the processing meanss of the character of the present invention, the present invention is real Applying the described device of example can perform in Set Top Box, all kinds of intelligent terminals, and specifically, the processing meanss of the character include:Read Delivery block 1, composite module 2, character determining module 3, wherein:
The read module 1, for reading target character coding from encoded Thai characters string.
First, the font bitmap of Thai coding range is extracted from character library, Thai characters string to be shown is encoded, Then read single character code to encode as target character, in being put into caching.
The composite module 2, if for the target character be dependent show character, and the target character coding from Main body character starts coding, then determine the target character by preset Thai coding rule and preset fractionation font bitmap Combining characters collection.
Thai is divided into shoes character, cap character, tone character, main body character, respective character and mark according to spelling rules Six kinds of point character, if the target character shows character for independent, i.e., can respective character displayed separately and tone character, then Directly show on screen;If dependent shows character, then character process is combined.
In Thai coding rule, a complete character is all to start coding from main body character, then when the target word Symbol coding from main body character start coding when, according to preset Thai coding rule, the Thai coding rule such as Thai language Unicode is encoded, and Unicode is encoded to double byte, before be high byte, behind be low byte, hexadecimal table is all used here Show, such as 0E00 represents a space, and 0E is high byte, and 00 is low byte, analyzing pending character code has several single Character combination.
Preset fractionation font bitmap is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d fonts Bitmap and it is encoded to 0x0e32 font bitmaps;With the word for being encoded to and 0x0e33 being encoded to described in the replacement of 0x0e4d fonts bitmap Position figure, and the coding of the 0x0e33 is constant, i.e., original encoding is 0x0e33 for the corresponding coding of 0x0e4d font bitmaps.Its In, font bitmap is the picture of one secondary " .bmp ", and by carrying out bitmap parsing to it actual dot array data is can be obtained by, Show on display.
, there is the font bitmap for being encoded to 0x0e33 for concentrating according to the combining characters in the character determining module 3 Character, determine that the target character encodes corresponding character.
Judge that the combining characters are concentrated, if the character containing 0x0e33 codings, if it has, then needing to the target The corresponding character of character code shows remaining character in showing, so far, a complete character shows and finishes.
In the specific implementation, the composite module 2 may include unit as shown in Figure 4, specially:
Identifying unit 21, for judging whether the target character coding starts to encode from main body character.
Processing unit 22, if the judged result of the identifying unit is yes, reading can be with the target character coded combination Character late coding, and be nonbody character in the type of character late coding correspondence character, then by the next one The corresponding character of character code is carried out or computing with the target character corresponding character of coding, obtains combining characters, repeats this Unit operation is until determine the combining characters collection of the target character.
The group of target character described in combining characters collection of the number of times of repetitive cycling this unit operation with the target character Conjunction number is equal, if number of combinations of the number of repetition less than the target character, proceeds combination, because according to Thai rule of combination a, combining characters are up to four independent character compositions.
Tip element 23, for if it is determined that when the judged result of unit is no, coding error sends miscue information.
Second display unit 24, if encoded for character late in the processing unit based on the type for corresponding to character Body character, then show the character.
The character determining module 3, please participate in the structure chart of the character determining module of Fig. 5, specifically may include:
Determining unit 31, if concentrating the character that there is the font bitmap for being encoded to 0x0e33 for the combining characters, really Make the target character and encode corresponding character.
First display unit 32, for showing the character that the determining unit determines.
If the combining characters concentrate the character that there is the font bitmap for being encoded to 0x0e33, institute is shown after the character State the remaining character of target character, i.e., be encoded to after the corresponding bitmaps of 0x0e33 show show described in be encoded to the position of 0x0e32 Figure.
The embodiment of the present invention is adopted and shows character to dependent, by preset Thai coding rule and preset fractionation word Position figure determines the combining characters collection of the target character, then correctly determines that character code is corresponding from combining characters collection Character, it is to avoid to occurring after to coded treatment after Thai characters Unified coding including nothing after can not correctly showing, combining The problems such as method is recognized, can preferably ensure that Thai characters can correctly show under various fonts, improve various fonts pair The adaptability of Thai.
Further, Fig. 6 is referred to, is that the second embodiment structure composition of the processing meanss of the character of the present invention is illustrated Figure, the described device of the embodiment of the present invention can be performed in Set Top Box, all kinds of intelligent terminals, specifically, the process of the character Device includes the read module 1 in above-mentioned first embodiment, and composite module 2, character determining module 3 is in the present embodiment, described The processing meanss of character may also include:
Tables of data makes module 4, for according to preset fractionation font bitmap, making Thai dot character tables of data, word Symbol width table and character index table.
Coding module 5, for encoding to Thai characters string to be processed, obtains encoded Thai characters string.
Module 6 is split, for defining the fractionation font bitmap, the font bitmap fractionation that will be encoded to 0x0e33 is obtained It is encoded to 0x0e4d fonts bitmap and is encoded to 0x0e32 font bitmaps.
Replacement module 7, with it is described be encoded to 0x0e4d fonts bitmap replace described in be encoded to the font bitmap of 0x0e33, and The coding of the 0x0e33 is constant.
In the character determining module 3, also need to judge that the combining characters are concentrated, if the word containing 0x0e33 codings Symbol, if it has, then needing that the target character is encoded in corresponding character shows remaining character, because splitting module 6 In replacement module 7,0x0e33 is split as into 0x0e4d and 0x0e32, and the bitmap for simply encoding 0x0e4d replaces 0x0e33 The bitmap of coding, therefore after the bitmap of 0x0e33 codings shows, the bitmap that 0x0e32 is encoded is shown, so far, one is complete Character shows and finishes.
Implement above-described embodiment, character is shown to dependent, by preset Thai coding rule and preset fractionation word Position figure determines the combining characters collection of the target character, to the character comprising 0x0e33 codings, is first shown in 0x0e4d volumes After the corresponding bitmap of code, the bitmap that 0x0e32 is encoded, this mode that specially treated is carried out to spcial character are then shown so that Can correctly show under any font, improve adaptability of the various fonts to Thai.
Fig. 7 is referred to, is a kind of structure composition schematic diagram of Set Top Box of the present invention, including a processor 1 and aobvious Show device 2, wherein, the processor 1 includes the processing meanss of the character as described in Fig. 3 to Fig. 6 correspondence embodiments, the display 2 are used to show processed character.
By the description of the embodiment, the present invention has advantages below:
The device of character process shows character to dependent, by preset Thai coding rule and preset fractionation font Bitmap determines the combining characters collection of the target character, to the character comprising 0x0e33 codings, shows that 0x0e4d codings are right first The bitmap answered, then shows the bitmap that 0x0e32 is encoded, this Set Top Box that specially treated is carried out to spcial character so that in office Can correctly show under what font, improve adaptability of the various fonts to Thai.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Above disclosed is only present pre-ferred embodiments, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (13)

1. a kind of processing method of character, it is characterised in that include:
Target character coding is read from encoded Thai characters string;
If the target character is dependent character is shown, and target character coding starts coding from main body character, then press Preset Thai coding rule and preset fractionation font bitmap determines the combining characters collection of the target character;
According to the character of the font bitmap that 0x0e33 is encoded to present in the combining characters collection, the target character is determined Encode corresponding character;
Wherein, the preset word bit figure that splits is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d words Position figure and it is encoded to 0x0e32 font bitmaps;It is encoded to 0x0e33's with described being encoded to described in the replacement of 0x0e4d fonts bitmap Font bitmap, and the coding of the 0x0e33 is constant.
2. the method for claim 1, it is characterised in that described to read target character from encoded Thai characters string Before coding, also include:
According to preset fractionation font bitmap, Thai dot character tables of data, character duration table and character index table are made;
Thai characters string to be processed is encoded, encoded Thai characters string is obtained.
3. method as claimed in claim 2, it is characterised in that the target character coding starts coding from main body character, then Determine the combining characters collection of the target character by preset Thai coding rule and preset fractionation font bitmap, including:
Judge whether the target character coding starts coding from main body character;
If the determination result is YES, reading can encode with the character late of the target character coded combination, and in the next one The type of character code correspondence character is nonbody character, then the character late is encoded into corresponding character and the target word The corresponding character of symbol coding is carried out or computing, obtains combining characters, repeats this step until determining the group of the target character Close character set.
4. method as claimed in claim 2, it is characterised in that it is described concentrate to be present according to the combining characters be encoded to Character in the font bitmap of 0x0e33, determines that the target character encodes corresponding character, also includes:
Determine that the target character is encoded after corresponding character, show the character.
5. method as claimed in claim 3, it is characterised in that if the target character is dependent shows character, and The target character coding starts coding from main body character, then by preset Thai coding rule and preset fractionation font bitmap Determine the combining characters collection of the target character, also include:
If target character coding be not from main body character start coding when, coding error sends miscue information.
6. method as claimed in claim 3, it is characterised in that if the target character is dependent shows character, and The target character coding starts coding from main body character, then by preset Thai coding rule and preset fractionation font bitmap Determine the combining characters collection of the target character, also include:
If the type of the character late coding correspondence character is main body character, the character is shown.
7. a kind of processing meanss of character, it is characterised in that include:
Read module, for reading target character coding from encoded Thai characters string;
Composite module, if it is that dependent shows character for the target character, and the target character is encoded from main body character Start coding, then the combining characters of the target character are determined by preset Thai coding rule and preset fractionation font bitmap Collection;
Character determining module, for concentrating the character that there is the font bitmap for being encoded to 0x0e33 according to the combining characters, really Make the target character and encode corresponding character;
Wherein, the preset word bit figure that splits is to split the font bitmap for being encoded to 0x0e33 to obtain being encoded to 0x0e4d words Position figure and it is encoded to 0x0e32 font bitmaps;It is encoded to 0x0e33's with described being encoded to described in the replacement of 0x0e4d fonts bitmap Font bitmap, and the coding of the 0x0e33 is constant.
8. device as claimed in claim 7, it is characterised in that also include:
Tables of data makes module, for according to preset fractionation font bitmap, making Thai dot character tables of data, character duration Table and character index table;
Coding module, for encoding to Thai characters string to be processed, obtains encoded Thai characters string.
9. device as claimed in claim 8, it is characterised in that the composite module includes:
Identifying unit, for judging that whether the target character is encoded from main body character code;
Processing unit, if the judged result of the identifying unit is yes, reading can be next with the target character coded combination Individual character code, and when the type of the character late coding correspondence character is nonbody character, then by the character late Encode corresponding character is carried out or computing with the target character corresponding character of coding, obtains combining characters, repeats this step Until determining the combining characters collection of the target character.
10. device as claimed in claim 8, it is characterised in that the character determining module includes:
Determining unit, if concentrating the character that there is the font bitmap for being encoded to 0x0e33 for the combining characters, determines institute State target character and encode corresponding character;
First display unit, for showing the character that the determining unit determines.
11. devices as claimed in claim 9, it is characterised in that the composite module also includes:
Tip element, for if it is determined that when the judged result of unit is no, coding error sends miscue information.
12. devices as claimed in claim 9, it is characterised in that the composite module also includes:
Second display unit, if the type for character late coding correspondence character in the processing unit is main body character Symbol, then show the character.
13. a kind of Set Top Boxes, it is characterised in that including the device described in claim 7-12 any one of item.
CN201310401151.3A 2013-09-06 2013-09-06 Method and device for processing character and set top box Active CN103491414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310401151.3A CN103491414B (en) 2013-09-06 2013-09-06 Method and device for processing character and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310401151.3A CN103491414B (en) 2013-09-06 2013-09-06 Method and device for processing character and set top box

Publications (2)

Publication Number Publication Date
CN103491414A CN103491414A (en) 2014-01-01
CN103491414B true CN103491414B (en) 2017-04-12

Family

ID=49831326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310401151.3A Active CN103491414B (en) 2013-09-06 2013-09-06 Method and device for processing character and set top box

Country Status (1)

Country Link
CN (1) CN103491414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893335B (en) * 2016-03-30 2019-07-12 广州华多网络科技有限公司 The method and apparatus of display text
CN106534931A (en) * 2016-11-22 2017-03-22 山东浪潮商用系统有限公司 Information input method and information input device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692254A (en) * 2009-10-27 2010-04-07 中兴通讯股份有限公司 Method and device for displaying multi-Unicode language character codes
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040127236A1 (en) * 2002-12-27 2004-07-01 Manjirnath Chatterjee Method and apparatus for text entry for electronic messaging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692254A (en) * 2009-10-27 2010-04-07 中兴通讯股份有限公司 Method and device for displaying multi-Unicode language character codes
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于嵌入式系统的泰文手写识别系统的研究与实现;公学雷;《西安电子科技大学硕士学位论文》;20070630;全文 *

Also Published As

Publication number Publication date
CN103491414A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
US11507727B2 (en) Font rendering method and apparatus, and computer-readable storage medium
CN104111922B (en) Processing method and device of streaming document
CN103336690A (en) HTML (Hypertext Markup Language) 5-based text-element drawing method and device
CN111915705B (en) Picture visual editing method, device, equipment and medium
CN101526963A (en) Method for identifying web page coding, device and terminal equipment
CN104572683A (en) Word stroke animation processing method and device
CN105843800A (en) DOI-based language information display method and device
CN101008940B (en) Method and device for automatic processing font missing
CN102970596A (en) Method and system for realizing multi-language font display of set top box and set top box
JP5788047B2 (en) Encoder for encoding text into matrix code symbols and decoder for decoding matrix code symbols
CN106557452A (en) For the display packing of numeric character or character string, device, equipment and system
CN103491414B (en) Method and device for processing character and set top box
CN108038093A (en) PDF text extraction methods and device
CN112035706A (en) Encoding method, decoding method, computer device, and readable storage medium
CN101655835B (en) Method for text message processing, text message output and character retrieval in electronic document and device thereof
CN116451645A (en) Text processing method, text processing device, electronic equipment and computer readable storage medium
US20140049554A1 (en) Method of manipulating character string in embeded system
US9081529B1 (en) Generation of electronic books
CN102063416B (en) Method and system for embedding double-byte fonts into PDF file
US20130024765A1 (en) Processing rich text data for storing as legacy data records in a data storage system
CN106406561B (en) Character library lattice generation method based on generator set controller
CN102723067B (en) A kind of character display method and device
CN113038184B (en) Data processing method, device, equipment and storage medium
CN101840483A (en) Method and system for protecting computer document contents
CN112818301A (en) Method and device for embedding and extracting hidden information of OFD format electronic document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 008 building, room 704, SKYWORTH A703

Applicant after: Shenzhen Skyworth Software Co., Ltd.

Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 008 building, room 704, SKYWORTH A703

Applicant before: Shenzhen Skyworth Software Co., Ltd.

Applicant before: Shenzhen Skyworth Digital Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant