CN104615587B - A kind of electronic data composition method and device - Google Patents
A kind of electronic data composition method and device Download PDFInfo
- Publication number
- CN104615587B CN104615587B CN201510056787.8A CN201510056787A CN104615587B CN 104615587 B CN104615587 B CN 104615587B CN 201510056787 A CN201510056787 A CN 201510056787A CN 104615587 B CN104615587 B CN 104615587B
- Authority
- CN
- China
- Prior art keywords
- article
- template
- picture
- typesetting
- parameter
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 239000000203 mixture Substances 0.000 title claims description 13
- 239000000284 extract Substances 0.000 claims description 10
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000013016 learning Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Abstract
The invention discloses a kind of method and devices of electronic data typesetting.The method includes:The template of typesetting needed for default, the template includes transverse screen template and/or vertical screen template;Corresponding template is selected according to screen browse mode;Typesetting electronic data is treated using template and carries out first time typesetting, and the first time typesetting includes that selection transverse screen template or vertical screen template treat typesetting electronic data and carry out typesetting;According to the incidence relation of preset condition arrange parameter, the parameter includes article title, picture and/or article abstract, and the incidence relation of the parameter includes the position of the parameter and the relationship that is taken up space;Typesetting electronic data, which is treated, using the incidence relation of parameter carries out second of typesetting.The present invention promotes reading experience, solves the problems, such as that the multimedia content such as picture cannot completely be shown by typesetting twice, the content of the more accurate reflection article of energy.
Description
Technical field
The present invention relates to technical field of data processing, more particularly, to a kind of method and device of electronic data typesetting.
Background technology
With the rapid development of the rise and palm reading terminal of e-magazine, more and more people's reading habit and reading
Mode is all changed, and gradually from papery reading matter viewing electronic reading materials till now are read, this is just to the row of electronic information
Version proposes new requirement.
The general way of existing electronic information typesetting technique be each article each component part in the block (title,
Text, picture) description is fixed, it encounters any article and all carries out typesetting using current description, obtained result is always not
People's will to the greatest extent, the experience that user reads are poor.
Existing ocr software on the market can not reasonably handle the typesetting relationship between picture and text, cause reading experience it is poor,
The problem of multimedia content such as picture cannot completely be shown.Fig. 1 gives reading terminal now on the market and shows situation, Fig. 1
In it is visible the screen lower right corner it is entitled " Cook will attend D10 meetings and deliver opening speech " article, it is shown that article
Thematic map feels to show slightly awkward on picture and text showing, and reason is that the figure being displayed on the screen is that a part of artwork content of interception is (former
Figure content is referring to Fig. 2) so that the missing of the missing of image content, image content can lead to the content that cannot correctly reflect article,
Cause the decline of reading experience.The reason of causing this phenomenon is the size that it fails to combine picture in display, text and mark
The content of topic dynamically carries out picture and text optimal layout combination.
Invention content
A kind of electronic data composition method of present invention offer and device, to solve existing typesetting technique to caused by user
The problem of multimedia content such as the poor, picture of reading experience cannot completely be shown.
To solve the above-mentioned problems, the invention discloses a kind of electronic data composition methods, including:Typesetting needed for default
Template, the template include transverse screen template and/or vertical screen template;Corresponding template is selected according to screen browse mode;Utilize mould
Plate treats typesetting electronic data and carries out first time typesetting, and the first time typesetting includes that selection transverse screen template or vertical screen template are treated
Typesetting electronic data carries out typesetting;According to the incidence relation of preset condition arrange parameter, the parameter includes article title, picture
And/or article abstract, the incidence relation of the parameter include the position of the parameter and the relationship that is taken up space;Utilize parameter
Incidence relation treats typesetting electronic data and carries out second of typesetting.
Preferably, first time typesetting is adjusted one or more of breviary page article block including the use of template, right
Each article block is adjusted, and the breviary page includes one or more article blocks;Second of typesetting is to article figure in the block
Text is adjusted.
Preferably, it is arranged using waiting for that the incidence relation of parameter in typesetting electronic data treats typesetting electronic data and carries out second
Version include:Judge to wait for that the parameter of typesetting electronic data is constituted;If it includes picture that parameter, which is constituted not, removed in masterplate reserved
Picture space reserves space needed for article title in a template according to the number of words and font size of article title, its in template
Its space is used for showing article abstract;If parameter composition includes picture, according to the number of words and font size of article title, in mould
Space needed for article title is reserved in plate, picture is shown in reserved picture space, and other spaces in template are used for showing text
Chapter is made a summary.
Preferably, second of typesetting further include:Selection imposition layout, the selection imposition layout include:If picture
The length-width ratio of article summary region is more than the given factor in length-width ratio divided by template, then uses longitudinal imposition layout, otherwise adopt
With lateral imposition layout;It is described longitudinal direction imposition layout be followed successively by from top to bottom in predeterminable area article title, picture and
Article text is arranged;The transverse direction imposition layout be in predeterminable area article title in the upper of picture and article text
Side, picture and article text arrange from left to right in the lower section of article title.
Preferably, second of typesetting further include:Picture progress equal proportion is zoomed in or out according to picture length-width ratio supreme
Or picture region in wide adaptable template, after removing region shared by picture, article abstract is shown in remaining area.
Preferably, show that article abstract includes in remaining area:Judge whether text importing region occupied area is more than threshold
Value, if then removing word only shows picture;Otherwise by text importing in remaining area.
Preferably, include according to the corresponding template of screen browse mode selection:Browse mode is transverse screen mode, then extraction is pre-
If transverse screen template;Browse mode is vertical screen mode, then extracts preset vertical screen template.
Preferably, when selecting corresponding template according to screen browse mode, the template includes:The position of each article block
It sets and size, the position of each article block internal portions and size.
Preferably, electronic data composition method disclosed by the invention can be applied in e-magazine, microblogging, blog, electronics
Newspaper, Internet news, picture, the fields RSS or GoogleReader.
The invention also discloses a kind of electronic data composing devices, including:
Presetting module, for the template of default required typesetting, the template includes transverse screen template and/or vertical screen template;
Selecting module, for selecting corresponding template according to screen pattern;
First type-setting module carries out first time typesetting, the first time row for treating typesetting electronic data using template
Version is included in selection transverse screen template or vertical screen template treats typesetting electronic data and carries out typesetting;
Arrange parameter module, for according to the incidence relation of preset condition arrange parameter, the parameter include article title,
Picture and/or article abstract, the incidence relation of the parameter include the position of the parameter and the relationship that is taken up space;
Second layout template treats typesetting electronic data using the incidence relation of parameter and carries out second of typesetting.
Preferably, the first type-setting module further includes:The first adjustment submodule, for utilizing template to one in breviary page
Or multiple article blocks are adjusted, and are adjusted to each article block;The breviary page includes one or more article blocks;Second
Submodule is adjusted, for being adjusted to article picture and text in the block.
Preferably, the second type-setting module further includes:
Judging submodule, for judging to wait for that the parameter preset of typesetting electronic data is constituted;
Submodule is handled without figure, if not including picture for parameter, reserved picture space is removed in masterplate, according to
The number of words and font size of article title reserve space needed for article title in a template, and other spaces in template are used for showing
Show article abstract;
There is figure to handle submodule, if including picture for parameter, according to the number of words and font size of article title, in mould
Space needed for article title is reserved in plate, picture is shown in reserved picture space, and other spaces in template are used for showing text
Chapter is made a summary.
Preferably, the second type-setting module further includes:
It is laid out submodule, for selecting imposition layout;The selection imposition layout includes:
If the length-width ratio of article summary region is more than the given factor in the length-width ratio divided by template of picture, using longitudinal
Imposition layout, otherwise use lateral imposition layout;
It is described longitudinal direction imposition layout be followed successively by from top to bottom in predeterminable area article title, picture and article text into
Row arrangement;
It is described transverse direction imposition layout be in predeterminable area article title in the top of picture and article text, picture and text
Zhang Zhengwen is arranged from left to right in the lower section of article title.
Preferably, the second type-setting module further includes:Submodule is scaled, for the ratios such as carrying out to picture according to picture length-width ratio
Example zooms in or out picture region in supreme or wide adaptable template, and after removing region shared by picture, text is shown in remaining area
Chapter is made a summary.
Preferably, the second type-setting module further includes:Processing submodule is judged, for judging text importing region occupied area
Whether threshold value is more than, if then removing word only shows picture;Otherwise by text importing in remaining area.
Preferably, selecting module further includes:Subtemplate is extracted, is transverse screen mode for browse mode, then extracts preset
Transverse screen template;Browse mode is vertical screen mode, then extracts preset vertical screen template.
Compared with prior art, the present invention has the following advantages:
The present invention is adjusted multiple article blocks in breviary page using template by typesetting twice, first time typesetting,
Each article block is adjusted;Second of typesetting is adjusted article picture and text in the block;It, can be more accurate by typesetting twice
Reflect the content of article, promotes reading experience, solve the problems, such as that the multimedia content such as picture cannot completely be shown.
The present invention selects corresponding template, transverse screen masterplate and vertical screen masterplate data to be stored separately according to screen browse mode,
It can ensure to obtain optimum efficiency in the case where transverse screen or vertical screen are read.
Description of the drawings
Fig. 1 is general electronic data typesetting screenshot capture in the prior art;
Fig. 2 is the artwork of the article in Fig. 1;
Fig. 3 is the flow chart in the method for the present invention embodiment;
Fig. 4 is longitudinal imposition layout's schematic diagram in the method for the present invention embodiment;
Fig. 5 is lateral imposition layout's schematic diagram in the method for the present invention embodiment;
Fig. 6 is the flow chart according to screen browse mode selection corresponding templates in the method for the present invention embodiment;
Fig. 7 is the flow chart in another embodiment of the method for the invention;
The structure chart of Fig. 8 apparatus of the present invention embodiments.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
A kind of electronic data composition method of present invention proposition and device, pass through typesetting twice so that picture and text showing can reach
Optimal combination effect can more accurately reflect original text graph-text content, improve reading experience.
It is described in detail below by embodiment.
It is a kind of electronic data composition method flow chart described in the embodiment of the present invention with reference to Fig. 3.
Step 11, the masterplate of typesetting needed for presetting, the template includes transverse screen template and/or vertical screen template;
In the specific implementation, preset masterplate can be include format and page pictures layout to entire breviary page, example
If a certain masterplate can specify that the position of each article block in entire breviary page, the position of figure and word, in each article block
The position etc. of figure and word.When terminal shows picture and text, the content of the screen display of terminal is normally referred to as breviary page, one
Breviary page can be divided into multiple regions, and each region can show a piece of article, this region is known as article block.
Step 12 selects corresponding template according to screen browse mode;
In the specific implementation, may include according to the corresponding template of screen browse mode selection:When browse mode is transverse screen
When pattern, then preset transverse screen template is extracted;When browse mode is vertical screen mode, then preset vertical screen template is extracted.In reality
In the application of border, referring to Fig. 6, screen browse mode can be judged by masterplate data selector 601 and be selected corresponding
Masterplate is selected from transverse screen, vertical screen masterplate data pool suitable respectively according to the browse state of transverse screen, vertical screen when selecting masterplate
Masterplate.
Step 13, it treats typesetting electronic data using masterplate and carries out first time typesetting, the first time typesetting includes selection
Transverse screen template or vertical screen template treat row's electronic edition data and carry out typesetting;
First time typesetting is to be adjusted to multiple article blocks in breviary page using template, and carried out to each article block
Adjustment, breviary page may include one or more article blocks.First time typesetting can be that certain article is placed on to a left side for breviary page
Upper angle, some picture are placed on the centre position etc. of breviary page, can also be adjusted to article content in the block, as picture with
Position relationship adjustment of word etc.;Used masterplate usually can be the set of one group of data in practical applications, wherein wrapping
Include position and the size of each article block, the position of each article block internal portions and size.
Step 14, according to the incidence relation of preset condition arrange parameter, the parameter include article title, picture and/or
Article abstract, the incidence relation of the parameter include the position of the parameter and the relationship that is taken up space;
In the specific implementation, the work of step 14 arrange parameter carries out before being placed on first time typesetting, can also put
It is carried out after the first typesetting.
Step 15, it treats typesetting electronic data using the incidence relation of parameter preset and carries out second of typesetting.
When specific implementation step 14 and step 15, second of typesetting refers to being adjusted to article picture and text in the block
It is whole.Parameter preset can be article title, picture, article abstract, and the incidence relation of the parameter includes the position of the parameter
With the relationship to be taken up space.Further include the composition for judging parameter preset before second of typesetting, that is, is carrying out second of typesetting
First judge to wait for that the parameter preset in the article of typesetting is constituted before, as whether this article includes only picture or does not include figure
Piece, or only include word and word only have article title etc. these.So according to practical situation, if default ginseng
Number does not include picture, then reserved picture space is removed in masterplate, according to the number of words and font size of article title, in template
In reserve space needed for article title, other spaces in template are used for showing article abstract;If parameter preset includes picture,
According to the number of words and font size of article title, space needed for article title is reserved in a template, and picture is shown in reserved figure
Piece space, other spaces in template are used for showing article abstract.
In order to enable the visual effect of second of typesetting is more preferable, when in article including picture, above-described embodiment can be with
Include the steps that selection imposition layout, specifically selection imposition layout may include:If the length-width ratio divided by template of picture
The length-width ratio of middle article summary region is more than the given factor, then uses longitudinal imposition layout, otherwise uses lateral typesetting cloth
Office.The longitudinal direction imposition layout is to be followed successively by article title, picture and article text from top to bottom in predeterminable area to be arranged
It arranges (shown in Figure 4);The transverse direction imposition layout be in predeterminable area article title in the top of picture and article text,
Picture and article text arrange (shown in Figure 5) from left to right in the lower section of article title.In addition it is given because of the period of the day from 11 p.m. to 1 a.m determining,
It can rule of thumb be configured as the positive number more than zero, such as be set as 1.5,2,3 etc., it is rule of thumb most suitable for selecting
The given factor is 1.5.
After the selected given factor is 1.5, when specifically carrying out typesetting, if article is plucked in the length-width ratio and template of picture
It wants the length-width ratio in region to be compared more than 1.5, then uses longitudinal imposition layout, otherwise use lateral imposition layout.
In order to further improve the reasonability of picture layout, the present embodiment can also include:According to picture length-width ratio pair
Picture carries out equal proportion and zooms in or out picture region in supreme or wide adaptable template, after removing region shared by picture, surplus
Remaining region shows article abstract.In order to rationally show that word content, the present embodiment can also include in remaining area:Judge word
Whether display area occupied area is more than threshold value, if then removing word only shows picture;Otherwise by text importing in remaining area
In domain.Judge text importing region occupied area whether be more than threshold value can according to the size of character script and the number of words of word into
Row judges that the method for specific implementation repeats no more.
Include the example of the typesetting of the article of picture for one again below, in another inventive embodiments of the present invention,
Shown in Figure 7, specific typesetting process may include:
Step 701, flow first judges whether the length-width ratio of picture is more than the length-width ratio of article block:If it is, definition graph
Piece is longitudinally longer, with regard to carrying out typesetting using longitudinal typesetting rule;If it is not, then illustrating that picture is laterally longer, using lateral typesetting
Rule carries out typesetting;
Step 702, equal proportion is carried out to picture according to Aspect Ratio and scales supreme or wide adaptable presumptive area;
Step 703, after removing region shared by picture, the size of region area shared by remaining word is calculated;
Step 704, judge whether character area area is more than predetermined value;If it is, removing word, picture is only shown;
If it is not, then by text importing inside remaining area;
Step 705, typesetting result is exported.
It in this embodiment, can be with when calculating region area shared by remaining word in step 703 and judging character area area
It is the size that region area shared by word is calculated according to the size of character script and the number of words of word, the method for specific implementation is no longer
It repeats.
In conclusion the processing by the above flow, shown picture and text are just more reasonable in breviary page, by first time
Typesetting is adjusted multiple article blocks in breviary page using template, is adjusted to each article block;Second of typesetting pair
Article picture and text in the block are adjusted;The content for correctly reflecting article is made it possible to, the multimedia content such as picture can more completely be shown
Show, promotes the reading experience of user.
In practical applications, the composition method described in the embodiment of the present invention can be applied to the product of picture and text showing demand
In, such as PC machine, laptop, tablet computer, handwriting pad.In addition it is also possible to be applied in embedded OS, such as
The intelligent mobile terminals such as palm PC, mobile phone, PAD, PDA, large-screen mobile phone or transverse screen mobile phone;Personal information terminal, vehicle-mounted letter
Cease the GPS/GIS terminals such as terminal;The intelligence learnings terminal such as eBOOK, electronic dictionary, intelligent toy.Disclosure is particularly well suited to apply
In the fields such as e-magazine, microblogging, blog, electronic newspaper, Internet news, picture, RSS, GoogleReader.
Based on the above, embodiment that the embodiment of the present invention also provides corresponding devices.
It is a kind of structure chart of electronic data composing device described in the embodiment of the present invention with reference to Fig. 8, may include:
Presetting module 801, for the template of default required typesetting, the template includes transverse screen template and/or vertical screen template;
Selecting module 802, for selecting corresponding template according to screen pattern;
First type-setting module 803 carries out first time typesetting, the first time for treating typesetting electronic data using template
Typesetting includes that selection transverse screen template or vertical screen template treat typesetting electronic data and carry out typesetting;
Arrange parameter module 804, for the incidence relation according to preset condition arrange parameter, the parameter includes article mark
The incidence relation of topic, picture and/or article abstract, the parameter includes the position of the parameter and the relationship that is taken up space;
Second layout template 805 treats typesetting electronic data using the incidence relation of parameter and carries out second of typesetting.
The template of typesetting, selecting module 802 needed for presetting module 801 is default are selected according to screen pattern from preset masterplate
Select corresponding template, the first type-setting module 803 treats typesetting electronic data using the masterplate of selection and carries out first time typesetting, and first
Secondary typesetting is included in selection transverse screen template or vertical screen template treats typesetting electronic data and carries out typesetting;Arrange parameter module later
804 according to the incidence relation of preset condition arrange parameter, the second typesetting masterplate 805 using 804 setting of arrange parameter module ginseng
Several incidence relations treats typesetting electronic data and carries out second of typesetting.
In the specific implementation, in order to according to the suitable masterplate of browse mode selection, the selection in above-mentioned apparatus embodiment
Can also include in module 802:Subtemplate is extracted, when browse mode is transverse screen mode, then subtemplate is extracted and extracts preset cross
Shield template;When browse mode is vertical screen mode, then extracts subtemplate and extract preset vertical screen template.
Above-mentioned apparatus embodiment in the specific implementation, in order to enable the breviary page after typesetting is more attractive, in the first typesetting mould
Can also include the first adjustment submodule in block, the first adjustment submodule is used for using template to one or more of breviary page
Article block is adjusted, and is adjusted to each article block.Can also include second adjustment submodule, for article block
In picture and text be adjusted.
Above-mentioned apparatus embodiment in the specific implementation, in order to enable the breviary page after typesetting is more attractive, in the second typesetting mould
Can also include following 3 submodules in block:
Judging submodule, for judging to wait for that the parameter preset of typesetting electronic data is constituted;
Submodule is handled without figure, if not including picture for parameter, reserved picture space is removed in masterplate, according to
The number of words and font size of article title reserve space needed for article title in a template, and other spaces in template are used for showing
Show article abstract;
There is figure to handle submodule, if including picture for parameter, according to the number of words and font size of article title, in mould
Space needed for article title is reserved in plate, picture is shown in reserved picture space, and other spaces in template are used for showing text
Chapter is made a summary.
Above-mentioned apparatus embodiment in the specific implementation, in order to enable the breviary page after typesetting is more attractive, the second type-setting module
In can also include:It is laid out submodule, layout submodule is for selecting imposition layout;The selection imposition layout includes:If
The length-width ratio of article summary region is more than the given factor in the length-width ratio divided by template of picture, then uses longitudinal imposition layout,
Otherwise lateral imposition layout is used;It is described longitudinal direction imposition layout be followed successively by from top to bottom in predeterminable area article title,
Picture and article text are arranged;It is described transverse direction imposition layout be in predeterminable area article title in picture and article text
Top, picture and article text arrange from left to right in the lower section of article title.
Above-mentioned apparatus embodiment in the specific implementation, in order to enable the breviary page after typesetting is more attractive, the second type-setting module
In can also include:Submodule is scaled, scaling submodule is used to carry out equal proportion amplification or contracting to picture according to picture length-width ratio
After removing region shared by picture, article abstract is shown in remaining area for picture region in small supreme or wide adaptable template.
In order to enable picture can be prior to text importing, in the specific implementation, the second type-setting module can also include:Judge
Submodule is handled, judges to handle submodule for judging whether text importing region occupied area is more than threshold value, if then removing
Word only shows picture;Otherwise by text importing in remaining area.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.For device embodiment
For, since it is basically similar to the method embodiment, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
It defends oneself bright.
Above to a kind of electronic data composition method provided by the present invention and device, it is described in detail, herein
Applying specific case, principle and implementation of the present invention are described, and the explanation of above example is only intended to help
Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,
There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this
The limitation of invention.
Claims (14)
1. a kind of electronic data composition method, which is characterized in that including:
The template of typesetting needed for default, the template includes transverse screen template and/or vertical screen template;
Corresponding template is selected according to screen browse mode;
Typesetting electronic data is treated using template and carries out first time typesetting, and the first time typesetting includes selection transverse screen template or erects
Screen template treats typesetting electronic data and carries out typesetting, is adjusted to multiple article blocks in breviary page using template, and to each
A article block is adjusted;
According to the incidence relation of preset condition arrange parameter, the parameter includes article title, picture and/or article abstract, institute
The incidence relation for stating parameter includes the position of the parameter and the relationship that is taken up space;
Typesetting electronic data is treated using the incidence relation of parameter and carries out second of typesetting, and article picture and text in the block are adjusted
It is whole;
It is described using wait for the incidence relation of parameter in typesetting electronic data treat typesetting electronic data carry out second of typesetting include:
Judge to wait for that the parameter of typesetting electronic data is constituted;If it includes picture that parameter, which is constituted not, it is empty that reserved picture is removed in masterplate
Between, according to the number of words and font size of article title, space needed for article title, other spaces in template are reserved in a template
For showing article abstract;
It is described to include according to the corresponding template of screen browse mode selection:
Browse mode is transverse screen mode, then extracts preset transverse screen template;
Browse mode is vertical screen mode, then extracts preset vertical screen template.
2. according to the method described in claim 1, it is characterized in that:
The first time typesetting is adjusted one or more of breviary page article block including the use of template, to each article
Block is adjusted, and the breviary page includes one or more article blocks;
Second of typesetting is adjusted to article picture and text in the block.
3. method according to claim 1 or 2, which is characterized in that described to utilize the pass for waiting for parameter in typesetting electronic data
Connection relationship treats second of the typesetting of progress of typesetting electronic data:
If parameter composition includes picture, according to the number of words and font size of article title, article title institute is reserved in a template
Space, picture is needed to be shown in reserved picture space, other spaces in template are used for showing article abstract.
4. according to the method described in claim 1, it is characterized in that, second of typesetting further includes:Select imposition layout, the choosing
Selecting imposition layout includes:
If the length-width ratio of article summary region is more than the given factor in the length-width ratio divided by template of picture, using longitudinal row
Version layout, otherwise uses lateral imposition layout;
The longitudinal direction imposition layout is to be followed successively by article title, picture and article text from top to bottom in predeterminable area to be arranged
Row;
The transverse direction imposition layout is that article title is in the top of picture and article text in predeterminable area, and picture and article are just
Text arranges from left to right in the lower section of article title.
5. according to the method described in claim 4, it is characterized in that, second of typesetting further includes:
Equal proportion is carried out to picture according to picture length-width ratio and zooms in or out picture region in supreme or wide adaptable template, is removed
Behind region shared by picture, article abstract is shown in remaining area.
6. according to the method described in claim 5, it is characterized in that, described show that article abstract includes in remaining area:
Judge whether text importing region occupied area is more than threshold value, if then removing word only shows picture;
Otherwise by text importing in remaining area.
7. according to the method described in claim 1, it is characterized in that, the template includes:The position of each article block and size,
The position of each article block internal portions and size.
8. according to the method described in claim 1, applying in e-magazine, microblogging, blog, electronic newspaper, Internet news, figure
Piece, the fields RSS or GoogleReader.
9. a kind of electronic data composing device, which is characterized in that including:
Presetting module, for the template of default required typesetting, the template includes transverse screen template and/or vertical screen template;
Selecting module, for selecting corresponding template according to screen pattern;
First type-setting module carries out first time typesetting, the first time typesetting packet for treating typesetting electronic data using template
It includes selection transverse screen template or vertical screen template treats typesetting electronic data and carries out typesetting, using template to multiple articles in breviary page
Block is adjusted, and is adjusted to each article block;
Arrange parameter module, for the incidence relation according to preset condition arrange parameter, the parameter includes article title, picture
And/or article abstract, the incidence relation of the parameter include the position of the parameter and the relationship that is taken up space;
Second layout template treats typesetting electronic data using the incidence relation of parameter and carries out second of typesetting, in article block
Picture and text be adjusted;
Wherein, second type-setting module includes:
Judging submodule, for judging to wait for that the parameter preset of typesetting electronic data is constituted;
Submodule is handled without figure, if not including picture for parameter, reserved picture space is removed in masterplate, according to article
The number of words and font size of title reserve space needed for article title in a template, and other spaces in template are used for showing text
Chapter is made a summary;
The selecting module further includes:Subtemplate is extracted, is transverse screen mode for browse mode, then extracts preset transverse screen mould
Plate;Browse mode is vertical screen mode, then extracts preset vertical screen template.
10. device according to claim 9, which is characterized in that first type-setting module further includes:The first adjustment submodule
Block is adjusted each article block for being adjusted to one or more of breviary page article block using template;It is described
Breviary page includes one or more article blocks;
Second adjustment submodule, for being adjusted to article picture and text in the block.
11. device according to claim 9 or 10, which is characterized in that second type-setting module further includes:
There is figure to handle submodule, if including picture for parameter, according to the number of words and font size of article title, in a template
Space needed for reserved article title, picture are shown in reserved picture space, and other spaces in template are used for showing that article is plucked
It wants.
12. device according to claim 9, which is characterized in that second type-setting module further includes:
It is laid out submodule, for selecting imposition layout;The selection imposition layout includes:
If the length-width ratio of article summary region is more than the given factor in the length-width ratio divided by template of picture, using longitudinal row
Version layout, otherwise uses lateral imposition layout;
The longitudinal direction imposition layout is to be followed successively by article title, picture and article text from top to bottom in predeterminable area to be arranged
Row;
The transverse direction imposition layout is that article title is in the top of picture and article text in predeterminable area, and picture and article are just
Text arranges from left to right in the lower section of article title.
13. device according to claim 12, which is characterized in that second type-setting module further includes:Submodule is scaled,
Picture region in supreme or wide adaptable template is zoomed in or out for carrying out equal proportion to picture according to picture length-width ratio, is removed
Behind region shared by picture, article abstract is shown in remaining area.
14. device according to claim 13, which is characterized in that second type-setting module further includes:Judge processing
Module, for judging whether text importing region occupied area is more than threshold value, if then removing word only shows picture;Otherwise will
Text importing is in remaining area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510056787.8A CN104615587B (en) | 2012-06-21 | 2012-06-21 | A kind of electronic data composition method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510056787.8A CN104615587B (en) | 2012-06-21 | 2012-06-21 | A kind of electronic data composition method and device |
CN201210212442.3A CN102789448B (en) | 2012-06-21 | 2012-06-21 | Electronic data typesetting method and device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210212442.3A Division CN102789448B (en) | 2012-06-21 | 2012-06-21 | Electronic data typesetting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104615587A CN104615587A (en) | 2015-05-13 |
CN104615587B true CN104615587B (en) | 2018-09-04 |
Family
ID=53150039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510056787.8A Expired - Fee Related CN104615587B (en) | 2012-06-21 | 2012-06-21 | A kind of electronic data composition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104615587B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105260351B (en) * | 2015-09-10 | 2018-05-01 | 武汉改图网技术有限公司 | A kind of online self-help design method of printed matter based on adaptive masterplate |
CN111462280A (en) * | 2019-01-22 | 2020-07-28 | 北京嘀嘀无限科技发展有限公司 | Picture generation method and device, electronic equipment and computer storage medium |
CN110110290B (en) * | 2019-03-29 | 2020-10-16 | 北京点众科技股份有限公司 | Method and device for setting typesetting style of electronic book |
CN110084871B (en) * | 2019-05-06 | 2020-11-27 | 珠海格力电器股份有限公司 | Image typesetting method and device and electronic terminal |
CN111626036B (en) * | 2020-05-27 | 2021-04-30 | 南京蓝鲸人网络科技有限公司 | Image-text typesetting processing method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789448B (en) * | 2012-06-21 | 2015-03-18 | 北京奇虎科技有限公司 | Electronic data typesetting method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100554802B1 (en) * | 2003-06-05 | 2006-02-22 | 엘지전자 주식회사 | Method for controlling the display device of mobile phone for displaying the multimedia contents |
CN100530242C (en) * | 2007-09-14 | 2009-08-19 | 北大方正集团有限公司 | Picture and words typesetting method |
CN102033944B (en) * | 2010-12-21 | 2012-11-28 | 重庆新媒农信科技有限公司 | Mobile terminal-based web page display system and method |
CN102346646A (en) * | 2011-09-19 | 2012-02-08 | 百度在线网络技术(北京)有限公司 | Method and device for displaying contents on display screen of mobile terminal |
-
2012
- 2012-06-21 CN CN201510056787.8A patent/CN104615587B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789448B (en) * | 2012-06-21 | 2015-03-18 | 北京奇虎科技有限公司 | Electronic data typesetting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104615587A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102789448B (en) | Electronic data typesetting method and device | |
CN107015751B (en) | Optimal display and scaling of objects and text in a document | |
CN104615587B (en) | A kind of electronic data composition method and device | |
US20140250374A1 (en) | Information processing apparatus, method, and program | |
US20120026181A1 (en) | Viewable boundary feedback | |
US20090219248A1 (en) | Electronic device capable of showing page flip effect and method thereof | |
WO2019154197A1 (en) | Electronic book handwritten note display method, computing device and computer storage medium | |
US20130036113A1 (en) | System and Method for Automatically Providing a Graphical Layout Based on an Example Graphic Layout | |
CN104915186B (en) | A kind of method and apparatus making the page | |
US20150091809A1 (en) | Skeuomorphic ebook and tablet | |
US8898561B2 (en) | Method and device for determining a display mode of electronic documents | |
WO2014147767A1 (en) | Document processing device, document processing method, program, and information storage medium | |
WO2020125481A1 (en) | Method for generating identification pattern, and terminal device | |
US20180357206A1 (en) | Content inker | |
CN113741763A (en) | Electronic book display method and device and electronic equipment | |
CN107861711B (en) | Page adaptation method and device | |
US9256592B1 (en) | System for detecting and correcting broken words | |
US20110286662A1 (en) | System for building a personalized-character database and method thereof | |
US20140351679A1 (en) | System and method for creating and/or browsing digital comics | |
JP2011086050A (en) | Information processing terminal and computer program | |
JP5551986B2 (en) | Information processing apparatus, information processing method, and program | |
US8520030B2 (en) | On-screen marker to assist usability while scrolling | |
US20210073458A1 (en) | Comic data display system, method, and program | |
CN115390976A (en) | Layout method of interface design, display method of interface and related equipment | |
CN106598315B (en) | Touch display device and background image replacement 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180904 Termination date: 20210621 |
|
CF01 | Termination of patent right due to non-payment of annual fee |