Standard typesetting system for engineering information submission document
By developing a standardized layout system for project information reporting documents in the Linux system environment, using the python-docx package to achieve rapid layout of documents, it solves the problems of messy information and time-consuming layout in project information reporting, and improves the ability of documents Reading and productivity of engineering managers.
Patent Information
- Application Number
- CN202411685675.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-23
- Publication Date
- 2025-02-11
AI Technical Summary
In the field of engineering construction, the collection and reporting of engineering information are uneven in the tool usage level and operating system limitations, resulting in messy information, time-consuming and inefficient layout.
Provides a standardized layout system for reporting engineering information, and uses the python-docx package to implement import, word processing, picture processing, table processing and saving modules in the Linux system environment, and quickly typeset documents through simple operations.
Without opening WPS or Word programs, the system can quickly improve the readability and professionalism of documents, improve the work efficiency of engineering managers, and reduce the time and energy of document modification.
Smart Images

Figure CN119416738A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a standard typesetting system for engineering information reporting documents, belonging to the technical field of electronic digital data processing. Background Art
[0002] When writing a paper, you can use WPS and Word to modify the layout of the article to increase the readability and professionalism of the article, but these tools are generally implemented in the Windows operating system environment using VBA or C#, or in the form of a website in an online environment. The engineering construction field cannot use the Windows operating system for various reasons, and cannot use the online environment due to long-term construction in the suburbs.
[0003] However, in the current engineering construction fields such as building construction, municipal engineering, water conservancy and other project construction, the collection and submission of engineering information is crucial. Due to the uneven WPS and Word usage levels of information submitters and the aforementioned limitations, the collected information is disorganized and typesetting requires a lot of editors' time, greatly reducing work efficiency.
[0004] Specifically, when using WPS or Word software to standardize the layout of engineering submission information documents, you need to open the document first, find the non-standard text, tables or pictures, select these contents, adjust specific layout parameters according to different categories of content, check whether the layout is standardized after the correction, and then save it. This may cause some problems: first, it is difficult to ensure that all non-standard parts to be typeset can be accurately modified; second, it consumes a lot of time and energy of the editor; third, the editor's software proficiency is required to be high. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a standardized typesetting system for engineering information reporting documents. The standardized typesetting system for engineering information reporting documents can be effectively implemented in other operating system environments such as Linux systems such as Tongxin UOS. There is no need to open WPS or Word programs. The engineering information reporting documents can be quickly typeset through simple operations, thereby improving the readability and professionalism of the documents and improving the work efficiency of engineering managers.
[0006] The present invention is achieved through the following technical solutions.
[0007] The present invention provides a standardized typesetting system for engineering information submission documents, comprising: An import module is used to import a target document file and place the target document file into a global object; The text processing module is used to uniformly adjust the text format of the target document file in the global object according to the user setting items; The image processing module is used to uniformly adjust the image format of the target document file in the global object according to the user setting items; The table processing module is used to uniformly adjust the table format of the target document file in the global object according to the user setting items; The saving module is used to save the adjusted target document file in the global object overwriting the original file.
[0008] The import module, word processing module, image processing module, table processing module and saving module are all implemented using the python-docx program package.
[0009] The text format includes the size, type, color, bold, italic format of the text, as well as the indentation, line spacing, spacing before and after paragraphs, and paragraph level of the paragraph.
[0010] The text processing module performs positioning adjustment according to the keyword matching method.
[0011] The table format includes the font type, font size, and font position within the table, and also includes the font type, font size, and font position of the table name.
[0012] The table processing module independently sets a modification operation for each table.
[0013] The image format includes the font type, font size, and font position of the image name, as well as the position, proportion, and size of the image.
[0014] The image processing module performs positioning adjustment according to the image sorting and image names.
[0015] The image processing module also has a built-in image recognition model for recognizing the image content and modifying the recognition result text into the text content of the image description.
[0016] The recognition types of the image recognition model include parts drawings, component assembly drawings, component exploded views, circuit diagrams, line diagrams, flow charts, block diagrams, module diagrams, curve schematics, and shape schematics.
[0017] The beneficial effects of the present invention are that it can be effectively implemented in other operating system environments such as Linux systems such as Tongxin UOS, without opening WPS or Word programs. Through simple operations, the engineering information reporting documents can be quickly typeset, thereby improving the readability and professionalism of the documents, while improving the work efficiency of engineering management personnel, and greatly improving the accuracy, efficiency and simplicity of document modification. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of module connection of at least one embodiment of the present invention. DETAILED DESCRIPTION
[0019] The technical solution of the present invention is further described below, but the scope of protection claimed is not limited to the description.
[0020] A first embodiment of the present invention relates to Figure 1 A standard typesetting system for engineering information submission documents shown includes: An import module is used to import a target document file and place the target document file into a global object; The text processing module is used to uniformly adjust the text format of the target document file in the global object according to the user setting items; The image processing module is used to uniformly adjust the image format of the target document file in the global object according to the user setting items; The table processing module is used to uniformly adjust the table format of the target document file in the global object according to the user setting items; The saving module is used to save the adjusted target document file in the global object overwriting the original file.
[0021] Furthermore, the import module, the word processing module, the image processing module, the table processing module and the saving module are all implemented using the python-docx package.
[0022] The second embodiment of the present invention is roughly equivalent to the first embodiment, mainly in that details are further optimized. The text format includes text size, type, color, bold, italic format, paragraph indentation, line spacing, paragraph spacing, paragraph spacing, and paragraph level.
[0023] Furthermore, the text processing module is guided to perform positioning adjustment according to the keyword matching method.
[0024] Furthermore, the imported table format includes the font type, font size, and font position within the table, and also includes the font type, font size, and font position of the table name.
[0025] Furthermore, the table processing module independently sets modification operations for each table.
[0026] Furthermore, the imported picture format includes the font type, font size, font position of the picture name, and also includes the position, proportion, and size of the picture.
[0027] Furthermore, the image processing module is guided to perform positioning adjustment according to the image sorting and image names.
[0028] The third embodiment of the present invention is roughly equivalent to the second embodiment, mainly in that details are further optimized. The image processing module also has a built-in image recognition model for identifying the image content and modifying the recognition result text into the text content of the image description.
[0029] Furthermore, the recognition types of the image recognition model include parts drawings, component assembly drawings, component exploded views, circuit diagrams, line diagrams, flow charts, block diagrams, module diagrams, curve diagrams, and shape diagrams.
[0030] Therefore, the present invention essentially solves the problem of document typesetting automation in the Linux system in the prior art, specifically: (1) Device configuration. Generally, this application is mainly run on Linux systems such as Tongxin UOS. Before running, you need to install the python-docx package (as simple as downloading an APP) to support software modification of documents.
[0031] (2) Import the target file. Use the input function to import the target file path, and use the Document function in the docx algorithm package to open the docx file.
[0032] (3) Text modification. First, edit the functions that can adjust text size, type, color, bold, italic and other features, and the functions that can adjust paragraph indents, line spacing, spacing before and after paragraphs, and paragraph levels. Then, write code to find the text content and use the functions that have been written to set specific fonts and paragraph formats. Finally, write code to match subheadings based on keywords and use the functions that have been written to set fonts and paragraph formats separately.
[0033] (4) Table modification. The editing function implements the modification of the table content, including the font type, size, and position of the table, the font type, size, and position of the table name, the marking sequence number and ending punctuation of each paragraph in a single grid, etc. Since the number of tables is relatively fixed and the layout of different tables is different, a table modification function can be written for each table.
[0034] (5) Image modification. The editing function can be used to modify the image. The modification content includes the font type, size, and position of the name, and the position, scale, and size of the image. Write code to find the image and the position of the image name, and then use the function to modify the image.
[0035] (6) Save the file and replace the original file. Use the save function to save the modified document and replace the original document.
[0036] (7) Execute the program. Use command line instructions such as "python typesetting modification program.py" to run the program. Drag the target document to the pop-up "input path" command, press Enter to run, and the document modification can be completed. Compared with using WPS or Word software to modify the document typesetting, it greatly improves the accuracy, efficiency and simplicity of document modification.
[0037] Thus, the present invention: 1. It can improve the standardization and professionalism of engineering reporting information documents. First of all, when using WPS or Word software to typeset engineering reporting information documents, the documents are prone to some minor typesetting problems, which are not easy for editors to detect but easy for readers to find. Secondly, using WPS or Word software to typeset documents will add some subjective factors to the documents, such as the setting of picture size. Due to the subjective wishes of the editor in a document, pictures of different sizes may appear in the document, reducing the comfort of reading. The present invention can not only solve the problems described above, but also automatically modify the fonts, paragraphs, tables, pictures, serial numbers, punctuation marks and other elements in the engineering reporting information documents.
[0038] 2. It can improve the efficiency of document typesetting for project submission information. Every time a project information is submitted, the editor needs to modify text, tables, pictures and other elements, which takes a lot of time and energy. After the document is typeset, it is necessary to undergo multiple typesetting standardization checks, and each additional check will increase the editor's fatigue and the probability of document typesetting errors. The present invention can quickly perform document typesetting and avoid typesetting detail problems caused by human negligence.
[0039] 3. It can reduce the professional level of the editor in the WPS or Word software operation level for the typesetting of the project submission information document. The use of WPS or Word software to typeset documents requires the editor to have a high level of proficiency in WPS or Word software. The present invention does not require a high level of professionalism when typesetting documents. The editor only needs to run the program and add a path to quickly implement document typesetting. This can also realize standardized information submission for some subcontracting units, even for workers with low computer skills.
[0040] 4. High plasticity. When the specifications of information reporting documents change significantly, a new standard typesetting program can be quickly formed by adjusting parameters or increasing the number of runs of some functions.
Claims
1. A standardized typesetting system for engineering information submission documents, characterized in that: include: An import module is used to import a target document file and place the target document file into a global object; The text processing module is used to uniformly adjust the text format of the target document file in the global object according to the user setting items; The image processing module is used to uniformly adjust the image format of the target document file in the global object according to the user setting items; The table processing module is used to uniformly adjust the table format of the target document file in the global object according to the user setting items; The saving module is used to save the adjusted target document file in the global object overwriting the original file.
2. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The import module, word processing module, image processing module, table processing module and saving module are all implemented using the python-docx program package.
3. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The text format includes the size, type, color, bold, italic format of the text, as well as the indentation, line spacing, spacing before and after paragraphs, and paragraph level of the paragraph.
4. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The text processing module performs positioning adjustment according to the keyword matching method.
5. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The table format includes the font type, font size, and font position within the table, and also includes the font type, font size, and font position of the table name.
6. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The table processing module independently sets a modification operation for each table.
7. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The image format includes the font type, font size, and font position of the image name, as well as the position, proportion, and size of the image.
8. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The image processing module performs positioning adjustment according to the image sorting and image names.
9. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The image processing module also has a built-in image recognition model for recognizing the image content and modifying the recognition result text into the text content of the image description.
10. The standardized typesetting system for engineering information submission documents according to claim 1, characterized in that: The recognition types of the image recognition model include parts drawings, component assembly drawings, component exploded views, circuit diagrams, line diagrams, flow charts, block diagrams, module diagrams, curve schematics, and shape schematics.
Citation Information
Patent Citations
Method and apparatus for automatically generating picture code list
CN105095297A
Document automatic typesetting method, device and equipment and storage medium
CN112016290A