Bookmark-based system for realizing formatted output of software engineering data entry document

Through the bookmark-based software engineering data entry document formatting and output system, the problem of low efficiency in software engineering data entry document generation in the prior art is solved, and fast and efficient document formatting and output is achieved.

CN120087356APending Publication Date: 2025-06-03BEIJING XUANYU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510079406.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-18
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

The existing software engineering data entry document generation methods mainly rely on manual data entry, which leads to low document output efficiency, takes a long time, and adjusting document styles is cumbersome, making it impossible to quickly output different types of data to the specified location of the document.

Method used

The bookmark-based software engineering data entry document formatting output system is adopted. Through the combination of template style module, bookmark addition module, document generation module, data collection module and document update module, automated data collection and document update module, and quickly output data to the specified location.

Benefits of technology

It greatly improves the efficiency of exporting software engineering data to documents, reduces the time for manual entry and style adjustment, and achieves fast and efficient document formatting output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120087356A_ABST
    Figure CN120087356A_ABST
Patent Text Reader

Abstract

The invention discloses a bookmark-based software engineering data entry document formatting output system, which comprises an output system, the output system comprises a template style module, a bookmark adding module, a document generation module, a data acquisition module and a document updating module, the template style module is connected with the bookmark adding module, and the document generation module is connected with the data acquisition module. The bookmark adding module is connected with the document generating module, the document generating module is connected with the data collecting module, and the data collecting module is connected with the document updating module. By configuring a document template preset style, analyzing a document template chapter structure, adding a bookmark and presetting a query data rule, an initialized document is generated based on a template; according to the method, the data in the system is collected according to the query data rule preset by the defined bookmark and is filled into the initialized document, compared with a mode of manually inputting the data and adjusting the style, the efficiency of exporting the software engineering data to the document is greatly improved, and rapid formatting output of the software engineering data items is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of document formatting output, and specifically to a software engineering data entry document formatting output system implemented based on bookmarks. Background Technique

[0002] With the popularization of agile development, the rapid iteration of software has significantly shortened the software delivery cycle. However, the frequent export of software engineering data entries to documents has also occurred more frequently, and the format requirements of documents and the output of different types of data to documents have become more complex.

[0003] Most commonly used software engineering data entry document generations maintain software engineering data in documents by manually entering data, and cannot quickly output different types of data to the specified positions in the document. The document output efficiency is low and it takes a long time; at the same time, it is necessary to tediously adjust the document style. Therefore, in order to cope with the rapid iteration of software development, a more efficient and concise method is urgently needed to format and output software engineering entry data to the specified chapter of the document according to the specified style. Summary of the Invention

[0004] The purpose of the present invention is to provide a software engineering data entry document formatting output system implemented based on bookmarks to solve the problems in the above background technique that most commonly used software engineering data entry document generations maintain software engineering data in documents by manually entering data, and cannot quickly output different types of data to the specified positions in the document. The document output efficiency is low and it takes a long time; at the same time, it is necessary to tediously adjust the document style. Therefore, in order to cope with the rapid iteration of software development, a more efficient and concise method is urgently needed to format and output software engineering entry data to the specified chapter of the document according to the specified style.

[0005] To achieve the above purpose, the present invention provides the following technical solution: A software engineering data entry document formatting output system implemented based on bookmarks, including an output system. The output system includes a template style module, a bookmark adding module, a document generating module, a data collection module, and a document updating module. The template style module is connected to the bookmark adding module, the bookmark adding module is connected to the document generating module, the document generating module is connected to the data collection module, and the data collection module is connected to the document updating module.

[0006] A method for using the software engineering data entry document formatting output system implemented based on bookmarks of the present invention includes the following steps:

[0007] Step 1, Configure the style: The template style module configures the preset style of the document template;

[0008] Step 2, Document parsing: The bookmark adding module parses the document template and adds bookmarks;

[0009] Step 3, Document Generation: The document generation module generates an initial document according to the template;

[0010] Step 4, Data Addition: The data collection module collects data in the system according to the bookmarks added in the document;

[0011] Step 5, Document Update: The document update module fills the data addition style into the initial document.

[0012] As a preferred technical solution of the present invention, the specific preset style of the document template in Step 1 is to configure the document template according to the style requirements, specifically including configuring the document template according to the style requirements, presetting the sample paragraph style for each chapter, and configuring multiple documents according to the requirements.

[0013] As a preferred technical solution of the present invention, in Step 2, parsing the document chapter structure and adding bookmarks specifically means using the aspose.word.Document class method to parse the chapter structure of the document template in the organization library; using the aspose.word.Bookmark class method to define the bookmark name and add bookmarks to each chapter, where the bookmark name presets the query rule for system data and the chapter number where the system data will be inserted.

[0014] As a preferred technical solution of the present invention, in Step 3, generating an initial document according to the template specifically means selecting a corresponding template according to the document formatting output requirements to generate an initial document.

[0015] As a preferred technical solution of the present invention, in Step 4, collecting data in the system according to the bookmarks added in the document specifically means collecting qualified data in the system according to the bookmarks, specifically including: using the aspose.word.Bookmark class method to obtain all bookmark names in the document; collecting data in the system according to the query rules preset by the bookmark names.

[0016] As a preferred technical solution of the present invention, in Step 5, filling the data addition style into the initial document specifically means using the aspose.word.Style class method to obtain the style of the preset sample paragraph; adding the preset style to the collected data; using the aspose.word.Paragraph class method to fill the formatted data under the chapter number preset in the bookmark; removing the preset sample paragraph.

[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: By configuring the preset styles of the document template, parsing the chapter structure of the document template to add bookmarks and preset query data rules, generating an initial document based on the template, and collecting data in the system according to the preset query data rules defined by the bookmarks and filling it into the initial document, the efficiency of exporting software engineering data to a document is greatly improved compared with the method of manually entering data and adjusting styles. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of the present invention;

[0019] Figure 2 is a schematic diagram of the architecture of the output system of the present invention;

[0020] Figure 3 is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0021] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0022] Please refer to Figures 1 - 3 , the present invention provides a system for formatting and outputting software engineering data entries based on bookmarks, including an output system. The output system includes a template style module, a bookmark adding module, a document generating module, a data collecting module, and a document updating module. The template style module is connected to the bookmark adding module, the bookmark adding module is connected to the document generating module, the document generating module is connected to the data collecting module, and the data collecting module is connected to the document updating module.

[0023] A method for using the system for formatting and outputting software engineering data entries based on bookmarks of the present invention includes the following steps:

[0024] Step 1, configure styles: The template style module configures the preset styles of the document template;

[0025] Step 2, document parsing: The bookmark adding module parses the document template to add bookmarks;

[0026] Step 3, document generation: The document generating module generates an initial document according to the template;

[0027] Step 4, data addition: The data collecting module collects data in the system according to the bookmarks added in the document;

[0028] Step 5, Document Update: The document update module fills the initialized document with data in the added style.

[0029] In Step 1, the preset styles of the document template are configured specifically by configuring the document template according to the style requirements, including configuring the document template according to the style requirements, presetting the sample paragraph styles for each chapter, and configuring multiple documents according to the requirements.

[0030] In Step 2, the document chapter structure is parsed and bookmarks are added. Specifically, the aspose.word.Document class method is used to parse the chapter structure of the document template in the organization library; the aspose.word.Bookmark class method is used to define bookmark names and add bookmarks to each chapter, where the bookmark names preset the query rules for system data and the chapter numbers where the system data will be inserted.

[0031] In Step 3, an initialized document is generated according to the template. Specifically, a corresponding template is selected according to the document formatting output requirements to generate an initialized document.

[0032] In Step 4, the data in the system is collected according to the bookmarks added to the document. Specifically, the data that meets the conditions in the system is collected according to the bookmarks, including: using the aspose.word.Bookmark class method to obtain all bookmark names in the document; collecting data in the system according to the query rules preset by the bookmark names.

[0033] In Step 5, filling the initialized document with data in the added style specifically means using the aspose.word.Style class method to obtain the styles of the preset sample paragraphs; adding the preset styles to the collected data; using the aspose.word.Paragraph class method to fill the formatted data under the chapter numbers preset in the bookmarks; and removing the preset sample paragraphs.

[0034] In the present invention, a preset style of the configuration document template is set. According to the requirements of the document formatting style, a sample paragraph style is preset for each chapter of the document, such as font, color, and size. A document template with multiple styles is configured according to the formatting requirements; the document template is parsed to add bookmarks. According to the requirements, all chapter structures in the document are parsed through the Document class method in Aspose.word. Each chapter is traversed, and a bookmark is added to each chapter in the naming method of chapter number + data type ID + data field ID through the Bookmark class in Aspose.word. The rules for querying system data and the chapter numbers where the system data will be inserted are preset. The chapter number is used to quickly locate the position where the data is generated in the document. The data type ID is used to filter the data types in the system and distinguish different document templates. The data field ID is used to obtain specific data; an initialized document is generated according to the template. According to the requirements of the document formatting output, a corresponding configured document template is selected, and an initialized document is generated through the Document class method in aspose.word; the data in the system is collected according to the bookmarks added to the group document. Through the Bookmark class method in aspose.word, all bookmark collections aspose.word.BookmarkCollection in the initialized document are obtained. Each bookmark is traversed in a loop, the bookmark name is parsed, and according to the data type ID in the bookmark name, the data set corresponding to the data type is filtered out in the system. The field value of the data set is obtained according to the data field ID in the bookmark name, which is the data that finally needs to be generated under the specified chapter of the document. The bookmark name and the collected system data are stored in a temporary JSON file in the form of key-value pairs; the data is added with styles and filled into the initialized document. By parsing and traversing the JSON file, the bookmark name is obtained. Through the DocumentBuilder class method in aspose.word, it quickly moves to the chapter where the data needs to be generated according to the bookmark name. The data corresponding to the bookmark name in the JSON file is generated under the specified chapter through the Paragraph class in aspose.word, and the style of the sample paragraph under the chapter is obtained through the Style class method in apose.word and added to the newly generated paragraph. Finally, the sample paragraph is removed from the document.

[0035] Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A bookmark-based software engineering data entry document formatting output system, comprising an output system, characterized in that: The output system includes a template style module, a bookmark adding module, a document generating module, a data acquisition module and a document updating module. The template style module is connected to the bookmark adding module, the bookmark adding module is connected to the document generating module, the document generating module is connected to the data acquisition module, and the data acquisition module is connected to the document updating module.

2. A software engineering data entry document based on bookmarks according to claim 1 The method for using the formatted output system is characterized by: The following steps are involved: Step 1: Configure the style: The template style module configures the document template preset style; Step 2: Document parsing: The bookmark adding module parses the document template to add bookmarks; Step 3: Document generation: The document generation module generates an initialized document based on the template; Step 4: Data addition: The data collection module collects data from the system based on the bookmarks added in the document; Step 5: Document update: The document update module adds data and styles to the initialized document.

3. The method for using the bookmark-based software engineering data entry document formatting output system according to claim 2, characterized in that: Configuring the document template preset style in step 1 specifically configures the document template according to style requirements, specifically including configuring the document template according to style requirements, presetting sample paragraph styles for each chapter, and configuring multiple documents according to requirements.

4. The method for using the bookmark-based software engineering data entry document formatting output system according to claim 2, characterized in that: In the step 2, the document chapter structure is parsed and bookmarks are added, specifically using the aspose.word.Document class method to parse the document template chapter structure in the organization library; using the aspose.word.Bookmark class method to define a bookmark name to add a bookmark to each chapter, where the bookmark name presets the query system data rules and the chapter number where the system data is to be inserted.

5. The method for using the bookmark-based software engineering data entry document formatting output system according to claim 2, characterized in that: In the step three, an initialization document is generated according to the template, specifically, a corresponding template is selected according to the document formatting output requirement to generate an initialization document.

6. The method for using the bookmark-based software engineering data entry document formatting output system according to claim 2, characterized in that: The step 4 collects data in the system according to the bookmarks added to the document, specifically collecting data that meets the conditions in the system according to the bookmarks, and specifically includes: using the aspose.word.Bookmark class method to obtain all bookmark names in the document; and collecting data in the system according to the query rules preset by the bookmark names.

7. The method for using the bookmark-based software engineering data entry document formatting output system according to claim 2, characterized in that: In step 5, the data adding style to the initialized document is specifically as follows: using the aspose.word.Style class method to obtain the style of the preset sample paragraph; adding the preset style to the collected data; using the aspose.word.Paragraph class method to fill the formatted data into the preset chapter number in the bookmark; and removing the preset sample paragraph.