Text template processing method and system

By obtaining and entering text templates, using the text knowledge base for matching and analysis, an extensible markup language is generated, which solves the cumbersome problems of the enterprise text editing process and achieves efficient and compliant document management.

CN120493889APending Publication Date: 2025-08-15GUANGDONG KENUO SURVEYING ENG CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510410168.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, the enterprise text editing process is cumbersome, time-consuming and error-prone, making it difficult to achieve efficient document editing and management.

Method used

By obtaining the first text template, entering it according to the target text rules, and using the text knowledge base for matching and filtering analysis, the target customized text template is generated, and finally adjusted to an extensible markup language.

Benefits of technology

It realizes automated management of text editing processes, reduces errors, improves work efficiency, ensures legal compliance and consistency of text templates, and avoids version confusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120493889A_ABST
    Figure CN120493889A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of text processing, in particular to a text template processing method and system. The method comprises the following steps: acquiring a first text template; inputting the first text template according to the target text rule; matching the input first text template through a text knowledge base to obtain a second text template; obtaining filling modification information of the second text template; performing screening analysis on the filling modification information to obtain a target customized text template; and adjusting the target customized text template into the extensible markup language. The text editing process can be automatically managed, errors are reduced, and the working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of text processing technology, and in particular to a text template processing method and system. Background Art

[0002] In related technologies, document editing and revision processes are often tedious, time-consuming, and error-prone for businesses during production and operations. Currently, however, most companies typically use traditional methods for document editing, using basic text editing tools. This approach presents a range of issues, including low document editing efficiency, difficulty in updating and maintaining documents, difficulty in reviewing documents, and the inability to link key data to company operations and management.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention

[0004] The main purpose of the embodiments of the present application is to propose a text template processing method and system that can automatically manage the text editing process, reduce errors and improve work efficiency.

[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a method for processing a text template, the method comprising the following steps:

[0006] Get the first text template;

[0007] Entering the first text template according to the target text rules;

[0008] Matching the first text template entered by the text knowledge base to obtain a second text template;

[0009] Obtaining filling modification information of the second text template;

[0010] Screening and analyzing the fill modification information to obtain a target customized text template;

[0011] The target custom text template is adapted into extensible markup language.

[0012] In some embodiments, the first text template comprises a local text template or an external text template.

[0013] In some embodiments, the target text rule construction process includes:

[0014] Get the editing function of the rich text box;

[0015] The target text rule is obtained by supplementing the editing function of the rich text box with a fixed identifier.

[0016] In some embodiments, the target text rule construction process further includes:

[0017] The text parameters and structured data records in the target text rules are supplemented with functions through custom codes.

[0018] In some embodiments, the method further comprises the following steps:

[0019] Controlling the display process of the first text template entered based on the target text rule;

[0020] The process of displaying the first text template input based on the target text rule control includes:

[0021] Parsing the first text template entered according to the target text rule to obtain a computer-coded text;

[0022] determining a user interface element according to the target text rule;

[0023] Filling the parsed computer-coded text into the user interface element;

[0024] The first text template displayed is tested and corrected by using an automated testing tool and a debugging tool to obtain the first text template displayed.

[0025] In some embodiments, the process of constructing the text knowledge base includes:

[0026] Obtain keywords and inventory information mentioned by users;

[0027] Preprocessing the keywords and the stock information;

[0028] Associating and matching the pre-processed keywords with the stock information through an intelligent processing and analysis model to obtain the most relevant text;

[0029] Entering the pre-processed keywords, the stock information, and the most relevant text into a knowledge base according to a storage structure to obtain a first knowledge base;

[0030] The first knowledge base is verified and audited to obtain a text knowledge base.

[0031] In some embodiments, the screening and analyzing of the fill modification information to obtain a target customized text template includes:

[0032] Storing the acquired filling modification information to obtain a filling modification record;

[0033] Counting the position of the filling modification information according to the first frequency threshold to obtain a high-frequency filling modification input box;

[0034] Push information to the high-frequency fill modification input box;

[0035] Counting repeated information of the filling and modification records according to a second frequency threshold to obtain fixed standard terminology information;

[0036] The filling modification information corresponding to the fixed standard terminology information is replaced with the fixed standard terminology information to obtain a target customized text template.

[0037] In some embodiments, after the step of matching the first text template entered using a text knowledge base to obtain a second text template, the method includes the following steps:

[0038] Exporting the first text template or the second text template to obtain an offline package;

[0039] Sending the offline package to an authorized person terminal so that the authorized person terminal processes the offline package to obtain a first offline package to be reviewed;

[0040] Compare and annotate the first offline package to be reviewed returned by the authorized personnel terminal with the offline package to obtain a second offline package to be reviewed;

[0041] The second offline package to be reviewed is sent to a legal personnel terminal, so that the legal personnel terminal reviews the second offline package to be reviewed.

[0042] In some embodiments, the sending of the offline package to the authorized personnel terminal so that the authorized personnel terminal processes the offline package to obtain a first offline package to be reviewed includes:

[0043] Obtaining the first text template or the second text template in the offline package;

[0044] Copying the first text template or the second text template and performing permission control to obtain an external text template;

[0045] Sending the external text template to an external personnel terminal so that the external personnel terminal processes the external text template to obtain an external personnel text;

[0046] Obtaining an editable text segment in the first text template or the second text template;

[0047] sending the editable text segment to an authorized person terminal according to the target text rule, so that the authorized person terminal processes the editable text segment to obtain an authorized person text;

[0048] The external personnel text and the authorized personnel text are differentially compared and summarized to obtain a first offline package to be reviewed.

[0049] To achieve the above objectives, another aspect of the present application provides a text template system, including:

[0050] The first module is used to obtain a first text template;

[0051] A second module is used to input the first text template according to the target text rules;

[0052] A third module is configured to match the first text template entered through a text knowledge base to obtain a second text template;

[0053] A fourth module is used to obtain filling modification information of the second text template;

[0054] A fifth module is used to screen and analyze the fill modification information to obtain a target customized text template;

[0055] The sixth module is used to adjust the target customized text template into extensible markup language.

[0056] The embodiments of this application include at least the following beneficial effects: This application provides a method and system for processing text templates. This solution matches a first text template with a text knowledge base to obtain a second text template, obtains the fill-in and modification information of the second text template, and filters and analyzes the fill-in and modification information to obtain a target customized text template. This ensures legal compliance and improves consistency of text templates, reduces human error through standardized processes, facilitates tracking of document changes for subsequent dispute resolution, avoids version confusion, and ensures compliance with terms and conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flowchart of a text template processing method provided in an embodiment of the present application;

[0058] Figure 2 is a schematic diagram of a setting interface for entering a first text template according to target text rules;

[0059] Figure 3 is a flow chart of a display process of a first text template input based on target text rule control;

[0060] Figure 4 is a schematic diagram showing a first text template entered based on target text rules;

[0061] Figure 5 It is a schematic diagram of the interface display of the second text template;

[0062] Figure 6 It is a flowchart of the construction of text knowledge base;

[0063] Figure 7 yes Figure 1 Flowchart of step S500 in FIG.

[0064] Figure 8 It is a schematic diagram of an interface for adjusting a target customized text template into an extensible markup language;

[0065] Figure 9 This is a schematic diagram of the interface displayed after conversion to a word document;

[0066] Figure 10 This is a flowchart about offline package generation and processing;

[0067] Figure 11 It is a schematic diagram of a text template system. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are merely examples of devices and methods consistent with some aspects of the embodiments of the present application.

[0069] It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0070] The terms "at least one", "plurality", "each", "any", etc. used in this application include "at least one", "two" or more, "plurality" or "each", "any" or "any one", "each" or "any one" as used herein.

[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0072] In related technologies, Figure 1 This is a flowchart of a text template processing method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S100 to S600:

[0073] Step S100: obtaining a first text template;

[0074] Step S200: inputting the first text template according to the target text rule;

[0075] Step S300: Match the first text template with the text knowledge base to obtain a second text template;

[0076] Step S400: obtaining filling modification information of the second text template;

[0077] Step S500: Filter and analyze the filled modification information to obtain a target customized text template;

[0078] Step S600: Adjust the target customized text template to Extensible Markup Language.

[0079] In some embodiments, the target text rules are rules for user input, user interface display effects, and subsequent parsing by the system. Entering the first text template is to enter the template required for enterprise production and operation into the system according to the method agreed upon by the target text rules. Matching the first text template through the text knowledge base is to allow the user to make agreed modifications to the modifiable part of the first text template. Screening and analyzing the fill-in modification information is to parse the user's fill-in modification information and store it in the database. Adjusting the target customized text template to extensible markup language is to, after determining that the text in the user interface is correct, the system will write the data in the database into the extensible markup language file according to rules such as numbering and style definition to form an extensible markup language file, wherein the extensible markup language file is the basis for the subsequent generation of file types such as pdf or word files.

[0080] In some embodiments, in step S100, for the first text template, if the user does not provide the first text template, a local text template stored in the database is called to match the user's relevant industry and theme for automatic template selection. If the customer provides an external text template, the provided external text template is used as the first text template. Therefore, obtaining the first text template includes obtaining a local text template or obtaining an external text template.

[0081] In some embodiments, in step S200, the first text template is entered according to the target text rule. Specifically, in this step, the user-provided text target is entered according to the target text rule, that is, the obtained local text template or external text template is entered into the program or system carried by the method of the present application for subsequent steps.

[0082] In some embodiments, for the target text rules in step S200, the construction process of the target text rules is to use the editing function of the rich text box as the basic rule and use fixed identifiers to supplement the missing functions of the rich text box. Through this construction method, basic text editing, page layout, insertion function, citation and annotation, watermark, header and footer, cover page and other functions are specified, and these fixed rules are used to form a set of fixed target text rules, among which basic text editing includes: font, font size, color, bold, underline, indentation, etc.; page layout includes: margins, paper size, horizontal or vertical, columns, etc.; insertion function includes: pictures, tables, hyperlinks and other functions. Through the target text rules, the subsequent template entry has a foundation.

[0083] In some embodiments, for the construction of the target text rule, the text content is input in the rich text box and edited according to the first text template. The text is formatted by various tools provided by the editor, such as setting the title level, adjusting the paragraph format, etc. Through the editing operation of the rich text box, a text content that conforms to a certain format and specification is initially formed, and these contents will serve as the basis for constructing the target text rule. In the text that has been preliminarily edited, fixed marks are added according to pre-designed rules. For example, a specific reference mark is added before the paragraph that needs to be quoted, or a special mark is added before and after the content that needs to be emphasized. The functions represented by the fixed marks are implemented by programming. For example, when a reference mark is detected, the format of the paragraph is automatically set to the reference style, or when an emphasis mark is encountered, the text in the mark is set to bold, discolored, etc.

[0084] Check the text with fixed tags to ensure the integrity and consistency of the text rules. Check whether all rule elements are applied correctly and whether the fixed tags can accurately implement their corresponding functions. Save the constructed target text rules to the database or file system for subsequent use. Store the target text rules in text form, or convert them into code logic and store them in the program. In the actual text processing process, the input text is automatically formatted and processed according to the saved target text rules. For example, when the user enters an external text template, the system can automatically adjust the format of the article, add necessary tags, etc. according to the rules.

[0085] In some embodiments, in addition to constructing the target text through the editing function and fixed identifier of the rich text box as described above, when the existing functions are insufficient to support the needs, custom code is required to supplement the text parameters and structured data records in the target text rules. In text rule construction, the expansion of custom code functions is extremely critical. Specifically, for subsequent text parameter transmission, the custom code field can act as a "courier" for information transmission. For example, when constructing a text template generation rule, key text is extracted from the input first text template and passed to the display module through the custom code field. This text can be accurately transmitted to the corresponding location with the help of the custom code field, so that the generated second text template contains accurate text template data. In terms of structured data recording, the custom code field can act like a data classification manager. Suppose a target text rule for product information is constructed. The name, price, type and other data of different products can be recorded according to a specific structure through the custom code field. Each product data is a record, and different attributes correspond to different custom code fields, just like classifying items into different drawers. In this way, these structured data can facilitate subsequent query, statistics and analysis. Whether it is used to generate a second text template corresponding to a certain product, it can quickly obtain the required information from the data recorded by the target text rule, greatly improving data processing efficiency and giving the target text rule powerful data processing capabilities. Figure 2 As shown, Figure 2 This is a diagram of the setup interface for entering the first text template according to the target text rules. It includes the rich text title name, rich text order, rich text content, and parent number. The fields containing English and numbers within the rich text content are custom code fields. The rich text order is used to unify the rich text content with the order in the unentered first text template.

[0086] In some embodiments, after the first text template is entered according to the target text rule, the method further includes controlling the display process of the entered first text template based on the target text rule. Figure 3 As shown, Figure 3 This is a flow chart of the display process of the first text template input based on the target text rule control. Figure 3 The method may include but is not limited to steps S710 to S740:

[0087] Step S710: Parsing the input first text template according to the target text rules to obtain a computer-coded text;

[0088] Step S720: determining a user interface element according to the target text rule;

[0089] Step S730: Filling the parsed computer-coded text into the user interface element;

[0090] Step S740: Testing and correcting the displayed first text template by using an automated testing tool and a debugging tool to obtain the displayed first text template.

[0091] In some embodiments, in steps S710 to S740, the first text template entered is parsed to clarify the rules such as the format, structure, and content requirements of the text. For example, it specifies the use of specific font size and font for titles, the indentation and line spacing of body paragraphs, which parts are hyperlinks, etc., as well as the value range and type (such as numbers, strings, etc.) of the data in the text. The program or system equipped with the present application method reads the text data of the first text template and parses the text data according to the target text rules to obtain computer-encoded text. For example, it identifies different elements such as titles, body text, pictures, links in the text, checks whether the data meets the rule requirements, including whether the data type is correct and whether the value is within the specified range, and uses the selected programming language and framework to build the basic structure of the user interface. According to the target text rules, the corresponding styles and formats are applied to the text elements in the interface. For example, in a web page, the font, color, size, layout and other styles are set using CSS. The parsed computer-encoded text data is filled into the corresponding elements of the user interface. For example, the title text is filled into the title element of the page, and the body content is filled into the paragraph element. For special elements in the text, such as hyperlinks, pictures, etc., corresponding processing is performed. For example, add a click event to the hyperlink so that it can jump to the specified page; load and display pictures, etc. After the first text template is displayed in the interface, test it to check whether it meets the target text rules and expected effects. When problems are found, such as incorrect format, data display errors, etc., adjust and optimize the program until the text can be displayed correctly and beautifully in the user interface. Figure 4 As shown, Figure 4 It is a schematic diagram showing the first text template entered based on the target text rules, including the first text template name, the chapter navigation on the left, the first text template content corresponding to the chapter navigation, and the function settings in the upper right corner.

[0092] In some embodiments, in the step of displaying the first text template entered based on the target text rule, the first text template displayed is tested and corrected using automated testing tools and debugging tools to obtain the first text template displayed. Testing techniques include manual testing, automated testing, code review, and unit testing. Automated testing specifically refers to writing test scripts using automated testing frameworks and tools, such as Selenium (for web page testing) and Appium (for mobile application testing), to automatically simulate user operations and verify the accuracy of text display. These tools can simulate clicks, inputs, and other operations and check whether the properties and states of interface elements meet expectations. Correction methods include debugging tools, logging, or version control. Logging specifically involves adding a logging function to the code to record key operations and data processing processes. By viewing the logs, you can understand what happens during the program's operation, which helps to discover the root cause of the problem. For example, the parsing results of the first text template, the process of style application, etc., can be recorded so that analysis can be performed when problems arise.

[0093] In some embodiments, in step S300, the first text template is matched with the text knowledge base to obtain the second text template. Specifically, the user obtains the second text template by matching the first text template based on the keywords mentioned by the user. The file required by the user can be a word file with open modification or an html file with restrictive modification. Figure 5 As shown, Figure 5 This is a schematic diagram of the interface display of the second text template. The left side of the figure is the chapter navigation, the middle is the contract content corresponding to the chapter navigation, the upper part of the contract content is the first text template, and the lower part of the contract content is the second text template.

[0094] In some embodiments, as Figure 6 As shown, Figure 6 It is a flowchart of the construction of text knowledge base. Figure 6 The method may include but is not limited to steps S310 to S350:

[0095] Step S310: Obtain keywords and inventory information mentioned by the user;

[0096] Step S320: pre-processing keywords and inventory information;

[0097] Step S330: Associating and matching the pre-processed keywords with the stock information through an intelligent processing and analysis model to obtain the most relevant text;

[0098] Step S340: entering the pre-processed keywords, stock information, and most relevant text into the knowledge base according to the storage structure to obtain a first knowledge base;

[0099] Step S350: Verify and review the first knowledge base to obtain a text knowledge base.

[0100] In some embodiments, in steps S310 to S320, various keywords mentioned by users are collected and existing existing information is sorted. Keywords can be obtained from channels such as user inquiries, search records, and external text templates; existing information includes local text templates, historical documents, and business data. These are all important foundations of the knowledge base. Pre-processing operations such as cleaning and conversion are performed on the collected keywords and existing information to remove useless characters and formats, unify data formats, and improve data quality.

[0101] In some embodiments, in steps S330 to S340, the pre-processed keywords and the stock information are associated and matched through an intelligent processing and analysis model to obtain the most relevant text. The intelligent processing and analysis model includes automatic calculation methods and AI matching technologies, including rule engines, machine learning algorithms or natural language processing technologies. Through automatic calculation methods and AI matching technologies, keywords are associated and matched with stock information. For example, through text similarity calculation, the keywords in the knowledge base and the relevant content in the stock information are matched to obtain the most relevant text. The pre-processed keywords, stock information and the most relevant text are entered into the knowledge base according to the storage structure to obtain a first knowledge base. At the same time, for some knowledge that needs to be automatically calculated and generated, such as statistical data, recommended information, etc., the calculation results are also entered into the knowledge base.

[0102] In some embodiments, in step S350, professionals are assigned to review the knowledge entered into the first knowledge base to ensure its accuracy, completeness, and consistency. Auditors can review and revise the knowledge based on their business experience and expertise. Verification testing is performed on the first knowledge base, simulating actual usage scenarios to verify that the knowledge base's query, application, and modification functions function properly. Upon completion of the verification review of the first knowledge base, a text knowledge base is obtained.

[0103] In some embodiments, in step S400, the filling modification information of the second text template is obtained. It is understandable that after the user obtains the second text template, the user may perform adaptive modification on the obtained second text template and extract the modified information to obtain the filling modification information of the second text template.

[0104] In some embodiments, as Figure 7 As shown, Figure 7 yes Figure 1 Flowchart of step S500 in FIG. Figure 1 Step S500 includes but is not limited to steps S510 to S550:

[0105] Step S510: storing the acquired filling modification information to obtain a filling modification record;

[0106] Step S520: Counting the positions of the fill modification information according to the first frequency threshold to obtain a high-frequency fill modification input box;

[0107] Step S530: Push information by filling in the high-frequency modification input box;

[0108] Step S540: Counting repeated information of the filled modification record according to the second frequency threshold to obtain fixed standard terminology information;

[0109] Step S550: Replace the filling modification information corresponding to the fixed standard terminology information with the fixed standard terminology information to obtain a target customized text template.

[0110] In some embodiments, in steps S510 to S530, specifically, the filling modification information of the second text template obtained after the user adaptively modifies the obtained second text template is stored in the database to obtain a filling modification record. The first frequency threshold refers to the threshold set by the frequency statistics of the same modification position during the modification process of the user. Statistical judgment is performed on the modification positions with higher modification frequency in the filling modification record. When the number of times the user adaptively modifies the position of the obtained second text template is greater than the first frequency threshold, the modification position corresponding to the second text template is described in text to obtain a high-frequency filling modification input box. The content of the text description includes the modification position, the number of modifications, the content before the modification, and the content after the modification, etc. The high-frequency filling modification input box is automatically pushed to the administrator for reference, and the administrator determines whether to modify and improve the template.

[0111] In some embodiments, in steps S540 to S550, specifically, the second frequency threshold refers to a threshold value set by counting the number of times the user modifies the same content at the same position during the modification process. A statistical judgment is made when the frequency of modifying the same content in the filling modification record is high. When the number of times the user adaptively modifies the same content in the obtained second text template is greater than the second frequency threshold, the modified content at the same position is defined as fixed standard terminology information. Replacing the filling modification information corresponding to the fixed standard terminology information with the fixed standard terminology information means that the subsequent second text template is described with fixed standard terminology information at the corresponding position, thereby obtaining a target customized text template that meets user needs.

[0112] In some embodiments, before replacing the corresponding fill-in modification information with the fixed standard terminology information, the fixed standard terminology information may be described in text form, and the description content may be automatically pushed to the administrator for reference to confirm whether the fixed standard terminology information is used as a common description in the corresponding position of the second text template, and the template is confirmed and modified. The description content includes information such as the version number, location, number of modifications, content before modification, and content after modification of the second text template.

[0113] In some embodiments, in step S600, Figure 8 As shown, Figure 8 It is an interface diagram for adjusting the target customized text template to the extensible markup language. Adjusting the target customized text template to the extensible markup language is the process of writing the data in the database into the extensible markup language file according to the template number, definition style and other rules, wherein the extensible markup language includes XML files. Specifically, data is extracted from the target customized text template, and the structure and format of the data are determined according to the target customized text template number and definition style. The XML template is defined to determine the structure, elements and attributes of the XML template file. The data extracted from the target customized text template is mapped to the corresponding position in the XML template, and the data is formatted according to the definition style to obtain an XML file. The mapped data is written to the XML file through a programming language, and the generated XML file is saved. XML is an extensible markup language, which is a text format for storing and transmitting data. XML files consist of tags, attributes and text content, and tags are used to describe the structure and semantics of data. It is characterized by good readability, scalability and platform independence.

[0114] In some embodiments, as Figure 9 As shown, Figure 9 This diagram illustrates the interface displayed when converting to a Word document. Customizable text templates in Extensible Markup Language (XML) can be converted to desired formats, such as Word, PDF, Excel, and HTML, based on user needs. Specific implementation methods include converting XML to Word, PDF, or Excel, or outputting HTML using a database and defined rules. The XML file format is programmatically converted to Word or PDF documents.

[0115] like Figure 10 As shown, Figure 10 This is a flowchart about offline package generation and processing. It is executed after the first text template entered is matched with the text knowledge base to obtain the second text template. Figure 10 The method in Figure 10The method includes but is not limited to steps S810 to S840:

[0116] Step S810: Export the first text template or the second text template to obtain an offline package;

[0117] Step S820: Send the offline package to the authorized person terminal, so that the authorized person terminal processes the offline package to obtain a first offline package to be reviewed;

[0118] Step S830: Compare and mark the first offline package to be reviewed returned by the authorized personnel terminal with the offline package to obtain a second offline package to be reviewed;

[0119] Step S840: Send the second offline package to be reviewed to the legal personnel terminal, so that the legal personnel terminal reviews the second offline package to be reviewed.

[0120] In some embodiments, in steps S810 to S840, after the first text template entered according to the target text rules or the second text template obtained by matching the first text template through the text knowledge base, a service application process is opened for the user's enterprise. Specifically, the user enters the first text template according to the target text rules; the second text template is obtained by matching the first text template through the text knowledge base. The first text template or the second text template is exported to obtain an offline package for the user's enterprise. The enterprise can distribute the exclusive offline package to authorized personnel terminals. Each authorized personnel terminal can fill in the template of the offline package in a targeted manner to obtain a first offline package to be reviewed, where the authorized personnel terminal refers to the display terminal of the staff within the enterprise who has modification authority. After obtaining the first offline package to be reviewed, it can be generated as an HTML file according to user needs. The HTML file can be used for comparison in subsequent steps. The first offline package to be reviewed of the HTML file is generated as an anti-counterfeiting document. The anti-counterfeiting measures include but are not limited to watermarks, header page numbers, version numbers, electronic signatures, third-party signatures, etc. The first offline package to be reviewed is compared and annotated with the offline package, displaying the modified parts, modified content, and modification list, resulting in the offline package to be reviewed. This offline package to be reviewed is then sent to legal personnel for review. This application method reduces the possibility of user error and reduces the workload of legal review.

[0121] In some embodiments, in step S820, the offline package is sent to the authorized personnel terminal so that the authorized personnel terminal processes the offline package. In the process of obtaining the first offline package to be reviewed, after receiving the offline package, the authorized personnel terminal obtains the first text template or the second text template in the offline package through the offline package. Since the cooperation of an external personnel is required to complete the first text template or the second text template, the first text template or the second text template is copied and permission controlled to obtain an external text template, and the external text template is sent to the external personnel terminal. Among them, the external personnel terminal refers to the display terminal of an external personnel of the enterprise who has the authority to modify and adjust the external text template. The permission control includes the template display only through the web page, the modification of only the parts of the external text template that are allowed to be modified and supplemented, and saving or feedback. The modified and supplemented external text template is the external personnel text, wherein saving or feedback includes saving the modified and supplemented file to a local archive or sending it to the authorized personnel terminal.

[0122] In some embodiments, an offline package is sent to an authorized personnel terminal for processing to obtain a first offline package awaiting review. Upon receiving the offline package, the authorized personnel terminal performs the following steps: obtaining a first text template or a second text template from the offline package; a staff member with modification authority uses the authorized personnel terminal to edit the content that was configured as editable during template entry; and exporting the editable and selectable portions of the document editing operation to obtain the authorized personnel text. The authorized personnel terminal then compares and summarizes the differences between the obtained external personnel text and the authorized personnel text, thereby generating the first offline package awaiting review. The differential comparison includes displaying the modified portions, modified content, and a list of modifications.

[0123] like Figure 11 As shown, a text template system includes:

[0124] The first module is used to obtain a first text template;

[0125] The second module is used to input the first text template according to the target text rules;

[0126] The third module is used to match the input first text template with the text knowledge base to obtain a second text template;

[0127] The fourth module is used to obtain the filling modification information of the second text template;

[0128] The fifth module is used to filter and analyze the fill modification information to obtain the target customized text template;

[0129] The sixth module is used to adjust the target customized text template into extensible markup language.

[0130] The present application also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned text template processing method. The electronic device can be any smart terminal including a tablet computer, an in-vehicle computer, or the like.

[0131] It can be understood that the contents of the above method embodiments are applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0132] The embodiments described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0133] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0135] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0136] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0137] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store programs.

[0139] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention should be within the scope of the present invention.

Claims

1. A method for processing a text template, characterized in that: The method comprises the following steps: Get the first text template; Entering the first text template according to the target text rules; Matching the first text template entered by the text knowledge base to obtain a second text template; Obtaining filling modification information of the second text template; Screening and analyzing the fill modification information to obtain a target customized text template; The target custom text template is adapted into extensible markup language.

2. The method according to claim 1, characterized in that The first text template includes a local text template or an external text template.

3. The method according to claim 1, characterized in that The process of constructing the target text rules includes: Get the editing function of the rich text box; The target text rule is obtained by supplementing the editing function of the rich text box with a fixed identifier.

4. The method according to claim 3, characterized in that The target text rule construction process further includes: The text parameters and structured data records in the target text rules are supplemented with functions through custom codes.

5. The method according to claim 1, wherein The method further comprises the following steps: Controlling the display process of the first text template entered based on the target text rule; The process of displaying the first text template input based on the target text rule control includes: Parsing the first text template entered according to the target text rule to obtain a computer-coded text; determining a user interface element according to the target text rule; Filling the parsed computer-coded text into the user interface element; The first text template displayed is tested and corrected by using an automated testing tool and a debugging tool to obtain the first text template displayed.

6. The method according to claim 1, characterized in that The process of constructing the text knowledge base includes: Obtain keywords and inventory information mentioned by users; Preprocessing the keywords and the stock information; Associating and matching the pre-processed keywords with the stock information through an intelligent processing and analysis model to obtain the most relevant text; Entering the pre-processed keywords, the stock information, and the most relevant text into a knowledge base according to a storage structure to obtain a first knowledge base; The first knowledge base is verified and audited to obtain a text knowledge base.

7. The method according to claim 1, characterized in that The screening and analysis of the filling modification information to obtain a target customized text template includes: Storing the acquired filling modification information to obtain a filling modification record; Counting the position of the filling modification information according to the first frequency threshold to obtain a high-frequency filling modification input box; Push information to the high-frequency fill modification input box; Counting repeated information of the filling and modification records according to a second frequency threshold to obtain fixed standard terminology information; The filling modification information corresponding to the fixed standard terminology information is replaced with the fixed standard terminology information to obtain a target customized text template.

8. The method according to claim 1, characterized in that After the step of matching the first text template entered by using the text knowledge base to obtain the second text template, the method includes the following steps: Exporting the first text template or the second text template to obtain an offline package; Sending the offline package to an authorized person terminal so that the authorized person terminal processes the offline package to obtain a first offline package to be reviewed; Compare and annotate the first offline package to be reviewed returned by the authorized personnel terminal with the offline package to obtain a second offline package to be reviewed; The second offline package to be reviewed is sent to a legal personnel terminal, so that the legal personnel terminal reviews the second offline package to be reviewed.

9. The application method according to claim 8, characterized in that: The step of sending the offline package to the authorized person terminal so that the authorized person terminal processes the offline package to obtain a first offline package to be reviewed includes: Obtaining the first text template or the second text template in the offline package; Copying the first text template or the second text template and performing permission control to obtain an external text template; Sending the external text template to an external personnel terminal so that the external personnel terminal processes the external text template to obtain an external personnel text; Obtaining an editable text segment in the first text template or the second text template; sending the editable text segment to an authorized person terminal according to the target text rule, so that the authorized person terminal processes the editable text segment to obtain an authorized person text; The external personnel text and the authorized personnel text are differentially compared and summarized to obtain a first offline package to be reviewed.

10. A text template system, characterized in that: include: The first module is used to obtain a first text template; A second module is used to input the first text template according to the target text rules; A third module is configured to match the first text template entered through a text knowledge base to obtain a second text template; A fourth module is used to obtain filling modification information of the second text template; A fifth module is used to screen and analyze the fill modification information to obtain a target customized text template; The sixth module is used to adjust the target customized text template into extensible markup language.

Citation Information

Patent Citations

  • Character modification method and device, electronic device and storage medium

    CN110347996A

  • Character template generation method and device

    CN110929496A

  • Template dynamic generation method and system, computer equipment and storage medium

    CN112115695A

  • Method and device for generating bid invitation file template based on docx type file identification

    CN115130452A

  • Document template generation method for text management system

    CN116882380A