Specific implementation mode
Fig. 1 is the platoon implementation method flow chart of structuring typesetting provided in an embodiment of the present invention.Needle of the embodiment of the present invention
To at present mainly with the process of platoon is realized in typesetting again manually, but the repeatability being manually operated is high, efficiency is low, the row of causing
Version is less efficient, provides the platoon implementation method of structuring typesetting, this method is as follows:
Step S101, the duty ratio and the second target article of detection first object article last page white space
Prime direction.
The executive agent of the present embodiment can be the equipment such as computer, scanner, printer, printing machine, optionally, in terms of
Calculation machine is executive agent, and computer storage needs the electronic document of typesetting, and each electronic document includes fixed format, for example,
Each electronic document include title, author, Chinese abstract, Chinese key, english abstract, English keyword, body matter,
Homepage comment field, figure, table, reference source etc..Computer can detect that accounting for for each electronic document last page white space
Empty ratio, the duty ratio of white space refer to the size and electronic document last page of the white space of electronic document last page
The area of the ratio of page-size, white space is bigger, and the duty ratio of white space is bigger, the white space can be used for typesetting its
The content of his electronic document, to make full use of the white space of each electronic document last page.
In addition, the prime direction of each electronic document is can be set by the user, the prime direction of electronic document can be with
It is fixed, can also be unfixed.For example, the every page of electronic document is segmented into the left and right sides, electricity can be arranged in user
The fixation of subdocument content queues on the left of certain one page, or fixation queues on the right side of certain one page, and electronic document can also be arranged
The prime direction that content can queue i.e. electronic document from the left side of certain one page, right side is not fixed.Computer can be according to user couple
The setting of the prime direction of electronic document content determines the prime direction of each electronic document.
Step S102, according to the duty ratio of the first object article last page white space and second target text
The prime direction of chapter, it is determined whether need to carry out platoon processing, institute to the first object article and the second target article
Platoon processing is stated for the first object article and the second target article to be carried out continuous typesetting.
In this example, it is assumed that store a certain periodicals and magazines to be edited in computer, which includes the
One target article and the second target article, first object article comes before the second target article, and first object article is most
There are white space, the second target articles to be arranged since lower one page of first object article last page for the next page, optionally,
If the duty ratio of first object article last page white space is more than preset value, and the prime direction of the second target article is not solid
It is fixed to be queued from the left side of certain one page, right side, then continuous typesetting can be carried out to first object article and the second target article.
If the duty ratio of first object article last page white space is less than preset value, alternatively, the second target article
When prime direction is fixed, first object article and the second target article cannot platoons.
Step S103, platoon processing if desired is carried out to the first object article and the second target article, then will
The typesetting since the initial row of the white space of the first object article last page of the content of the second target article.
When carrying out continuous typesetting to first object article and the second target article, by the content of the second target article
The typesetting since the initial row of the white space of the first object article last page, the i.e. end of text of first object article
Afterwards, the content for starting the second target article described in typesetting in the next line for terminating content, so that first object article and the second mesh
White space is not present between mark article.
The duty ratio and the second target that the embodiment of the present invention passes through detection first object article last page white space
The prime direction of article, according to the starting side of the duty ratio and the second target article of first object article last page white space
To continuous typesetting being carried out to first object article and the second target article, automatically by the content of the second target article from the first mesh
The initial row for marking the white space of article last page starts typesetting, compared to manual operation, improves typesetting efficiency.
Fig. 2 is the platoon implementation method flow chart for the structuring typesetting that another embodiment of the present invention provides.In above-mentioned implementation
On the basis of example, the prime direction of the second target article includes following at least one:Verso plays row, recto plays row, left and right
The row of rising.The platoon implementation method of structuring typesetting provided in this embodiment specifically comprises the following steps:
Step S201, the duty ratio and the second target article of detection first object article last page white space
Prime direction.
Step S201 is consistent with step S101, and details are not described herein again for specific method.
If the duty ratio of step S202, the described first object article last page white space is more than preset value, and described
The prime direction of second target article is the row of left and right, it is determined that is needed to the first object article and second target text
The processing of Zhang Jinhang platoons.
In the present embodiment, the first object article and the second target article belong to the same column, and same
Two articles of column can carry out platoon, and two articles for being not belonging to same column cannot platoon.
In this example, it is assumed that the preset value for the duty ratio of weighing white space is 1/3, i.e. first object article
When the duty ratio of last page white space is more than 1/3, first object article last page white space can be with other texts of platoon
The content of chapter, if the duty ratio of first object article last page white space is less than 1/3, first object article last page
White space cannot platoon other articles content.
In this example, the first object article and the second target article belong to the same column, first object
The duty ratio of article last page white space is more than 1/3, and the prime direction of the second target article is the row of left and right, i.e.,
The prime direction of second target article is not fixed, then can carry out continuous typesetting to first object article and the second target article.
Step S203, by the content of the second target article from the white space of the first object article last page
Initial row start typesetting.
When carrying out continuous typesetting to first object article and the second target article, by the content of the second target article
The typesetting since the initial row of the white space of the first object article last page, the i.e. end of text of first object article
Afterwards, the content for starting the second target article described in typesetting in the next line for terminating content, so that first object article and the second mesh
White space is not present between mark article.
It is illustrated in figure 3 the typesetting schematic diagram of first object article and the second target article before platoon, is illustrated in figure 4
The typesetting schematic diagram of first object article and the second target article after platoon, as shown in figure 4, the title of the second target article connects
After having come the second target article latter end, so as to which clear area is not present between first object article and the second target article
Domain, saves memory space, when publication, can also save and publish paper used.By the body matter of the second target article
Initial position is adjusted to the last page clear area of first object article;After two articles merge, although one layout region is changed,
But still be two articles, the structured message of two articles can all retain.
Step S204, by the homepage comment field of the second target article be adjusted to the first object article last
Below the white space of page.
The homepage comment field of the second target article is scalable region.
In addition, as shown in figure 3, the second target article further includes homepage comment field, when first object article and the second mesh
After marking the continuous typesetting of article, the homepage comment field of the second target article is adjustable to the sky of former first object article last page
Below white region.In addition, the homepage comment field of the second target article can also be stretching region, i.e., its area size can
With setting, can also hide, the setting that computer can be according to user to the attribute of homepage comment field, to homepage comment field into
Row adjustment.
Step S205, the program logo of the affiliated column of the second target article is deleted.
In addition, as shown in figure 3, the second target article further includes name of tv column " Applied Anatomy and clinic ", to the first mesh
After marking article and the continuous typesetting of the second target article progress, as shown in figure 4, the name of tv column of the second target article i.e. the second target
The program logo of the affiliated column of article can be deleted.
After the present embodiment to first object article and the second target article by carrying out continuous typesetting, to the second target article
Homepage comment field be adjusted, delete the second target article name of tv column, increase and the space of a whole page be adjusted flexibly.
Fig. 5 is the structure chart of the platoon realization device of structuring typesetting provided in an embodiment of the present invention.The embodiment of the present invention
The platoon realization device of the structuring typesetting of offer can execute the place that the platoon implementation method embodiment of structuring typesetting provides
Flow is managed, as shown in figure 5, the platoon realization device 50 of structuring typesetting includes detection module 51, determining module 52 and typesetting mould
Block 53, wherein detection module 51 is used to detect the duty ratio and the second target of first object article last page white space
The prime direction of article;Determining module 52 is used for the duty ratio according to the first object article last page white space and institute
State the prime direction of the second target article, it is determined whether need to carry out the first object article and the second target article
Platoon processing, the platoon processing by the first object article and the second target article for carrying out continuous typesetting;Row
Version module 53 is used for when needing to carry out platoon processing to the first object article and the second target article, by described the
The typesetting since the initial row of the white space of the first object article last page of the content of two target articles.
The duty ratio and the second target that the embodiment of the present invention passes through detection first object article last page white space
The prime direction of article, according to the starting side of the duty ratio and the second target article of first object article last page white space
To continuous typesetting being carried out to first object article and the second target article, automatically by the content of the second target article from the first mesh
The initial row for marking the white space of article last page starts typesetting, compared to manual operation, improves typesetting efficiency.
Fig. 6 is the structure chart of the platoon realization device for the structuring typesetting that another embodiment of the present invention provides.In above-mentioned reality
On the basis of applying example, the prime direction of the second target article includes following at least one:Verso plays row, recto plays row, left
It arranges from right to left.
Determining module 52 is specifically used for:If the duty ratio of the first object article last page white space is more than default
Value, and the prime direction of the second target article is control row, it is determined that needs are to the first object article and described
Second target article carries out platoon processing;Wherein, the first object article and the second target article belong to the same column
Mesh.
In addition, the platoon realization device 50 of structuring typesetting further includes adjustment module 54, adjustment module 54 is used for will be described
The homepage comment field of second target article is adjusted to below the white space of the first object article last page.
In addition, the homepage comment field of the second target article is scalable region;Adjustment module 54 is additionally operable to delete
The program logo of the affiliated column of second target article.
The platoon realization device of structuring typesetting provided in an embodiment of the present invention can be specifically used for the above-mentioned Fig. 1 of execution and be carried
The embodiment of the method for confession, details are not described herein again for concrete function.
After the embodiment of the present invention to first object article and the second target article by carrying out continuous typesetting, to the second target
The homepage comment field of article is adjusted, and is deleted the name of tv column of the second target article, is increased and the space of a whole page is adjusted flexibly.
In conclusion duty ratio of the embodiment of the present invention by detection first object article last page white space, with
And second target article prime direction, according to the duty ratio of first object article last page white space and the second target text
The prime direction of chapter carries out continuous typesetting to first object article and the second target article, automatically will be in the second target article
Hold the typesetting since the initial row of the white space of first object article last page and improves typesetting compared to manual operation
Efficiency;After carrying out continuous typesetting to first object article and the second target article, the homepage of the second target article is annotated
Region is adjusted, and is deleted the name of tv column of the second target article, is increased and the space of a whole page is adjusted flexibly.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module
Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed
At the internal structure of device being divided into different function modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.