CN101231633A - Layout method and apparatus containing nest frame object - Google Patents
Layout method and apparatus containing nest frame object Download PDFInfo
- Publication number
- CN101231633A CN101231633A CNA2007100629564A CN200710062956A CN101231633A CN 101231633 A CN101231633 A CN 101231633A CN A2007100629564 A CNA2007100629564 A CN A2007100629564A CN 200710062956 A CN200710062956 A CN 200710062956A CN 101231633 A CN101231633 A CN 101231633A
- Authority
- CN
- China
- Prior art keywords
- nest frame
- current line
- height
- width
- character
- 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
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a typesetting method including nested frame objects and a device thereof to enrich the layout content. The method comprises the following steps that: current characters are obtained; whether the current characters are nested frames is judged, if yes, the current line height and the current line width are obtained according to the attribute of the nested frames, if no, the current line height and the current line width are obtained according to the size of the characters; the attribute of the nested frames comprises the nested frame height and the nested frame width; the typesetting is carried out according to the current line height and the current line width. The device comprises an acquisition unit, a judging unit, a determining unit and a typesetting unit. Any content can be arranged in the nested frames, such as image objects, grid objects and/or numerical formula objects, and the nested frames can be taken as a character to be typeset with words, thereby enriching the word content and further enriching the layout content. Through the editing to the nested frame objects, the layout content can be further enriched.
Description
Technical field
The present invention relates to a kind of text composition technology, relate in particular to a kind of composition method and device that comprises the nest frame object.
Background technology
On the space of a whole page, except modal literal object, also have various page objects such as image object, table objects, mathematical formulae object, image object is used for display image, the literal object is used for display text, and table objects is used to show form, and the mathematical formulae object is used to show mathematical formulae.In the same space of a whole page, often need be with the combination of various page objects or various page objects as a character in the literal object, to enrich space of a whole page content.
For convenience, in the present invention, the character that can hold page object is called the nest frame object.Therefore, nest frame can be embedded in the literal object liking a kind of character, and other character of identical text object word is set type together when setting type.
Yet, in the prior art, also do not realize the method for nest frame object, more do not comprise the composition method and the device of nest frame object.
Summary of the invention
The purpose of this invention is to provide a kind of composition method and device that comprises the nest frame object, can enrich space of a whole page content.
The invention provides a kind of composition method that comprises the nest frame object, comprising:
Obtain current character;
Judge whether current character is nest frame, if, then obtain current line height and current line width according to the nest frame attribute, otherwise, size according to character obtains current line height and current line width, and described nest frame attribute comprises nest frame height and nest frame width;
According to described current line height and current line width current line is set type.
Describedly judge whether current character is that nest frame can be judged according to the nest frame flag.
Describedly obtain the current line height and the current line width specifically comprises according to the nest frame attribute:
Judge that whether current line width and nest frame width sum are greater than the current line preset width, if, then finish, otherwise, obtain nest frame height and nest frame width, utilize nest frame width and current line width sum to upgrade the current line width,, utilize the current line width to replace with the nest frame height when nest frame height during greater than the current line height.
Described method also comprises carries out editing steps with nest frame as object, and described step specifically comprises:
Enter the nest frame object layer;
At the nest frame object layer content of nest frame is edited;
Adjust the height and the width of nest frame according to edited result, and return space of a whole page layer.
Described method also comprises the method that realizes nest frame, and the method for described realization nest frame specifically comprises:
The nest frame flag is set in character code, and the value of the position beyond the nest frame flag is set to object identity.
Described nest frame flag is arranged in the character-coded untapped position.
Described nest frame flag is arranged in the character-coded most significant digit.
The invention also discloses a kind of composing device that comprises the nest frame object, comprising:
Obtain the unit, be used to obtain current character;
Judging unit is used to judge whether current character is nest frame;
Determining unit is used for determining current line height and current line width according to the result of judging unit;
The composing unit is used for according to described current line height and current line width current line being set type.
Described composing device also comprises:
Edit cell is used to enter the nest frame object layer, at the nest frame object layer content of nest frame is edited, and adjusts the height and the width of nest frame according to edited result, returns space of a whole page layer.
According to the present invention, owing in the nest frame object any content can be arranged,, and the nest frame object can be used as a character and set type with literal as image object, table objects and/or numerical expression object etc., thereby enriched the content of character, and then enriched space of a whole page content.By editor, more further enriched space of a whole page content to the nest frame object.
Description of drawings
Fig. 1 shows the process flow diagram of the realization nest frame of the embodiment of the invention;
Fig. 2 shows the process flow diagram of the composing that comprises nest frame of the embodiment of the invention;
Fig. 3 shows the acquisition current line width of the embodiment of the invention and the process flow diagram of current line maximum height;
Fig. 4 shows the process flow diagram of editor's nest frame of the embodiment of the invention;
Fig. 5 shows the composing device of the embodiment of the invention.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing in conjunction with the accompanying drawings for the ease of persons skilled in the art.
Comprise in description before the composition method of nest frame, at first describe the method that realizes nest frame of the present invention with reference to Fig. 1.
In the literal object, can comprise multirow, each row can comprise a plurality of characters, each character correspondence character attibute: character code, font, font size, color etc.
For example, character code can be 4 bytes, totally 32.Unicode coding is a kind of character code, and it has defined 32, has only used 21 at present, also has 11 not usefulness, therefore can use arbitrary position in 11 as the nest frame flag, therefore, in the present invention, preferably uses most significant digit as the nest frame flag.When this nest frame flag is effective (when equaling 1 as the nest frame flag), this character code is represented nest frame, and when this nest frame flag is invalid (when equaling 0 as the nest frame flag), this character code is represented common character.
Corresponding with each character character attibute is similar, and each nest frame correspondence the nest frame attribute, and described nest frame attribute comprises height, width, pointer to object etc.Pointer to object is used in reference to the nest frame content, and the nest frame content can comprise literal object, image object, table objects, various objects such as mathematical formulae object.
The value of the position beyond step 12, the nest frame flag is set to object identity.
For nest frame and other object are carried out unified management, can use other position (remove the sign nest frame 31) value as the nest frame object identity.
The principle that is provided with is that the object identity of current nest frame object identity and system's existence is inequality, and the method for setting can be the order increment method, promptly increases by an object in the system, and then object identity increases by one.
Like this, can obtain the contents such as height, width and pointer to object of nest frame by the nest frame object identity.And then the height by nest frame, width can unify to set type to the character in nest frame and the literal object, obtains the nest frame content by pointer to object, so that the nest frame content is edited and operation such as modification.
The invention discloses a kind of composition method that comprises the nest frame object, describe the composition method that comprises the nest frame object of the present invention below in conjunction with Fig. 2.
Judge whether current character is that nest frame can be judged according to the nest frame flag, that is, when the nest frame flag was effective, then this character was a nest frame, otherwise current character is common character.
Current line width=current line width+current character width.
According to the present invention, when nest frame is edited, may take place in the process of typeset, the method for editor's nest frame is described below in conjunction with Fig. 4.
After choosing nest frame, can obtain pointer to object, obtain the content of nest frame again according to pointer to object according to the object identity of nest frame.
As shown in Figure 5, the invention also discloses a kind of composing device that comprises the nest frame object, comprising: obtain the unit, be used to obtain current character; Judging unit is used to judge whether current character is nest frame; Determining unit is used for determining current line height and current line width according to the result of judging unit; The composing unit is used for according to described current line height and current line width current line being set type; Edit cell is used to enter the nest frame object layer, at the nest frame object layer content of nest frame is edited, and adjusts the height and the width of nest frame according to edited result, returns space of a whole page layer.
Therefore, according to the present invention, owing in the nest frame any content can be arranged, as image object, table objects and/or numerical expression object etc., and the nest frame object can be used as a character and set type, thereby enrich the content of character, and then enrich space of a whole page content with literal.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.
Claims (9)
1. a composition method that comprises the nest frame object is characterized in that, comprising:
Obtain current character;
Judge whether current character is nest frame, if, then obtain current line height and current line width according to the nest frame attribute, otherwise, size according to character obtains current line height and current line width, and described nest frame attribute comprises nest frame height and nest frame width;
According to described current line height and current line width current line is set type.
2. method according to claim 1 is characterized in that, describedly judges whether current character is that nest frame can be judged according to the nest frame flag.
3. method according to claim 1 and 2 is characterized in that, describedly obtains the current line height and the current line width specifically comprises according to the nest frame attribute:
Judge that whether current line width and nest frame width sum are greater than the current line preset width, if, then finish, otherwise, obtain nest frame height and nest frame width, utilize nest frame width and current line width sum to upgrade the current line width,, utilize the current line width to replace with the nest frame height when nest frame height during greater than the current line height.
4. method according to claim 1 is characterized in that, described method also comprises carries out editing steps with nest frame as object, and described step specifically comprises:
Enter the nest frame object layer;
At the nest frame object layer content of nest frame is edited;
Adjust the height and the width of nest frame according to edited result, and return space of a whole page layer.
5. method according to claim 1 is characterized in that described method also comprises the method that realizes nest frame, and the method for described realization nest frame specifically comprises:
The nest frame flag is set in character code, and the value of the position beyond the nest frame flag is set to object identity.
6. method according to claim 5 is characterized in that, described nest frame flag is arranged in the character-coded untapped position.
7. method according to claim 6 is characterized in that, described nest frame flag is arranged in the character-coded most significant digit.
8. a composing device that comprises the nest frame object is characterized in that, comprising:
Obtain the unit, be used to obtain current character;
Judging unit is used to judge whether current character is nest frame;
Determining unit is used for determining current line height and current line width according to the result of judging unit;
The composing unit is used for according to described current line height and current line width current line being set type.
9. composing device according to claim 8 is characterized in that, described composing device also comprises:
Edit cell is used to enter the nest frame object layer, at the nest frame object layer content of nest frame is edited, and adjusts the height and the width of nest frame according to edited result, returns space of a whole page layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100629564A CN101231633B (en) | 2007-01-23 | 2007-01-23 | Layout method and apparatus containing nest frame object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100629564A CN101231633B (en) | 2007-01-23 | 2007-01-23 | Layout method and apparatus containing nest frame object |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101231633A true CN101231633A (en) | 2008-07-30 |
CN101231633B CN101231633B (en) | 2010-08-25 |
Family
ID=39898118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007100629564A Expired - Fee Related CN101231633B (en) | 2007-01-23 | 2007-01-23 | Layout method and apparatus containing nest frame object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101231633B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567291A (en) * | 2010-12-31 | 2012-07-11 | 北大方正集团有限公司 | Method and device for deleting lace characters in format document |
CN102929847A (en) * | 2012-10-26 | 2013-02-13 | 北京乐投科技有限公司 | Character wrapping method for manufacturing of digitally published products |
CN104063365A (en) * | 2013-03-19 | 2014-09-24 | 福建福昕软件开发股份有限公司北京分公司 | Method for inserting object in PDF document |
CN108228552A (en) * | 2016-12-14 | 2018-06-29 | 北大方正集团有限公司 | Box composition method and device |
CN113326031A (en) * | 2021-05-28 | 2021-08-31 | 网易(杭州)网络有限公司 | Attribute acquisition method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503160A (en) * | 2002-11-20 | 2004-06-09 | 英业达股份有限公司 | Computer executable automatic composing method for electronic book read interface |
-
2007
- 2007-01-23 CN CN2007100629564A patent/CN101231633B/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567291A (en) * | 2010-12-31 | 2012-07-11 | 北大方正集团有限公司 | Method and device for deleting lace characters in format document |
CN102929847A (en) * | 2012-10-26 | 2013-02-13 | 北京乐投科技有限公司 | Character wrapping method for manufacturing of digitally published products |
CN104063365A (en) * | 2013-03-19 | 2014-09-24 | 福建福昕软件开发股份有限公司北京分公司 | Method for inserting object in PDF document |
CN104063365B (en) * | 2013-03-19 | 2018-08-21 | 福建福昕软件开发股份有限公司 | The method that object is inserted into PDF document |
CN108228552A (en) * | 2016-12-14 | 2018-06-29 | 北大方正集团有限公司 | Box composition method and device |
CN108228552B (en) * | 2016-12-14 | 2020-10-16 | 北大方正集团有限公司 | Box typesetting method and device |
CN113326031A (en) * | 2021-05-28 | 2021-08-31 | 网易(杭州)网络有限公司 | Attribute acquisition method and device |
CN113326031B (en) * | 2021-05-28 | 2023-08-22 | 网易(杭州)网络有限公司 | Attribute acquisition method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101231633B (en) | 2010-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200073926A1 (en) | Form customization method and device | |
CN104298721B (en) | A kind of arbitrarily a object split screen layout edit methods of the online courseware development based on Web | |
CN101231633B (en) | Layout method and apparatus containing nest frame object | |
US6813746B1 (en) | Hierarchical master pages | |
CN110705237B (en) | Automatic document generation method, data processing device and storage medium | |
CN103530407B (en) | Method and device for generating rich text document | |
CN107092625A (en) | data configuration method, data processing method and device | |
CN110310226B (en) | Picture mosaic display method and system | |
CN106446116A (en) | Business rule parameter interaction method and business rule parameter interaction device applied to rule engine | |
CN107203595A (en) | A kind of method of the dynamic generation web interface based on flexible form | |
CN112329413B (en) | Template building method, file generating method, template system, template device and computer equipment | |
US7941749B2 (en) | Composition of electronic document layout | |
CN108460003B (en) | Text data processing method and device | |
CN106210918A (en) | The update method of a kind of user interface and system | |
CN106484413A (en) | Document editor and document edit method | |
CN101436309B (en) | Method and apparatus for modifying formula operator | |
CN109492211A (en) | A kind of table extracting method based on OFD document | |
CN108766513A (en) | A kind of wisdom health medical treatment data structured processing system | |
CN104536947A (en) | Layout document processing method and device | |
CN105373519B (en) | A kind of editing device and method of Technical symbol | |
CN101944081A (en) | Computer generation, edition method of Guqin abbreviated character notation and system thereof | |
CN113822025A (en) | Office file automatic generation method, device, equipment and storage medium | |
CN110019968B (en) | XML file processing method and device | |
CN113962193A (en) | Table typesetting method and device, electronic equipment and storage medium | |
CN110188326A (en) | Rich text generation method, device, computer equipment and storage medium |
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 |
Granted publication date: 20100825 Termination date: 20190123 |
|
CF01 | Termination of patent right due to non-payment of annual fee |