Thesis editing and intelligent typesetting method and platform based on web rich text

文档序号:1296853 发布日期:2020-08-07 浏览:7次 中文

阅读说明:本技术 一种基于web富文本的论文编辑与智能排版方法及平台 (Thesis editing and intelligent typesetting method and platform based on web rich text ) 是由 甯航 于 2020-04-10 设计创作,主要内容包括:本发明公开了一种基于web富文本的论文编辑与智能排版方法,包括S1.规范化定义论文框架结构,将论文定义为包括组成部及其有序组件的结构对象,为所述组成部和组件定义样式作为规范配置并存储;S2.根据需求选取所述规范配置,获取论文框架结构数据,引导编辑创建论文组件;S3.通过支持图文输入的web富文本编辑器编辑组件内容;S4.提取所述组件内容,转换为目标文件;本发明利于实现自动化、格式化论文排版,利用不同规范配置数据满足各领域、院校和专业的论文制作需求,在减少编辑人的人工排版工作、提高论文制作效率的同时,适用性强,适于推广。(The invention discloses a thesis editing and intelligent typesetting method based on web rich text, which comprises S1, standardizing and defining a thesis frame structure, defining a thesis as a structure object comprising components and ordered assemblies thereof, and defining styles for the components and the assemblies as standard configuration and storage; s2, selecting the standard configuration according to requirements, acquiring thesis frame structure data, and guiding editing to create a thesis component; s3, editing component contents through a web rich text editor supporting image-text input; s4, extracting the component content and converting the component content into a target file; the invention is beneficial to realizing automatic and formatted thesis typesetting, meets the thesis making requirements of various fields, colleges and universities by using different standard configuration data, has strong applicability and is suitable for popularization while reducing the manual typesetting work of editors and improving the thesis making efficiency.)

1. A thesis editing and intelligent typesetting method based on web rich text is characterized by comprising the following steps:

s1, defining a paper framework structure in a standardized manner, defining a paper as a structure object comprising components and ordered components thereof, and defining patterns for the components and the components as standardized configuration and storage;

s2, selecting the standard configuration according to requirements, acquiring thesis frame structure data, and guiding and editing to create a thesis component through a web rich text editor;

s3, editing component contents through the web rich text editor supporting image-text input;

and S4, extracting the component content and converting the component content into a target file.

2. A web rich text based thesis editing and intelligent layout method according to claim 1, wherein said specification configuration is a configuration set of components and each ordered component.

3. A thesis editing and intelligent typesetting method based on web rich text as claimed in claim 2, wherein the paper component edited by the web rich text editor contains content during editing; the content is structured data when edited.

4. The web rich text-based thesis editing and intelligent typesetting method according to claim 3, wherein the S4. extracting the component content and converting into the target file comprises:

acquiring a paper specification configuration bound by a current created paper;

according to the OOXM L specification, a paper document object in OOXM L format is created, and the created paper component is added to the paper document object;

traversing the components in the current paper specification configuration, extracting editing content corresponding to the components from the content of the paper components, and converting the extracted editing content into a text paragraph object entity, a picture paragraph object entity, a table paragraph object entity and/or a formula paragraph object entity;

converting all current components into patterned xml components, and sequencing the components according to the structure of the components according to the thesis framework structure to form an xml document which accords with the ooxml specification.

5. The web rich text-based thesis editing and intelligent typesetting method according to claim 4, wherein the S4. extracting the component content and converting into a target file, further comprises: and compressing and converting the xml document to generate a word format document.

6. The web rich text-based thesis editing and intelligent typesetting method according to claim 1, wherein defining a component style comprises a component header style, a component trailer style, and a component page style; defining a component style comprises a component title style and a component content style; the component title style and the component content style both comprise a paragraph style and a text style and a component special appointment style.

7. A thesis editing and intelligent typesetting method based on web rich text as claimed in claim 6, wherein the thesis specification configuration comprises header style configuration, footer style configuration, page style configuration, paragraph style configuration of component title and component content, text style configuration of component title and component content, template of component title and component content, paging configuration of component, inter-component interval configuration, picture style configuration, formula style configuration, table style configuration, document reference labeling style configuration, and block reference style configuration.

8. A thesis editing and intelligent typesetting platform based on web rich text is characterized by comprising a thesis component style definition module, a web rich text editor module, a rich text data conversion module and a component generation module, wherein,

the paper component style definition module is used for defining a paper framework structure, defining a paper as a structure object comprising components and ordered components thereof, defining styles for the components and serving as standard configuration;

the web rich text editor module is used for guiding and editing the component content of the paper component according to the paper frame structure data;

the rich text data conversion module is used for converting the edited component content into a component document with a style according to the selected standard configuration and the corresponding thesis frame structure data;

and the component generation module is used for converting the component document with the styles into a target thesis document.

9. An electronic device, comprising:

one or more processors;

storage means for storing one or more programs;

the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.

10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of automatic document editing and processing, in particular to a thesis editing and intelligent typesetting method and platform based on web rich text.

Background

Scientific technology has become the core strength of social development, scientific research plays an extremely important role in the development of human society and the progress of scientific technology, and a paper is a scientific record of new scientific research results or innovative insights, is an important means for recording scientific research results and developing academic communication, and is an important carrier for human knowledge accumulation. However, with the increasing frequency of scientific research and teaching and research works, the current work of editing and submitting papers is still quite cumbersome. The existing higher-vocational colleges and institutions and manuscript receiving mechanisms have differences in academic thesis format specification and quality control.

Disclosure of Invention

Aiming at the defects in the prior art, the invention provides a thesis editing and intelligent typesetting platform and method based on web rich text, which are beneficial to reducing the work input of manual typesetting and improving the generation efficiency of the thesis.

In order to achieve the purpose, the technical scheme of the invention is as follows:

in a first aspect, the invention provides a thesis editing and intelligent typesetting method based on web rich text, which comprises the following steps:

s1, defining a paper framework structure in a standardized manner, defining a paper as a structure object comprising components and ordered components thereof, and defining patterns for the components and the components as standardized configuration and storage;

s2, selecting the standard configuration according to requirements, acquiring thesis frame structure data, and guiding and editing to create a thesis component through a web rich text editor;

s3, editing component contents through a web rich text editor supporting image-text input;

and S4, extracting the component content and converting the component content into a target file.

Further, in the above method for thesis editing and intelligent typesetting based on web rich text, the specification is configured as a configuration set of the components and each ordered assembly.

Further, in the above method for thesis editing and intelligent typesetting based on web rich text, the thesis component edited by the web rich text editor contains content during editing; the content is structured data when edited.

Further, in the above thesis editing and intelligent typesetting method based on the web rich text, the s4. extracting the component content and converting the component content into the target file includes:

acquiring a paper specification configuration bound by a current created paper;

according to the OOXM L specification, a paper document object in OOXM L format is created, and the created paper component is added to the paper document object;

traversing the components in the current paper specification configuration, extracting editing content corresponding to the components from the content of the paper components, and converting the editing content into a text paragraph object entity, a picture paragraph object entity, a table paragraph object entity and/or a formula paragraph object entity;

converting all current components into patterned xml components, and sequencing the components according to the structure of the components according to the thesis framework structure to form an xml document which accords with the ooxml specification.

Further, in the above method for thesis editing and intelligent typesetting based on web rich text, the s4. extracting the component content and converting the component content into a target file, further includes: and compressing and converting the xml document to generate a word format document.

Further, in the above thesis editing and intelligent typesetting method based on web rich text, the defined component style includes a component head style, a component tail style and a component page style; defining a component style comprises a component title style and a component content style; the component title style and the component content style both comprise a paragraph style and a text style and a component special appointment style.

Further, in the above thesis editing and intelligent typesetting method based on web rich text, the thesis specification configuration includes a header style configuration, a footer style configuration, a page style configuration, a paragraph style configuration of a component title and a component content, a text style configuration of a component title and a component content, a template of a component title and a component content, a paging configuration of a component, an inter-component interval configuration, a picture style configuration, a formula style configuration, a table style configuration, a document reference labeling style configuration, and a block reference style configuration.

In a second aspect, the invention provides a web rich text based paper editing and intelligent typesetting platform, which comprises a paper component style definition module, a web rich text editor module, a rich text data conversion module and a component generation module, wherein,

the paper component style definition module is used for defining a paper framework structure, defining a paper as a structure object comprising components and ordered components thereof, defining styles for the components and serving as standard configuration;

the web rich text editor module is used for guiding and editing the component content of the paper component according to the paper frame structure data;

the rich text data conversion module is used for converting the edited component content into a component document with a style according to the selected standard configuration and the corresponding thesis frame structure data;

and the component generation module is used for converting the component document with the styles into a target thesis document.

In a third aspect the present invention provides an electronic device comprising:

one or more processors;

storage means for storing one or more programs;

the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods as described above.

A fourth aspect the present invention provides a computer readable storage medium having a computer program stored thereon, wherein said program, when executed by a processor, implements a method as described above.

Compared with the prior art, the invention has the beneficial effects that:

the method reasonably designs a thesis structure for definition, defines the structure style standard configuration for storage, calls the thesis structure corresponding to the selected standard configuration when making the thesis, makes the edited content of the assembly without the style by using a web rich text editor, and converts the edited content of the assembly into the OOXM L content with the style according to the selected style standard configuration to realize automatic and formatted thesis typesetting.

Drawings

In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.

FIG. 1 is a flowchart of a method for web-based rich text based thesis editing and intelligent layout in an embodiment of the present invention;

FIG. 2 is a logic block diagram of a web rich text based thesis editing and intelligent layout platform in an embodiment of the present invention;

FIG. 3 is a logic block diagram of an electronic device in an embodiment of the invention.

Detailed Description

Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.

It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the present invention belongs.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据处理方法及装置、处理器、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!