Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.Referring to Fig. 1, may further comprise the steps:
S11: from the parsing content of the current page of the space of a whole page, read for the book version of the composing page number and explain order;
S12: in the parsing content of each follow-up page of the described space of a whole page, read the page number by order;
S13: described current page to the described page number each page between order place page or leaf, is explained the parameter composing page number in ordering according to described book version.
By the content of streaming software for composing composing publication, can in the content of the space of a whole page, directly add the book version that is used for setting type and explain order.When software for composing processes the book version and explains order, with this order back as the composing object, carry out this typesetting command, form the effect after setting type.The book version is explained order and can be input in the content of the space of a whole page by keyboard, and compares at the type-setting mode that the interface alternation window that is used for setting type operates by mouse, owing to cancelled the reciprocal process of interfaces windows, has improved the efficient of setting type.
In the prior art, the mode that can adopt macroprogram to write realizes the composing of the self-defined page number, and in the present embodiment, explains order by carrying out the book version that is used for the composing page number that pre-enters in the space of a whole page content, can realize the composing to the page number of each page.Because the book version that is used for the composing page number in the content is explained order, can be input in the content of the space of a whole page by keyboard, so process of typeset is simple and convenient.
Preferably, the book version note order that is used for the composing page number is stored with textual form, " " PN<composing parameter〉("<page number content〉" PN) " " form is described, and wherein "<composing parameter〉" described page number position, page number type, the page number of the page number in page or leaf and the composing style informations such as mode, page number writing direction, the page number start page number at, page number interval occurred adopt to explain the writing a Chinese character in simplified form of order; "<page number content〉" the content combination that the page number shows has been described, modify content, shop fixtures effect etc. such as page number.
Process according to the described parameter composing page number comprises:
According to the coordinate of the described page number location positioning page number on the page;
On described current page, start page number at according to described coordinate, described page number type, the described page number writing direction described page number of setting type;
The page number type comprises: the page number types such as numeral, Chinese, Roman number, Yang Quan, cloudy circle, bracket, square frame, three-dimensional square frame, point coding;
The page number writing direction can be horizontal or vertical.
According to the described page number start page number at and the described current page of described page number interval computing to the page number of the described page number each page between order place page or leaf;
For example: starting page number at of current page is 5, and page number is spaced apart 1, and then the page number of each page of subsequent calculations is: 6,7,8 etc.If be spaced apart 2, then the page number of each page of subsequent calculations is: 7,9,11 etc.
Also can mode occur in conjunction with page number: recto or verso occur, or every page of all appearance, or certain one page does not occur; Giving tacit consent to every page all occurs.For the absent variable mode of certain one page, can be convenient in the content of setting type, add illustration page or leaf, the page number of in the illustration page or leaf, not setting type.
Current page to the described page number on each page between the order place page or leaf, according to correspondingly the set type page number of described computing of described coordinate, described page number type, described page number writing direction.
If the user wishes since the n page or leaf self-defining page number content of setting type, need that then this section page number is explained command context and be inserted in the text n page or leaf content, its represents since the n page or leaf the page number content of setting type according to user-defined page number type-setting mode and the mode that occurs.
The user can explain command context to this section page number and be inserted into the optional position that the text sample need to be added the page number.
Preferably, the process according to the coordinate of the described page number location positioning page number on the page comprises:
From described page number position, parse distance value;
In the upper left solution position of the described page, along horizontal or the described distance value of vertical misalignment;
With the coordinate of the position after the described skew as described definite coordinate;
Or, the dot matrix of a plurality of coordinate points be used to the described page number of setting type is set on four limits of the described page in advance;
Generate in advance sign corresponding to each described coordinate points;
Parse described sign in the page number position of the composing parameter from described order;
The coordinate points that the described sign that parses is corresponding is as described definite coordinate.
Preferably, the described page number comprises by order: the new book version that is used for the composing page number is explained the book version note order of ordering or being used for the last page or leaf of expression.
When inserting a plurality of book versions in the content and explain order, each book version is explained order reach and is explained the prevpage of order for inserting page or leaf to next book version, explains order for the book version of the last page or leaf of expression, the expression current page be the composing page number by page or leaf.
Preferably, also comprise: use described new book version to explain order and replace current book version note order; Explain the order composing page number according to described new book version.
When books are set type, can construct the self-defining page number composing of a plurality of differences and explain order, thereby the page number of realizing multiple style in the books is set type.These book versions are explained order and are inserted in the content of the space of a whole page, explain order when reading the new book version that is used for the composing page number, use new book version to explain the order composing page number.
Preferably, described book version is explained to order and is also comprised page number content; "<page number content〉" described the content combination that the page number shows, this page number content also can be described as page number and modifies content, various such as literal, formula, picture, form, shop fixtures effect etc. in perhaps mutual combination, be used for modifying page number.
Described according to the described page number position described page number content of setting type.Modify content by in the page number of setting type, inserting page number, page number effect that can the optional position is set type out abundant in content, more flexible, attractive in appearance in page or leaf, with satisfy the preschool education book series, the modern composing new demands such as auxiliary book series and ancient writings composing are taught by primary school.
In the implementation procedure of said process in software for composing, after reading the book version and explaining order, structure page number manager object, page number manager comprises page number counter.The page number of page number counter records starts page number at and the page number interval information, and calculates current page page number value according to the count value of counter records.
The page number manager object mode, the page number type composing page number occur according to the page number value, the page number that calculate, and the composing page number is modified content in the time of the composing page number.
Run in process of typeset that content is skipped or when finishing, call current book version and explain the page number sample content that order constructs current page, and according to the parameter in the order in set type out the page number effect of definition of current page assigned address.
Preferably, embodiments of the invention also provide a kind of device of the streaming composing page number, referring to Fig. 2, comprising:
The first read module 21 is used for from the parsing content of the current page of the space of a whole page, reads for the book version of the composing page number and explains order;
The second read module 22 is used for the parsing content at each follow-up page of the described space of a whole page, reads the page number by order;
Type-setting module 23 is used for the page number each page between the page or leaf of order place that described current page to described the second read module 22 is read, and the book version that reads according to described the first read module 21 is explained the parameter composing page number in ordering.
Preferably, described type-setting module 23 comprises:
Position module 231 is used for according to the coordinate of the described page number location positioning page number on the page;
The first type-setting module 232 is used at described current page, and page number type, page number writing direction and the page number combined arrangement composing page number in ordering according to described position module 231 definite coordinate, book version notes start page number at;
The book version is explained order from the first read module 21;
Page number computing module 233, be used for according to the described page number start page number at and the described current page of page number interval computing to the page number of the described page number each page between the page or leaf of order place;
The second type-setting module 234, be used at current page to the described page number each page between the page or leaf of order place, coordinate, the book versions of determining according to described position module 231 are explained correspondingly the set type page number of described page number computing module 233 computings of described page number type, described page number writing direction in ordering.
The book version is explained order from the first read module 21;
Preferably, described position module 231 comprises:
Apart from parsing module 2311, be used for parsing distance value from described page number position;
Skew computing module 2312 is used in the position, the upper left corner of the described page, along laterally or the described distance value of resolving apart from parsing module 2311 of vertical misalignment, with the coordinate of the position after the described skew as described definite coordinate;
Or, module 2313 is set, the coordinate points of the described page number that is used for being provided on four limits of the described page in advance setting type;
Mapping block 2314 will parse from described page number position the corresponding sign of coordinate points that module 2313 arranges will be set, and the coordinate that described sign is corresponding is as described definite coordinate.
Preferably, described type-setting module 23 also comprises:
Laminating module 236 is used for explaining order when described book version and comprises that page number modifies content, modifies content according to the described page number position described page number of setting type in described the first type-setting module 232, the second type-setting module 234 composing page numbers.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.