Summary of the invention
The invention provides a kind of imposition method and device, to realize automatic keyline layout.
A kind of imposition method of the present invention comprises the following steps: to treat the output space of a whole page and sets up the layout plan template; Treat the title of each Portable Document format file of layout and analyze respectively, to identify the layout information of each Portable Document format file; According to the layout information of described layout plan template and each Portable Document format file of identifying, each Portable Document format file arranged to respectively wait to export in the space of a whole page.
Wherein, the process of described analysis and identification comprises: analyze the feature of forming the used character of described title, to identify the rule that generates this title; According to the rule of this title, analyze the arrangement feature of the used character of this title, to identify layout information.Further, with the foundation of default script as described analysis and identifying.The described title that in default script Different Rule is generated is carried out Classification Management.
Wherein, the described process of setting up the layout plan template comprises: will be combined to form the layout plan template for each subtemplate that the layout plan is called.
The device of a kind of layout of the present invention comprises: set up the unit, be used to treat the output space of a whole page and set up the layout plan template; Analyze recognition unit, the title that is used to treat each Portable Document format file of layout is analyzed, to identify the layout information of each Portable Document format file; The unit of arranging is used for according to setting up the layout plan template that the unit is set up, and the layout information of analyzing each Portable Document format file that recognition unit identifies, each Portable Document format file is arranged to respectively wait to export in the space of a whole page.
Wherein, comprise following subelement in the described analysis recognition unit: first analyzes subelement, be used for the feature of forming the used character of described title is analyzed, and the output analysis result; The first recognin unit is used for the analysis result according to the first analysis subelement output, identifies the rule that generates described title; Second analyzes subelement, is used for the rule that identifies according to the first recognin unit, analyzes the arrangement feature of the used character of described title, and the output analysis result; The second recognin unit is used for the analysis result according to the second analysis subelement output, identifies layout information.
Further, also comprise in the described analysis recognition unit: the script storing sub-units is used for the stores scripts language codes, and the stored script information language codes is offered the first analysis subelement and/or the second analysis subelement, as the foundation of analyzing; And the stored script information language codes offered the first recognin unit and/or the second recognin unit, as the foundation of discerning.
Further again, also comprise in the described analysis recognition unit: the Classification Management subelement is used for according to generating the used rule of described title stored script information language codes in the script storing sub-units being carried out Classification Management.
Further again, also comprise in the described analysis recognition unit: the edition interface subelement that links to each other with the script storing sub-units is used to receive edit file, and upgrades script language code according to this edit file.
Beneficial effect of the present invention is as follows:
Because the mode of automatic identification layout information is provided in method of the present invention and the device, i.e. " title for the treatment of each Portable Document format file of layout is analyzed respectively; to identify the layout information of each Portable Document format file ", so can use this layout information afterwards and, automatically each Portable Document format file is arranged to respectively and wait to export in the space of a whole page in conjunction with the layout plan template.Thereby realized the robotization of layout process.
Adopt the present invention can effectively improve layout efficient and layout accuracy rate, make the robotization of journalism prepress workflow, specialization, save seal artist worker and check cost, shorten the typography flow process.
Embodiment
In order to realize automatic keyline layout, the invention provides a kind of imposition method, referring to shown in Figure 1, comprise following key step:
S1, treat output the space of a whole page set up the layout plan template.
The process of setting up the layout plan template described in this step comprises: will be combined to form the layout plan template for each subtemplate that the layout plan is called.
S2, the title for the treatment of each Portable Document format file of layout are analyzed respectively, to identify the layout information of each Portable Document format file.
The process of analyzing described in this step and discerning specifically comprises: analyze the feature of forming the used character of described title, to identify the rule that generates this title; According to the rule of this title, analyze the arrangement feature of the used character of this title, to identify layout information.Described layout information includes but not limited to: page sequence number, folded number, logical version whether.
Need to prove, the inventor finds because completeization of newspaper pagefile front end manufacturing technology, the overwhelming majority sends to the newspaper page description file of printing house, and its title all is to generate according to specific rule, and the character of forming this title has specific meanings.Therefore the present invention can adopt various rules and the putting in order of character of forming title under ad hoc rules, and represents promptly default script with the form of script language code.And with the foundation of default script as described analysis and identifying.Further analyze for convenience and identifying, also can be in default script, the character of the title that Different Rule is generated is arranged feature and is carried out Classification Management.
S3, according to the layout information of described layout plan template and each Portable Document format file of identifying, each Portable Document format file arranged to respectively waits to export in the space of a whole page.
This step specifically comprises: according to the layout information of Portable Document format file, automatically with this Portable Document format document alignment corresponding subtemplate in the layout plan template, because this layout plan template is set up according to waiting to export the space of a whole page, wait to export in the space of a whole page again so finally each Portable Document format file can be arranged to respectively.
The present invention also provides a kind of device of layout, and referring to shown in Figure 2, it comprises: set up the unit, analyze recognition unit and the unit of arranging.
Set up the unit, be used to treat the output space of a whole page and set up the layout plan template.
Analyze recognition unit, the title that is used to treat each Portable Document format file of layout is analyzed, to identify the layout information of each Portable Document format file.
The unit of arranging is used for according to setting up the layout plan template that the unit is set up, and the layout information of analyzing each Portable Document format file that recognition unit identifies, each Portable Document format file is arranged to respectively wait to export in the space of a whole page.
Referring to shown in Figure 3, among the embodiment of a layout device of the present invention, comprise following subelement in the described analysis recognition unit: first analyzes subelement, the first recognin unit, the second analysis subelement and the second recognin unit; Further also can comprise: script storing sub-units, Classification Management subelement and edition interface subelement.
First analyzes subelement, be used for the feature of forming the used character of described title is analyzed, and the output analysis result
The first recognin unit is used for the analysis result according to the first analysis subelement output, identifies the rule that generates described title
Second analyzes subelement, is used for the rule that identifies according to the first recognin unit, analyzes the arrangement feature of the used character of described title, and the output analysis result
The second recognin unit is used for the analysis result according to the second analysis subelement output, identifies layout information.
The script storing sub-units is used for the stores scripts language codes, and the stored script information language codes is offered the first analysis subelement and/or the second analysis subelement, as the foundation of analyzing; And the stored script information language codes offered the first recognin unit and/or the second recognin unit, as the foundation of discerning.
The Classification Management subelement is used for according to generating the used rule of described title stored script information language codes in the script storing sub-units being carried out Classification Management.
The edition interface subelement that links to each other with the script storing sub-units is used to receive edit file, and upgrades script language code according to this edit file.
Below provide an embodiment based on concrete scene, be described in further detail the present invention.
Present embodiment with " Beijing Daily " on March 21st, 2007 the 15th edition prepress workflow be example, suppose that the file name that was sent to seal point the same day is BJRB07032115AT.PS, particular content is as follows:
One, the stage before the layout:
1, will need the page description file of layout to be converted into Portable Document format file (PDF) file (, then directly entering step 2) of the page if described file itself is exactly a pdf document;
In the present embodiment, the page description file that needs layout is the PS file, its name be called BJRB07032115AT.PS, be translated into pdf document after, keep its file name, and the change suffix be PDF, i.e. BJRB07032115AT.PDF.Including this pdf document in system afterwards preserves.
2, the arranging rule of specifying in advance according to the journalism space of a whole page is organized out the plan masterplate of the layout that will carry out;
In the present embodiment, at first adopt the template construct tool making to go out the subtemplate that calls for layout plan masterplate, then subtemplate is combined to form a layout plan template, computing machine is called in this layout plan template in the system subsequently, for the processing of follow-up layout is got ready.
3, use the script that pre-sets that the title of described pdf document is analyzed, identifying its layout information (including but not limited to: page sequence number, folded number, the information of aspect such as logical version whether), and be saved in the pagefile resource information of internal system;
Concrete, at first, Yu She script is analyzed pdf document title: BJRB07032115AT.PDF preceding 4 (being BJRB), the name that identifies the affiliated newspaper of this pdf document is called " Beijing Daily ", and determine in view of the above to generate the used rule of this title to continue to analyze layout information based on this rule afterwards.
Secondly, it is on March 21st, 2007 by analyzing the publication time that the 5th to the 10th of this pdf document title (promptly 070321) identify the affiliated newspaper of this pdf document; Once more, to identify the page sequence number of this pdf document in affiliated newspaper be 15 by analyzing the 11st of this pdf document title and the 12nd (promptly 15); Afterwards, identify folded number in affiliated newspaper of this pdf document and be A by the 13rd (being A) analyzing this pdf document title; Whether at last, identify this pdf document by the 14th (being T) analyzing this pdf document title is logical version (T represents logical version in the present embodiment) at affiliated newspaper layout.
Afterwards the layout information that identifies is saved in the internal system page resource information table, call the wait rear end.
Two, the stage of layout:
4, the layout information of this pdf document of identifying of layout plan template that obtains according to step 2 and step 3 is arranged this pdf document and is waited to export corresponding region in the space of a whole page.
Further, the size of the big version of layout breadth can be set also automatically according to the breadth size of the own hardware device of manufacturer, and above the page is arranged in, to finish layout.Thereby the particular demands that meets manufacturer's output.
Three, the stage after the layout:
5, the space of a whole page to be exported after the layout is carried out being converted into lattice file behind the computer interpretation, this process is called rasterisation;
In the present embodiment, color information in the layout information that identifies from the title of described pdf document is attached to be waited to export on the space of a whole page, and being passed to the rasterization process unit, the rasterization process unit is identification color information wherein automatically, and relevant parameters is adjusted.The process of the transmission of this color information, identification and adjustment parameter is connected whole prepress workflow full automation, no longer needs manual intervention.
6, lattice file is sent to the enterprising line output of hardware device of types such as printer, film setter, this process and rasterisation merge and are called output.After output is finished, will obtain to be printed on the film or the CTP sheet material of big version page info, after this process was finished, prepress workflow just was through with.
In sum, the invention solves the layout information that needs artificial cognition small breadth file, and confirm the order of arranging of the page in view of the above, and the problem of layout of finishing the page description file of large format, can effectively improve layout efficient and layout accuracy rate, make the robotization of journalism prepress workflow, specialization, save seal artist worker and check cost, shorten the typography flow process.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.