CN1120700A - Automation method for composing official document - Google Patents
Automation method for composing official document Download PDFInfo
- Publication number
- CN1120700A CN1120700A CN 94116746 CN94116746A CN1120700A CN 1120700 A CN1120700 A CN 1120700A CN 94116746 CN94116746 CN 94116746 CN 94116746 A CN94116746 A CN 94116746A CN 1120700 A CN1120700 A CN 1120700A
- Authority
- CN
- China
- Prior art keywords
- composing
- district
- parts
- storehouse
- file
- 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.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The computerized method for utomatizing page layout of official documents features that a page layout library is created after frequently-used official documents are analyzed, the original texts entered according to basic formats are divided into regions and units which are marked, and the commands taken from page layout commond library are automatically inserted to form intermediate file. The page layout commands in intermediate file are sequentially executed to obtain different official document layout types with legal formats.
Description
The present invention relates to the typographical technical field, especially a kind of composing official document automated method.
Aspect desk-top publishing, China has the composing system of suitable books and periodicals magazines such as " Founder ", " Hua Guang ", " section's seal ", " 4S " and newspaper version, desktop office is set type as " Kingsoft WPS ", " giant 6405 ", " 909 " etc., can be used for the composing of general official document.These composing systems all need the artificial typesetting command that adds, and the operating platoon edition system has been stipulated quite abundant typesetting command (being generally about 100), complicated difficult using, be difficult for grasping, make mistakes easily,, all must grasp the format regulation of publishing business no matter use existing any composing system to set type, the talent of this respect is few, can on top of be those well-trained editorial staffs of publishing house.Though because computer is progressively universal, use computer to carry out the also more and more of word processing, but find it difficult to learn owing to set type, really the people that can set type and few though composing official document is simpler relatively, but still needs association's composing knowledge, and extremely difficult the discharge meets the format of publishing regulation and government's style of writing regulation, that have even manufacture in a rough and slipshod way, in fact damaged the dignity of Origin, Originator, also to pay attention to the fine tradition of literal inconsistent with Chinese culture.Therefore, the large tracts of land of Comnputer Chinese character input is popularized with the difficult contradiction that finds it difficult to learn, is in type of setting type more and more outstanding.
Purpose of the present invention is exactly a kind of worry that can exempt hand-set is provided in order to solve above-mentioned contradiction, need not to learn typesetting command, is easy to grasp the regulation of setting type, and can discharge to meet and publish regulation, meets government's regular automation method for composing official document tens of kinds of formats, that be easy to learn and use of composing a piece of writing.
Purpose of the present invention can reach by following measure: conceive a kind of composing official document automated method, realize on the computing machine that keyboard, display, printer and Chinese composing system are arranged.It is according to minimum external prompt, to discerning automatically according to the urtext file of basic format regulation typing, automatically generate the composing intermediate file in conjunction with composing rule base and typesetting command storehouse, composing system is according to the typesetting command and the combined high precision character library of intermediate file, and final output on printer or display meets the composing result who publishes regulation and government's style of writing rule.The key of this method is to adopt following steps:
At first office's office document commonly used is analyzed, find that 80~90% all is text files that fixed format can be arranged, for example work program, work summary, bulletin, survey report, application paper, notice of meeting, meeting report, record, note, letter, price list, contract, contract, agreement, research report, paper or the like.As for government style of writing, " the style of writing rule " determined more then arranged, defined order, decision, resolution, indication, bulletin, announcement, notice, circular, reported, asked for instructions, the style of writing formats more than 30 kinds such as reply, letter and meeting summary.These glue file formats, style of writing format are concluded generation official document page-layout base and composing rule base, call during in order to composing;
Generate corresponding typesetting command storehouse according to used composing system;
According to the most basic format specification typing urtext file, and with its deposit;
With the urtext file be divided into five districts, each divides into two to six parts;
Each parts in the above-mentioned district that has marked off and each district are discerned one by one,, chosen typesetting command and insert before corresponding district of urtext file and the parts and write intermediate file and deposit in conjunction with composing rule base and typesetting command storehouse;
Typesetting command, combined high precision character library that composing system is carried out in the intermediate file are in order exported the composing result to printer or display;
Above-mentioned with the urtext file be divided into five districts, each is divided into two to six parts and refers to: five districts are respectively reddish tone district, header area, text area, the end of writing district and official document tail region, and each is distinguished pairing parts and is:
Reddish tone district: level of confidentiality, code, the explanation of a reddish tone left side, the right explanation of reddish tone;
Header area: eyebrow head (dividing the left, center, right eyebrow head), main title, subtitle, author's day
Phase;
Text area: summary, middle title, subhead, text;
The end of writing district: left side signature, right signature;
The official document tail region: annotate on descriptor, a left side, the right notes.
Above-mentionedly be to the most basic format specification of urtext typing:
(1) the composition form stipulated of Chinese course: title (title in the headline) moves back four lattice, the section of changing and moves back two lattice, continues that the top lattice are write, punctuate accounts for a word.
(2) typing becomes the appearance of elementary object format, its way is: the left, center, right parts are placed on the position, left, center, right respectively, isolate with delegation's null between parts are capable, separate with two line space row before start of text and during end of text, the capable isolation of the equal with dashed lines in reddish tone district and file tail region, neat substantially by all texts wait to continue text right side bearing of being formed.
The above-mentioned step that district and each parts in each district of urtext are discerned processing is:
(1) opens composing rule base, title mark storehouse, typesetting command storehouse;
(2) import urtext filename to be set type, target format, format, reddish tone size, subhead masterplate etc. with the man-machine conversation mode from keyboard;
(3) open intermediate file;
(4) urtext is done first pass, calculate total line number, average row length, district location etc.;
(5) judged whether the reddish tone district, illustrated that by the level of confidentiality in the rule treatments district, code, the explanation of a reddish tone left side, the reddish tone right side insertion is taken from the typesetting command in typesetting command storehouse and write in the intermediate file before each parts as if having then;
(6) judged whether the header area,, before each parts, inserted and take from the typesetting command in typesetting command storehouse and write in the intermediate file if having then by the eyebrow head in the rule treatments header area, main title, subtitle, author's date parts;
(7) press rule the summary in the text area, middle title, subhead, text parts are done the identification processing, insertion is taken from the typesetting command in typesetting command storehouse and is write in the intermediate file before each parts;
(8) judged whether the end of writing district, signed parts by the signature of the left side in the rule treatments district, the right side, inserted and take from the typesetting command in typesetting command storehouse and write intermediate file if having then;
(9) judged whether the official document tail region, annotated parts as if having then by the descriptor in the rule treatments district, left side notes, the right side, insertion is taken from the typesetting command in typesetting command storehouse and is write in the intermediate file;
(10) close intermediate file, close title mark storehouse, composing rule base and typesetting command storehouse.
Above-mentioned processing finishes the intermediate file that the back generates and promptly can be used for setting type, and is carried out typesetting command (combined high precision character library) in proper order and is exported on output devices such as printer or display by corresponding composing system.
The drawing of accompanying drawing is described as follows:
Fig. 1 is the overview flow chart of the inventive method;
Fig. 2 is the inventive method urtext is discerned and the handling procedure process flow diagram.
Below in conjunction with one the inventive method being used for Shenzhen University's " SPB official document automatic typesetting software " also adopts the most preferred embodiment of universal " section's seal " composing system do composing output to be described in further detail:
The inventive method is the application program of developing with C language, assembly language and Visual BASIC under MS-DOS operation system at the microcomputer system establishment.In fact the present invention may operate in any computer system with the CCDOS compatibility.
Fig. 1 is the overview flow chart that program of the present invention is moved on computer system, wherein 101 is text editing processes, can with any Chinese operating system of CCDOS compatibility under, according to this paper is aforesaid the most basic format specification of urtext typing is done the typing of urtext and is left in the computer memory; The 103rd, to the identification and the processing procedure of urtext, the above-mentioned urtext that leaves in the memory is done subregion and component identification processing, from selecting, 102 target formats obtain the target format, obtain set type rule and order from 104 typesetting command storehouses and 105 composing rule bases, and typesetting command is inserted in urtext respective area and the parts automatically, thereby the generation intermediate file is used for setting type.The 106th, process of typeset is carried out typesetting command by generally popular composing system order from middle file, cooperates accurate character library 107 to discharge high-quality format.108, the 109th, display that the user is required and printer are used to export the composing result.
Fig. 2 is the identification and the handling procedure process flow diagram to urtext of the inventive method, also is key point of the present invention.At first office 80~90% there are composing rule, the title mark of the official document commonly used of fixed format to be included into composing rule base, title mark storehouse respectively, the typesetting command of employed composing system is included into the typesetting command storehouse.201 frames are to the initialization procedure before the text identification, open composing rule base, title mark storehouse, typesetting command storehouse, call in the identifying subsequently.202 frames are man-machine conversation processing procedures, by parameters such as keyboard input raw filename, target format, format, reddish tone size and subhead masterplates, simultaneously with the urtext File Open.Then by 203 frames the urtext file is done first pass, parameters such as total line number of calculating urtext file, average row length, district location are for further identification use.204 frames are opened intermediate file, in order to deposit identification and the result who handles.Subsequently the district of urtext file and the parts in each district are done the identification processing, the steps include:
Having judged whether the reddish tone district by 205 frames, is to judge that the urtext file begins in the several rows that dotted line is capable then a reddish tone district (also with dashed lines is capable and stipulate that in addition certain mode distinguishes the reddish tone district) if having in the present embodiment.It is neat or placed in the middle or occupy right row and handle by 206 frames each parts in this district to be done a left side according to its residing position again, content contains " close " word, come the first former left side of row or the right position, other content, then arrange after vacating reddish tone millimeter (parameter of keyboard input), its font size is obtained the corresponding command by the regulation in the composing rule base from the typesetting command storehouse again.After the reddish tone district handles, insert typesetting command in the corresponding position of source document and write in the intermediate file.
Judged whether the header area by 207 frames, in the several rows behind the reddish tone district (if no reddish tone district, then begin several rows from the urtext head), if there are two nulls, and wardrobe of these row all have above the space more than four, and the header area has been described.Perhaps, though unparalleled null has obviously isolated header line (more than empty four lattice of wardrobe, and null being arranged between the text), also explanation has the header area.If the header area is arranged, then the parts in this district are handled by 208 frames; In the header area if any more than one with upper-part, then first row must be the eyebrow head row.Content in the eyebrow head row is without exception according to its residing position, makes neat left bank or row or neat right row handle between two parties.Second row must be capable for main title, gets the regulation font size and arrange between two parties.Main title can continue, until running into null or subtitle just finishes.Subtitle begins with dash, finishes in the one's own profession, also arranges between two parties.The part of header area remainder all is considered as author's date parts after the null, by row row placed in the middle.As the situation of obviously isolated header line is only arranged in the header area, then pressing main title handles, the used font size line-spacing of each parts character-spacing, then according in the keyboard input requirement of target format being arranged in pairs or groups automatically, from the composing rule base, call, from the typesetting command storehouse, get typesetting command and insert before the corresponding component and write in the intermediate file.
After the header area, zone before two nulls in the several rows of the end of writing is text area, by 209 frames district's inner part is handled: the text in the text area, standard style of writing set type in accordance with regulations with the small character paper (as the standard style of writing with No. 3 imitation Song-Dynasty-Style typefaces, small character paper with No. 5 Song typefaces).In the text area as the isolated row that null is surrounded before and after finding to have, wardrobe have space more than four, and title parts in will being identified as are done overhead how empty down fewly in accordance with regulations, and processing altogether appears on two lines.In the text area line of text continue that to handle be one of difficult point, this be since the common carriage-return character in the urtext not necessarily illustrate will the section of changing, and the title identifier of top grillages also must not be used as the processing that continues.The solution that the inventive method adopts is earlier the row length of urtext to be found out statistical law, and all row are long to fall into " Probability Area continues ", and no space, next line top, but wardrobe are not subhead, just do the processing that continues, and promptly do not export newline.The automatic identification of the subhead in the line of text is two of difficult point.The way of the inventive method is: the paragraph header literal is discerned, as belonged to the title word, then get a string character string, with the subhead template contrasts at different levels that obtain when keyboard is imported, as meet, promptly be defined as this grade subhead, and carry out corresponding subhead and handle.For example, be " one " as template, then in the text wardrobe contain one, two, three ..., all being identified as subhead at the same level, its content will adopt the boldface type (for example the subhead of small character paper adopts No. 5 boldface types) of jack per line.After content recognition in the text area is handled, from the typesetting command storehouse, get typesetting command and insert before the corresponding component in the urtext and write in the intermediate file.
Judged whether the end of writing district by 210 frames.If after the text area, (as no file tail region, then until the end of file) is the end of writing district before the file tail region.The content in the end of writing district mainly is signature, note etc., carry out 211 frames if these contents exist parts such as the signature this district in, note are done neat left bank or neat right row's processing by its appearance position in the urtext file, insertion is taken from the typesetting command in the typesetting command storehouse and is write in the intermediate file.
Judged whether the official document tail region by 212 frames.If have dotted line capable in the several rows before the end of file, then by it to last this part of file be the file tail region.At this moment can carry out 213 frames and do the identification processing.The content that this is a part of, all neat left bank or Qi Youpai, (if any " descriptor " three words, with No. three black matrixes, all the other use imitation Song-Dynasty-Style typeface without exception No. four), and by the official document format specification, with whole district neat page or leaf end row, in the ranks isolate with solid line.The above-mentioned back of handling is inserted and to be taken from the typesetting command in typesetting command storehouse and write in the intermediate file.
214 frames are closed the above-mentioned intermediate file that forms behind the urtext relevant position that typesetting command inserted, and close composing rule base, title mark storehouse and typesetting command storehouse.
After above-mentioned identifying finished, the intermediate file that has generated can be by the composing system output of setting type.
Above automatic composing method realizes in Shenzhen University's " SPB official document automatic typesetting software ", attached sheet 1 are examples of urtext, attached sheet 2 are that intermediate file behind the typesetting command of " section's seal " is discerned and inserted to the urtext example in the attached sheet 1, and attached sheet 3 are last composing printout examples as a result.
Embodiment two: " figure spirit (TR) intelligent composing system "
Realize at Shenzhen University and Shenzhen torch dragon company cooperation research and development " figure spirit (TR) composing system ".This system adopts said method that urtext is discerned and handled, follow-up composing then adopts the reduction instruction composing system (only containing 13 instructions of setting type such as font, font size, line-spacing, the interior choice of location of row) of special development to set type, laser or ink-jet printer are then adopted in printout, and the output specimen page is seen attached sheet 4.
The inventive method is applicable to various CTS, can carry out automatic typesetting to urtext, and can discharge to meet fully and publish tens of kinds of formats stipulating, meet fully government's style of writing rule, exempt the worry of hand-set, need not study and grasp typesetting command, only needed 20 minutes can grasp the regulation of setting type, it is consuming time extremely short to set type, and does not make mistakes.Not being only applicable to the office of government bodies, large-scale enterprises and institutions, equally also being applicable to small office and family, is the fabulous composing official document method of a kind of popularization.
Claims (4)
1, a kind of composing official document automated method, realize keyboard, display, printer being arranged and have on the computing machine of Chinese composing system, it is according to external prompt, to discerning automatically by the urtext file of basic format regulation typing, automatically generate the composing intermediate file in conjunction with composing rule base and typesetting command storehouse, composing system is according to the typesetting command and the combined high precision character library of intermediate file, finally export the composing result on printer or display, described method is characterised in that the employing following steps:
The official document page-layout base is analyzed, generated to office's office document commonly used and the rule of setting type
The storehouse;
Generate corresponding typesetting command storehouse according to used composing system;
According to the most basic format specification typing urtext file and deposit;
The urtext file is divided into five districts, and each divides into two to six parts;
Each parts in the above-mentioned district that has marked off and each district are discerned one by one, in conjunction with
Composing rule base and typesetting command storehouse are chosen typesetting command and are inserted urtext file phase
Before district of answering and the parts and write the intermediate file deposit;
Composing system is carried out the typesetting command in the intermediate file in order, the combined high precision character library
To printer or display output composing result;
2, composing official document automated method according to claim 1 is characterized in that: describedly urtext is divided into five districts and each divides into two to six parts and be respectively:
(1) five district is: reddish tone district, header area, text area, the end of writing district, official document
The tail region;
(2) each is distinguished pairing parts and is:
Reddish tone district: level of confidentiality, code, the explanation of a reddish tone left side, the right explanation of reddish tone;
The header area: eyebrow head (divide left, center, right eyebrow head), main title, subtitle,
Author's date;
Text area: summary, middle title, subhead, text;
The end of writing district: left side signature, right signature;
The official document tail region: annotate on descriptor, a left side, the right notes.
3, composing official document automated method according to claim 1 is characterized in that: described according to the most basic format specification typing urtext file, these regulations are:
(1) the composition form of Chinese course regulation: title moves back four lattice, the section of changing is moved back two lattice, continued
The top lattice are write, punctuate accounts for a word;
(2) elementary object format: the left, center, right parts are placed on the position, left, center, right respectively
Put, isolate with a null between parts are capable, before start of text and behind the end of text
Separate with two line space row respectively, reddish tone district and file tail region capable separating of equal with dashed lines,
Neat substantially by all texts wait to continue text right side bearing of being formed;
4, composing official document automated method according to claim 1 is characterized in that: described each parts in the He Ge district, district are discerned the employing following steps one by one:
(1) opens composing rule base, title mark storehouse, typesetting command storehouse;
(2) import urtext filename, order to be set type with the man-machine conversation mode from keyboard
Mark format, format, reddish tone size, subhead masterplate;
(3) open intermediate file;
(4) urtext is done first pass, calculate total line number, long, the subregion of average row
The position;
(5) judged whether the reddish tone district, if having then by the level of confidentiality in the rule treatments district, code,
The explanation of a reddish tone left side, the right explanation of reddish tone parts insert before each parts and take from row
The typesetting command of version command library also writes in the intermediate file;
(6) judged whether the header area, if having then by the eyebrow head in the rule treatments header area,
Main title, subtitle, author's date parts insert before each parts and take from
The typesetting command in typesetting command storehouse also writes in the intermediate file;
(7) by rule the summary in the text area, middle title, subhead, text parts are done
Identification is handled, and inserts before each parts and takes from the typesetting command in typesetting command storehouse
And write intermediate file;
(8) judged whether the end of writing district, if having then by the signature of the left side in the rule treatments district, the right side
The signature parts insert and take from the typesetting command in typesetting command storehouse and write middle literary composition
Part;
(9) judged whether the official document tail region, if having then by the theme in the rule treatments district
Annotate on speech, a left side, the right parts of annotating, insert take from the typesetting command storehouse typesetting command also
Write intermediate file;
(10) close intermediate file, and close title mark storehouse, composing rule base, composing life
Make the storehouse.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 94116746 CN1120700A (en) | 1994-10-11 | 1994-10-11 | Automation method for composing official document |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 94116746 CN1120700A (en) | 1994-10-11 | 1994-10-11 | Automation method for composing official document |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN1120700A true CN1120700A (en) | 1996-04-17 |
Family
ID=5038074
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 94116746 Pending CN1120700A (en) | 1994-10-11 | 1994-10-11 | Automation method for composing official document |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1120700A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101470698B (en) * | 2007-12-26 | 2011-03-16 | 北京大学 | Layout method and corresponding system for symbol of sending organizations |
-
1994
- 1994-10-11 CN CN 94116746 patent/CN1120700A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101470698B (en) * | 2007-12-26 | 2011-03-16 | 北京大学 | Layout method and corresponding system for symbol of sending organizations |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Sinclair | 4.1 Corpora for lexicography | |
| CN1254894A (en) | Method for font access, register, display, printing and file processing,and record medium | |
| CN106919547A (en) | Method based on key element table and standard form Mass production form document | |
| US4435778A (en) | Method for editing spatially related data in an interactive text processing system | |
| Blenkhorn et al. | Automated braille production from word-processed documents | |
| CN1120700A (en) | Automation method for composing official document | |
| CN106874242B (en) | Typesetting method and system | |
| JPS59152486A (en) | Selection of font | |
| Calabretto et al. | The philological workstation bambi (better access to manuscripts and browsing of images) | |
| CN102262617A (en) | Method and device for processing hand sample of book edition | |
| Gaschler et al. | Manipulating human-oriented dictionaries with very simple tools | |
| JPS61228572A (en) | Document producing and editing device | |
| Bush et al. | A critical edition of ezra pound’s pisan cantos: problems and solutions | |
| Rodrigues et al. | Benchmarking Methods for Digitizing Print Bibliographies | |
| Hałaczkiewicz | Scholarly editing in the face of technological progress illustrated with the example of Wacław Potocki’s Moralia | |
| JPH03188556A (en) | Automatic document preparing system | |
| Shaw | MARC catalogues of early‐printed books at the University of Kent | |
| Walden | Writing a big book—A first experience with LaTeX | |
| Pandey | Request to Allocate the Maithili Script in the Unicode Roadmap | |
| Davenport et al. | Computer-Base Composition at Chemical Abstracts Service. | |
| CN1095574C (en) | Document processing system | |
| Burke | Mastering InDesign CS3 for print design and production | |
| Kecskeméti | Electronic Textual Criticism: A Challenge to the Editor and to the Publisher | |
| Wildberger | " Musiknotation", by Helene Wanske (Book Review) | |
| Ohlman | Mechanical indexing: A personal remembrance |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |