CN109960787A - The generation method and device of format template - Google Patents

The generation method and device of format template Download PDF

Info

Publication number
CN109960787A
CN109960787A CN201711341973.1A CN201711341973A CN109960787A CN 109960787 A CN109960787 A CN 109960787A CN 201711341973 A CN201711341973 A CN 201711341973A CN 109960787 A CN109960787 A CN 109960787A
Authority
CN
China
Prior art keywords
format
format template
layout
template
interface
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
CN201711341973.1A
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 Information Industry Group Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Information Industry Group Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Information Industry Group Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Information Industry Group Co Ltd
Priority to CN201711341973.1A priority Critical patent/CN109960787A/en
Publication of CN109960787A publication Critical patent/CN109960787A/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/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides the generation method and device of a kind of format template, this method comprises: carrying out the pretreatment of format template according to the Definition of Division rule of preset format template layout and body matter Division definition rule, obtains the format template for dividing region;Obtain format template content data;According to the format template and format template content data for dividing region, target format template is generated.It realizes and automatically generates format template, overcome inefficient, the time-consuming and laborious problem of existing format template construct Technical comparing, improve the efficiency of format template construct.

Description

The generation method and device of format template
Technical field
This application involves digital publishing technical field more particularly to a kind of generation methods and device of format template.
Background technique
Typesetting of the technical journal based on XML is following trend.XML typesetting passes through the synthesis of format template and XML data The typesetting of paper is completed, pdf document is generated.The production of format template is an important support link of XML composing system.
Format template construct is divided into two kinds of forms at present: (1) writing completely new format template file;(2) in original version It modifies on the basis of formula template file and generates new format template file.The manufacturing process of both forms all needs experience will The pdf document that the pdf document of typesetting synthesis is published with original copy and is compared, so that the data information of template file is modified, weight It is multiple to copy comparison and modification operation, until pdf document and the former pdf document space of a whole page effect published that typesetting generates are almost the same, Furthermore, it is desirable to which the personnel for making format template understand relevant programming technique.Technical threshold is high, and operation is also comparatively laborious, It is time-consuming and laborious.
Therefore, the technical issues of how to improve the producing efficiency of format template becomes urgent need to resolve.
Summary of the invention
The application provides the generation method and device of a kind of format template, to solve prior art format template generation efficiency Low defect.
The application first aspect provides a kind of generation method of format template, comprising:
Format is carried out according to the Definition of Division rule of preset format template layout and body matter Division definition rule Template pretreatment, obtains the format template for dividing region;
Obtain format template content data;
According to the format template and the format template content data for dividing region, target format template is generated.
Further aspect of the application provides a kind of generating means of format template, comprising:
Preprocessing module, for fixed according to the Definition of Division rule and body matter Division of preset format template layout Adopted rule carries out the pretreatment of format template, obtains the format template for dividing region;
Module is obtained, for obtaining format template content data;
Generation module, for generating mesh according to the format template and the format template content data for dividing region Mark format template.
The generation method and device of format template provided by the present application pass through the division according to preset format template layout Definition rule and body matter Division definition rule carry out the pretreatment of format template, obtain the format template for dividing region;It obtains Take format template content data;According to the format template and format template content data for dividing region, target format template is generated. It realizes and automatically generates format template, overcome inefficient, the time-consuming and laborious problem of existing format template construct Technical comparing, improve The efficiency and convenience of format template construct.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the generation method for the format template that one embodiment of the application provides;
Fig. 2 is the division schematic diagram for the format template layout that one embodiment of the application provides;
Fig. 3 A is the preamble part of format template body content regions and showing for main part that one embodiment of the application provides It is intended to;
Fig. 3 B is the schematic diagram of the postposition part for the format template body content regions that one embodiment of the application provides;
The schematic diagram of slave part after the text for the format template body content regions that Fig. 3 C provides for one embodiment of the application;
Fig. 4 is the flow diagram of the generation method for the format template that one embodiment of the application provides;
Fig. 5 is the schematic diagram at the format edit model interface that one embodiment of the application provides;
Fig. 6 is the document properties interface schematic diagram that one embodiment of the application provides;
Fig. 7 is the layout interface schematic diagram that one embodiment of the application provides;
Fig. 8 is the text interface schematic diagram that one embodiment of the application provides;
The component interface schematic diagram that one embodiment of Fig. 9 the application provides;
Figure 10 is the structural schematic diagram of the generating means for the format template that one embodiment of the application provides;
Figure 11 is the structural schematic diagram of the generating means for the format template that another embodiment of the application provides;
Figure 12 is the structural schematic diagram for the acquisition module that one embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Embodiment one
The present embodiment provides a kind of generation methods of format template, for automatically generating new format template.The present embodiment Executing subject be format template generating means (hereinafter referred to as device), the device can be set server, desktop computer, In the terminals such as laptop, tablet computer.
As shown in Figure 1, the flow diagram of the generation method for format template provided in this embodiment, this method comprises:
Step 101, according to the Definition of Division rule of preset format template layout and body matter Division definition rule The pretreatment of format template is carried out, the format template for dividing region is obtained.
Step 102, format template content data are obtained.
Step 103, according to the format template and format template content data for dividing region, target format template is generated.
Specifically, can be edited by the device when user needs to obtain new format template, device setting There is user entry, open the device when the user clicks, the device is then according to the Definition of Division of preset format template layout rule The pretreatment of format template is carried out with body matter Division definition rule, obtains the format template for dividing region, user can compile Volume format template content, the available format template content data of the device, and according to the format template and format for dividing region Template content data generate target format template.
The format template for dividing region is the template file of XML structure, wherein may include what format template layout divided It can also include one or more typesetting unit and member in each section of each region and each region further division, each section The corresponding label such as data entry and corresponding format.Such as header area label, header area pattern, position etc..
Format template content data may include the layout information that user edits and the corresponding XML tag of layout information.
It is matched according to the XML tag in format template content data with the XML tag in the format template for dividing region, it will The layout information that user edits is filled into the format template for dividing region, realizes that the synthesis of the two, generation meet user's requirement Target format template.
The generation method of format template provided in this embodiment passes through the Definition of Division according to preset format template layout Rule and body matter Division definition rule carry out the pretreatment of format template, obtain the format template for dividing region;Obtain version Formula template content data;According to the format template and format template content data for dividing region, target format template is generated.It realizes Format template is automatically generated, inefficient, the time-consuming and laborious problem of existing format template construct Technical comparing is overcome, improves version The efficiency and convenience of formula template construct.
Embodiment two
The present embodiment does further supplementary explanation to the generation method for the format template that embodiment one provides.
On the basis of the above embodiment 1, optionally, the Definition of Division rule of format template layout is used for format mould Plate layout is at least divided into following region: header area, article leader, left side eyebrow area, the right eyebrow area, body matter area, homepage Comment field and footer area.
As shown in Fig. 2, being the division schematic diagram of format template layout provided in this embodiment.Format template layout is divided " header area ", " article leader ", " left side eyebrow area ", " the right eyebrow area ", " body matter area ", " homepage comment field " and " footer Area ".Each area can be further divided into multiple blocks.Each text composition information in block is referred to as metadata item Mesh.Image, table and formula composition information in body matter area is referred to as component.These new terms are for technical journal Format template propose to the XML typesetting of technical journal development there is certain facilitation.
Optionally, body matter Division definition rule is used to body matter area being at least divided into following part: preposition Partially, slave part after main part, postposition part and text.
Specifically, being the preamble part and main body of format template body provided in this embodiment content regions as shown in Figure 3A Partial schematic diagram;As shown in Figure 3B, for format template body provided in this embodiment content regions postposition part schematic diagram; It as shown in Figure 3 C, is the schematic diagram of slave part after the text of format template body provided in this embodiment content regions.Body matter Area is that main word flow starts the data information into document end region, occupies most of length of document.Body matter area into One step is divided into " preamble part ", " main part ", " postposition part " and " slave part after text " this four blocks.Main word flow Start to be referred to as preamble part to the region before text.Main part is the core of document, generally comprises introduction, text and knot By.It is referred to as postposition part to the region after bibliography after main part.To the area that document terminates after postposition part Domain is referred to as slave part after text.
The generation method of format template provided in this embodiment passes through the Definition of Division according to preset format template layout Format template layout is divided into technical paper corresponding " header area ", " article leader ", " left side eyebrow area ", " the right by rule Eyebrow area ", " body matter area ", " homepage comment field " and " footer area ", and it is further fixed according to preset body matter Division The body matter area of format template is further divided into " preamble part ", " main part ", " postposition part " and " text by adopted rule This four blocks of slave part afterwards " are laid a good foundation for automatically generating for target format template.
Embodiment three
The present embodiment does further supplementary explanation to the generation method of format template provided by the above embodiment.
As shown in figure 4, the flow diagram of the generation method for format template provided in this embodiment.In above-described embodiment On the basis of, optionally, before obtaining format template content data, this method further include:
Step 301, according to the Definition of Division rule of format template layout and body matter Division definition rule, generate to Conduction format edit model interface, format edit model interface include document properties interface, layout interface, text interface and component Interface.
Correspondingly, obtaining format template content data can specifically include:
Step 302, the format edit model request of user is obtained.
Step 303, it is requested according to format edit model, shows format edit model interface to user;
Step 304, when user edits at format edit model interface, and triggers preservation instruction, format mould is obtained Plate content-data.
Specifically, as shown in figure 5, being the schematic diagram at format edit model provided in this embodiment interface.When user needs It when obtaining new format template, can be edited by the device, which is provided with user entry, opens when the user clicks The device, the device then according to the Definition of Division rule of preset format template layout and body matter Division definition rule into The pretreatment of row format template, obtains the format template for dividing region, and according to the Definition of Division rule of format template layout and just Literary content regions Definition of Division rule, generates wizard-like format edit model interface, format edit model interface includes document properties Interface, layout interface, text interface and component interface, editing options then trigger the request of format edit model when the user clicks, After the device receives the request of format edit model, then format edit model interface is shown to user.So that user is in format mould Plate editing interface is edited, such as page width, page height, symbol font style etc..When user has edited, and trigger guarantor When depositing instruction, the device then available format template content data.According in the format template and format template for dividing region Hold data, generates target format template.
According to the Definition of Division of format template layout rule, the Definition of Division rule in body matter area, format template is compiled Editing interface is designed as comprising " document properties ", " layout ", " text " and " component " four interfaces (Shipping Options Page), between each other each other It is independent.Above-mentioned each interface, each subpage frame, each setting options, the sub- option of setting and each sub- option all have corresponding XML mark Label.It should be noted that being here a kind of illustrative enforceable mode, according to actual needs, format edit model circle Face can also include other interfaces, it is not limited here.
The generation method of format template provided in this embodiment, by providing visual format edit model circle for user Face makes user easily edit the format template of needs, overcomes that existing format template construct Technical comparing is inefficient, time-consuming expense The problem of power, improves the efficiency and convenience of format template construct.It realizes in the division region that same pretreatment obtains The different format edit model information content data generations for combining user to need on the basis of format template file meet not equal The format template file of skill periodical request.
Example IV
The present embodiment does further supplementary explanation to the generation method of format template provided by the above embodiment.
Based on any of the above embodiments, optionally, document properties interface can specifically include option arranged below: Space of a whole page setting, the setting of symbol font style, the page number.It optionally, can also include other setting options, it specifically can be according to reality Demand is configured, it is not limited here.
Illustratively, as shown in fig. 6, being document properties interface schematic diagram provided in this embodiment.
Optionally, layout interface includes following subpage frame: homepage header subpage frame, verso header subpage frame, recto header Subpage frame, article leader subpage frame and homepage comment field subpage frame.Optionally, it can also include other subpage frames, specifically may be used To be configured according to actual needs, it is not limited here.
Illustratively, as shown in fig. 7, being layout interface schematic diagram provided in this embodiment.Wherein, homepage header cloth is selected Office's setting options have optional multiple homepage header layout patterns and select for user, and the present embodiment is only simply indicated with box Each homepage header layout pattern, each box represent a kind of pattern, and the present embodiment is no longer shown in figure in detail.
Optionally, text interface includes following subpage frame: preamble part layout, preamble part pattern, preamble part attribute, Main part, postposition section layout, postposition part format, text after auxiliary region layout and text after auxiliary region pattern.Optionally, may be used also To include other subpage frames, can specifically be configured according to actual needs, it is not limited here.
Illustratively, as shown in figure 8, being text interface schematic diagram provided in this embodiment.
Optionally, component interface includes: chart subpage frame and formula subpage frame.It optionally, can also include other subpages Face can be specifically configured, it is not limited here according to actual needs.
Illustratively, as shown in figure 9, being component interface schematic diagram provided in this embodiment.
It may include one or more setting options in above-mentioned each subpage frame, also may include one in above-mentioned setting options Or multiple sub- options of setting;Being arranged under sub- option can also include one or more sub- options, and the specific nesting number of plies can basis Actual demand setting, it is not limited here, for example space of a whole page setting setting options can also include page-size and margin away from two Sub- option is set, and it can also include two sub- options of page width and page height etc. that sub- option, which is arranged, in page-size.Specifically may be used To be configured according to actual needs, it is not limited here.
XX schematical sections involved in above-mentioned each interface schematic diagram, it is merely exemplary to be indicated with box, it does not show specific Schematic nature, particular content is shown according to the specific setting real-time perfoming of user, is no longer shown in detail in figure.
After user enters format edit model interface by click the button at different interfaces can switch display interface or Subpage frame, or click next button can enter next interface or subpage frame.The editor of complete science is provided for user Guide.
Above-mentioned format edit model interface is format template layout division rule and body matter Division based on formulation What definition rule was configured.Both rules are to further investigate and formulate by expert.With the scientific and technological phase of new format The appearance of periodical can also reformulate both rules, or be set format edit model interface according to user demand It is set to other forms.
Optionally, format template standard can be popped up after the save button in format edit model interface when the user clicks The selection dialog box of format selects the reference format of format template for user.
It should be noted that the division at above-mentioned each interface, each subpage frame or each setting options is only that one kind illustratively may be used The mode of implementation, not limits it, can also carry out the division of other modes according to actual needs.
The generation method of format template provided in this embodiment, by providing visual format edit model circle for user Face provides easy production mechanism to format template, so that user is easily edited the format template of needs, overcome existing Inefficient, the time-consuming and laborious problem of format template construct Technical comparing improves the efficiency and convenience of format template construct.It realizes The different format templates for combining user to need on the basis of the format template file in the division region that same pretreatment obtains Editor's information content data generate the format template file for meeting different technical journal requirements.And by being provided visually for user The editing interface of change mentions so that user need not understand that corresponding programming technique can also easily carry out format edit model High user experience.
Embodiment five
The present embodiment provides a kind of generating means of format template, the life of the format template for executing above-described embodiment one At method.
It as shown in Figure 10, is the structural schematic diagram of the generating means of format template provided in this embodiment.The format template Generating means 50 include preprocessing module 51, obtain module 52 and generation module 53.
Wherein, preprocessing module 51 is used for Definition of Division rule and body matter area according to preset format template layout Definition of Division rule carries out the pretreatment of format template, obtains the format template for dividing region;Module 52 is obtained for obtaining format Template content data;Generation module 53 is used to generate target according to the format template and format template content data for dividing region Format template.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, no detailed explanation will be given here.
According to the generating means of format template provided in this embodiment, pass through the division according to preset format template layout Definition rule and body matter Division definition rule carry out the pretreatment of format template, obtain the format template for dividing region;It obtains Take format template content data;According to the format template and format template content data for dividing region, target format template is generated. It realizes and automatically generates format template, overcome inefficient, the time-consuming and laborious problem of existing format template construct Technical comparing, improve The efficiency and convenience of format template construct.
Embodiment six
The present embodiment does further supplementary explanation to the generating means for the format template that above-described embodiment five provides.
On the basis of above-described embodiment five, optionally, the Definition of Division rule of format template layout is used for format mould Plate layout is at least divided into following region:
Header area, article leader, left side eyebrow area, the right eyebrow area, body matter area, homepage comment field and footer area.
Optionally, body matter Division definition rule is used to body matter area being at least divided into following part:
Slave part after preamble part, main part, postposition part and text.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, no detailed explanation will be given here.
According to the generating means of format template provided in this embodiment, pass through the division according to preset format template layout Definition rule by format template layout be divided into technical paper corresponding " header area ", " article leader ", " left side eyebrow area ", " the right eyebrow area ", " body matter area ", " homepage comment field " and " footer area ", and further according to preset body matter zoning The body matter area of format template is further divided into " preamble part ", " main part ", " postposition part " by point definition rule " slave part after text " this four blocks, lay a good foundation for automatically generating for target format template.
Embodiment seven
The present embodiment does further supplementary explanation to the generating means of format template provided by the above embodiment.
It as shown in figure 11, is the structural schematic diagram of the generating means of format template provided in this embodiment.In above-mentioned implementation On the basis of example, optionally, which further includes processing module 54.
Wherein, processing module 54 is used to be defined according to the Definition of Division rule and body matter Division of format template layout Rule, generates wizard-like format edit model interface, and format edit model interface includes document properties interface, layout interface, just Literary interface and component interface.
Optionally, module 52 can specifically include the first acquisition submodule 521, display sub-module 522 and second obtains for acquisition Take submodule 523.It as shown in figure 12, is the structural schematic diagram provided in this embodiment for obtaining module.
Wherein, the first acquisition submodule 521 is used to obtain the format edit model request of user;Display sub-module 522 is used It is requested according to format edit model, shows format edit model interface to user;Second acquisition submodule 523 is for working as user When being edited at format edit model interface, and triggering preservation instruction, the format template data that user edits is obtained.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, no detailed explanation will be given here.
According to the generating means of format template provided in this embodiment, compiled by providing visual format template for user Editing interface makes user easily edit the format template of needs, overcomes that existing format template construct Technical comparing is inefficient, expense When laborious problem, improve the efficiency and convenience of format template construct.It realizes in the dividing regions that same pretreatment obtains The different format edit model information content data generations for combining user to need on the basis of the format template file in domain meet not With the format template file of science and technology periodical request.
Embodiment eight
The present embodiment does further supplementary explanation to the generating means of format template provided by the above embodiment.
On the basis of the above embodiments, optionally, format edit model interface includes document properties interface, layout circle Face, text interface and component interface.
Optionally, document properties interface includes option arranged below: space of a whole page setting, the setting of symbol font style, the page number.
Optionally, layout interface includes following subpage frame: homepage header subpage frame, verso header subpage frame, recto header Subpage frame, article leader subpage frame and homepage comment field subpage frame.
Optionally, text interface includes following subpage frame: preamble part layout, preamble part pattern, preamble part attribute, Main part, postposition section layout, postposition part format, text after auxiliary region layout and text after auxiliary region pattern.
Optionally, component interface includes: chart subpage frame and formula subpage frame.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, no detailed explanation will be given here.
According to the generating means of the format template of the present embodiment, by providing visual format edit model circle for user Face provides easy production mechanism to format template, so that user is easily edited the format template of needs, overcome existing Inefficient, the time-consuming and laborious problem of format template construct Technical comparing improves the efficiency and convenience of format template construct.It realizes The different format templates for combining user to need on the basis of the format template file in the division region that same pretreatment obtains Editor's information content data generate the format template file for meeting different technical journal requirements.And by being provided visually for user The editing interface of change mentions so that user need not understand that corresponding programming technique can also easily carry out format edit model High user experience.
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.
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 Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of generation method of format template characterized by comprising
Format template is carried out according to the Definition of Division rule of preset format template layout and body matter Division definition rule Pretreatment obtains the format template for dividing region;
Obtain format template content data;
According to the format template and the format template content data for dividing region, target format template is generated.
2. the method according to claim 1, wherein the Definition of Division rule of the format template layout is used to incite somebody to action Format template layout is at least divided into following region:
Header area, article leader, left side eyebrow area, the right eyebrow area, body matter area, homepage comment field and footer area.
3. according to the method described in claim 2, it is characterized in that, the body matter Division definition rule will be for will be described Body matter area is at least divided into following part:
Slave part after preamble part, main part, postposition part and text.
4. according to the method described in claim 3, it is characterized in that, before obtaining format template content data, the method Further include:
According to the Definition of Division rule of the format template layout and body matter Division definition rule, wizard-like format is generated Edit model interface, format edit model interface include document properties interface, layout interface, text interface and component circle Face;
The then acquisition format template content data, comprising:
Obtain the format edit model request of user;
It is requested according to the format edit model, Xiang Suoshu user shows format edit model interface;
When user edits at format edit model interface, and triggers preservation instruction, format template content number is obtained According to.
5. according to the method described in claim 4, it is characterized in that, the document properties interface includes option arranged below: version Face setting, the setting of symbol font style, the page number;
The layout interface includes following subpage frame: homepage header subpage frame, verso header subpage frame, recto header subpage frame, Article leader subpage frame and homepage comment field subpage frame;
The text interface includes following subpage frame: preamble part layout, preamble part pattern, preamble part attribute, main part Point, postposition section layout, postposition part format, text after auxiliary region layout and text after auxiliary region pattern;
The component interface includes: chart subpage frame and formula subpage frame.
6. a kind of generating means of format template characterized by comprising
Preprocessing module is advised for being defined according to the Definition of Division rule and body matter Division of preset format template layout Format template pretreatment is then carried out, the format template for dividing region is obtained;
Module is obtained, for obtaining format template content data;
Generation module, for generating target version according to the format template and the format template content data for dividing region Formula template.
7. device according to claim 6, which is characterized in that the Definition of Division rule of the format template layout is used for will Format template layout is at least divided into following region:
Header area, article leader, left side eyebrow area, the right eyebrow area, body matter area, homepage comment field and footer area.
8. device according to claim 7, which is characterized in that the body matter Division definition rule is used for will be described Body matter area is at least divided into following part:
Slave part after preamble part, main part, postposition part and text.
9. device according to claim 8, which is characterized in that further include:
Processing module, for the Definition of Division rule and body matter Division definition rule according to the format template layout, Wizard-like format edit model interface is generated, format edit model interface includes document properties interface, layout interface, text Interface and component interface;
The acquisition module, comprising:
First acquisition submodule, the format edit model for obtaining user are requested;
Display sub-module, for being requested according to the format edit model, Xiang Suoshu user shows format edit model interface;
Second acquisition submodule, when being instructed for being edited as user at format edit model interface, and triggering preservation, Obtain the format template data that user edits.
10. device according to claim 9, which is characterized in that the document properties interface includes option arranged below: version Face setting, the setting of symbol font style, the page number;
The layout interface includes following subpage frame: homepage header subpage frame, verso header subpage frame, recto header subpage frame, Article leader subpage frame and homepage comment field subpage frame;
The text interface includes following subpage frame: preamble part layout, preamble part pattern, preamble part attribute, main part Point, postposition section layout, postposition part format, text after auxiliary region layout and text after auxiliary region pattern;
The component interface includes: chart subpage frame and formula subpage frame.
CN201711341973.1A 2017-12-14 2017-12-14 The generation method and device of format template Pending CN109960787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711341973.1A CN109960787A (en) 2017-12-14 2017-12-14 The generation method and device of format template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711341973.1A CN109960787A (en) 2017-12-14 2017-12-14 The generation method and device of format template

Publications (1)

Publication Number Publication Date
CN109960787A true CN109960787A (en) 2019-07-02

Family

ID=67018319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711341973.1A Pending CN109960787A (en) 2017-12-14 2017-12-14 The generation method and device of format template

Country Status (1)

Country Link
CN (1) CN109960787A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium
CN111768819B (en) * 2020-06-04 2021-04-27 上海森亿医疗科技有限公司 Method, apparatus, device and medium for dynamically displaying or hiding header and footer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100211866A1 (en) * 2009-02-13 2010-08-19 Language Technologies, Inc System and method for converting the digital typesetting documents used in publishing to a device-specfic format for electronic publishing
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN104657342A (en) * 2013-11-19 2015-05-27 北大方正集团有限公司 Clean proof generating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100211866A1 (en) * 2009-02-13 2010-08-19 Language Technologies, Inc System and method for converting the digital typesetting documents used in publishing to a device-specfic format for electronic publishing
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN104657342A (en) * 2013-11-19 2015-05-27 北大方正集团有限公司 Clean proof generating method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium
CN111462281B (en) * 2020-03-31 2023-06-13 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium
CN111768819B (en) * 2020-06-04 2021-04-27 上海森亿医疗科技有限公司 Method, apparatus, device and medium for dynamically displaying or hiding header and footer

Similar Documents

Publication Publication Date Title
CN101122899B (en) Report generation method and device
CN110058856A (en) Page configuration method and device
EP1538534A2 (en) Generation of a PPML template from a PDF document
JP4185899B2 (en) Document processing method and system
CN109062567A (en) Information management system quick development platform based on B/S structure
US20130117656A1 (en) Conversion of web template designs
JP2006506713A (en) Iterative method for assigning elements and apparatus for assigning elements
CN101739415A (en) Browser-oriented webpage labeling system
CN104572577B (en) Mathematical formulae processing method and processing device
US10324665B2 (en) Document processing system for processing a print job
CN110543303A (en) Visual business platform
JP2006107142A (en) Document processor, and method
CN102779118A (en) Paper typesetting method and system
CN111881662A (en) Form generation method, device, processing equipment and storage medium
US20050216832A1 (en) Generation of documents
CN105654022A (en) Method and device for extracting structured document information
CN108073562A (en) Publication processing method and processing device based on cloud platform
CN109213480A (en) A kind of method, storage medium, equipment and system for developing the back-stage management page
CN109960787A (en) The generation method and device of format template
JP6946010B2 (en) Information processing equipment, information processing methods, and programs
US20050125724A1 (en) PPML to PDF conversion
Bagley et al. Creating reusable well-structured PDF as a sequence of component object graphic (COG) elements
CN106971412A (en) A kind of method for generating typesetting design document
JP5942663B2 (en) Printing system and template editing method
JP2007172247A (en) Information processor, information processing method and information processing program

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: 20190702