Document processing method and device, electronic equipment and storage medium

By automatically updating the document outline and generating target files in the document processing system, the problem of users in the prior art need to manually edit document information is solved, which improves document processing efficiency and realizes intelligent processing.

CN119598981APending Publication Date: 2025-03-11ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311167332.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the existing document processing technology, users need to manually edit the information such as pictures, text and pictures in the document, resulting in low document processing efficiency.

Method used

By displaying the document outline in the first interface, automatically update the outline in response to user's editing operations, and generating or updating the target file in the second interface based on the updated outline, automatic processing is achieved.

Benefits of technology

No need for users to manually edit various information in the document, which significantly improves document processing efficiency and realizes intelligent processing of documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598981A_ABST
    Figure CN119598981A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a document processing method and device, electronic equipment and a storage medium. The document processing method comprises the following steps: displaying a first document outline in a first interface; in response to an editing operation for the first document outline, updating at least part of contents of the first document outline to obtain a second document outline; and according to the second document outline, generating a target file in a second interface or updating the target file in the second interface. According to the embodiment of the invention, the document processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to but is not limited to the field of document processing technology, and in particular to a document processing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of computer technology, it is becoming more and more convenient to create documents using document applications.

[0003] In the prior art, in order to facilitate users in creating documents, document applications usually provide a large number of templates so that users can edit the content according to the outline in the template. However, in the process of making documents, users need to manually edit various types of pictures, texts, and combinations of pictures and texts contained in the documents, which results in low document processing efficiency. Summary of the invention

[0004] Embodiments of the present disclosure provide a document processing method, device, electronic device, and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a document processing method is provided, the method comprising:

[0006] Displaying the first document outline in the first interface;

[0007] In response to an editing operation on the first document outline, updating at least a portion of the first document outline to obtain a second document outline;

[0008] According to the second document outline, a target file is generated in the second interface or a target file in the second interface is updated.

[0009] In some embodiments, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes:

[0010] Determining, according to the type of the editing operation, a target operation for adaptively updating the first document outline;

[0011] According to the editing result of the editing operation, the target operation is performed on the first document outline to obtain the second document outline.

[0012] In some embodiments, the target operation includes at least one of the following:

[0013] A first operation is used to delete or modify the associated content of the first content; the first content is the content removed from the first document outline based on the editing operation;

[0014] A second operation is used to delete or modify duplicate content of a second content; the second content is content written into the first document outline based on the editing operation;

[0015] The third operation is used to detect outline logic and update outlines with logic problems.

[0016] In some embodiments, the editing operation is a modification operation on the first content, and the target operation includes the first operation, the second operation and / or the third operation;

[0017] or,

[0018] The editing operation is a deletion operation for the first content, and the target operation includes the first operation and / or the third operation;

[0019] or,

[0020] The editing operation is an adding operation for the second content, and the target operation includes the second operation and / or the third operation.

[0021] In some embodiments, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes:

[0022] In response to the editing operation being a modification operation of modifying the first content in the first document outline into the second content, determining whether there is a third content associated with the first content according to the context of the first content;

[0023] In response to the existence of the third content, according to the association between the third content and the second content, the third content is deleted or the third content is modified according to the second content to obtain the second document outline.

[0024] In some embodiments, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes:

[0025] Determine whether the first document outline has fourth content that meets a similar condition to the second content; the second content is content written into the first document outline based on a modification operation or an addition operation;

[0026] In response to the existence of the fourth content, the fourth content is deleted or modified according to the similarity between the fourth content and the second content to obtain the second document outline.

[0027] In some embodiments, in response to the existence of the fourth content, deleting the fourth content or modifying the fourth content according to the similarity between the fourth content and the second content includes:

[0028] In response to the similarity between the fourth content and the second content being greater than or equal to a first threshold, deleting the fourth content;

[0029] In response to the similarity between the fourth content and the second content being less than a first threshold, part of the fourth content that completely overlaps with the second content is deleted, or the fourth content is modified to be distinguished from the second content.

[0030] In some embodiments, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes:

[0031] In response to the editing operation being a deletion operation of deleting the first content, determining whether the first document outline has any content associated with the first content according to the context of the first content;

[0032] In response to the existence of associated content of the first content, the associated content is deleted to obtain the second document outline.

[0033] In some embodiments, the associated content of the first content includes one of the following:

[0034] details of the first content;

[0035] The continuation of the first content.

[0036] In some embodiments, performing the target operation on the first document outline to obtain the second document outline according to the editing result of the editing operation includes:

[0037] In response to an editing operation on the first document outline, updating the first document outline to obtain a third document outline according to an editing result of the editing operation;

[0038] Performing outline logic detection on the third document outline;

[0039] In response to the detection result of the outline logic indicating that the outline logic of the third document outline is abnormal, the third document outline is adjusted to obtain the second document outline.

[0040] In some embodiments, the detecting of executing outline logic on the third document outline includes:

[0041] In response to the first content removed and / or the second content introduced in the first document outline causing a logic jump in the third document outline or destroying the writing logic of the third document outline, it is determined that the outline logic of the third document outline is abnormal.

[0042] In some embodiments, in response to the detection result indicating that the outline logic of the third document outline is abnormal, adjusting the third document outline to obtain the second document outline includes:

[0043] In response to the detection result indicating that the outline logic of the third document outline is abnormal, outputting first prompt information;

[0044] According to a confirmation operation performed on the first prompt information, the third document outline is adjusted to obtain the second document outline.

[0045] In some embodiments, performing the target operation on the first document outline to obtain the second document outline according to the editing result of the editing operation includes:

[0046] Outputting second prompt information according to the editing result of the editing operation;

[0047] According to a confirmation operation performed on the second prompt information, the target operation is performed on the first document outline to obtain the second document outline.

[0048] In some embodiments, the second document outline includes a plurality of blocks;

[0049] Generating a target file in a document interface or updating a target file in the document interface according to the second document outline includes:

[0050] The target file is generated in the document interface or the target file is updated in the document interface in units of the blocks.

[0051] In some embodiments, generating the target file in the document interface or updating the target file in the document interface in units of the blocks includes:

[0052] When the update of the nth block of the second document outline is completed, a document page corresponding to the nth block is generated on the document interface, or a document page corresponding to the nth block is updated on the document interface, wherein n is less than or equal to the total number of blocks.

[0053] In some embodiments, generating a target file on a document interface according to the second document outline includes:

[0054] Determining the document style of the target file according to the user preference information of the editing account of the second document outline;

[0055] The target file is generated according to the second document outline and the document style of the target file.

[0056] In some embodiments, the generating of the target file includes:

[0057] According to the position sequence of the data stream in the target file, the content data written into the target file are sequentially displayed in the document interface.

[0058] In some embodiments, the method further comprises:

[0059] In response to the fifth content written into the target file being animation content, the animation effect of the fifth content is previewed in a floating window while the content data written into the target file is sequentially displayed on the document interface.

[0060] In some embodiments, updating the target file in the second interface according to the second document outline includes:

[0061] According to the outline changes in the second document outline compared with the first document outline, the document page in the target file corresponding to the outline changes is updated.

[0062] According to a second aspect of an embodiment of the present disclosure, there is provided a document processing device, the device comprising:

[0063] A display module, used for displaying the first document outline in the first interface;

[0064] A first processing module, configured to update at least a portion of the first document outline to obtain a second document outline in response to an editing operation on the first document outline;

[0065] The second processing module is used to generate a target file in the second interface or update the target file in the second interface according to the second document outline.

[0066] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0067] processor;

[0068] a memory for storing processor-executable instructions;

[0069] Wherein, the processor is configured to: implement the document processing method described in any one of the first aspects when running the executable instructions.

[0070] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the document processing method described in any one of the first aspects is implemented.

[0071] The technical solution provided by the embodiment of the present disclosure includes: displaying a first document outline in a first interface; in response to an editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline; generating a target file in a second interface or updating the target file in the second interface according to the second document outline. In this way, when a user creates or edits a document, the user only needs to edit the first document outline displayed on the first interface, and at least part of the content of the first document outline can be automatically updated to obtain the second document outline, and then generate a target file in the document interface or update the target file in the document interface according to the second document outline, so that the user does not need to manually edit various types of information contained in the document, and the intelligent processing of the document is realized, which greatly improves the efficiency of document processing.

[0072] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0074] Figure 1a The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0075] Figure 1b It is a schematic diagram of an interface according to an exemplary embodiment.

[0076] Figure 2 The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0077] Figure 3 The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0078] Figure 4 The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0079] Figure 5 The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0080] Figure 6 The figure is a flowchart of a document processing method according to an exemplary embodiment.

[0081] Figure 7 The diagram is a schematic diagram of the structure of a document processing device according to an exemplary embodiment.

[0082] Figure 8 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0083] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.

[0084] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "said" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0085] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0086] It can be understood that the description of various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0087] Figure 1a A schematic diagram of a document processing method provided by an embodiment of the present disclosure is shown. Figure 1a As shown, the method may include the steps of:

[0088] 101: Displaying a first document outline in a first interface;

[0089] 102: In response to an editing operation on the first document outline, updating at least a portion of the content of the first document outline to obtain a second document outline;

[0090] 103: Generate a target file in the second interface or update the target file in the second interface according to the second document outline.

[0091] In this embodiment, the document processing method can be executed by an electronic device, which may include but is not limited to a terminal or a server, and the terminal may correspond to any form of terminal device. For example, the terminal device may include but is not limited to: a tablet computer, a desktop computer, a mobile phone, a vehicle-mounted device and / or a smart office device. The server may be an application server for a document application.

[0092] The document application can process documents and / or document outlines. For example, the document application can generate a document outline based on the natural language input received by the first interface.

[0093] In some embodiments, the document application has an application interface, and the application interface is provided with a first interface and a second interface, wherein the first interface and the second interface may be independent interfaces, and the first interface may also be a part of the second interface.

[0094] The first interface may be used to display the outline of the document, and the second interface may be used to display the content of the document.

[0095] In some examples, the first interface may be a conversation panel, for example, the conversation panel may be used to process a document outline and / or document content based on a natural language artificial intelligence (AI) dialogue. The AI ​​dialogue may be a natural language dialogue with an AI model. The processing of the document outline may include: generating or updating the document outline; the processing of the document content may include: generating or updating the document content. Further, the document content may be generated or updated based on the document outline.

[0096] In this embodiment, the document content may be all or part of the content of the target file (or document) displayed on the second interface.

[0097] In other examples, the first interface may be a wizard interface, which may be used to guide the user to input or select one or more parameters according to a predetermined process to complete the processing of the document outline and / or document content. For example, the predetermined process may include: multiple stages such as title input, document outline generation, document style generation, and document content generation that are executed in sequence.

[0098] In this embodiment, the document refers to an electronic document to which the user can add, delete or modify content.

[0099] The first interface and the second interface are arranged in different areas within the application window. In some cases, the area of ​​the second interface is slightly larger than the area of ​​the first interface.

[0100] When processing a document based on the first interface, the first interface and the second interface can be displayed side by side horizontally or vertically in the application interface. The first interface can also be displayed in a pop-up window or embedded in the second interface.

[0101] The display mode of the first interface and the second interface can be adaptively adjusted according to the aspect ratio of the display screen of the electronic device that performs document processing. For example, if the aspect ratio of the display screen is greater than 1, the first interface and the second interface are displayed side by side horizontally. For another example, if the aspect ratio of the display screen is less than 1, the first interface and the second interface are displayed side by side vertically.

[0102] In some examples, the first interface may be displayed within the application interface in response to a user triggering a shortcut key, or the first interface may be displayed within the application interface in response to a user clicking on a predefined function menu.

[0103] In some examples, one or more controls related to document processing may be provided in the first interface. For example, the first interface includes at least an input box, which can be used to receive a natural language input from a user.

[0104] See also Figure 1b As shown, it is a schematic diagram of an interface for presentation document processing based on a session panel, wherein a second interface (e.g., document interface) A and a first interface (e.g., session panel) B are displayed side by side horizontally. The input box of the first interface can receive a natural language input by a user, and in response to the natural language, a document outline is displayed on the first interface. The second interface can display the document content of the file.

[0105] It should be noted that Figure 1b It is only used to illustrate the first interface and the second interface and does not constitute a limitation to the present disclosure.

[0106] In some examples, when the user clicks an update operation on the displayed first document outline on the first interface, the first document outline can be put into an editing state. When the first document outline is in the editing state, the user can edit the outline content in the first document outline.

[0107] In some examples, the aforementioned AI model can run in a terminal or on a server.

[0108] For example, the AI ​​model may be various neural network models and / or machine learning models.

[0109] For example, the AI ​​model can recognize natural language input by the user, obtain the semantics of the natural language, and automatically generate a document outline based on the semantics of the natural language, and / or edit the document outline.

[0110] For another example, the AI ​​model can generate the content and / or style of the target file based on the document outline.

[0111] The AI ​​model may be a model obtained by training with sample data.

[0112] Exemplarily, the AI ​​model may include an LLM (Large Language Model, or “large-scale language model”).

[0113] For example, AI models may include GPT (Generative Pre-Trained Transformer Model). The training process of the GPT model is: unsupervised pre-training on a large-scale corpus, and then fine-tuning on specific tasks to achieve better results. The GPT model can be used for various natural language processing tasks, such as text generation, machine translation, sentiment analysis, etc.

[0114] In some examples, displaying the first document outline in the first interface may include:

[0115] Based on the natural language, voice and / or image received by the first interface, a first document outline is generated and displayed in the first interface.

[0116] Exemplarily, generating the first document outline based on the natural language, voice and / or image received by the first interface includes:

[0117] Semantic recognition is performed on the natural language, voice and / or image received based on the first interface to obtain semantic information, and a first document outline is generated according to the semantic information.

[0118] Exemplarily, natural language understanding may be performed on the natural language to obtain semantic information of the natural language.

[0119] For example, the natural language understanding may include: performing keyword extraction processing on the natural language input and performing semantic matching processing on the extracted keywords.

[0120] Exemplarily, speech semantics recognition may be performed on the speech to obtain semantic information of the speech.

[0121] Exemplarily, image semantic recognition may be performed on the image to obtain semantic information of the image.

[0122] Exemplarily, generating the first document outline according to the semantic information may include: generating the document outline according to a prompt word generated according to the semantic information.

[0123] For example, if the natural language or voice received by the first interface is "I want a PPT on the theme of Dragon Boat Race on the Dragon Boat Festival", or the image received by the first interface is a picture about the Dragon Boat Race on the Dragon Boat Festival, a PPT document outline on the theme of Dragon Boat Race on the Dragon Boat Festival will be generated and displayed in the first interface.

[0124] In some other examples, displaying the first document outline in the first interface may include:

[0125] The first document outline input by the user is displayed on the first interface. In this example, the user can input a created document outline on the first interface, such as a document outline obtained from the Internet or other electronic devices.

[0126] It is understandable that the first document outline input by the user can be a document outline in any document format, such as a presentation file format, a text format, etc. The text format can be a word text format, a TXT text format, etc.

[0127] In some embodiments, displaying the first document outline in the first interface may include:

[0128] According to the position order of each major outline content of the first document outline in the first document outline, each major outline content is sequentially written into the first document outline in the first interface.

[0129] For example, each outline content can be written word by word into the first document outline, so that the outline content can be displayed one by one in a streaming manner in the first interface, thereby improving the display effect of the first interface and improving the friendliness of interaction with users.

[0130] In some examples, the target file may be a presentation file, and the document outline may be an outline of the presentation file.

[0131] In some examples, the document outline includes multiple contents (i.e., outline contents), one of which can be a topic or a title. The topic can be used to reflect the central content of the entire document; the title can include the chapter title and / or paragraph title in the document. It is understood that there is only one topic in the document outline, and there can be multiple titles.

[0132] There is a hierarchical relationship between titles. Titles of different levels include first-level titles, second-level titles, third-level titles, etc. For example, Title 1 is a first-level title, Title 2 is a first-level title, Title 1.1 is a second-level title, and Title 1.1.1 is a third-level title. Title 1.1 is the next-level title of Title 1, and Title 1.1 is the previous-level title of Title 1.1.1.

[0133] For the first document outline displayed in the first interface, the user can edit the first document outline. For example, the user can add a third-level heading in the first document outline, delete a second-level heading in the first document outline, or modify a second-level heading in the first document outline. For example, the user can modify the subject in the first document outline, and so on.

[0134] In some examples, in the above step 101, before displaying the first document outline in the first interface, the method may further include:

[0135] Based on the natural language input, voice and / or image received on the first interface, display at least one recommended topic of the first document outline on the first interface;

[0136] In response to a selection operation on at least one recommended topic, a first document outline having a target topic is generated; the target topic is a topic selected in the selection operation among the at least one recommended topic.

[0137] In some examples, semantic recognition may be performed on natural language input, voice, and / or images received based on the first interface to obtain keywords, and at least one recommended topic may be determined based on the keywords.

[0138] In this embodiment, before displaying the first document outline on the first interface, at least one recommended topic is displayed, and based on the target topic selected in the at least one recommended topic by the selection operation, a first document outline with the target topic is generated. In this way, the generated first document outline can better meet the actual needs of the user and improve the user experience.

[0139] In some examples, in step 102, in response to an editing operation on the first document outline, the content directly edited by the editing operation in the first document outline may be updated and the target content in the first document outline may be adaptively updated to obtain the second document outline. The target content includes: content associated with the content directly edited by the editing operation before being edited, and / or content that is repeated with the content directly edited by the editing operation after being edited.

[0140] In some other examples, in the above step 102, in response to an editing operation on the first document outline, the content directly edited by the editing operation in the first document outline may be updated to obtain a second document outline.

[0141] Here, the types of editing operations may include: modification operations, deletion operations and / or addition operations.

[0142] In some examples, the editing operation may be an editing operation input by a user. For example, after the user selects a title to be edited in the first document outline, the user may click an editing control to directly edit the title.

[0143] In other examples, the editing operation may be an editing operation determined based on natural language input by the user. For example, after the user selects a title to be edited in the first document outline, a dialog box pops up, and the editing operation for the selected title is determined based on the natural language received in the dialog box (e.g., the editing requirement description input by the user).

[0144] In some examples, in the above step 103, generating a target file on the second interface according to the second document outline may include: generating document content corresponding to each outline content of the second document outline, and expanding the document content, including but not limited to adding pictures, matching document style, knowledge expansion and / or example expansion; generating a target file for display on the second interface according to the expanded document content corresponding to each outline content.

[0145] In some examples, in the above step 103, updating the target file in the second interface according to the second document outline may include: updating the outline content that is updated when the second document outline is generated according to the first document outline, and updating the document page corresponding to the updated outline content in the second interface.

[0146] Exemplarily, updating the document page corresponding to the updated outline content in the second interface according to the updated outline content when generating the second document outline according to the first document outline may include:

[0147] For example, if the updated outline content is added outline content, a document page corresponding to the added outline content is added in the second interface; if the updated outline content is deleted content, a document page corresponding to the deleted outline content is deleted in the second interface; if the updated outline content is modified content, a document page corresponding to the modified outline content is modified in the second interface.

[0148] The disclosed embodiment provides a document processing method, including: displaying a first document outline in a first interface; in response to an editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline; generating a target file in a second interface or updating the target file in the second interface according to the second document outline. In this way, when a user creates or edits a document, the user only needs to edit the first document outline displayed on the first interface, and at least part of the content of the first document outline can be automatically updated to obtain the second document outline, and then, according to the second document outline, the target file can be generated in the second interface or the target file in the second interface can be updated. In this way, there is no need for the user to manually edit various types of information contained in the document, and intelligent processing of the document is achieved, greatly improving the efficiency of document processing.

[0149] In some embodiments, Figure 2 As shown, in the above step 102, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain the second document outline may include the steps of:

[0150] 201: Determine a target operation for adaptively updating the first document outline according to the type of the editing operation;

[0151] 202: According to the editing result of the editing operation, a target operation is performed on the first document outline to obtain a second document outline.

[0152] In some examples, the types of editing operations may include: a modification operation, a deletion operation, and / or an addition operation.

[0153] In some embodiments, the target operation includes at least one of the following:

[0154] A first operation is used to delete or modify the associated content of the first content; the first content is the content removed from the first document outline based on the editing operation;

[0155] The second operation is used to delete or modify duplicate content of the second content; the second content is the content written into the first document outline based on the editing operation;

[0156] The third operation is used to detect outline logic and update outlines with logic problems.

[0157] In some examples, the first content is outline content removed from the first document outline based on an editing operation, including: the first content is outline content deleted from the first document outline based on a deletion operation, or the first content is outline content modified to second content in the first document outline based on a modification operation.

[0158] Here, the deletion of the first content in the first document outline may be the deletion of all the content in the first content. For example, a title in the first document outline is deleted, and the deleted title is the first content.

[0159] Here, the modification of the first content in the first document outline includes modification of all or part of the first content, wherein the modification of part of the first content may include deletion of part of the first content.

[0160] For example, a part of the content of a subject or a part of the content of a title in the first document outline is deleted, and the subject or title of the deleted part becomes the first content, and the first content after the part of the content is deleted becomes the second content.

[0161] In some examples, the associated content of the first content may include: detailed content of the first content, and / or continuation content of the first content.

[0162] Exemplarily, the first content is an n-th level title, and the detailed content of the first content may be a next-level title of the first content. For example, the first content is title 1.1, and the detailed content of the first content may be title 1.1.1, title 1.1.2, and so on.

[0163] The continuation content of the first content may be content that is coherent with the first content and is located after the first content. For example, the first content is title 1.1, and the continuation content of the first content is title 1.2.

[0164] In some examples, the second content is content written into the first document outline based on an editing operation, including: the second content is content added to the first document outline based on an adding operation, or the second content is content obtained by modifying the first content in the first document outline based on a modifying operation.

[0165] Here, the addition of the second content in the first document outline may be the addition of all the content in the second content. For example, a certain title in the first document outline is added, and the added title is the second content.

[0166] In some examples, the duplicate content of the second content may be content having semantics that are duplicated with the semantics of the second content. Alternatively, the duplicate content of the second content may be content that is completely duplicated with the second content in the first document outline, or may be content that is duplicated with part of the second content in the first document outline.

[0167] In some embodiments, the editing operation is a modification operation on the first content, and the target operation includes the first operation, the second operation and / or the third operation.

[0168] In this embodiment, when the editing operation on the first document outline is a modification operation on the first content in the first document outline, after the first content is modified to the second content, the first document outline can be subjected to deletion or modification of the associated content of the first content, and / or the first document outline can be subjected to deletion or modification of the duplicate content of the second content, and / or the outline logic of the first document outline can be checked and the first document outline can be updated when there is a logic problem in the first document outline.

[0169] In some embodiments, the editing operation is a deletion operation on the first content, and the target operation includes the first operation and / or the third operation.

[0170] In this embodiment, when the editing operation on the first document outline is a deletion operation on the first content in the first document outline, after deleting the first content, the first document outline can be subjected to deletion or modification of the associated content of the first content, and / or the outline logic of the first document outline can be checked and the first document outline can be updated when there is a logic problem in the first document outline.

[0171] In some embodiments, the editing operation is an adding operation on the second content, and the target operation includes the second operation and / or the third operation.

[0172] In this embodiment, when the editing operation on the first document outline is to add the second content to the first document outline, after adding the second content, the first document outline can be executed to delete or modify the duplicate content of the second content, and / or the outline logic of the first document outline can be checked and the first document outline can be updated when there is a logic problem in the first document outline.

[0173] In this embodiment, by determining the target operation for adaptive updating of the first document outline according to the type of editing operation, and performing the target operation on the first document outline to obtain the second document outline according to the editing result of the editing operation, it is possible to adaptively update other contents in the first document outline that are different from the contents edited by the editing operation as the editing result of the editing operation occurs, without the need for the user to manually edit the contents that need to be edited in the document outline one by one, thereby greatly reducing the workload required for the user to edit the document outline and improving the updating efficiency of the document outline.

[0174] In some embodiments, Figure 3 As shown, in the above step 102, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain the second document outline may include the steps of:

[0175] 301: In response to an editing operation of modifying a first content in a first document outline into a second content, determining whether there is a third content associated with the first content according to a context of the first content;

[0176] 302: In response to the existence of the third content, according to the association between the third content and the second content, the third content is deleted or the third content is modified according to the second content to obtain a second document outline.

[0177] In some examples, the third content associated with the first content may be an outline content adjacent to the first content in the first document outline. For example, the third content may be a lower level title and / or an upper level title of the first content.

[0178] In some examples, in step 301, in response to an editing operation that modifies the first content in the first document outline into the second content, it can be determined whether the context of the first content includes the detailed content of the first content and / or the continuation content of the first content. If so, it is determined that there is a third content associated with the first content; if it does not include the detailed content of the first content and the continuation content of the first content, it is determined that there is no third content associated with the first content.

[0179] In some examples, the relevance of the third content to the second content can be analyzed by inputting the semantic information of the third content and the semantic information of the second content into the AI ​​model, and determining whether it is associated based on the analysis result. Exemplarily, the similarity between the third content and the second content can be analyzed, and when the similarity is greater than a preset threshold, it is determined that the third content and the second content are associated.

[0180] In some examples, in step 302, in response to the existence of the third content, if the third content is not associated with the second content, the third content is deleted, or if the third content is associated with the second content, the third content is modified according to the second content.

[0181] In this embodiment, whether there is an associated third content is determined based on the first content before modification, and when there is an associated third content, the third content is deleted or modified based on the association between the third content and the second content obtained by modifying the first content, thereby achieving adaptive updating of the first document outline to obtain the second document outline, reducing the time cost of users having to manually edit the outline contents one by one, and improving the updating efficiency of the document outline.

[0182] In some embodiments, Figure 4 As shown, in the above step 102, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain the second document outline may include the steps of:

[0183] 401: Determine whether the first document outline has fourth content that meets a similar condition to the second content; the second content is content written into the first document outline based on a modification operation or an addition operation;

[0184] 402: In response to the existence of the fourth content, the fourth content is deleted or modified according to the similarity between the fourth content and the second content, to obtain a second document outline.

[0185] Here, the similarity between two contents is used to represent the degree of similarity between the two contents. The numerical measurement range of the similarity can be a preset range, such as 0 to 1.

[0186] In some examples, the fourth content and the second content satisfying the similarity condition may be that the similarity between the fourth content and the second content is greater than a preset similarity threshold.

[0187] In some examples, in step 401, semantic similarity calculations may be performed on multiple contents in the first document outline and the second content to determine whether there is a fourth content that meets similarity conditions with the second content.

[0188] In some examples, an AI model can be used to calculate semantic similarity. For example, the AI ​​model can be constructed based on one or more of the following models: generalized vector space model (GVSM), latent semantic indexing model (LSI), deep structured semantic model (DSSM), etc.

[0189] In some examples, in step 402, in response to the existence of the fourth content, if the fourth content is similar or identical to the second content, the fourth content may be deleted, or, if the fourth content is identical or similar to the second content, the fourth content may be modified to distinguish it from the second content.

[0190] Here, in the case where the second content and the fourth content are the same, the second content is retained by deleting the fourth content. Since the position of the second content in the first document outline is different from the position of the fourth content in the first document outline, it is equivalent to adjusting the position of the fourth content, thereby satisfying the user's need to adjust the position of the outline content.

[0191] In this embodiment, depending on whether the second content written into the first document outline has similar fourth content, and when similar fourth content exists, based on the similarity between the second content and the fourth content, the fourth content is deleted or the fourth content is modified based on the second content to distinguish it from the second content, thereby achieving adaptive updating of the first document outline to obtain the second document outline, reducing the time cost of users needing to manually edit the outline contents one by one, and improving the updating efficiency of the document outline.

[0192] In some embodiments, in step 402, in response to the existence of the fourth content, deleting the fourth content or modifying the fourth content according to the similarity between the fourth content and the second content may include:

[0193] In response to the similarity between the fourth content and the second content being greater than or equal to a first threshold, deleting the fourth content;

[0194] In response to the similarity between the fourth content and the second content being less than the first threshold, the content in the portion of the fourth content that completely overlaps with the second content is deleted, or the fourth content is modified to be distinguishable from the second content.

[0195] Here, the first threshold value may be set according to actual application requirements. For example, the first threshold value may be set to 0.8 or 0.9, etc. This embodiment of the present disclosure does not specifically limit this.

[0196] In this embodiment, in response to the existence of the fourth content, the fourth content is deleted or modified according to the similarity between the fourth content and the second content, so that redundant content in the generated second document outline can be reduced and the rationality of the document outline content can be improved.

[0197] In some embodiments, Figure 5 As shown, in the above step 102, in response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain the second document outline may include the steps of:

[0198] 501: In response to the editing operation being a deletion operation of deleting a first content, determining whether the first document outline has content associated with the first content according to the context of the first content;

[0199] 502: In response to the existence of associated content of the first content, the associated content is deleted to obtain a second document outline.

[0200] In some examples, in step 501, in response to the editing operation being a deletion operation to delete the first content, it can be determined whether the context of the first content includes the detailed content of the first content and / or the continuation content of the first content. If so, it is determined that there is associated content of the first content; if it does not include the detailed content of the first content and the continuation content of the first content, it is determined that there is no associated content of the first content.

[0201] In some examples, in step 502, in response to the existence of associated content of the first content, the associated content of the first content is deleted from the first document outline to obtain a second document outline.

[0202] In this embodiment, when the first content is deleted from the first document outline, if there is related content of the first content in the first document outline, the related content of the first content is deleted to obtain the second document outline, which can improve the rationality of the document outline content.

[0203] In some examples, in step 502, in response to the existence of associated content of the first content, detailed content of the first content is deleted in the first document outline, and / or the continuation content of the first content is modified to obtain a second document outline.

[0204] In some embodiments, Figure 6 As shown, in the above step 202, according to the editing result of the editing operation, performing the target operation on the first document outline to obtain the second document outline may include the following steps:

[0205] 601: in response to an editing operation on a first document outline, updating the first document outline according to an editing result of the editing operation to obtain a third document outline;

[0206] 602: Execute outline logic detection on the third document outline;

[0207] 603: In response to the outline logic detection result indicating that the outline logic of the third document outline is abnormal, adjusting the third document outline to obtain the second document outline.

[0208] In one example, the third document outline may be adjusted to obtain the second document outline while maintaining the editing operation result.

[0209] Here, the types of editing operations are different, and the editing results of the editing operations are different.

[0210] Exemplarily, the editing result may include: a modification result obtained by modifying the first content in the first document outline in response to a modification operation, or a deletion result obtained by deleting the first content in the first document outline in response to a deletion operation, or an addition result obtained by adding the second content to the first document outline in response to an addition operation.

[0211] In some examples, outline logic detection may be used to detect whether a logic jump occurs in the third document outline or whether the outline writing logic is abnormal.

[0212] In some examples, in step 602, performing outline logic detection on the third document outline may include:

[0213] In response to the first content removed and / or the second content introduced in the first document outline causing a logic jump in the third document outline or destroying the writing logic of the third document outline, it is determined that the outline logic of the third document outline is abnormal.

[0214] The appearance of a logical jump in the outline logic may refer to a logical jump between the adjacent contents in the outline. For example, a logical jump between a title in the outline and its adjacent title indicates a logical jump in the outline logic, and the title can be considered a logical jump.

[0215] The outline writing logic may include: the logical order of the outline content. Exemplarily, the logical order may include: time order, structural order, and importance order. The time order may be the chronological order of the outline content. The structural order may include the order of the outline content from the whole to the part, and / or the order of the outline content from the general to the specific; the importance order may be the order of the outline content from the main to the secondary, and so on.

[0216] In some examples, outline logic detection can be performed on the third document outline by calling AI model detection.

[0217] As an example, the AI ​​model includes a first logic detection model, a second logic detection model, and / or a third logic detection model. For example, the first logic detection model can be called to detect the time sequence of the outline content, the second logic detection model can be called to detect the structural sequence of the outline content, and / or the third logic detection model can be called to detect the importance sequence of the outline content. The detection result of the outline logic can be obtained based on the results output by multiple logic detection models.

[0218] In other examples, the AI ​​model can also call pre-set logic verification rules to perform outline logic detection.

[0219] It is understandable that the embodiments of the present disclosure do not specifically limit the detection method of outline logic.

[0220] In some examples, in step 603 above, in response to the outline logic detection result indicating that the outline logic of the third document outline is abnormal, the third document outline is adjusted to obtain the second document outline while maintaining the editing result of the editing operation.

[0221] Exemplarily, while maintaining the editing result of the editing operation, the outline content with logical anomalies in the third document outline is adjusted to obtain the second document outline.

[0222] For example, while maintaining the editing result of the editing operation, other contents in the third document outline except for the contents corresponding to the editing result are adaptively adjusted to obtain a second document outline with normal outline logic.

[0223] For example, if a logical jump occurs in the outline logic of the third document outline, while maintaining the editing result of the editing operation, the adjacent content of the content corresponding to the editing result in the third document outline can be adjusted so that the adjusted adjacent content remains logically consistent with the content corresponding to the editing result in the third document outline.

[0224] For another example, if the outline logical order of the third document outline is wrong, while maintaining the editing result of the editing operation, the content in the third document outline that has a logical order problem corresponding to the editing result can be adjusted so that the outline logical order of the adjusted third document outline is normal.

[0225] In this embodiment, the third document outline is obtained by updating the first document outline according to the editing result of the editing operation, and the outline logic is checked on the third document outline. When the outline logic of the third document outline is abnormal, the third document outline is adjusted to obtain the second document outline, thereby improving the usability of the document outline content.

[0226] In some embodiments, in step 603, in response to the detection result indicating that the outline logic of the third document outline is abnormal, adjusting the third document outline to obtain the second document outline while maintaining the editing result of the editing operation may include:

[0227] In response to the detection result indicating that the outline logic of the third document outline is abnormal, outputting first prompt information;

[0228] According to the confirmation operation performed on the first prompt information, the third document outline is adjusted to obtain the second document outline while maintaining the editing result of the editing operation.

[0229] Here, outputting the first prompt information may be outputting the first prompt information on the first interface to prompt whether the outline of the third document with abnormal outline logic needs to be adjusted.

[0230] Here, the confirmation operation applied to the first prompt information may be a click operation, for example, a single-click operation, a double-click operation, or a long-press operation.

[0231] It can be understood that if the detection result of the outline logic shows that the outline logic of the third document outline is normal, the third document outline is determined as the second document outline.

[0232] In this embodiment, when it is determined that the third document outline with abnormal outline logic needs to be adjusted, the user can input a confirmation operation based on the first prompt information, and based on the confirmation operation, the third document outline is automatically adjusted to obtain the second document outline while maintaining the editing result of the editing operation. In this way, the user does not need to manually adjust the abnormal outline logic of the third document outline, and the abnormal outline logic of the third document outline is automatically adjusted, thereby reducing the time cost of the user adjusting the document outline and improving the adjustment efficiency of the document outline.

[0233] In some embodiments, according to the editing result of the editing operation, performing a target operation on the first document outline to obtain the second document outline may include:

[0234] Outputting second prompt information according to the editing result of the editing operation;

[0235] According to the confirmation operation acting on the second prompt information, a target operation is performed on the first document outline to obtain a second document outline.

[0236] Here, outputting the second prompt information may be outputting the second prompt information on the first interface to prompt whether the first document outline needs to be adaptively updated.

[0237] Here, the confirmation operation applied to the second prompt information may be a click operation, for example, a single-click operation, a double-click operation, or a long-press operation.

[0238] In this embodiment, when it is determined that the first document outline needs to be adaptively adjusted, the user can input a confirmation operation based on the second prompt information, and based on the confirmation operation, the target operation for adaptively updating the first document outline is performed on the first document outline to obtain the second document outline. In this way, the first document outline is adaptively updated to obtain the second document outline, which reduces the time cost of the user manually editing the outline content one by one and improves the updating efficiency of the document outline.

[0239] In some embodiments, the second document outline includes a plurality of blocks.

[0240] In some examples, the multiple blocks in the second document outline may be divided according to titles, for example, different blocks correspond to different titles.

[0241] In some examples, the multiple blocks in the second document outline may be divided according to data volume. For example, the document pages in the target file corresponding to the multiple blocks have the same data volume, such as the same number of pages, the same number of words, or the same number of titles.

[0242] In the above step 103, generating a target file in the second interface or updating a target file in the second interface according to the second document outline may include:

[0243] The target file is generated in the second interface or the target file is updated in the second interface in units of blocks.

[0244] Here, any block of the document outline may include at least one outline content, for example, a block includes the subject of the document outline, or a block includes one or more titles of the document outline.

[0245] Here, a block of the second document outline may correspond to one or more document pages of the target file. The target file includes a plurality of document pages arranged in a certain order.

[0246] In some embodiments, generating a target file in the second interface or updating a target file in the second interface in units of blocks may include:

[0247] When the update of the nth block of the second document outline is completed, a document page corresponding to the nth block is generated on the second interface, or a document page corresponding to the nth block is updated on the second interface, where n is less than or equal to the total number of blocks.

[0248] In some examples, the updated nth block includes at least a portion of the content in the first document outline that is updated in response to the editing operation; here, a block in the document outline may be updated based on the editing operation, while other blocks may not be updated based on the editing operation.

[0249] In some examples, when the update of the nth block of the second document outline is completed, if the nth block corresponds to multiple document pages in a sequential order, each time a document page corresponding to the nth block is generated, the contents of the document page are displayed one by one in sequence on the second interface.

[0250] In some examples, when the update of the nth block of the second document outline is completed, the document page corresponding to the nth block is displayed on the second interface, and the document page corresponding to the nth block displayed is updated according to the updated nth block. In this example, based on the update of the nth block of the second document outline, only the document page corresponding to the nth block is updated, and all pages of the entire document are not updated.

[0251] For example, the target file is a presentation file, which may include multiple slides. When the update of the nth block of the second document outline is completed, the slide corresponding to the nth block is generated on the second interface, or the slide corresponding to the nth block is updated on the second interface.

[0252] In this embodiment, when the update of the nth block of the second document outline is completed, the document page corresponding to the nth block is generated or the document page corresponding to the nth block is updated in the second interface. In this way, there is no need to complete the update of all blocks of the second document outline before generating and updating the target file in the second interface, which can reduce the user waiting time when generating or updating files and improve the user experience.

[0253] In some embodiments, in the above step 103, updating the target file in the second interface according to the second document outline may include:

[0254] According to the outline changes in the second document outline compared with the first document outline, the document pages corresponding to the outline changes in the target file are updated.

[0255] In some embodiments, when updating a target document page corresponding to outline changes in a second interface, the target file in the second interface is updated using at least a portion of the content in the second document outline as reference information; wherein the outline changes are at least a portion of the content of the first document outline that is updated based on an editing operation.

[0256] Exemplarily, when updating the target document page in the target file corresponding to the outline changes, at least part of the content of the second document outline is input into the AI ​​model as reference information, which can ensure that the output target file can more likely meet the logical consistency of the context in the target file.

[0257] As another example, the document setting parameters corresponding to the target file can be determined; when the target document page in the target file corresponding to the outline change content is updated, at least part of the content and document setting parameters of the second document outline are input into the AI ​​model as reference information, so that the document setting parameters of the updated target document page of the target file can remain consistent with the document setting parameters of the target file.

[0258] Exemplarily, the document setting parameter may be at least one of a page style parameter, a background parameter, a font parameter, and a writing style parameter. For example, when the document setting parameter is a writing style parameter, when updating the target document page corresponding to the outline change content in the target file, at least part of the content of the second document outline and the writing style parameter are input into the AI ​​model as reference information, so that the writing style of the updated document page of the target file can be kept consistent with the writing style of the original document.

[0259] Here, the page style parameter is used to determine the display style of the page, and the display style can be, for example, fresh style, commercial style, Chinese style, etc.

[0260] The background parameters are used to determine the background format of the page. For example, the background format can be solid color fill, picture fill, etc.

[0261] The writing style parameter is used to determine the language style of the text in the document, for example, the language style can be humorous, serious, lively, etc. For example, the content generated under a certain title can refer to the outline before the title and / or the content after the title in the second document outline.

[0262] Taking the presentation file as an example, the first document outline is "Title 1AAA; Title 1.1AAA1; Title 2BBB; Title 3CCC", and the first document outline is changed to "Title 1AAA; Title 1.1AAA1; Title 2BBB; Title 3DDD". When updating the target file, the generated prompt may be: Please write three pages of slides for "Title 3DDD" in the outline of "Title 1AAA; Title 1.1AAA1; Title 2BBB; Title 3DDD", and the page style is "Business Style". Among them, "Title 1AAA; Title 1.1AAA1; Title 2BBB; Title 3DDD" is the second document outline, and "Title 3DDD" is the outline change content. After the AI ​​model generates three pages of slides related to "Title 3DDD" with a page style of "Business Style", the three pages of slides are written to the corresponding position of "Title 3DDD" in the target file.

[0263] In some embodiments, generating a target file on the second interface according to the second document outline may include:

[0264] Get the document setting parameters corresponding to the target file;

[0265] The target file is generated on the second interface according to the second document outline and the document setting parameters corresponding to the target file.

[0266] Exemplarily, obtaining document setting parameters corresponding to the target file may include:

[0267] The document setting parameters of the target file are determined according to the user preference information of the editing account of the second document outline.

[0268] In some examples, the user preference information of the editing account may include document style preference information, which is used to characterize the document style preferred by the user. The document style may include page style and / or writing style.

[0269] In some examples, the method further includes:

[0270] The document style preferred by the user of the editing account is determined, and user preference information of the editing account is obtained according to the document style preferred by the user of the editing account.

[0271] In some examples, determining the document style preferred by the user of the editing account may include one of the following:

[0272] Determining the document style most frequently used by the user of the editing account as the document style preferred by the user;

[0273] Determining a target document style selected by a user of the editing account from among a plurality of document styles as the document style preferred by the user;

[0274] In response to detecting an import operation of a reference page, the document style of the reference page is determined as the document style preferred by the user.

[0275] In some examples, the document style preference information may be obtained based on the style of historical documents edited by the user; or based on the style of historical documents edited by users similar to the user of the editing account. The similar users of the user of the editing account may include users who are in the same age group and / or have the same occupation as the user of the editing account.

[0276] In this embodiment, the document style of the target file can be understood as a representative visual effect presented by the entire target file or a specific page in the target file.

[0277] For example, the document style may be related to at least one of the use of color, use of lines, and layout of a single page or all pages of the target document.

[0278] For example, the use of colors includes: the background color of the document page, the color of the font, the tone of the inserted picture; the color combination used on each document page, etc.

[0279] For example, the use of lines includes: the types of most lines, the thickness of lines, the color of lines, the roundness of fonts, etc.

[0280] For example, typography includes, but is not limited to: the spacing and stacking between two content objects on a document page;

[0281] In some examples, generating the target file according to the second document outline and the document style of the target file may include:

[0282] The document content of the target file is generated according to the second document outline, and a plurality of document pages of the target file are generated in the second interface according to the document content of the target file and the document style of the target file.

[0283] In this embodiment, since the document style of the target file is determined based on the user preference information of the editing account of the second document outline, the target file generated according to the second document outline and the document style of the target file can better meet the user preferences. Since the user's personal preferences are taken into consideration, the target file can better meet the user's personalized needs.

[0284] In some embodiments, the process of generating the target file may include:

[0285] According to the position sequence of the data stream in the target file, the content data written into the target file are sequentially displayed on the second interface.

[0286] Here, the data stream includes a plurality of content data in a positional order, and the plurality of content data is generated according to the second document outline. The plurality of content data may include document content corresponding to the outline content of the second document outline and document content obtained by expanding the document content.

[0287] In some examples, each content data in the data stream can be sorted according to the position order of each content data in the target file to determine the order of appearance of each content data, and each content data can be written into the target file one by one in the order of appearance of each content data in the second interface.

[0288] In this embodiment, by sequentially displaying the content data written into the target file in the second interface according to the position order of the data stream in the target file, the document contents can be displayed one by one in a streaming manner in the second interface, thereby improving the display effect of the second interface and improving the friendliness of interaction with users.

[0289] In some embodiments, the method may further include:

[0290] In response to the fifth content written into the target file being animation content, the animation effect of the fifth content is previewed in the floating window while the content data is sequentially written.

[0291] Exemplarily, the fifth content may include at least one of text animation, picture animation, chart animation, and shape animation.

[0292] Animation effects include, but are not limited to, scaling, rotating, flying in or fading out of text, images, charts and / or shapes.

[0293] Exemplarily, the animation effect of the fifth content may be to write the fifth content to the current display page of the target file in a predetermined moving manner, and the predetermined moving manner may be linear movement, jumping movement, or rotation movement.

[0294] As another example, the animation effect of the fifth content may be to dynamically change the display mode of the content data when the fifth content is written to the current display page of the target file, such as dynamically changing the display size, display color, and / or display brightness of the content data.

[0295] If a page of the target file has multiple animation contents, while the content data of the second interface displayed on the page is written in the form of animation, the animation effects of the multiple animation contents are previewed in the floating window in the order in which the multiple animation contents are displayed. For example, the first animation content of a page of the target file is a text animation, and the second animation content is a picture animation.

[0296] In this embodiment, the fifth content written to the target file is animation content. While maintaining the content data writing of the second interface displayed in the form of animation, the animation effect of the fifth content is previewed in the floating window, which can further improve the animation display effect and improve the friendliness of interaction with users.

[0297] Figure 7 A schematic diagram of the structure of a document processing device provided by an embodiment of the present disclosure is shown. Figure 7 As shown, the document processing device 100 includes:

[0298] Display module 110, used to display the first document outline in the first interface;

[0299] A first processing module 120, configured to update at least a portion of the first document outline to obtain a second document outline in response to an editing operation on the first document outline;

[0300] The second processing module 130 is used to generate a target file in the second interface or update the target file in the second interface according to the second document outline.

[0301] In some embodiments, the first processing module 120 is used to:

[0302] Determining, according to the type of the editing operation, a target operation for adaptively updating the first document outline;

[0303] According to the editing result of the editing operation, the target operation is performed on the first document outline to obtain the second document outline.

[0304] In some embodiments, the target operation includes at least one of the following:

[0305] A first operation is used to delete or modify the associated content of the first content; the first content is the content removed from the first document outline based on the editing operation;

[0306] A second operation is used to delete or modify duplicate content of a second content; the second content is content written into the first document outline based on the editing operation;

[0307] The third operation is used to detect outline logic and update outlines with logic problems.

[0308] In some embodiments, the editing operation is a modification operation on the first content, and the target operation includes the first operation, the second operation and / or the third operation;

[0309] or,

[0310] The editing operation is a deletion operation for the first content, and the target operation includes the first operation and / or the third operation;

[0311] or,

[0312] The editing operation is an adding operation for the first content, and the target operation includes the second operation and / or the third operation.

[0313] In some embodiments, the first processing module 120 is used to:

[0314] In response to the editing operation being a modification operation of modifying the first content in the first document outline into the second content, determining whether there is a third content associated with the first content according to the context of the first content;

[0315] In response to the existence of the third content, according to the association between the third content and the second content, the third content is deleted or the third content is modified according to the second content to obtain the second document outline.

[0316] In some embodiments, the first processing module 120 is used to:

[0317] Determine whether the first document outline has fourth content that meets a similar condition to the second content; the second content is content written into the first document outline based on a modification operation or an addition operation;

[0318] In response to the existence of the fourth content, the fourth content is deleted or modified according to the similarity between the fourth content and the second content to obtain the second document outline.

[0319] In some embodiments, the first processing module 120 is used to:

[0320] In response to the similarity between the fourth content and the second content being greater than or equal to a first threshold, deleting the fourth content;

[0321] In response to the similarity between the fourth content and the second content being less than a first threshold, part of the fourth content that completely overlaps with the second content is deleted, or the fourth content is modified to be distinguished from the second content.

[0322] In some embodiments, the first processing module 120 is used to:

[0323] In response to the editing operation being a deletion operation of deleting the first content, determining whether the first document outline has any content associated with the first content according to the context of the first content;

[0324] In response to the existence of associated content of the first content, the associated content is deleted to obtain the second document outline.

[0325] In some embodiments, the associated content of the first content includes one of the following:

[0326] details of the first content;

[0327] The continuation of the first content.

[0328] In some embodiments, the first processing module 120 is used to:

[0329] In response to an editing operation on the first document outline, updating the first document outline to obtain a third document outline according to an editing result of the editing operation;

[0330] Performing outline logic detection on the third document outline;

[0331] In response to the detection result of the outline logic indicating that the outline logic of the third document outline is abnormal, the third document outline is adjusted to obtain the second document outline while maintaining the editing result of the editing operation.

[0332] In some embodiments, the first processing module 120 is used to:

[0333] In response to the first content removed and / or the second content introduced in the first document outline causing a logic jump in the third document outline or destroying the writing logic of the third document outline, it is determined that the outline logic of the third document outline is abnormal.

[0334] In some embodiments, the first processing module 120 is used to:

[0335] In response to the detection result indicating that the outline logic of the third document outline is abnormal, outputting first prompt information;

[0336] According to a confirmation operation performed on the first prompt information, the third document outline is adjusted to obtain the second document outline while maintaining an editing result of the editing operation.

[0337] In some embodiments, the first processing module 120 is used to:

[0338] Outputting second prompt information according to the editing result of the editing operation;

[0339] According to a confirmation operation performed on the second prompt information, the target operation is performed on the first document outline to obtain the second document outline.

[0340] In some embodiments, the second document outline includes a plurality of blocks; the second processing module 130 is used to:

[0341] The target file is generated in the second interface or the target file is updated in the second interface in units of the blocks.

[0342] In some embodiments, the second processing module 130 is used to:

[0343] When the update of the nth block of the second document outline is completed, a document page corresponding to the nth block is generated on the second interface, or a document page corresponding to the nth block is updated on the second interface, wherein n is less than or equal to the total number of blocks.

[0344] In some embodiments, the second processing module 130 is used to:

[0345] Determining the document style of the target file according to the user preference information of the editing account of the second document outline;

[0346] The target file is generated according to the second document outline and the document style of the target file.

[0347] In some embodiments, the second processing module 130 is used to:

[0348] The content data written into the target file are sequentially displayed on the second interface according to the position sequence of the data stream in the target file.

[0349] In some embodiments, the second processing module 130 is further configured to:

[0350] In response to the fifth content written into the target file being animation content, the animation effect of the fifth content is previewed in a floating window while the content data written into the target file is sequentially displayed on the document interface.

[0351] In some embodiments, the second processing module 130 is used to:

[0352] According to the outline changes in the second document outline compared with the first document outline, the document page in the target file corresponding to the outline changes is updated.

[0353] Regarding the document processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the document processing method, and will not be elaborated here.

[0354] An embodiment of the present disclosure further provides an electronic device, including:

[0355] processor;

[0356] a memory for storing processor-executable instructions;

[0357] The processor is configured to implement the document processing method of any embodiment of the present disclosure when running the executable instructions.

[0358] The electronic device can at least be a server and / or a terminal. One or more servers can constitute the server.

[0359] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the communication device loses power.

[0360] The processor may be connected to the memory via a bus or the like, and may be used to read an executable program stored in the memory, for example, to implement the document processing method of any embodiment of the present disclosure.

[0361] like Figure 8 FIG. 8 is a structure of an electronic device 80 according to an exemplary embodiment. For example, the electronic device 80 may be provided as a terminal device or a server. Figure 8 The electronic device 80 includes a processing component 81, which further includes one or more processors, and a memory resource represented by a memory 82 for storing instructions executable by the processing component 81, such as an application. The application stored in the memory 82 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 81 is configured to execute instructions to perform the document processing method described in any of the aforementioned embodiments.

[0362] The electronic device 80 may further include a power supply component 83 configured to perform power management of the electronic device 80, a wired or wireless network interface 84 configured to connect the electronic device 80 to a network, and an input / output (I / O) interface 85. The electronic device 80 may operate based on an operating system stored in the memory 82, such as Windows Server TM, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0363] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0364] In an exemplary embodiment, an embodiment of the present disclosure provides a computer-readable storage medium, which stores an executable program, wherein the executable program, when executed by a processor, implements the document processing method provided by any of the aforementioned technical solutions.

[0365] The computer-readable storage medium may specifically be: a non-temporary computer-readable storage medium.

[0366] Exemplarily, such as a memory 82 including an executable program, the above instructions can be executed by the processing component 81 of the electronic device 80 to complete the above method.

[0367] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0368] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.

[0369] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.

Claims

1. A document processing method, characterized in that: The method comprises: Displaying the first document outline in the first interface; In response to an editing operation on the first document outline, updating at least a portion of the first document outline to obtain a second document outline; According to the second document outline, a target file is generated in the second interface or a target file in the second interface is updated.

2. The method according to claim 1, characterized in that: In response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes: Determining, according to the type of the editing operation, a target operation for adaptively updating the first document outline; According to the editing result of the editing operation, the target operation is performed on the first document outline to obtain the second document outline.

3. The method according to claim 2, characterized in that The target operation includes at least one of the following: A first operation is used to delete or modify the associated content of the first content; the first content is the content removed from the first document outline based on the editing operation; A second operation is used to delete or modify duplicate content of the second content; The second content is content written into the first document outline based on the editing operation; The third operation is used to detect outline logic and update outlines with logic problems.

4. The method according to claim 3, characterized in that: The editing operation is a modification operation on the first content, and the target operation includes the first operation, the second operation and / or the third operation; or, The editing operation is a deletion operation for the first content, and the target operation includes the first operation and / or the third operation; or, The editing operation is an adding operation for the second content, and the target operation includes the second operation and / or the third operation.

5. The method according to any one of claims 1 to 4, characterized in that: In response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes: In response to the editing operation being a modification operation of modifying the first content in the first document outline into the second content, determining whether there is a third content associated with the first content according to the context of the first content; In response to the existence of the third content, according to the association between the third content and the second content, the third content is deleted or the third content is modified according to the second content to obtain the second document outline.

6. The method according to any one of claims 1 to 4, characterized in that: In response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes: Determine whether the first document outline has fourth content that meets a similar condition to the second content; the second content is content written into the first document outline based on a modification operation or an addition operation; In response to the existence of the fourth content, the fourth content is deleted or modified according to the similarity between the fourth content and the second content to obtain the second document outline.

7. The method according to claim 6, characterized in that In response to the existence of the fourth content, deleting the fourth content or modifying the fourth content according to the similarity between the fourth content and the second content, comprises: In response to the similarity between the fourth content and the second content being greater than or equal to a first threshold, deleting the fourth content; In response to the similarity between the fourth content and the second content being less than a first threshold, part of the fourth content that completely overlaps with the second content is deleted, or the fourth content is modified to be distinguished from the second content.

8. The method according to any one of claims 1 to 4, characterized in that: In response to the editing operation on the first document outline, updating at least part of the content of the first document outline to obtain a second document outline includes: In response to the editing operation being a deletion operation of deleting the first content, determining whether the first document outline has any content associated with the first content according to the context of the first content; In response to the existence of associated content of the first content, the associated content is deleted to obtain the second document outline.

9. The method according to claim 8, characterized in that The associated content of the first content includes one of the following: details of the first content; The continuation of the first content.

10. The method according to any one of claims 2 to 4, characterized in that: The step of performing the target operation on the first document outline to obtain the second document outline according to the editing result of the editing operation includes: In response to an editing operation on the first document outline, updating the first document outline to obtain a third document outline according to an editing result of the editing operation; Performing outline logic detection on the third document outline; In response to the detection result of the outline logic indicating that the outline logic of the third document outline is abnormal, the third document outline is adjusted to obtain the second document outline.

11. The method according to claim 10, characterized in that The detecting of executing outline logic on the third document outline includes: In response to the first content removed and / or the second content introduced in the first document outline causing a logic jump in the third document outline or destroying the writing logic of the third document outline, it is determined that the outline logic of the third document outline is abnormal.

12. The method according to any one of claims 1 to 4, characterized in that: The second document outline includes a plurality of blocks; generating a target file in a document interface or updating a target file in the document interface according to the second document outline includes: The target file is generated in the document interface or the target file is updated in the document interface in units of the blocks.

13. The method according to claim 12, characterized in that The generating the target file in the document interface or updating the target file in the document interface in units of the blocks includes: When the update of the nth block of the second document outline is completed, a document page corresponding to the nth block is generated on the document interface, or a document page corresponding to the nth block is updated on the document interface, wherein n is less than or equal to the total number of blocks.

14. The method according to claim 1, characterized in that Generating a target file on a document interface according to the second document outline includes: Determining the document style of the target file according to the user preference information of the editing account of the second document outline; The target file is generated according to the second document outline and the document style of the target file.

15. The method according to claim 1 or 14, characterized in that The generation of the target file includes: According to the position sequence of the data stream in the target file, the content data written into the target file are sequentially displayed in the document interface.

16. The method according to any one of claims 1 to 4, characterized in that: The updating of the target file in the second interface according to the second document outline includes: According to the outline changes in the second document outline compared with the first document outline, the document page in the target file corresponding to the outline changes is updated.

17. A document processing device, characterized in that: The device comprises: A display module, used for displaying the first document outline in the first interface; A first processing module, configured to update at least a portion of the first document outline to obtain a second document outline in response to an editing operation on the first document outline; The second processing module is used to generate a target file in the second interface or update the target file in the second interface according to the second document outline.

18. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the document processing method described in any one of claims 1 to 16 when running the executable instructions.

19. A computer-readable storage medium, characterized in that: The readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the document processing method according to any one of claims 1 to 16.

Citation Information

Cited By

  • Document generation method, electronic equipment, storage medium and program product

    CN120046579A

  • Customized text generation method and device, computer equipment and storage medium

    CN121706740A