CN102103592B - Automatic typesetting method and system - Google Patents

Automatic typesetting method and system Download PDF

Info

Publication number
CN102103592B
CN102103592B CN2009102436160A CN200910243616A CN102103592B CN 102103592 B CN102103592 B CN 102103592B CN 2009102436160 A CN2009102436160 A CN 2009102436160A CN 200910243616 A CN200910243616 A CN 200910243616A CN 102103592 B CN102103592 B CN 102103592B
Authority
CN
China
Prior art keywords
typesetting
composing
space
evaluation
layout
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.)
Active
Application number
CN2009102436160A
Other languages
Chinese (zh)
Other versions
CN102103592A (en
Inventor
李悦
李平立
龚健
张海冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Founder International Beijing Co Ltd
Original Assignee
Peking University
Founder International Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Peking University, Founder International Beijing Co Ltd filed Critical Peking University
Priority to CN2009102436160A priority Critical patent/CN102103592B/en
Publication of CN102103592A publication Critical patent/CN102103592A/en
Application granted granted Critical
Publication of CN102103592B publication Critical patent/CN102103592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an automatic typesetting method and an automatic typesetting system, which relate to the field of publishing typesetting. An optimal typesetting mode is selected by evaluating typesetting effects. In the prior art, each piece of typesetting data corresponds to only one typesetting mode to achieve only one typesetting effect, so comparison and evaluation cannot be performed on the typesetting effect. In the method and the system, each piece of data corresponds to a plurality of layout style sets of a plurality of typesetting templates to achieve a plurality of pre-typesetting effects, and the optimal typesetting mode is selected by evaluating the pre-typesetting effects according to evaluation factors defined by a user to realize automatic typesetting.

Description

A kind of automatic composing method and system
Technical field
The present invention relates to publish type-setting domain, relate in particular to a kind of automatic composing method and system.
Background technology
In process of typeset, common a plurality of space of a whole page need to adopt same layout, for example the ad content of newspaper is set type, layout in each one layout region is normally identical, in order to realize fast and accurately the composing effect, in actual composing processing procedure, allow as required self-defined layout template of user, this layout template is applied in the different spaces of a whole page, realizes identical composing effect.
In the prior art, common data can only generate a kind of composing effect by a layout template, then can not estimate and select the composing effect, the typical case is such as US Patent No. 7555710B2, " Method; apparatus and program for determining layout of a page using links between partialareas in the page ", the prior art is passed through the mutual relationship between the typesetting data, automatically adjust the layout position of typesetting data in the space of a whole page, realize automatic typesetting.
Summary of the invention
For existing problem in the prior art, the purpose of this invention is to provide a kind of automatic composing method and system, the method and system can make a plurality of space of a whole page style set of the corresponding a plurality of layout templates of typesetting data, by the evaluation to the pre-typesetting effect, optimize best type-setting mode, realize automatic typesetting.
In order to realize the foregoing invention purpose, the technical solution used in the present invention is that a kind of automatic composing method may further comprise the steps:
Step 1: select layout template, every corresponding a plurality of layout templates of typesetting data, selected one of them layout template;
Step 2: select space of a whole page style set, set in advance a plurality of space of a whole page style set in each layout template, selected one of them space of a whole page style set in the layout template of in step 1, selecting;
Step 3: carry out pre-typesetting, according to step 1 selected layout template and the selected space of a whole page style set of step 2, in one layout region, typesetting data is carried out pre-typesetting;
Step 4: the pre-typesetting evaluation of result, the pre-typesetting result who obtains in the step 3 is estimated, determine its evaluation score and preservation;
Step 5: judge whether above-mentioned typesetting data has carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, if then forward step 6 to; If not, then forward step 1 to;
Step 6: automatic typesetting, select layout template and the space of a whole page style set of the pre-typesetting that evaluation score is the highest described in the step 4 that this typesetting data is carried out automatic typesetting.
For realizing said method, the invention provides a kind of automatic typesetting system, it comprises with lower module:
Layout template is selected module: the arbitrary layout template that is used for a plurality of layout templates corresponding to selected every typesetting data;
Space of a whole page style set is selected module: be used for arbitrary space of a whole page style set that selected above-mentioned selected composing masterplate is set;
Pre-typesetting module: be used for according to above-mentioned selected composing masterplate and the space of a whole page style set typesetting data being carried out pre-typesetting;
Pre-typesetting evaluation of result module: be used for the composing result of above-mentioned pre-typesetting is estimated and definite evaluation score;
Pre-typesetting judge module: be used for judging whether above-mentioned typesetting data has carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, if then forward the automatic typesetting module to; If not, then forwarding layout template to selects module to continue to process.
Automatic typesetting module: be used for selecting layout template and the space of a whole page style set of the highest pre-typesetting of pre-typesetting evaluation of result module evaluation score that typesetting data is carried out automatic typesetting.
Further, described pre-typesetting evaluation of result module also comprises following submodule:
Factor of evaluation is selected module: be used for the factor of evaluation that selection is marked according to user's needs;
Evaluation result judge module: be used for according to the factor of evaluation of user selection pre-typesetting being marked.
Further again, whether described evaluation result judge module also is used for judging this scoring greater than scoring last time, if, then keep this composing record, with this record of setting type as recording the basis that compares with composing next time; If not, then abandon this composing record.
Effect of the present invention is: adopt method and system of the present invention, can be by setting composing effect assessment factor, typesetting data is carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, and the pre-typesetting effect estimated, go out best type-setting mode by comparative optimization, finally realize automatic typesetting.
Description of drawings
Fig. 1 is the basic flow sheet of a kind of automatic composing method in the embodiment of the invention;
Fig. 2 is pre-typesetting effect assessment process flow diagram in the embodiment of the invention;
Fig. 3 is the structured flowchart of a kind of automatic typesetting system in the embodiment of the invention;
Fig. 4 is layout template synoptic diagram in the embodiment of the invention;
Fig. 5 is the first style set pre-typesetting design sketch in the embodiment of the invention;
Fig. 6 is the second style set pre-typesetting design sketch in the embodiment of the invention.
Embodiment
Below in conjunction with Figure of description and embodiment the method for the invention and system are further described.
The invention provides a kind of automatic typesetting system, as shown in Figure 3, it comprises with lower module:
Layout template is selected module 31: the arbitrary layout template that is used for a plurality of layout templates corresponding to selected every typesetting data;
Space of a whole page style set is selected module 32: be used for arbitrary space of a whole page style set that selected above-mentioned selected composing masterplate is set;
Pre-typesetting module 33: be used for according to above-mentioned selected composing masterplate and the space of a whole page style set typesetting data being carried out pre-typesetting;
Pre-typesetting evaluation of result module 34: be used for the composing result of above-mentioned pre-typesetting is estimated and definite evaluation score;
Pre-typesetting judge module 35: be used for judging whether above-mentioned typesetting data has carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, if then forward the automatic typesetting module to; If not, then forwarding layout template to selects module to continue to process.
Automatic typesetting module 36: be used for selecting layout template and the space of a whole page style set of the highest pre-typesetting of pre-typesetting evaluation of result module evaluation score that typesetting data is carried out automatic typesetting.
In the present embodiment, described pre-typesetting evaluation of result module also comprises following submodule:
Factor of evaluation is selected module 341: be used for the factor of evaluation that selection is marked according to user's needs;
Evaluation result judge module 342: be used for according to the factor of evaluation of user selection pre-typesetting being marked.
Wherein, whether evaluation result judge module 342 also is used for judging this scoring greater than scoring last time, if, then keep this composing record, with this record of setting type as recording the basis that compares with composing next time; If not, then abandon this composing record.
In the present embodiment, a kind of basic procedure of automatic composing method may further comprise the steps as shown in Figure 1:
Step 1: select layout template S11: every corresponding a plurality of layout templates of typesetting data, selected one of them layout template.
In the present embodiment, the composing pattern of layout template for setting in advance according to user's needs, the composing pattern is the attribute of row's plate in the one layout region, comprise the attributes such as row's plate initial position, row's plate border color, there is not in advance typesetting data in the layout template, behind the selected layout template, typesetting data can be set type according to the composing pattern of layout template.
In the present embodiment, typesetting data is image layout data, text composition data, figure typesetting data and/or tabular matter data, the user can self-defined selection arbitrary layout template wherein.
Step 2: select space of a whole page style set S12: pre-set a plurality of space of a whole page style set in each layout template, selected one of them space of a whole page style set in the layout template of in step 1, selecting.
In the present embodiment, space of a whole page style set is the set of the relative position relation between the piece of respectively setting type in the layout template, the set of the relative position relation between the described composing piece is the set of the attribute adjusted of User is set between the composing piece in the one layout region mutual alignment, and the arbitrary space of a whole page pattern of user in can self-defined selection space of a whole page style set carries out pre-typesetting.
Step 3: carry out pre-typesetting S13: according to the space of a whole page style set in the selected layout template of step 1 and step 2, the typesetting data in the one layout region is carried out pre-typesetting.
In the present embodiment, with the typesetting data in the step 1 according to the space of a whole page style set in the selected layout template, in one layout region, carry out automatic pre-typesetting.
Step 4: composing evaluation of result S14: the composing result to pre-typesetting described in the step 3 estimates, and determines evaluation score and preservation.
In the present embodiment, the result estimates to composing, and the composing effect of pre-typesetting in the step 3 is marked, and estimates according to the factor that affects the composing effect, is designated as score if above-mentioned factor meets the requirements, otherwise for forgetting minute, above-mentioned factor comprises:
(1) whether meets the displaying requirement for the treatment of one layout region;
(2) whether meet the size for the treatment of one layout region;
(3) whether the number of picture is correct;
(4) whether meet the requirement of the position of picture;
(5) whether meet the requirement of the size of picture region;
(6) whether meet the requirement of the size of picture;
(7) whether meet the composing effect of picture;
(8) whether meet mutual exclusion requirement between picture and figure;
(9) whether meet the position of figure;
(10) whether meet the size of figure;
(11) whether total data is arranged down;
(12) whether meet the text composition effect;
And user-defined other factors.
In the present embodiment, the flow process that the pre-typesetting result is estimated as shown in Figure 2, the factor of evaluation S21 that at first selection is marked according to user's needs also marks, then judge that whether this scoring is greater than the S22 that marked last time, if this record S23 that sets type, is then abandoned in this scoring less than scoring last time, if this scoring is greater than the S23 that marked last time, then keep this composing record S24, this record of setting type will be as recording the basis that compares with composing next time.
Step 5: judge whether above-mentioned typesetting data has carried out pre-typesetting S15 according to whole space of a whole page style set of whole layout templates, if then forward step 6 to; If not, then forward step 1 to;
Step 6: automatic typesetting S16, layout template and the space of a whole page style set of the pre-typesetting that evaluation score is the highest in the selection step 4 are carried out automatic typesetting to these data.
In the present embodiment, judge that at first whether these data carried out pre-typesetting according to whole space of a whole page patterns of whole layout templates, if, then select the layout template of the pre-typesetting that score is the highest in the step 4 and space of a whole page style set as the template of automatic typesetting, this typesetting data is carried out automatic typesetting, if not, then forwarding a kind of proceeding of step to processes.
Application example:
Adopt the concrete application example of a kind of automatic composing method of the present invention as follows:
Finish automatic typesetting effect as shown in Figure 6 such as need, adopt a kind of automatic composing method of the present invention, as shown in Figure 1, may further comprise the steps:
Step 1: select layout template S11: every corresponding a plurality of layout templates of typesetting data, selected one of them layout template.
In the present embodiment, the at first selected layout template of user is pattern as shown in Figure 3, namely has respectively two rows for the treatment of regional in the upper left corner and the lower right corner of one layout region, and typesetting data is the image layout data.
Step 2: select space of a whole page style set S12: set in advance a plurality of space of a whole page style set in each layout template, selected one of them space of a whole page style set in the layout template of in step 1, selecting.
In the present embodiment, two kinds of space of a whole page style set are arranged for user selection, the first space of a whole page style set is for zone to be arranged is benchmark take the upper left corner, all the other typesetting contents that enter carry out left left-justify, the upper alignment with zone to be arranged, the upper left corner, it is the alignment of left summit, the second space of a whole page style set is for zone to be arranged is benchmark take the upper left corner, and regional left-justify and arranged sequentially below reference area is waited to arrange in the typesetting content that all the other enter and the upper left corner.
Step 3: carry out pre-typesetting S13: according to the space of a whole page style set in the selected layout template of step 1 and step 2, the typesetting data in the one layout region is carried out pre-typesetting.
In the present embodiment, Fig. 4 is the layout template synoptic diagram, carry out pre-typesetting according to the space of a whole page style set described in the step 2, according to the first space of a whole page style set carry out behind the pre-typesetting the composing effect as shown in Figure 5, according to the second space of a whole page style set carry out behind the pre-typesetting the composing effect as shown in Figure 6.
Step 4: composing evaluation of result S14: the composing result to pre-typesetting described in the step 3 estimates, and determines evaluation score and preservation.
In the present embodiment, the described pre-typesetting effect of step 3 is estimated, the factor that affects the composing effect in the present embodiment is as follows:
Whether the mutual exclusion that (1) whether meets between picture and figure requires: namely overlapping between the picture;
Whether (2) whether the number of picture is correct: be two width of cloth images namely;
Whether (3) whether total data is arranged down: the row of all images in the template is lower;
According to influence factor, the first space of a whole page style set pre-typesetting effect wherein:
(1) mutual exclusion that whether meets between picture and figure requires: do not meet the demands;
(2) whether the number of picture is correct: meet the demands;
(3) whether total data is arranged down: meet the demands;
According to influence factor, the second space of a whole page style set pre-typesetting effect wherein:
(1) mutual exclusion that whether meets between picture and figure requires: meet the demands;
(2) whether the number of picture is correct: meet the demands;
(3) whether total data is arranged down: meet the demands;
To sum up the first space of a whole page style set pre-typesetting effect has an influence factor not satisfy, and gets 2 minutes, and the second space of a whole page style set pre-typesetting effect satisfies whole influence factors, gets 3 minutes.
Step 5: judge whether above-mentioned typesetting data has carried out pre-typesetting S15 according to whole space of a whole page style set of whole layout templates, if then forward step 6 to; If not, then forward step 1 to;
Step 6: automatic typesetting S16, layout template and the space of a whole page style set of the pre-typesetting that evaluation score is the highest in the selection step 4 are carried out automatic typesetting to this typesetting data.
In the present embodiment, judge that at first whether this typesetting data has carried out pre-typesetting according to whole space of a whole page patterns of whole layout templates, then according in the step 4 pre-typesetting evaluation result being sorted, it is the highest to select to estimate minute score of the second space of a whole page style set composing effect that element is the highest, therefore select the second space of a whole page style set of the described layout template of step 1 as the template of automatic typesetting, this typesetting data is carried out automatic typesetting, and the composing effect as shown in Figure 6.
Consider the description of this invention disclosed herein and special embodiment, other embodiment of the present invention are apparent for a person skilled in the art.These explanations and embodiment only consider as an example that they all belong to by within the indicated protection scope of the present invention and spirit of claims.

Claims (6)

1. automatic composing method may further comprise the steps:
Step 1: select layout template, every corresponding a plurality of layout templates of typesetting data, selected one of them layout template;
Step 2: select space of a whole page style set, set in advance a plurality of space of a whole page style set in each layout template, selected one of them space of a whole page style set in the layout template of in step 1, selecting;
Step 3: carry out pre-typesetting, according to step 1 selected layout template and the selected space of a whole page style set of step 2, in one layout region, typesetting data is carried out pre-typesetting;
Step 4: the pre-typesetting evaluation of result, the pre-typesetting result who obtains in the step 3 is estimated, determine its evaluation score and preservation; The composing result is estimated and definite evaluation score, is according to the factor that affects the composing effect composing effect of pre-typesetting in the step 3 to be marked, and then is designated as score if satisfy the requirement of above-mentioned factor, otherwise for forgetting minute; The result estimates to composing, and it specifically comprises:
A. the factor of evaluation that selection is marked according to user's needs;
B. according to factor of evaluation described in a pre-typesetting is marked, and judges this scoring whether greater than scoring last time, if, then keep this composing record, with this record of setting type as recording the basis that compares with setting type next time; If not, then abandon this composing record;
Step 5: judge whether above-mentioned typesetting data has carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, if then forward step 6 to; If not, then forward step 1 to;
Step 6: automatic typesetting, select layout template and the space of a whole page style set of the pre-typesetting that evaluation score is the highest described in the step 4 that this typesetting data is carried out automatic typesetting.
2. a kind of automatic composing method according to claim 1, it is characterized in that: in the step 1, the composing pattern of described layout template for setting in advance according to user's needs, described composing pattern is the attribute of row's plate, comprises initial position and the row's plate border color of arranging plate.
3. a kind of automatic composing method according to claim 1, it is characterized in that: in the step 1, described typesetting data is image layout data, text composition data, figure typesetting data He ∕ or tabular matter data.
4. a kind of automatic composing method according to claim 1, it is characterized in that: in the step 2, described space of a whole page style set is the set of the relative position relation between the piece of respectively setting type in the layout template, and the set of the relative position relation between the described composing piece is the set of the attribute adjusted of User is set between the composing piece in the one layout region mutual alignment.
5. a kind of automatic composing method according to claim 1, it is characterized in that: described factor comprises:
(1) whether meets the displaying requirement for the treatment of one layout region;
(2) whether meet the size for the treatment of one layout region;
(3) whether the number of picture is correct;
(4) whether meet the requirement of the position of picture;
(5) whether meet the requirement of the size of picture region;
(6) whether meet the requirement of the size of picture;
(7) whether meet the composing effect of picture;
(8) whether meet mutual exclusion requirement between picture and figure;
(9) whether meet the position of figure;
(10) whether meet the size of figure;
(11) whether total data is arranged down;
(12) whether meet the requirement of text composition effect;
And user-defined other factors.
6. automatic typesetting system, it comprises with lower module:
Layout template is selected module: the arbitrary layout template that is used for a plurality of layout templates corresponding to selected every typesetting data;
Space of a whole page style set is selected module: be used for arbitrary space of a whole page style set that selected above-mentioned selected composing masterplate is set;
Pre-typesetting module: be used for according to above-mentioned selected composing masterplate and the space of a whole page style set typesetting data being carried out pre-typesetting;
Pre-typesetting evaluation of result module: be used for the composing result of above-mentioned pre-typesetting is estimated and definite evaluation score; Described pre-typesetting evaluation of result module also comprises following submodule:
Factor of evaluation is selected module: be used for the factor of evaluation that selection is marked according to user's needs;
Evaluation result judge module: be used for according to the factor of evaluation of user selection pre-typesetting being marked; Whether the evaluation result judge module also is used for judging this scoring greater than scoring last time, if, then keep this composing record, with this record of setting type as recording the basis that compares with composing next time; If not, then abandon this composing record; Pre-typesetting judge module: be used for judging whether above-mentioned typesetting data has carried out pre-typesetting according to whole space of a whole page style set of whole layout templates, if then forward the automatic typesetting module to; If not, then forwarding layout template to selects module to continue to process;
Automatic typesetting module: be used for selecting layout template and the space of a whole page style set of the highest pre-typesetting of pre-typesetting evaluation of result module evaluation score that typesetting data is carried out automatic typesetting.
CN2009102436160A 2009-12-18 2009-12-18 Automatic typesetting method and system Active CN102103592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102436160A CN102103592B (en) 2009-12-18 2009-12-18 Automatic typesetting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102436160A CN102103592B (en) 2009-12-18 2009-12-18 Automatic typesetting method and system

Publications (2)

Publication Number Publication Date
CN102103592A CN102103592A (en) 2011-06-22
CN102103592B true CN102103592B (en) 2013-05-29

Family

ID=44156369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102436160A Active CN102103592B (en) 2009-12-18 2009-12-18 Automatic typesetting method and system

Country Status (1)

Country Link
CN (1) CN102103592B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841887B (en) * 2011-06-21 2015-04-22 北大方正集团有限公司 Method and device for typesetting variable data
CN102841888B (en) * 2012-09-14 2015-10-14 《中国学术期刊(光盘版)》电子杂志社有限公司 A kind of composing system and method fast
CN104021112B (en) * 2014-06-23 2017-01-11 时光流影科技股份有限公司 One-key book-forming system based on automatic typesetting
CN105260351B (en) * 2015-09-10 2018-05-01 武汉改图网技术有限公司 A kind of online self-help design method of printed matter based on adaptive masterplate
CN106933794B (en) * 2017-03-14 2018-07-13 掌阅科技股份有限公司 Picture layout method and device, electronic equipment, computer storage media
CN108664369B (en) * 2017-03-30 2021-04-09 北大方正集团有限公司 Typesetting software monitoring method and device
CN110795925B (en) * 2019-10-12 2023-05-02 腾讯科技(深圳)有限公司 Image-text typesetting method and device based on artificial intelligence and electronic equipment

Also Published As

Publication number Publication date
CN102103592A (en) 2011-06-22

Similar Documents

Publication Publication Date Title
CN102103592B (en) Automatic typesetting method and system
US9992374B2 (en) Image processing apparatus and image processing method
CN102843486B (en) Image processing device and image processing method
US20160086070A1 (en) Image forming apparatus and non-transitory computer readable medium
US20140002854A1 (en) Scheduling for Digital Commercial Print Workflows
JP5779378B2 (en) Imposition template, imposition data generation apparatus, imposition data generation method and program
US20150363676A1 (en) Method and Device for the Markless Control or Regulation of a Digital Printing Process
JP2018507796A (en) Method for printing multiple voxels of an object
US20090199734A1 (en) Printing production plan generation system
CN104334324B (en) A kind of method made containing picture dimensional printing goods
CN103034624A (en) Method and system for accurately positioning page object
CN1920811B (en) Character typesetting method
CN103777908A (en) Double-sided printing control method and device and double-sided printer
JP2007295222A (en) Image processing system, program, and method for continuous printing
JP2016225699A (en) Image forming apparatus and image forming program
CN102456000B (en) Method and device for eliminating crack in page
JP2007058711A (en) System, program and method of continuously printing image
CN108353111B (en) Print inconsistency quantification
JP2007293658A (en) Image processing system for continuous printing and image processing program for continuous printing and image processing method for continuous printing
JP2014099069A (en) Tape printer and tape printing method
US11521030B2 (en) Image forming device and image forming method for printing colored pattern parts on apparel cloth
KR20060084709A (en) Apparatus for forming image having poster printing function and method for cotrolling thereof
JP2018176427A (en) Image formation device
CN104079735B (en) Display operating device and indication operation method and image processing system
CN102810150B (en) Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant