CN104021112A - One-key book-forming system based on automatic typesetting - Google Patents

One-key book-forming system based on automatic typesetting Download PDF

Info

Publication number
CN104021112A
CN104021112A CN201410279905.7A CN201410279905A CN104021112A CN 104021112 A CN104021112 A CN 104021112A CN 201410279905 A CN201410279905 A CN 201410279905A CN 104021112 A CN104021112 A CN 104021112A
Authority
CN
China
Prior art keywords
typesetting
page
data
picture
module
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.)
Granted
Application number
CN201410279905.7A
Other languages
Chinese (zh)
Other versions
CN104021112B (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.)
Times media Polytron Technologies Inc
Original Assignee
Epoch Ltd Of New Media Publishing House
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 Epoch Ltd Of New Media Publishing House filed Critical Epoch Ltd Of New Media Publishing House
Priority to CN201410279905.7A priority Critical patent/CN104021112B/en
Publication of CN104021112A publication Critical patent/CN104021112A/en
Application granted granted Critical
Publication of CN104021112B publication Critical patent/CN104021112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a one-key book-forming system based on automatic typesetting. The one-key book-forming system comprises the following modules: a plate type matching module, a constraint control module, an automatic typesetting module, a comprehensive assessment module, a block translation module, a previewing module and a printing module. The system disclosed by the invention can automatically set type for data containing any picture and any chapter of any character; after typesetting for each chapter is completed, the automatic typesetting is ended.

Description

An a kind of key based on automatic typesetting becomes book system
Technical field
The present invention relates to book publishing typographical printing field, especially relate to an a kind of key based on automatic typesetting and become book system.
Background technology
Along with the development of printing technology, at present printing equipment can be accepted few printing to a book, and printing cost reduces greatly, and this makes to publish books for ordinary populace is not out of reach, but still has an important problem: typesetting problem.System is based on internet, and user is in and just can submits the data that need typesetting to publish books to, and the effect of preview typesetting at once, and user can adjust parameter change typesetting effect.If customer's approval typesetting, can directly generate the pdf document that is applicable to printing, whole process is simple and convenient, time saving and energy saving saving money.
In prior art, common data can only generate a kind of typesetting effect by a layout template, then can not typesetting effect be evaluated and be selected, typical case is 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 typesetting data, automatically adjust the layout position of typesetting data in the space of a whole page, realize automatic typesetting.
In prior art, common data finally only generate a page data, or appraisement system is just for the evaluation of the different typesettings of one page identical data, or system needs built-in template and pattern, and user's operation is too loaded down with trivial details.
Summary of the invention
The present invention has designed an a kind of key based on automatic typesetting and has become book system, the technical matters of its solution is in prior art, common data finally only generate a page data, or appraisement system is the evaluation for the different typesettings of one page identical data, or the system built-in template of needs and pattern, user's operation is too loaded down with trivial details.
In order to solve the technical matters of above-mentioned existence, the present invention has adopted following scheme:
A key based on automatic typesetting becomes a book system, and it comprises with lower module:
Board-like matching module, it is all board-like that its books size of selecting for match user is suitable for, and system is by these board-like automatic typesetting of carrying out of use;
Bound control module, it is for the constraint condition that automatic typesetting is followed is set according to user's request, and system will be used these constraint condition control automatic typesetting processes;
Automatic typesetting module, it is all board-like according to board-like matching module output, uses the constraint condition of bound control module output, treats row according to carrying out automatic typesetting;
Comprehensive evaluation module, its multipage typesetting data to the output of automatic typesetting module carries out indices marking, and the weight that user selects is weighted on average, optimize the page data of one page typesetting as chapters and sections, and record the not row certificate of this kind of row's method, as the foundation of the automatic typesetting that circulates next time;
Block translation module, the page data that it is produced comprehensive evaluation module, uses the relative position between this page of block of random number control and block, has reached the object that board-like diversity shows, and after translation finishes, has preserved this page of typesetting data;
Previewing module, it takes out all page datas that block translation module is preserved, and according to the position of verso type page or recto type page, typesetting data is carried out to translation, and adds the data such as front cover, the page number, and the most all data are played up preview;
Printing module, on its basis of playing up in previewing module, use glue is ordered or saddle stitching standard is automatically drawn hemorrhage position and generates pdf document.
Further, described automatic typesetting module, in the time that new data are carried out to typesetting, can be set up another one page.
Further, the position of every one page typesetting data that described automatic typesetting module generates is all taking the upper left corner of type page as reference position is preserved, data are removed while playing up preview can carry out corresponding translation at verso or recto according to data, ensure that user can arbitrarily change any data of typesetting, when system generates again automatically for it, can not have influence on the typesetting data that other generate automatically.
Further, in automatic typesetting module, for comprising the board-like of picture, comprise two kinds of patterns: the preferential typesetting pattern of picture and the preferential typesetting pattern of word; The preferential typesetting pattern of word is by reaching the object of holding more words to the compression of board-like middle picture region, the endpage unsaturated situation of the preferential typesetting pattern of word when solving a data typesetting, the preferential typesetting pattern of word is only used while having used the row of needing of institute picture board-like; Each circulation automatic typesetting module finally may generate multipage data.
The preferential typesetting pattern of word mainly considers that each data content of sending out as user is fewer, in the time that new data are carried out to typesetting, can set up another one page, now may occur that endpage stays white many situations, therefore the preferential typesetting pattern of word in automatic typesetting module will be processed this problem.
Further, described automatic typesetting module is being used a kind of board-like row for the treatment of when carrying out typesetting, in the time being the preferential typesetting pattern of picture, first arrange as far as possible lower picture, in type page, if there is remaining area to put into text, by cutting treat row according in word put into word block; The preferential typesetting pattern of word if, first, after the lower all residue words of row, in type page, picture is farthest put into after remaining area, does not violate constraint condition, uses this board-like automatic row's method to have result; Otherwise, without result, abandon using this board-like automatic typesetting.
May there is automatic typesetting in the preferential typesetting pattern of word time, issueless situation.Therefore when in the time that typesetting data only has a pictures, if in the time using the typesetting of the preferential typesetting pattern of word, without result, continue to use the preferential typesetting pattern of picture to carry out typesetting.
Further, the page saturation degree in described comprehensive evaluation module, it has evaluated the full degree of one page typesetting content of automatic typesetting effect; Picture block is spent it its degree, word block, it has evaluated the alignment situation up and down of the picture block literal field piece of automatic typesetting effect, word uses its equal proportion of having evaluated the picture and letter of automatic typesetting effect of drift rate to be assigned to the situation of each page, if picture and word have been concentrated in a few page, being considered to picture and letter, to be assigned to each page unbalanced.The score value of these indexs is generated automatically by system, but weight in each score value defines in bound control module by user, and typesetting effect depends on the weight preference that user arranges.
A key based on automatic typesetting becomes a book method, comprises the following steps: step 1, selection books size; Step 2, typesetting constraint condition is set; Step 3, judge whether each data has all generated typesetting data; If so, forward step 9 to, otherwise get data, forward step 4 to, carry out automatic typesetting; Step 4, whether typesetting is complete to judge these data, if so, forwards step 3 to, otherwise, forward step 5 to; Step 5, judge that whether this data picture is drained; If so, forward step 7 to; Otherwise, forward step 6 to; Step 6, these size books corresponding board-like in maximum picture numbers be designated as n, the current picture number for the treatment of row certificate is designated as m, the minimum value in n and m is designated as 1, use front 1,2,3 respectively, ..., 1 figure (supposes that user has 5 data for the treatment of typesetting, word undetermined., in the time generating first page, if use board-like generation one page typesetting data of three figure, use the 1st, 2,3 pictures, word undetermined above generates one page typesetting data.If this page of typesetting data preferably also preserved, generate second page until row according to time, if use board-like generation one page typesetting data of two figure, use the 4th, 5 pictures, remove the remaining word undetermined above of the word of first page and generate one page typesetting data), word undetermined and all board-like containing corresponding number picture, row's one page, forwards step 8 to; Step 7, use all board-like of the current word undetermined for the treatment of row certificate and plain text, row's one page, forwards step 8 to; Step 8, all one pages row method data that produce in step 6 or step 7 are carried out to comprehensive assessment, optimize optimum one page row method, and record this row's method row certificate not accordingly, use the relative position between this page of block of random number control and block, translation finishes rear preservation, forwards step 4 to; Step 9: all page typesetting datas that take out preferably and preserve are processed and played up preview, and generate e-book.
The implication that step 5,6 and 7 processing mode are expressed is mainly: in the time having picture, be bound to use at least one pictures to carry out typesetting, when regularly comprising and at least use the board-like of a pictures through the preferred one page typesetting data one out of step 8, if preferably out be while only having one page typesetting data of a pictures, according to rule, now, this picture must be current the first pictures for the treatment of in typesetting data.
Further, in described step 1, described books are of a size of the current size of books on the market, 16 open, magnanimous 16 open etc. as just spent, and user need to select books size.
Further, in described step 2, described typesetting constraint condition comprises the minimum display width of picture block and height, text block minimum widith, transverse region interblock distance, longitudinal region interblock distance, the maximum text line number that type page height can hold, English alphabet length, Image Display width and the picture block width minimum ratio that type page width can hold, the multinomial typesetting constraint condition of comprehensive evaluation index weights, user can arrange corresponding value and carry out automatic typesetting.The indices of comprehensive evaluation is all the bigger the better, and scope is all in [0,1].
Further, in described step 3, described data are data that need typesetting, are equivalent to chapters and sections data of a book, comprise the picture of arbitrary dimension and a word of any section arbitrarily; Described typesetting data is the number of pages data undetermined of data being carried out to automatic typesetting generation, is equivalent to chapters and sections to carry out after automatic typesetting the multipage of these chapters and sections of generation.
Further, in step 4, described data are to chapters and sections data, or one drained before arbitrarily paragraph word and front any pictures generate the chapters and sections data that remain not typesetting after page typesetting data arbitrarily, comprise the picture of arbitrary dimension and a word of any section arbitrarily.
Further, in step 5, described picture is that chapters and sections are treated the picture in typesetting data, in the time having picture, at least uses last pictures to carry out typesetting.
Further, in step 6, described board-like be built-in according to user's request, it has defined picture block, word block and relative position relation between the two; Described row's one page is to realize board-like automatic typesetting logical and method, automatic typesetting is followed following rule: the 1) rule of all data: the position of all picture character blocks is all taking the upper left corner of type page as reference position is calculated and preserved, actually get typesetted data preview or generate when e-book, need to be according to data at left page or carry out corresponding translation at right page; 2) picture processing principle a: while changing Image Display size, must be equal proportion, ensure that picture is indeformable; 3) picture processing principle b: picture compresses with ratios such as quilts only, but cannot be waited ratio draw high, to avoid, due to picture, to draw high the demonstration bringing fuzzy; 4) picture processing principle c: if must compressed picture, picture has minimum constructive height and minimum widith restriction; 5) picture processing principle d: the viewing area of distributing to picture, if picture insufficient height can be controlled the content of picture below upwards by rising; If picture width is inadequate, can controls picture and show between two parties in the viewing area of distributing; 6) word processing principle a: in the time being the preferential typesetting pattern of picture, drained if word does not have, and after picture sequences, word block can also be put into word, word cut be in order assigned to board-like text filed; 7) word processing principle b: if a paragraph word is cut while being assigned to different page blocks, first block last column word must be booked full line; 8) word processing principle c: text display control must meet relevant typesetting requirement; 9) word processing principle d: if the peak width distributing to word is not type page width, width has minimum widith restriction; 10) word processing principle e: if endpage only has fewer word, by attempt by the word of endpage line number be extruded into picture page in go; Row's method is that any bar data are carried out to automatic typesetting, in the time processing new data, sets up another one page, proceeds typesetting, stays white many problems therefore consider to process endpage.
Further, in step 7, described plain text is board-like only contains the board-like of text for not containing picture, comprises that two kinds of word horizontally-arranged and vertical setting of types are board-like.
Further, in step 8, described comprehensive assessment can be evaluated the typesetting of one page different pieces of information, is the weighted mean to indices, and indices is as follows: 1) page saturation degree: all picture character display areas and with type page area ratio; 2) picture block is spent it: minimum in Image Display width and the block width ratio of distributing to picture; 3) word block is spent it: if when there is picture region left and right, the region of distributing to text, value is 1-(being that word height exceeds or not enough side picture height/type page height), otherwise value is 1; 4) word uses drift rate: board-like picture number=the best that word line number and picture number ratio * use is used text line number; | the best text line number that uses text line number-reality to use |=actual the side-play amount that uses text, word uses drift rate=the best to use text line number/(the best side-play amount that uses text line number+reality to use text).Page saturation degree, picture block use drift rate to be all the bigger the better to its degree, word block to its degree and word, and scope is all in [0,1].If which index user more values, that the weight of this index is larger with respect to other setup measures.
Further, in step 9, described generation e-book is to obtain all each typesetted page datas, according to the position of verso type page or recto type page, typesetting data is carried out to translation, and add the data such as front cover and the page number, the most all data are played up and production e-book, if need printing can select glue order with the reserved hemorrhage position of saddle stitching standard and generate pdf document.
Should become book system to there is following beneficial effect by the key based on automatic typesetting:
(1) system of the present invention can, by comprising the chapters and sections data of any image with any word, be carried out automatic typesetting, and in the time that each chapters and sections are all drained, automatic typesetting finishes.
(2) system of the present invention has been guaranteed the independence of each chapters and sections typesetting,, in the time that certain chapters and sections carries out automatic typesetting after changing again, can not have influence on other chapters and sections of automatic typesetting.
(3) system of the present invention also provides preview simultaneously and has been the pdf document of available applicable printing as seen, comprises that glue orders and saddle stitching standard.
Brief description of the drawings
Fig. 1 is the overall flow figure that becomes book system in the embodiment of the present invention based on a key of automatic typesetting;
Fig. 2 is the process flow diagram that the automatic typesetting of data in the embodiment of the present invention generates some pages of typesetting datas store method;
Fig. 3 is the structured flowchart that becomes book system in the embodiment of the present invention based on a key of automatic typesetting;
Fig. 4 .1-Fig. 4 .15 is board-like schematic diagram in the embodiment of the present invention, and Fig. 4 .1 is that plain text is board-like, and Fig. 4 .2 is the board-like of a figure, and Fig. 4 .3-Fig. 4 .6 is the board-like of two figure, and Fig. 4 .7-Fig. 4 .12 is the board-like of three figure, and Fig. 4 .13-Fig. 4 .15 is the board-like of four figure;
Fig. 5 is 3 pictures in a typesetting data schematic diagram in the embodiment of the present invention;
Fig. 6 is 6 sections of words in a typesetting data schematic diagram in the embodiment of the present invention;
Fig. 7 is when a typesetting data be ranked first page in the embodiment of the present invention, uses the board-like design sketch of Fig. 4 .5;
Fig. 8 is that in the embodiment of the present invention, Fig. 7, through block translation module, exchanges the design sketch after picture and word block up and down;
Fig. 9 be in the embodiment of the present invention to after a drained first page of typesetting data (Fig. 8), while ranked second page, use the board-like design sketch of Fig. 4 .2;
Figure 10 is when a typesetting data be ranked first page in the embodiment of the present invention, uses the board-like design sketch of Fig. 4 .2.
Embodiment
Below in conjunction with Fig. 1 to Figure 10, the present invention will be further described:
In the present embodiment, as shown in Figure 1, an a kind of key based on automatic typesetting becomes process flow diagram that the overall flow of book method and the automatic typesetting of data generate some pages of typesetting datas store method as shown in Figure 2, comprises the following steps:
Step 1: select books sizes S11: the corresponding multiple typesettings of each books size are board-like, it is board-like that system selects to mate corresponding typesetting according to user.
In the present embodiment, books are of a size of the current size of books on the market, 16 open, magnanimous 16 open etc. as just spent, and user need to select books size.
In the present embodiment, typesetting is board-like for having the page layout of relative position relation, comprise picture block, word block and between relative position relation.
Step 2: typesetting constraint condition S12 is set: the rule that automatic typesetting need to be followed is set.
In the present embodiment, typesetting constraint condition is the minimum display width of picture block and height, text block minimum widith, transverse region interblock distance, longitudinal region interblock distance, the maximum text line number that type page height can hold, the English alphabet length that type page width can hold, Image Display width and picture block width minimum ratio, comprehensive evaluation index weight, user can arrange corresponding value and carry out automatic typesetting.
Step 3: judge whether each data has all generated typesetting data S13, if so, forwards step 9 to, otherwise gets data, forwards step 4 to, carries out automatic typesetting.
In the present embodiment, data are data that need typesetting, with respect to chapters and sections data of a book, comprise the picture of an arbitrary dimension arbitrarily, and the word of any section.Described typesetting data is the number of pages data undetermined of data being carried out to automatic typesetting generation, is equivalent to chapters and sections to carry out after automatic typesetting the multipage of these chapters and sections of generation.
Step 4: judge whether drained S21 of these data, if so, forward step 3 to, otherwise, forward step 5 to.
In the present embodiment, data are to chapters and sections data, or one drained before arbitrarily paragraph word and front any pictures generate the chapters and sections data that remain not typesetting after page typesetting data arbitrarily, comprise the picture of an arbitrary dimension arbitrarily, and the word of any section.
Step 5: judge whether drained S22 of this data picture, if so, forward step 7 to, otherwise, forward step 6 to.
In the present embodiment, picture is that chapters and sections are treated the picture in typesetting data, in the time having picture, at least uses last pictures to carry out typesetting.
Step 6: during these size books are accordingly board-like, maximum picture numbers is designated as n, the current picture number for the treatment of row certificate is designated as m, minimum value in n and m is designated as 1, use front 1,2,3 respectively, ..., 1 figure, word undetermined and all board-like containing corresponding number picture, row's one page S23, forwards step 8 to.
In the present embodiment, when new data are carried out to typesetting, can set up another one page.
In the present embodiment, all preserve as reference position taking the upper left corner of type page the position of every one page typesetting data of generation, and data are removed while playing up preview can carry out corresponding translation at verso or recto according to data.
In the present embodiment, board-like while carrying out automatic typesetting for what comprise picture, comprise two kinds of patterns: the preferential typesetting pattern of picture, the preferential typesetting pattern of word.This is board-like uses the preferential typesetting pattern of word while having used the row of needing of institute picture, otherwise uses the preferential typesetting pattern of picture to carry out automatic typesetting.
In the present embodiment, due to the automatic typesetting constraint condition of step 2 setting, use certain board-like while carrying out automatic typesetting, may there is the barren situation of automatic typesetting, therefore must control in this step, must at least have board-like making, using this board-like is resultful while carrying out automatic typesetting.
Described row's one page is to realize board-like automatic typesetting logical and method, and the rule that automatic typesetting is followed is not limit as follows:
1) all data: the position of all picture character blocks is all taking the upper left corner of type page as reference position is calculated and preserved, actually get typesetted data preview or generate when e-book, need to be according to data at left page or carry out corresponding translation at right page.
2) picture processing: while changing Image Display size, must be equal proportion, ensure that picture is indeformable.
3) picture processing: picture compresses with ratios such as quilts only, but cannot be waited ratio draw high, to avoid, due to picture, to draw high the demonstration bringing fuzzy.
4) picture processing: if must compressed picture, picture has minimum constructive height and minimum widith restriction.
5) picture processing: the viewing area of distributing to picture, if picture insufficient height can be controlled the content of picture below upwards by rising; If picture width is inadequate, can controls picture and show between two parties in the viewing area of distributing.
6) word processing: in the time being the preferential typesetting pattern of picture, drained if word does not have, and after picture sequences, word block can also be put into word, word cut be in order assigned to board-like text filed.
7) word processing: if a paragraph word is cut while being assigned to different page blocks, first block last column word must be booked full line.
8) word processing: text display control must meet relevant typesetting requirement, as comma, fullstop does not come the reference position of a line, and " " " can not be at the end position of a line etc. for left punctuation marks used to enclose the title.
9) word processing: if the peak width distributing to word is not type page width, width has minimum widith restriction.
10) word processing: if endpage only has fewer word, by attempt by the word of endpage line number be extruded into picture page in go.Row's method is that any bar data are carried out to automatic typesetting, in the time processing new data, sets up another one page, proceeds typesetting, stays white many problems therefore consider to process endpage.
11) other.
Step 7: use the current word undetermined for the treatment of row certificate, and plain text is all board-like, row's one page S24, forwards step 8 to.
In the present embodiment, plain text is board-like only contains the board-like of text for not containing picture, comprises that two kinds of word horizontally-arranged and vertical setting of types are board-like.
Step 8: all one page row method data that produce in step 6 or step 7 are carried out to comprehensive assessment, optimize optimum one page row method, and record this row's method accordingly not row according to S25, use the relative position between this page of block of random number control and block, translation finishes rear preservation S26, forwards step 4 to.
In the present embodiment, comprehensive assessment can be evaluated the typesetting of one page different pieces of information, is the weighted mean to indices.Indices is not limit as follows:
1) page saturation degree: all picture character display areas and with type page area ratio.
2) picture block is spent it: minimum in Image Display width and the block width ratio of distributing to picture.
3) word block is spent it: if when there is picture region left and right, the region of distributing to text, value is 1-(word height exceeds or not enough side picture height/type page height), otherwise value is 1
4) word uses drift rate: the board-like picture number that word line number and picture number ratio * use is designated as " the best text line number that uses "." best use text line number "-actual line of text number scale using is " the actual side-play amount that uses text ", and word use drift rate is " the best text line number that uses "/(" the best text line number that uses "+" reality is used the side-play amount of text ").
5) other.
In the present embodiment, the relative position between use this page of block of random number control and block is for judging between block whether need to exchange translation according to random number, to reach the object of the board-like diversity demonstration of typesetting.
Step 9: all page typesetting datas that take out preferably and preserve are processed and played up preview S15, and generate e-book S16.
In the present embodiment, be treated to according to the position of verso or recto type page typesetting data is carried out to translation, and add the data such as front cover, the page number.
In the present embodiment, generating e-book is need to generate that glue is ordered or the pdf document of the reserved hemorrhage position of saddle stitching standard according to user.
As shown in Figure 3, the invention provides an a kind of key based on automatic typesetting and become book system, it comprises with lower module:
Board-like matching module 31: it is all board-like that the books size of selecting for match user is suitable for, and system is by these board-like automatic typesetting of carrying out of use.
Bound control module 32: for the constraint condition that automatic typesetting is followed is set according to user's request, system will be used these constraint condition control automatic typesetting processes.
Automatic typesetting module 33: that exports according to board-like matching module is all board-like, is used the constraint condition of bound control module output, treats row according to carrying out automatic typesetting.For comprising the board-like of picture, it comprises two kinds of patterns: the preferential typesetting pattern of picture, the preferential typesetting pattern of word.The preferential typesetting pattern of word is by reaching the object of holding more words to the compression of board-like middle picture region, this pattern is mainly for solving the unsaturated situation of endpage during to a data typesetting, and this pattern is only used while having used the row of needing of institute picture board-like.Each circulation automatic typesetting module finally may generate multipage data.
Comprehensive evaluation module 34: the multipage typesetting data to the output of automatic typesetting module carries out indices marking, and the weight that user selects is weighted on average, optimize the page data of one page typesetting as chapters and sections, and record the not row certificate of this kind of row's method, as the foundation of the automatic typesetting that circulates next time.
Block translation module 35: the page data that comprehensive evaluation module is produced, use the relative position between this page of block of random number control and block, reach the object that board-like diversity shows.Translation finishes this page of typesetting data of rear preservation, if now each data has all generated typesetting data, enters previewing module, otherwise forwards automatic typesetting module to.
Previewing module 36: take out all page datas that block translation module is preserved, according to the position of verso or recto type page, typesetting data is carried out to translation, and add the data such as front cover, the page number, the most all data are played up preview.
Printing module 37: on the basis of playing up in previewing module, use glue is ordered or saddle stitching standard is automatically drawn hemorrhage position and generates pdf document.
Application example:
Adopt an a kind of key based on automatic typesetting of the present invention to become the concrete application example of book method as follows: method is in the time processing many data, and the processing mode of each data is all identical, therefore only set forth the treatment step to data below.
As need use as Fig. 5, Fig. 6 data, complete the effect of typesetting preview printing as shown in Figure 8, Figure 9, adopt an a kind of key based on automatic typesetting of the present invention to become book method, as shown in Figure 1 and Figure 2, comprise the following steps:
Step 1: select books sizes S11: the corresponding multiple typesettings of each books size are board-like, it is board-like that system selects to mate corresponding typesetting according to user.
In the present embodiment, suppose that user has chosen positive 16k, the wide high pixel unit of books is set to (524 temporarily, 737), the wide height of type page is (426,640), taking the upper left corner of books as initial point, type page is (66,58) with respect to the reference position of initial point in left page, the px of unit.System matches to be board-likely assumed to be the .1 as Fig. 4,4.2,4.5, board-like shown in 4.7,4.13.
Step 2: typesetting constraint condition S12 is set: the rule that automatic typesetting need to be followed is set, and user can arrange corresponding constraint condition control automatic typesetting effect.
In the present embodiment, typesetting constraint condition arranges as follows: the minimum display width 150px of picture block, height 150px, text block minimum widith 106px, transverse region interblock is apart from 20px, longitudinal region interblock is apart from 5px, maximum text line number 30 row that type page height can hold, 70 of the English alphabet length that type page width can hold, Image Display width and picture block width minimum ratio 0.5, comprehensive evaluation index weight, page saturation degree weight 0.7, picture block is to its degree weight 0.1, word block is to its degree weight 0.1, and word uses drift rate weight 0.1.
Step 3: judge whether each data has all generated typesetting data S13, if so, forwards step 9 to, otherwise gets data, forwards step 4 to, carries out automatic typesetting.
In the present embodiment, current have data that need typesetting, and these data as shown in Figure 5, Figure 6, comprise 3 pictures, and 6 sections of words.As follows successively in the wide high information of 3 pictures in Fig. 5: (3456,5184), (5184,3456), (3456,5184), the px of unit.Take out this data, forward step 4 to, carry out automatic typesetting.
Step 4: judge whether drained S21 of these data, if so, forward step 3 to, otherwise, forward step 5 to.
In the present embodiment, current data as shown in Figure 5, Figure 6, does not have drainedly, forwards step 5 to.
Step 5: judge whether drained S22 of this data picture, if so, forward step 7 to, otherwise, forward step 6 to.
In the present embodiment, current data picture is as Fig. 5, also has three not have drainedly, forwards step 6 to.
Step 6: during these size books are accordingly board-like, maximum picture numbers is designated as n, the current picture number for the treatment of row certificate is designated as m, minimum value in n and m is designated as 1, uses front 1,2 respectively, 3, ..., 1 figure, word undetermined, and all board-like containing corresponding number picture, row's one page S23, forwards step 8 to.
In the present embodiment, the hypothesis in the corresponding board-like use step 1 of these size books, wherein maximum picture numbers is 4, i.e. n=4; The current picture number for the treatment of row certificate is designated as 3, i.e. m=3; Minimum value in n and m is designated as 3, i.e. 1=3; Use respectively front 1,2,3 figures, word undetermined, and all board-like containing corresponding number picture, row's one page, i.e. use is as Fig. 4 .2, board-like shown in 4.5,4.7, and front several pictures as shown in Figure 5, Figure 6, one pages arranged in some sections of words.
In the present embodiment, use board-like as shown in Fig. 4 .2, to as Fig. 5, Fig. 6 in the time that row certificate is carried out typesetting, owing to being new data, therefore can set up another one page.The position that generates one page typesetting data is all taking the upper left corner of type page as reference position is preserved.Use 1 pictures due to board-like as shown in Fig. 4 .2, be not finished all pictures, therefore in the time carrying out automatic typesetting, use the preferential typesetting pattern of picture.Get first figure as shown in Figure 5, and some words row one page, the design sketch of generation is as shown in 10.In process of typeset, after drained this pictures, there is no position discharge word.One page typesetting data now generating only includes a pictures, this picture is with respect to the position (x in the type page upper left corner, y) be (7.66667,0), show wide height (w, h) be (410.667,616), the px of unit, the reserved caption word block in picture below, height 24px, the horizontal viewing area of picture is arranged in the middle of type page.
In the present embodiment, use board-like as shown in Fig. 4 .5, to as Fig. 5, Fig. 6 in the time that row certificate is carried out typesetting, owing to being new data, therefore can set up another one page.The position that generates one page typesetting data is all taking the upper left corner of type page as reference position is preserved.Use 2 pictures due to board-like as shown in Fig. 4 .5, be not finished all pictures, therefore in the time carrying out automatic typesetting, use the preferential typesetting pattern of picture.Get first, second figure as shown in Figure 5, and some words row one page, the design sketch of generation is as shown in 7.In process of typeset, after drained two pictures, calculating can also be put down 20 style of writing words, so expire 20 style of writing words above from word cutting as shown in Figure 6, fills the region not being booked.One page typesetting data now generating comprises 2 pictures, and one text filed, and as shown in 7, first figure is with respect to the position (x in the type page upper left corner, y) be (0,0), show wide height (w, h) be (124.923,187.385), the px of unit; Second figure is with respect to the position (x in the type page upper left corner, y) be (144.923,0), show wide height (w, h) be (281.077,187.385), the px of unit, has the interval of 20px between the first pictures and the second pictures, all reserved caption word blocks of two pictures belows, height 24px, now two pictures height are consistent, and Image Display width and add that block gap, a transverse region is just the width of type page.Below word block is (144.923,211.385) with respect to the position (x, y) in the type page upper left corner, shows that wide height (w, h) is for (426,425), the px of unit.
In the present embodiment, use board-like as shown in Fig. 4 .7, to as Fig. 5, Fig. 6 in the time that row certificate is carried out typesetting, owing to being new data, therefore can set up another one page.The position that generates one page typesetting data is all taking the upper left corner of type page as reference position is preserved.Due to board-like 3 pictures of having used as shown in Fig. 4 .7, be finished all pictures, therefore in the time carrying out automatic typesetting, use the preferential typesetting pattern of word.Get all figure as shown in Figure 5, and some words row one page.In process of typeset, calculate word as shown in Figure 6, under type page width, need 24 row, in the time of the lower all texts of row, reserved two caption height again, now, height in type page also remains 83px, but now, if if according to this three pictures under the board-like row shown in 4.7, according to constraint condition: Image Display width and picture block width minimum ratio 0.5, now need the minimum constructive heights that distribute to these 3 figure and for 294.25px, it is greater than real surplus height 83px, thus while using this board-like typesetting without result.
Step 8: all one page row method data that produce in step 6 or step 7 are carried out to comprehensive assessment, optimize optimum one page row method, and record this row's method accordingly not row according to S25, use the relative position between this page of block of random number control and block, translation finishes rear preservation S26, forwards step 4 to.
In the present embodiment, 2 pages of typesetting datas that step 6 is produced carry out comprehensive grading, the row method of the board-like generation design sketch to use as shown in Fig. 4 .2 as shown in 10, comprehensive evaluation indices value: page saturation degree: 0.96535; Picture block is spent it: 1; Word block is spent it: 1; Word uses drift rate: 0.5, and comprehensive grading is 0.96535*0.7+1*0.1+1*0.1+0.5*0.1=0.92214984.The row method of board-like generation design sketch to use as shown in Fig. 4 .5 as shown in 7, comprehensive evaluation indices value: page saturation degree: 0.9788446; Picture block is spent it: 1; Word block is spent it: 1; Word uses drift rate: 0.9741954, and comprehensive grading is 0.9788446*0.7+1*0.1+1*0.1+0.9741954*0.1=0.9826107, it is greater than 0.92214984.Therefore be the row method of the board-like generation design sketch of use as shown in Fig. 4 .5 as shown in 7 through the preferred row's method out of comprehensive evaluation.
In the present embodiment, through block translation module, if random number instruction need to be exchanged the position of picture and word block, translation is exchanged rear generation design sketch as shown in 8.
In the present embodiment, now need first page row method that record optimizes row certificate not accordingly, forward step 4 to, not row is now according to being the 3rd figure as shown in Figure 5, and word as shown in Figure 6 removes the word segment of having drained as shown in Figure 8, so circulation, until all data are all drained, has obtained all typesetting datas of these data.According to similar processing mode, produce altogether 2 pages of typesetting datas, second page typesetting effect is as shown in Figure 9.
Step 9: all page typesetting datas that take out preferably and preserve are processed and played up preview S15, and generate e-book S16.
In the present embodiment, according to the position of verso or recto type page, typesetting data is carried out to translation, and add the data such as front cover, the page number.In the time being left page, need the position (x of each block on the page, y), in left page, be (66 with respect to the reference position of initial point according to type page, 58) carry out translation adjustment, to need according to type page be (66 with respect to the reference position of initial point to right page in left page if, 58), the width 426 of type page, and the width 524 of books, calculate the reference position (32 of type page symmetrical initial point in right page, 58), position (the x of each block on the page, y) need to be worth translation adjustment according to this, unit of account is px.Typesetted data are played up to preview by means of browser kernel.If glue is ordered standard, to the result of playing up, left and right surrounding is outwards drawn 3 millimeters with periphery critical point color value up and down, order standard if rise, to the result of playing up, when left page, upwards three of bottom lefts are outwards drawn 3 millimeters with periphery critical point color value, when right page, upwards three of bottom rights are outwards drawn 3 millimeters with periphery critical point color value, finally generate corresponding pdf document by the ability of virtual printer.
By reference to the accompanying drawings the present invention is carried out to exemplary description above; obvious realization of the present invention is not subject to the restrictions described above; as long as the various improvement that adopted method design of the present invention and technical scheme to carry out; or without improving, design of the present invention and technical scheme are directly applied to other occasion, all in protection scope of the present invention.

Claims (6)

1. the key based on automatic typesetting becomes a book system, it is characterized in that: comprise with lower module:
Board-like matching module, it is all board-like that its books size of selecting for match user is suitable for, and system is by these board-like automatic typesetting of carrying out of use;
Bound control module, it is for the constraint condition that automatic typesetting is followed is set according to user's request, and system will be used these constraint condition control automatic typesetting processes;
Automatic typesetting module, it is all board-like according to board-like matching module output, uses the constraint condition of bound control module output, treats row according to carrying out automatic typesetting;
Comprehensive evaluation module, its multipage typesetting data to the output of automatic typesetting module carries out indices marking, and the weight that user selects is weighted on average, optimize the page data of one page typesetting as chapters and sections, and record the not row certificate of this kind of row's method, as the foundation of the automatic typesetting that circulates next time;
Block translation module, the page data that it is produced comprehensive evaluation module, uses the relative position between this page of block of random number control and block, has reached the object that board-like diversity shows, and after translation finishes, has preserved this page of typesetting data;
Previewing module, it takes out all page datas that block translation module is preserved, and according to the position of verso type page or recto type page, typesetting data is carried out to translation, and adds the data such as front cover, the page number, and the most all data are played up preview;
Printing module, on its basis of playing up in previewing module, use glue is ordered or saddle stitching standard is automatically drawn hemorrhage position and generates pdf document.
2. the key based on automatic typesetting becomes book system according to claim 1, it is characterized in that: described automatic typesetting module, in the time that new data are carried out to typesetting, can be set up another one page.
3. the key based on automatic typesetting becomes book system according to claim 2, it is characterized in that: the position of every one page typesetting data that described automatic typesetting module generates is all taking the upper left corner of type page as reference position is preserved, data are removed while playing up preview can carry out corresponding translation at verso or recto according to data, ensure that user can arbitrarily change any data of typesetting, when system generates again automatically for it, can not have influence on the typesetting data that other generate automatically.
4. the key based on automatic typesetting becomes book system according to claim 1, it is characterized in that: in automatic typesetting module, for comprising the board-like of picture, comprise two kinds of patterns: the preferential typesetting pattern of picture and the preferential typesetting pattern of word; The preferential typesetting pattern of word is by reaching the object of holding more words to the compression of board-like middle picture region, the endpage unsaturated situation of the preferential typesetting pattern of word when solving a data typesetting, the preferential typesetting pattern of word is only used while having used the row of needing of institute picture board-like; Each circulation automatic typesetting module finally may generate multipage data.
5. the key based on automatic typesetting becomes book system according to claim 1, it is characterized in that: described automatic typesetting module is being used a kind of board-like row for the treatment of when carrying out typesetting, in the time being the preferential typesetting pattern of picture, first arrange as far as possible lower picture, in type page, if there is remaining area to put into text, by cutting treat row according in word put into word block; The preferential typesetting pattern of word if, first, after the lower all residue words of row, in type page, picture is farthest put into after remaining area, does not violate constraint condition, uses this board-like automatic row's method to have result; Otherwise, without result, abandon using this board-like automatic typesetting.
6. the key based on automatic typesetting becomes book system according to claim 1, it is characterized in that: the page saturation degree in described comprehensive evaluation module, and it has evaluated the full degree of one page typesetting content of automatic typesetting effect; Picture block is spent it its degree, word block, it has evaluated the alignment situation up and down of the picture block literal field piece of automatic typesetting effect, word uses its equal proportion of having evaluated the picture and letter of automatic typesetting effect of drift rate to be assigned to the situation of each page, if picture and word have been concentrated in a few page, being considered to picture and letter, to be assigned to each page unbalanced.The score value of these indexs is generated automatically by system, but weight in each score value defines in bound control module by user, and typesetting effect depends on the weight preference that user arranges.
CN201410279905.7A 2014-06-23 2014-06-23 One-key book-forming system based on automatic typesetting Active CN104021112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410279905.7A CN104021112B (en) 2014-06-23 2014-06-23 One-key book-forming system based on automatic typesetting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410279905.7A CN104021112B (en) 2014-06-23 2014-06-23 One-key book-forming system based on automatic typesetting

Publications (2)

Publication Number Publication Date
CN104021112A true CN104021112A (en) 2014-09-03
CN104021112B CN104021112B (en) 2017-01-11

Family

ID=51437872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410279905.7A Active CN104021112B (en) 2014-06-23 2014-06-23 One-key book-forming system based on automatic typesetting

Country Status (1)

Country Link
CN (1) CN104021112B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598438A (en) * 2014-12-31 2015-05-06 深圳市英威诺科技有限公司 Typesetting computing method for completely displaying message information
CN104965934A (en) * 2015-08-04 2015-10-07 时代新媒体出版社有限责任公司 Internet content mining based method for forming book through one-click search
CN105260351A (en) * 2015-09-10 2016-01-20 武汉改图网技术有限公司 Online self-service presswork design method based on self-adaptive template
CN105468577A (en) * 2014-09-23 2016-04-06 北大方正集团有限公司 Document splitting method and system
CN108073562A (en) * 2016-11-16 2018-05-25 北大方正集团有限公司 Publication processing method and processing device based on cloud platform
CN108090037A (en) * 2016-11-21 2018-05-29 北大方正集团有限公司 Automatic composing method and device
CN108228552A (en) * 2016-12-14 2018-06-29 北大方正集团有限公司 Box composition method and device
CN114241093A (en) * 2022-02-28 2022-03-25 世纪开元智印互联科技集团股份有限公司 Method and system for automatically typesetting photo book without shielding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558340A (en) * 2004-02-06 2004-12-29 珠海金山软件股份有限公司 Typesetting method
US20060044615A1 (en) * 2004-08-31 2006-03-02 Canon Kabushiki Kaisha Layout adjustment method, apparatus and program for the same
JP2006221569A (en) * 2005-02-14 2006-08-24 Canon Inc Document processing system, document processing method, program, and storage medium
CN101123002A (en) * 2007-09-14 2008-02-13 北大方正集团有限公司 Picture and words typesetting method
CN102103592A (en) * 2009-12-18 2011-06-22 北京大学 Automatic typesetting method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558340A (en) * 2004-02-06 2004-12-29 珠海金山软件股份有限公司 Typesetting method
US20060044615A1 (en) * 2004-08-31 2006-03-02 Canon Kabushiki Kaisha Layout adjustment method, apparatus and program for the same
JP2006221569A (en) * 2005-02-14 2006-08-24 Canon Inc Document processing system, document processing method, program, and storage medium
CN101123002A (en) * 2007-09-14 2008-02-13 北大方正集团有限公司 Picture and words typesetting method
CN102103592A (en) * 2009-12-18 2011-06-22 北京大学 Automatic typesetting method and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468577A (en) * 2014-09-23 2016-04-06 北大方正集团有限公司 Document splitting method and system
CN105468577B (en) * 2014-09-23 2018-11-09 北大方正集团有限公司 A kind of document method for splitting and system
CN104598438A (en) * 2014-12-31 2015-05-06 深圳市英威诺科技有限公司 Typesetting computing method for completely displaying message information
CN104965934A (en) * 2015-08-04 2015-10-07 时代新媒体出版社有限责任公司 Internet content mining based method for forming book through one-click search
CN105260351A (en) * 2015-09-10 2016-01-20 武汉改图网技术有限公司 Online self-service presswork design method based on self-adaptive template
CN105260351B (en) * 2015-09-10 2018-05-01 武汉改图网技术有限公司 A kind of online self-help design method of printed matter based on adaptive masterplate
CN108073562A (en) * 2016-11-16 2018-05-25 北大方正集团有限公司 Publication processing method and processing device based on cloud platform
CN108090037A (en) * 2016-11-21 2018-05-29 北大方正集团有限公司 Automatic composing method and device
CN108228552A (en) * 2016-12-14 2018-06-29 北大方正集团有限公司 Box composition method and device
CN108228552B (en) * 2016-12-14 2020-10-16 北大方正集团有限公司 Box typesetting method and device
CN114241093A (en) * 2022-02-28 2022-03-25 世纪开元智印互联科技集团股份有限公司 Method and system for automatically typesetting photo book without shielding
CN114241093B (en) * 2022-02-28 2022-06-17 世纪开元智印互联科技集团股份有限公司 Method and system for automatically typesetting photo book without shielding

Also Published As

Publication number Publication date
CN104021112B (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN104021112B (en) One-key book-forming system based on automatic typesetting
CN105159877B (en) A kind of across media automatic typesetting systems and its method
CN103914496B (en) Page correction method and device
CN103150302B (en) A kind of composition method and device
CN103186511A (en) Method and equipment for word formation of Chinese characters, and method for constructing font object library
CN105895054A (en) Adjustment method of output brightness, adjustment method of Gamma curve and display device
CN101065723A (en) Method of displaying data in a table
CN101876967A (en) Method for generating PDF text paragraphs
CN101383891B (en) Trapping generating method and device for printed document
CN102779118A (en) Paper typesetting method and system
CN108090037B (en) Automatic typesetting method and device
CN101908218A (en) Editing equipment and method for arranging
CN102789648A (en) Apparatus and method for converting 2d content into 3d content, and computer-readable storage medium thereof
Tabata et al. Automatic layout generation for graphical design magazines
CN107092585A (en) Mongolian display methods and system based on scalable vector graphicses
CN102968407A (en) Construction method and construction device of double-layer portable document format (PDF) file
CN104765721B (en) Layout processing method and processing device
JP2011037097A (en) Printer
CN106844606A (en) The focus processing method and processing device of webpage
CN104021113A (en) Automatic typesetting-based one-key book publishing method
CN101206707B (en) Form editing apparatus, and control method
CN1952923A (en) A typesetting method of character in monotonic range
CN104021113B (en) An a kind of key based on Automatic Typesetting becomes book method
CN105183708A (en) Method and system for making book based on microblog content
CN101436177B (en) Method and apparatus for importing data film to form

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160718

Address after: Shushan district government Shengquan road Hefei city Anhui province 230022 No. 1118 Building 1 floor 4

Applicant after: Anhui Huarui Digital Technology Co., Ltd.

Address before: Hefei City, Anhui province 236000 Shengquan road Chief Cultural District No. 1118 media Plaza 19 floor

Applicant before: Epoch Ltd of new media publishing house

CB02 Change of applicant information

Address after: 230088, Hefei 18, Mount Huangshan Road, 599 hi tech Zone, Anhui, China

Applicant after: Time flow shadow Polytron Technologies Inc

Address before: Shushan district government Shengquan road Hefei city Anhui province 230022 No. 1118 Building 1 floor 4

Applicant before: Anhui Huarui Digital Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 230088 the 18 layer of times Cyberport, 599 Mount Huangshan Road, Hefei high tech Zone, Anhui.

Patentee after: Times media Polytron Technologies Inc

Address before: 230088 the 18 layer of times Cyberport, 599 Mount Huangshan Road, Hefei high tech Zone, Anhui.

Patentee before: Time flow shadow Polytron Technologies Inc

CP01 Change in the name or title of a patent holder