CN104572609B - The subfield composition method and device of electronic document - Google Patents

The subfield composition method and device of electronic document Download PDF

Info

Publication number
CN104572609B
CN104572609B CN201310503113.9A CN201310503113A CN104572609B CN 104572609 B CN104572609 B CN 104572609B CN 201310503113 A CN201310503113 A CN 201310503113A CN 104572609 B CN104572609 B CN 104572609B
Authority
CN
China
Prior art keywords
subfield
column
width
wide
character block
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.)
Expired - Fee Related
Application number
CN201310503113.9A
Other languages
Chinese (zh)
Other versions
CN104572609A (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.)
New Founder Holdings Development Co ltd
Pku Founder Information Industry Group Co ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
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 Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310503113.9A priority Critical patent/CN104572609B/en
Publication of CN104572609A publication Critical patent/CN104572609A/en
Application granted granted Critical
Publication of CN104572609B publication Critical patent/CN104572609B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides the subfield composition method and device of a kind of electronic document, side therein comprise determining that electronic document character block can one layout region width;According to character block can one layout region width gauge point counting column column number, the subfield column number=round up (character block can one layout region width/maximum column it is wide), wherein maximum column width be the permitted maximum width of preset subfield;According to text can one layout region width and subfield column number calculate subfield column it is wide, the column of subfield is wide=round up the width/subfield column number of one layout region (character block can), and character block can one layout region width/subfield column number remainder width be added at least one subfield column it is wide in;Subfield typesetting is carried out to the character block according to the column of subfield column number and subfield is wide.Technical solution provided by the invention can be according to the difference of display equipment and adjust automatically subfield column number to improve display effect finally improves user experience.

Description

The subfield composition method and device of electronic document
Technical field
The present invention relates to digital publishing technical fields, more particularly to the subfield composition method and device of electronic document.
Background technique
In the text composition processing of electronic document, subfield, point common at present the character block on the space of a whole page can be arranged Column method is the subfield that is averaged according to the width of character block, and the number of subfield is fixed.
Inventor realize process of the present invention in find, existing subfield method there are the shortcomings that include at least: when not When showing file in same equipment, because the width of display equipment is inconsistent, cause subfield display effect unsatisfactory;Such as When changing from a wide screen display device to narrow screen display device, if the page still uses identical subfield column number mesh, it frequently can lead to The width of each column becomes very narrow, keeps its display effect poor.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is allow typesetting personnel by the way that subfield category is simply arranged Property, and can be according to text block size adjust automatically subfield column number.
In order to achieve the goal above, the subfield composition method of electronic document provided by the invention comprises steps of determining that The character block of electronic document can one layout region width;According to the character block can one layout region width gauge point counting column column number, The subfield column number=round up (character block can one layout region width/maximum column it is wide), wherein it is described maximum column it is wide For the permitted maximum width of preset subfield;According to the text can one layout region width and the subfield column number meter The column on point counting column is wide, the column of the subfield it is wide=downward be rounded (character block can one layout region width/subfield column Number), and the character block can width/subfield column number remainder width of one layout region be added at least one described point During the column on column is wide;Subfield typesetting is carried out to the character block according to the column of the subfield column number and subfield is wide.
The subfield composing device of electronic document provided by the invention specifically includes that determining width module, for determining electronics The character block of file can one layout region width;Calculate column number module, for according to the character block can one layout region width Calculate subfield column number, the subfield column number=round up (character block can one layout region width/maximum column it is wide), In, maximum column width is the permitted maximum width of preset subfield;The wide module in column is calculated, for that can arrange according to the text The column that the width and subfield column number in version region calculate subfield is wide, and (character block can typesetting area for wide=downward rounding in the column of the subfield The width in domain/subfield column number), and the character block can one layout region width/subfield column number remainder width quilt Be added at least one subfield column it is wide in;Subfield type-setting module, it is wide for the column according to the subfield column number and subfield Subfield typesetting is carried out to the character block.
Effect of the invention is that: technical solution provided by the invention is directed to different display equipment, can be according to text Block size adjust automatically subfield column number improves display effect so as to which reasonable display picture is presented for user, final to improve The experience of user.
Detailed description of the invention
Fig. 1 is the subfield composition method flow chart of the electronic document of the embodiment of the present invention;
Fig. 2 and Fig. 3 is the signal with method actual subfield situation in different display areas of the embodiment of the present invention Figure;
Fig. 4 is the subfield composing device schematic diagram of the electronic document of the embodiment of the present invention.
Specific embodiment
It is below with reference to the accompanying drawings and in conjunction with the embodiments, next that the present invention will be described in detail.
The process of the subfield composition method of electronic document provided in an embodiment of the present invention is as shown in Figure 1.
In Fig. 1, step 1, the character block in electronic document is calculated according to preset subfield information can one layout region Width size;Specifically, character block can be calculated according to parameters such as the subfield column spacing of user setting and subfield line widths Can one layout region width size;Such as can one layout region width size=electronic document display interface width-margin away from-point Column column spacing-subfield line width.
Step 2, wide according to pre-set maximum column, calculating can subfield column number in one layout region in character block.This is most Big column width is the permitted maximum width of subfield, and it is preset to can be user.
One specific example is likely to occur following three kinds or more kinds of subfield columns if maximum column width is 20 words Several situations:
A, when character block can one layout region width≤20 word when, this character block should be able to be divided into 1 column;
B, when 20 words < character block can one layout region width≤40 word when, this character block should be able to be divided into 2 columns;
C, when 40 words < character block can one layout region width≤60 word when, this character block should be able to be divided into 3 columns.
Step 3, the actual column of calculating are wide, and are judged whether according to the calculated actual column width according to above-mentioned maximum column Width carries out subfield, if it is, arriving step 4, otherwise, arrives step 5.
Specifically, in this step, if the wide maximum column that is equal in the practical column being calculated is wide, step 4 is arrived, if The wide maximum column that is less than in the practical column being calculated is wide, then arrives step 5.(character block can typesetting for above-mentioned wide=downward rounding in practical column Calculated subfield column number in the width size/above-mentioned steps 2 in region).In addition, character block can one layout region width/it is described The remainder width of subfield column number be added at least one subfield column it is wide in, for example, by it is calculated have multiple words The remainder width of width be equally spacedly added to as unit of 1 word width multiple subfields column it is wide in.
Step 4, by character block can one layout region according to the wide carry out subfield in maximum column.To step 7.
Subfield display effect is paid no attention to caused by the display width that can solve display equipment using above-mentioned steps 4 is inconsistent The problem of thinking;If as same content is shown in a manner of horizontal version in PAD (tablet computer) and can divide 3 columns, and if PAD with Vertical version mode is shown, then if dividing 3 columns to be shown, display effect will be poor.
Step 5, to recalculate column according to the preset subfield column number of user wide, to determine that practical column is wide, then arrives step Rapid 6.
Step 6, by character block can one layout region according to the practical wide carry out subfield in column calculated in above-mentioned steps 5.To step Rapid 7.
Family can be used using above-mentioned steps 5 and step 6 and be desired with accurate typesetting according to it, such as: to newspaper or The typesetting of books etc..
Step 7, operation layout algorithm, finally show corresponding content.One specific example of the result finally shown, As shown in Fig. 2 or Fig. 3.
The present invention can carry out elastic subfield setting (such as setting selection control) in advance, of the invention real to determine whether to execute Apply the above-mentioned process of example;One specific example of elastic subfield setting are as follows: character block is chosen, at " subfield " of the Format For menu In option, elastic subfield is set, this is that the character block that will be chosen is set as elastic subfield attribute.It is of course also possible to not choosing In the case where any object (not choosing character block), in " subfield " option of the Format For menu, elastic subfield is set, this is A kind of document size setting, it is effective to the character block created later.
The subfield composing device of electronic document provided in an embodiment of the present invention is as shown in Figure 4.
Device in Fig. 4 specifically includes that determining width module 10, calculates column number module 11, calculates the wide module 12 in column, subfield Type-setting module 13 and selection control module 14.
Determine that width module 10 is connect with column number module 11 is calculated.Determine that width module 10 is mainly used for determining electronic document Character block can one layout region width;Wherein, character block can the width of one layout region can be with are as follows: the display interface of electronic document Width-margin is away from-subfield column spacing-subfield line width.
Column number module 11 is calculated in addition to also connecting with the calculating wide module 12 in column other than determining that width module 10 is connect.Meter Calculate column number module 11 be mainly used for according to determine the character block determined of width module 10 can one layout region width gauge point counting column Column number, and subfield column number=round up (character block can one layout region width/maximum column it is wide), wherein maximum column width is pre- The permitted maximum width of the subfield first set.
Calculate the wide module 12 in column in addition to calculate other than column number module 11 connect, also with determination width module 10 and subfield Type-setting module 13 is separately connected.Subfield type-setting module 13 is mainly used for can typesetting according to the text for determining that width module 10 is determined The column that the width and the calculating calculated subfield column number of column number module 11 in region further calculate out subfield is wide, and the column of the subfield Wide=to be rounded downwards the width/subfield column number of one layout region (character block can), and character block can one layout region width/institute State subfield column number remainder width be added at least one subfield column it is wide in;For example, having multiple words wide for calculated The remainder width of degree be equally spacedly added to as unit of 1 word width multiple subfields column it is wide in.
Subfield type-setting module 13 in addition to calculate other than the wide module 12 in column connect, also with calculate column number module 11 and select Control module 14 connects.Subfield type-setting module 13 is mainly used for wide to character block progress according to the column of above-mentioned subfield column number and subfield Subfield typesetting.
Selection control module 14 is mainly used for providing selection control in the display interface of electronic document;In this way, when selection When control receives selection from the user, subfield type-setting module 13 with above-mentioned subfield column number and divides the character block of electronic document The wide progress subfield typesetting in the column on column.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention model claimed It encloses, for those skilled in the art, the present invention can there are many changes and variation.It is all in spirit proposed by the invention Within principle, made any modification, equivalent replacement and improvement etc. should be included in scope of the present invention Within.

Claims (8)

1. a kind of subfield composition method of electronic document characterized by comprising
Determine electronic document character block can one layout region width;
According to the character block can one layout region width gauge point counting column column number, the subfield column number=round up (text Block can one layout region width/maximum column it is wide), wherein it is described maximum column width be the permitted maximum of preset subfield Width;
According to the character block can one layout region width and the subfield column number calculate subfield column it is wide, the column of the subfield Wide=to be rounded downwards the width/subfield column number of one layout region (character block can), and the character block can one layout region Width/subfield column number remainder width be added at least one subfield column it is wide in;
Subfield typesetting is carried out to the character block according to the column of the subfield column number and subfield is wide.
2. the method according to claim 1, wherein the character block can one layout region width are as follows:
Display interface width-margin of electronic document is away from-subfield column spacing-subfield line width.
3. the method according to claim 1, wherein the character block can one layout region width/subfield The remainder width of column number be added into the subfield column it is wide in include:
During the column that the remainder width is equally spacedly added at least one subfield as unit of 1 word is wide.
4. method according to claim 1 or 2 or 3, which is characterized in that the method also includes:
Selection control is provided in the display interface of the electronic document;
When the selection control receives selection from the user, by the character block of the electronic document with the subfield column number With the wide progress subfield typesetting in the column of the subfield.
5. a kind of subfield composing device of electronic document characterized by comprising
Determine width module, for determine electronic document character block can one layout region width;
Calculate column number module, for according to the character block can one layout region width gauge point counting column column number, the subfield column number =round up (character block can one layout region width/maximum column it is wide), wherein it is described maximum column width be it is preset The permitted maximum width of subfield;
Calculate the wide module in column, for according to the character block can one layout region width and the subfield column number calculate subfield Column is wide, and the column of the subfield is wide=downward to be rounded the width/subfield column number of one layout region (character block can), and described Character block can one layout region width/subfield column number remainder width be added at least one subfield column it is wide In;
Subfield type-setting module, it is wide to character block progress subfield typesetting for the column according to the subfield column number and subfield.
6. device according to claim 5, which is characterized in that the character block can one layout region width are as follows:
Display interface width-margin of electronic document is away from-subfield column spacing-subfield line width.
7. device according to claim 5, which is characterized in that the character block can one layout region width/subfield The remainder width of column number be added into the subfield column it is wide in include:
During the column that the remainder width is equally spacedly added at least one subfield as unit of 1 word is wide.
8. according to device described in claim 5 or 6 or 7, which is characterized in that described device further include:
Control module is selected, for providing selection control in the display interface of the electronic document;
When the selection control receives selection from the user, the subfield type-setting module is by the text of the electronic document Block is with the wide progress subfield typesetting in the column of the subfield column number and the subfield.
CN201310503113.9A 2013-10-23 2013-10-23 The subfield composition method and device of electronic document Expired - Fee Related CN104572609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310503113.9A CN104572609B (en) 2013-10-23 2013-10-23 The subfield composition method and device of electronic document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310503113.9A CN104572609B (en) 2013-10-23 2013-10-23 The subfield composition method and device of electronic document

Publications (2)

Publication Number Publication Date
CN104572609A CN104572609A (en) 2015-04-29
CN104572609B true CN104572609B (en) 2019-01-11

Family

ID=53088713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310503113.9A Expired - Fee Related CN104572609B (en) 2013-10-23 2013-10-23 The subfield composition method and device of electronic document

Country Status (1)

Country Link
CN (1) CN104572609B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110290B (en) * 2019-03-29 2020-10-16 北京点众科技股份有限公司 Method and device for setting typesetting style of electronic book
CN111930285A (en) * 2019-04-24 2020-11-13 中国科学技术大学 Character typesetting method for electronic book

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136010A (en) * 2006-08-31 2008-03-05 北京北大方正电子有限公司 Words column dividing method and processing system based on paragraph in textbox
CN102567301A (en) * 2010-12-21 2012-07-11 北大方正集团有限公司 Method and device for subfield composing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7472340B2 (en) * 2004-12-20 2008-12-30 Microsoft Corporation Method and computer-readable medium for generating a multiple column layout

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136010A (en) * 2006-08-31 2008-03-05 北京北大方正电子有限公司 Words column dividing method and processing system based on paragraph in textbox
CN102567301A (en) * 2010-12-21 2012-07-11 北大方正集团有限公司 Method and device for subfield composing

Also Published As

Publication number Publication date
CN104572609A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
TWI453658B (en) A dynamic composing method for displayed screen
CN107273000B (en) Screen multi-resolution adaptation method of intelligent oscilloscope
CN106294301B (en) Report generation method and device
JP2006048532A5 (en)
US8375298B2 (en) Method and apparatus for processing layout and storage medium
WO2022116936A1 (en) Interface layout method, electronic device, and computer-readable storage medium.
CN108900434A (en) Data collection distribution method and device
CN108780377B (en) Method and electronic device for object management and visualization and storage medium
JP2015513727A (en) Storage medium and processing method
CN106484388B (en) Method and device for realizing user interface
CN104572609B (en) The subfield composition method and device of electronic document
CN111143731A (en) Display method and device for webpage interface zooming and terminal equipment
US20140310674A1 (en) System and method for checking signal transmission line
EP2871826A1 (en) Method, device and terminal for adjusting widget
US9035972B2 (en) Intelligent axis labels
US20150149875A1 (en) Image processing device, image processing device control method, program, and information storage medium
CN104281562A (en) Electronic document processing method and device
CN106558019B (en) Picture arrangement method and device
US10210139B2 (en) Information processing device and information processing method
CN113297313B (en) Table data display method and device, electronic equipment and storage medium
US8510705B2 (en) Computing device and method for checking via stub
CN105487801B (en) Progress bar adjusting method and mobile terminal
CN103856967A (en) Visualized configuration method for equipment panel in NIS system
CN103279219A (en) Method and system for moving cursor of touch screen device
CN105653249B (en) Character size adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

Patentee after: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee after: BEIJING 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: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220915

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 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: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190111