A kind of based on the typesetting data method for reusing that can breathe out and explain
Technical field
The invention belongs to the information publishing area, be specifically related to a kind of based on the typesetting data method for reusing that can breathe out and explain.
Background technology
Along with the increase of Publishing Data amount, the shortening of frequence of issue, published information " produce once, repeatedly publish " becomes the target that publishing circle chases.
In newspaper, magazine publication process, there is a large amount of fixed informations, as compete comment, weather forecast etc., very strong for the page format regularity, generally adopt the mode of template, not strong for the page format regularity, the general mode of material that adopts is preserved, and not strong at the page format regularity, but data content is regular strong, does not have good method for reusing at present.
Not strong at the page format regularity, but the regular strong typesetting data of data content, the typical case is as composition information such as lertter of introduction, proof, Losts, as adopt the mode of material to manage, then there is the change of 1. relative fixed contents, in a single day must upgrade material earlier, and upgrade material, the space of a whole page of then having set type can't upgrade automatically; 2. material can't be crossed over different picture and text pieces, and the composing limitation is big; 3. material can't comprise the note of setting type, and after its data flow into the different space of a whole page, need set type again; 4. material change in a single day can't simply be reused; 5. after material flows into the space of a whole page, preserve as space of a whole page data, the data volume of layout file is big.
Adopting the formal description space of a whole page data of explaining is software for composing modes commonly used, as<B〉the black matrix word content</B 〉,<B〉</B〉be paired note, the character script that comprises in the middle of the expression adds black.
This patent is explained by a kind of new exhalation, and is not strong at the page format regularity, but the regular strong typesetting data of data content has been set up a kind of new efficient method for reusing.Literal, figure, the picture material that comprises explained in exhalation, can be used as to comprise other notes of setting type, and its content can be preserved separately, and its effect shows as:
1. relatively-stationary content change on the space of a whole page can directly be revised on the space of a whole page, upgrades and preserves after the file, and the space of a whole page of having set type can upgrade automatically; 2. the data of explaining preservation of breathing out can be crossed over different picture and text pieces, can stride page or leaf; 3. typesetting data can be to comprise the data of setting type and explaining, and does not need to set type again like this after flowing into the space of a whole page; 4. data can be preserved separately between the exhalation comment field, also can breathe out according to multistage and explain the chain preservation, and the mode of reusing is versatile and flexible; 5. after the note of breathing out flows into the space of a whole page, can be used as the content of layout file, also can be used as file chaining and preserve, layout file can be very little like this.
Summary of the invention
At problems of the prior art, the objective of the invention is a kind of based on the typesetting data method for reusing that can breathe out and explain, can be by this method by a kind of mode of note of breathing out, realize reusing for the typesetting data that part is reused, realize these data synchronization, the content that this note comprises, can carry out newly-built, edit, delete, access, merge, processing such as preservation.
The object of the present invention is achieved like this: a kind of based on the typesetting data method for reusing that can breathe out and explain, explain by setting a kind of exhalation, the interval of the definite typesetting data that can reuse repeatedly: the typesetting data in this interval can comprise literal, figure, image, the combination that OLE data or above typesetting data are formed, this is breathed out and explains as paired note, comprise by head note and separate forming with endnote, if a plurality of exhalation are arranged explains, then can separate and exhalation note group of the first linking relationship composition of explaining of next section by endnote is set, an exhalation note group can be used as individual files and imports or derive, and an exhalation note group can be carried out editing and processing to typesetting data wherein.The introducing of explaining of breathing out makes by the typesetting data of exhalation note sign and can be reused repeatedly by composing system, breathes out and explains the typesetting data that comprises so can realize that reusing data Network Based is synchronous.
A kind of typesetting data method for reusing based on the note of can breathing out comprises following steps:
1) sets the note of breathing out: promptly finish the picture and text piece space of a whole page of composing, set the reference position and the final position of exhalation comment field, promptly first the note with endnote separated, explain if any a plurality of exhalation, the linking relationship that endnote is separated and next section head explains then is set, and sets the application rule that acts on the note of breathing out;
A first note with corresponding endnote is deconstructed into an exhalation comment field, and an exhalation comment field is set in the picture and text piece;
2) editor's preservation is explained in exhalation: part is edited and preserved to the typesetting data in the exhalation comment field;
3) the interior typesetting data importing space of a whole page of the middle exhalation comment field of preserving exhalation note data reusing: when carrying out space of a whole page composing, with step 2), perhaps renewal has imported the interior typesetting data content of exhalation comment field on the space of a whole page.
Further, the typesetting data in the described exhalation comment field can carry out newly-built, edit, delete, access, merge, processing such as preservation.
Further, in the step 1), described picture and text piece comprises the composing piece in groups that literal piece, graph block, image block, OLE piece or above typesetting data are formed, and can set a plurality of exhalation comment fields in the picture and text piece.
Further again, in the step 1), the linking relationship of described exhalation comment field is not limited by the picture and text piece, can stride the picture and text piece and set, and links the exhalation comment field that gets up like this and forms an exhalation note group, and an exhalation note group can import or derive document separately.
Further, the application rule of the exhalation comment field described in the step 1) comprises: the assigned address that the mark section is used is explained in this exhalation, merging patterns (as appending pattern or alternative patterns) that perhaps should the exhalation comment field are perhaps breathed out and are explained the word content and the length of link.
Further again, step 2) in, typesetting data in the exhalation comment field can carry out edit-modify according to general typesetting data mode, can preserve or whole deletion, replace.
Further again, step 2) in, typesetting data is preserved according to an integral body in all exhalation comment fields of link, and perhaps each exhalation comment field is preserved separately.
Further again, step 2) in, typesetting data in the exhalation comment field saves as the data that have the note of setting type, and perhaps saves as and is not with the data of setting type and explaining.
Further again, in the step 3), also preserve the restricted information relevant when preserving in the exhalation comment field typesetting data with document environment, described restricted information comprises page info, layout position information etc., when the data that the note of breathing out is preserved are directed in the document, can seek display position automatically like this according to these document environment information.
Further again, in the step 3), import typesetting data in the exhalation comment field of preserving, if the exhalation comment field of link not in a picture and text piece, is then created new picture and text piece automatically.
Further again, in the step 3), typesetting data in the exhalation comment field of import preserving, layout file can be preserved the content of exhalation comment field, also can only preserve linking of exhalation comment field and file.
Effect of the present invention is: model of the present invention and method, explain by a kind of linkable exhalation, the data interval of reusing is identified out, and when supporting these to identify these data editions of reusing modifications, data merge in can also supporting to explain.Specifically, method of the present invention has following remarkable results:
1. by method of the present invention, can realize the extraction of the typesetting data of reusing repeatedly, operations such as editor, merging, preservation, make typesetting data reuse simply, convenient.
2. the typesetting data method for reusing of breathing out and explaining of the present invention, the typesetting data that can be implemented in the parallel space of a whole page processing procedure is reused, promptly explain the typesetting data that to reuse and extract preservation out by breathing out, and transmit, and be updated to synchronously on all spaces of a whole page that use these typesetting datas by the pooling function of explaining of breathing out by network.
3. adopt method of the present invention, can make the composing reusing data of different editions, set the application rule of these typesetting datas of reusing, these reusable typesetting datas are handled and used to composing system automatically according to these rules.
Why the present invention has above-mentioned remarkable result, its reason is: the present invention breathes out and explains the interval that has identified reusable typesetting data, and the interval that can make these interruptions connects into and as a wholely imports and exports, edit-modify, merging and application rule are handled, thereby makes these typesetting datas can make things convenient for, simply realize data sync.This technology makes reusing of typesetting data break through the use-pattern of simple template, outside the intelligent degree that has improved reusable typesetting data application, also make typesetting data after entering the space of a whole page, can also keep with original material between related, thereby realize reusing the synchronous of typesetting data, to be implemented under the network environment between the parallel task, reuse the consistance of typesetting data.
Description of drawings
Fig. 1 breathes out to explain the setting process synoptic diagram;
Fig. 2 breathes out to explain to reuse schematic flow sheet;
Fig. 3 is the application example synoptic diagram of the method for the invention.
Embodiment
The invention will be further described below in conjunction with specification drawings and specific embodiments.
A kind of based on the typesetting data method for reusing that can breathe out and explain, comprise following steps:
Setting breathes out explains, as shown in Figure 1, promptly on the space of a whole page, finish conventional process of typeset 11, the data that selection need be reused, finding needs to set the layout position of reusing, and directly inserts the head that explains that breathes out and explains 12, the reuse typesetting data afterbody continuous at needs is provided with the endnote of breathe out explaining and separates, continuation setting if desired then continues the head note and the endnote of setting exhalation note and separates, and following condition is satisfied in the note of breathing out setting:
1) the first note of exhalation note is separated with endnote and can be inserted optional position in the picture and text piece, and the typesetting data between first note of exhalation note and endnote are separated can be literal, figure, image or OLE piece.
2) preserving between first note of exhalation note and endnote are separated is one section typesetting data that continuous needs are reused;
3) typesetting data between first note of exhalation note and endnote are separated must can not be striden the setting of picture and text piece in a picture and text piece;
4) exhalation note head note and endnote are separated, and can insert separately and delete, and still exhalation note head note and endnote are separated necessary paired the coupling, if the user has set first note and do not set endnote and separate, then separate at endnote of picture and text piece afterbody interpolation automatically.
Crossing over one section does not if desired need to identify out the typesetting data of reusing with the note of breathing out, then need continue to set to breathe out and explain zone 16 in the part that need reuse again, exist under the situation of a plurality of exhalation comment fields, two exhalation comment fields are to need unified processing 14, then can be treated as the note data segment of breathing out by link, the endnote that promptly can set an exhalation comment field is separated head with next exhalation comment field and is explained and link 15, such two exhalation comment fields have been formed the note data segment of breathing out, and these note data segments of breathing out can be used as a data file and preserve;
Breathe out and explain link, following characteristic is arranged as a kind of specific properties of breathing out and explaining:
1) the exhalation note data segment that link is set in link is explained in exhalation, can stride the picture and text piece sets, also can stride page attribute and set, the endnote that promptly can set in one page the exhalation comment field in the picture and text piece is separated in the picture and text piece with another page the head of exhalation comment field and is explained and link.
2) user can delete the exhalation that has set and explain link;
3) chain is explained in an exhalation that is linked by a plurality of exhalation note data segments, can be used as that file is whole to be preserved or to finish network data synchronous, breathe out and explain in the chain one section and also can be separately preserve or to finish network data synchronous as a file is whole.
When 4) breathe out explaining data and merge, explain chain according to breathing out earlier and merge, breathe out explain in the chain each breathe out explain first explain and endnote separate between merge;
5) user can set to breathe out and explain interchain typesetting data restrictive condition, is numeral etc. as format conversion, qualification.
In above-mentioned processing procedure shown in Figure 1, separate when being provided with head note or the endnote of explaining of breathing out, all can edit or the attribute setting the attribute of these notes.
Finishing and breathe out explaining after the operation, deriving if desired and preserve 17, then directly preserving 18, the data of preservation can be that data chainning is explained in whole exhalation, also can be to breathe out to explain one section of appointment in the data chainning.
Fig. 2 has shown the system handles process flow diagram of the note use of breathing out, when need use the typesetting data of reusing, import the data 21 of preserving the note of breathing out at the composing space of a whole page, imported to the space of a whole page if comprise these data of explaining of breathing out, then the data of breathing out between explaining merge, and following rule is followed in its merging:
1) ID or name attribute are explained in formulation, mate according to the order of explaining ID or name attribute coupling;
2) do not formulate above-mentionedly, mate in proper order according to explaining title and note;
3) explain matched rule for having specified, then mate in proper order according to the matched rule that configures.
When breathe out to explain go up setting well-regulated the time, check that then current composing environment has or not dependency rule 23, new data 24 more if desired, typesetting data and breathe out to explain and need corresponding rule to carry out Data Update in then explaining according to breathing out; When association attributes and the dependency rule that the needs renewal is explained, then explain and carry out the renewal that attribute and rule are explained in space of a whole page exhalation according to the exhalation that imports.
The space of a whole page is breathed out and is explained the modification of data between attribute and note, can whenever carrying out after data importing is explained in above-mentioned exhalation, after setting, need to derive and preserve 28, the exhalation that sets can be explained typesetting data and preserve 29, perhaps carry out Network Synchronization 20 if desired, then other spaces of a whole page can directly enter to breathe out and explain typesetting data importing 21.
Fig. 3 has shown one simply based on the typesetting data method for reusing application example that can breathe out and explain, 30 what show is the content template of a lertter of introduction, the user's modification content is finished the editor of lertter of introduction very soon, the mode of this template numerous softwares for composing such as Microsoft Word, WPS, word processor commonly used to the typesetting data method for reusing.
31 have shown the data content that uses based on the note sign typesetting data of can breathing out among Fig. 3, here the data presented content is mainly the usage that explanation is breathed out and explained, a large amount of actual annotations have been simplified, the note of 31 video datas only is explanation exhalation usage and feature, wherein<and callout〉explain for breathing out, wherein<and callout id=' 1 '〉the first note of expression, its sign ID is ' 1 ', follow-up coupling</calloutlink=' 2 '〉be that corresponding endnote is separated, this endnote separate this exhalation comment field of sign also connection identifier ID be the exhalation comment field of ' 2 ', constitute one thus and breathe out and explain chain.
In the data<and parm〉the general paragraph note of expression,<inputbox〉be that occupy-place is explained, also have other a lot of complicated notes in the practical application, owing to do not have direct correlation, do not enumerate here with the present invention.
Among Fig. 3 32 shown that 30 lertter of introduction template is read in the space of a whole page after, the user directly edits the lertter of introduction space of a whole page that the back generates, for example the user finds " declaring " character error of " hoping that contact is for declaring ", is modified to " expecting ".
According to existing data reusing technology, the lertter of introduction template has been applied on the space of a whole page, modification be the new document rather than the template itself of duplicating the lertter of introduction template; Be modified to " expecting " and only revised customer documentation when will " declaring " word, template document is not revised: 1) if other users use this template, this template still comprises the literal of mistake, 2) if allow other users that will use this template use correct template, then need direct edit-modify template; 3) for the composing space of a whole page that has used this template, then prior art does not have suitable solution, promptly or has used the space of a whole page of this template and has all revised; Again new template more, but the modification of having made on this template will be lost.
Shown differentiation by exhalation note mode sign among Fig. 3 reusable template data content and non-template data content, even after the user edits and revises the space of a whole page, type-setting equipment still can be explained sign according to breathing out and extract reusable data again, shown in 33, so again the typesetting data of Ti Quing can be used as new template and preserves again, be modified to the synchronous the problems of the prior art of " expecting " deal with data at 32 words of will " declaring " that show, the present invention is by realizing the extraction again of space of a whole page reusing data, make typesetting data reuse aspect simple to operate, again the space of a whole page data of Ti Quing can save as new template file, main is to can be implemented in the data synchronization applications that the parallel typesetting process is revised template under the network environment, as above-mentioned 3) even middle template data has been applied on the space of a whole page, also can merge by the section of reusing of explaining sign of breathing out.In the present embodiment, extract again with synchronously by template, type-setting equipment can be automatically be replaced by 33 shown template datas with all 30 shown template datas, and does not influence the typesetting data of having revised on the template basis on the space of a whole page.
The present invention is a kind of based on the typesetting data method for reusing that can breathe out and explain, design and according to the method according to model of the present invention, can realize that content, the relatively-stationary reusable typesetting data of pattern reuse simply and easily, and can realize that these typesetting datas of reusing carry out data sync after entering the space of a whole page.It is characterized in that the typesetting data of reusing, after a plurality of terminals all enter the space of a whole page with these data, can also realize simply fast that reusing data is synchronous at needs; By the mode of breathing out and explaining, reuse changing less typesetting data extraction, and explain the dynamic typesetting data restrictive rule of interchain establishing method at breathing out, also belong to innovation scope of the present invention.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.