CN103377182A - Streaming page number typesetting method and device - Google Patents

Streaming page number typesetting method and device Download PDF

Info

Publication number
CN103377182A
CN103377182A CN2012101321392A CN201210132139A CN103377182A CN 103377182 A CN103377182 A CN 103377182A CN 2012101321392 A CN2012101321392 A CN 2012101321392A CN 201210132139 A CN201210132139 A CN 201210132139A CN 103377182 A CN103377182 A CN 103377182A
Authority
CN
China
Prior art keywords
page number
page
order
type
composing
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
CN2012101321392A
Other languages
Chinese (zh)
Other versions
CN103377182B (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.)
BEIJING BEIDA FOUNDER ELECTRONICS Co Ltd
New Founder Holdings Development Co ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201210132139.2A priority Critical patent/CN103377182B/en
Publication of CN103377182A publication Critical patent/CN103377182A/en
Application granted granted Critical
Publication of CN103377182B publication Critical patent/CN103377182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a streaming page number typesetting method and device. The streaming page number typesetting method comprises reading a book type annotation command which is used for page number typesetting from analysis content of the current page of a type; reading a page number closing command from analysis content of subsequent pages of the type; performing page typesetting on pages from the current page to the page of the page number closing command according to parameters and content combinations in the book type annotation command. According to the streaming page number typesetting method and device, the book type annotation command in the type content, which is used for the page number typesetting and is input in advance is performed, so that the page number typesetting on the pages can be achieved; the book type annotation command in the content, which is used for the page number typesetting can be input into the type content through a keyboard, so that the typesetting process is simple and convenient; meanwhile the book type annotation command which is used for the page number typesetting enables the form of page numbers and the content combinations to be customized, so that the rich page number effect can be typeset.

Description

The method and apparatus of the streaming composing page number
Technical field
The present invention relates to type-setting domain, in particular to a kind of method and apparatus of the streaming composing page number.
Background technology
In the process of streaming composing publication, mode that can the run macro program or the page number composing function that adopts software for composing to provide realize the page number of the composing space of a whole page.Adopt the macroprogram mode page number of setting type, write in advance corresponding macroprogram according to the effect of the composing page number.The process of writing macroprogram is loaded down with trivial details, and the time is longer, and efficient is lower, and the page number effect that while macroprogram mode sets type out is very limited; And the page number composing function that adopts software for composing to provide can only realize simple page number composing, and function is limited.
Summary of the invention
The present invention aims to provide a kind of method and apparatus of the streaming composing page number, to solve the inefficient problem of the present software for composing composing page number.
In an embodiment of the present invention, provide a kind of method of the streaming composing page number, having comprised: 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; In the parsing content of each follow-up page of the described space of a whole page, read the page number by order; 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.
In an embodiment of the present invention, provide a kind of device of the streaming composing page number, having comprised: the first read module, be used for 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; The second read module 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 is used for described current page to the described page number each page between the page or leaf of order place, according to the parameter composing page number in the order of described book version note.
Explain 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, process of typeset is simple and convenient, simultaneously owing to can self-defined page number content make up, can embed such as picture, data formula, form etc. object in self-defined page number content combination, the page number effect of setting type out is abundant, attractive in appearance.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram of embodiment;
Fig. 2 shows the structured flowchart of device embodiment.
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.

Claims (11)

1. the method for a streaming composing page number is characterized in that, comprising:
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;
In the parsing content of each follow-up page of the described space of a whole page, read the page number by order;
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.
2. method according to claim 1 is characterized in that, described book version is explained order and comprised parameter:
Page number position, the page number start page number at, page number interval, page number type, page number writing direction;
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;
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;
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.
3. method according to claim 2 is characterized in that, comprises according to the process of the coordinate of the described page number location positioning page number on the page:
From described page number position, parse distance value;
In the position, the upper left corner 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, on four limits of the described page a plurality of coordinate points be used to the described page number of setting type are set in advance;
Generate sign corresponding to each described coordinate points;
From described page number position, parse described sign;
The coordinate points that the described sign that parses is corresponding is as described definite coordinate.
4. method according to claim 1 and 2 is characterized in that, 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.
5. method according to claim 4 is characterized in that, also comprises: use described new book version for the composing page number to explain order and replace current book version note order;
Explain the order composing page number according to described new book version.
6. method according to claim 2 is characterized in that, described book version is explained and also comprised page number modification content in the order;
The process of the described composing page number also comprises:
Modify content according to set type described page number of described page number position.
7. method according to claim 6 is characterized in that, described page number is modified content and comprised at least one of following:
Literal, formula, picture, form.
8. the device of a streaming composing page number is characterized in that, comprising:
The first read module 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 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 is used for described current page to the described page number each page between the page or leaf of order place, according to the parameter composing page number in the order of described book version note.
9. device according to claim 7 is characterized in that, described type-setting module comprises:
Position module is used for according to the coordinate of the described page number location positioning page number on the page;
The first type-setting module is used at described current page, starts page number at according to described coordinate, page number type, the page number writing direction composing page number;
The page number computing module, 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 is used at current page to the described page number each page between the page or leaf of order place, according to correspondingly the set type page number of described computing of described coordinate, described page number type, described page number writing direction.
10. device according to claim 8 is characterized in that, described position module comprises:
Apart from parsing module, be used for parsing distance value from described page number position;
The skew computing module is used in the position, the upper left corner of the described page, along laterally or the described distance value of vertical misalignment, with the coordinate of the position after the described skew as described definite coordinate;
Or, module 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 will parse the sign of corresponding described coordinate points from described page number position; The coordinate that described coordinate points is corresponding is as described definite coordinate.
11. device according to claim 8 is characterized in that, described type-setting module also comprises:
Laminating module is used for explaining order when comprising that page number is modified content when described book version, according to the described page number position described page number modification content of setting type.
CN201210132139.2A 2012-04-27 2012-04-27 The method and apparatus of the streaming typesetting page number Active CN103377182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210132139.2A CN103377182B (en) 2012-04-27 2012-04-27 The method and apparatus of the streaming typesetting page number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210132139.2A CN103377182B (en) 2012-04-27 2012-04-27 The method and apparatus of the streaming typesetting page number

Publications (2)

Publication Number Publication Date
CN103377182A true CN103377182A (en) 2013-10-30
CN103377182B CN103377182B (en) 2016-12-14

Family

ID=49462315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210132139.2A Active CN103377182B (en) 2012-04-27 2012-04-27 The method and apparatus of the streaming typesetting page number

Country Status (1)

Country Link
CN (1) CN103377182B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309323A (en) * 2020-01-19 2020-06-19 北京无限光场科技有限公司 Parameter initialization method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1498826A1 (en) * 2002-04-17 2005-01-19 J.S Corporation WebJINS INFORMATION JOURNAL AUTOMATIC EDITING SYSTEM
US20050251740A1 (en) * 2004-04-30 2005-11-10 Microsoft Corporation Methods and systems for building packages that contain pre-paginated documents
CN102110108A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Method and device for processing galley proof file
CN102262617A (en) * 2010-05-24 2011-11-30 北大方正集团有限公司 Method and device for processing hand sample of book edition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1498826A1 (en) * 2002-04-17 2005-01-19 J.S Corporation WebJINS INFORMATION JOURNAL AUTOMATIC EDITING SYSTEM
US20050251740A1 (en) * 2004-04-30 2005-11-10 Microsoft Corporation Methods and systems for building packages that contain pre-paginated documents
CN102110108A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Method and device for processing galley proof file
CN102262617A (en) * 2010-05-24 2011-11-30 北大方正集团有限公司 Method and device for processing hand sample of book edition

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309323A (en) * 2020-01-19 2020-06-19 北京无限光场科技有限公司 Parameter initialization method and device and electronic equipment
CN111309323B (en) * 2020-01-19 2023-12-12 北京有竹居网络技术有限公司 Parameter initialization method and device and electronic equipment

Also Published As

Publication number Publication date
CN103377182B (en) 2016-12-14

Similar Documents

Publication Publication Date Title
KR102107887B1 (en) Method and apparatus for generating a composite image
CN105094775B (en) Webpage generation method and device
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
US20210141999A1 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
CN101025738A (en) Template-free dynamic website generating method
CN106484383A (en) page rendering method, device and equipment
CN104951508B (en) Temporal information recognition methods and device
US10565290B2 (en) Online displaying a document
CN103729457A (en) Digitalized book auxiliary reading system based on Internet, and method thereof
KR102248823B1 (en) System, method and application for data visual service
CN103309806A (en) Device and method for fast developing and testing
CN110244921A (en) Label printing method, device, electronic equipment and system
CN102411468A (en) Method and device for exhibiting information by utilizing animation
CN104866527A (en) Dynamic webpage template matching method and device
CN109766881A (en) A kind of character identifying method and device of vertical text image
CN104462036B (en) A kind of method and system of the format information of synchro edit document
CN103631709A (en) Method and system for testing double-kernel browser
CN106294480A (en) A kind of file layout change-over method, device and examination question import system
CN112799670B (en) Method and system for unified multi-terminal logic development
US10235351B2 (en) Electronic document editing apparatus capable of inserting memo into paragraph, and operating method thereof
CN103136185B (en) The method and apparatus of block formula typesetting
CN103377182A (en) Streaming page number typesetting method and device
CN103034990A (en) Method and device for checking publications
WO2019130492A1 (en) Comic data display system, method, and program
CN102708710A (en) E-book reader and working method thereof

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220615

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: Beijing Beida Founder Electronics Co., Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: Beijing Beida Founder Electronics Co., Ltd.