Standard text processing method and device, equipment and medium
By automatically parsing and processing operation requests of standard text, the problem of inaccuracy and efficiency caused by manual operations is solved, and efficient and secure text processing and transmission is achieved.
Patent Information
- Application Number
- CN202410785324.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, standard text processing relies on manual operations, resulting in low processing accuracy and low efficiency, and prone to erroneous operations.
Provided is a standard text processing method and device, which automatically executes corresponding processing by receiving processing operation requests, parsing processing information, obtaining operation types and text elements by means of an encryption algorithm.
Improve the accuracy and efficiency of standard text processing and ensure the security of data transmission.
Smart Images

Figure CN118916482A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a standard text processing method, device, equipment and medium. Background Art
[0002] With the rapid development of computer science, standardization documents are "documents developed through standardization activities". Standardization documents are a type of normative documents. The main difference between them and other normative documents in terms of the entropy of the formation process is that they are generated from standardization activities. The development of standardization documents is empirical, and the content is provided by experienced technicians. In order to improve the efficiency of document editing, it is particularly important to study how to process standard texts.
[0003] At present, in the process of processing standard texts in related technologies, operations are performed through manual experience. However, this solution requires reliance on a large amount of manpower and material resources, and manual operations are prone to errors, resulting in low accuracy in processing standard texts, thereby reducing processing efficiency. Summary of the invention
[0004] In view of this, the present invention provides a standard text processing method, device, equipment and medium, which at least partially solve the problems existing in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a standard text processing method, the method comprising:
[0006] The current user terminal receives and responds to a processing operation request for the standard text; the processing operation request carries processing operation information for the standard text;
[0007] Parsing the processing operation information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text;
[0008] According to the operation type and the text element, corresponding processing is performed on the standard text to obtain an updated text;
[0009] The updated text is sent to the next user end using an encryption algorithm.
[0010] In a second aspect, the present application provides a standard text processing device, the device comprising:
[0011] A receiving module, used for the current user end to receive and respond to a processing operation request for the standard text; the processing operation request carries processing operation information of the standard text;
[0012] A parsing module, used to parse the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text;
[0013] An operation module, used for performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text;
[0014] The sending module is used to send the update text to the next user terminal using an encryption algorithm.
[0015] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the standard text processing method of the first aspect described above is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to implement the standard text processing method of the first aspect above.
[0017] The standard text processing method, device, equipment and medium provided in the embodiment of the present application, the current user end receives and responds to the processing operation request for the standard text, the processing operation request carries the processing operation information of the standard text, and parses the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content element, hierarchical layout style, expression form and typesetting form of the standard text, and then performs corresponding processing on the standard text according to the operation type and the text element to obtain the updated text, and uses the encryption algorithm to send the updated text to the next user end. Compared with the prior art, the technical solution can automatically obtain the processing operation information of the standard text, and accurately parse the operation type and the corresponding text element, so as to perform corresponding processing on the standard text in a targeted manner according to the operation type and the text element to obtain the updated text, thereby improving the processing accuracy of the standard text, and then using the encryption algorithm to send the updated text to the next user end, while ensuring the security of data transmission, it also greatly improves the data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1Schematic diagram of the process flow of the standard text processing method provided in the embodiment of the present application
[0020] Figure 2 A schematic diagram of a display interface of a directory menu bar provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a display interface for inserting a directory provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the display interface of the preface menu bar provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a display interface for the preface content provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of the display interface of the introduction menu bar provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of a display interface for inserting introduction content provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the display interface of the appendix menu bar provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the display interface of the appendix content provided in the embodiment of the present application;
[0028] Fig.10 A schematic diagram of a display interface for adding appendix content provided in an embodiment of the present application;
[0029] Fig.11 A schematic diagram of a display content interface for deleting an appendix provided in an embodiment of the present application;
[0030] Fig.12 A schematic diagram of the display interface of the document menu bar provided in the embodiment of the present application;
[0031] Fig.13 A schematic diagram of a display interface of an index menu bar provided in an embodiment of the present application;
[0032] Fig.14 A schematic diagram of a display interface of a term bar menu bar provided in an embodiment of the present application;
[0033] Fig.15 A schematic diagram of a display interface with a title bar menu bar provided in an embodiment of the present application;
[0034] Fig.16 A schematic diagram of the display interface of the non-titled menu bar provided in an embodiment of the present application;
[0035] Fig.17 A schematic diagram of a display interface of a list menu bar provided in an embodiment of the present application;
[0036] Fig.18 A schematic diagram of a display interface of a call number menu bar provided in an embodiment of the present application;
[0037] Fig.19 A schematic diagram of a display interface of a formula menu bar provided in an embodiment of the present application;
[0038] Fig. 20 A schematic diagram of a display interface for inserting a table provided in an embodiment of the present application;
[0039] Fig.21 A schematic diagram of a display interface of a table menu bar provided in an embodiment of the present application;
[0040] Fig. 22 A schematic diagram of a display interface after a cross-page table is split according to an embodiment of the present application;
[0041] Fig.23 A schematic diagram of a display interface for merging tables across pages provided in an embodiment of the present application;
[0042] Fig.24 A schematic diagram of a display interface of a table title menu bar provided in an embodiment of the present application;
[0043] Fig.25 A schematic diagram of a display interface of a table footer menu bar provided in an embodiment of the present application;
[0044] Fig.26 A schematic diagram of a display interface of a termination line menu bar provided in an embodiment of the present application;
[0045] Fig. 27 A schematic diagram of a specific display interface for units and symbols provided in an embodiment of the present application;
[0046] Fig.28 A schematic diagram of the display interface of the horizontal page menu bar provided in an embodiment of the present application;
[0047] Fig.29 The format provided in the embodiment of the present application is based on a display interface diagram of a menu bar;
[0048] Fig.30 A flowchart of a method for sending a target data packet and an activation code to a next user terminal provided in an embodiment of the present application;
[0049] Fig.31 A schematic diagram of the flow of a standard text processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0051] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.
[0052] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0053] At present, in the process of processing standard texts in related technologies, operations are performed through manual experience. However, this solution requires reliance on a large amount of manpower and material resources, and manual operations are prone to errors, resulting in low accuracy in processing standard texts, thereby reducing processing efficiency.
[0054] Based on the above-mentioned defects, the present application provides a standard text processing method, device, equipment and medium. Compared with the prior art, the technical solution can automatically obtain the processing operation information of the standard text, and accurately parse the operation type and the corresponding text element, so as to perform corresponding processing on the standard text in a targeted manner according to the operation type and text element, and obtain an updated text, thereby improving the processing accuracy of the standard text, and then using an encryption algorithm to send the updated text to the next user end, which not only ensures the security of data transmission, but also greatly improves the data processing efficiency.
[0055] For ease of understanding and explanation, the following Figures 1 to 31 The standard text processing method, device, equipment, and medium provided in the embodiments of the present application are described in detail.
[0056] Figure 1 The figure shows a flow chart of a standard text processing method according to an embodiment of the present application, which can be executed by a computer device. Figure 1 As shown, the method includes:
[0057] S101. The current user terminal receives and responds to a processing operation request for a standard text; the processing operation request carries processing operation information of the standard text.
[0058] It should be noted that the above-mentioned standard text is a pre-edited template text that meets the preset standards. The standard text may have an editing function. The preset standards may include national standards, industry standards, group standards, enterprise standards, local standards, and standardization guidance technical documents.
[0059] The processing operation request may be generated according to the needs of the user, and the processing request is used to represent the execution of the corresponding operation processing on the standard text. The standard text may be generated when the user triggers the standard text, and the processing operation request carries the processing operation information of the standard text. The processing operation information may include the operation type and the corresponding text element of the standard text. The operation type may include at least one of the following: add, delete, modify, query, etc., and the text element refers to the element in the standard text that can be edited.
[0060] Optionally, the above processing operation request may be sent from other terminals to the current user terminal, or may be automatically generated when a user triggers a standard text.
[0061] S102, parsing the processing operation information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text.
[0062] S103: Perform corresponding processing on the standard text according to the operation type and the text element to obtain the updated text.
[0063] Specifically, after obtaining the processing operation request information, the processing operation request information can be parsed, for example, by using a parsing algorithm to obtain a character string corresponding to the processing operation request information, and then determining the first position and the second position of the character string according to preset rules, determining the content of the first field corresponding to the first position as the operation type, and determining the content of the second field corresponding to the second position as a text element corresponding to the operation type.
[0064] The text elements include the content elements, hierarchical layout style, expression form and typesetting form of the standard text. Content elements refer to the elements in the standard text that can be edited, and the content elements include at least one of the following: table of contents elements, preface elements, introduction elements, appendix elements, document elements, and index elements; hierarchical layout style refers to the distribution position of each module of the standard text, and the hierarchical layout style includes at least one of the following: term entries, title entries, untitled entries, column entries, adjustment numbers, chapters, and paragraphs. Expression expression form refers to the expression form of special symbols and marks in the standard text, and it includes at least one of the following: formulas, tables, table titles, table footnotes, figure titles, figure footnotes, class notes, and examples; typesetting form refers to the arrangement structure of each module of the standard text, and the typesetting form includes at least one of the following: horizontal page, vertical page, double-sided layout, cancellation of protection, and format basis.
[0065] As an implementable manner, when the text element is a content element of a standard text, corresponding processing is performed on the standard text according to the operation type and the text element to obtain an updated text, including:
[0066] According to the content element, an element menu bar where the content element is located in the standard text is obtained; the element menu bar includes multiple content element controls, receives and responds to a first operation instruction for the content element control, and obtains an operation box corresponding to the operation type; based on the operation box, an operation corresponding to the operation type is performed on the content element to obtain an updated text.
[0067] Specifically, when the above text element is a directory, the corresponding operation type may include inserting and deleting. If the current user terminal obtains the processing operation information of the standard text, it can parse the processing operation information to determine whether to insert a directory or delete a directory. When inserting a directory, obtain the directory menu bar where the directory is located in the standard text. The directory menu bar includes multiple directory controls, including "directory" and "delete directory". The corresponding display interface can be seen in the following figure. Figure 2 As shown, the user can then click the "Directory" control on the directory menu bar, so that the current user terminal receives the first operation instruction for the directory control and obtains the operation box corresponding to the directory. The operation box provides the function of selecting the directory structure. The user can perform corresponding operations on the operation box, for example, click the corresponding function item. If the "Five-level heading" is selected, the directory items above the current position in the standard text will be checked. At this time, the headings in the appendix are automatically consistent with the selected ones. After completing the selection, the user can click the "OK" button, and the standard text will automatically add the directory according to the "Optional directory content". The corresponding display interface diagram can be seen in Figure 3 shown.
[0068] Optionally, after modifying the content of the standard text, if you need to update the table of contents, just click Add again. At this time, the standard text will recognize "with title bar" and "without title bar", so when adding and updating the table of contents, "without title bar" will be automatically filtered out so that it will not be listed in the table of contents.
[0069] When it is necessary to delete a directory, the user can click the "Directory" button in the directory menu bar to obtain the directory menu bar where the directory is located in the standard text. The directory menu bar includes multiple directory controls, including "Directory" and "Delete Directory". If it is necessary to delete the "Directory", the user continues to click "Delete Directory". At this time, an operation box will pop up on the current user-side display interface. The operation box can be a dialog box. The dialog box is used to represent the question "Are you sure you want to delete the directory?"; when it is necessary to delete, the user can click the "Yes" button, and the "Directory" element will be deleted.
[0070] Optionally, when the content element is a preface element, the corresponding operation type may include insert, unidentified patent, and delete. When the operation type and content element are determined to be insert preface, the preface menu bar where the directory is located in the standard text is obtained. The preface menu bar includes multiple preface controls, including "preface", "unidentified patent" and "delete preface". The corresponding display interface can be seen as follows Figure 4 As shown, the user can then click on the preface control on the preface menu bar, so that the current user terminal receives the first operation instruction for the preface control and obtains an operation box corresponding to the directory. The operation box can include an insertion position of the preface, and the insertion position can be, for example, the header position of the first page of the standard text. The user can perform a corresponding operation on the operation box, that is, insert the preface at the corresponding position of the standard text. The display interface of the inserted preface content can be referred to in Figure 5 shown.
[0071] When it is necessary to give an explanation of the patents involved in the file that has not yet been identified, the user can click the "Preface" button in the preface menu bar to obtain the preface menu bar where the table of contents is located in the standard text. The preface menu bar includes multiple preface controls, including "Preface", "Unidentified Patent" and "Delete Preface". The user can then click the "Unidentified Patent" control on the preface menu bar, so that the current user terminal receives the first operation instruction for the "Unidentified Patent" control and obtains the operation box corresponding to the preface, which includes the insertion position of the corresponding content of the "Unidentified Patent". Then, the text "Please note that some contents of this document may involve patents. The issuing agency of this document does not assume the responsibility for identifying patents." is inserted at the corresponding position, thereby completing the insertion operation of the corresponding content of the "Unidentified Patent".
[0072] When it is necessary to delete the preface, the user can click the "Preface" button in the preface menu bar to obtain the preface menu bar where the preface is located in the standard text. The preface menu bar includes multiple preface controls, including "Preface" and "Delete Preface". If it is necessary to delete the "Preface", the user continues to click "Delete Preface". At this time, an operation box will pop up on the current user-side display interface. The operation box can be a dialog box. The dialog box is used to represent the question "Are you sure you want to delete the preface?"; when it is necessary to delete, the user can click the "Yes" button, and the "Preface" element will be deleted.
[0073] Optionally, when the content element is an introduction element, the corresponding operation type may include insert, identified patent, and delete. When the operation type and content element are determined to be insert introduction, the introduction menu bar where the introduction is located in the standard text is obtained. The introduction menu bar includes multiple introduction controls, including "Introduction", "Identified Patent" and "Delete Introduction". The corresponding display interface can be seen as follows Figure 6 As shown, the user can then click on the "Introduction" control on the introduction menu bar, so that the current user terminal receives the first operation instruction for the introduction control and obtains the operation box corresponding to the introduction. The operation box may include the insertion position of the introduction. The insertion position can be, for example, the header position of the first page of the standard text. The user can perform a corresponding operation on the operation box, that is, insert the introduction at the corresponding position of the standard text.
[0074] When it is necessary to give a description of the patents involved in the identified documents, the user can click the "Introduction" button in the introduction menu bar to obtain the introduction menu bar where the introduction is located in the standard text. The introduction menu bar includes multiple introduction controls, including "Introduction", "Identified Patents" and "Delete Introduction". Then the user can click the "Identified Patents" control on the introduction menu bar to obtain the following information: Figure 7 The display interface shown enables the current user terminal to receive the first operation instruction for the "Identified Patent" control, obtain the operation box corresponding to the introduction, which includes the insertion position of the corresponding content of the "Identified Patent", and then insert the corresponding text at the corresponding position, thereby completing the insertion operation of the corresponding content of the "Identified Patent".
[0075] When it is necessary to delete the quotation, the user can click the "Quotation" button in the quotation menu bar to obtain the quotation menu bar where the quotation is located in the standard text. The quotation menu bar includes multiple quotation controls, including "Quotation" and "Delete Quotation". If it is necessary to delete the "Quotation", the user continues to click "Delete Quotation". At this time, an operation box will pop up on the current user-side display interface. The operation box can be a dialog box. The dialog box is used to represent the question "Are you sure you want to delete the quotation?"; when deletion is required, the user can click the "Yes" button, and the "Quotation" element will be deleted.
[0076] Optionally, when the content element is an appendix element, the corresponding operation type may include inserting and deleting. When the operation type and content element are determined to be inserting an appendix, the appendix menu bar where the appendix is located in the standard text is obtained. The appendix menu bar includes multiple appendix controls, including "Appendix" and "Delete Appendix". The corresponding display interface can be seen in FIG. Figure 8 As shown, the user can then click the appendix control on the appendix menu bar, so that the current user terminal receives the first operation instruction for the appendix control and obtains the operation box corresponding to the appendix. The display interface of the operation box can be seen in FIG. Fig. 9 As shown in the figure, the operation box can include windows such as "Appendix Function", "Appendix Number", and "Appendix Title". Users can select "Normative" or "Informative" in the "Appendix Function" window. The default setting is "Normative". Enter the corresponding appendix title below the current position of the standard text "Appendix Title". After completing the above work, click the "OK" button at the position, and the appendix will be automatically added at the corresponding position. The display interface can be seen in the figure below. Fig.10 shown.
[0077] It should be noted that the appendix will generally be automatically added immediately after the main text and will be automatically numbered "Appendix A"; when more appendices need to be added, the appendix numbers will be automatically extended, such as "Appendix B", "Appendix C", etc.; if the user selects an existing appendix number (such as Appendix B) when adding an appendix, the newly added appendix will be Appendix B, and the original Appendix B will be extended to Appendix C. The numbers of other appendixes will be automatically adjusted, thereby achieving automatic and flexible addition of the required appendices.
[0078] When it is necessary to delete an appendix, the user can click the "Appendix" button in the appendix menu bar to obtain the appendix menu bar where the appendix is located in the standard text. The appendix menu bar includes multiple appendix controls, including "Appendix" and "Delete Appendix". If it is necessary to delete "Appendix", the user continues to click "Delete Appendix". At this time, the current user terminal display interface will pop up an operation box, which may include a display interface, which can be seen in Fig.11 As shown in the figure, it includes "Delete specific appendix" and "Delete all appendices". Users can make a selection in the operation box. If you select "Delete specific appendix" in the figure above, then specify the appendix number to be deleted and click the "OK" button, the specified appendix can be deleted. If the user selects "Delete all appendices", all appendix elements will be deleted.
[0079] Optionally, when the content element is a document element, the corresponding operation type may include inserting and deleting. When the operation type and content element are determined to be inserting a document, the document menu bar where the document is located in the standard text is obtained. The document menu bar includes multiple document controls, including "document" and "delete reference". The corresponding display interface can be seen in FIG. Fig.12 As shown, the user can then click on the document control on the document menu bar, so that the current user terminal receives the first operation instruction for the document control, obtains the operation box corresponding to the document, and the operation box may include the insertion position of the standard text, and then inserts the reference element with the title "References" at the insertion position of the standard text.
[0080] When it is necessary to delete a reference, the user can click the "Document" button in the document menu bar to obtain the document menu bar where the document is located in the standard text. The document menu bar includes multiple document controls, including "Document" and "Delete Reference". If it is necessary to delete the "Reference", the user continues to click the "Delete Reference" control in the document menu bar. At this time, an operation box will pop up on the current user-side display interface. The operation box can be a dialog box. The dialog box is used to represent the question "Are you sure you want to delete the reference?"; when deletion is required, the user can click the "Yes" button, and the "Reference" element will be deleted.
[0081] Optionally, when the content element is an index element, the corresponding operation type may include insert and delete. When it is determined that the operation type and the content element are insert index, the index menu bar where the index is located in the standard text is obtained. The index menu bar includes multiple index controls, including "index", "add index item", "update all index items" and "delete all indexes". The corresponding display interface can be seen in Fig.13 As shown, the user can then click on the index control on the index menu bar, so that the current user terminal receives the first operation instruction for the index control, obtains the operation box corresponding to the index, which may include the insertion position of the standard text, and then inserts the index element with "Index" as the title at the insertion position of the standard text.
[0082] When it is necessary to delete the index, the user can click the "Index" button in the index menu bar to obtain the document menu bar where the document is located in the standard text. The document menu bar includes multiple document controls, including "Index", "Add Index Item", "Update All Index Items" and "Delete All Indexes". If it is necessary to delete the "Reference Index", the user continues to click "Delete All Indexes". At this time, an operation box will pop up on the current user-side display interface. The operation box can be a dialog box. The dialog box is used to represent the question "Are you sure you want to delete all indexes?"; when deletion is required, the user can click the "Yes" button, and the "All Indexes" element will be deleted.
[0083] In this embodiment, by obtaining the element menu bar where the content element is located in the standard text, operations corresponding to the operation type can be automatically performed on the table of contents elements, preface elements, introduction elements, appendix elements, document elements, and index elements, thereby making the text operationally more flexible and greatly improving the processing efficiency of the standard text.
[0084] As another achievable manner, when the text element is a content element of a standard text, corresponding processing is performed on the standard text according to the operation type and the text element to obtain an updated text, including:
[0085] According to the hierarchical layout style, a hierarchical menu bar where the hierarchical layout style is located in the standard text is obtained; the hierarchical menu bar includes multiple hierarchical layout controls, and the hierarchical layout style includes at least one of the following: a term item, a title item, an untitled item, a column item, a call number, a chapter, and a paragraph; a second operation instruction to the hierarchical layout control is received and responded to, and the hierarchical layout style of the standard text is adjusted according to the operation type to obtain an updated text.
[0086] When the hierarchical layout style is a term entry of standard text, the corresponding operation type may include adjusting the term entry. When the operation type and content element are determined to be adjusting the term entry, the term entry menu bar where the term entry is located in the standard text is obtained. The term entry menu bar includes multiple term entry controls. The term entry style can be divided into five levels, namely "term entry one", "term entry two", "term entry three", "term entry four" and "term entry four five". The corresponding display interface can be seen as follows Fig.14 As shown, the user can then click on the term bar control on the term bar menu bar, so that the current user terminal receives the second operation instruction for the term bar control, and the corresponding term entry format can be automatically generated by selecting the "term entry" of the corresponding level in the hierarchical style, and the number of the term entry does not need to be manually entered. Optionally, after the user selects the corresponding "term entry", the "term" and "foreign language equivalent" can be entered at the cursor position of the standard text, and then the Enter key will be pressed, and the corresponding format will be automatically set, and the definition content can be manually entered.
[0087] When the hierarchical layout style is a standard text with a title bar, the corresponding operation type may include adjusting the title bar. When the operation type and content element are determined to be adjusting the title bar, a title bar menu bar where the title bar is located in the standard text is obtained. The title bar menu bar includes multiple title bar controls. The title item style can be divided into five levels, namely "first level bar", "second level bar", "third level bar", "fourth level bar" and "fifth level bar". The corresponding display interface can be seen as follows Fig.15 As shown, the user can then click on the title bar control on the title bar menu bar, so that the current user terminal receives the second operation instruction for the title bar control. By selecting the "bar" of the corresponding level in the hierarchical style in the above figure, the corresponding bar title format can be automatically generated, and the bar number does not need to be manually entered.
[0088] When the hierarchical layout style is an untitled bar of standard text, the corresponding operation type may include adjusting the untitled bar. When it is determined that the operation type and content element are adjusting the untitled bar, the untitled bar menu bar where the untitled bar is located in the standard text is obtained. The untitled bar menu bar includes multiple untitled bar controls. The untitled item style can be divided into five levels, namely "untitled bar 1", "untitled bar 2", "untitled bar 3", "untitled bar 4" and "untitled bar 5". The corresponding display interface can be seen as follows Fig.16 As shown, the user can then click the untitled bar control on the untitled bar menu bar, so that the current user terminal receives the second operation instruction for the untitled bar control, and automatically generates the corresponding untitled bar format by selecting the "untitled bar" of the corresponding level in the hierarchical style in the above figure, and the number of the untitled bar does not need to be manually entered. Among them, the untitled bar refers to the article without a title but with a title number. When the table of contents is automatically generated, the untitled bar will not be displayed in the table of contents.
[0089] When the hierarchical layout style is a standard text list item bar, the corresponding operation type may include adjusting list items. When the operation type and content element are determined to be adjusting list items, the list item menu bar where the untitled bar is located in the standard text is obtained. The list item menu bar includes multiple list item controls. The list item style may include four types, namely "letter item", "number item", "list item one" and "list item two". The corresponding display interface can be seen as follows Fig.17 As shown, the user can then click on the column item control on the column item menu bar, so that the current user terminal receives the second operation instruction for the column item control. The user can click on "Letter Item", and then automatically insert letter numbers "a)", "b)", "c)", etc. at the beginning of the line where the cursor is located in the standard text, and set it as the format of the first-level letter number column item. The examples are as follows: a) Letter Item Example. The user can also first click on "Column Item" in the hierarchy style, and then click on "Number Item", and automatically insert number numbers "1)", "2)", "3)", etc. at the beginning of the line where the cursor is located, and set it as the format of the second-level numbered column item. The examples are as follows: 1) Number Item Example. The user can first click on "Column Item" in the hierarchy style, and then click on "Column Item One", and a dash "——" will be automatically inserted at the beginning of the line where the cursor is located, and set it as the first-level column item format. The examples are as follows: —— Column Item One Example. The user can first click on "Column Item" in the hierarchy style, and then click on "Column Item Two", and a separator will be automatically inserted at the beginning of the line where the cursor is located, and set it as the second-level column item format. The examples are as follows: · Column Item Two Example.
[0090] When the hierarchical layout style is the call number of the standard text, the corresponding operation type may include the call number. When the operation type and content element are determined to be the call number, the call number menu bar where the call number is located in the standard text is obtained. The call number menu bar includes multiple call number controls. The call number style may include two types, namely "renumber" and "continue number". The corresponding display interface can be seen in FIG. Fig.18 As shown. Adjusting the number is used to adjust the number of numbered items, Note X, Example X, figure footnotes, etc. The user can place the cursor on the line where the number to be adjusted is located in the standard text, and then click "Renumber" in the above picture, and the numbering will start from 1 or a; continue to click "Continue Numbering" in the above picture, and the numbering will be adjusted to continue after the number of the most recent content in the same format, and the numbers of similar content will increase one by one.
[0091] When the hierarchical layout style is a standard sample chapter, the corresponding operation types may include adjusting the chapter. When it is necessary to add or set certain contents of the file as chapter titles, the user can click the "Chapter" control in the hierarchical style, and the corresponding chapter title format will be automatically generated. The chapter number does not need to be entered manually.
[0092] When the hierarchical layout style is a paragraph of a standard sample, the corresponding operation type may include adjusting the paragraph. When the paragraph needs to be adjusted, the user may click the "Paragraph" control in the hierarchical style, and the format of the corresponding paragraph will be automatically generated.
[0093] In this embodiment, when the text element is a hierarchical layout style of a standard text, the hierarchical menu bar can be automatically obtained, and corresponding operations can be performed according to the menu bars corresponding to the term items, title items, untitled items, column items, adjustment numbers, chapters, and paragraphs. The standard text hierarchical layout style can be quickly adjusted, thereby improving the convenience and flexibility of operation processing.
[0094] As another possible implementation, when the text element is a standard text expression, corresponding processing is performed on the standard text according to the operation type and the text element to obtain the updated text, including:
[0095] According to the expression form, an expression menu bar where the expression form is located in the standard text is obtained; the expression menu bar includes multiple expression form controls, and the expression form includes at least one of the following: formula, table, table title, table footnote, figure title, figure footnote, class note, example; receiving and responding to a third operation instruction to the expression form control, performing a corresponding operation on the standard text according to the operation type, and obtaining an updated text.
[0096] When the expression form is a formula in standard text, the corresponding operation type may include writing a formula. When it is determined that the operation type and expression form are writing a formula, the formula menu bar where the formula is located in the standard text is obtained. The formula menu bar includes multiple formula controls, including "Formula" and "Appendix Formula Number Update". The corresponding display interface can be seen as follows Fig.19As shown, the user can then click the formula control on the formula menu bar, so that the current user terminal receives the third operation instruction for the formula control, and automatically inserts the formula at the current cursor position. The user can edit the formula, and the text formula number or the appendix formula number will be automatically assigned according to the position of the formula. Optionally, the user can click the formula control "Appendix Formula Number Update" on the formula menu bar to renumber the formulas in the appendix starting from 1.
[0097] In this step, by performing corresponding operations in the formula menu bar, the formulas in the standard text can be flexibly adjusted and deleted, making the text more standardized and complete, and improving text processing efficiency.
[0098] When the expression form is a table in standard text, the corresponding operation types may include inserting a table, modifying the table style, inserting table notes and footer rows, splitting a table across pages, and merging a table across pages. When the operation type and expression form are determined to be inserting a table, the table menu bar where the table is located in the standard text is obtained. The table menu bar includes multiple table controls, including "Insert Table", "Modify Table Style", "Insert Table Notes and Footer Rows", "Split Table Across Pages" and "Merge Table Across Pages". The corresponding display interface can be seen in the following figure. Fig. 20 As shown, the user can then click the table control "Insert Table" on the table menu bar, so that the current user terminal receives the third operation instruction for the table control, and obtains the following Fig.21 In the display interface shown, the user can enter the number of rows and columns of the table in the window of the display interface, and then click the "OK" button to set the frame lines of the corresponding table in accordance with the regulations. If the user needs to insert a table with "table note row" or "footnote row", he can make the corresponding selection in the window of the corresponding display interface, and then click the "OK" button to complete the table insertion operation.
[0099] When you need to modify the table style, you can click the table control "Modify table style" on the table menu bar. If the table is generated through the WPS application insert function instead of Word, the thickness of the table borders does not meet the requirements of GB / T 1.1-2020. You can click "Modify table style" in the drop-down menu above to automatically modify the table style without the need for users to manually modify the style line by line.
[0100] When you need to insert a note or footer row, the user can click the table control "Insert note or footer row" on the table menu bar. Whether you need to insert a note or footer row, the user only needs to place the cursor on the row immediately above the row to be inserted, and then click the "Insert note or footer row" control in the table menu bar in the figure above, and the corresponding note or footer row will be inserted at the corresponding position. If you want to insert a footer row immediately after inserting a note row, the user needs to place the cursor in the note row just inserted, and then click the "Insert note or footer row" control in the table menu bar in the figure above to complete the operation of inserting a note or footer row.
[0101] When it is necessary to split a table across pages, the user can click the table control "Split table across pages" on the table menu bar. It is understandable that sometimes the table in the file is very large and spans pages. By clicking the "Split table across pages" control in the table menu bar, the table will be automatically split and comply with the provisions of GB / T 1.1-2020 on the page turn and continuation of tables. Among them, if the table may contain "table notes and table footnotes", it is necessary to add the table notes and table footnotes before splitting, otherwise the table footnote numbering will be confusing. Among them, the schematic diagram after the table is split can be seen as follows Fig. 22 When there are vertically merged cells, the table cannot be split and merged, and can be adjusted manually and automatically by the user. When you need to merge tables across pages, you can click the table control "Merge tables across pages" on the table menu bar. The display interface can be seen in Fig.23 As shown. The user can place the cursor on the table title row that spans to the next page [i.e. the row where "Table X (Continued)" is located], and then click "Cross-page Table-Merge" in the menu above to merge the two tables. Among them, when there are vertically merged cells, the table cannot be split and merged, and can be adjusted automatically by the user manually.
[0102] In this step, by performing operations such as inserting, deleting, correcting, splitting tables across pages, and merging tables across pages on the table menu bar, the table in the standard text can be flexibly adjusted and deleted, thereby improving text processing efficiency.
[0103] When the expression form is a table title of standard text, the corresponding operation type may include adjusting the table title. When the operation type and expression form are determined to be adjusting the table title, the table title menu bar where the table title is located in the standard text is obtained. The table title menu bar includes multiple table title controls, including "main text table title" and "appendix table title". The display interface can be found in Fig.24As shown, the user can click "Table Title" in the table title menu bar menu. At this time, the number of "Main Text Table Title" or "Appendix Table Title" will be automatically inserted and the corresponding format will be set at the current cursor position of the standard text. The user only needs to enter the content of the table title.
[0104] When the expression form is a table footer of standard text, the corresponding operation type may include adjusting the table footer. When the operation type and expression form are determined to be adjusting the table footer, the table footer menu bar where the standard text of the table footer is located is obtained. The table footer menu bar includes multiple table footer controls, including "Table Footer", "Footnotes with the Same Number" and "Delete Footnotes in Table". The display interface can be found in Fig.25 As shown, at this time, place the cursor behind the content to which a table footnote needs to be added in the table. The user can click the "Table Footnote" control in the table footnote menu bar menu. The user can enter the footnote content and then click "OK". If the table does not have a footnote row, when a new footnote is inserted, a new footnote row will be automatically generated and the corresponding footnote content will be inserted. Among them, the user can use the table with table footnotes without copying. Because this will cause confusion in the table footnote numbering, and the table footnote deletion function will also have errors. In this step, by performing corresponding operations on the table title menu bar and table footnote menu bar in the standard text, the table title and table footnotes of the standard text can be quickly adjusted and set, making the content of the text richer and more complete.
[0105] When you need to insert a footnote with the same number, the user first places the cursor behind the content in the table to which you want to add a footnote with the same number, then clicks the "Footnote with the same number" control in the table annotation menu bar, selects the footnote number that needs to be the same as a footnote, and then clicks the "OK" button.
[0106] When you need to delete a footnote in a table, the user first places the cursor behind the content in the table where you want to add a footnote of the same number, then clicks the "Delete Footnote in Table" control in the table footnote menu bar, selects the footnote to be deleted, and then clicks the "OK" button.
[0107] When the figure title is in the form of standard text, the corresponding operation type may include adjusting the figure title. When it is determined that the operation type and the expression form are adjusting the figure title, a figure title menu bar where the figure title is adjusted in the standard text is obtained. The figure title menu bar includes multiple figure title controls, including "Main Text Figure Title" and "Appendix Figure Title". The user can click the corresponding control in the figure title control to insert the corresponding number and set the corresponding format to complete the operation of inserting the figure title.
[0108] When the expression form is the figure footnote of the standard text, the corresponding operation type may include adjusting the figure footnote. When the operation type and expression form are determined to be adjusting the figure footnote and the figure footnote needs to be inserted, the cursor can be moved to the position where the figure footnote needs to be inserted, and then "Figure Footnote" is clicked to obtain the figure footnote menu bar where the figure footnote is adjusted in the standard text. At this time, the footnote number is automatically generated and the format of the footnote content is set. You only need to enter the footnote content. When multiple figures in the standard have footnotes, the footnotes in the subsequent figures are numbered starting from a, and will not continue the footnote number in the previous figure.
[0109] When the expression form is a standard text note or note x, the corresponding operation type may include adjusting the figure footnote. When it is necessary to write an unnumbered note, the user can click "Note" in the above menu, and "Note:" will be automatically inserted at the beginning of the line where the cursor is located and the corresponding format will be set. The user only needs to enter the relevant content. When it is necessary to write a numbered note, the user can click "Note ×" in the above menu, and "Note 1:" "Note 2:" and so on will be automatically inserted at the beginning of the line where the cursor is located and the corresponding format will be set. The user only needs to enter the relevant content. Among them, the "Note:" and "Note X" functions here are also applicable to "Notes in Figures" and "Notes in Tables".
[0110] When the expression form is a footnote of a standard text, the corresponding operation type may include adjusting the footnote. When a footnote needs to be added, the user can first move the cursor to the position in the article where the footnote needs to be added, and then click "Footnote" in the menu bar in the above figure to get the corresponding display page, which can be presented in the form of a window. The user can enter the corresponding footnote content in the window, and then click OK, which will automatically insert the superscript footnote number at the position in the article where the footnote needs to be added, i.e. 1), 2), etc., and add the article footnote number [i.e. 1), 2), etc.] and the footnote content at the bottom of the page.
[0111] When the expression form is the example and figure text content of the standard text, the corresponding operation type can include adjusting the example and figure text content. When the content of the example is some text and is separated from "Example:" or "Example X", or it is necessary to give a "paragraph" or "index number description" above the figure title, the user can click "Example and Figure Text Content" in the menu above, and the text in the corresponding position will be set to the format of Songti size 5 in accordance with GB / T 1.1-2020.
[0112] When the expression form is an example or example x of standard text, the corresponding operation type may include adjusting the example or example x. When you need to write an unnumbered example, the user can click "Example" in the menu above, which will automatically insert "Example:" at the beginning of the line where the cursor is located and set the corresponding format. The user only needs to enter the relevant example content. When you need to write a numbered example, please click "Example ×" in the menu above, which will automatically insert "Example 1:" "Example 2:" and so on at the beginning of the line where the cursor is located and set the corresponding format. The user only needs to enter the relevant example content.
[0113] When the expression form is an important reminder of standard text, the corresponding operation type can include inserting important reminders. When the content of the important reminder needs to be written, the user can click "Important Reminder" in the menu above, and a dialog box with the above display interface will pop up. After entering the reminder content in the dialog box, the user can select "Insert after the standard name of the text" or "Insert at the current cursor position", and then click the "OK" button.
[0114] When the expression form is the source of a standard text, the corresponding operation type may include inserting the source, in which case "[Source:]" and its format will be generated at the cursor location, and the user only needs to enter the corresponding content.
[0115] When the expression form is a standard text terminator, the corresponding operation types may include adding a terminator and deleting a terminator. The display interface can be found in Fig.26 As shown, the user can click "Terminator" in the menu above, and the system will automatically generate a terminator at the end of the document. Then, the user can click the arrow on the right side of "Terminator" to display the corresponding interface, which includes "Add terminator" and "Delete terminator" controls. The user can add terminators and delete terminators by clicking the "Add terminator" control or the "Delete terminator" control. By performing corresponding operations on the terminator menu bar in the standard text, the terminator of the standard text can be quickly adjusted and set to make the text more neat.
[0116] As another possible implementation, when the text element is a typeset form of a standard text, corresponding processing is performed on the standard text according to the operation type and the text element to obtain an updated text, including:
[0117] According to the typesetting form, obtain the typesetting form in the typesetting menu bar where the standard text is located; the typesetting menu bar includes multiple typesetting form controls, and the typesetting form includes at least one of the following: horizontal page, vertical page, double-sided typesetting, cancel protection, format basis; receive and respond to the fourth operation instruction of the typesetting form control, perform typesetting adjustment operation on the standard text according to the operation type, and obtain updated text.
[0118] The user can click the "Units and Symbols" menu bar, and the following will appear: Fig. 27 The display interface shown includes multiple unit symbols and unit names. The user can click Insert to complete the operation of inserting units and symbols.
[0119] The above standard texts are created as single-sided layouts by default. When double-sided layouts are required, users can click "Double-sided layout" in the menu above to adjust the file to double-sided layout format. If you need to use single-sided layout again, you can click this menu bar again to achieve single-sided layout of the file.
[0120] Optional, the default standard text created is in vertical layout. When horizontal layout is required, the user can click "Horizontal Page" in the menu below to insert a blank horizontal page after the cursor. If the inserted horizontal page needs to be deleted, the user can click the arrow on the right side of "Horizontal Page" to display the horizontal page menu bar. The horizontal page menu bar can be found in the following figure. Fig.28 Click the display interface shown in the figure, and then click the pop-up drop-down menu "Horizontal Page" or "Vertical Page" to delete the horizontal page where the current cursor is located.
[0121] It is understandable that in order to realize the use of editing software to write standardized files, the system defines many styles required for software programming, among which the cover style is relatively complex. In order to better control the layout of the cover, the file cover is protected from the beginning of file creation, so that some content in the cover cannot be edited. When the file is protected, some functions of the editing software itself are also blocked. In order to facilitate users to use all the functions of the editing software, the "cancel document protection" function is set.
[0122] When the user clicks "Cancel document protection" in the menu bar, all functions of the editing software can be used. It is usually not recommended to cancel document protection. If necessary, after canceling document protection, please do not edit the fixed content on the cover at will to avoid confusion in the cover layout. After canceling document protection, the corresponding position in the original menu will be displayed as "Protect Document". Please protect the document again in time. After clicking "Protect Document", the gray area on the cover can be edited, and other positions are protected.
[0123] See also Fig.29 As shown, in order to indicate the format and basis in the process of standard writing, the format basis is displayed by adding revisions. The default is to display. You can click the "Show / Hide Suggestions" button to display and hide suggestions. If the user needs to completely clear the format basis and no longer display it, click the "Clear Format Basis" button. After clearing, the format basis cannot be restored.
[0124] S104: Use an encryption algorithm to send the updated text to the next user terminal.
[0125] It is understandable that the above encryption algorithm can be a preset algorithm. This embodiment also provides a standard content encryption distribution function, supports collaborative writing by different users, and the distribution tool ensures that different users do not change the content written by other users during the writing period, and supports collaborative review by non-standard reviewers, and the distribution tool ensures that different reviewers do not change the review opinions of other reviewers during the review period.
[0126] In one embodiment, the present application provides a specific implementation method of using an encryption algorithm to send the update text to the next user end, see Fig.30 As shown, the method includes:
[0127] S201. Obtain the first identification code and the first public key of the next user terminal, encrypt the text attribute information of the update text based on the first public key, and generate an activation code; the first identification code is generated by the next user terminal according to the update text, and the first public key is generated by the next user terminal according to the first identification code.
[0128] S202. Obtain the source identification code, the second public key, and the cryptographic hash function of the updated text, and generate a new data packet based on the source identification code, the second public key, and the cryptographic hash function of the updated text; the second public key is generated by the current user terminal according to the second identification code, and the second identification code is generated by the current user terminal according to the updated text.
[0129] S203: Use the first public key to encrypt the new data packet to obtain a target data packet, and send the target data packet and the activation code to the next user terminal.
[0130] Specifically, the file transmission order may be user A->user B->user C->user D. Taking the current user end as user A and the next user end as user B as an example, the next user end user B may generate the first identification code C in advance according to the update text. B , and according to the first identification code C B Generate the first public key Public B and the first private keyPrivate B , and then provide C in an encrypted manner B 、First public keyPublic B To the current user end user A. So that user A receives the first identification code C of user B B and the first public key Public B , then based on the first public key Public B Encrypt the text attribute information of the update text to obtain the activation code Key BThe text attribute information may include the initial user name User B 、Initial password Pwd B Validity period V B 、Auth B Datasets,
[0131] The current user terminal can generate a data source message based on the source identification code of the updated text, the second public key, and the cryptographic hash function of the updated text, and insert the data source message into the header of the updated text data packet to obtain a new data packet. Specifically, user A obtains the source identification code C of the updated text. A , Locally generated second public key Public A , the cryptographic hash function MD5 of the current updated text to form the data source information H1, and then insert the data source message H1 into the header of the original business data packet Data to form a new data packet Data1, so that user A uses the first public key Public B The new data packet Data1 is encrypted to form the target data packet Data1c, and then the target data packet and the activation code Key are encrypted. B Together, they are sent to the next user, namely user B.
[0132] User B can use the first private key Private B Decrypt the activation code and target data packet to obtain relevant data. When user B modifies the service data, the data source message H1 is not modified. When user B authorizes the next user terminal (next-level user C) as the current user terminal, the above operation of user A can be repeated. H2 data is added to the header of the new data packet Data1. The H2 data includes the first identification code C B and the first public key Public B At this time, the service data header will contain data source information H1 and H2 data. Among them, for the data processed by the lower-level user, H data can be used to transmit it to the upper level across levels, and it can be transmitted in the following table data mode, including data location, data length and data content.
[0133]
[0134]
[0135] The standard text processing method provided in the embodiment of the present application is that the current user terminal receives and responds to the processing operation request for the standard text, the processing operation request carries the processing operation information of the standard text, and parses the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content element, hierarchical layout style, expression form and typesetting form of the standard text, and then performs corresponding processing on the standard text according to the operation type and the text element to obtain the updated text, and uses the encryption algorithm to send the updated text to the next user terminal. Compared with the prior art, the technical solution can automatically obtain the processing operation information of the standard text, and accurately parse the operation type and the corresponding text element, so as to perform corresponding processing on the standard text in a targeted manner according to the operation type and the text element to obtain the updated text, thereby improving the processing accuracy of the standard text, and then using the encryption algorithm to send the updated text to the next user terminal, which ensures the security of data transmission while also greatly improving the data processing efficiency.
[0136] on the other hand, Fig.31 The following is a schematic diagram of the structure of a standard text processing device provided in an embodiment of the present application. The device may be a device in a terminal or a server, such as Fig.31 As shown, the device 700 includes:
[0137] The receiving module 710 is used for the current user end to receive and respond to a processing operation request for the standard text; the processing operation request carries processing operation information of the standard text;
[0138] The parsing module 720 is used to parse the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text;
[0139] An operation module 730, configured to perform corresponding processing on the standard text according to the operation type and the text element to obtain an updated text;
[0140] The sending module 740 is used to send the updated text to the next user terminal using an encryption algorithm.
[0141] Optionally, the operation module 730 is specifically configured to:
[0142] According to the content element, an element menu bar where the content element is located in the standard text is obtained; the element menu bar includes a plurality of content element controls, and the content element includes at least one of the following: a table of contents element, a preface element, an introduction element, an appendix element, a document element, and an index element;
[0143] Receiving and responding to a first operation instruction on a content element control, obtaining an operation box corresponding to the operation type;
[0144] An operation corresponding to the operation type is performed on the content element based on the operation box to obtain an updated text.
[0145] Optionally, the operation module 730 is specifically configured to:
[0146] According to the hierarchical layout style, a hierarchical menu bar where the hierarchical layout style is located in the standard text is obtained; the hierarchical menu bar includes multiple hierarchical layout controls, and the hierarchical layout style includes at least one of the following: term item, title item, non-title item, column item, chapter number, and paragraph;
[0147] A second operation instruction for the hierarchical layout control is received and responded to, and the hierarchical layout style of the standard text is adjusted according to the operation type to obtain updated text.
[0148] Optionally, the operation module 730 is specifically configured to:
[0149] According to the expression form, obtaining an expression menu bar where the expression form is located in the standard text; the expression menu bar includes multiple expression form controls, and the expression form includes at least one of the following: formula, table, table title, table footnote, figure title, figure footnote, class note, example;
[0150] A third operation instruction to the expression form control is received and responded to, and a corresponding operation is performed on the standard text according to the operation type to obtain an updated text.
[0151] Optionally, the operation module 730 is specifically used to:
[0152] According to the typesetting form, a typesetting menu bar where the typesetting form is located in the standard text is obtained; the typesetting menu bar includes multiple typesetting form controls, and the typesetting form includes at least one of the following: horizontal page, vertical page, double-sided typesetting, cancel protection, and format basis;
[0153] A fourth operation instruction for the typesetting form control is received and responded to, and a typesetting adjustment operation is performed on the standard text according to the operation type to obtain an updated text.
[0154] Optionally, the sending module 740 is specifically used for:
[0155] Obtaining a first identification code and a first public key of the next user terminal, encrypting the text attribute information of the update text based on the first public key, and generating an activation code; the first identification code is generated by the next user terminal according to the update text, and the first public key is generated by the next user terminal according to the first identification code;
[0156] Obtaining a source identification code of the update text, a second public key, and a cryptographic hash function of the update text, and generating a new data packet based on the source identification code of the update text, the second public key, and the cryptographic hash function of the update text; the second public key is generated by the current user end according to the second identification code, and the second identification code is generated by the current user end according to the update text;
[0157] The new data packet is encrypted using the first public key to obtain a target data packet, and the target data packet and the activation code are sent to the next user terminal.
[0158] Optionally, the sending module 740 is further used to:
[0159] Generate a data source message based on the source identification code of the update text, the second public key, and the cryptographic hash function of the update text;
[0160] The data source message is inserted into the header of the update text data packet to obtain a new data packet.
[0161] It can be understood that the functions of each functional module of the standard text processing device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0162] On the other hand, a computer device provided in an embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the standard text processing method as described above when executing the program.
[0163] Computer equipment includes a central processing unit (CPU), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or programs loaded from a storage part into a random access memory (RAM). In the RAM, various programs and data required for system operation are also stored. The CPU, ROM, and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0164] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-mentioned functions defined in the system of the present application are executed.
[0165] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units or modules involved in the embodiments of the present application may be implemented in software or hardware. The units or modules described may also be provided in a processor, for example, may be described as: a processor comprising: a receiving module, a parsing module, an operating module and a sending module. The names of these units or modules do not, in certain cases, constitute limitations on the units or modules themselves, for example, the receiving module may also be described as "used for the current user end to receive and respond to processing operation requests for standard texts; the processing operation request carries processing operation information of the standard texts".
[0168] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the standard text processing method described in the present application:
[0169] The current user terminal receives and responds to a processing operation request for the standard text; the processing operation request carries processing operation information for the standard text;
[0170] Parsing the processing operation information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text;
[0171] According to the operation type and the text element, corresponding processing is performed on the standard text to obtain an updated text;
[0172] The updated text is sent to the next user end using an encryption algorithm.
[0173] In summary, the standard text processing method, device, equipment and medium provided in the embodiments of the present application, the current user terminal receives and responds to the processing operation request for the standard text, the processing operation request carries the processing operation information of the standard text, and parses the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content element, hierarchical layout style, expression form and typesetting form of the standard text, and then performs corresponding processing on the standard text according to the operation type and the text element to obtain the updated text, and uses the encryption algorithm to send the updated text to the next user terminal. Compared with the prior art, the technical solution can automatically obtain the processing operation information of the standard text, and accurately parse the operation type and the corresponding text element, so as to perform corresponding processing on the standard text in a targeted manner according to the operation type and the text element, and obtain the updated text, thereby improving the processing accuracy of the standard text, and then using the encryption algorithm to send the updated text to the next user terminal, while ensuring the security of data transmission, it also greatly improves the data processing efficiency.
[0174] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A standard text processing method, characterized in that: The method includes: The current user terminal receives and responds to a processing operation request for the standard text; the processing operation request carries processing operation information for the standard text; Parsing the processing operation information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text; According to the operation type and the text element, corresponding processing is performed on the standard text to obtain an updated text; The updated text is sent to the next user end using an encryption algorithm.
2. The method according to claim 1, characterized in that When the text element is a content element of the standard text, performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text includes: According to the content element, an element menu bar where the content element is located in the standard text is obtained; the element menu bar includes a plurality of content element controls, and the content element includes at least one of the following: a table of contents element, a preface element, an introduction element, an appendix element, a document element, and an index element; Receiving and responding to a first operation instruction on the content element control, acquiring an operation box corresponding to the operation type; An operation corresponding to the operation type is performed on the content element based on the operation box to obtain an updated text.
3. The method according to claim 1, characterized in that When the text element is a hierarchical layout style of the standard text, performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text includes: According to the hierarchical layout style, a hierarchical menu bar where the hierarchical layout style is located in the standard text is obtained; the hierarchical menu bar includes a plurality of hierarchical layout controls, and the hierarchical layout style includes at least one of the following: term item, item with title, item without title, column item, chapter number, and paragraph; A second operation instruction for the hierarchical layout control is received and responded to, and the hierarchical layout style of the standard text is adjusted according to the operation type to obtain updated text.
4. The method according to claim 1, characterized in that When the text element is a representation form of the standard text, performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text includes: According to the expression form, obtaining an expression menu bar where the expression form is located in the standard text; the expression menu bar includes a plurality of expression form controls, and the expression form includes at least one of the following: formula, table, table title, table footnote, figure title, figure footnote, class note, example; A third operation instruction for the expression form control is received and responded to, and a corresponding operation is performed on the standard text according to the operation type to obtain an updated text.
5. The method according to claim 1, characterized in that When the text element is a typeset form of the standard text, performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text includes: According to the typesetting form, obtaining a typesetting menu bar where the typesetting form is located in the standard text; the typesetting menu bar includes a plurality of typesetting form controls, and the typesetting form includes at least one of the following: horizontal page, vertical page, double-sided typesetting, cancel protection, and format basis; A fourth operation instruction for the typesetting form control is received and responded to, and a typesetting adjustment operation is performed on the standard text according to the operation type to obtain an updated text.
6. The method according to claim 1, characterized in that The updated text is sent to the next user end using an encryption algorithm, including: Obtaining a first identification code and a first public key of the next user terminal, encrypting the text attribute information of the update text based on the first public key, and generating an activation code; the first identification code is generated by the next user terminal according to the update text, and the first public key is generated by the next user terminal according to the first identification code; Obtaining a source identification code of the update text, a second public key, and a cryptographic hash function of the update text, and generating a new data packet based on the source identification code of the update text, the second public key, and the cryptographic hash function of the update text; the second public key is generated by the current user end according to the second identification code, and the second identification code is generated by the current user end according to the update text; The new data packet is encrypted using the first public key to obtain a target data packet, and the target data packet and the activation code are sent to the next user terminal.
7. The method according to claim 6, characterized in that Based on the source identification code of the update text, the second public key, and the cryptographic hash function of the update text, a new data packet is generated, including: Generate a data source message based on the source identification code of the update text, the second public key, and the cryptographic hash function of the update text; The data source message is inserted into the header of the update text data packet to obtain the new data packet.
8. A standard text processing device, characterized in that: The device comprises: A receiving module, used for the current user end to receive and respond to a processing operation request for the standard text; the processing operation request carries processing operation information of the standard text; A parsing module, used to parse the processing operation request information to obtain the operation type and the text element corresponding to the operation type; the text element includes the content elements, hierarchical layout style, expression form and typesetting form of the standard text; An operation module, used for performing corresponding processing on the standard text according to the operation type and the text element to obtain an updated text; The sending module is used to send the update text to the next user terminal using an encryption algorithm.
9. A computer device, characterized in that: The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is used to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data processing method and device, server and computer readable storage medium
CN112148509A
Metadata processing method and device, equipment and medium
CN115481096A
Secure sharing and collaborative editing of documents in cloud based applications
US11283780B2
