Embodiment
Below conjunction with figs. and embodiment are specified detailed features of the present invention and embodiment; Content is enough to make any those skilled in the art to understand the applied technological means of technical solution problem of the present invention easily and implements according to this, and understands and realize the accessible effect of the present invention.
Following elder generation explains System Operation of the present invention with the system architecture diagram that produces the display system of display format according to enactment document that Fig. 1 the present invention is carried.As shown in Figure 1, system of the present invention contains storage module 110, read module 120, format setting module 130 and display module 140.
Storage module 110 be responsible for storing data file and enactment document.Wherein information paper records at least one object content, comprise at least one group of written historical materials and at least one format setting parameter in each object content, and the quantity of format setting parameter is not more than the quantity of written historical materials.
The written historical materials that is comprised in the object content is to be shown to the literal that the user watches; And the format setting parameter in the object content is corresponding with one group of written historical materials in the object content; But be not that all written historical materialss all can exist corresponding format setting parameter; The format setting parameter is to be used for the corresponding written historical materials of mark to be shown to the form that need apply mechanically when the user watches; It is recorded in the object content with the form of label (Tag) usually, the corresponding relation of presentation format setup parameter and written historical materials thus, but the present invention is not as limit.For example; In the object content 310 shown in Fig. 2 A; Literal after the format setting parameter that comprises " citiao ", " cixing ", " jieshi ", " yingli " and titles such as " zhongli ", format setting parameter then is corresponding written historical materials.
Storage module 110 stored enactment documents are preset form and at least one group of specific format in order to write down one group, and wherein preset form and specific format are in order to display formats such as the color that defines written historical materials, font size, font, coding, effect, alignment thereof.For example, in the enactment document 320 shown in Fig. 2 B, comprised the preset form 321 that name is called " default ", " citiao ", " cixing ", " yingli " and the defined forms of title such as " zhongli " then be specific format.It should be noted that; Format setting parameter in the object content can correspond to one group of specific format that enactment document writes down; But the specific format that enactment document write down might not be corresponding with the format setting parameter in the object content, and generally speaking, the title of format setting parameter can be identical with the title of corresponding specific format; Represent corresponding relation between the two thus, but the present invention is not as limit.
Read module 120 is responsible for by reading format setting parameter and the written historical materials that object content comprised that is about to be shown in the information paper.Read module 120 also is responsible for by being written into preset form in the stored enactment document of storage module 110; And by the specific format that reads corresponding format setting parameter of having read in the enactment document; That is to say; When the name of the format setting parameter of reading when read module 120 was called " citiao ", read module 120 also need be by reading the specific format that name is called " citiao " in the enactment document.
Format setting module 130 is responsible for the defined display format cover of the specific format of corresponding format setting parameter is used on the written historical materials of corresponding this format setting parameter; Make and output in the output file with corresponding display format with form setup parameter corresponding character data; Simultaneously; Also can export in the output file after not having format setting parameter corresponding character File cover with the preset defined form of form.For example; The pairing written historical materials of reading when read module 120 of format setting parameter (name is called " citiao ") is " A "; The display format of " citiao " definition is " boldface letter "; Format setting module 130 can output to written historical materials " A " in the output file with " boldface letter ", and if written historical materials does not have corresponding format setting parameter, then the format setting module can output to written historical materials in the output file with preset form.
Format setting module 130 can judge earlier whether written historical materials to be exported has corresponding format setting parameter; If have; Then the display format with the definition of the specific format of corresponding format setting parameter comes the output character data, if do not have, then the display format with preset formal definition comes the output character data; Format setting module 130 also can be after read module 120 be applied mechanically the written historical materials of reading the display format of preset formal definition; Judge whether written historical materials has corresponding format setting parameter; If have; Then format setting module 130 can be revised as the display format of written historical materials the display format of the specific format definition of corresponding format setting parameter; Again all written historical materialss are outputed in the output file at last, but the mode of the format setting parameter 130 output character data that the present invention carried is not exceeded with above-mentioned two kinds.
Display module 140 is responsible for showing output file, and making has the written historical materials of format setting parameter to be shown to the user with the defined display format of the specific format corresponding with the form setup parameter.
In fact; The present invention more can comprise judge module 180; Judge module 180 is responsible for judging that employed specific format replaced when preset form whether can be with the preceding output character data of format setting module 130; Judge module 180 can be according to the stored default value of storage module 110; Or the setting value in the once employed specific format is come as the foundation of judging before the format setting module 130; When judge module 180 judge according to default value can be with format setting module 130 before once employed specific format replace preset form, or when judging the preset form of instead, enable (enable) format setting module 130 and replace preset form with specific format according to the setting value in the specific format.
In addition; The present invention also comprises format editing module 190; Be responsible for providing the user to revise preset form and specific format; After the user revises preset form or specific format through format editing module 190; Format setting module 130 can replace preset form or the specific format that read module 120 is read with amended preset form of user or specific format, and with amended preset form or specific format written historical materials exported in the output file when output character data to output file.
Then specify operation system of the present invention and method, and please the present invention is carried with reference to Fig. 3 produces the method flow diagram of the display packing of display format according to enactment document with an embodiment.
The user uses to carry out has data-gathering software of the present invention to search data; In searching the software information paper stored, find out the needed data of user according to key word to storage module that the user imported 110; Just behind the object content shown in Fig. 2 A 310, read module 120 of the present invention can be written into the preset form 321 (step 210) in the stored enactment document 320 (Fig. 2 B) of storage module 110 earlier.
Afterwards; Read module 120 can be by reading out object content 310 (step 220) in the stored information paper of storage module 110; Wherein the object content 310 read of read module 120 comprises the format setting parameter of " citiao ", " cixing ", " jieshi ", " yingli " and titles such as " zhongli ", and the written historical materials of corresponding format setting parameter.
After read module 120 is read format setting parameter and written historical materials (step 220), read the specific format (step 250) of the format setting parameter of correspondence " citiao ", " cixing ", " jieshi ", " yingli " and titles such as " zhongli " in read module 120 meeting to the enactment documents 320.
After read module 120 reads preset form, specific format, format setting parameter and written historical materials (step 210, step 220, step 250); Format setting module 130 can export format setting parameter corresponding character data in the output file to specific format, simultaneously can be with there not being format setting parameter corresponding character data to export (step 260) in the output file to preset form.In the present embodiment; Because the pairing written historical materials of format setting parameter " citiao " that read module 120 is read is " A "; And the defined display format of format setting parameter " citiao " is " boldface letter (bold=1) "; Therefore; Format setting module 130 can output to the display format " boldface letter " of written historical materials " A " with correspondence in the output file, and same, the pairing written historical materials of format setting parameter " yingli " is " The first letterin the English Alphabet is A. "; And the defined display format of format setting parameter " yingli " is " (tab=1) indents once " and " font size is 10pt (fontsize=10) "; Therefore, 130 meetings of format setting module " are indented once " with the display format of correspondence by written historical materials " The first letter in the English Alphabet is A. " and " font size is 10pt " outputs in the output file, and remaining format setting parameter is then analogized.
According to written historical materials whether corresponding format setting parameter is arranged in format setting module 130; After written historical materials outputed to output file (step 260) with specific format or preset form; The output file that display module 140 is shown will be shown in the display frame 400 of Fig. 4; The user just can watch its data of desiring to search in display frame 400, the display format of the data that the user is seen in display frame 400 then is to set by searching Development of Software person.Therefore, when searching Development of Software person need revise the content that display frame 400 appeared the time, only need to revise enactment document 320 defined preset form 321 and specific formats, and no longer need revise the procedure code in the display module 140 of searching software.
In sum; But knowledge capital invention is to have in information paper with difference between the prior art and adds and the corresponding format setting parameter of written historical materials; And behind the specific format that reads corresponding format setting parameter; With the display format output character data of specific format definition, technological means can solve the existing update routine sign indicating number that needs of prior art and just can adjust the problem of display format thus, and then reaches the convenient effect of setting display format.
The present invention is after read module 120 reads preset form, specific format, format setting parameter and written historical materials (step 210, step 220, step 250); Whether format setting module 130 is according to there being corresponding format setting parameter that written historical materials is outputed to before the display file; More can be by judge module 180 according to the stored default value of storage module 110; Or the setting value in the once employed specific format before the format setting module 130; Setting value " replace=1 " for example to comprise in default value or the specific format; Come that employed specific format replaces (step 231) when judging that preset form whether can be with the preceding output character data of format setting module 130; When judge module 180 judge according to default value can be with format setting module 130 before once employed specific format when replacing preset form or judging the preset form of instead according to the setting value in the specific format, enable format setting module 130 and replace preset form (step 232) with specific format.
In addition; The present invention also provides the user to revise preset form and specific format (step 201); After the user revises preset form or specific format through format editing module 190; Format setting module 130 is in the step (step 260) that written historical materials is outputed to display file; Can replace preset form or the specific format that read module 120 is read with amended preset form of user or specific format, or directly use preset form or the specific format of reading by read module 120 revised through the user, and written historical materials exported in the output file with amended preset form or specific format.
Moreover; The display packing that produces display format according to enactment document of the present invention; Can be implemented in the combination of hardware, software or hardware and software, the dispersing mode of also can be in computer system realizing or intersperse among with different elements the computer system of several interconnected with centralized system is realized.
Though the disclosed embodiment of the present invention as above, yet described content is not in order to direct qualification scope of patent protection of the present invention.Any person of ordinary skill in the field of the present invention is not breaking away within disclosed spirit of the present invention and the scope, and change or the retouching on the formal and details of implementing, done all belong to scope of patent protection of the present invention.Therefore scope of patent protection of the present invention still must be defined with claim and is as the criterion.