Document editing method and device, electronic equipment and storage medium

By correcting, identifying and marking the domain code and hyperlinks in document editing, the problem that inserted domain code and hyperlinks are difficult to distinguish in documents is solved, improving the efficiency and accuracy of document editing, and enhancing the readability and ease of use of documents.

CN120181037APending Publication Date: 2025-06-20NSFOCUS INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510196438.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

During the document editing process, if the inserted domain code and hyperlink are not marked, it will cause no obvious features in the document, making it difficult for readers to jump or review relevant content in the document, reducing the readability and ease of use of the document.

Method used

Provides a document editing method, which improves the efficiency and accuracy of document editing by performing correction, identification and marking operations on inserted domain codes and hyperlinks. The specific steps include: modifying the domain code and hyperlink, identifying the domain type and attributes, and batch highlighting marking of the target hyperlink and domain code.

Benefits of technology

Through automated correction, identification and marking operations, the efficiency and accuracy of document editing are improved, ensuring that the domain code and hyperlinks can be clearly distinguished, and the readability and ease of use of the document are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120181037A_ABST
    Figure CN120181037A_ABST
Patent Text Reader

Abstract

The invention discloses a document editing method and device, electronic equipment and a storage medium, and relates to the field of computer processing. The method comprises the following steps: executing correction operation on N domain codes and M hyperlinks of an inserted document to obtain corrected N target domain codes and M target hyperlinks; wherein the N and the M are integers greater than 1; according to the domain type and the domain attribute of each of the N target domain codes, performing identification operation on the N target domain codes to obtain identified N target domain codes; and performing marking operation on the M target hyperlinks and the marked N target domain codes to obtain a target document, so as to improve the efficiency and accuracy of document editing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a document editing method, apparatus, electronic device, and storage medium. Background Art

[0002] During the process of document editing, especially for large documents, in order to enable readers to better read the document, jump within the document conveniently or access the required content, and improve the readability and usability of the document, a large number of hyperlinks and various field codes are usually inserted into the document.

[0003] In actual scenarios, if these inserted field codes and hyperlinks are not marked, there will be no obvious features in the document and they will be no different from ordinary text. Therefore, when readers browse and read the document, they are likely to mistake these field codes and hyperlinks for ordinary text, which cannot guide readers to jump to or access relevant content in the document, thus reducing the reading experience of readers.

[0004] Currently, in order to distinguish field codes and hyperlinks from text during document editing, a manual method is adopted to mark the field codes and hyperlinks in the document one by one. For example, when a field code or hyperlink is inserted into the document, a newly created specific style is manually applied to the text corresponding to the inserted field code or hyperlink; among them, the specific style includes but is not limited to highlighting, underlining, italicizing, bolding, setting font color, etc. However, this manual method is not only cumbersome and inefficient, but also prone to omissions, and some unknown errors may be introduced during the manual operation, resulting in poor readability and usability of the document, affecting readers' reading and understanding. Summary of the Invention

[0005] This application provides a document editing method, apparatus, electronic device, and storage medium to improve the efficiency and accuracy of document editing.

[0006] In a first aspect, a document editing method is provided, including:

[0007] Performing a correction operation on N field codes and M hyperlinks inserted into the document to obtain N target field codes and M target hyperlinks after correction; where N and M are both integers greater than 1;

[0008] Performing an identification operation on the N target field codes according to their respective field types and field attributes to obtain the N identified target field codes;

[0009] Performing a marking operation on the M target hyperlinks and the N identified target field codes to obtain a target document.

[0010] In the embodiments of the present application, when performing document editing, first, correction operations can be performed on N field codes and M hyperlinks inserted into the document to timely correct the field codes and / or hyperlinks with incorrect formats or contents; then, identification operations are performed on the N target field codes according to their respective field types and field attributes to identify the field codes that cannot be distinguished or have field attributes; finally, marking operations are performed on the M target hyperlinks and the identified N target field codes to batch highlight the M target hyperlinks and the N target field codes for eye-catching reminders. Compared with the manual insertion and modification method, the above entire process improves the efficiency and accuracy of document editing.

[0011] In some embodiments, the performing correction operations on the N field codes and M hyperlinks to be inserted into the document includes at least one of the following:

[0012] Correcting the field codes and / or hyperlinks that do not conform to the format rules among the N field codes and the M hyperlinks;

[0013] Correcting the field codes and / or hyperlinks with identification errors and / or attribute errors among the N field codes and the M hyperlinks;

[0014] Correcting the field codes and / or hyperlinks with code spelling anomalies among the N field codes and the M hyperlinks;

[0015] Correcting the field codes and / or hyperlinks with inconsistent versions among the N field codes and the M hyperlinks.

[0016] In some embodiments, the performing identification operations on the N target field codes according to their respective field types and field attributes to obtain the N identified target field codes includes:

[0017] Among the N target field codes, different characteristic identifiers are respectively added to the type identifiers of P target field codes, and their respective attribute codes are added to J target field codes to obtain the processed N target field codes; wherein, the P target field codes belong to the same field type, the J target field codes are field codes with field attributes, and both P and J are less than or equal to N.

[0018] In some embodiments, the operation function selection icons of the correction operation, identification operation, and marking operation are all integrated in the toolbar of the document editing interface.

[0019] In some embodiments, the marking operation includes at least one of the following:

[0020] Highlight marking;

[0021] Italic mark;

[0022] Underline mark;

[0023] Font color mark;

[0024] Bold mark.

[0025] In a second aspect, there is provided a document editing device, including:

[0026] A correction module, configured to perform a correction operation on N field codes and M hyperlinks inserted into a document, so as to obtain N target field codes and M target hyperlinks after correction; wherein, both the N and the M are integers greater than 1;

[0027] An identification module, configured to perform an identification operation on the N target field codes according to the field types and field attributes of the N target field codes respectively, so as to obtain the N target field codes after identification;

[0028] A marking module, configured to perform a marking operation on the M target hyperlinks and the N target field codes after identification, so as to obtain a target document.

[0029] In some embodiments, the correction module is specifically configured to perform at least one of the following:

[0030] Correct the field codes and / or hyperlinks that do not conform to the format rules among the N field codes and the M hyperlinks;

[0031] Correct the field codes and / or hyperlinks with identification errors and / or attribute errors among the N field codes and the M hyperlinks;

[0032] Correct the field codes and / or hyperlinks with code spelling anomalies among the N field codes and the M hyperlinks;

[0033] Correct the field codes and / or hyperlinks with inconsistent versions among the N field codes and the M hyperlinks.

[0034] In some embodiments, the identification module is specifically configured to:

[0035] Among the N target field codes, add feature identifications to the type identifications of P target field codes respectively, and add their respective attribute codes to J target field codes, so as to obtain the N target field codes after processing; wherein, the P target field codes belong to the same field type, the J target field codes are field codes with field attributes, and both the P and the J are less than or equal to the N.

[0036] In a third aspect, there is provided an electronic device, including:

[0037] A memory for storing a computer program; a processor, when executing the computer program stored on the memory, implementing the method steps described in any one of the first aspects.

[0038] In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.

[0039] For the various aspects in the second to fourth aspects above and the possible technical effects that each aspect may achieve, please refer to the technical effects that can be achieved in the first aspect or various possible solutions in the first aspect described above, and will not be repeated here. Description of the Drawings

[0040] Figure 1 A schematic diagram of an application scenario applicable to the embodiments of the present application;

[0041] Figure 2 A flowchart of a document editing method provided by the embodiments of the present application;

[0042] Figure 3 A schematic diagram of a document editing interface provided by the embodiments of the present application;

[0043] Figure 4 A schematic diagram of the structure of a document editing device provided by the embodiments of the present application;

[0044] Figure 5 A schematic diagram of the structure of an electronic device provided by the embodiments of the present application. Detailed Embodiments

[0045] To make the objectives, technical solutions, and advantages of the present application clearer and more understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application. Without conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0046] In the description and claims of this application and the above-mentioned drawings, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices. "Multiple" in this application may mean at least two, for example, it may be two, three or more, and the embodiments of this application do not make limitations.

[0047] The following describes exemplary embodiments of this application with reference to the accompanying drawings. Various details of the embodiments of this application are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the disclosure of this application. Similarly, for the sake of clarity and conciseness, the description below omits the description of well-known functions and structures. It should be noted that in the embodiments of this application, certain industry-existing solutions such as certain software, components, models, etc. may be mentioned, and they should be considered exemplary. Their purpose is only to illustrate the feasibility in the implementation of the technical solution of this application, but it does not mean that the applicant has already or necessarily used this solution.

[0048] To better understand the embodiments of this application, the technical terms involved in the embodiments of this application will be described first below.

[0049] (1) A field code is a special code in a document used to insert and display dynamic information, including page numbers, dates, times, document properties, tables of contents, indexes, references, etc., which will be automatically updated according to the current state of the document or conditions specified by the user. Further, each field code has a unique name and can contain a series of parameters and switches to define its function and display method, and is usually enclosed in curly braces {}; among them, it contains the field name (i.e., the type or function name of the field) and optional parameters and switches. For example, {DATE\@"yyyy year m month d day"} is a field code used to insert the current date and specify the date format as "year month day".

[0050] (2) Field codes can be divided into multiple categories, including but not limited to:

[0051] Link and reference categories: Used to create cross-references, tables of contents, indexes, etc. to quickly navigate and locate information in the document;

[0052] Numbering categories: Used to automatically generate and update numbers, such as figure numbers, footnote numbers, etc.;

[0053] Equations and formulas: Used for inserting complex expressions such as mathematical formulas, fractions, square roots, etc.;

[0054] Dates and times: Used for inserting the current date and time and can specify different formats;

[0055] Indexes and tables of contents: Used for automatically generating and updating indexes and tables of contents in a document;

[0056] Document information: Used for displaying document property information such as author, title, creation date, etc.;

[0057] Document automation: Used for implementing automated document processing such as mail merge, batch document generation, etc.;

[0058] (3) Cross-references are actually a specific type of field that links to specific elements in a document (such as chapter headings, figure numbers, bookmarks, etc.). It is mainly used for references between different positions within the same document, such as mutual references between elements like headings, bookmarked figures, tables, footnotes, endnotes, etc. It allows users to directly jump to the corresponding position in the document by clicking on the reference. For example, when inserting a cross-reference, the document will automatically generate the corresponding field code to be responsible for obtaining the current number or title of the original reference and displaying it in the document. If the original number of the reference changes, the field code will automatically update the information displayed in the cross-reference. As shown in Table 1, an exemplary table of common field code format examples is shown.

[0059] Table 1: Exemplary table of common field code format examples

[0060]

[0061]

[0062]

[0063] (4) Hyperlinks can not only link to different positions within a document, but also to external files, web pages, email addresses, etc. However, they focus more on providing connections between the document and external resources. They offer a direct connection between the document and external resources, enhancing the interactivity and information richness of the document. However, the reliability of hyperlinks depends on the availability of the link target. If the link target does not exist or cannot be accessed, the hyperlink will become invalid. For example, common hyperlinks in documents mainly include Uniform Resource Locator (URL) addresses, Email addresses, and external files. The code format of hyperlinks is generally {HYPERLLINK "URL address / mailto:Email address / file name"}. For example, {HYPERLLINK "https: / / X1.com"} represents a hyperlink to the web page with the address X1; {HYPERLLINK "testdoc@X2.com"} represents a hyperlink to the email address testdoc@X2.com; {HYPERLLINK "Domain and Hyperlink.docx"} represents an external file with the file name "Domain and Hyperlink" inserted.

[0064] Currently, during the process of document editing, such as in various user manuals of large systems, except that after entering a hyperlink address (such as URL / Email) and then a space, the document will automatically process it as a hyperlink, setting the font to blue and underlined, inserting a large number of cross-references, bookmarks, times, dates, document properties, etc. are not marked, and there is no difference from the ordinary text content in the document. Therefore, readers cannot intuitively distinguish cross-references, bookmarks, times, dates, and other field codes, nor can they obtain prompts for relevant content jumps between documents, greatly reducing the readability and usability of the document.

[0065] Furthermore, in some documents, although some cross-reference content has been set with font formats or spaces added before and after it to highlight it, whether it is setting the font format or adding special identifiers, it can only be marked manually and one by one through defined specific styles, which is labor-consuming and prone to omissions. In addition, when manually marking, there is also a hidden danger of introducing unknown errors. When unknown errors are introduced, it may cause the cross-references and fields not to be updated synchronously or updated incorrectly when the referenced or original content of the field changes.

[0066] In view of this, the embodiments of the present application provide a document editing method, device, electronic device, and storage medium to improve the efficiency and accuracy of document editing.

[0067] First, a brief introduction will be given to the application scenarios applicable to the technical solutions of the embodiments of the present application. It should be noted that the application scenarios described below are only for illustrative purposes and do not limit the embodiments of the present application. In specific implementations, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0068] Figure 1 This is a schematic diagram of the application scenario applicable to the embodiments of the present application. As Figure 1 shown, this application scenario mainly includes: a terminal 10 and a server 11. Among them, information interaction can be carried out between the terminal 10 and the server 11 through a communication network, and the communication methods adopted by this communication network can include: wireless communication methods and wired communication methods.

[0069] In some scenarios, the terminal 10 can access the network through cellular mobile communication technology and communicate with the server 11. This cellular mobile communication technology can include the fifth-generation mobile communication (5th Generation Mobile Networks, 5G) technology and future 6G technology.

[0070] In some embodiments, the terminal 10 can access the network through short-range wireless communication methods and communicate with the server 11. This short-range wireless communication method can include Wireless Fidelity (Wi-Fi) technology.

[0071] The embodiments of the present application do not impose any restrictions on the number of the above devices. As Figure 1 shown, only the terminal 10 and the server 11 are taken as examples for description. Below, a brief introduction to the above devices and their respective functions will be given.

[0072] The terminal 10 is a device that can provide voice and / or data connectivity to users, including: handheld terminal devices with wireless connection functions, in-vehicle terminal devices, etc. For example, the terminal 10 includes but is not limited to: mobile phones, tablet computers, laptop computers, palm computers, Mobile Internet Devices (MIDs), wearable devices, Virtual Reality (VR) devices, Augmented Reality (AR) devices, wireless terminal devices in industrial control, wireless terminal devices in unmanned driving, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, or wireless terminal devices in smart homes, etc.

[0073] In addition, a client for document editing can be installed on the terminal 10. The client can be software (such as an APP, a browser, etc.), a web page, a mini-program, etc. In the embodiments of the present application, the terminal 10 can use the above-mentioned client related to document editing and can interact with the server 11 for inserting, editing, etc. of field codes and hyperlinks in the document.

[0074] Further, the server 11 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.

[0075] Further, in the embodiments of the present application, the above-mentioned server 11 can be equipped with a document editing device corresponding to the above-mentioned client. The document editing device is used to batch process hyperlinks, field codes, etc. inserted by the user in the document editing interface of the terminal 10, so as to solve the problems of low efficiency and easy error in manually and one-by-one editing field codes, hyperlinks, etc.

[0076] It should be noted that the above Figure 1 The shown scenario is only an example. In the embodiments of the present application, the document editing device can also batch process hyperlinks, field codes, etc. inserted by the user in the document editing interface of the terminal 10 locally without connecting to the server 11, so as to solve the problems of low efficiency and easy error in manually and one-by-one editing field codes, hyperlinks, etc.

[0077] To further illustrate the technical solutions provided by the embodiments of the present application, the following will be described in detail with reference to the accompanying drawings and specific implementation manners. Although the embodiments of the present application provide method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or non-creative labor. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present application. When the method is actually processed or executed by the device, it can be executed in the order shown in the embodiments or drawings or executed concurrently.

[0078] Figure 2 It is a flowchart of a document editing method provided by the embodiments of the present application. This process can be executed by the document editing device to improve the efficiency and accuracy of document editing. As Figure 2 shown, this process includes the following steps:

[0079] 201: Perform a correction operation on N field codes and M hyperlinks inserted into a document to obtain N target field codes and M target hyperlinks after correction.

[0080] In this step, N and M are integers greater than 1.

[0081] In some embodiments, since there is more than one way to insert field codes and hyperlinks, different insertion methods may introduce some errors, resulting in inaccurate display or update subsequently. Therefore, the following at least one correction operation can be performed on the N field codes and M hyperlinks inserted into the document:

[0082] In the first case, correct the field codes and / or hyperlinks that do not conform to the format rules among the N field codes and M hyperlinks.

[0083] Further, the format rules include but are not limited to: requirements for using uppercase and lowercase letters, requirements for using punctuation characters (for example, field codes and hyperlinks must be enclosed, there cannot be unclosed curly brackets inside field codes and hyperlinks, and the addresses included in hyperlinks must be enclosed in ""), requirements for the number of spaces, etc.

[0084] For example, traverse the N field codes and M hyperlinks. If it is determined that there are field codes and / or hyperlinks with extra spaces among the N field codes and M hyperlinks, then delete the extra spaces.

[0085] In the second case, correct the field codes and / or hyperlinks with identification errors and / or attribute errors among the N field codes and M hyperlinks. The identification error may refer to that the identification part in the field code may use an incorrect identifier or function name, and the text path part (for example, URL) in the hyperlink may be incorrect or outdated; the attribute error may refer to that the parameters representing attributes in the field code may be incorrect or redundant, and the target frame or relationship type of the hyperlink may be set improperly.

[0086] In the third case, correct the field codes and / or hyperlinks with code spelling anomalies among the N field codes and M hyperlinks. Code spelling anomalies may refer to that when manually inserting field codes and hyperlinks, there may be some extra letters input or some letters missing, resulting in code errors in the entire field code and hyperlink.

[0087] In the fourth case, correct the field codes and / or hyperlinks with inconsistent versions among the N field codes and M hyperlinks to avoid incorrect display or update that may be caused by different versions or compatibility issues.

[0088] It should be noted that the above several cases are just examples, and more correction rules can be written according to actual needs. The embodiments of the present application do not limit this here.

[0089] In this step, various correction operations are performed on the N field codes and M hyperlinks inserted into the document to avoid errors or abnormal display during subsequent field code and hyperlink updates, and to avoid the inability to identify them during subsequent batch marking, resulting in the omission of marking certain field codes and hyperlinks.

[0090] 202: Perform identification operations on the N target field codes according to the respective field types and field attributes of the N target field codes, to obtain the N target field codes after identification.

[0091] In some embodiments, since some field types contain field codes in multiple formats and all use the same identifier, taking Table 1 above as an example, each field code format in the cross-reference uses "REF_" as the type identifier. When different markings are required for the cross-references of the above different field code formats, finer-grained differentiation cannot be achieved only through the default "REF_". Therefore, among the N target field codes, different characteristic identifiers can be added to the type identifiers of P target field codes (belonging to the same field type, P is less than or equal to N) to clearly distinguish them. For example, change the identifier of the cross-reference regarding bookmarks in Table 1 to "REF OLE_LINK", so as to clearly distinguish it from the cross-reference related to the title / number item, in order to more clearly represent and distinguish different types of cross-references in the document.

[0092] Furthermore, the added characteristic identifier can be to add a custom number format, or can be to add a prefix or suffix, or can be to add a custom label (such as "TitleRef", "NumberRef", etc.). The embodiments of the present application do not limit this here.

[0093] In some embodiments, since field codes inserted in different ways will result in different field attributes, and field attributes refer to some specific attributes or switches that field codes have during the document editing process, and these attributes or switches are used to control the behavior and display mode of field codes.

[0094] Taking MERGEFORMAT as an example, it is a common field property used to control whether the original format is retained when the field is updated. When adding the MERGEFORMAT property to the field code, if the content of the field has specific formats (such as font, color, bold, etc.) after update, these formats will be retained; on the contrary, if the MERGEFORMAT property is not added, the original format may be removed after updating the field, resulting in changes to the appearance of the document. Therefore, among the N target field codes, the respective property codes are added to J target field codes (field codes with field properties, J is less than or equal to N). Further, the property code is located at the end of the field code. For example, taking {REF_RefXXXXXXXX\h} in Table 1 above as an example, the field code after adding the field property is {REF_RefXXXXXXXX\h\*MERGEFORMAT}.

[0095] It should be noted that in addition to MERGEFORMAT exemplified above, the field codes in the document also support many other field properties or switches. For example: \*NUMCHARS: used to control the display of the number of characters in the field result; \*LOWER: converts the field result to lowercase letters; \*FIRSTCAP: converts the first letter of the field result to uppercase and the remaining letters to lowercase, etc. The embodiments of the present application can identify the field codes that need to add field properties according to actual needs and batch add relevant field properties.

[0096] In this step, by reasonably adding these feature identifiers in the field code, different field codes can be more clearly represented and distinguished in the document, and by reasonably adding these property codes in the field code, the automation and dynamic update of the document can be achieved while maintaining the consistency and readability of the document.

[0097] 203: Perform a marking operation on the above-mentioned M target hyperlinks and the N target field codes after identification to obtain a target document.

[0098] In this step, after the above series of correction operations and identification operations, a marking operation can be performed on the above-mentioned M target hyperlinks and the N target field codes after identification, so as to more intuitively and prominently display these hyperlinks and field codes to prompt the readers of the document.

[0099] In some embodiments, the marking operation includes at least one of highlighting, italicizing, underlining, font color marking, and bold marking, and may also include other prominent marking forms, which are not limited in the embodiments of the present application.

[0100] In some embodiments, the operation function selection icons for the above-mentioned correction operation, identification operation, and marking operation are all integrated in the toolbar of the document editing interface. Further, secondary development tools such as Visual Basic for Applications (VBA), Office Add-ins, Apache POI, and Visual Studio Tools for Office (VSTO) can be used to lightly integrate the functions of the correction operation, identification operation, and marking operation in the form of operation function selection icons in the toolbar of the document editing interface without the need to rely on third-party tools, reducing the development cost and improving the work efficiency and experience of users at the same time.

[0101] For example, add the.zip suffix to the name of the document to be edited, create a new folder, name the newly created folder user interface customization (customUI), create a new xml file in the newly created customUI folder, and name it customUI.xml; then, put the customUI folder into the zip folder, establish a connection between the zip folder and the xml file customUI.xml (for example, modify the.rels file in the _rels folder of the zip folder, add a line of code in the body, and the relationship ID of this code can be customized as long as it does not repeat with other relationship IDs); then, delete the.zip added to the document name, and after changing it back to the original format, reopen the document, and multiple operation function selection icons for implementing operations on the document will be presented in the document editing interface; finally, the Visual Basic macro language can be used to associate each operation function with its corresponding operation function selection icon.

[0102] As Figure 3 shown, an exemplary interface schematic diagram of a document editing interface provided by an embodiment of the present application is shown. In Figure 3 , in the toolbar 300, in addition to some common function icons (such as review, view, developer tools, help), etc., new editing function icons are added. Under these editing function icons, there are operation function selection icons such as field code / hyperlink correction icon, field attribute addition icon, feature identification addition icon, cross-reference marking icon, bookmark marking icon, URL marking icon, text marking icon, full-text update field icon, update table of contents page number icon, etc. When the user clicks on these correction icons, addition icons, and marking icons, batch correction, identification, and marking of the inserted field codes and hyperlinks can be performed.

[0103] It should be noted that theFigure 3 The interface shown is just an example. The operation function selection icons can also be presented on the interface in other layout ways. For example, for the marking operation function selection icon, different marking methods can be selected through a drop-down menu to mark different field codes and hyperlinks, or the operation function selection icons of the correction operation class can be arranged as a group, the operation function selection icons of the identification operation class can be arranged as a group, and the operation function selection icons of the marking operation class can be arranged as a group, so as to facilitate the user to perform corresponding operations by group. The embodiments of the present application do not limit this here.

[0104] In some other embodiments, in response to a user operation of selecting an operation function selection icon (such as Figure 3 the field code / hyperlink correction icon in), all the field codes and hyperlinks inserted into the document can be batch-corrected, and further, clear correction feedback can be provided to the user in a timely manner to inform the corresponding operation results and any potential problems.

[0105] In the embodiments of the present application, when editing a document, first, correction operations can be performed on N field codes and M hyperlinks inserted into the document to timely correct the field codes and / or hyperlinks with incorrect formats or contents; then, according to the field types and field attributes of the N target field codes after correction, identification operations are performed on the N target field codes to identify the field codes that cannot be distinguished or have field attributes; finally, marking operations are performed on the M target hyperlinks and the N identified target field codes to batch-highlight the M target hyperlinks and the N target field codes for eye-catching reminder. Compared with the way of manually inserting and modifying, the above whole process improves the efficiency and accuracy of document editing.

[0106] Based on the same technical concept, in the embodiments of the present application, a document editing device is also provided, and this device can implement the above document editing method flow in the embodiments of the present application.

[0107] Figure 4 A document editing device provided for the embodiments of the present application. As Figure 4 shown, this device includes: a correction module 401, an identification module 402, and a marking module 403.

[0108] The correction module 401 is used to perform correction operations on N field codes and M hyperlinks inserted into the document to obtain N target field codes and M target hyperlinks after correction; where N and M are both integers greater than 1.

[0109] The identification module 402 is used to perform identification operations on the N target field codes according to the field types and field attributes of the N target field codes to obtain the N identified target field codes.

[0110] A marking module 403 is configured to perform a marking operation on the M target hyperlinks and the N identified target domain codes to obtain a target document.

[0111] In some embodiments, the correction module 401 is specifically configured to perform at least one of the following:

[0112] Correct the domain codes and / or hyperlinks that do not conform to the format rules among the N domain codes and the M hyperlinks;

[0113] Correct the domain codes and / or hyperlinks with identification errors and / or attribute errors among the N domain codes and the M hyperlinks;

[0114] Correct the domain codes and / or hyperlinks with code spelling anomalies among the N domain codes and the M hyperlinks;

[0115] Correct the domain codes and / or hyperlinks with inconsistent versions among the N domain codes and the M hyperlinks.

[0116] In some embodiments, the identification module 402 is specifically configured to:

[0117] Among the N target domain codes, feature identifiers are respectively added to the type identifiers of P target domain codes, and respective attribute codes are added to J target domain codes to obtain the processed N target domain codes; wherein, the P target domain codes belong to the same domain type, the J target domain codes are domain codes with domain attributes, and both P and J are less than or equal to N.

[0118] It should be noted here that the above device provided in the embodiments of the present application can implement all the method steps in the above method embodiments and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.

[0119] Based on the same technical concept, an electronic device is further provided in the embodiments of the present application, and the electronic device can implement the functions of the foregoing document editing device.

[0120] Figure 5 It is a schematic structural diagram of an electronic device provided in the embodiments of the present application.

[0121] At least one processor 501 and a memory 502 connected to at least one processor 501. In the embodiments of the present application, the specific connection medium between the processor 501 and the memory 502 is not limited. Figure 5 Here, it is taken as an example that the processor 501 and the memory 502 are connected through a bus 500. The bus 500 is inFigure 5 is represented by a thick line, and the connection manners between other components are only for illustrative purposes and are not limiting. The bus 500 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 5 is only represented by a thick line, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 501 can also be referred to as a controller, and there is no limitation on the name.

[0122] In the embodiment of the present application, the memory 502 stores instructions executable by at least one processor 501. By executing the instructions stored in the memory 502, at least one processor 501 can execute a document editing method described above. The processor 501 can implement Figure 4 the functions of each module in the device shown.

[0123] Among them, the processor 501 is the control center of the device, and can connect various parts of the entire control device by using various interfaces and lines. By running or executing the instructions stored in the memory 502 and calling the data stored in the memory 502, various functions of the device and process data, so as to monitor the device as a whole.

[0124] In the embodiment of the present application, the processor 501 may include one or more processing units. The processor 501 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 can be implemented on the same chip, and in some embodiments, they can also be separately implemented on independent chips.

[0125] The processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a document editing method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0126] The memory 502 serves as a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 502 can include at least one type of storage medium. For example, it can include flash memory, hard disks, multimedia cards, card-type memories, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memories, magnetic disks, optical disks, and so on. The memory 502 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiments of the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.

[0127] By programming the design of the processor 501, the code corresponding to a document editing method introduced in the foregoing embodiments can be solidified into the chip, so that the chip can execute Figure 2 a document editing method of the illustrated embodiment when running. How to program the design of the processor 501 is a well-known technology to those skilled in the art and will not be elaborated here.

[0128] It should be noted here that the above electronic device provided in the embodiments of the present application can implement all the method steps implemented in the above method embodiments and can achieve the same technical effects. The same parts and beneficial effects in this embodiment as those in the method embodiments will not be specifically elaborated here.

[0129] Based on the same technical concept, the embodiments of the present application provide a computer storage medium. The computer storage medium includes: computer program code, which when running on a computer, causes the computer to execute a document editing method as described in any of the foregoing discussions. Since the principle of the above computer storage medium for solving problems is similar to that of a document editing method, the implementation of the above computer storage medium can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0130] In a specific implementation process, the computer storage medium may include: various storage media that can store program codes, such as a Universal Serial Bus Flash Drive (USB), a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc.

[0131] Based on the same technical concept, an embodiment of the present application further provides a computer program product, which includes: computer program code. When the computer program code runs on a computer, it causes the computer to execute a method for document editing as described in any one of the foregoing discussions. Since the principle of the above computer program product for solving problems is similar to that of a method for document editing, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0132] The computer program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0133] The method in the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM, or other programmable devices.

[0134] The computer program or instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer program or instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired or wireless manner. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc; or it can be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium can be a volatile or non-volatile storage medium, or can include both volatile and non-volatile types of storage media.

[0135] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, system, or computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0136] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or a combination of multiple flows and / or blocks Figure 1 or a combination of multiple blocks Figure 1 specified in the flowchart and / or block diagram. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to produce a computer-implemented process, thereby the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified in one process or a plurality of processes and / or blocks Figure 1 one process or a plurality of processes and / or blocks Figure 1 steps for realizing the functions specified in one block or a plurality of blocks.

[0138] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications therein.

Claims

1. A document editing method, characterized in that: include: Performing a correction operation on the N domain codes and the M hyperlinks inserted into the document to obtain the corrected N target domain codes and the M target hyperlinks; wherein both N and M are integers greater than 1; performing a marking operation on the N target domain codes according to the domain types and domain attributes of the N target domain codes to obtain marked N target domain codes; A marking operation is performed on the M target hyperlinks and the N target domain codes after the identification to obtain a target document.

2. The method according to claim 1, characterized in that The performing of the correction operation on the N domain codes and the M hyperlinks to be inserted into the document includes at least one of the following: Correcting the domain codes and / or hyperlinks that do not conform to the formatting rules among the N domain codes and the M hyperlinks; Correcting the domain codes and / or hyperlinks with identification errors and / or attribute errors among the N domain codes and the M hyperlinks; Correcting the domain codes and / or hyperlinks with code spelling anomalies among the N domain codes and the M hyperlinks; The domain codes and / or hyperlinks with inconsistent versions among the N domain codes and the M hyperlinks are corrected.

3. The method according to claim 1, characterized in that The performing a labeling operation on the N target domain codes according to the domain types and domain attributes of the N target domain codes to obtain the labeled N target domain codes includes: Among the N target domain codes, different feature identifiers are added to the type identifiers of P target domain codes respectively, and respective attribute codes are added to J target domain codes to obtain the processed N target domain codes; wherein the domain types to which the P target domain codes belong are the same, the J target domain codes are domain codes with domain attributes, and both P and J are less than or equal to N.

4. The method according to claim 1, characterized in that The operation function selection icons of the correction operation, identification operation and marking operation are integrated in the toolbar of the document editing interface.

5. The method according to any one of claims 1 to 4, characterized in that: The marking operation includes at least one of the following: Highlight mark; Italic mark; Underline mark; Font color mark; Bold mark.

6. A document editing device, characterized in that: include: A correction module, used to perform correction operations on the N domain codes and M hyperlinks inserted into the document to obtain the corrected N target domain codes and M target hyperlinks; wherein both N and M are integers greater than 1; an identification module, configured to perform an identification operation on the N target domain codes according to the domain types and domain attributes of the N target domain codes, so as to obtain the identified N target domain codes; The marking module is used to perform a marking operation on the M target hyperlinks and the N target domain codes after the identification to obtain a target document.

7. The device according to claim 6, characterized in that The correction module is specifically used for at least one of the following: Correcting the domain codes and / or hyperlinks that do not conform to the formatting rules among the N domain codes and the M hyperlinks; Correcting the domain codes and / or hyperlinks with identification errors and / or attribute errors among the N domain codes and the M hyperlinks; Correcting the domain codes and / or hyperlinks with code spelling anomalies among the N domain codes and the M hyperlinks; The domain codes and / or hyperlinks with inconsistent versions among the N domain codes and the M hyperlinks are corrected.

8. The device according to claim 6, characterized in that The identification module is specifically used for: Among the N target domain codes, feature identifiers are respectively added to the type identifiers of P target domain codes, and respective attribute codes are added to J target domain codes to obtain the processed N target domain codes; wherein the domain types to which the P target domain codes belong are the same, the J target domain codes are domain codes with domain attributes, and both P and J are less than or equal to N.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 5 when executing a computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.