CN102147791A - Automatic book typesetting method and system - Google Patents

Automatic book typesetting method and system Download PDF

Info

Publication number
CN102147791A
CN102147791A CN2011100845292A CN201110084529A CN102147791A CN 102147791 A CN102147791 A CN 102147791A CN 2011100845292 A CN2011100845292 A CN 2011100845292A CN 201110084529 A CN201110084529 A CN 201110084529A CN 102147791 A CN102147791 A CN 102147791A
Authority
CN
China
Prior art keywords
title
document
composing
page
word
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
CN2011100845292A
Other languages
Chinese (zh)
Other versions
CN102147791B (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.)
DIGITAL TIMES PRINT DESIGN Co Ltd
Original Assignee
DIGITAL TIMES PRINT DESIGN 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 DIGITAL TIMES PRINT DESIGN Co Ltd filed Critical DIGITAL TIMES PRINT DESIGN Co Ltd
Priority to CN2011100845292A priority Critical patent/CN102147791B/en
Publication of CN102147791A publication Critical patent/CN102147791A/en
Application granted granted Critical
Publication of CN102147791B publication Critical patent/CN102147791B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an automatic book typesetting method. The method comprises the following steps of: opening a Word document as a typesetting template in advance; defining a style in the template and a book content style mapping table; opening a blank Word document, opening the typesetting template, and duplicating all styles in the typesetting template into the blank Word document; duplicating the text of the book to the text of the blank Word document according to a sequence by using a paragraph as a unit until the document contents of the text are completely duplicated to the text of the blank Word document; searching content control components on a cover, a head page and a copyright page, and setting true information of the current book to the content control components at the cover, the head page and the copyright page to obtain a typesetting result document; and storing the typesetting result into a Word or PDF (Portable Document Format) document to complete automatic typesetting. The invention provides the automatic book typesetting method and an automatic book typesetting system which are used for realizing typesetting automation, so that the problem of complicated typesetting rule processing is solved.

Description

A kind of books automatic composing method and system
Technical field
The present invention relates to the books type-setting domain, particularly a kind of books automatic composing method and system.
Background technology
Be used at present write and the method commonly used of setting type is mainly divided two classes: a class is the general words disposal route, and a class is professional composition method.
Word processing method can be realized input function (as literal, numeral, symbol, formula, figure, image, form etc.), editting function (select, delete, duplicate, move, search, replace, insert, rewriting etc.) and the composing function (character, paragraph, the page, subfield, image mixed character typeset etc.) of document, and word processing method mainly contains the Word of Microsoft, Kingsoft WPS and the Office of Yongzhong three software is realized at present.Three software function, interface, operation are similar, and right Word is the most universal.Along with popularizing and development of computing machine, the author generally can both carry out content writing and manuscript arrangement with Word now, submits to the draft that publishing house edits and is generally electronic document.
The specialty composition method also provides a lot of utility function and LnkTools of setting type at books specially except the function that can realize word processing.The specialty composition method mainly contains: upright soar, the book version, these several softwares such as the PageMaker of Adobe, InDesign are realized.These professional softwares for composing after author's manuscript is received by publishing house now, hand over professional composing personnel to set type generally by specialty composing personnel operation earlier.
The specialty software for composing is all expensive, and a cover is wanted 5,000 to 10,000 yuan, and using also must be through professional training, and non-common people can grasp.It is also more time-consuming to set type, and the professional composing personnel books of setting type generally took about two days.The Word of Microsoft is a most universal a office software, use the almost plenary session Word operation of people of computer, Word also can be used for the books composing theoretically, but because this product mainly is positioned word processing, its composing function ratio a little less than, use difficultlyer, and a lot of specialty requires directly to be difficult to realize with word, need carry out secondary development and just can finish, so few people directly carry out the books composing with Word.
Based on above situation, the writing and the composing flow process of present books: the manuscript that the author submits to publishing house generally is the Word form, publishing house hands over professional composing personnel to set type with the professional software for composing of Founder or Adobe earlier after receiving author's manuscript, is printed as the papery manuscript after the composing and goes over a manuscript or draft for editor or author.Any modification of editor or author all must be annotated and commented on the papery manuscript, and personnel revise by the specialty composing.So repeatedly, both delayed, the waste paper also causes human error easily.And this mode more can not adapt to the trend of publishing the growing digitizing of industry, networking.
Therefore, how providing a kind of books automatic composing method and system, can overcome above-mentioned the deficiencies in the prior art, is those skilled in the art's technical issues that need to address.
Summary of the invention
The purpose of this invention is to provide a kind of books automatic composing method and system, be used to realize the robotization of setting type solved complicated composing rule treatments problem.
For addressing the above problem, the invention provides a kind of books automatic composing method, said method comprising the steps of:
Step 1) is pre-created a Word document as the composing masterplate;
Step 2) pattern and the manuscript content pattern mapping table in the described masterplate of definition;
Step 3) is created a blank Word document, opens described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document;
Step 4) is unit with the paragraph, in order the manuscript text is copied in the text of described blank Word document, is copied in the text of described blank Word document until all text document contents;
Step 5) is searched the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtains the result document of setting type;
Step 6) is saved to the composing result in Word or the PDF document, and automatic typesetting finishes.
Preferably, also comprise step after the described step 5):
The composing result document is carried out rule scanning, and revise undesirable format automatically.
Preferably, described rule scanning comprises: solely word embark on journey processing rule, walking alone accounts for face processing rule and title bottom line title processing rule.
Preferably, described only word processing rule of embarking on journey is specially when 6 and accounts for delegation with interior character, and during a no more than Chinese character, is judged as only word and embarks on journey; When embarking on journey,,, this row content is contracted to lastrow by reducing up character-spacing if this line character number is in 4 for only word; If this line character number greater than 4, by strengthening up character-spacing, moves on to this row with a up separable character.
Preferably, described walking alone accounts for the initial text paragraph that the face processing rule is specially when one side/page or leaf and has only delegation's content, and being called walks alone accounts for face; When accounting for face for walking alone, the paragraph line-spacing of one side in the adjustment makes this row supreme one side that contracts.
Preferably, the paragraph line-spacing of one side in the adjustment specifically begins to adjust from the most approaching paragraph of walking alone, and line-spacing reduces 1 pound at most, has transferred a paragraph not enough, transfers the preceding paragraph to fall again, be reduced to one side/page or leaf until this is walked alone till.
Preferably, described title bottom line title processing rule is specially when the successive content of title specified and title and be not judged as bottom line title with one side, if the title of bottom line title at the page or leaf end, is forced to add page break before title, makes it down one page; If the title of bottom line title is in the beginning of the page, the line-spacing of one side contracts to page up this title in the adjustment.
Preferably, described step 6) specifically by calling the SaveAs interface function, is saved to the composing result in Word or the PDF document, and automatic typesetting finishes.
Preferably, described step 1) is specially:
Create a WORD document as the composing masterplate, specifically document is divided into 11 joints, comprises front cover, inside front cover, title page, colophon, catalogue, preface, text, appendix, postscript, inside back cover, back cover, in each joint, according to different content-defined patterns, and be each pattern name.
The invention provides a kind of books automatic typesetting system, described system comprises:
Composing masterplate creating unit is pre-created a Word document as the composing masterplate;
Mapping table is set up the unit, defines pattern and manuscript content pattern mapping table in the described masterplate;
Blank Word document creating unit is created a blank Word document, opens described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document;
Copied cells is a unit with the paragraph, in order the manuscript text is copied in the text of described blank Word document, is copied in the text of described blank Word document until all text document contents;
The content control assembly is filled in the unit, searches the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtains the result document of setting type;
Preserve the unit, the composing result is saved in Word or the PDF document, automatic typesetting finishes.
Compare with above-mentioned prior art, the described books automatic composing method of the embodiment of the invention is by being pre-created a Word document as the composing masterplate; And pattern and manuscript content pattern mapping table in the described masterplate have been defined; When needs automatic typesetting books, can open above-mentioned composing masterplate simultaneously by creating a blank Word document, all patterns in the above-mentioned composing masterplate are copied in the described blank Word document; Be unit then with the paragraph, in order the manuscript text be copied in the text of described blank Word document, be copied in the text of described blank Word document until all text document contents; Because books are regular publication, format for books has certain rule request, so, after finishing, composing (promptly duplicated text), search the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtain the result document of setting type; The composing result is saved in Word or the PDF document, and final automatic typesetting finishes.
The relative prior art of the described books automatic composing method of the embodiment of the invention has following technique effect:
1, solved the pervasive application problem of professional technique: need not understand the operating platoon platemaking technology, need not understand senior word skill, only need common software environment (more than the Word97), only need simply be provided with and operate, ordinary populace just can be used the automatic typesetting that the present invention realizes books.
2, solved complicated composing rule treatments problem: books are set type a lot of complex rules are arranged, and are not only loaded down with trivial details but also easily make mistakes as by manually-operated, and computing machine is judged automatically and handled then not only soon but also accurate.
3, realized separating of content and format: utilize the masterplate technology to realize separating of book content and format, the author only need be concerned about content creation, need not to be concerned about the format problem, and the different formats of same content selectable.
4, realize writing with set type integrated: writing with set type all based on widely used word, writing is set type and is accomplished without any letup, the author can oneself carry out the modification and the adjustment of book content and books format at any time.
Description of drawings
Fig. 1 is the books automatic composing method first embodiment process flow diagram of the present invention;
Fig. 2 is the books automatic composing method second embodiment process flow diagram of the present invention;
Fig. 3 is a books automatic typesetting system structural drawing of the present invention.
Embodiment
The invention provides a kind of books automatic composing method and system, be used to realize the robotization of setting type solved complicated composing rule treatments problem.
In order to make those skilled in the art understand the present invention program better, the present invention is described in further detail below in conjunction with the drawings and specific embodiments.
Referring to Fig. 1, this figure is the books automatic composing method first embodiment process flow diagram of the present invention.
The described books automatic composing method of first embodiment of the invention said method comprising the steps of:
S100, be pre-created a Word document as the composing masterplate.
Create a WORD document as the composing masterplate, specifically document is divided into 11 Section (joint), comprise: front cover, inside front cover, title page, colophon, catalogue, preface, text, appendix, postscript, inside back cover, back cover, in each joint, according to different content-defined CSS (pattern), and be each CSS name.
In the automatic typesetting process, defined CS S is provided with the composing result document according to masterplate.In front cover, title page and colophon, by utilizing the ContentControl assembly of Office2007, realize the position and the pattern definition of all kinds of essential informations, as: the ContentControl that in front cover, adds a BookName by name, be used to show title, the content among the ContentControl will replace to actual value in process of typeset.
Pattern and manuscript content pattern mapping table in S200, the described masterplate of definition.
Because the manuscript document has generally used the default style of Word,, need pattern mapping table of definition for the pattern that will define in the composing masterplate carries out correspondingly with the manuscript content exactly.
Described mapping table is as follows:
Figure BDA0000053795410000061
Style sheet is stored in the XML mode, and deposits under the same catalogue with the masterplate document, in process of typeset, loads mapping table automatically, to carry out the pattern setting.
S300, blank Word document of establishment are opened described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document.
Step S300 specifically can create a blank Word document by the Microsoft.Office.Interop.Word interface in internal memory, simultaneously, open described composing masterplate document, the CopyStylesFromTemplate interface function that provides by Microsoft copies to all patterns in the masterplate document in the new document, so that use these patterns in process of typeset.
Then, for the new blank Word document of creating is created 11 Section, and according to the page setup of each Section in the masterplate, each Section that headerfooter setting is provided with new document, the consistance that keeps the page size, headerfooter height etc. of new document and masterplate to be provided with.
S400, be unit, in order the manuscript text be copied in the text of described blank Word document, be copied in the text of described blank Word document until all text document contents with the paragraph.
After initial work is finished, open manuscript text document, with Paragraph (paragraph) is unit, in order from manuscript reproducting content to the text Section of new document, whenever duplicate a paragraph, will obtain the original pattern name of this section by interface, and by mating with the pattern mapping table, finding corresponding style name, and be provided with.In this process, judge whether comprise special contents such as footnote, form, picture, formula in the paragraph, these contents can use the pattern that defines in the masterplate to be provided with equally.The above operation of circulation is copied in the new document until all body matters, and text is set type and finished.
Then, judge in the source manuscript provide whether comprise preface, appendix and postscript document, and if existed would use the mode identical with text with these content typesettings to the Section of new document correspondence.
S500, search the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtain the result document of setting type.
Content typesetting begins to search the ContentControl assembly that front cover, title page and colophon etc. are located, and the real information of current books is provided with to each ContentControl after finishing.Because when carrying out the masterplate definition, for each ContentControl has defined a unique title, so can find the pairing ContentControl of various information easily.Such as: the name of title ContentControl is called BookName, and the name of author ContentControl is called Author etc.
S600, the composing result is saved in Word or the PDF document, automatic typesetting finishes.
Step S600 specifically can be saved to the composing result in Word or the PDF document by calling the SaveAs interface function, realizes all processes of automatic typesetting.
The described books automatic composing method of first embodiment of the invention is by being pre-created a Word document as the composing masterplate; And pattern and manuscript content pattern mapping table in the described masterplate have been defined; When needs automatic typesetting books, can open above-mentioned composing masterplate simultaneously by creating a blank Word document, all patterns in the above-mentioned composing masterplate are copied in the described blank Word document; Be unit then with the paragraph, in order the manuscript text be copied in the text of described blank Word document, be copied in the text of described blank Word document until all text document contents; Because books are regular publication, format for books has certain rule request, so, after finishing, composing (promptly duplicated text), search the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtain the result document of setting type; The composing result is saved in Word or the PDF document, finally realizes the overall process of automatic typesetting.
Referring to Fig. 2, this figure is the books automatic composing method second embodiment process flow diagram of the present invention.
The difference of relative first embodiment of books automatic composing method second embodiment of the present invention is, also comprises step behind the described step S500:
S510, the composing result document is carried out rule scanning, and revise undesirable format automatically.
Because books are regular publication, for the format of books certain rule request is arranged, so after composing was finished, system needed that also the composing result document is carried out rule and scans, and revises undesirable format automatically.
Described rule scanning specifically can comprise: solely word embark on journey processing rule, walking alone accounts for face processing rule and title bottom line title processing rule.
Described only word processing rule of embarking on journey is specially when 6 and accounts for delegation with interior character, and during a no more than Chinese character, is judged as only word and embarks on journey; When embarking on journey,,, this row content is contracted to lastrow by reducing up character-spacing if this line character number is in 4 for only word; If this line character number greater than 4, by strengthening up character-spacing, moves on to this row with a up separable character.
Described walking alone accounts for the initial text paragraph that the face processing rule is specially when one side/page or leaf and has only delegation's content, and being called walks alone accounts for face; When accounting for face for walking alone, the paragraph line-spacing of one side in the adjustment makes this row supreme one side that contracts.
The paragraph line-spacing of one side in the adjustment specifically begins to adjust from the most approaching paragraph of walking alone, and line-spacing reduces 1 pound at most, has transferred a paragraph not enough, transfers the preceding paragraph to fall again, be reduced to one side/page or leaf until this is walked alone till.
Described title bottom line title processing rule is specially when the successive content of title specified and title and be not judged as bottom line title with one side, if the title of bottom line title at the page or leaf end, is forced to add page break before title, makes it down one page; If the title of bottom line title is in the beginning of the page, the line-spacing of one side contracts to page up this title in the adjustment.
The principle of work of the described books automatic composing method of the embodiment of the invention is that the composing key element is divided into content, rule, masterplate three parts.
Content: content is made of literal, formula, chart etc., is a decision book content, with the irrelevant composing key element of format.Content divides preface, text, appendix, postscript four parts to provide, each several part is a Word document, content file need not be paid close attention to forms such as font, font size, color, alignment, line-spacing, indentation, unique what will do is the title pattern (as title 1, title 2, title 3, graph title, table title etc.) of title (chapter titles at different levels, graph title, table title) by word will be marked, and marks that title is used for composing system automatic distinguishing structure, applies mechanically pattern, control paging, the establishment page number etc.
Template: masterplate is a word file that comprises a series of patterns, is a decision books format, with the irrelevant composing key element of content.Masterplate is divided into 11 joints, is front cover, inside front cover, title page, colophon, catalogue, preface, text, appendix, postscript, inside back cover, back cover successively.Template file comprises the pattern of all texts that this template uses, title, form, footnote, catalogue etc., and the setting of page size, margin, header, footer, the page number.
Rule: rule is the set that series of rules agreement and preference are selected, and rule is some the special processing agreements in content and template cohesive process.Make content combine better like this, make the composing result more satisfy the needs of figure book format, can make same template form more format by regulation rule in addition, to satisfy the personalized needs of setting type of books with template.
The described books automatic composing method of the embodiment of the invention reads style information from the template file of selecting earlier, form the pattern of file destination, the content of reading of content file again, according to the original chapters and sections setting of content file, in conjunction with the rule setting of setting type and handling, form the chapters and sections and the paging of file destination, and the source file content is added that the pattern of template file correspondence writes file destination, final formation content is the source file content, and format is the books type-setting document that template and rule are specified format.
The flow process of the concrete application/use of the described books automatic composing method of the embodiment of the invention is as follows:
1, input copyright information
Copyright information comprises: the books title, write/translator, publishing house, book number, books key word, book classification number, CIP nuclear font size, responsible editor, responsibility check and correction, responsibility printing, responsibility design, publication and distribution, price, network address.Title and author may be quoted by header, belong to required information, and other fill out information for choosing.Above information is used for generating automatically colophon, please fills in complete as far as possible.
2, input books brief introduction
Book content or author are done simple introduction, and the books brief introduction will be presented at the books inside front cover page.The brief introduction number of words is limited in 300 words.
3, upload content file
Content file divides preamble, text, appendix, postscript four parts.The user needs the manuscript content is provided by this four parts arrangement and with the word file layout.
Preamble: introduce the literal of commenting a works.Have another name called " preamble " " preface " " foreword ".
Text: the main body of books, generally form by a plurality of chapters and sections.
Appendix: the additional part of text comprises index.
Postscript: in order to explanation writing process, or evaluation content etc., claim again to cross mountains or postscript.
Wherein text is essential, and preamble, appendix, postscript are selected according to actual needs.
4, the front cover back cover is set
The user can select picture as front cover, back cover from picture library, also can be from front cover, the back cover of local uploading pictures as books.
5, select the books template
Subject feature, reader's feature, format feature according to books are divided into several big classes with template, and the masterplate of a plurality of different formats, different-style can be provided under each big class, and the user can select according to books classification and the personal like of oneself.
6, the rule of setting type is set
The rule setting of setting type mainly contains:
6.1 size and position are provided with
Book size: as 16 opening, 32 opening etc.
The picture position: book content is general only sets type in the type page zone, and front cover back cover picture need be filled the whole space of a whole page.Need to adjust top margin distance, base distance, left side distance, the rightmargin of front cover back cover, make the front cover back cover be full of full page.The unit of noting back gauge is a pixel, and computing method are: 1 inch=72 pixels, 1 centimetre=1/2.54*72 pixel.
6.2 pattern setting
The main title pattern: be used to be provided with the style name of source file main title, be defaulted as " title 1 ", main title generally needs other to rise by page or leaf, and as using the main title rule, the main title pattern must define earlier.
Do not allow the pattern of bottom line title:, will not allow the pattern title of title in template of bottom line title to add tabulation at this if title be not referred to as bottom line title with one page with the text or the chart that continue.
The basis pattern: the pattern that directly uses when basic pattern is automatic typesetting, as footnote, endnote, form, Catalog Header etc., basic pattern user does not generally need to revise.
Pattern mapping: according to the pattern mapping table,, change the target pattern in the mapping table automatically into during automatic typesetting with the source pattern of content.As text, title etc., pattern mapping table user does not generally need to revise, unless there is new pattern corresponding relation to need to specify.
6.3 the chapter page or leaf is provided with
As doing independent title page with picture or title, place catalogue or chapter before, in order to separate each chapter, be referred to as to use the chapter page or leaf.Whether preface, catalogue, text, appendix, postscript all can use the setting of chapter page or leaf.Clicking " opening chapter page or leaf document " gets final product preview and revises chapter page or leaf pattern.
6.4 simplified and traditional conversion setting
Be used for that simplified and traditional conversion is provided with to the composing literal, comprise that nothing, simplified commentaries on classics traditional font, traditional font change simplified, be defaulted as " nothing ".
6.5 half-angle/full-shape conversion is provided with
Be used for literal half-angle/full-shape conversion is provided with, comprise that nothing, half-angle change full-shape, full-shape changes half-angle, be defaulted as " nothing ".
6.6 solely word does not become line discipline
As choose this, then in process of typeset, can scan out embark on journey " solely word " automatically, and this word is contracted to lastrow, or the up word that moves is arrived one's own profession.
6.7 single file does not account for the face rule
As choose this, then in process of typeset, can find out the face of accounting for " single file " automatically, and this row is contracted to page up.
6.8 title is the bottom line title rule not
As choose this, then in process of typeset, can check, and make respective handling automatically " title bottom line title ".Come page or leaf end and supporting content at nextpage as title, disposal route is that this title is forced to assign to down one page.Come the beginning of the page as title, and supporting content is at last page or leaf, disposal route is that this title is moved on to page up.
6.9 the colophon position is provided with
Be divided into book beginning and book end.Be placed on the book beginning as selecting, then be after the books title page; Be placed on the book end as selecting, then be before the inside back cover.
6.10 the preface position is provided with
Be divided into before the catalogue and catalogue after.As selecting to be placed on before the catalogue pagination separately of preface part; As be placed on after the catalogue then preface part and body part pagination together.
6.11 main title is set up another rule
Main title is the title of books chapter just.Set type as main title, all page or leaf plays row in addition, and the main title rule is the start page setting of the row of rising mainly.Start page is provided with automatically, recto, three kinds of selections of verso.As select automatically, then no matter current be recto or verso, main title is set up another automatically and is run in.As select recto, then no matter current be recto or verso, the main title recto is set up another and is run in.As select verso, then no matter current be recto or verso, the main title verso is set up another and is run in.Preface, catalogue, text, appendix, postscript all can carry out the setting that main title is set up another respectively.
Begin to set type
Finish above work, just can use the described method of the embodiment of the invention and begin automatic typesetting, setting type finishes generates the type-setting document of word or PDF.Also can preserve project earlier, set type once more after revising next time.
The described method of the embodiment of the invention realizes automatic typesetting by the coordination mechanism of content, template, rule; Utilize general Word technology platform to realize the method for specialty, automatic typesetting; In the automatic typesetting process for the inventive process method of the rule of setting type; Utilize the present invention except that can also carrying out automatic typesetting, also within protection domain to the books to other format files such as paper, report, handbooks.
The described method of the embodiment of the invention adopts carries out application and development on general words process software Word, realize the composing function of professional software for composing, ordinary populace oneself is set type to become a reality, writing and composing are become one, make content and format realize separating, self-service for the height that self-service publication is pursued, efficiently cleared away technology barrier for what digital publishing was pursued.
The present invention also provides a kind of books automatic typesetting system, and referring to Fig. 3, this figure is the described books automatic typesetting system of an embodiment of the invention structural drawing.
The described books automatic typesetting system of the embodiment of the invention specifically can comprise: composing masterplate creating unit 11, mapping table are set up unit 12, blank Word document creating unit 13, copied cells 14, content control assembly and are filled in unit 15 and preserve unit 16.
Composing masterplate creating unit 11 is pre-created a Word document as the composing masterplate;
Mapping table is set up unit 12, defines pattern and manuscript content pattern mapping table in the described masterplate;
Blank Word document creating unit 13 is created a blank Word document, opens described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document;
Copied cells 14 is a unit with the paragraph, in order the manuscript text is copied in the text of described blank Word document, is copied in the text of described blank Word document until all text document contents;
The content control assembly is filled in unit 15, searches the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtains the result document of setting type;
Preserve unit 16, the composing result is saved in Word or the PDF document, automatic typesetting finishes.
The described books automatic typesetting system of the embodiment of the invention can also comprise amending unit, is used for the composing result document that the content Control Component is filled in unit 15 is carried out rule scanning, and revises undesirable format automatically.
The specific implementation process of the described books automatic typesetting system of the embodiment of the invention can specifically no longer describe in detail referring to previously described method part.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a books automatic composing method is characterized in that, said method comprising the steps of:
Step 1) is pre-created a Word document as the composing masterplate;
Step 2) pattern and the manuscript content pattern mapping table in the described masterplate of definition;
Step 3) is created a blank Word document, opens described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document;
Step 4) is unit with the paragraph, in order the manuscript text is copied in the text of described blank Word document, is copied in the text of described blank Word document until all text document contents;
Step 5) is searched the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtains the result document of setting type;
Step 6) is saved to the composing result in Word or the PDF document, and automatic typesetting finishes.
2. books automatic composing method according to claim 1 is characterized in that, also comprises step after the described step 5):
The composing result document is carried out rule scanning, and revise undesirable format automatically.
3. books automatic composing method according to claim 2 is characterized in that, described rule scanning comprises: solely word embark on journey processing rule, walking alone accounts for face processing rule and title bottom line title processing rule.
4. books automatic composing method according to claim 3 is characterized in that, described only word processing rule of embarking on journey is specially when 6 and accounts for delegation with interior character, and during a no more than Chinese character, is judged as only word and embarks on journey; When embarking on journey,,, this row content is contracted to lastrow by reducing up character-spacing if this line character number is in 4 for only word; If this line character number greater than 4, by strengthening up character-spacing, moves on to this row with a up separable character.
5. books automatic composing method according to claim 3 is characterized in that, described walking alone accounts for the initial text paragraph that the face processing rule is specially when one side/page or leaf and have only delegation's content, and being called walks alone accounts for face; When accounting for face for walking alone, the paragraph line-spacing of one side in the adjustment makes this row supreme one side that contracts.
6. books automatic composing method according to claim 5, it is characterized in that, the paragraph line-spacing of one side in the adjustment, specifically begin to adjust from the most approaching paragraph of walking alone, line-spacing reduces 1 pound at most, transferred a paragraph not enough, transferred the preceding paragraph to fall again, be reduced to one side/page or leaf until this is walked alone till.
7. books automatic composing method according to claim 3, it is characterized in that, described title bottom line title processing rule is specially when the successive content of title specified and title and be not judged as bottom line title with one side, if the title of bottom line title is at the page or leaf end, before title, force to add page break, make it down one page; If the title of bottom line title is in the beginning of the page, the line-spacing of one side contracts to page up this title in the adjustment.
8. books automatic composing method according to claim 1 is characterized in that, described step 6) specifically by calling the SaveAs interface function, is saved to the composing result in Word or the PDF document, and automatic typesetting finishes.
9. books automatic composing method according to claim 1 is characterized in that, described step 1) is specially:
Create a WORD document as the composing masterplate, specifically document is divided into 11 joints, comprises front cover, inside front cover, title page, colophon, catalogue, preface, text, appendix, postscript, inside back cover, back cover, in each joint, according to different content-defined patterns, and be each pattern name.
10. a books automatic typesetting system is characterized in that, described system comprises:
Composing masterplate creating unit is pre-created a Word document as the composing masterplate;
Mapping table is set up the unit, defines pattern and manuscript content pattern mapping table in the described masterplate;
Blank Word document creating unit is created a blank Word document, opens described composing masterplate simultaneously, and all patterns in the described composing masterplate are copied in the described blank Word document;
Copied cells is a unit with the paragraph, in order the manuscript text is copied in the text of described blank Word document, is copied in the text of described blank Word document until all text document contents;
The content control assembly is filled in the unit, searches the content control assembly at front cover, title page and colophon place, and the real information of current manuscript is provided with content control assembly to front cover, title page and colophon place, obtains the result document of setting type;
Preserve the unit, the composing result is saved in Word or the PDF document, automatic typesetting finishes.
CN2011100845292A 2011-04-02 2011-04-02 Automatic book typesetting method and system Expired - Fee Related CN102147791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100845292A CN102147791B (en) 2011-04-02 2011-04-02 Automatic book typesetting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100845292A CN102147791B (en) 2011-04-02 2011-04-02 Automatic book typesetting method and system

Publications (2)

Publication Number Publication Date
CN102147791A true CN102147791A (en) 2011-08-10
CN102147791B CN102147791B (en) 2013-01-09

Family

ID=44422057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100845292A Expired - Fee Related CN102147791B (en) 2011-04-02 2011-04-02 Automatic book typesetting method and system

Country Status (1)

Country Link
CN (1) CN102147791B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034624A (en) * 2011-09-29 2013-04-10 北京大学 Method and system for accurately positioning page object
CN103136184A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Automatic typesetting method and automatic typesetting device
CN103186518A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system for typesetting of footmark contained documents
CN103488484A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Software implementation method and system for online editor
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN104239284A (en) * 2014-09-15 2014-12-24 广州市西美信息科技有限公司 Method and device for automatic image-text composition
CN104572607A (en) * 2013-10-18 2015-04-29 北京大学 Imposed page generation method and device
CN105159877A (en) * 2015-06-18 2015-12-16 杭州电子科技大学 Cross-media automatic typesetting system and method thereof
CN105335346A (en) * 2015-11-09 2016-02-17 汉王科技股份有限公司 PDF (Portable Document Format) document text extracting method and device
CN105468577A (en) * 2014-09-23 2016-04-06 北大方正集团有限公司 Document splitting method and system
CN105549922A (en) * 2015-12-10 2016-05-04 武汉改图网技术有限公司 Intelligent identification system for comparing whether printing document conforms to printing standard based on cloud data
CN106815181A (en) * 2016-12-19 2017-06-09 广东小天才科技有限公司 Method and device for converting Indesign typesetted ind files into Office files
CN106997279A (en) * 2016-01-25 2017-08-01 汪江池 A kind of Method of printing for preventing secondary printing
CN106994845A (en) * 2016-01-25 2017-08-01 汪江池 The Method of printing that a kind of anti-set is beaten
CN107656915A (en) * 2017-10-25 2018-02-02 宋彦震 According to margin on the inside of books number of pages adjust automatically away from composition method
CN109033062A (en) * 2018-06-27 2018-12-18 马赫 A method of realizing problems of test paper Automatic Typesetting
CN109829148A (en) * 2017-11-23 2019-05-31 北大方正集团有限公司 Composition method and device
CN110390079A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of processing document method
CN110390080A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of progressive report method for sorting
CN112232032A (en) * 2020-09-04 2021-01-15 科航(苏州)信息科技有限公司 Method for automatically converting content style of docx document
CN112380814A (en) * 2020-11-04 2021-02-19 福建亿榕信息技术有限公司 Domestic operating system-based automatic information manuscript combination and edition method
CN112784562A (en) * 2020-01-03 2021-05-11 珠海金山办公软件有限公司 Typesetting method and device for text content in document
CN112799615A (en) * 2021-01-25 2021-05-14 武汉先同科技有限公司 Personalized printing control method and system
CN112966485A (en) * 2021-03-09 2021-06-15 中建八局轨道交通建设有限公司 Text and pattern typesetting method and system based on word processing program
CN116384363A (en) * 2023-03-31 2023-07-04 银杏树下(北京)图书有限责任公司 Automatic book typesetting method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949209A (en) * 2006-09-22 2007-04-18 北京北大方正电子有限公司 Method of mfg. to book by network collected works
US20080154943A1 (en) * 1999-09-01 2008-06-26 Dreyer Mark G System and method for automated closed-loop production of customized books
CN101286146A (en) * 2007-04-12 2008-10-15 北京北大方正电子有限公司 Typesetting method and system
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document
CN101989256A (en) * 2009-07-31 2011-03-23 北京大学 Typesetting method of document file and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080154943A1 (en) * 1999-09-01 2008-06-26 Dreyer Mark G System and method for automated closed-loop production of customized books
CN1949209A (en) * 2006-09-22 2007-04-18 北京北大方正电子有限公司 Method of mfg. to book by network collected works
CN101286146A (en) * 2007-04-12 2008-10-15 北京北大方正电子有限公司 Typesetting method and system
CN101989256A (en) * 2009-07-31 2011-03-23 北京大学 Typesetting method of document file and device
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《汉牛数字排版自动排版系统使用说明》 20101231 数字时代出版设计有限公司 操作步骤 1-10 1-10 , *

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034624A (en) * 2011-09-29 2013-04-10 北京大学 Method and system for accurately positioning page object
CN103034624B (en) * 2011-09-29 2015-12-16 北京大学 A kind of accurate positioning method of page object and system
CN103136184A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Automatic typesetting method and automatic typesetting device
CN103136184B (en) * 2011-12-05 2016-01-13 北大方正集团有限公司 A kind of method of automatic typesetting and device thereof
CN103186518A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system for typesetting of footmark contained documents
CN103186518B (en) * 2011-12-31 2015-12-02 北大方正集团有限公司 Containing composition method and the system of footnote document
CN103678268B (en) * 2012-09-19 2016-08-31 北京大学 Official document automatic composing method and device
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN103488484A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Software implementation method and system for online editor
CN104572607A (en) * 2013-10-18 2015-04-29 北京大学 Imposed page generation method and device
CN104572607B (en) * 2013-10-18 2017-07-07 北京大学 Folding tablet held before the breast by officials face generation method and apparatus
CN104239284A (en) * 2014-09-15 2014-12-24 广州市西美信息科技有限公司 Method and device for automatic image-text composition
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
CN105159877A (en) * 2015-06-18 2015-12-16 杭州电子科技大学 Cross-media automatic typesetting system and method thereof
CN105159877B (en) * 2015-06-18 2018-02-23 杭州电子科技大学 A kind of across media automatic typesetting systems and its method
CN105335346A (en) * 2015-11-09 2016-02-17 汉王科技股份有限公司 PDF (Portable Document Format) document text extracting method and device
CN105335346B (en) * 2015-11-09 2018-12-04 汉王科技股份有限公司 A kind of Text Extraction and device of PDF document
CN105549922A (en) * 2015-12-10 2016-05-04 武汉改图网技术有限公司 Intelligent identification system for comparing whether printing document conforms to printing standard based on cloud data
CN105549922B (en) * 2015-12-10 2019-01-01 武汉改图网技术有限公司 A kind of intelligent identifying system meeting printing standard based on cloud data comparison printed text
CN106994845A (en) * 2016-01-25 2017-08-01 汪江池 The Method of printing that a kind of anti-set is beaten
CN106997279A (en) * 2016-01-25 2017-08-01 汪江池 A kind of Method of printing for preventing secondary printing
CN106815181A (en) * 2016-12-19 2017-06-09 广东小天才科技有限公司 Method and device for converting Indesign typesetted ind files into Office files
CN106815181B (en) * 2016-12-19 2020-07-28 广东小天才科技有限公司 Method and device for converting Indesign typesetted ind files into Office files
CN107656915A (en) * 2017-10-25 2018-02-02 宋彦震 According to margin on the inside of books number of pages adjust automatically away from composition method
CN107656915B (en) * 2017-10-25 2021-08-31 宋彦震 Typesetting method for automatically adjusting inside margin according to book page number
CN109829148A (en) * 2017-11-23 2019-05-31 北大方正集团有限公司 Composition method and device
CN110390079A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of processing document method
CN110390080A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of progressive report method for sorting
CN109033062A (en) * 2018-06-27 2018-12-18 马赫 A method of realizing problems of test paper Automatic Typesetting
CN112784562A (en) * 2020-01-03 2021-05-11 珠海金山办公软件有限公司 Typesetting method and device for text content in document
CN112232032A (en) * 2020-09-04 2021-01-15 科航(苏州)信息科技有限公司 Method for automatically converting content style of docx document
CN112232032B (en) * 2020-09-04 2023-08-18 科航(苏州)信息科技有限公司 Automatic conversion method for content style of docx document
CN112380814A (en) * 2020-11-04 2021-02-19 福建亿榕信息技术有限公司 Domestic operating system-based automatic information manuscript combination and edition method
CN112380814B (en) * 2020-11-04 2022-08-19 福建亿榕信息技术有限公司 Domestic operating system-based automatic information manuscript combination and edition method
CN112799615A (en) * 2021-01-25 2021-05-14 武汉先同科技有限公司 Personalized printing control method and system
CN112966485A (en) * 2021-03-09 2021-06-15 中建八局轨道交通建设有限公司 Text and pattern typesetting method and system based on word processing program
CN112966485B (en) * 2021-03-09 2024-04-12 中建八局轨道交通建设有限公司 Text typesetting method and system based on word processing program
CN116384363A (en) * 2023-03-31 2023-07-04 银杏树下(北京)图书有限责任公司 Automatic book typesetting method and system

Also Published As

Publication number Publication date
CN102147791B (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102147791B (en) Automatic book typesetting method and system
US7710590B2 (en) Automatic maintenance of page attribute information in a workflow system
CN102779118B (en) Paper typesetting method and system
JP3831248B2 (en) Printing system and printing method
US20120320417A1 (en) Information processing apparatus, pdl data conversion method, and storage medium
Bucki Word 2013 Bible
KR20050106559A (en) Method for outputting document form sheet
JPH09270020A (en) Automatic editing system
Mittelbach et al. The pursuit of quality—how can automated typesetting achieve the highest standards of craft typography
KR100430828B1 (en) System and method for editing print files automatically and system and method for manufacturing print using the edited print files
HRABOVSKYI et al. How to Enhance the Management and Quality of Electronic Publications?
Anton et al. Adobe InDesign Classroom in a Book (2021 Release)
Lambert et al. MOS 2010 Study Guide for Microsoft Word, Excel, PowerPoint, and Outlook Exams
Powell Instant InDesign: designing templates for fast and efficient page layout
Sama et al. ELECTRONIC COMMON TECHNICAL DOCUMENT (eCTD): A REVIEW OF HISTORY, BENEFITS OF IMPLEMENTING, CHALLENGES, MODULES, RISKS INVOLVED IN eCTD PUBLISHING AND QUALITY CONTROL.
Gruman InDesign CS5 Bible
Sutcliffe The Search for an Alternative Workflow at UBC Press: Support-and Service-Based Models
Dawson et al. Twenty issues in ebook creation
Mittelbach et al. The Pursuit of quality
JP2001022733A (en) Device and method for information processing, and computer-readable recording medium where program allowing computer to implement same method is recorded
Hrabovskyi et al. How to Enhance the Managementand Quality of Electronic Publications?
JPH10269230A (en) Document management system
Anton et al. Adobe InDesign CC Classroom in a Book (2018 release)
White et al. Beginning Scribus
Team Adobe FrameMaker 7.0 Classroom in a Book

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130109