CN104572744A - Structured document generating method and device - Google Patents

Structured document generating method and device Download PDF

Info

Publication number
CN104572744A
CN104572744A CN201310505440.8A CN201310505440A CN104572744A CN 104572744 A CN104572744 A CN 104572744A CN 201310505440 A CN201310505440 A CN 201310505440A CN 104572744 A CN104572744 A CN 104572744A
Authority
CN
China
Prior art keywords
document
add
style
style tags
file structure
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.)
Granted
Application number
CN201310505440.8A
Other languages
Chinese (zh)
Other versions
CN104572744B (en
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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310505440.8A priority Critical patent/CN104572744B/en
Publication of CN104572744A publication Critical patent/CN104572744A/en
Application granted granted Critical
Publication of CN104572744B publication Critical patent/CN104572744B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (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)

Abstract

The invention provides a structured document generating method and device. The structured document generating method includes creating Schema files including document structures and basic element types; creating document templates; generating add-in buttons corresponding to pattern labels according to the document structures and the basic element types; creating documents according to the document templates; adding the pattern labels according to the add-in buttons; adding content into the documents according to the pattern labels to generate structured documents. Instead, systemizing document formats manually is omitted, structured document generation efficiency is improved, and error rate in generating the structured documents is decreased.

Description

Structured document generates method and apparatus
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of structured document and generate method and apparatus.
Background technology
In prior art, in print publishing industry, when publishing house receives and contributes in a large number, due to the form disunity of contribution, publishing house needs first to arrange the form of contribution, obtains structured document, then makes books or periodical according to structured document.
But in prior art, publishing house carrys out the form of manual sorting contribution by dropping into a large amount of manpowers, cause the efficiency arranging contribution form low, error rate is high.
Summary of the invention
The invention provides a kind of structured document and generate method and apparatus, low for solving the efficiency that in prior art, manual sorting contribution form exists, the problem that error rate is high.
First aspect of the present invention is to provide a kind of structured document generation method, comprising:
Create Schema file, described Schema file comprises file structure and fundamental element type;
Create document template;
In described document template, the add-in button corresponding with style tags is generated according to described file structure and described fundamental element type;
Document is created according to described document template;
Style tags is added within said document according to described add-in button;
Content is added within said document, generating structured document according to described style tags.
Another aspect of the present invention provides a kind of structured document generating apparatus, comprising:
Creation module, for creating Schema file, described Schema file comprises file structure and fundamental element type;
Described creation module, also for creating document template;
Generation module, for generating the add-in button corresponding with style tags according to described file structure and described fundamental element type in described document template;
Described creation module, also for creating document according to described document template;
Add module, for adding style tags within said document according to described add-in button;
Described generation module, also for adding content within said document according to described style tags, generating structured document.
In the present invention, in document template, the add-in button corresponding with style tags is generated by the file structure that comprises according to Schema file and fundamental element type, document template according to comprising add-in button creates document, style tags is added in a document according to add-in button, and add content in a document according to style tags, generating structured document, and do not need manually to arrange the form of document, improve the efficiency of generating structured document, reduce the error rate of the structured document of generation.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a structured document generation method provided by the invention embodiment;
Fig. 2 is the schematic diagram according to the add-in button of style type generation in structured document generation method provided by the invention;
Fig. 3 is the schematic diagram adding style tags in structured document generation method provided by the invention according to add-in button in a document;
Fig. 4 is the structural representation of a structured document generating apparatus provided by the invention embodiment.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of a structured document generation method provided by the invention embodiment, as shown in Figure 1, comprising:
101, create Schema file, Schema file comprises file structure and fundamental element type.
Wherein, the executive agent of structured document generation method provided by the invention is structured document generating apparatus.Structured document generating apparatus is specifically as follows and is stored in computing machine for the software of generating structured document or system.
Rule (Schema) be one group in order to describe the set of rule that a certain class XML document defines, for retraining a class XML document and determining its structure, the books that the file structure that Schema file comprises and fundamental element type are published as required for structured document generating apparatus or the specification required by periodical carry out creating.Schema file adopts w3c standard, and suffix is called XSD.XSD refers to XML structure definition (XML Schemas Definition).File structure refers to title, a section, chapter, joint etc. in document, and position relationship between title, a section, chapter, joint etc. or ordinal relation, fundamental element type can comprise: frame-generic element, pattern frame elements, title frame elements, one or more in Reuse element and complex element.Font, font, font size, the whether parameter such as overstriking, word space, paragraph alignment, line space can be comprised in above-mentioned various element.
Frame-generic element (ST_NormalFrameElement) refers to the ordinary node in document framework, namely without any the node of attribute.The program arranging frame-generic element is as follows:
Pattern frame elements (CT_StyleFrameElement) refers in document framework has attribute, but is not the node of title element.The program arranging pattern frame elements is as follows:
Title frame elements (CT_TitleFrameElement) refers to and shows that this element is the node of title in document framework, and the program arranging title frame elements is as follows:
Reuse element (CT_DuplicateFrameElement) refers in document framework, is Reuse element according to the element that title element must repeat, such as, in document " section " " chapter " " joint " etc.The program arranging Reuse element is as follows:
Complex element (CT_MixElement) refers to text element, can occur in a document Anywhere.All daughter elements under complex element are content element.The program arranging complex element is as follows:
102, document template is created.
103, in document template, the add-in button corresponding with style tags is generated according to file structure and fundamental element type.
Wherein, step 103 specifically can comprise: according to file structure and fundamental element type determination style type; In document template, the add-in button corresponding with style tags is generated according to style type.
Such as, the style type determined according to the one-level title in file structure and title frame elements can for possessing the one-level title of title frame elements, namely possesses the one-level title of font, font, font size, the whether attribute such as overstriking, word space, paragraph alignment, line space.Can be as shown in Figure 2 according to the add-in button that style type generates.Style tags is style type concrete manifestation form in a document, as shown in Figure 3.
Further, before step 103, can also comprise: by Schema files loading in document template.
Wherein, by Schema files loading to the program in document template be:
104, document is created according to document template.
105, style tags is added in a document according to add-in button.
After structured document generating apparatus generates the add-in button corresponding with style tags according to style type in document template, structured document generating apparatus can add style tags in a document according to add-in button, as shown in Figure 3.
106, content is added in a document according to style tags, generating structured document.
Particularly, structured document generating apparatus can write document by editing area according to style tags, generating structured document.
Add content in a document according to style tags, after generating structured document, also comprise:
Delete the style tags in structured document.
In addition, structured document generating apparatus can also be verified structured document according to Schema file after deleting the style tags in structured document.
In the present embodiment, in document template, the add-in button corresponding with style tags is generated by the file structure that comprises according to Schema file and fundamental element type, document template according to comprising add-in button creates document, style tags is added in a document according to add-in button, and add content in a document according to style tags, generating structured document, and do not need manually to arrange the form of document, improve the efficiency of generating structured document, reduce the error rate of the structured document of generation.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Fig. 4 is the structural representation of a structured document generating apparatus provided by the invention embodiment, as shown in Figure 4, comprising:
Creation module 41, for creating Schema file, Schema file comprises file structure and fundamental element type;
Creation module 41, also for creating document template;
Generation module 42, for generating the add-in button corresponding with style tags according to file structure and fundamental element type in document template;
Creation module 41, also for creating document according to document template;
Add module 43, for adding style tags in a document according to add-in button;
Generation module 42, also for adding content in a document according to style tags, generating structured document.
Wherein, fundamental element type comprises: frame-generic element, pattern frame elements, title frame elements, one or more in Reuse element and complex element.
Further, generation module 42 generates in the add-in button corresponding with style tags according to file structure and fundamental element type in document template, generation module 42 specifically for,
According to file structure and fundamental element type determination style type;
In document template, the add-in button corresponding with style tags is generated according to style type.
Further, structured document generating apparatus can also comprise: load-on module;
Load-on module is used for, before generation module 42 generates the add-in button corresponding with style tags according to file structure and fundamental element type in document template, by Schema files loading in document template.
Again further, structured document generating apparatus can also comprise: removing module;
Removing module is used for, and generation module 42 adds content in a document according to style tags, after generating structured document, deletes the style tags in structured document.
Wherein, after removing module deletes the style tags in structured document, structured document generating apparatus can also be verified structured document according to Schema file.
In the present embodiment, in document template, the add-in button corresponding with style tags is generated by the file structure that comprises according to Schema file and fundamental element type, document template according to comprising add-in button creates document, style tags is added in a document according to add-in button, and add content in a document according to style tags, generating structured document, and do not need manually to arrange the form of document, improve the efficiency of generating structured document, reduce the error rate of the structured document of generation.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a structured document generation method, is characterized in that, comprising:
Create Schema file, described Schema file comprises file structure and fundamental element type;
Create document template;
In described document template, the add-in button corresponding with style tags is generated according to described file structure and described fundamental element type;
Document is created according to described document template;
Style tags is added within said document according to described add-in button;
Content is added within said document, generating structured document according to described style tags.
2. method according to claim 1, is characterized in that, describedly in described document template, generates the add-in button corresponding with style tags according to described file structure and described fundamental element type, comprising:
According to described file structure and described fundamental element type determination style type;
In described document template, the add-in button corresponding with style tags is generated according to described style type.
3. method according to claim 2, is characterized in that, described in described document template, generate the add-in button corresponding with style tags according to described file structure and described fundamental element type before, also comprise:
By described Schema files loading in described document template.
4. method according to claim 1, is characterized in that, describedly adds content within said document according to described style tags, after generating structured document, also comprises:
Delete the style tags in described structured document.
5. the method according to any one of claim 1-4, is characterized in that, described fundamental element type comprises: frame-generic element, pattern frame elements, title frame elements, one or more in Reuse element and complex element.
6. a structured document generating apparatus, is characterized in that, comprising:
Creation module, for creating Schema file, described Schema file comprises file structure and fundamental element type;
Described creation module, also for creating document template;
Generation module, for generating the add-in button corresponding with style tags according to described file structure and described fundamental element type in described document template;
Described creation module, also for creating document according to described document template;
Add module, for adding style tags within said document according to described add-in button;
Described generation module, also for adding content within said document according to described style tags, generating structured document.
7. device according to claim 6, is characterized in that, described generation module generates in the add-in button corresponding with style tags according to described file structure and described fundamental element type in described document template, described generation module specifically for,
According to described file structure and described fundamental element type determination style type;
In described document template, the add-in button corresponding with style tags is generated according to described style type.
8. device according to claim 7, is characterized in that, also comprises: load-on module;
Described load-on module is used for, before described generation module generates the add-in button corresponding with style tags according to described file structure and described fundamental element type in described document template, by described Schema files loading in described document template.
9. device according to claim 6, is characterized in that, also comprises: removing module;
Described removing module is used for, and described generation module adds content within said document according to described style tags, after generating structured document, deletes the style tags in described structured document.
10. the device according to any one of claim 6-9, is characterized in that, described fundamental element type comprises: frame-generic element, pattern frame elements, title frame elements, one or more in Reuse element and complex element.
CN201310505440.8A 2013-10-23 2013-10-23 structured document generation method and device Expired - Fee Related CN104572744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310505440.8A CN104572744B (en) 2013-10-23 2013-10-23 structured document generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310505440.8A CN104572744B (en) 2013-10-23 2013-10-23 structured document generation method and device

Publications (2)

Publication Number Publication Date
CN104572744A true CN104572744A (en) 2015-04-29
CN104572744B CN104572744B (en) 2018-12-25

Family

ID=53088826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310505440.8A Expired - Fee Related CN104572744B (en) 2013-10-23 2013-10-23 structured document generation method and device

Country Status (1)

Country Link
CN (1) CN104572744B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622087A (en) * 2017-08-17 2018-01-23 珠海云游道科技有限责任公司 User-friendly document management apparatus and method
CN108170656A (en) * 2017-12-28 2018-06-15 阿里巴巴集团控股有限公司 Template establishment method, document creating method, rendering intent and device
CN109284492A (en) * 2017-07-19 2019-01-29 北京国双科技有限公司 A kind of method and apparatus generating notice document
CN111259202A (en) * 2020-01-10 2020-06-09 西宁宁光工程咨询有限公司 Document structured data embedding method and system
CN112733515A (en) * 2020-12-31 2021-04-30 贝壳技术有限公司 Text generation method and device, electronic equipment and readable storage medium
CN113435167A (en) * 2021-07-21 2021-09-24 北京国基科技股份有限公司 Document generation method and device for assisting technical state file

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954312A (en) * 2004-05-14 2007-04-25 金荣根 Method of creating an xml document on a web browser
US20080104105A1 (en) * 2006-06-05 2008-05-01 International Business Machines Corporation Schema Specific Parser Generation
US20110010377A1 (en) * 2005-11-04 2011-01-13 Microsoft Corporation Integrating line-of-business application data with documents
CN102103591A (en) * 2009-12-18 2011-06-22 北大方正集团有限公司 Method and system for realizing automatic update of document contents by using structural data
CN102103573A (en) * 2009-12-17 2011-06-22 北大方正集团有限公司 Method and system for quickly generating files in open formats
CN102270224A (en) * 2011-06-28 2011-12-07 用友软件股份有限公司 Information system data output device and method
CN102982010A (en) * 2011-09-02 2013-03-20 北大方正集团有限公司 Method and device for abstracting document structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954312A (en) * 2004-05-14 2007-04-25 金荣根 Method of creating an xml document on a web browser
US20110010377A1 (en) * 2005-11-04 2011-01-13 Microsoft Corporation Integrating line-of-business application data with documents
US20080104105A1 (en) * 2006-06-05 2008-05-01 International Business Machines Corporation Schema Specific Parser Generation
CN102103573A (en) * 2009-12-17 2011-06-22 北大方正集团有限公司 Method and system for quickly generating files in open formats
CN102103591A (en) * 2009-12-18 2011-06-22 北大方正集团有限公司 Method and system for realizing automatic update of document contents by using structural data
CN102270224A (en) * 2011-06-28 2011-12-07 用友软件股份有限公司 Information system data output device and method
CN102982010A (en) * 2011-09-02 2013-03-20 北大方正集团有限公司 Method and device for abstracting document structure

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284492A (en) * 2017-07-19 2019-01-29 北京国双科技有限公司 A kind of method and apparatus generating notice document
CN107622087A (en) * 2017-08-17 2018-01-23 珠海云游道科技有限责任公司 User-friendly document management apparatus and method
CN107622087B (en) * 2017-08-17 2024-03-22 珠海云游道科技有限责任公司 Document management apparatus and method convenient for user operation
CN108170656A (en) * 2017-12-28 2018-06-15 阿里巴巴集团控股有限公司 Template establishment method, document creating method, rendering intent and device
CN111259202A (en) * 2020-01-10 2020-06-09 西宁宁光工程咨询有限公司 Document structured data embedding method and system
CN111259202B (en) * 2020-01-10 2023-08-04 西宁宁光工程咨询有限公司 Document structured data embedding method and system
CN112733515A (en) * 2020-12-31 2021-04-30 贝壳技术有限公司 Text generation method and device, electronic equipment and readable storage medium
CN113435167A (en) * 2021-07-21 2021-09-24 北京国基科技股份有限公司 Document generation method and device for assisting technical state file

Also Published As

Publication number Publication date
CN104572744B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN104572744A (en) Structured document generating method and device
US10318614B2 (en) Transformation of marked-up content into a file format that enables automated browser based pagination
US8762832B2 (en) Constraint and rule-based page layout
US8181106B2 (en) Use of overriding templates associated with customizable elements when editing a web page
CN102779118B (en) Paper typesetting method and system
CN104699714B (en) Book version formatted file is converted to the method and device of EPUB formatted files
CN105512890A (en) Method and system for generating accounting voucher
CN104571977A (en) Report printing method and system based on HTML (Hyper Text Markup Language) template
JP2004086883A (en) Word processing document stored in single xml file operated with application which understands xml
WO2011069171A2 (en) Remote batch editing of formatted text via an html editor
CN103324731A (en) Method and device for converting spreadsheet file into web format file
CN108021632B (en) Mutual conversion processing method for unstructured data and structured data
CN105654022A (en) Method and device for extracting structured document information
WO2019095671A1 (en) Method for making red heading template of red heading file, application server, and computer storage medium
CN103559184A (en) Form page display method and device
CN113609820A (en) Method, device and equipment for generating word file based on extensible markup language file
CN110705237A (en) Automatic document generation method, data processing device, and storage medium
CN104063365A (en) Method for inserting object in PDF document
US20140149854A1 (en) Server and method for generating object document
CN108073562A (en) Publication processing method and processing device based on cloud platform
CN104346407A (en) Method and device thereof for interacting data of report form and XML file in data reporting system
CN105488471A (en) Character pattern recognition method and device
CN103309849A (en) Docx document creating and modifying method based on OpenXML (open extensive markup language)
US20080077856A1 (en) Method and system for xml multi-transform
CN111708529B (en) Method for generating form through dragging based on angular

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220621

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181225

CF01 Termination of patent right due to non-payment of annual fee