CN107229607A - The partitioning method and device of space of a whole page content trough - Google Patents

The partitioning method and device of space of a whole page content trough Download PDF

Info

Publication number
CN107229607A
CN107229607A CN201610179146.6A CN201610179146A CN107229607A CN 107229607 A CN107229607 A CN 107229607A CN 201610179146 A CN201610179146 A CN 201610179146A CN 107229607 A CN107229607 A CN 107229607A
Authority
CN
China
Prior art keywords
area
space
whole page
rectangular area
maximum rectangular
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.)
Pending
Application number
CN201610179146.6A
Other languages
Chinese (zh)
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201610179146.6A priority Critical patent/CN107229607A/en
Publication of CN107229607A publication Critical patent/CN107229607A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Abstract

The embodiment of the present invention provides a kind of partitioning method and device of space of a whole page content trough, wherein, this method includes:Obtain default first position information of the advertising area on the space of a whole page;According to the first position information, the second place information of the maximum rectangular area of blank area on the space of a whole page is determined;The trough for putting the space of a whole page is drawn according to the second place information.The partitioning method and device of space of a whole page content trough provided in an embodiment of the present invention, can reduce the workload of typesetting, improve the efficiency of typesetting.

Description

The partitioning method and device of space of a whole page content trough
Technical field
The present embodiments relate to stroke of typesetting system field, more particularly to a kind of space of a whole page content trough Divide method and device.
Background technology
The operation that position is arranged for space advertising is referred to as " drawing version " in newspaper making field.And In practical operation, user draws federation after version, and standardized trough is used for the content for showing the space of a whole page again.This is pre- It is to be located at the maximum rectangular area of the area do not drawn in edition region to stay area.In the prior art, this The division in individual region is typically by artificially being judged and being set.
But, because the space of a whole page of newspaper is more, the content of each space of a whole page and advertisement are also not quite similar, Therefore, in the partition process of each space of a whole page, content and advertisement according to each space of a whole page are required to trough Position carry out judgement and division again, this considerably increases the workload of typesetting, have impact on newspaper The efficiency of typesetting.
The content of the invention
The embodiment of the present invention provides a kind of partitioning method and device of space of a whole page content trough, to the row of reduction The workload of version, improves the efficiency of typesetting.
First aspect of the embodiment of the present invention provides a kind of division methods of space of a whole page content trough, this method bag Include:
Obtain default first position information of the advertising area on the space of a whole page;
According to the first position information, the of the maximum rectangular area of blank area on the space of a whole page is determined Two positional informations;
The trough for putting the space of a whole page is drawn according to the second place information.
Second aspect of the embodiment of the present invention provides a kind of division device of space of a whole page content trough, the device bag Include:
Acquisition module, for obtaining first position information of the default advertising area on the space of a whole page;
Determining module, for according to the first position information, determining that blank area is maximum on the space of a whole page Rectangular area second place information;
Setup module, the trough of the space of a whole page is put for being drawn according to the second place information.
The embodiment of the present invention, by default first position information of the advertising area on the space of a whole page of basis, it is determined that The second place information of the maximum rectangular area of blank area on the space of a whole page, and drawn according to the second place information The trough of the space of a whole page is put, the workload during typesetting is reduced, the efficiency of typesetting is improved.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be right The accompanying drawing used required in embodiment or description of the prior art is briefly described, it should be apparent that, Drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art For, without having to pay creative labor, it can also obtain other according to these accompanying drawings Accompanying drawing.
The flow signal of the division methods for the space of a whole page content trough that Fig. 1 provides for one embodiment of the invention Figure;
Fig. 2 is position view of the advertising area on the space of a whole page
The flow of the division methods for the space of a whole page content trough that Fig. 3 provides for further embodiment of this invention is shown It is intended to;
Layout structure schematic diagram when Fig. 4 is in the presence of two default advertising area;
The structural representation of the division device for the space of a whole page content trough that Fig. 5 provides for one embodiment of the invention Figure;
The structure of the division device for the space of a whole page content trough that Fig. 6 provides for further embodiment of this invention is shown It is intended to.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the invention, and The embodiment being not all of.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
The term " comprising " and " having " of description and claims of this specification and their times What is deformed, it is intended that covering is non-exclusive to be included, for example, containing the process or knot of series of steps The device of structure is not necessarily limited to those structures clearly listed or step but may include not list clearly Or for these processes or device intrinsic other steps or structure.
The flow signal of the division methods for the space of a whole page content trough that Fig. 1 provides for one embodiment of the invention Figure, this method can be performed by the division device of a space of a whole page content trough.As shown in figure 1, this reality The method for applying example offer comprises the following steps:
Step S101, default first position information of the advertising area on the space of a whole page of acquisition.
Specifically, by taking newspaper typesetting as an example, one may be provided with a space of a whole page of newspaper is used to place The region of ad content, it is also possible to while being provided with multiple regions for being used to place ad content, these areas Domain is once set, and its coordinate position being located in newspaper layout is that can determine that.In the present embodiment, described One positional information is can be including constituting seat of each bar zone boundary of each advertising area in newspaper layout Mark information.
Step S102, according to the first position information, determine the maximum square of blank area on the space of a whole page The second place information in shape region.
It is determined that each advertising area each bar zone boundary coordinate information after, according to each bar regional edge The coordinate information on boundary, it may be determined that each position of the advertising area in the space of a whole page, so that according to each advertisement Position of the region in the space of a whole page, you can determine blank area on the region in the space of a whole page in addition to each advertising area The position of maximum rectangular area.
Fig. 2 is position view of the advertising area on the space of a whole page, without loss of generality, shown in Fig. 2 It is the situation of only one of which advertising area on the space of a whole page.As shown in Fig. 2 after the position of advertising area is determined, Positioned at the borderline coboundary in its closed area, lower boundary, left margin, right margin coordinate can be unique It is determined that.It is determined that after the coordinate of its four edges circle, the blank in its peripheral region can be uniquely determined The position of the maximum rectangular area of area, i.e., can uniquely determine the maximum rectangular area of the blank area Positional information of each bar border on the space of a whole page.
Step S103, drawn according to the second place information and put the trough of the space of a whole page.
, then can be according to the specifying information of space of a whole page content the specifically, after second place information is obtained Two positional informations are divided on corresponding region to trough.Wherein, the specifying information bag of space of a whole page content The number of word quantity included, if including pictorial information etc..
, then can be according in space of a whole page content so that the specifying information of space of a whole page content includes pictorial information as an example The part in the corresponding region of second place information is divided into trough or complete by word number and picture number Portion's region division is trough.
The present embodiment, by according to default first position information of the advertising area on the space of a whole page, determining the space of a whole page The second place information of the maximum rectangular area of upper blank area, and version is put according to the second place information stroke The trough in face, reduces the workload during typesetting, improves the efficiency of typesetting.
The flow signal of the division methods for the space of a whole page content trough that Fig. 3 provides for further embodiment of this invention Figure, as shown in figure 3, the present embodiment is on the basis of embodiment illustrated in fig. 1, comprises the following steps:
Step S201, default first position information of the advertising area on the space of a whole page of acquisition.
Step S202, determine from the default advertising area to refer to advertising area, and from described first Threeth positional information of the reference advertising area on the space of a whole page is obtained in confidence breath.
In the present embodiment, default advertising area may be one or more.When default advertising area is When multiple, an advertisement area can be selected from default advertising area by randomly selected mode Domain is as referring to advertising area.And in it is determined that after with reference to advertising area, being obtained from the information of first position should With reference to coordinate information (i.e. threeth positional information) of the advertising area on the space of a whole page.
Particularly, when default advertising area only one of which, first position information is the 3rd positional information, With reference to advertising area and default advertising area.
Step S203, according to the 3rd positional information, determine on the space of a whole page be located at the reference advertisement The area of each maximum rectangular area in the surrounding of region.
By taking Fig. 2 as an example, without loss of generality, when with reference to advertising area (i.e. advertising area in Fig. 2) After position on the space of a whole page is determined, the borderline coboundary in its closed area, lower boundary, left margin, the right side The coordinate on border can be uniquely determined., can be according to its each bar side it is determined that after the coordinate of its four edges circle The coordinate on boundary, determines four areas on the white space around it on four direction of upper and lower, left and right Maximum rectangular area.Further, can be easy according to the coordinate on each bar side for constituting each rectangular area Obtain the area of each rectangular area.
Step S204, determine in each maximum rectangular area whether to include except the reference advertising area with Other outer default advertising areas, if so, then performing step S205, otherwise, perform step S206- steps Rapid S208.
This step is actually to determine whether default advertising area is multiple situations, i.e., when determination is present When including default advertising area in one or more maximum rectangular areas, then illustrate default advertisement Region is multiple, and otherwise default advertising area is one, i.e., with reference to advertising area.
Step S205, the positional information for determining the maximum rectangular area of area in each maximum rectangular area For the second place information.
This step is the situation for only existing a default advertising area, its specific executive mode such as Fig. 2 institutes The acquisition methods for the structure shown are similar, repeat no more herein.
Step S206, determine position letter of the default advertising area in the described first maximum rectangular area Breath.
This step is the presence of multiple default advertising areas, as shown in figure 4, Fig. 4 is to have two In layout structure schematic diagram during individual default advertising area, Fig. 4, advertising area A is to refer to advertising area, Advertising area B is another default advertising area, wherein, advertising area B is located at advertising area A institutes On the left of the position in the rectangular area BR of white space, then can according to advertising area B coordinate, it is determined that Positional informations of the advertising area B in the BR of region.
Step S207, according to the positional information, determine in the described first maximum rectangular area except described pre- If the area of the rectangular area of the white space area maximum beyond advertising area.
It is step S208, second in the area of the rectangular area and each maximum rectangular area is maximum The area of rectangular area is compared, and regard the positional information in the larger region of area as the second place Information, wherein the described second maximum rectangular area is maximum to remove described first in each maximum rectangular area The region of area maximum beyond rectangular area.
Step S209, drawn according to the second place information and put the trough of the space of a whole page.
The present embodiment, by according to default first position information of the advertising area on the space of a whole page, determining the space of a whole page The second place information of the maximum rectangular area of upper blank area, and version is put according to the second place information stroke The trough in face, reduces the workload during typesetting, improves the efficiency of typesetting.
The structural representation of the division device for the space of a whole page content trough that Fig. 5 provides for one embodiment of the invention Figure, as shown in figure 5, the division device for the space of a whole page content trough that the present embodiment is provided, including:
Acquisition module 10, for obtaining first position information of the default advertising area on the space of a whole page;
Determining module 20, for according to the first position information, determining that blank area is most on the space of a whole page The second place information of big rectangular area;
Setup module 30, the trough of the space of a whole page is put for being drawn according to the second place information.
Wherein, the setup module 30, puts specifically for the corresponding region of the second place information is drawn For the trough.
The division device for the space of a whole page content trough that the present embodiment is provided, can be used in performing real shown in Fig. 1 The method for applying example, its specific executive mode and beneficial effect are similar with embodiment illustrated in fig. 1, herein Repeat no more.
The structural representation of the division device for the space of a whole page content trough that Fig. 6 provides for further embodiment of this invention Figure, as shown in fig. 6, the present embodiment is on the basis of Fig. 5 shown devices, the determining module 20, bag Include:
First determination sub-module 201, for determining to refer to advertising area from the default advertising area;
Acquisition submodule 202, exists for obtaining the reference advertising area from the first position information The 3rd positional information on the space of a whole page;
Second determination sub-module 203, for according to the 3rd positional information, determining that the space of a whole page is upper Area in each maximum rectangular area in the reference advertising area surrounding;
3rd determination sub-module 204, for determining whether included in each maximum rectangular area except described With reference to other default advertising areas beyond advertising area;
If not including, it is determined that the position letter of the maximum rectangular area of area in each maximum rectangular area Cease for the second place information.
7th, the division device of space of a whole page content trough according to claim 6, it is characterised in that institute The 3rd determination sub-module 204 is stated, is additionally operable to:
If there is the first maximum rectangle region comprising the default advertising area in each maximum rectangular area Domain, it is determined that positional information of the default advertising area in the described first maximum rectangular area;
According to the positional information, determine to remove the default advertising area in the described first maximum rectangular area The area of the maximum rectangular area of white space area in addition;
By the second maximum rectangular area in the area of the rectangular area and each maximum rectangular area Area is compared, using the positional information in the larger region of area as the second place information, wherein The second maximum rectangular area be in each maximum rectangular area except the described first maximum rectangular area with The maximum region of outer area.
The division device for the space of a whole page content trough that the present embodiment is provided, can be used in performing real shown in Fig. 3 The method for applying example, its specific executive mode and beneficial effect are similar with embodiment illustrated in fig. 3, herein Repeat no more.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right It is limited;Although the present invention is described in detail with reference to foregoing embodiments, this area it is common Technical staff should be understood:It can still modify to the technical scheme described in foregoing embodiments, Or equivalent substitution is carried out to which part or all technical characteristic;And these modifications or replacement, and The essence of appropriate technical solution is not set to depart from the scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a kind of division methods of space of a whole page content trough, it is characterised in that including:
Obtain default first position information of the advertising area on the space of a whole page;
According to the first position information, the of the maximum rectangular area of blank area on the space of a whole page is determined Two positional informations;
The trough for putting the space of a whole page is drawn according to the second place information.
2. according to the method described in claim 1, it is characterised in that described to be believed according to the first position Breath, determines the second place information of the maximum rectangular area of blank area on the space of a whole page, including:
Determine to refer to advertising area from the default advertising area, and obtained from the first position information Take threeth positional information of the reference advertising area on the space of a whole page;
According to the 3rd positional information, determine to be located in the reference advertising area surrounding on the space of a whole page Each maximum rectangular area area;
Determine in each maximum rectangular area whether comprising in addition to the reference advertising area other are pre- If advertising area;
If not including, it is determined that the position letter of the maximum rectangular area of area in each maximum rectangular area Cease for the second place information.
3. method according to claim 2, it is characterised in that described to be believed according to the first position Breath, determines the second place information of the maximum rectangular area of blank area on the space of a whole page, in addition to;
If there is the first maximum rectangle region comprising the default advertising area in each maximum rectangular area Domain, it is determined that positional information of the default advertising area in the described first maximum rectangular area;
According to the positional information, determine to remove the default advertising area in the described first maximum rectangular area The area of the maximum rectangular area of white space area in addition;
By the second maximum rectangular area in the area of the rectangular area and each maximum rectangular area Area is compared, using the positional information in the larger region of area as the second place information, wherein The second maximum rectangular area be in each maximum rectangular area except the described first maximum rectangular area with The maximum region of outer area.
4. the method according to claim any one of 1-3, it is characterised in that described according to described Two positional informations draw the trough for putting the space of a whole page, including:
The corresponding region of the second place information is drawn and is set to the trough.
5. a kind of division device of space of a whole page content trough, it is characterised in that including:
Acquisition module, for obtaining first position information of the default advertising area on the space of a whole page;
Determining module, for according to the first position information, determining that blank area is maximum on the space of a whole page Rectangular area second place information;
Setup module, the trough of the space of a whole page is put for being drawn according to the second place information.
6. the division device of space of a whole page content trough according to claim 5, it is characterised in that institute Determining module is stated, including:
First determination sub-module, for determining to refer to advertising area from the default advertising area;
Acquisition submodule, for obtaining the reference advertising area from the first position information described The 3rd positional information on the space of a whole page;
Second determination sub-module, for according to the 3rd positional information, determining to be located at institute on the space of a whole page State the area with reference to each maximum rectangular area in advertising area surrounding;
3rd determination sub-module, the reference is removed for determining whether to include in each maximum rectangular area Other default advertising areas beyond advertising area;
If not including, it is determined that the position letter of the maximum rectangular area of area in each maximum rectangular area Cease for the second place information.
7. the division device of space of a whole page content trough according to claim 6, it is characterised in that institute The 3rd determination sub-module is stated, is additionally operable to:
If there is the first maximum rectangle region comprising the default advertising area in each maximum rectangular area Domain, it is determined that positional information of the default advertising area in the described first maximum rectangular area;
According to the positional information, determine to remove the default advertising area in the described first maximum rectangular area The area of the maximum rectangular area of white space area in addition;
By the second maximum rectangular area in the area of the rectangular area and each maximum rectangular area Area is compared, using the positional information in the larger region of area as the second place information, wherein The second maximum rectangular area be in each maximum rectangular area except the described first maximum rectangular area with The maximum region of outer area.
8. the division device of the space of a whole page content trough according to claim 5-7, it is characterised in that The setup module, specifically for:
The corresponding region of the second place information is drawn and is set to the trough.
CN201610179146.6A 2016-03-25 2016-03-25 The partitioning method and device of space of a whole page content trough Pending CN107229607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610179146.6A CN107229607A (en) 2016-03-25 2016-03-25 The partitioning method and device of space of a whole page content trough

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610179146.6A CN107229607A (en) 2016-03-25 2016-03-25 The partitioning method and device of space of a whole page content trough

Publications (1)

Publication Number Publication Date
CN107229607A true CN107229607A (en) 2017-10-03

Family

ID=59932562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610179146.6A Pending CN107229607A (en) 2016-03-25 2016-03-25 The partitioning method and device of space of a whole page content trough

Country Status (1)

Country Link
CN (1) CN107229607A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808421A (en) * 2006-02-14 2006-07-26 北京北大方正电子有限公司 Typesetting system and method based on electronic sample paper
CN101013419A (en) * 2007-02-15 2007-08-08 北京北大方正电子有限公司 Automatic positioning method and apparatus for manual imposition and anti-overlapping
CN104572610A (en) * 2013-10-24 2015-04-29 北大方正集团有限公司 Method and device for automatic imposition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808421A (en) * 2006-02-14 2006-07-26 北京北大方正电子有限公司 Typesetting system and method based on electronic sample paper
CN101013419A (en) * 2007-02-15 2007-08-08 北京北大方正电子有限公司 Automatic positioning method and apparatus for manual imposition and anti-overlapping
CN104572610A (en) * 2013-10-24 2015-04-29 北大方正集团有限公司 Method and device for automatic imposition

Similar Documents

Publication Publication Date Title
Gupta et al. Beyond ‘culture’: space, identity, and the politics of difference
CN110381369B (en) Method, device and equipment for determining recommended information implantation position and storage medium
CN104038807B (en) A kind of figure layer mixed method and device based on OpenGL
CN109934241A (en) It can be integrated into Image Multiscale information extracting method and the application in neural network framework
CN109447072A (en) Thumbnail clipping method and device, electronic equipment and readable storage medium
CN102156865A (en) Handwritten text line character segmentation method and identification method
CN102592132A (en) System and method for classifying digital image data
CN106775600A (en) The processing method and processing device of HTML5 canvas painting canvas
US9965894B2 (en) Three-dimensional map display system
CN108255489A (en) Front-end interface code generating method, device, electronic equipment and storage medium
CN106610926A (en) Data display method and device for Echarts (Enterprise Charts)
CN105931180A (en) Salient information guided image irregular mosaic splicing method
CN108961266A (en) A kind of region partitioning method and device
CN105975264A (en) Implementation method and device of character control
CN101290656B (en) Connected region extraction method and apparatus for copy block analysis
CN105068984A (en) Automatic puzzling and typesetting method
CN105389403A (en) Automatic matching method and system of page style
CN107229607A (en) The partitioning method and device of space of a whole page content trough
CN105718439B (en) A kind of photo automatic composing method based on recognition of face
CN111382223A (en) Electronic map display method, terminal and electronic equipment
CN106898245A (en) The mask method and device of a kind of writing
CN101593456A (en) A kind of quick self-adaptive layout method of The Key to Maps
CN107833227A (en) A kind of method for drafting and its system of circular clipping region
CN105654542B (en) virtual airport model surface texture projection rendering method
CN103258337A (en) Method and device for drawing map

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171003