CN109829148A - Composition method and device - Google Patents
Composition method and device Download PDFInfo
- Publication number
- CN109829148A CN109829148A CN201711182028.1A CN201711182028A CN109829148A CN 109829148 A CN109829148 A CN 109829148A CN 201711182028 A CN201711182028 A CN 201711182028A CN 109829148 A CN109829148 A CN 109829148A
- Authority
- CN
- China
- Prior art keywords
- title
- typesetting
- runs
- attribute
- running
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The present invention provides a kind of composition method and device.This method comprises: obtaining the attribute that runs in of titles at different levels, the attribute that runs in of the title includes run in subsequent paragraph and subsequent paragraph of not running in;According to the attribute that runs in of the titles at different levels, each title treated in type-setting document carries out typesetting of running in.Method of the invention, by the attribute that runs in for obtaining titles at different levels, the attribute that runs in of title includes run in subsequent paragraph and subsequent paragraph of not running in, according to the attribute that runs in of titles at different levels, determine whether titles at different levels run in subsequent paragraph, to complete to treat the typesetting of running in of each title in type-setting document, realize the typesetting of running in title each in type-setting document, the relationship of running between each title and subsequent paragraph is manually adjusted without typesetting personnel, the workload for greatly reducing typesetting personnel improves typesetting efficiency.
Description
Technical field
The present invention relates to typesetting system field more particularly to a kind of composition methods and device.
Background technique
Typesetting is the important link published, and is realized in current composing system traditional artificial use is interactive
Desk-top publishing software rotates into row typesetting and is transferred to automates composing system beyond the clouds, improves typesetting efficiency, has saved manpower money
Source has been widely used.
In books and technical journal, title is more, generally includes the title of multiple ranks.And then title may be another
One title, it is also possible to the text paragraph of non-title.In general, typesetting personnel wish the title of some low levels do not have to it is independent at
Section, but directly run in the text paragraph of non-title in header.But current composing system is when carrying out typesetting,
It is usually that all titles is all independent at section, the paragraph of such text can it is excessively broken, space of a whole page effect is bad, need typesetting personnel's hand
The dynamic relationship of running in adjusted between each title and the text paragraph of subsequent non-title, heavy workload, low efficiency.
Summary of the invention
The present invention provides a kind of composition method and device, to solve current composing system when carrying out typesetting, usually
Be all titles is all independent at section, the paragraph of such text can it is excessively broken, space of a whole page effect is bad, need typesetting personnel to adjust manually
The problem of relationship of running between whole each title and the text paragraph of subsequent non-title, heavy workload, low efficiency.
It is an aspect of the invention to provide a kind of composition methods, comprising:
Obtain the attribute that runs in of titles at different levels, the attribute that runs in of the title includes running in subsequent paragraph and not run in
Subsequent paragraph;
According to the attribute that runs in of the titles at different levels, each title treated in type-setting document carries out typesetting of running in.
Another aspect of the present invention is to provide a kind of composing device, comprising:
Module is obtained, for obtaining the attribute that runs in of titles at different levels, the attribute that runs in of the title includes after running in
Continuous paragraph and subsequent paragraph of not running in;
Type-setting module, for the attribute that runs according to the titles at different levels, treat each title in type-setting document into
Capable typesetting of running in.
Composition method and device provided by the invention, by obtaining the attribute that runs in of titles at different levels, title runs in
Attribute determines at different levels including run in subsequent paragraph and subsequent paragraph of not running according to the attribute that runs in of titles at different levels
Title subsequent paragraph of whether running in realizes so that each title treated in type-setting document carries out typesetting of running in type-setting document
In each title typesetting of running in, manually adjust the relationship of running between each title and subsequent paragraph without typesetting personnel, drop significantly
The low workload of typesetting personnel, improves typesetting efficiency.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the composition method flow chart that the embodiment of the present invention one provides;
Fig. 2 is composition method flow chart provided by Embodiment 2 of the present invention;
Fig. 3 is typesetting effect diagram provided by Embodiment 2 of the present invention;
Fig. 4 is that blood brother title provided by Embodiment 2 of the present invention runs in the typesetting effect diagram that mode is consistent;
Fig. 5 is the structural schematic diagram for the composing device that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for the composing device that the embodiment of the present invention four provides.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate idea of the invention.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Noun according to the present invention is explained first:
Head level: for head level from 1 to N, N is the positive integer greater than 1.1 grade be highest level, N grades be lowest level,
The rank of the bigger expression of number of levels is lower.In general, the title pattern of same rank is consistent, and the title pattern of different stage is not
Unanimously, the higher title of rank is more eye-catching.
Title runs in: in general, there are subsequent paragraphs for some header, has a new paragraph carry out typesetting if necessary, that
It is known as the title not run in subsequent paragraph.If subsequent paragraph followed by title is known as the mark in same paragraph layout
Inscribe subsequent paragraph of running in.
Blood brother title: all subtitles of a title, referred to as blood brother title.
Forbid bottom line title: if title, which is provided with, forbids bottom line title, if the title be placed on after typesetting a column or
The title is put into next group or lower one page automatically by the bottom of person's one page, that is to say that the title is provided with the effect for forbidding bottom line title
Fruit.In general, title should not be placed on the bottom an of column or one page, behind the paragraph that does not follow.
It is multiple: to refer to two or more.
These specific embodiments can be combined with each other below, may be at certain for the same or similar concept or process
It is repeated no more in a little embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Embodiment one
Fig. 1 is the composition method flow chart that the embodiment of the present invention one provides.The embodiment of the present invention is directed to current typesetting system
System is when carrying out typesetting, usually by all titles all independence at section, the paragraph of such text can excessively broken, space of a whole page effect not
It is good, need typesetting personnel to manually adjust the relationship of running between each title and the text paragraph of subsequent non-title, heavy workload, effect
The low problem of rate, provides composition method.Such as Fig. 1, specific step is as follows for this method:
Step S101, obtain the attribute that runs in of titles at different levels, the attribute that runs in of title include run in subsequent paragraph and
Do not run in subsequent paragraph.
In practical applications, template file can be generated by user's design template, template file, which stores, meets publication mark
Quasi- typesetting pattern and typesetting rule.Automatic Typesetting tool, which can be formed the contribution intelligence structureization to typesetting, meets publication mark
Quasi- structured data file, such as XML file.Then, Automatic Typesetting tool closes template file and structured data file
At completing the automation typesetting respectively to typesetting contribution by way of label mapping.
In the present embodiment, the attribute that runs in of titles at different levels be can store in template file, in the step, by obtaining
Take template file that can get the attribute that runs in of titles at different levels.
It is alternatively possible to which the corresponding attribute that runs in is arranged for each rank, the title of same rank all has the rank pair
The attribute that runs in answered.For example, the attribute that runs in that level-one title can be set is subsequent paragraph of not running in, it can also be from pre-set level
Start, pre-set level and the attribute that runs in lower than each rank title of pre-set level are subsequent paragraph of running in.Wherein, grade is preset
It not can be any head level.
In addition, can be actually needed by typesetting personnel before carrying out automation typesetting according to oneself in the present embodiment,
The attribute that runs in of titles at different levels is designed in template file;Or can also according to type to type-setting document, obtain with
The template file of the corresponding attribute that runs in including titles at different levels pre-set of type to type-setting document.For example,
The rule of typesetting of can running in a large amount of technical journal titles is summarized, and is summed up general title and is run in rule, according to this
A little general titles rule of running in generates template file, for the typesetting choice of members.For titles at different levels in the present embodiment
The attribute that runs in storage mode and acquisition modes be not specifically limited.
Step S102, according to the attribute that runs in of titles at different levels, each title treated in type-setting document carries out row of running in
Version.
In the present embodiment, after getting the attribute that runs in of titles at different levels, according to running in for titles at different levels
Attribute, each title treated in type-setting document carry out typesetting of running in, and can specifically be realized using following mode:
It is that the run in title of subsequent paragraph connects with subsequent paragraph by the attribute that runs according to the attribute that runs in of titles at different levels
Arrange typesetting, by the attribute that runs in be do not run in subsequent paragraph title independence at section typesetting.
Wherein, the typesetting of running in of title and subsequent paragraph is referred to title and a subsequent paragraph layout into a section
It falls.
Method provided in an embodiment of the present invention can be applied to template file and structural data in Automatic Typesetting tool
During file carries out Data Synthesis.Specifically, the attribute that runs in of titles at different levels can be by typesetting personnel in advance in mould
It being configured in plate file, Automatic Typesetting tool meets the structured data file of publishing standard according to generating to type-setting document,
Such as XML file, then the template file of the attribute that runs in including titles at different levels is counted with structured data file
It is handled according to synthesis, obtains the type-setting document for meeting user's publishing standard, so that the typesetting of type-setting document is treated in completion.
The embodiment of the present invention passes through the attribute that runs in for obtaining titles at different levels, and the attribute that runs in of title is subsequent including running in
It is subsequent to determine whether titles at different levels run according to the attribute that runs in of titles at different levels for paragraph and subsequent paragraph of not running in
Paragraph realizes the row of running in title each in type-setting document so that each title treated in type-setting document carries out typesetting of running in
Version, manually adjusts the relationship of running between each title and subsequent paragraph without typesetting personnel, greatly reduces the work of typesetting personnel
It measures, improves typesetting efficiency.
Embodiment two
Fig. 2 is composition method flow chart provided by Embodiment 2 of the present invention.On the basis of the above embodiment 1, this implementation
In example, according to the attribute that runs in of titles at different levels, each title treated in type-setting document carries out typesetting of running in, comprising: respectively
Using to each title in type-setting document as desired title, according to the category that runs in of the rank of desired title and title at different levels
Property, determine the attribute that runs in of desired title;If the attribute that runs in of desired title is subsequent paragraph of not running in, and desired title is only
Stand into section typesetting;If the attribute that runs in of desired title is subsequent paragraph of running in, right according to the number of desired title subsequent paragraph
Desired title carries out typesetting of running in.As shown in Fig. 2, specific step is as follows for this method:
Step S201, obtain the attribute that runs in of titles at different levels, the attribute that runs in of title include run in subsequent paragraph and
Do not run in subsequent paragraph.
In practical applications, template file can be generated by user's design template, template file, which stores, meets publication mark
Quasi- typesetting pattern and typesetting rule.Automatic Typesetting tool, which can be formed the contribution intelligence structureization to typesetting, meets publication mark
Quasi- structured data file, such as XML file.Then, Automatic Typesetting tool closes template file and structured data file
At completing the automation typesetting respectively to typesetting contribution by way of label mapping.
In the present embodiment, the attribute that runs in of titles at different levels be can store in template file, in the step, by obtaining
Take template file that can get the attribute that runs in of titles at different levels.
In addition, can be actually needed by typesetting personnel before carrying out automation typesetting according to oneself in the present embodiment,
The attribute that runs in of titles at different levels is designed in template file;Or can also according to type to type-setting document, obtain with
The template file of the corresponding attribute that runs in including titles at different levels pre-set of type to type-setting document.For example,
The rule of typesetting of can running in a large amount of technical journal titles is summarized, and is summed up general title and is run in rule, according to this
A little general titles rule of running in generates template file, for the typesetting choice of members.For titles at different levels in the present embodiment
The attribute that runs in storage mode and acquisition modes be not specifically limited.
Step S202, respectively using to each title in type-setting document as desired title, according to the rank of desired title
With the attribute that runs in of titles at different levels, the attribute that runs in of desired title is determined.
In the present embodiment, the corresponding attribute that runs in can be set for each rank, the title of same rank all has the grade
The not corresponding attribute that runs in.
For example, the attribute that runs in that level-one title can be set is not run in subsequent paragraph, can also since pre-set level,
Pre-set level and be to run in subsequent paragraph lower than the attribute that runs in of each rank title of pre-set level.Wherein, pre-set level can
To be any head level.
If step S203, the attribute that runs in of desired title is subsequent paragraph of not running in, desired title is independently arranged at section
Version.
In the present embodiment, if the attribute that runs in of desired title is subsequent paragraph of not running in, illustrate that desired title is level-one
Title or be the higher title of rank, the content under the usual higher title of rank is more, in order to enable the higher mesh of rank
It is more eye-catching to mark title, it is directly that desired title is independent at section typesetting in the step.
If step S204, the attribute that runs in of desired title is subsequent paragraph of running in, it is determined that desired title and next mark
Paragraph number between topic.
If the attribute that runs in of desired title is subsequent paragraph of running in, desired title and next title are further determined that
Between paragraph number, and by subsequent step according to the paragraph number between desired title and next title to desired title
Carry out typesetting of running in.
If paragraph number step S205, between desired title and next title is not equal to 1, by desired title independence
At section typesetting.
Specifically, the paragraph number between desired title and next title is natural number, if desired title with it is next
Paragraph number between title is not equal to 1, then the paragraph number between desired title and next title is equal to 0 or greater than 1.
If paragraph number between desired title and next title is 0, it that is to say desired title not followed by
Non- title paragraph, in order to avoid desired title directly runs in next title, the file structure after leading to typesetting is chaotic, by mesh
It is independent at section typesetting to mark title.
If the paragraph number between desired title and next title is greater than 1, it that is to say that desired title is followed by multiple
Non- title paragraph, in order to enable file structure is more clear and beautiful after typesetting, it is also that desired title is independent at section typesetting.
In addition, in the present embodiment, null, the large data objects such as table, image, formula or wherein any number of big numbers
According to the combination of object paragraph can not need to be constituted with the text of one section of its last period or back separately as paragraph.
If paragraph number step S206, between desired title and next title is equal to 1, judge whether there is solely
Found into the blood brother title of the desired title of section typesetting.
Wherein, blood brother title and desired title are the subtitles of same title.
In the step, if paragraph number between desired title and next title is equal to 1, it is subsequent according to whether in the presence of
The blood brother title of the independent desired title at section typesetting, carries out typesetting of running in desired title.
Step S207, if it exists independently at the blood brother title of the desired title of section typesetting, then desired title is only
Stand into section typesetting.
In order to enable typesetting effect is more neat and beautiful, the row of running in of blood brother title can be more taken in the present embodiment
The version consistent principle of mode: if in the subtitle of some M rank title, it is independent there are (M+1 grades) of at least one subtitle
At section typesetting, then all subtitles under the M rank title are all independent at section typesetting.Pass through the typesetting of running in of blood brother title
The consistent principle of mode, it is ensured that blood brother title or typesetting of all independently running at section or all with subsequent paragraph.But
And not all M+1 grade title will use the consistent type-setting mode that runs in.Wherein M rank can be any one in 1-N
Rank.
Step S208, if it does not exist independently at the blood brother title of the desired title of section typesetting, then by desired title
Run in typesetting with subsequent paragraph.
Optionally, desired title and subsequent paragraph are run in typesetting, can be specifically realized in the following way:
By desired title and a subsequent paragraph layout at a paragraph, and desired title and a subsequent paragraph
Between be spaced pre-determined distance.
For example, can will be spaced between desired title and a subsequent paragraph with blank characters such as space character, tabs
Open pre-determined distance.Wherein, pre-determined distance can be the occupied distance of space character of the first quantity or be the system of the second quantity
Table accords with occupied distance, and the first quantity and the second quantity can be set by technical staff.
Fig. 3 is typesetting effect diagram provided by Embodiment 2 of the present invention.As shown in figure 3, " 1.5.2 high pass measures title
Sequence analysis " is directly made of blank character with subsequent paragraph " the compost sample DAN for bacterium high-flux sequence is used ... "
Interval.
Fig. 4 is that blood brother title provided by Embodiment 2 of the present invention runs in the typesetting effect diagram that mode is consistent.
As shown in figure 4, title " 2.1.1 water extraction[5]", " 2.1.2 acid formulation[6]" and " 2.1.2 alkaline extraction[7]" it is blood brother title, this
Three titles run in subsequent paragraph typesetting.
In the present embodiment, pre-determined distance can be set according to actual needs by related technical personnel, the present embodiment this
Place is not specifically limited.
It is the mesh of subsequent paragraph of running in for the attribute that runs in it should be noted that in another embodiment of the present embodiment
Title is marked, can first judge whether there is the blood brother title of the independent desired title at section typesetting, if it exists solely
Found into the blood brother title of the desired title of section typesetting, then it is desired title is independent at section typesetting;If it does not exist it is independent at
The blood brother title of the desired title of section typesetting, then determine the paragraph number between desired title and next title, if target
Paragraph number between title and next title is not equal to 1, then desired title is independent at section typesetting;If desired title is under
Paragraph number between one title is equal to 1, then desired title and subsequent paragraph runs in typesetting.
Step S209, independence is cancelled at the setting for forbidding bottom line title of the title of section typesetting.
The step is optional step, which can be in step S203, S205 and S207 by any one desired title
It is independent to be immediately performed later at section typesetting;Or can be completing after headed typesetting of running in, unification will be independently at section
The setting for forbidding bottom line title of the title of typesetting cancels.Preferably, in order to improve typesetting efficiency, the step is in step S203, S205
Any one desired title is independently immediately performed at section typesetting later in S207.
In the present embodiment, if desired title had originally forbids bottom line title effect, in desired title and subsequent paragraph
Run in after typesetting, desired title itself already has the effect for forbidding bottom line title followed by a paragraph, can cancel
Forbid the setting of bottom line title.
The embodiment of the present invention determines the attribute that runs in of each title after the attribute that runs in for obtaining titles at different levels;It is right
In the attribute that runs in be the title of subsequent paragraph of not running in, it is directly independent at section typesetting;It is subsequent paragraph of running in for the attribute that runs in
Title, then according to the paragraph number between desired title and next title and with the presence or absence of independent at section typesetting
Blood brother title realize the typesetting of running in title each in type-setting document, nothing to complete the typesetting of running in desired title
It needs typesetting personnel to manually adjust the relationship of running between each title and subsequent paragraph, greatly reduces the workload of typesetting personnel,
Typesetting efficiency is improved, and makes typesetting effect more preferable.
Embodiment three
Fig. 5 is the structural schematic diagram for the composing device that the embodiment of the present invention three provides.Typesetting provided in an embodiment of the present invention
Device can execute the process flow of composition method embodiment offer.As shown in figure 5, the device 30 includes: to obtain 301 He of module
Type-setting module 302.
Specifically, the attribute that runs in that module 301 is used to obtain titles at different levels is obtained, the attribute that runs in of title includes connecing
Arrange subsequent paragraph and subsequent paragraph of not running in.
Type-setting module 302 is used for the attribute that runs according to titles at different levels, and each title treated in type-setting document carries out
Run in typesetting.
Device provided in an embodiment of the present invention can be specifically used for executing embodiment of the method provided by above-described embodiment one,
Details are not described herein again for concrete function.
The embodiment of the present invention passes through the attribute that runs in for obtaining titles at different levels, and the attribute that runs in of title is subsequent including running in
It is subsequent to determine whether titles at different levels run according to the attribute that runs in of titles at different levels for paragraph and subsequent paragraph of not running in
Paragraph realizes the row of running in title each in type-setting document so that each title treated in type-setting document carries out typesetting of running in
Version, manually adjusts the relationship of running between each title and subsequent paragraph without typesetting personnel, greatly reduces the work of typesetting personnel
It measures, improves typesetting efficiency.
Example IV
Fig. 6 is the structural schematic diagram for the composing device that the embodiment of the present invention four provides.On the basis of above-described embodiment three,
In the present embodiment, as shown in fig. 6, type-setting module 302 comprises determining that submodule 3021, the first typesetting submodule 3022 and second
Typesetting submodule 3023.
Specifically, determine submodule 3021 for respectively using to each title in type-setting document as desired title, root
According to the rank of desired title and the attribute that runs in of title at different levels, the attribute that runs in of desired title is determined.
If run in attribute of the first typesetting submodule 3022 for desired title is subsequent paragraph of not running in, by target mark
Topic is independent at section typesetting.
If run in attribute of the second typesetting submodule 3023 for desired title is subsequent paragraph of running in, it is determined that target mark
Paragraph number between topic and next title, according to the paragraph number between desired title and next title to desired title
Carry out typesetting of running in.
Wherein, the second typesetting submodule 3023 is also used to:
It is if the paragraph number between desired title and next title is not equal to 1, desired title is independent at section typesetting;
If the paragraph number between desired title and next title is equal to 1, according to whether in the presence of the independent mesh at section typesetting
The blood brother title for marking title, carries out typesetting of running in desired title.
Wherein, blood brother title and desired title are the subtitles of same title.
Optionally, the second typesetting submodule 3023 is also used to:
If it exists independently at the blood brother title of the desired title of section typesetting, then desired title is independently arranged at section
Version;Then desired title and subsequent paragraph are run in independently at the blood brother title of the desired title of section typesetting if it does not exist
Typesetting.
Optionally, the second typesetting submodule 3023 is also used to: pre- by being spaced between desired title and a subsequent paragraph
If desired title and subsequent paragraph are run in typesetting apart from typesetting at a paragraph.
Optionally, as shown in fig. 6, the device 30 can also include setting revocation module 303.
Revocation module 303 is set for cancelling independence at the setting for forbidding bottom line title of the title of section typesetting.
Device provided in an embodiment of the present invention can be specifically used for executing embodiment of the method provided by above-described embodiment two,
Details are not described herein again for concrete function.
The embodiment of the present invention determines the attribute that runs in of each title after the attribute that runs in for obtaining titles at different levels;It is right
In the attribute that runs in be the title of subsequent paragraph of not running in, it is directly independent at section typesetting;It is subsequent paragraph of running in for the attribute that runs in
Title, then according to the paragraph number between desired title and next title and with the presence or absence of independent at section typesetting
Blood brother title realize the typesetting of running in title each in type-setting document, nothing to complete the typesetting of running in desired title
It needs typesetting personnel to manually adjust the relationship of running between each title and subsequent paragraph, greatly reduces the workload of typesetting personnel,
Typesetting efficiency is improved, and makes typesetting effect more preferable.
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 logical function partition, there may be another division manner in actual implementation, such as multiple units or components 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 through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize 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 store and computer-readable deposit at one
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 or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional 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.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claims are pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claims
System.
Claims (10)
1. a kind of composition method characterized by comprising
Obtain the attribute that runs in of titles at different levels, the attribute that runs in of the title includes running in subsequent paragraph and not run in subsequent
Paragraph;
According to the attribute that runs in of the titles at different levels, each title treated in type-setting document carries out typesetting of running in.
2. the method according to claim 1, wherein the attribute that runs according to the titles at different levels,
Each title treated in type-setting document carries out typesetting of running in, comprising:
Respectively using to each title in type-setting document as desired title, according to the rank of the desired title and described at different levels
The attribute that runs in of other title determines the attribute that runs in of the desired title;
If the attribute that runs in of the desired title is subsequent paragraph of not running in, and the desired title is independent at section typesetting;
If the attribute that runs in of the desired title is subsequent paragraph of running in, it is determined that between the desired title and next title
Paragraph number, row of running in is carried out to the desired title according to the paragraph number between the desired title and next title
Version.
3. according to the method described in claim 2, it is characterized in that, described according between the desired title and next title
Paragraph number typesetting of running in is carried out to the desired title, comprising:
It is if the paragraph number between the desired title and next title is not equal to 1, the desired title is independent at section
Typesetting;
If the paragraph number between the desired title and next title is equal to 1, according to whether in the presence of independent at section
The blood brother title of the desired title of typesetting carries out typesetting of running in the desired title;
Wherein, the blood brother title and the desired title are the subtitles of same title.
4. according to the method described in claim 3, it is characterized in that, described according to whether in the presence of the independent institute at section typesetting
The blood brother title for stating desired title carries out typesetting of running in the desired title, comprising:
It is if it exists independently at the blood brother title of the desired title of section typesetting, then the desired title is independent at section
Typesetting;
The blood brother title of the independent desired title at section typesetting if it does not exist, then by the desired title with it is subsequent
Paragraph runs in typesetting.
5. according to the method described in claim 4, it is characterized in that, described run in the desired title and subsequent paragraph row
Version, comprising:
Pre-determined distance typesetting will be spaced between the desired title and a subsequent paragraph into a paragraph.
6. method according to claim 1-5, which is characterized in that the connecing according to the titles at different levels
Attribute is arranged, each title in type-setting document is treated and run in after typesetting, further includes:
Independence is cancelled at the setting for forbidding bottom line title of the title of section typesetting.
7. a kind of composing device characterized by comprising
Module is obtained, for obtaining the attribute that runs in of titles at different levels, the attribute that runs in of the title includes subsequent segment of running in
It falls and subsequent paragraph of not running in;
Type-setting module, for the attribute that runs according to the titles at different levels, each title treated in type-setting document is connect
Arrange typesetting.
8. device according to claim 7, which is characterized in that the type-setting module includes:
Determine submodule, for respectively using to each title in type-setting document as desired title, according to the desired title
Rank and the title at different levels the attribute that runs in, determine the attribute that runs in of the desired title;
First typesetting submodule, if the attribute that runs in for the desired title is subsequent paragraph of not running in, by the target
Title is independent at section typesetting;
Second typesetting submodule, if the attribute that runs in for the desired title is subsequent paragraph of running in, it is determined that the target
Paragraph number between title and next title, according to the paragraph number between the desired title and next title to institute
It states desired title and carries out typesetting of running in.
9. device according to claim 8, which is characterized in that the second typesetting submodule is also used to:
It is if the paragraph number between the desired title and next title is not equal to 1, the desired title is independent at section
Typesetting;
If the paragraph number between the desired title and next title is equal to 1, according to whether in the presence of independent at section
The blood brother title of the desired title of typesetting carries out typesetting of running in the desired title;
Wherein, the blood brother title and the desired title are the subtitles of same title.
10. according to the described in any item devices of claim 7-9, which is characterized in that further include:
Setting revocation module, for cancelling independence at the setting for forbidding bottom line title of the title of section typesetting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711182028.1A CN109829148A (en) | 2017-11-23 | 2017-11-23 | Composition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711182028.1A CN109829148A (en) | 2017-11-23 | 2017-11-23 | Composition method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109829148A true CN109829148A (en) | 2019-05-31 |
Family
ID=66858655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711182028.1A Pending CN109829148A (en) | 2017-11-23 | 2017-11-23 | Composition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109829148A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112861470A (en) * | 2020-05-09 | 2021-05-28 | 珠海金山办公软件有限公司 | Method, device, equipment and storage medium for setting official document title format |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286146A (en) * | 2007-04-12 | 2008-10-15 | 北京北大方正电子有限公司 | Typesetting method and system |
CN102147791A (en) * | 2011-04-02 | 2011-08-10 | 数字时代出版设计有限公司 | Automatic book typesetting method and system |
CN102317933A (en) * | 2009-01-02 | 2012-01-11 | 苹果公司 | Content Profiling to Dynamically Configure Content Processing |
CN102486769A (en) * | 2010-12-02 | 2012-06-06 | 北大方正集团有限公司 | Document directory processing method and device |
US20140222799A1 (en) * | 2008-08-29 | 2014-08-07 | Alibaba Group Holding Limited | Determining core geographical information in a document |
CN107357765A (en) * | 2017-07-14 | 2017-11-17 | 北京神州泰岳软件股份有限公司 | Word document flaking method and device |
-
2017
- 2017-11-23 CN CN201711182028.1A patent/CN109829148A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286146A (en) * | 2007-04-12 | 2008-10-15 | 北京北大方正电子有限公司 | Typesetting method and system |
US20140222799A1 (en) * | 2008-08-29 | 2014-08-07 | Alibaba Group Holding Limited | Determining core geographical information in a document |
CN102317933A (en) * | 2009-01-02 | 2012-01-11 | 苹果公司 | Content Profiling to Dynamically Configure Content Processing |
CN102486769A (en) * | 2010-12-02 | 2012-06-06 | 北大方正集团有限公司 | Document directory processing method and device |
CN102147791A (en) * | 2011-04-02 | 2011-08-10 | 数字时代出版设计有限公司 | Automatic book typesetting method and system |
CN107357765A (en) * | 2017-07-14 | 2017-11-17 | 北京神州泰岳软件股份有限公司 | Word document flaking method and device |
Non-Patent Citations (1)
Title |
---|
兰景华: "科技期刊论文层次标题存在的问题", 《西南农业大学学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112861470A (en) * | 2020-05-09 | 2021-05-28 | 珠海金山办公软件有限公司 | Method, device, equipment and storage medium for setting official document title format |
CN112861470B (en) * | 2020-05-09 | 2024-06-25 | 珠海金山办公软件有限公司 | Setting method, device, equipment and storage medium for document title format |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Liow | The neoliberal-developmental state: Singapore as case study | |
Branner | Problems in comparative Chinese dialectology: The classification of Miin and Hakka | |
DE102016125509A1 (en) | Inclusion of selectable application shortcuts in messaging threads | |
CN103810150A (en) | Automatic relation nestable questionnaire generating method and device | |
RU2016121007A (en) | SYSTEMS AND METHODS OF CREATION AND PRESENTATION ON THE DISPLAY OF PRESENTATIONS FROM SEVERAL SLIDES | |
CN108009147B (en) | Electronic book cover generation method, electronic device and computer storage medium | |
CN108519998A (en) | The problem of knowledge based collection of illustrative plates bootstrap technique and device | |
CN109144504A (en) | Data visualization image generation method and storage medium based on D3 | |
CN110276060A (en) | The method and device of data processing | |
US8972242B2 (en) | Visual analysis of phrase extraction from a content stream | |
DE59610904D1 (en) | METHOD FOR ACCESS CONTROL TO COMPUTER CONTROLLED PROGRAMS THAT CAN BE USED BY MULTIPLE USER UNITS AT THE SAME TIME | |
Nathan et al. | Making and breaking common ground | |
CN109829148A (en) | Composition method and device | |
CN105096161A (en) | Method and device for information display | |
CN106446291A (en) | Method and apparatus for providing picture content pages based on artificial intelligence | |
CN111597023A (en) | Intelligent cluster scheduling method and device based on learning state | |
US20160171636A1 (en) | Grouping support method and apparatus | |
Donato | The life and legend of Catterina Vizzani: sexual identity, science and sensationalism in eighteenth-century Italy and England | |
CN108985054A (en) | Threaten intelligence analysis method and apparatus | |
Marmor | Most paintings by Turner and Monet show stylistic evolution, not changes in pollution | |
Scherrer | dialektkarten. ch-Interactive dialect maps for German-speaking Switzerland and other European dialect areas | |
Stetzer et al. | The state of church planting in the US | |
CN110069766A (en) | The typesetting processing method and device of formula | |
Gutiérrez Artacho et al. | Computer tools in the teaching of translators as website localization professionals | |
Klein | Who makes the decisions in the NHS? |
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 |
Application publication date: 20190531 |
|
RJ01 | Rejection of invention patent application after publication |