CN102855115A - Method and system for displaying character label based on splicing wall - Google Patents
Method and system for displaying character label based on splicing wall Download PDFInfo
- Publication number
- CN102855115A CN102855115A CN2012103166616A CN201210316661A CN102855115A CN 102855115 A CN102855115 A CN 102855115A CN 2012103166616 A CN2012103166616 A CN 2012103166616A CN 201210316661 A CN201210316661 A CN 201210316661A CN 102855115 A CN102855115 A CN 102855115A
- Authority
- CN
- China
- Prior art keywords
- character
- character code
- internal memory
- label
- code
- 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
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a method and system for displaying a character label based on a splicing wall, and the method and the system are used for improving the display efficiency of the character label. The method disclosed by the embodiment of the invention comprises the following steps of: acquiring an ith character of the character label, wherein i is a positive integer which is more than or equal to 1 or less than or equal to number of characters of the character label; according to character coding of the ith character, finding whether a character internal memory container is stored with the character coding or not; if the character coding is not stored, acquiring font data corresponding the character coding from a font file according the character coding, converting the acquired font data into image data and displaying the image data on the splicing wall, and storing the character coding and the converted image data corresponding to the character coding in the character internal memory container.
Description
Technical field
The present invention relates to combination and show the field, be specifically related to a kind of method and system based on combination display text mark.
Background technology
The label character that shows map at splicing wall display system, general method is to obtain a character from label character, character code by character obtains font data from the font literal, then these data are converted into view data and show, repeat aforesaid operations until all show complete to this label character.Obviously, the key that determines the label character display efficiency is the quantity of label character, the label character quantity that shows is more, time and space resources that the processing literal needs are just more, corresponding demonstration is consuming time just larger, in such scheme, no matter whether literal processed, all need to carry out processing again.Be " Heilongjiang Province " such as label character 1 content, label character 2 contents are " Jilin Province ", show that mark 1 and 2 needs to process 7 literal, obviously " province " word re-treatment.In the situation that label character is not a lot, this scheme can satisfy application, but when needing to realize the demonstration of magnanimity label character, demonstration will consume the plenty of time, affect system performance.Particularly in Geographic Information System (Geographic Information System is called for short GIS), often need to show the literal of ten thousand ranks or the higher order of magnitude, the label character treatment effeciency of said method can't meet the demands.
Summary of the invention
For defects, the embodiment of the invention provides a kind of method and system based on combination display text mark, is used for improving the display efficiency of label character, improves the performance of system.
First aspect, the embodiment of the invention provide a kind of method based on combination display text mark, comprising:
Obtain i character of label character, described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
Search in the character internal memory container whether preserve described character code according to the character code of described i character;
If have, then from described character internal memory container, obtain the view data corresponding with described character code and show at combination;
If do not have, then from font file, obtain the font data corresponding with described character code according to described character code, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
In conjunction with first aspect, in the possible implementation of the first, in described character internal memory container, described character code and described view data adopt one to one preserving type.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, before described the 1st character that obtains label character, also comprise receiving the instruction of display text mark.
Second aspect, the embodiment of the invention also provides a kind of system based on combination display text mark, comprise: processor and personal computer, at described processor display routine is installed, at described personal computer control program is installed, described processor is connected by LAN (Local Area Network) with described personal computer;
Described processor comprises:
Acquiring unit obtains i character of label character, and described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
Search the unit, be used for searching character internal memory container according to the character code of described i character and whether preserve described character code;
Display unit is used for obtaining the view data corresponding with described character code from described character internal memory container and shows at combination; Or be used for obtaining the font data corresponding with described character code according to described character code from font file, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
When i character of display text mark, search at character internal memory container according to the character code of i character and whether this character code to be kept in the character internal memory container, if have, then directly obtaining the view data corresponding with this character code shows on combination, if do not have, then from font file, obtain the font data corresponding with this character code, view data after combination shows conversion, and convert this font data to view data and be kept in the character internal memory container, so that follow-up directly searching in character internal memory container processed identical literal, avoid the same text re-treatment, improve displaying time and the system performance of label character.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in the embodiment of the invention, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of method flow diagram based on combination display text mark that Fig. 1 provides for the embodiment of the invention;
A kind of system's basic block diagram based on combination display text mark that Fig. 2 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing of the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of method and system based on combination display text mark, is used for improving the display efficiency of label character, and as shown in Figure 1, the method comprises:
110, obtain i character of label character, described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
120, search in the character internal memory container whether preserve described character code according to the character code of described i character, if having, then turn to step 130, if do not have, then turn to step 140;
130, obtaining the view data corresponding with described character code from described character internal memory container shows at combination;
140, from font file, obtain the font data corresponding with described character code according to described character code, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
By obtaining i character of words identification, character code according to described i character is searched described character code at character internal memory container first, if in character internal memory container, preserved described character code, then directly from character internal memory container, read the view data corresponding with described character code, show described view data at combination afterwards; If in character internal memory container, do not find described character code, access so the font file acquisition font data corresponding with described character code, show at combination after converting described font data to view data, and then described character code and the view data corresponding with this character code be kept in the character internal memory container, so after when running into described character-coded literal again when processing label character, can directly read from character internal memory container, reduce the number of times of access font file, improve the efficient of display text mark, and then improved the performance of system.
Alternatively, in described character internal memory container, described character code and described view data are preserved by preserving type one to one, its form can be MemeryMap<code, data 〉, wherein, code is character code, the view data of data for can directly being used for showing, initialization MemeryMap is null value.
Alternatively, the embodiment of the invention can be applied in the generalized information system, is used for showing the label character of magnanimity, certainly, it will be appreciated by those skilled in the art that technical solution of the present invention can also be used in other systems that need the display text mark, improves the efficient that shows.As in generalized information system, display routine is installed on the Magic processor, control program operates on ordinary individual's computer PC, and the Magic processor is connected LAN (Local Area Network) with personal computer PC and connects.After starting the display routine that is installed on the Magic processor, begin to create character internal memory container, the view data that comprises character code in this character internal memory container and can show, such as MemeryMap<code, data 〉.After the display routine of Magic processor receives the display text mark instruction of the control program transmission among the PC, process this label character.At first, initialization arranges vernier i, then in label character, obtain i character, character code corresponding to described i character is code, in character internal memory container, search and whether preserve code, if have, directly obtain the data value corresponding with described code and show at combination, finish the demonstration of i character.If in character internal memory container, do not find the record of code, search so font file and find the font data corresponding with described character code code from font file, and convert this font data to view data data and show at combination, simultaneously, with character code code and view data data one by one correspondence be kept in the character internal memory container.Next vernier i=i+1 gets back to the step of obtaining i character, until this label character has been shown, and the i value be one more than or equal to 1 and be less than or equal to the positive integer of the number of characters of words identification.
Referring to Fig. 2, the embodiment of the invention also provides a kind of system based on combination display text mark, comprise: processor 210 and personal computer 220, at described processor display routine is installed, at described personal computer control program is installed, described processor is connected by LAN (Local Area Network) with described personal computer;
Described processor comprises:
Acquiring unit 211 obtains i character of label character, and described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
Search unit 212, be used for searching character internal memory container according to the character code of described i character and whether preserve described character code;
Display unit 213 is used for obtaining the view data corresponding with described character code from described character internal memory container and shows at combination; Or be used for obtaining the font data corresponding with described character code according to described character code from font file, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
Alternatively, described processor can be the Magic processor, processor is after the instruction of the processing label character that receives the personal computer PC transmission, acquiring unit obtains i character of label character, the value of this i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character, search the unit and in character internal memory container, search whether preserve described character code according to the character code of i character, and display unit is after searching the unit find described character code in character internal memory container, getting access to the view data corresponding with character code shows at combination, if do not have, display unit can be searched the font data corresponding with described character code according to described character code from font file so, show at combination after converting described font data to view data again, simultaneously with character code with the conversion after view data one by one correspondence preserve into MemeryMap<code, data〉form, in order to can directly search use afterwards, thereby can improve the display efficiency of label character.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of method and system based on combination display text mark provided by the present invention are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (4)
1. the method based on combination display text mark is characterized in that, comprising:
Obtain i character of label character, described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
Search in the character internal memory container whether preserve described character code according to the character code of described i character;
If have, then from described character internal memory container, obtain the view data corresponding with described character code and show at combination;
If do not have, then from font file, obtain the font data corresponding with described character code according to described character code, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
2. method according to claim 1 is characterized in that, in described character internal memory container, described character code and described view data adopt one to one preserving type.
3. each described method according to claim 1 and 2 is characterized in that, also comprises before described the 1st character that obtains label character:
Receive the instruction of display text mark.
4. system based on combination display text mark, it is characterized in that, comprising: processor and personal computer, at described processor display routine is installed, at described personal computer control program is installed, described processor is connected by LAN (Local Area Network) with described personal computer;
Described processor comprises:
Acquiring unit obtains i character of label character, and described i is for more than or equal to 1 and be less than or equal to the positive integer of the number of characters of described label character;
Search the unit, be used for searching character internal memory container according to the character code of described i character and whether preserve described character code;
Display unit is used for obtaining the view data corresponding with described character code from described character internal memory container and shows at combination; Or be used for obtaining the font data corresponding with described character code according to described character code from font file, convert the described font data that obtains to view data and show at combination, and the view data corresponding with described character code after described character internal memory container is preserved described character code and transformed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103166616A CN102855115A (en) | 2012-08-30 | 2012-08-30 | Method and system for displaying character label based on splicing wall |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103166616A CN102855115A (en) | 2012-08-30 | 2012-08-30 | Method and system for displaying character label based on splicing wall |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102855115A true CN102855115A (en) | 2013-01-02 |
Family
ID=47401732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012103166616A Pending CN102855115A (en) | 2012-08-30 | 2012-08-30 | Method and system for displaying character label based on splicing wall |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102855115A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571992A (en) * | 2014-12-30 | 2015-04-29 | 广东威创视讯科技股份有限公司 | Simultaneous multi-screen marking method and device |
CN105430299A (en) * | 2015-11-27 | 2016-03-23 | 广东威创视讯科技股份有限公司 | Joined screen signal source annotation method and system |
CN106598631A (en) * | 2017-02-07 | 2017-04-26 | 中国电建集团昆明勘测设计研究院有限公司 | Processing method for avoiding graphic characters of pipeline general survey data |
CN114143477A (en) * | 2021-12-06 | 2022-03-04 | 北京淳中科技股份有限公司 | Image annotation method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102208180A (en) * | 2011-06-02 | 2011-10-05 | 福建新大陆通信科技股份有限公司 | Method for rapidly displaying vector font by set top box (STB) |
-
2012
- 2012-08-30 CN CN2012103166616A patent/CN102855115A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102208180A (en) * | 2011-06-02 | 2011-10-05 | 福建新大陆通信科技股份有限公司 | Method for rapidly displaying vector font by set top box (STB) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571992A (en) * | 2014-12-30 | 2015-04-29 | 广东威创视讯科技股份有限公司 | Simultaneous multi-screen marking method and device |
CN105430299A (en) * | 2015-11-27 | 2016-03-23 | 广东威创视讯科技股份有限公司 | Joined screen signal source annotation method and system |
CN105430299B (en) * | 2015-11-27 | 2018-05-29 | 广东威创视讯科技股份有限公司 | Splicing wall signal source mask method and system |
CN106598631A (en) * | 2017-02-07 | 2017-04-26 | 中国电建集团昆明勘测设计研究院有限公司 | Processing method for avoiding graphic characters of pipeline general survey data |
CN106598631B (en) * | 2017-02-07 | 2019-09-20 | 中国电建集团昆明勘测设计研究院有限公司 | Processing method for avoiding graphic characters of pipeline general survey data |
CN114143477A (en) * | 2021-12-06 | 2022-03-04 | 北京淳中科技股份有限公司 | Image annotation method and device |
CN114143477B (en) * | 2021-12-06 | 2023-12-08 | 北京淳中科技股份有限公司 | Image labeling method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101661391B (en) | Object serializing method, object deserializing method, device and system | |
EP3260993A1 (en) | File operation method and device | |
CN102129425B (en) | The access method of big object set table and device in data warehouse | |
CN107657051B (en) | Picture label generation method, terminal device and storage medium | |
CN101477532A (en) | Method, apparatus and system for implementing data storage and access | |
CN113112509B (en) | Image segmentation model training method, device, computer equipment and storage medium | |
CN109948518B (en) | Neural network-based PDF document content text paragraph aggregation method | |
CN110046637B (en) | Training method, device and equipment for contract paragraph annotation model | |
CN104111922A (en) | Processing method and device of streaming document | |
CN109753647B (en) | Paragraph dividing method and device | |
CN107741972A (en) | A kind of searching method of picture, terminal device and storage medium | |
CN102855115A (en) | Method and system for displaying character label based on splicing wall | |
CN117391192B (en) | Method and device for constructing knowledge graph from PDF by using LLM based on graph database | |
CN116501898A (en) | Financial text event extraction method and device suitable for few samples and biased data | |
CN109885610A (en) | A kind of abstracting method of structural data, device, electronic equipment and storage medium | |
CN102591787A (en) | Method and device for data processing of JAVA card | |
CN104898991A (en) | Automatic-RAL-based register access method and system | |
CN105824647A (en) | Form page generating method and device | |
CN102262520B (en) | Test display method based on built-in platform mobile phone and applied device thereof | |
CN107832341B (en) | AGNSS user duplicate removal statistical method | |
CN109240660B (en) | Access method of advertisement data, storage medium, electronic device and system | |
CN106201784B (en) | A kind of data back up method and system based on git | |
US8578268B2 (en) | Rendering electronic documents having linked textboxes | |
CN116501695A (en) | Data file processing method, apparatus, device, medium and program product | |
CN102708109B (en) | Raster data reading method and device and raster data writing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130102 |