[go: up one dir, main page]

CN111814430B - Experimental result document processing method and device, storage medium and computer equipment - Google Patents

Experimental result document processing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111814430B
CN111814430B CN202010892195.0A CN202010892195A CN111814430B CN 111814430 B CN111814430 B CN 111814430B CN 202010892195 A CN202010892195 A CN 202010892195A CN 111814430 B CN111814430 B CN 111814430B
Authority
CN
China
Prior art keywords
content
blank page
layer
sub
experimental result
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.)
Expired - Fee Related
Application number
CN202010892195.0A
Other languages
Chinese (zh)
Other versions
CN111814430A (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.)
Nanchang Xieda Technology Development Co ltd
Original Assignee
Nanchang Xieda Technology Development 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 Nanchang Xieda Technology Development Co ltd filed Critical Nanchang Xieda Technology Development Co ltd
Priority to CN202010892195.0A priority Critical patent/CN111814430B/en
Publication of CN111814430A publication Critical patent/CN111814430A/en
Application granted granted Critical
Publication of CN111814430B publication Critical patent/CN111814430B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

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)

Abstract

The invention discloses an experimental result document processing method, a device, a storage medium and computer equipment, wherein the experimental result in a content layer is divided into a plurality of sub-content layers, each sub-content layer corresponds to a unique identification code, a frame layer is firstly filled into a first blank page, then the experimental result in each sub-content layer is sequentially filled into the frame layer of the first blank page according to the sequence of the unique identification codes, different types of experimental results can be rearranged according to different modes, if the frame layer in the first blank page can not accommodate the experimental results in all the sub-content layers, a second blank page can be generated, the frame layer is filled into the second blank page, and finally the experimental results in the rest sub-content layers in the content layer are sequentially filled into the frame layer of the second blank page, because the frame layer comprises a title, each finally obtained page is titled, the effect of reserving the title across pages is realized.

Description

Experimental result document processing method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of data processing, in particular to an experimental result document processing method, an experimental result document processing device, a storage medium and computer equipment.
Background
In laboratory systems, the data content shown in the experimental results is increasing, and generally the experimental results have titles, and the specific experimental result data or content is under the title.
When experimental result data or content are more and can not be completely displayed in one page, redundant experimental result data or content can automatically extend to the next page, and when the experimental result is looked up or printed, because the next page only has more experimental result data or content and does not have a title, the user needs to constantly page the page with the title when looking up the document, and the experience is poor.
Disclosure of Invention
Therefore, the invention aims to provide an experimental result document processing method to achieve the effect of cross-page title retention.
The invention provides a text experiment result file processing method, which comprises the following steps:
reading a document to be processed, and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title, and the content layer comprises a style of an experimental result;
splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code for each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type;
generating a first blank page, and filling the frame layer into the first blank page;
according to the sequence of the unique identification codes, sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume and the style of the experimental result in the first sub-content layer; for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed;
judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers;
and if not, obtaining the first blank page in a full state, generating a second blank page, filling the frame layer into the second blank page, and sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes to obtain the second blank page with the content.
According to the experimental result document processing method provided by the invention, the experimental result in the content layer is divided into a plurality of sub-content layers, each sub-content layer corresponds to a unique identification code, firstly, the frame layer is filled in the first blank page, then according to the sequence of the unique identification codes, the experimental results in each sub-content layer are filled in the frame layer of the first blank page in sequence, different types of experimental results can be rearranged in different ways, if the frame layer in the first blank page cannot accommodate the experimental results in all the sub-content layers, a second blank page is generated and the frame layer is filled in the second blank page, and finally the experimental results in the remaining sub-content layers in the content layer are sequentially filled in the frame layer of the second blank page, since the frame layer includes the title, each page finally obtained is titled, and the effect of holding the title across pages is achieved. And for the situation of pure characters or characters plus tables or pure tables, the invention can realize the cross-page title reservation and has higher practicability.
In addition, the document processing method according to the present invention may further include the following additional features:
further, after the step of generating a first blank page and filling the frame layer into the first blank page, the method further comprises:
judging whether the experimental result in the sub-content layer contains a table or not;
if yes, judging whether a line crossing element exists in the table or not;
if the table has the line-crossing elements, judging whether the line-crossing elements can be completely displayed in the first blank page or not when the experimental results in the sub-content layers are sequentially filled into the frame layer of the first blank page according to the sequence of the unique identification codes;
if the line-crossing elements cannot be completely displayed in the first blank page, filling the line-crossing elements into the frame layer in the second blank page, so that the line-crossing elements are completely displayed in the second blank page.
Further, before the step of reading the document to be processed and identifying the frame layer and the content layer in the document to be processed, the method further comprises:
starting a printing control;
after the step of reading the document to be processed and identifying the frame layer and the content layer in the document to be processed, the method further comprises the following steps:
and uploading the experimental result and the style in the content layer to the printing control.
Further, after the step of sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page, the method further includes:
judging whether the experimental results in the rest sub-content layers in the content layer are all filled in the frame layer in the second blank page;
and if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page, obtaining the second blank page with the content.
Another object of the present invention is to provide an experimental result document processing apparatus to achieve the effect of holding titles across pages.
The invention provides an experimental result document processing device, comprising:
the reading identification module is used for reading a document to be processed and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title, and the content layer comprises a style of an experimental result;
the splitting module is used for splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code to each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type;
the first generating module is used for generating a first blank page and filling the frame layer into the first blank page;
the first filling module is used for sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page according to the sequence of the unique identification codes; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume and the style of the experimental result in the first sub-content layer; for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed;
the first judging module is used for judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers;
a second generating module, configured to obtain the first blank page in a filled state if the frame layer in the first blank page cannot accommodate the experiment results in all the sub-content layers, generate a second blank page, fill the frame layer into the second blank page, and sequentially fill the experiment results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes, so as to obtain the second blank page with content.
According to the experimental result document processing device provided by the invention, the experimental result in the content layer is divided into a plurality of sub-content layers, each sub-content layer corresponds to a unique identification code, firstly, the frame layer is filled in the first blank page, then according to the sequence of the unique identification codes, the experimental results in each sub-content layer are filled in the frame layer of the first blank page in sequence, different types of experimental results can be rearranged in different ways, if the frame layer in the first blank page cannot accommodate the experimental results in all the sub-content layers, a second blank page is generated and the frame layer is filled in the second blank page, and finally the experimental results in the remaining sub-content layers in the content layer are sequentially filled in the frame layer of the second blank page, since the frame layer includes the title, each page finally obtained is titled, and the effect of holding the title across pages is achieved. And for the situation of pure characters or characters plus tables or pure tables, the invention can realize the cross-page title reservation and has higher practicability.
In addition, according to the experimental result document processing device of the present invention, the following additional technical features may be provided:
further, the apparatus further comprises:
the second judgment module is used for judging whether the experimental result in the sub-content layer contains a table or not;
a third judging module, configured to judge whether a cross-row element exists in the table if the experiment result in the sub-content layer includes the table;
a fourth judging module, configured to, if a line crossing element exists in the table, judge whether the line crossing element can be completely displayed in the first blank page when the experiment results in the sub-content layers are sequentially filled in the frame layer of the first blank page according to the sequence of the unique identification codes;
and a second filling module, configured to fill the line crossing element into the frame layer in the second blank page if the line crossing element cannot be completely displayed in the first blank page, so that the line crossing element is completely displayed in the second blank page.
Further, the apparatus further comprises:
the starting module is used for starting the printing control;
and the uploading module uploads the experimental result and the style in the content layer to the printing control.
Further, the apparatus further comprises:
a fifth judging module, configured to judge whether all the experiment results in the remaining sub-content layers in the content layer have been filled in the frame layer in the second blank page;
the second generating module is specifically configured to obtain the second blank page with the content if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page.
The invention also proposes a storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The invention also proposes a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the program.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of embodiments of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of an experimental result document processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a distribution of sub-content layers in an exemplary content layer;
fig. 3 is a schematic configuration diagram of an experimental result document processing apparatus according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments that can be obtained by a person skilled in the art based on the embodiments of the present invention without any inventive step are within the scope of the present invention.
Referring to fig. 1, the method for processing an experimental result document according to the first embodiment of the present invention includes steps S101 to S104.
S101, reading a document to be processed, and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title.
In specific implementation, before step S101, the method further includes: and starting a printing control, wherein the printing control is used for transmitting the webpage content to a printer, and the printing control adopts LODOP (LoDOP), for example. After the printing control is started, conventional printing parameters such as preset paper height, character height and the like can be read.
The frame layer and the content layer in the document to be processed are set when the document to be processed is generated, the frame layer represents a frame of the document to be processed, and the content layer represents specific content in the frame, namely an experimental result.
In addition, the content layer in the identified document to be processed may include the style of the experimental result, such as whether the font is italic, bold, underline, and the like, excluding the font size and line spacing.
Specifically, after S101, the method further includes: and uploading the experimental result and the style in the content layer to the printing control, so as to facilitate the subsequent calling of a specific format.
S102, splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code to each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type.
Wherein, for the experimental results generated in the laboratory system, the conclusion type experimental results are specifically "the detection result is qualified", "the detection result is not passed", and the like, and in addition, the analytic content without numbers can also be taken as the conclusion type experimental results, for example, "the light absorption intensity of the sample 1 at 400nm to 500nm is gradually enhanced"; the results of the data-type experiment are, for example, "the content of iron element in sample 2 is 53.25%," the content of each component in sample 3 is XXX ", and the like. In specific implementation, the text recognition technology and the semantic analysis technology may be combined to analyze and recognize the experiment result in the document to be processed, so as to obtain different result types, and then the experiment result in the content layer is split into multiple sub-content layers according to the result types, as shown in fig. 2, the 4 sub-content layers are obtained by splitting, the type of the experiment result in the 1 st sub-content layer is, for example, a data type, the type of the experiment result in the 2 nd sub-content layer is, for example, a conclusion type, the type of the experiment result in the 3 rd sub-content layer is, for example, a data type, and the type of the experiment result in the 4 th sub-content layer is, for example, a conclusion type.
And then distributing a corresponding unique identification code (also called ID) for each sub-content layer according to the position of each sub-content layer, wherein the unique identification codes have a sequence. For example, in fig. 2, if the 1 st sub-content layer, the 2 nd sub-content layer, the 3 rd sub-content layer, and the 4 th sub-content layer are arranged in this order from top to bottom, the unique identification code (ID) assigned to the 1 st sub-content layer is 0001, the unique identification code (ID) assigned to the 2 nd sub-content layer is 0002, the unique identification code (ID) assigned to the 3 rd sub-content layer is 0003, and the unique identification code (ID) assigned to the 4 th sub-content layer is 0004.
The purpose of distributing the unique identification code to each word content layer is to fill the words according to the sequence of experimental results when the words are subsequently refilled, so that the disorder of the sequence is prevented.
S103, generating a first blank page, and filling the frame layer into the first blank page.
Wherein the first blank page may be generated according to the read printing parameters.
S104, sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page according to the sequence of the unique identification codes; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume of the experimental result in the first sub-content layer; and for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed.
The experimental results in each sub-content layer are sequentially filled into the frame layer of the first blank page according to the sequence of the unique identification codes; for example, the experimental results in the sub-content layers with the unique identification codes of 0001, 0002, 0003 and 0004 are filled in the frame layer of the first blank page in sequence.
In specific implementation, different types of experimental results are filled in different ways.
For the sub-content layers (for example, the 2 nd sub-content layer and the 4 th sub-content layer in this embodiment) whose experimental results are conclusion types, the experimental results in the first sub-content layer need to be filled in the frame layer of the first blank page according to the page size of the first blank page and the data amount of the experimental results in the sub-content layers (the 2 nd sub-content layer and the 4 th sub-content layer), because the conclusion types of experimental results are mostly characters, rearrangement needs to be performed by combining the page size of the first blank page and the data amount of the experimental results, and the first preset format mainly includes the size of the font, the line spacing, and the like.
For the sub-content layers (for example, the 1 st sub-content layer and the 3 rd sub-content layer in the embodiment) with the data type of the experimental result, the experimental result in the sub-content layers (the 1 st sub-content layer and the 3 rd sub-content layer) needs to be filled in the frame layer of the first blank page according to the page size of the first blank page and the size of the experimental result in the sub-content layers (the 1 st sub-content layer and the 3 rd sub-content layer) in the document to be processed. Because the data type experimental results are mostly numbers, and some data type experimental results also contain special characters or formulas, the experimental results can be saved and filled in a picture mode (firstly, the data type experimental results are subjected to screenshot, and then the screenshot is inserted into the first blank page), and when the data type experimental results are confirmed to be filled in again, the problem of losing symbols/formulas does not occur, so that the page size of the first blank page and the size of the experimental results in the sub-content layer in the document to be processed need to be combined for rearrangement, and the second preset format mainly comprises the size of the picture.
In addition, if the content layer in the document to be processed, which is identified in step S101, includes the style of the experimental result (mainly for the experimental result in the conclusion-type sub-content layer), for the first sub-content layer whose experimental result is the conclusion type, the experimental result in the first sub-content layer is filled in the frame layer of the first blank page according to the page size of the first blank page, the data amount and the style of the experimental result in the first sub-content layer, that is, the filled-in experimental result retains the previous format (i.e., whether the font is italic, whether the font is bold, whether the font is underlined, and the like).
S105, judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers.
And S106, if not, obtaining the first blank page in a filling state, generating a second blank page, filling the frame layer into the second blank page, and sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes to obtain the second blank page with the content.
The first blank page in the full state can be added to the print queue, and the first blank page in the full state in the print queue can be printed first, or can be printed together with a subsequent print job.
Then, a second blank page is generated also according to the read printing parameters, and then the frame layer is filled in the second blank page.
And in the second blank page, sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes to obtain the second blank page with the content, and adding the second blank page with the content into the printing queue.
Specifically, after the step of step S106 of sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page, the method further includes:
judging whether the experimental results in the rest sub-content layers in the content layer are all filled in the frame layer in the second blank page;
and if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page, obtaining the second blank page with the content. The second blank page with the content is then added to the print queue.
It can be understood that if the frame layer in the second blank page cannot accommodate the experimental results in the remaining sub-content layers, a third blank page is generated, and so on, and finally all the experimental results in the content layers are filled in the frame layer.
Further, as a specific example, after the step of generating a first blank page and filling the frame layer into the first blank page in step S103, the method further includes:
judging whether the experimental result in the sub-content layer contains a table or not;
if yes, judging whether row-crossing elements exist in the table or not, wherein the row-crossing elements specifically refer to some cells subjected to row combination, and the cells usually span at least two rows;
if the table has the line-crossing elements, judging whether the line-crossing elements can be completely displayed in the first blank page or not when the experimental results in the sub-content layers are sequentially filled into the frame layer of the first blank page according to the sequence of the unique identification codes;
if the line-crossing elements cannot be completely displayed in the first blank page, filling the line-crossing elements into the frame layer in the second blank page, so that the line-crossing elements are completely displayed in the second blank page, thereby ensuring that the contents of the cells subjected to line merging can be displayed in a piece of paper, and facilitating the viewing of a user.
According to the above experimental result document processing method, the experimental result in the content layer is divided into a plurality of sub-content layers, each sub-content layer corresponds to a unique identification code, the frame layer is filled in the first blank page, then according to the sequence of the unique identification codes, the experimental results in each sub-content layer are filled in the frame layer of the first blank page in sequence, different types of experimental results can be rearranged in different ways, if the frame layer in the first blank page cannot accommodate the experimental results in all the sub-content layers, a second blank page is generated and the frame layer is filled in the second blank page, and finally the experimental results in the remaining sub-content layers in the content layer are sequentially filled in the frame layer of the second blank page, since the frame layer includes the title, each page finally obtained is titled, and the effect of holding the title across pages is achieved. And for the situation of pure characters or characters plus tables or pure tables, the invention can realize the cross-page title reservation and has higher practicability.
Referring to fig. 3, based on the same inventive concept, an experimental result document processing apparatus according to a second embodiment of the present invention includes:
the reading identification module is used for reading a document to be processed and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title;
the splitting module is used for splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code to each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type;
the first generating module is used for generating a first blank page and filling the frame layer into the first blank page;
the first filling module is used for sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page according to the sequence of the unique identification codes; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume of the experimental result in the first sub-content layer; for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed;
the first judging module is used for judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers;
a second generating module, configured to obtain the first blank page in a filled state if the frame layer in the first blank page cannot accommodate the experiment results in all the sub-content layers, generate a second blank page, fill the frame layer into the second blank page, and sequentially fill the experiment results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes, so as to obtain the second blank page with content.
In this embodiment, the apparatus further includes:
the second judgment module is used for judging whether the experimental result in the sub-content layer contains a table or not;
a third judging module, configured to judge whether a cross-row element exists in the table if the experiment result in the sub-content layer includes the table;
a fourth judging module, configured to, if a line crossing element exists in the table, judge whether the line crossing element can be completely displayed in the first blank page when the experiment results in the sub-content layers are sequentially filled in the frame layer of the first blank page according to the sequence of the unique identification codes;
and a second filling module, configured to fill the line crossing element into the frame layer in the second blank page if the line crossing element cannot be completely displayed in the first blank page, so that the line crossing element is completely displayed in the second blank page.
In this embodiment, the reading and identifying module is configured to read a document to be processed, and identify a frame layer and a content layer in the document to be processed, where the frame layer includes a title and the content layer includes a style of an experimental result;
the first filling module is specifically used for sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page according to the sequence of the unique identification codes; and for a first sub-content layer with an experimental result of conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to the page size of the first blank page, and the data volume and the style of the experimental result in the first sub-content layer.
In this embodiment, the apparatus further includes:
the starting module is used for starting the printing control;
and the uploading module is used for uploading the experimental result and the style in the content layer to the printing control.
In this embodiment, the apparatus further includes:
a fifth judging module, configured to judge whether all the experiment results in the remaining sub-content layers in the content layer have been filled in the frame layer in the second blank page;
the second generating module is specifically configured to obtain the second blank page with the content if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page.
According to the experimental result document processing device, the experimental result in the content layer is divided into a plurality of sub-content layers, each sub-content layer corresponds to a unique identification code, firstly, the frame layer is filled in the first blank page, then according to the sequence of the unique identification codes, the experimental results in each sub-content layer are filled in the frame layer of the first blank page in sequence, different types of experimental results can be rearranged in different ways, if the frame layer in the first blank page cannot accommodate the experimental results in all the sub-content layers, a second blank page is generated and the frame layer is filled in the second blank page, and finally the experimental results in the remaining sub-content layers in the content layer are sequentially filled in the frame layer of the second blank page, since the frame layer includes the title, each page finally obtained is titled, and the effect of holding the title across pages is achieved. And for the situation of pure characters or characters plus tables or pure tables, the invention can realize the cross-page title reservation and has higher practicability.
Furthermore, an embodiment of the present invention also proposes a storage medium, in particular a readable storage medium, on which a computer program is stored, which program, when being executed by a processor, realizes the steps of the method described in the first embodiment.
Furthermore, an embodiment of the present invention also provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the method in the first embodiment when executing the program.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. An experimental result document processing method is characterized by comprising the following steps:
reading a document to be processed, and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title, and the content layer comprises a style of an experimental result;
splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code for each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type;
generating a first blank page, and filling the frame layer into the first blank page;
according to the sequence of the unique identification codes, sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume and the style of the experimental result in the first sub-content layer; for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed;
judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers;
and if not, obtaining the first blank page in a full state, generating a second blank page, filling the frame layer into the second blank page, and sequentially filling the experimental results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes to obtain the second blank page with the content.
2. The experimental results document processing method of claim 1, wherein after the step of generating a first blank page and filling the frame layer into the first blank page, the method further comprises:
judging whether the experimental result in the sub-content layer contains a table or not;
if yes, judging whether a line crossing element exists in the table or not;
if the table has the line-crossing elements, judging whether the line-crossing elements can be completely displayed in the first blank page or not when the experimental results in the sub-content layers are sequentially filled into the frame layer of the first blank page according to the sequence of the unique identification codes;
if the line-crossing elements cannot be completely displayed in the first blank page, filling the line-crossing elements into the frame layer in the second blank page, so that the line-crossing elements are completely displayed in the second blank page.
3. The method of claim 1, wherein before the step of reading the document to be processed and identifying the frame layer and the content layer in the document to be processed, the method further comprises:
starting a printing control;
after the step of reading the document to be processed and identifying the frame layer and the content layer in the document to be processed, the method further comprises the following steps:
and uploading the experimental result and the style in the content layer to the printing control.
4. The method of claim 1, wherein after the step of sequentially filling the experiment results in the remaining sub-content layers of the content layers into the frame layer of the second blank page, the method further comprises:
judging whether the experimental results in the rest sub-content layers in the content layer are all filled in the frame layer in the second blank page;
and if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page, obtaining the second blank page with the content.
5. An experimental result document processing apparatus, characterized by comprising:
the reading identification module is used for reading a document to be processed and identifying a frame layer and a content layer in the document to be processed, wherein the frame layer comprises a title, and the content layer comprises a style of an experimental result;
the splitting module is used for splitting the experimental result in the content layer into a plurality of sub-content layers according to the result type of the experimental result in the content layer, and distributing a corresponding unique identification code to each sub-content layer according to the position of each sub-content layer, wherein the result type comprises a conclusion type and a data type;
the first generating module is used for generating a first blank page and filling the frame layer into the first blank page;
the first filling module is used for sequentially filling the experimental results in each sub-content layer into the frame layer of the first blank page according to the sequence of the unique identification codes; for a first sub-content layer with an experimental result being a conclusion type, filling the experimental result in the first sub-content layer into a frame layer of the first blank page according to a first preset format according to the page size of the first blank page and the data volume and the style of the experimental result in the first sub-content layer; for a second sub-content layer with an experimental result of a data type, filling the experimental result in the second sub-content layer into the frame layer of the first blank page according to a second preset format according to the page size of the first blank page and the size of the experimental result in the second sub-content layer in the document to be processed;
the first judging module is used for judging whether the frame layer in the first blank page can accommodate the experimental results in all the sub-content layers;
a second generating module, configured to obtain the first blank page in a filled state if the frame layer in the first blank page cannot accommodate the experiment results in all the sub-content layers, generate a second blank page, fill the frame layer into the second blank page, and sequentially fill the experiment results in the remaining sub-content layers in the content layer into the frame layer of the second blank page according to the sequence of the unique identification codes, so as to obtain the second blank page with content.
6. The experimental results document processing apparatus according to claim 5, characterized in that the apparatus further comprises:
the second judgment module is used for judging whether the experimental result in the sub-content layer contains a table or not;
a third judging module, configured to judge whether a cross-row element exists in the table if the experiment result in the sub-content layer includes the table;
a fourth judging module, configured to, if a line crossing element exists in the table, judge whether the line crossing element can be completely displayed in the first blank page when the experiment results in the sub-content layers are sequentially filled in the frame layer of the first blank page according to the sequence of the unique identification codes;
and a second filling module, configured to fill the line crossing element into the frame layer in the second blank page if the line crossing element cannot be completely displayed in the first blank page, so that the line crossing element is completely displayed in the second blank page.
7. The experimental results document processing apparatus according to claim 5, characterized in that the apparatus further comprises:
the starting module is used for starting the printing control;
and the uploading module uploads the experimental result and the style in the content layer to the printing control.
8. The experimental results document processing apparatus according to claim 5, characterized in that the apparatus further comprises:
a fifth judging module, configured to judge whether all the experiment results in the remaining sub-content layers in the content layer have been filled in the frame layer in the second blank page;
the second generating module is specifically configured to obtain the second blank page with the content if the experimental results in the remaining sub-content layers in the content layer are all filled in the frame layer in the second blank page.
9. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 when executing the program.
CN202010892195.0A 2020-08-31 2020-08-31 Experimental result document processing method and device, storage medium and computer equipment Expired - Fee Related CN111814430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010892195.0A CN111814430B (en) 2020-08-31 2020-08-31 Experimental result document processing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010892195.0A CN111814430B (en) 2020-08-31 2020-08-31 Experimental result document processing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111814430A CN111814430A (en) 2020-10-23
CN111814430B true CN111814430B (en) 2020-12-04

Family

ID=72859820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010892195.0A Expired - Fee Related CN111814430B (en) 2020-08-31 2020-08-31 Experimental result document processing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111814430B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279902A (en) * 2018-02-08 2018-07-13 合肥盈云信息科技有限公司 Share bottom frame generation, application process in multiple terminals based on Lua script technologies

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10146746B2 (en) * 2016-11-29 2018-12-04 Kukudocs Inc. Method and system for converting a document
CN109492203B (en) * 2018-11-21 2023-06-27 深圳中广核工程设计有限公司 A method and system for verifying the format of a nuclear power large-scale comprehensive report
CN110032720A (en) * 2018-12-28 2019-07-19 万康源(天津)基因科技有限公司 A kind of visualization report typesetting and automatic generation method and system based on XML

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279902A (en) * 2018-02-08 2018-07-13 合肥盈云信息科技有限公司 Share bottom frame generation, application process in multiple terminals based on Lua script technologies

Also Published As

Publication number Publication date
CN111814430A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US11615635B2 (en) Heuristic method for analyzing content of an electronic document
US8233714B2 (en) Method and system for creating flexible structure descriptions
US9535880B2 (en) Method and apparatus for preserving fidelity of bounded rich text appearance by maintaining reflow when converting between interactive and flat documents across different environments
CN104156207A (en) File display method and device
KR20110132332A (en) Computer-implemented method and system for providing fonts for viewing documents on the web and computer readable media
CN102508826B (en) Method and device for displaying table in document
US10095677B1 (en) Detection of layouts in electronic documents
Berkenkotter et al. News value in scientific journal articles
US20150154165A1 (en) User interface for presenting an e-book along with public annotations
US11062083B1 (en) Automated data entry optimization by recognizing invalid data
US20050028088A1 (en) Structured document processor
CN111476006B (en) PDF file online annotation method, device, equipment and readable storage medium
CN111814430B (en) Experimental result document processing method and device, storage medium and computer equipment
CN109783810A (en) A kind of text handling method, device and computer readable storage medium
CN111208957A (en) Payroll printing method
CN114186542A (en) Form processing method and device, electronic equipment and computer readable storage medium
KR20110021714A (en) Method and apparatus for supplying electronic documents page by page computer graphics
CN111198664B (en) Document printing method, device, computer storage medium and terminal
KR102160448B1 (en) System and method for generating and loading images alternating styled text in web pages
Correia et al. Incremental knowledge acquisition in software development using a weakly-typed Wiki
CN106095411A (en) Display packing and terminal
CN113780265B (en) Space recognition method and device for English words, storage medium and computer equipment
US20050187904A1 (en) Data processing unit and data processing program stored in computer readable medium
US20060026518A1 (en) Apparatus and method for processing text data according to script attribute
CN115796137A (en) Information extraction method and system for form data in document

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201204