CN112131842B - Document design method and system - Google Patents
Document design method and system Download PDFInfo
- Publication number
- CN112131842B CN112131842B CN202010881267.1A CN202010881267A CN112131842B CN 112131842 B CN112131842 B CN 112131842B CN 202010881267 A CN202010881267 A CN 202010881267A CN 112131842 B CN112131842 B CN 112131842B
- Authority
- CN
- China
- Prior art keywords
- document
- page
- color
- paragraph
- font
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000007689 inspection Methods 0.000 claims abstract description 16
- 238000003860 storage Methods 0.000 claims abstract description 15
- 230000004048 modification Effects 0.000 claims abstract description 12
- 238000012986 modification Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 14
- 238000005457 optimization Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 11
- 239000003086 colorant Substances 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Document Processing Apparatus (AREA)
- Machine Translation (AREA)
Abstract
The application discloses a document design method and a system, which are used for improving the working efficiency and the quality, simultaneously ensuring the real-time storage of documents and avoiding the problem that the document contents are lost when a user computer crashes, and the method comprises the following steps: checking preset checking items aiming at each page of the target document; determining a page needing to be modified according to the checking result; modifying the page content of the page needing to be modified according to a preset modification rule; wherein the preset inspection items comprise one or a combination of the following items: theme color, theme word or paragraph value. The application also provides a document design system.
Description
Technical Field
The present application relates to the field of design, and in particular, to a document design method and system.
Background
At present, in the process of designing a document (such as PPT) by a user, the problems of document content loss, unattractive page layout or limited aesthetic value caused by computer crash are often encountered. In general, when the font and paragraph formats in a page are uniform and there is no obvious color difference in color matching, the document quality is higher. How to quickly and efficiently check whether fonts and paragraphs are unified or not, whether color matching has color difference or not, and real-time storage and automatic replacement of problematic pages are the problems to be solved at present.
Disclosure of Invention
In view of the above technical problems, embodiments of the present application provide a document design method and system, so as to improve work efficiency and quality, and simultaneously ensure real-time storage of documents, thereby avoiding a problem of document content loss when a user computer crashes.
In one aspect, a document design method provided in an embodiment of the present application includes:
checking preset checking items aiming at each page of the target document;
determining a page needing to be modified according to the checking result;
modifying the page content of the page needing to be modified according to a preset modification rule;
wherein the preset inspection items comprise one or a combination of the following items: theme color, theme word or paragraph value.
Preferably, the checking a preset checking item for each page of the target document includes:
copying a target document and opening the copied document in a hidden mode;
the preset check items are checked for each page of the copied document.
Optionally, for each page of the copied document, the color of each element is checked, whether the color is the theme color is determined, and if the color is not the theme color, the page number ID is added to the color path list.
Further, the color check score is calculated according to the following formula:
FC=(15*Nc problem element÷NTotal number of C elements+13*NC question page÷NC Total page)
Wherein, FCIs the color check score, NC problem elementIs the number of elements with problematic color, NTotal number of C elementsIs the total number of elements of the color, NC question pageIs the number of pages with problematic colors, NC Total pageIs the total number of pages of the document.
Optionally, for each page of the copied document, checking the font of each element, determining whether the font is a preset font, and if not, adding the ID of the page to the font path list
Further, the font check score is calculated according to the following formula:
FZ=(15*Nz problem element÷NTotal number of Z elements+13*NZ question page÷NZ Total Page)
Wherein, FZIs the font check score, NZ problem elementIs the number of problematic elements of the font, NZ elementTotal number of elementsIs the total element number of the font, NZ question pageNumber of pages with problematic font, NZ Total PageIs the total number of pages of the document.
Optionally, for each page of the copied document, the paragraph of each element is checked, whether the paragraph is a preset paragraph is determined, and if the paragraph is not the preset paragraph, the ID of the page is added to the paragraph path list.
Further, the paragraph check score is calculated according to the following formula:
FD=(15*Nd problem element÷NTotal number of D elements+13*ND question page÷ND Total page)
Wherein, FDIs the paragraph inspection score, ND problem elementIs the number of elements of the paragraph with a problem, NTotal number of D elementsIs the total element number of the paragraph, ND question pageIs the number of pages with problem paragraph, ND Total pageIs the total number of pages of the document.
Further, modifying the page content according to a preset modification rule, including:
loading all pages;
circularly traversing all the pages;
judging whether the ID of the current page is in the color path list, if so, acquiring the color list of the current page, circularly traversing the color list, judging whether the color of the color list is a theme color, and if not, setting the color of the color list as the theme color;
judging whether the ID of the current page is in a font path list, if so, acquiring a font list of the current page, circularly traversing the font list, judging whether the font of the font list is a preset font, and if not, setting the font of the font list as the preset font;
judging whether the ID of the current page is in a paragraph path list, if so, acquiring a paragraph list of the current page, circularly traversing the paragraph list, judging whether the paragraph of the paragraph list is a preset paragraph, and if not, setting the paragraph of the paragraph list as the preset paragraph.
Preferably, the document design method of the present invention further includes:
judging whether the automatic storage function is opened or not, and if not, opening the automatic storage function;
and judging whether the intelligent reloading function is started or not, and if not, starting the intelligent reloading function.
In another aspect, the present invention provides a document design system, comprising:
a processor and a memory;
the memory stores a computer program;
the processor is used for reading the computer program in the memory, and the processor realizes the document design method provided by the invention when executing the computer program.
By the method, the PPT score is accurately calculated according to a custom algorithm, the dimension has color, font and paragraph, the automatic storage function and the intelligent reloading function are detected, and when the problem that the color, font and paragraph do not meet the specification in the PPT file is detected, an optimization scheme and a real-time effect graph are automatically generated; if the user is detected not to start automatic saving or not to use the intelligent reloading, the user is guided to use the intelligent reloading device, so that the working efficiency and the quality are improved, meanwhile, the document can be guaranteed to be saved in real time, and the problem that the document content is lost when the user computer crashes is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a document design flow provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a process of checking a question page in a document according to an embodiment of the present application;
FIG. 3 is a schematic view illustrating a modification process of a problematic page according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a document design system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. In the embodiments of the present application, the term "plurality" means two or more, and other terms are similar thereto.
It should be noted that documents described in this application include, but are not limited to, electronic files such as PPT, WORD file, PDF file, etc., and the present application is not limited to this.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the display sequence of the embodiment of the present application only represents the sequence of the embodiment, and does not represent the merits of the technical solutions provided by the embodiments.
Example one
Referring to fig. 1, a schematic diagram of a document design method provided in an embodiment of the present application is shown, where the method includes:
s101, aiming at each page of a target document, checking a preset checking item and determining a page needing to be modified;
in this step, the target document is copied, and the copied document is opened in a hidden mode; the preset check items are checked for each page of the copied document.
As a preferred example, the above steps may be implemented by a plug-in program or a tool, and after the document is opened, the corresponding plug-in is run, and the document optimization design function of the plug-in is started.
As another preferred example, after the optimization function is started, parameters such as system theme font, theme color, paragraph value, etc. are set as scoring criteria to be used as the score of the examination.
As another preferred example, the above-mentioned theme font, theme color, theme paragraph, etc. may also be used to generate an xml file and a picture as an input condition for checking.
And checking the color of each element aiming at each page of the copied document, judging whether the color is the theme color, and if not, adding the page number ID into the color path list.
It should be noted that, the color path list refers to a list of document page related information with problematic color check items, and the contents of the list include, but are not limited to: document name, saving path, document page number, location and number of problematic colors in the document, etc. Accordingly, the font path list refers to a list storing document page related information with problematic font check items, and the contents of the list include but are not limited to: document name, saving path, document page number, location and number of problematic font in the document, etc. The paragraph path list refers to a list of document page related information with problematic paragraph check items, and the contents of the list include but are not limited to: document name, saving path, document page number, location and number of problematic segment in the document, etc.
In this embodiment, the page added with the color path list, the font path list, or the paragraph path list is a page that needs to be modified. As a preferred example, the page to be modified can be exported or saved as a document or a picture can be generated and the corresponding document path can be saved.
Optionally, after the color inspection is completed, the color inspection score is calculated according to the following formula:
FC=(15*Nc problem element÷NTotal number of C elements+13*NC question page÷NC Total page)
Wherein, FCIs the color check score, NC problem elementIs the number of elements with problematic color, NTotal number of C elementsIs the total number of elements of the color, NC question pageIs the number of pages with problematic colors, NC Total pageIs the total number of pages of the document.
And aiming at each page of the copied document, checking the font of each element, judging whether the font is a preset font or not, and if not, adding the ID of the page into a font path list. Optionally, after the font check is completed, the score of the font check is calculated according to the following formula:
FZ=(15*Nz problem element÷NTotal number of Z elements+13*NZ question page÷NZ Total Page)
Wherein, FZIs the font check score, NZ problem elementIs the number of problematic elements of the font, NTotal number of Z elementsIs the total element number of the font, NZ question pageNumber of pages with problematic font, NZ Total PageIs the total number of pages of the document.
And checking the paragraph of each element aiming at each page of the copied document, judging whether the paragraph is a preset paragraph, and if not, adding the ID of the page into the paragraph path list. Optionally, after the paragraph inspection is completed, the paragraph inspection score is calculated according to the following formula:
FD=(15*Nd problem element÷NTotal number of D elements+13*ND question page÷ND Total page)
Wherein, FDIs the paragraph inspection score, ND problem elementIs the number of elements of the paragraph with a problem, NTotal number of D elementsIs the total element number of the paragraph, ND question pageIs the number of pages with problem paragraph, ND Total pageIs the total number of pages of the document.
It should be noted that, the color check, the font check, and the paragraph check may be performed on one of the check items, and after all pages of the document are checked, another check item is checked from the first page of the document; it is also possible to check three check items, namely color, font and paragraph, simultaneously in one-page check and then move to the next page for checking.
S202, modifying the page content of the page needing to be modified according to a preset modification rule.
In the step, all the pages are loaded, and all the loaded pages are circularly traversed;
it should be noted that, part of the pages determined in S201 to be modified may be selected to be modified, or all of the pages may be modified, and the modification method is the same.
Judging whether the ID of the current page is in the color path list, if so, acquiring the color list of the current page, circularly traversing the color list, judging whether the color of the color list is a theme color, and if not, setting the color of the color list as the theme color;
judging whether the ID of the current page is in a font path list, if so, acquiring a font list of the current page, circularly traversing the font list, judging whether the font of the font list is a preset font, and if not, setting the font of the font list as the preset font;
judging whether the ID of the current page is in a paragraph path list, if so, acquiring a paragraph list of the current page, circularly traversing the paragraph list, judging whether the paragraph of the paragraph list is a preset paragraph, and if not, setting the paragraph of the paragraph list as the preset paragraph.
In this step, after the scores of the color, the font and the paragraph are calculated, the inspection score of the whole document is calculated, and the specific calculation method may be:
100-FC-FZ-FD;
in this step, the font path list and the paragraph path list in the color path list determined in S201 are used as input parameters in this step.
As a preferred example, after step S202, it may be further determined whether the auto-save function is already opened, and if not, the auto-save function is opened; and judging whether the intelligent reloading function is started or not, and if not, starting the intelligent reloading function.
In this embodiment, the intelligent reloading function means: and obtaining the resources with the highest document matching degree and the highest heat degree by the server through obtaining the color matching of the current resources, and replacing the color matching and the background color in the original document.
By the method, the PPT score is accurately calculated according to a custom algorithm, the dimension has color, font and paragraph, the automatic storage function and the intelligent reloading function are detected, and when the problem that the color, font and paragraph do not meet the specification in the PPT file is detected, an optimization scheme and a real-time effect graph are automatically generated; if the user is detected not to start automatic saving or not to use the intelligent reloading, the user is guided to use the intelligent reloading device, so that the working efficiency and the quality are improved, meanwhile, the document can be guaranteed to be saved in real time, and the problem that the document content is lost when the user computer crashes is avoided.
The method of the present example is further described below with reference to specific examples.
In this example, the document is a PPT (Microsoft PowerPoint) document.
A first part: for each page of the target PPT, checking preset checking items, as shown in FIG. 2:
s201, operating a PPT plug-in program and starting document optimization.
Specifically, the PPT plug-in program is operated, the PPT plug-in program is started up simultaneously with the C + + main program, the document optimization in the PPT menu bar is clicked, and the document optimization function is started.
S202, taking parameters such as PPT system subject characters, subject colors, paragraph values and the like as initialization values as scoring standards;
s203, copying and storing the current PPT document, and opening the PPT which is copied and stored in a hidden mode;
and after initializing the value, performing PPT document check, generating an xml file and an image file by using the subject color, the subject font, the paragraph value and the like of the PPT document, and sending the data to a main program. And copying and storing the current PPT document, and opening the PPT which is copied and stored in a hidden mode.
S204, acquiring all slides of the current PPT, circularly traversing the colors of the slides, and judging whether the current color is a theme color;
acquiring all slides of the current PPT, circularly traversing the slides to screen out slide elements to be checked, inquiring the screened slide elements according to an RGB (red, green and blue) comparison method through inquiry elements (filling, lines, shadows and 3D), taking out the slide elements with problems, adding related information into a color path list, leading out pictures of the slides with problems and storing picture paths;
the color check score is calculated according to the following formula:
FC=(15*Nc problem element÷NTotal number of C elements+13*NC question page÷NC Total page)
Wherein, FCIs the color check score, NC problem elementIs the number of elements with problematic color, NTotal number of C elementsIs the total number of elements of the color, NC question pageIs the number of pages with problematic colors, NC Total pageIs the total number of pages of the document.
S205, acquiring all slides of the current PPT, circularly traversing the fonts of the slides, and judging whether the current font is a preset font;
and querying the text box elements and the table elements of the slide, and storing each table (Cell) of the text box elements and the table elements into an element dictionary as one element. And circularly traversing the element dictionary, circularly traversing the fonts of all the elements, adding the fonts into the element font dictionary, and judging whether the fonts in the elements are consistent with the preset fonts by the circular element font dictionary. Recording elements with inconsistent fonts, performing element type classification on the recorded element fonts (note: text box elements or table elements count all Cell elements with problems as table elements), recording problem elements and problem slides, adding related information into a font path list, leading out pictures of the problem slides and storing picture paths;
the font check score is calculated according to the following formula:
FZ=(15*Nz problem element÷NTotal number of Z elements+13*NZ question page÷NZ Total Page)
Wherein, FZIs the font check score, NZ problem elementIs the number of problematic elements of the font, NTotal number of Z elementsIs the total element number of the font, NZ question pageNumber of pages with problematic font, NZ Total PageIs the total number of pages of the document.
S206, all slides of the current PPT are obtained, paragraphs of the slides are circularly traversed, and whether the current paragraph is a preset paragraph is judged.
All slides of the current PPT document are acquired, the PPT slides are circularly traversed, slide text box elements and table elements are inquired, and each table (Cell) of the table elements is stored into an element dictionary as one element. Circularly traversing the element dictionary, circularly traversing the fonts of each element to obtain font paragraph information, adding the paragraph information into the element paragraph dictionary, circularly traversing the element paragraph dictionary to judge whether the paragraph information in the elements is consistent with the preset paragraph information and record the elements with inconsistent paragraphs, performing element type classification on the recorded element paragraphs (note: text box elements or table elements count all Cell elements as table elements) to record the elements of the problem and record slides, adding related information into a paragraph path list, and exporting the pictures and saving the paths of the slides with the problem;
the paragraph inspection score is calculated according to the following formula:
FD=(15*Nd problem element÷NTotal number of D elements+13*ND question page÷ND Total page)
Wherein, FDIs the paragraph inspection score, ND problem elementIs the number of elements of the paragraph with a problem, NTotal number of D elementsIs the total element number of the paragraph, ND question pageIs the number of pages with problem paragraph, ND Total pageIs the total number of pages of the document.
After the above examination is completed, the examination score of the entire document is calculated: 100-FC-FZ-FD。
A second part: and modifying the page content of the page needing to be modified according to a preset modification rule. This section is shown in fig. 3 and includes:
s301, selecting the object to be optimized through interface selection.
S302, the slide document is circularly traversed to judge whether the input parameters contain slide IDs, if so, S303 is executed, and if not, the next slide is checked.
Loading the incoming path parameters (including the color path list, the font path list and the paragraph path list), and circularly traversing the slide document to judge whether the slide ID is contained in the incoming parameters, if so, executing S303, otherwise, checking the next slide.
S303, acquiring a color list of the slide elements, circularly traversing the color list, judging whether the current color contains the theme color, and if not, setting the color of the current element as the theme color.
Acquiring a color list of slide elements, circularly traversing the color list, judging whether the current color list contains a theme color, if not, acquiring the theme color similar to the current color through Rgb color comparison, and setting the color of the current element as the acquired theme color.
S304, obtaining a font list of the slide elements, circularly traversing the font list, judging whether the current font is a preset font, and if not, setting the font of the current element as the preset font.
S305, acquiring a paragraph list of the slide elements, circularly traversing the font list, judging whether the current font is a preset font, and if not, setting the font of the current element as the preset font.
Example two
Based on the same inventive concept, an embodiment of the present invention further provides a document design system, as shown in fig. 4, the system includes:
a processor 401 and a memory 402;
the memory 402 is used for storing computer programs, and the processor 401 is used for reading and executing the computer programs in the memory 302.
The document processing terminal may further include a bus interface 404 and a user interface 403, the processor 401 being responsible for managing the bus architecture and general processing, and the memory 402 may store data used by the processor 401 in performing operations. The user interface 403 is used to enable interaction with a user under the control of the processor 401.
The bus architecture may include any number of interconnected buses and bridges, with one or more processors 401, represented by a processor, and various circuits of memory 402, represented by memory 402, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface.
The processes disclosed in the embodiments of the present application may be applied to the processor 401, or implemented by the processor 401. In implementation, the steps of the signal processing flow may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The processor 401 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the first embodiment of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor, or in a combination of hardware and software modules in the processor 401. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the signal processing flow in combination with the hardware thereof.
The processor 401 is configured to read a program in the memory 402 and execute the following processes:
checking preset checking items aiming at each page of the target document;
determining a page needing to be modified according to the checking result;
modifying the page content of the page needing to be modified according to a preset modification rule;
wherein the preset inspection items comprise one or a combination of the following items: theme color, theme word or paragraph value.
It should be noted that the system provided in the second embodiment and the method provided in the first embodiment belong to the same inventive concept, the same technical problem is solved, the same technical effect is achieved, the system provided in the second embodiment can implement all the methods of the first embodiment, and the same parts are not described again.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (4)
1. A method of document design, comprising:
checking preset checking items aiming at each page of the target document;
determining a page needing to be modified according to the checking result;
modifying the page content of the page needing to be modified according to a preset modification rule;
wherein the preset inspection items comprise one or a combination of the following items: theme color, theme word or paragraph value;
the checking preset checking items aiming at each page of the target document comprises the following steps:
copying a target document and opening the copied document in a hidden mode;
checking a preset check item for each page of the copied document;
after the document is opened, starting a document optimization design function of the plug-in;
generating an xml file and a picture based on the subject color, the subject word or the paragraph value as an input condition for checking;
the page needing to be modified is a page added with a color path list, or a font path list, or a paragraph path list; the page needing to be modified can be exported or stored as a document, or a picture is generated, and a document path is stored;
the color path list is a list of document page related information in which the storage of color check items is problematic; the color path list content includes: document name, saving path, document page number, position and number of problematic color in the document;
the font path list is a list of document page related information with problematic font check items, and the font path list content comprises: document name, saving path, document page number, and position and number of problematic font in the document;
the paragraph path list is a list of document page related information with problematic paragraph check items stored therein, and the contents of the paragraph path list include: document name, saving path, document page number, and position and number of problematic segment in the document;
the checking of the preset checking items comprises checking one of the preset checking items, namely the color of a theme, a theme word or a paragraph value, and checking the other checking item from the first page of the document after all pages of the document are checked; or in one-page inspection, three inspection items of subject color, subject word or paragraph value are simultaneously inspected, and then the next page is moved to be inspected;
using the subject color, subject word or paragraph value for the score of the examination;
the overall document is examined to score(ii) a Wherein,is the subject color check score value and,is the subject word check score value and,is the paragraph value check score;
checking the font of each element aiming at each page of the copied document, judging whether the font is a preset font or not, and if not, adding the ID of the page into a font path list;
the topic word check score is calculated according to the following formula:
wherein,is the subject word check score value and,is the number of elements for which the font is problematic,
is the total number of elements of the font,is the number of pages for which the font is problematic,is the total number of pages of the document;
checking the color of each element aiming at each page of the copied document, judging whether the color is the theme color, and if not, adding the page number ID into the color path list; the theme color check score is calculated according to the following formula:
wherein,is the subject color check score value and,is the number of elements for which the color is problematic,is the total number of elements of the color,is the number of pages for which the color is problematic,is the total number of pages of the document;
checking the paragraph of each element aiming at each page of the copied document, judging whether the paragraph is a preset paragraph or not, and if not, adding the ID of the page into a paragraph path list; the paragraph inspection score is calculated according to the following formula:
2. The method of claim 1, wherein modifying the page content according to the preset modification rule comprises:
loading all pages;
circularly traversing all the pages;
judging whether the ID of the current page is in the color path list, if so, acquiring the color list of the current page, circularly traversing the color list, judging whether the color of the color list is a theme color, and if not, setting the color of the color list as the theme color;
judging whether the ID of the current page is in a font path list, if so, acquiring a font list of the current page, circularly traversing the font list, judging whether the font of the font list is a preset font, and if not, setting the font of the font list as the preset font;
judging whether the ID of the current page is in a paragraph path list, if so, acquiring a paragraph list of the current page, circularly traversing the paragraph list, judging whether the paragraph of the paragraph list is a preset paragraph, and if not, setting the paragraph of the paragraph list as the preset paragraph.
3. The method according to any one of claims 1 to 2, further comprising:
judging whether the automatic storage function is opened or not, and if not, opening the automatic storage function;
and judging whether the intelligent reloading function is started or not, and if not, starting the intelligent reloading function.
4. A document design system, comprising:
a processor and a memory;
the memory stores a computer program;
the processor is configured to read the computer program in the memory, and when the processor executes the computer program, the processor implements the document design method according to one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010881267.1A CN112131842B (en) | 2020-08-27 | 2020-08-27 | Document design method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010881267.1A CN112131842B (en) | 2020-08-27 | 2020-08-27 | Document design method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112131842A CN112131842A (en) | 2020-12-25 |
CN112131842B true CN112131842B (en) | 2022-02-08 |
Family
ID=73848684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010881267.1A Active CN112131842B (en) | 2020-08-27 | 2020-08-27 | Document design method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112131842B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108269295A (en) * | 2016-12-30 | 2018-07-10 | 珠海金山办公软件有限公司 | The method and device that a kind of lantern slide subject color is intelligently quoted |
CN109614251A (en) * | 2018-12-06 | 2019-04-12 | 万兴科技股份有限公司 | Method, apparatus, computer equipment and the storage medium of across the document stickup page |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7035439B2 (en) * | 2003-07-30 | 2006-04-25 | Xerox Corporation | System and method for measuring and quantizing document quality |
-
2020
- 2020-08-27 CN CN202010881267.1A patent/CN112131842B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108269295A (en) * | 2016-12-30 | 2018-07-10 | 珠海金山办公软件有限公司 | The method and device that a kind of lantern slide subject color is intelligently quoted |
CN109614251A (en) * | 2018-12-06 | 2019-04-12 | 万兴科技股份有限公司 | Method, apparatus, computer equipment and the storage medium of across the document stickup page |
Also Published As
Publication number | Publication date |
---|---|
CN112131842A (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11321523B2 (en) | Systems and methods for applying layout to documents | |
US8775918B2 (en) | System and method for automatic improvement of electronic presentations | |
CN112417899A (en) | Character translation method, device, computer equipment and storage medium | |
US11714953B2 (en) | Facilitating dynamic document layout by determining reading order using document content stream cues | |
US20080282148A1 (en) | Processing method for increasing speed of opening a word processing document | |
CN112131841A (en) | Document quality evaluation method and system | |
CN116228153A (en) | Engineering project design change price management method, system, equipment and medium | |
CN112131842B (en) | Document design method and system | |
US20180365341A1 (en) | Three-Dimensional Cad System Device, and Knowledge Management Method Used in Three-Dimensional Cad | |
US20200342169A1 (en) | Information processing apparatus and non-transitory computer readable medium storing program | |
US20110202826A1 (en) | Document creation support apparatus and document creation supporting method that create document data by quoting data from other document data, and storage medium | |
CN112686000A (en) | Format conversion method of electronic book document, electronic equipment and storage medium | |
WO2021072776A1 (en) | Data merging method and apparatus, electronic device, and storage medium | |
CN116126297A (en) | Multi-type database configuration code generation method and device and electronic equipment | |
US9015658B2 (en) | Automatic program generation device and automatic program generation method | |
KR102583247B1 (en) | System, method and computer program for creating BOM list | |
CN113806526B (en) | Feature extraction method, device and storage medium | |
JP2015148925A (en) | Program generation device and method | |
CN111444456B (en) | Style editing method and device and electronic equipment | |
US20200302661A1 (en) | Information processing apparatus, computer-readable recording medium, and drawing creation support method | |
CN110515653B (en) | Document generation method and device, electronic equipment and computer readable storage medium | |
CN110457659B (en) | Clause document generation method and terminal equipment | |
CN111506378A (en) | Method, device and equipment for previewing text display effect and storage medium | |
KR20210029463A (en) | Apparatus and method for automatically creating a list of materials on drawings for national defense development item | |
US20240330241A1 (en) | Information processing system, non-transitory computer readable medium storing program, and information processing method |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211222 Address after: 100192 101-01, floor 1, building 5, yard 1, Baosheng South Road, Haidian District, Beijing Applicant after: Yundong times Technology Co.,Ltd. Address before: 100192 101-01, 2nd floor, building 5, yard 1, Baosheng South Road, Haidian District, Beijing Applicant before: Beijing Yundong Intelligent Network Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |