CN102970596A - Method and system for realizing multi-language font display of set top box and set top box - Google Patents

Method and system for realizing multi-language font display of set top box and set top box Download PDF

Info

Publication number
CN102970596A
CN102970596A CN2012104942116A CN201210494211A CN102970596A CN 102970596 A CN102970596 A CN 102970596A CN 2012104942116 A CN2012104942116 A CN 2012104942116A CN 201210494211 A CN201210494211 A CN 201210494211A CN 102970596 A CN102970596 A CN 102970596A
Authority
CN
China
Prior art keywords
font
top box
unicode code
memory bitmap
multilingual
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
CN2012104942116A
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN2012104942116A priority Critical patent/CN102970596A/en
Publication of CN102970596A publication Critical patent/CN102970596A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a system for realizing multi-language font display of a set top box and the set top box. The method comprises the steps of presetting Unicode scope, font size and font types, and matching lattice type matrixes corresponding to the Unicodes in system fonts according to the set font size and font types; storing the lattice type matrixes corresponding to the Unicodes on an memory bitmap, scanning the memory bitmap to obtain the lattice information of each Unicode in the memory bitmap, and storing the lattice information in a font file; encoding a character string to be displayed into Unicode, obtaining the lattice information of the Unicode from the font file, drawing the lattice information in a video memory sequentially and displaying fonts drawn in the video memory on a screen. According to the method, the multi-language font display of the digital set top box is realized. The multi-language font display is realized by software, and the realization mode is easy.

Description

A kind of method, system and set-top box that realizes that the multilingual font of set-top box shows
Technical field
The present invention relates to the top box of digital machine field, in particular a kind of method, system and set-top box that realizes that the multilingual font of set-top box shows.
Background technology
Along with science and technology development particularly, top box of digital machine is come into huge numbers of families gradually, becomes people's indispensable equipment that televiews.Top box of digital machine is a kind of multimedia terminal, and the hardware architecture and special-purpose real time operating system and the application software that are similar to home computer are arranged.Top box of digital machine transmits a large amount of information, particularly Word message simultaneously by menu and user interactions, so the font that shows on the top box of digital machine is the most frequently used to the user.Different users is also different to the requirement of attitude, comprises the requirement to different fonts, different font sizes.
Yet, existing top box of digital machine is only supported ASCII character and GB2312 to the coding of literal, that is to say and only support english font and Chinese font, the font that can not show other language, use the user of Chinese and English for some, the large heavy discount of its use value has had a strong impact on the promotion and application of top box of digital machine.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the defects of prior art, provides a kind of method, system and set-top box that realizes that the multilingual font of set-top box shows, can not support the problem that multilingual font shows to solve existing top box of digital machine.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of method that realizes that the multilingual font of set-top box shows wherein, comprises step:
A, set-top box receive user instruction, preset Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
B, the dot-matrix font corresponding with each Unicode code left on the memory bitmap, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
C, be the Unicode code with string encoding to be shown, from described font file, obtain the lattice information of this Unicode code, described lattice information is plotted in the video memory successively, and the font that will be plotted in the described video memory is presented on the screen.
The method that the multilingual font of described realization set-top box shows, wherein, described step B also comprises: according to from top to bottom, from left to right the described memory bitmap of sequential scanning.
The method that the multilingual font of described realization set-top box shows, wherein, described step B also comprises: obtain the wide high information of each Unicode code in described memory bitmap, and described wide high information is kept in the described font file.
The method that the multilingual font of described realization set-top box shows, wherein, described step C also comprises:
At first character string to be shown being encoded with ISO8859, is the Unicode code with described ISO8859 code conversion again.
The method that the multilingual font of described realization set-top box shows, wherein, described system font is the windows font.
A kind of system that realizes that the multilingual font of set-top box shows, wherein, described system comprises:
Pretreatment module is used for preseting Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
Coding module, be used for that described pretreatment module is processed the dot-matrix font corresponding with each Unicode code that obtains and leave a memory bitmap in, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
The font display module, being used for string encoding to be shown is the Unicode code, from the font file that described coding module generates, obtain the lattice information of this Unicode code, described lattice information is left in the memory bitmap successively, and the font that will deposit out in described memory bitmap is presented on the screen.
The system that the multilingual font of described realization set-top box shows, wherein, described coding module according to from top to bottom, from left to right the described memory bitmap of sequential scanning.
The system that the multilingual font of described realization set-top box shows, wherein, described coding module also is used for obtaining each Unicode code in the wide high information of described memory bitmap, and described wide high information is kept in the described font file.
A kind of set-top box, wherein, described set-top box comprises the system that the multilingual font of above-mentioned realization set-top box shows.
Method, system and set-top box that the multilingual font of realization set-top box provided by the present invention shows, owing to adopted character string to be shown is carried out the Unicode coding, the multilingual font that has realized top box of digital machine shows, and realize by software, implementation procedure is simple, show that fresh fruit is remarkable, be beneficial to the promotion and application of top box of digital machine.
Description of drawings
Fig. 1 is the method flow diagram of the multilingual demonstration of realization set-top box provided by the invention.
Fig. 2 is the system configuration schematic diagram of the multilingual demonstration of realization set-top box provided by the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the method flow diagram of the multilingual demonstration of realization set-top box provided by the invention, may further comprise the steps:
Step S100, set-top box receive user instruction, preset Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
Step S200, the dot-matrix font corresponding with each Unicode code left on the memory bitmap, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
Step S300, be the Unicode code with string encoding to be shown, from described font file, obtain the lattice information of this Unicode code, described lattice information is left in the memory bitmap successively, and the font that will deposit out in described memory bitmap is presented on the screen.
Below in conjunction with specific embodiment above-mentioned steps is described in detail and describes.
The present invention adopts the Unicode character code to come the character library in the top box of digital machine is re-constructed, and the below carries out simple declaration to Unicode.Unicode(Unicode, ten thousand country codes, single code) be a kind of character code that uses on computers.It is in every kind of language each character setting unified and unique binary coding, stride language, the cross-platform requirement of carrying out text-converted, processing to satisfy.Unicode be international organization formulate can hold the in the world character coding method of all literal and symbol.Unicode shines upon these characters with digital 0-0x10FFFF, can hold at most 1114112 characters, and 1114112 code bits are arranged in other words.Code bit is exactly to distribute to the numeral of character.UTF-8, UTF-16, UTF-32 are with the encoding scheme of digital translation to routine data.The present invention can adopt a kind of in above-mentioned several encoding scheme, but is not limited to a certain.
In step S100, because every kind of language is corresponding different Unicode code scope all, for example, the Unicode code scope of Chinese is 4E00-9FBF, substantially Latin Unicode code scope is 0000-007F, and the Unicode code scope of Arabic is 0600-06FF etc.The present invention at first sets different Unicode code scopes according to different language.Simultaneously font size and font type are also set accordingly.In the windows font, each font has dot-matrix font separately.Therefore, after the Unicode of font code, font size and font type are set, search the dot-matrix font of each Unicode code correspondence according to font size and the font type set in the windows font, these dot-matrix fonts are some with 0 and 1 matrix that represents.Can easily distinguish each Unicode code by these dot-matrix fonts, and then distinguish its represented different fonts.System font of the present invention is not limited to the windows font, also can be other system font, for example ios system font, os system font etc.
In step S200, set-top box is to Installed System Memory application one memory bitmap, be used for leaving in each dot-matrix font that step S100 obtains, after leaving in each dot-matrix font on the described memory bitmap, memory bitmap is scanned, in order to obtain wide high information and the lattice information of each Unicode code, the wide high information here is the wide height of pixel of each Unicode code.The present invention is according to from top to bottom, in sequence from left to right to the scanning of memory bitmap.And wide high information and the lattice information that scanning obtains be kept in the font file, every kind of language has font file separately, is independent of each other each other.By this step, the present invention has just finished the recompile to multilingual font, and has formed character library separately.
After finishing said process, beginning execution in step S300 shows multilingual font.When showing, at first character string to be shown is encoded, character string to be shown is encoded with ISO8599, certainly, be not limited to the ISO8599 coding.Be the Unicode code with the ISO8599 code conversion again, with character string to be shown take ISO8599 coding, again with the ISO8599 code conversion as the implementation procedure of Unicode code simple, code efficiency is higher.
After string encoding is the Unicode code, begin this Unicode code is carried out matching treatment, obtain the lattice information of this unicode code in the font file that from step S200, obtains, then be plotted in the video memory at the lattice information with this Unicode code, what show in video memory at this moment, is font behind Unicode coding.At last, the font that shows in the video memory is presented on the screen, because the Unicode coding is supported multilingual, therefore, after the process above-mentioned steps, the font that shows at screen also is multilingual font again.
The method that the multilingual font of above-mentioned realization of the present invention shows realizes that by software do not need extra hardware cost, implementation is simple, and successful.
Based on the method that the multilingual font of above-mentioned realization set-top box shows, the present invention also provides a kind of system that realizes that the multilingual font of set-top box shows, as shown in Figure 2, this system comprises:
Pretreatment module 10 is used for preseting Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
Coding module 20, be used for that described pretreatment module 10 is processed the dot-matrix font corresponding with each Unicode code that obtains and leave a memory bitmap in, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
Font display module 30, being used for string encoding to be shown is the Unicode code, from the font file that described coding module 20 generates, obtain the lattice information of this Unicode code, described lattice information is left in the memory bitmap successively, and the font that will deposit out in described memory bitmap is presented on the screen.
Further, the coding module of this system according to from top to bottom, from left to right the described memory bitmap of sequential scanning, and in the lattice information that obtains each Unicode code, also obtain the wide high information of each Unicode code in described memory bitmap, and described wide high information is kept in the described font file, so that follow-up conversion to font size.
The present invention also provides a kind of set-top box, and this set-top box comprises the system that the multilingual font of above-mentioned realization shows, certainly, set-top box provided by the invention is top box of digital machine.
In sum, method, system and set-top box that the multilingual font of realization set-top box provided by the invention shows by to character string turnover Unicode coding to be shown, have realized that the multilingual font of top box of digital machine shows.And realize that by software not only implementation is simple, save cost, and display effect is remarkable, is beneficial to the promotion and application of top box of digital machine.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (9)

1. a method that realizes that the multilingual font of set-top box shows is characterized in that, comprises step:
A, set-top box receive user instruction, preset Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
B, the dot-matrix font corresponding with each Unicode code left on the memory bitmap, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
C, be the Unicode code with string encoding to be shown, from described font file, obtain the lattice information of this Unicode code, described lattice information is plotted in the video memory successively, and the font that will be plotted in the described video memory is presented on the screen.
2. the method that shows of the multilingual font of realization set-top box according to claim 1 is characterized in that described step B also comprises: according to from top to bottom, from left to right the described memory bitmap of sequential scanning.
3. the method that shows of the multilingual font of realization set-top box according to claim 1 and 2, it is characterized in that, described step B also comprises: obtain the wide high information of each Unicode code in described memory bitmap, and described wide high information is kept in the described font file.
4. the method that shows of the multilingual font of realization set-top box according to claim 1 is characterized in that described step C also comprises:
At first character string to be shown being encoded with ISO8859, is the Unicode code with described ISO8859 code conversion again.
5. the method for the multilingual font demonstration of realization set-top box according to claim 1 is characterized in that described system font is the windows font.
6. system that realizes that the multilingual font of set-top box shows is characterized in that described system comprises:
Pretreatment module is used for preseting Unicode code scope, font size and font type, and according to the dot-matrix font corresponding with each Unicode code in the font size of setting and the font type matching system font;
Coding module, be used for that described pretreatment module is processed the dot-matrix font corresponding with each Unicode code that obtains and leave a memory bitmap in, scan described memory bitmap, obtain the lattice information of each Unicode code in memory bitmap, and described lattice information is kept in the font file;
The font display module, being used for string encoding to be shown is the Unicode code, from the font file that described coding module generates, obtain the lattice information of this Unicode code, described lattice information is left in the memory bitmap successively, and the font that will deposit out in described memory bitmap is presented on the screen.
7. the system that shows of the multilingual font of realization set-top box according to claim 6 is characterized in that, described coding module according to from top to bottom, from left to right the described memory bitmap of sequential scanning.
8. the system that shows of the multilingual font of realization set-top box according to claim 6, it is characterized in that, described coding module also is used for obtaining each Unicode code in the wide high information of described memory bitmap, and described wide high information is kept in the described font file.
9. a set-top box is characterized in that, described set-top box comprises the system that the multilingual font of each described realization set-top box of claim 6 to 8 shows.
CN2012104942116A 2012-11-28 2012-11-28 Method and system for realizing multi-language font display of set top box and set top box Pending CN102970596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104942116A CN102970596A (en) 2012-11-28 2012-11-28 Method and system for realizing multi-language font display of set top box and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104942116A CN102970596A (en) 2012-11-28 2012-11-28 Method and system for realizing multi-language font display of set top box and set top box

Publications (1)

Publication Number Publication Date
CN102970596A true CN102970596A (en) 2013-03-13

Family

ID=47800414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104942116A Pending CN102970596A (en) 2012-11-28 2012-11-28 Method and system for realizing multi-language font display of set top box and set top box

Country Status (1)

Country Link
CN (1) CN102970596A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469468A (en) * 2014-12-26 2015-03-25 珠海迈越信息技术有限公司 Multi-language display method for OLED front panel of set top box
CN106021205A (en) * 2016-06-17 2016-10-12 宁波柯力传感科技股份有限公司 Language and character display method for large dot matrix screen
CN106293587A (en) * 2016-08-24 2017-01-04 上海伟世通汽车电子系统有限公司 Multilingual dynamic display method and display system thereof for vehicle-mounted digital instrument
CN107203311A (en) * 2017-05-11 2017-09-26 西安诺瓦电子科技有限公司 The display methods and device of multi-language menus
CN109086256A (en) * 2018-07-12 2018-12-25 郑州众智科技股份有限公司 A kind of generation and application method of the character library dot matrix that length is variable
CN109871667A (en) * 2019-02-18 2019-06-11 北京创鑫旅程网络技术有限公司 Data content guard method, device, server and computer-readable medium
CN110188329A (en) * 2019-05-29 2019-08-30 惠州市德赛西威汽车电子股份有限公司 Method for mutually conversing and its system between the number of both font types
CN110597591A (en) * 2019-09-17 2019-12-20 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN111028441A (en) * 2019-10-31 2020-04-17 艾体威尔电子技术(北京)有限公司 Method for displaying various languages and characters on micro memory password keyboard

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266776A (en) * 2008-04-21 2008-09-17 哈尔滨侨航通信设备有限公司 A method for displaying any language at a hardware terminal via establishing lattice word library
CN101876907A (en) * 2010-05-18 2010-11-03 杭州海康威视数字技术股份有限公司 Multi-language implementation method and device of human-computer interaction interface
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
US20120092345A1 (en) * 2010-10-13 2012-04-19 Bitstream, Inc. System and method for displaying complex scripts with a cloud computing architecture
CN102479075A (en) * 2010-11-23 2012-05-30 中兴通讯股份有限公司 Multi-language display method and device in embedded device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266776A (en) * 2008-04-21 2008-09-17 哈尔滨侨航通信设备有限公司 A method for displaying any language at a hardware terminal via establishing lattice word library
CN101876907A (en) * 2010-05-18 2010-11-03 杭州海康威视数字技术股份有限公司 Multi-language implementation method and device of human-computer interaction interface
US20120092345A1 (en) * 2010-10-13 2012-04-19 Bitstream, Inc. System and method for displaying complex scripts with a cloud computing architecture
CN102479075A (en) * 2010-11-23 2012-05-30 中兴通讯股份有限公司 Multi-language display method and device in embedded device
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469468B (en) * 2014-12-26 2018-04-13 珠海迈越信息技术有限公司 A kind of Multi-language display method of set-top box OLED front panels
CN104469468A (en) * 2014-12-26 2015-03-25 珠海迈越信息技术有限公司 Multi-language display method for OLED front panel of set top box
CN106021205A (en) * 2016-06-17 2016-10-12 宁波柯力传感科技股份有限公司 Language and character display method for large dot matrix screen
CN106293587A (en) * 2016-08-24 2017-01-04 上海伟世通汽车电子系统有限公司 Multilingual dynamic display method and display system thereof for vehicle-mounted digital instrument
CN106293587B (en) * 2016-08-24 2019-09-03 上海伟世通汽车电子系统有限公司 Multilingual dynamic display method and its display system for vehicle-mounted digital instrument
CN107203311B (en) * 2017-05-11 2020-05-19 西安诺瓦星云科技股份有限公司 Display method and device of multi-language menu
CN107203311A (en) * 2017-05-11 2017-09-26 西安诺瓦电子科技有限公司 The display methods and device of multi-language menus
CN109086256A (en) * 2018-07-12 2018-12-25 郑州众智科技股份有限公司 A kind of generation and application method of the character library dot matrix that length is variable
CN109086256B (en) * 2018-07-12 2022-08-26 郑州众智科技股份有限公司 Method for generating and using variable-length word stock dot matrix
CN109871667A (en) * 2019-02-18 2019-06-11 北京创鑫旅程网络技术有限公司 Data content guard method, device, server and computer-readable medium
CN110188329A (en) * 2019-05-29 2019-08-30 惠州市德赛西威汽车电子股份有限公司 Method for mutually conversing and its system between the number of both font types
CN110597591A (en) * 2019-09-17 2019-12-20 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN110597591B (en) * 2019-09-17 2022-10-14 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN111028441A (en) * 2019-10-31 2020-04-17 艾体威尔电子技术(北京)有限公司 Method for displaying various languages and characters on micro memory password keyboard

Similar Documents

Publication Publication Date Title
CN102970596A (en) Method and system for realizing multi-language font display of set top box and set top box
US20210397780A1 (en) Method, device, and storage medium for correcting error in text
US7937658B1 (en) Methods and apparatus for retrieving font data
CN108090400B (en) Image text recognition method and device
CN102141916B (en) Embedded equipment and method for displaying language word on OSD interface
US9152904B2 (en) System and methods for encoding and decoding multi-lingual text in a matrix code symbol
CN100587795C (en) Method for displaying any language at hardware terminal via establishing lattice word library
US11599727B2 (en) Intelligent text cleaning method and apparatus, and computer-readable storage medium
CN112329447B (en) Training method of Chinese error correction model, chinese error correction method and device
CN107562480B (en) Method and system for realizing multilingual of POS machine
CN101692254B (en) Method and device for displaying multi-Unicode language character codes
CN102968453A (en) Film and video searching method for mobile terminal
JP5788047B2 (en) Encoder for encoding text into matrix code symbols and decoder for decoding matrix code symbols
EP2482231A1 (en) Method for encoding and decoding data on a matrix code symbol
US20140049554A1 (en) Method of manipulating character string in embeded system
CN106777061B (en) Information hiding system and method based on webpage text and image and extraction method
CN111915705B (en) Picture visual editing method, device, equipment and medium
CN105677718A (en) Character retrieval method and apparatus
US20160283444A1 (en) Human input to relate separate scanned objects
CN116303888A (en) Rarely used word processing method and device, storage medium and electronic equipment
US11132497B2 (en) Device and method for inputting characters
CN105892710B (en) Chinese character input method and device based on text box
CN104991657A (en) Chinese and Japanese katakana integrated input method and input method system
TW561360B (en) Method and system for case conversion
CN107492354B (en) Dot matrix liquid crystal generator set controller-based multi-language implementation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130313

RJ01 Rejection of invention patent application after publication