CN101847050A - Simple Chinese input and display method in embedded product - Google Patents

Simple Chinese input and display method in embedded product Download PDF

Info

Publication number
CN101847050A
CN101847050A CN201010175225A CN201010175225A CN101847050A CN 101847050 A CN101847050 A CN 101847050A CN 201010175225 A CN201010175225 A CN 201010175225A CN 201010175225 A CN201010175225 A CN 201010175225A CN 101847050 A CN101847050 A CN 101847050A
Authority
CN
China
Prior art keywords
chinese
input
font
embedded product
display packing
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
CN201010175225A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201010175225A priority Critical patent/CN101847050A/en
Publication of CN101847050A publication Critical patent/CN101847050A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a simple Chinese input and display method in an embedded product, and belongs to the field of Chinese input and display. The simple Chinese input and display method in the embedded product is characterized by comprising the following steps of: establishing an input method manager and defining a conversion table, wherein the table is used for establishing a mapping relation from key input codes to national standard codes; generating a Chinese font store meeting requirements by using a font generator; searching a bitmap font in the font store according to the zone bit codes obtained by conversion; and displaying the bitmap font in a display device. The method occupies small system resource and memory space and is suitable for Chinese input and occasions with low display operating frequency.

Description

The input of simple Chinese and display packing in a kind of embedded product
Technical field
The present invention relates to a kind of input in Chinese and display packing, especially a kind ofly can solve input in Chinese and the display packing that in embedded development, requires simple Chinese input and show problem.
Background technology
In the embedded product on the Chinese market nowadays, the module that nearly all has Chinese character to show.Along with improving constantly of people's demand, the product with interactive function more and more is subjected to people's favor, therefore just all can't do without Chinese character coding input method when realizing interactive function.Chinese character coding input method is not only very important on PC, and in built-in field also very general and important.General Embedded standard input method, as: the T9 cellphone inputting method, also have five, phonetic or the like is characterized in powerful, and character library is huge, and occupation space also is very large.If an embedded product only needs some simple a spot of Chinese character inputs and shows that the input rule above loading is very unadvisable, system resource that takies and space are all very big.
Summary of the invention
The method that the purpose of this invention is to provide a simple and easy input in Chinese of using in the embedded product exploitation, the method generally are applicable in the product development that only needs simple a spot of Chinese character input and show.The method is characterized in that:
1, set up input method manager, define a conversion table, the effect of table is to set up the mapping relations of key input codes to GB;
2, use the character library maker, generate the Chinese font store that meets the demands;
3, in matrix magazine, search this raster font with the region-position code that is converted in the first step;
4, the procedure for displaying of raster font on display device.
A method embodiment of the present invention is characterised in that: the outer sign indicating number of self-defined Chinese character is input in the mapping table in advance.After the user sends a key set code, in this mapping table, search earlier this corresponding key sign indicating number information, find out the position index of its mapping, make up according to region-position code: the dot-matrix font of this word searched in the index of district's sign indicating number+bit code in Chinese character font again, read its information then, mode with dot matrix is presented on the equipment, has finished the input and the demonstration of Chinese character.
By the input and the display packing of simple Chinese in this embedded product, can solve when in the embedded product exploitation, needing simple a spot of Chinese character input and demonstration the bigger shortcoming of the resource that takes up room that prior art exists.This method can realize setting up matrix magazine according to actual conditions, so system resource that occupies and space are less relatively.
Description of drawings
The present invention will illustrate by example and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is the theory diagram of a method embodiment of the present invention.
Embodiment
Disclosed all features in this instructions, or the step in disclosed all methods or the process except mutually exclusive feature and/or step, all can make up by any way.
Disclosed arbitrary feature in this instructions (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
As shown in Figure 1, to show that below embedded system linux Chinese character specifies its implementation.Key step is as follows:
1, open also initialization display device, as/dev/fb, resolution and color position that display device is set are dark, open up a shared drive, are used for preserving type matrix to be shown;
2, set up input method manager:
A) the simple and easy table of a mapping from the key input codes to the GB of definition comprises Hanzi section-position code mapping commonly used, as: aaa=5140 (especially), bbb=2980 (gold), ccc=2453 (just).This table can carry out the interpolation and the deletion action of map field according to demand;
B) can create an input method management window according to the graphics engine of system, demonstrate corresponding region-position code in the key set code of active user's input and the table, select accordingly to make things convenient for the user, this process not necessarily also can be omitted.
3, with the corresponding instrument of character library maker, generate the matrix magazine that meets the demands.
4, according to the key set code of user's input, search the table of definition in 2.1, find out its region-position code, as: the user imports " bbb ", and the corresponding region-position code that finds is 2980.
5, because matrix magazine is tactic by region-position code, so in matrix magazine, search this raster font with the region-position code that is converted in 2.When in matrix magazine, searching, also must carry out certain conversion relation by the region-position code index:
Corresponding type matrix is preserved address: l_offset=32* (94* (district's sign indicating number-1)+(bit code-1); District's sign indicating number is above: 29, and bit code is: 80, after calculating, the position of dot array data value in matrix magazine of " gold " this Chinese character has been exactly the byte location of l_offset correspondence.Relocate this position, read the dot matrix value of this word, be saved in buffer zone.
6, the demonstration of raster font on display device:
What preserve in the top buff_data buffering is the byte value of representing the dot matrix font of Chinese character " gold " with " 0 " and " 1 ".If " 0 " is expressed as a color, " 1 " is expressed as another kind of color, by the matrix value among the buff_data is outputed on the display device, just can print the font of Chinese character " gold ", thereby has also realized the demonstration of Chinese character.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.

Claims (7)

1. input in Chinese and the display packing in the embedded product is characterized in that:
A, set up input method manager, define the conversion table of an expression from key input codes to the GB mapping relations;
B, use character library are produced device, produce the Chinese font store that satisfies the demands;
C, according to described key input codes, search described conversion table and draw hand over word;
D, according to the conversion relation between raster font and the described hand over word, converse the preservation address of described raster font in described Chinese font store, according to described preservation address, in described Chinese font store, search and the corresponding described raster font of described hand over word; And
E, described raster font is presented on the display device.
2. input in Chinese and display packing in the embedded product as claimed in claim 1 is characterized in that, conversion table described in the step a is carried out the interpolation or the deletion action of map field according to demand.
3. input in Chinese and display packing in the embedded product as claimed in claim 1 is characterized in that, create among the step a in order to show the input method management window of described key input codes and its corresponding conversion sign indicating number.
4. input in Chinese and display packing in the embedded product as claimed in claim 1 is characterized in that hand over word comprises region-position code described in the step c, and the front two of wherein said region-position code is district's sign indicating number, and back two is bit code.
5. input in Chinese and display packing in the embedded product as claimed in claim 4 is characterized in that, the preservation address=32* (94* (district sign indicating number-1)+(bit code-1)) of raster font described in the steps d in described Chinese font store.
6. input in Chinese and display packing in the embedded product as claimed in claim 1 is characterized in that, steps d comprises the described raster font that will be found and is saved in buffer zone.
7. input in Chinese and display packing in the embedded product as claimed in claim 1 is characterized in that, the byte value of described raster font is represented by " 0 " of representing different colours respectively and " 1 ".
CN201010175225A 2010-05-18 2010-05-18 Simple Chinese input and display method in embedded product Pending CN101847050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010175225A CN101847050A (en) 2010-05-18 2010-05-18 Simple Chinese input and display method in embedded product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010175225A CN101847050A (en) 2010-05-18 2010-05-18 Simple Chinese input and display method in embedded product

Publications (1)

Publication Number Publication Date
CN101847050A true CN101847050A (en) 2010-09-29

Family

ID=42771684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010175225A Pending CN101847050A (en) 2010-05-18 2010-05-18 Simple Chinese input and display method in embedded product

Country Status (1)

Country Link
CN (1) CN101847050A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
CN104639854A (en) * 2015-01-29 2015-05-20 广东迅通科技股份有限公司 String processing display method based on Davinci platform
CN108415579A (en) * 2018-03-27 2018-08-17 中国航空无线电电子研究所 Chinese intelligent input system suitable for airborne equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201829A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Chinese character library system as well as character code display method thereof
CN101202976A (en) * 2006-12-13 2008-06-18 希姆通信息技术(上海)有限公司 Apparatus and method of mobile communication terminal character conversion

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202976A (en) * 2006-12-13 2008-06-18 希姆通信息技术(上海)有限公司 Apparatus and method of mobile communication terminal character conversion
CN101201829A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Chinese character library system as well as character code display method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
CN104639854A (en) * 2015-01-29 2015-05-20 广东迅通科技股份有限公司 String processing display method based on Davinci platform
CN104639854B (en) * 2015-01-29 2017-08-04 广东迅通科技股份有限公司 A kind of string processing display methods based on davinci platform
CN108415579A (en) * 2018-03-27 2018-08-17 中国航空无线电电子研究所 Chinese intelligent input system suitable for airborne equipment

Similar Documents

Publication Publication Date Title
US8542235B2 (en) System and method for displaying complex scripts with a cloud computing architecture
CN101630311B (en) Method and device for displaying characters
KR100727066B1 (en) Method for providing mobile webpage by employing to dynamic template
CN102841901A (en) Web page display method and device
CN101692254B (en) Method and device for displaying multi-Unicode language character codes
CN101963954A (en) Method and device for displaying words
US20090116739A1 (en) Mechanisms for Reducing a Size of a Color Bitmap
CN101483035B (en) Method and system for display text on graphical interface
JP2014160252A (en) Electronic equipment, character string display method and character string display program
CN111221596A (en) Font rendering method and device and computer readable storage medium
CN108961361B (en) Method and system for generating special effect text image and computer equipment
CN101847050A (en) Simple Chinese input and display method in embedded product
CN101794566A (en) Method and related device for determining font data of character to be displayed in mobile terminal
CN201259670Y (en) Text message processing apparatus and equipment
CN101127847A (en) A screen display synthesis method and synthesis device
CN113763514B (en) Method, device and system for generating stroke order animation and electronic equipment
CN101957837B (en) Method for accessing stroke vector font
CN1121656C (en) Characters display method under apparent window environment
CN101488125A (en) Tibetan language encoding method and terminal
CN105513108A (en) Word stock drawing method based on texture mapping
CN110032348A (en) A kind of character display method, device, medium
US9684986B1 (en) Constructing fonts from scanned images for rendering text
CN111324587A (en) Compression method, analysis method and system for data of OBJ file
CN114596389B (en) Large-batch text label drawing method based on OpenGL instantiation technology
CN103491414A (en) Method and device for processing character and set top box

Legal Events

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

Open date: 20100929