CN102331924A - Cross-platform data display system and method thereof - Google Patents
Cross-platform data display system and method thereof Download PDFInfo
- Publication number
- CN102331924A CN102331924A CN201010228425XA CN201010228425A CN102331924A CN 102331924 A CN102331924 A CN 102331924A CN 201010228425X A CN201010228425X A CN 201010228425XA CN 201010228425 A CN201010228425 A CN 201010228425A CN 102331924 A CN102331924 A CN 102331924A
- Authority
- CN
- China
- Prior art keywords
- target labels
- original tag
- video data
- cross
- control character
- 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
Abstract
The invention discloses a cross-platform data display system and a method thereof. The method adopts the technical measure that a label conversion table is built in advance, in addition, original labels and control characters in the display data are converted into target labels, and then, the display elements and the target labels are written into an output file and are outlet to be displayed. Therefore, the technical effect of convenient normal display of cross-platform program data can be reached.
Description
Technical field
The present invention relates to a kind of data presentation system and method thereof, be meant a kind of data presentation system and method thereof that is applicable to cross-platform data presentation especially.
Background technology
The computer technology development so far; The data processing form that various operating system and data processing platform (DPP) all have different characteristic and can support separately, as: the Windows that Microsoft released, the WinCE of embedded system special use, the operating systems such as Linux... that each tame manufacturer released are all supported different programs development scheme and display mode separately.Lift the program that Microsoft uses the C++ program language to be developed; Though can develop the program that has high-compatibility with Windows operating system through the MFC class library; But when different operating systems or data processing platform (DPP) are arrived in program portable; Because the program language of supporting is different, possibly causes the display routine (View) in the middle of the program can't normal operation, and then make routine data also can't normally show.
In sum; Can know that there has been the problem that can't on all devices or platform, move with the display routine possibility of specific program language development in prior art always since the midium or long term; Because the video data that existing most operating systems and data processing platform (DPP) are all supported HTML is resolved; Therefore be necessary to go up the improved technological means of proposition, solve the problems of the prior art in this basis.
Summary of the invention
Because the problem that the display routine with the specific program language development that prior art exists possibly can't move on all devices or platform, so the present invention discloses a kind of cross-platform data presentation system and method thereof, wherein:
The disclosed cross-platform data presentation system of the present invention, it comprises: receiver module, in order to receive video data, wherein video data more comprises at least one control character, at least one display element and the original tag corresponding with each display element; Modular converter establishes the label conversion table in advance, and wherein the label conversion table more comprises at least one original tag, at least one control character reaches and original tag and the unique corresponding target labels of control character; And in order to converting the original tag of video data and control character into corresponding target labels, and display element and target labels are write output file according to the label conversion table; And output module, in order to output file output is shown.
The disclosed cross-platform data display method of the present invention, it comprises step: set up the label conversion table in advance, wherein the label conversion table more comprises at least one original tag, at least one control character reaches and original tag and the unique corresponding target labels of control character; Receive video data, wherein video data more comprises at least one control character, at least one display element and the original tag corresponding with each display element; Convert the original tag of video data and control character into corresponding target labels according to the label conversion table; Display element and target labels are write output file; And with output file output demonstration.
The disclosed System and method for of the present invention as above; And the difference between the prior art is that the present invention has through setting up the label conversion table in advance; And convert original tag in the video data and control character into target labels, again display element and target labels are write output file and export the technique for displaying means.
Through above-mentioned technological means, the present invention can reach and make things convenient for the normal technique for displaying effect of cross platform program data.
Description of drawings
Fig. 1 is the calcspar of the cross-platform data presentation system of the present invention.
Fig. 2 is the process flow diagram of the cross-platform data display method of the present invention.
Fig. 3 A is the video data display frame synoptic diagram of the embodiment of the invention.
Fig. 3 B is the video data synoptic diagram of the embodiment of the invention.
Fig. 3 C is the label conversion table synoptic diagram of the embodiment of the invention.
Fig. 4 is the output file synoptic diagram of the embodiment of the invention.
[main element symbol description]
101 receiver modules
102 modular converters
103 output modules
301 translation words
302 video datas show synoptic diagram
303 video datas
304 label conversion tables
401 output files
Embodiment
Below conjunction with figs. and embodiment are specified embodiment of the present invention, whereby to the present invention how the application technology means implementation procedure that solves technical matters and reach technological effect can make much of and implement according to this.
At first, please refer to Fig. 1, be the calcspar of the cross-platform data presentation system of the present invention, it comprises receiver module 101, modular converter 102 and output module 103.
Then, please refer to Fig. 2, be the process flow diagram of the cross-platform data display method of the present invention, will be in order to implementation process of the present invention to be described.
At first, set up a label conversion table (step 201) in advance, wherein the label conversion table more comprises at least one original tag, at least one control character reaches and each original tag and the unique corresponding target labels of each control character.But the original tag that comprises locating and displaying element content in the display routine in the middle of the label conversion table, and as: blank key, line feed, jumping lattice ... the control character that waits, the HTML target labels corresponding with original tag and control character.For instance, suppose that an original tag is represented in the video data data content is " title ", then convert into the HTML target labels then for "<title>...</title>", suppose that a control character is a line feed character, then convert into the HTML target labels then for " /><br".
Then, receive a video data (step 202), wherein video data more comprises at least one control character, at least one display element and the original tag corresponding with each display element.Video data refers to the data that need be shown to the user in the middle of the program.For instance; The translation data item that comprises words explanation and usage etc. in the translation program is a kind of video data; With the specific program language during like the MFC exploitation of: C++; Because video data is parsing and the demonstration of carrying out data through the display routine of translation program, thus can comprise in the video data locating and displaying element content in the display routine original tag and as: part of speech, explanatory content ... the display element that waits.Though is that example is explained at this video data with the translation data of translation program, in fact video data can need carry out the data presented item through display routine for any, not as limit.What need to specify is, the original tag of video data more with the CSS file in a Show Styles corresponding, this Show Styles can be other Show Styles perhaps in the font, color, control item of display element.
Then; Convert the original tag of video data and control character into corresponding target labels (step 203) according to the label conversion table; And display element and target labels write the output file (step 204) of a HTML source code form, at last output file output is shown (step 205).
What need special instruction is; Modular converter 102 also is responsible for the Show Styles in the middle of the CSS file is embedded in the target labels as a display properties in the process of video data conversion; When the conversion video data, also can keep original Show Styles and on different platform, show whereby.
Next, will there be the cross-platform procedure for displaying of translation program of the present invention detailed embodiment of the present invention to be described with an application as embodiment.
At first, before translation program migrates to another platform and shows, set up a label conversion table in advance, wherein the label conversion table more comprises at least one original tag, at least one control character and and each original tag and the unique corresponding target labels of each control character.But the original tag that comprises display routine locating and displaying element content in the middle of the label conversion table, and as: blank key, line feed, jumping lattice ... the HTML target labels that the control character that waits is corresponding.
Then, please refer to Fig. 3 A.Suppose to have the video data of a translation words 301 " Hello ", its form that demonstrates after resolving through display routine can demonstrate part of speech and words explanation etc. shown in display frame synoptic diagram 302.Suppose that video data is without the data mode before resolving; Shown in Fig. 3 B; Comprise original tag in the middle of the video data 303 like "~H " part of speech and the explanation of "~I " words etc.; And " 1. (in order to greet or to call attention to) feeds, and hello ", " 2. (being used as the greeting language when making a phone call) feeds " ... wait the display element of explanatory content, and line feed control character (not shown).When the display routine of the program of serving as interpreter receives video data 303, at first "~H " reached the original tag of "~I " etc. and the target labels that control character converts HTML into according to the label conversion table.Shown in Fig. 3 C, more comprise original tag, control character and corresponding HTML target labels thereof in the middle of the label conversion table 304.
What need special instruction is that the original tag of video data 303 more to a Show Styles in the CSS file should be arranged, therefore in the process of conversion, can be embedded in Show Styles in the target labels of HTML as a display properties.The original tag of supposing "~H " expression is a part of speech, shows with red glyph, then after converting the target labels of HTML into, be "<div class=" t_red ">...</div>", wherein t red can be a Show Styles that has defined among the CSS.After all original tag of video data all convert the target labels of HTML into, target labels and the display element of all HTML is written to an output file as shown in Figure 4 401.Because output file is the form of HTML source code, therefore after cross-platform, the browser that can link on the different platform shows output file output, converts cross-platform demonstration through format of display data.
In sum; But the difference between knowledge capital invention and the prior art is to have through setting up the label conversion table in advance; And convert original tag in the video data and control character into target labels; Again display element and target labels are write output file and export the technique for displaying means; Can solve the problem that existing in prior technology possibly can't be moved with the display routine of specific program language development by this technological means on all devices or platform, and then reach and make things convenient for the normal technique for displaying effect of cross platform program data.
Though the disclosed embodiment of the present invention is as above, be described content be not in order to direct qualification scope of patent protection of the present invention.Have common knowledge the knowledgeable in the technical field under any the present invention, under the prerequisite that does not break away from disclosed spirit of the present invention and scope, can do a little change in form and on the details what implement.Scope of patent protection of the present invention, still must with appended claim scope the person of being defined be as the criterion.
Claims (8)
1. cross-platform data presentation system is characterized in that it comprises:
One receiver module, in order to receive a video data, wherein this video data more comprises at least one control character, at least one display element and an original tag corresponding with each display element;
One modular converter establishes a label conversion table in advance, and wherein this label conversion table more comprises at least one this original tag, at least one this control character reaches and this original tag and the unique corresponding target labels of this control character; And in order to converting this original tag of this video data and this control character into corresponding this target labels, and this display element and this target labels are write an output file according to this label conversion table; And
One output module is in order to show this output file output.
2. cross-platform data presentation system as claimed in claim 1; It is characterized in that; Wherein each original tag more with the CSS file in a Show Styles corresponding, and this modular converter more is embedded in this target labels in order to convert this Show Styles into a display properties.
3. cross-platform data presentation system as claimed in claim 1 is characterized in that, wherein this target labels is a html tag.
4. cross-platform data presentation system as claimed in claim 1 is characterized in that, wherein this output file is the HTML source code.
5. cross-platform data display method is characterized in that it comprises the following step:
Set up a label conversion table in advance, wherein this label conversion table more comprises at least one original tag, at least one control character reaches and this original tag and the unique corresponding target labels of this control character;
Receive a video data, wherein this video data more comprises at least one this control character, at least one display element and this original tag corresponding with each display element;
Convert this original tag of this video data and this control character into corresponding this target labels according to this label conversion table;
This display element and this target labels are write an output file; And
This output file output is shown.
6. cross-platform data display method as claimed in claim 5; It is characterized in that; Wherein each original tag is more corresponding with a Show Styles of CSS file; And wherein this original tag of this video data and this control character are converted in the step of this corresponding target labels, more comprise and convert this Show Styles into a display properties and be embedded in the step in this target labels according to this label conversion table.
7. cross-platform data display method as claimed in claim 5 is characterized in that, wherein this target labels is a html tag.
8. cross-platform data display method as claimed in claim 5 is characterized in that, wherein this output file is the HTML source code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010228425XA CN102331924A (en) | 2010-07-13 | 2010-07-13 | Cross-platform data display system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010228425XA CN102331924A (en) | 2010-07-13 | 2010-07-13 | Cross-platform data display system and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102331924A true CN102331924A (en) | 2012-01-25 |
Family
ID=45483710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010228425XA Pending CN102331924A (en) | 2010-07-13 | 2010-07-13 | Cross-platform data display system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102331924A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365640A (en) * | 2012-03-30 | 2013-10-23 | 中兴通讯股份有限公司 | Cascading style sheet style transformation method and device |
CN105760355A (en) * | 2016-01-29 | 2016-07-13 | 大连楼兰科技股份有限公司 | System and method for automatically converting line-break formats in batch mode |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101472329A (en) * | 2007-12-28 | 2009-07-01 | 英业达股份有限公司 | Interactive data synchronous device striding platforms, system and method |
US20090254611A1 (en) * | 2002-05-22 | 2009-10-08 | Sony Corporation | System and Method for Platform and Language-Independent Development and Delivery of Page-Based Content |
-
2010
- 2010-07-13 CN CN201010228425XA patent/CN102331924A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090254611A1 (en) * | 2002-05-22 | 2009-10-08 | Sony Corporation | System and Method for Platform and Language-Independent Development and Delivery of Page-Based Content |
CN101472329A (en) * | 2007-12-28 | 2009-07-01 | 英业达股份有限公司 | Interactive data synchronous device striding platforms, system and method |
Non-Patent Citations (1)
Title |
---|
MAURICE NAFTALIN ET AL: "《Java Generics and collections》", 17 October 2006, O’REILLY MEDIA INC * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365640A (en) * | 2012-03-30 | 2013-10-23 | 中兴通讯股份有限公司 | Cascading style sheet style transformation method and device |
CN105760355A (en) * | 2016-01-29 | 2016-07-13 | 大连楼兰科技股份有限公司 | System and method for automatically converting line-break formats in batch mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866469B (en) | Input Method Editor with secondary language mode | |
US8996384B2 (en) | Transforming components of a web page to voice prompts | |
CA2307299A1 (en) | Mock translation method, system, and program to test software translatability | |
CN101271389B (en) | Built-in intelligent information processing method for Tibetan | |
CN100587795C (en) | Method for displaying any language at hardware terminal via establishing lattice word library | |
CN107239266A (en) | A kind of method and device for showing CAD diagram paper without plug-in unit in WEB front-end | |
CN109684580A (en) | A kind of methods of exhibiting and electronic equipment of dynamic page | |
CN102970596A (en) | Method and system for realizing multi-language font display of set top box and set top box | |
CN102262684A (en) | Method and device for generating webpage page of mobile terminal | |
CN101859295A (en) | System and method for converting simplified Chinese character/word and traditional Chinese character/word with labels and prompts | |
CN102331924A (en) | Cross-platform data display system and method thereof | |
CN102662984A (en) | HTML(hypertext markup language)-based multi-platform message handling method | |
CN101299210A (en) | Input method system and terminal equipment using the same | |
CN103376990A (en) | Speech control method and system for web page operations | |
CN105148519A (en) | Character rendering method and system in game program | |
CN102306099A (en) | Cross-platform graphic display method and graphic display system on handheld terminal equipment | |
CN106934047A (en) | One kind will post content in method and device shown in small routine | |
CN103455808B (en) | The dispensing device of machine character read code and coded method | |
CN104216868A (en) | Adaptation method and device for document display format | |
CN103870439A (en) | Uyghur Kazak and Kirghiz display method and application | |
US20120023474A1 (en) | Printed circuit board layout system and method for printed circuit board layout | |
CN101872553A (en) | Electronic learning system as well as online and synchronous display method thereof | |
CN1567296A (en) | Multilanguage display method of flushbonding system | |
US20120072830A1 (en) | Cross-platform data displaying system and method thereof | |
CN113792531B (en) | Text editing method and system based on markdown grammar expansion |
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 |
Application publication date: 20120125 |