Document processing method and device, electronic equipment, computer readable storage medium and computer program product

By generating a collection of edit records and dividing them using time windows, batches, or content units, combined with virtual containers and tags, the problem of low efficiency in viewing document edit records is solved, and fast and convenient display of edited content is achieved.

CN122174801APending Publication Date: 2026-06-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-12-06
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing technologies, viewing document editing records is inefficient, especially when there are too many editing records, resulting in slow searching or cumbersome and time-consuming recording.

Method used

By generating a collection of edit records, which can be divided according to time windows, batches, or content units, and organized through virtual containers and tags, a clear and intuitive viewing method is provided, and relevant content is displayed in response to triggered operations.

Benefits of technology

It improves the efficiency of viewing edited content in documents, reduces search time, and enhances the convenience and intuitiveness of editing records.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122174801A_ABST
    Figure CN122174801A_ABST
Patent Text Reader

Abstract

This application provides a document processing method, apparatus, electronic device, computer-readable storage medium, and computer program product. The method includes: displaying a document and displaying at least one set of editing records of the document, wherein each set of editing records includes at least one editing record of the document; and displaying first content in the document in response to a triggering operation on a first set of editing records, wherein the first set of editing records is any set of editing records, the first content is content in the document corresponding to at least one first editing record, and the first editing record is the editing record included in the first set of editing records. This application improves the efficiency of viewing edited content in a document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to computer technology, and more particularly to a document processing method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] When a user performs editing operations such as adding, deleting, or modifying content in a document, the document editing program displays the editing records for those operations. However, to view the content corresponding to a specific editing record, it is necessary to query each editing record individually, resulting in low efficiency in viewing the editing records. Summary of the Invention

[0003] This application provides a document processing method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can improve the viewing efficiency of edited content in a document.

[0004] The technical solution of this application embodiment is implemented as follows:

[0005] This application provides a document processing method, the method comprising:

[0006] Display a document and display at least one set of edit records of the document, wherein each set of edit records includes at least one edit record of the document;

[0007] In response to a trigger operation on a first set of edit records, first content in the document is displayed, wherein the first set of edit records is any set of edit records, the first content is content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

[0008] In the above scheme, before displaying at least one set of edit records of the document, the method further includes:

[0009] In response to at least one edit operation on the document, at least one set of edit records is generated, wherein each set of edit records includes at least one edit record corresponding to the edit operation.

[0010] In the above scheme, generating at least one set of edited records includes:

[0011] Editing records of editing operations performed on the document within a time window are combined into an editing record set, wherein different editing record sets correspond to different time windows;

[0012] The editing records of a batch of editing operations on the document are combined into an editing record set, wherein different editing record sets correspond to different batches;

[0013] The editing records of editing operations performed on a content unit in the document are combined into an editing record set, wherein different editing record sets correspond to different content units.

[0014] This application provides a document processing apparatus, the apparatus comprising:

[0015] A collection display module is used to display a document and at least one set of edit records of the document, wherein each set of edit records includes at least one edit record of the document;

[0016] A content display module is configured to display first content in the document in response to a trigger operation on a first set of edit records, wherein the first set of edit records is any set of edit records, the first content is content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

[0017] This application provides an electronic device, the electronic device comprising:

[0018] Memory is used to store executable instructions or computer programs.

[0019] The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the document processing method provided in the embodiments of this application.

[0020] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the document processing method provided in this application when executed by a processor.

[0021] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the document processing method provided in this application.

[0022] The embodiments of this application have the following beneficial effects:

[0023] Displaying a collection of edit records within a document, containing at least one edit record, allows for a clear and intuitive view of all edit records. This reduces search time and improves document processing efficiency compared to searching through each edit record individually. Responding to a trigger action on the edit record collection, it displays the first content corresponding to that edit record, quickly showing the content corresponding to all edit records in the collection. This further enhances the convenience of viewing edited content within the document compared to viewing each edit record individually. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of the architecture of the document processing system 100 provided in the embodiments of this application;

[0025] Figure 2 This is a schematic diagram of the structure of terminal 400-1 or terminal 400-2 provided in the embodiments of this application;

[0026] Figure 3A This is a first flowchart illustrating the document processing method provided in the embodiments of this application;

[0027] Figure 3B This is a second flowchart illustrating the document processing method provided in the embodiments of this application;

[0028] Figure 3C This is a schematic diagram of the third process of the document processing method provided in the embodiments of this application;

[0029] Figure 3D This is a schematic diagram of the fourth process of the document processing method provided in the embodiments of this application;

[0030] Figure 3E This is a fifth flowchart illustrating the document processing method provided in the embodiments of this application;

[0031] Figure 3F This is a schematic diagram of the sixth process of the document processing method provided in the embodiments of this application;

[0032] Figure 3G This is a schematic diagram of the seventh process of the document processing method provided in the embodiments of this application;

[0033] Figure 4A These are schematic diagrams illustrating various first display methods provided in the embodiments of this application;

[0034] Figure 4B This is a first schematic diagram illustrating the display method of determining the edit record set based on tags according to an embodiment of this application;

[0035] Figure 4CThese are schematic diagrams illustrating various second display methods provided in the embodiments of this application;

[0036] Figure 4D This is a second schematic diagram illustrating the display method of determining the edit record set based on tags, as provided in an embodiment of this application;

[0037] Figure 4E This is a first schematic diagram illustrating the display method of multiple virtual containers provided in the embodiments of this application;

[0038] Figure 4F This is a second schematic diagram illustrating the display method of multiple virtual containers provided in the embodiments of this application;

[0039] Figure 4G This is a schematic diagram illustrating the display of a preset number of edit records provided in an embodiment of this application;

[0040] Figure 4H This is a schematic diagram of the third area displaying the editing record provided in the embodiments of this application;

[0041] Figure 4I This is a first schematic diagram provided in an embodiment of the present application, showing the content corresponding to the currently displayed editing record in the first area;

[0042] Figure 4J This is a second schematic diagram provided in an embodiment of the present application, showing the content corresponding to the currently displayed editing record in the first area;

[0043] Figure 4K This is a third schematic diagram provided in an embodiment of this application, showing the content corresponding to the currently displayed editing record in the first area;

[0044] Figure 4L These are schematic diagrams illustrating different display modes provided in the embodiments of this application;

[0045] Figure 4M This is a schematic diagram showing the first content as provided in an embodiment of this application;

[0046] Figure 4N This is a first schematic diagram showing the first content provided in an embodiment of this application;

[0047] Figure 4O This is a second schematic diagram showing the first content provided in an embodiment of this application;

[0048] Figure 4P This is a schematic diagram of switching the first edit record provided in an embodiment of this application;

[0049] Figure 4Q This is a first schematic diagram of the first content in the display document provided in the embodiments of this application;

[0050] Figure 4R This is a second schematic diagram showing the first content in the display document provided in the embodiments of this application;

[0051] Figure 4S This is a third schematic diagram showing the first content in the display document provided in the embodiments of this application;

[0052] Figure 5 This is a schematic diagram of a document processing method for related technologies provided in the embodiments of this application;

[0053] Figure 6 This is a schematic diagram of the document processing interface provided in an embodiment of this application;

[0054] Figure 7A This is a first multi-terminal interaction diagram of the document processing method provided in the embodiments of this application;

[0055] Figure 7B This is a second multi-terminal interaction diagram of the document processing method provided in the embodiments of this application;

[0056] Figure 8 This is a schematic diagram illustrating document content storage using a hash table, as provided in an embodiment of this application.

[0057] Figure 9 This is a schematic diagram comparing hash tables provided in an embodiment of this application;

[0058] Figure 10 This is a schematic diagram of paragraph grouping provided in an embodiment of this application;

[0059] Figure 11 This is a schematic diagram of paragraph comparison provided in an embodiment of this application.

[0060] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0062] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0063] In the following description, the terms "first / second / third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0064] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0065] Unless otherwise specified, "at least one" as used below refers to one or more cases, and "multiple" can refer to two or more cases.

[0066] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.

[0067] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0068] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0069] 1) Responding to: used to indicate the conditions or states on which the operation is performed depends. When the conditions or states on which it depends are met, one or more operations can be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0070] 2) Human-computer interaction interface, which is used to provide human-computer interaction functions / display document information.

[0071] For example, graphical user interfaces (GUIs) include augmented reality (AR) interfaces, virtual reality (VR) interfaces, voice user interfaces (VUIs), interactive projection interfaces (using projection technology to display information on a flat surface), eye-tracking interfaces (interfaces controlled by detecting the user's gaze), holographic interfaces (three-dimensional holograms formed by projecting images using holographic projection technology, allowing users to see stereoscopic images without wearing special glasses), multimodal interfaces (interfaces that combine multiple interaction methods, such as tactile, visual, and auditory interaction), and brain-machine interfaces (BMIs).

[0072] 3) Electronic Document: A document is a document that relies on a computer system for access and editing, and has a certain editable format. Examples include text documents represented by Word or TXT word processor applications, spreadsheet documents represented by Excel, presentation documents represented by PowerPoint presentations, and portable document formats (PDF).

[0073] 4) Editing record: A data structure that records the specific atomic operations performed by a user during document editing. An editing record includes at least one of the following: operation type (e.g., insertion, deletion, attribute modification), operation location, character or attribute information involved in the operation, and timestamp of the operation. In response to an editing operation on a document, the terminal sends the editing record corresponding to the editing operation to the server, so that the server assigns an incrementing version number to the editing record according to the editing time, facilitating the detection and management of the document's change history.

[0074] 5) Edit Record Sets: A set of at least one edit record divided according to preset interval rules. Each edit record set reflects all editing operations performed on the document within each interval. An edit record set includes both edit records and edited content. Edited content refers to the content created after applying the edit records to the original document content. Each document includes at least one edit record set, and each edit record set is assigned a unique version number. This version number increments from 1 in the order of the edit record set's creation time and is independent of the edit record's own version number. Users can view the edit record sets to restore or view the document content and modifications made at any interval.

[0075] 6) First content, in response to a triggering operation on a first set of edit records, is a portion of the currently displayed document content that corresponds to at least one edit record in the first set of edit records. First content refers to a specific portion of the document affected or changed by a first edit record in the first set of edit records, or the content of the original document corresponding to the first edit record. These changes may include inserted, deleted, or modified text and / or attributes.

[0076] 7) Virtual containers are data structures or UI elements used to organize and manage edit records when displaying a collection of edit records. Virtual containers group edit records according to specific rules or characteristics to help users more clearly understand the document's editing history and changes. Virtual containers can have various display formats, such as cards or bottles.

[0077] 8) A content unit is a logically continuous and self-contained part defined in a document. It can be a portion of text, an image, a table, a chart, or any other independently identifiable and manipulable data element. Content units are typically divided according to the document's structure and content and can be a single paragraph, chapter, heading, list item, or any other document component with clear boundaries and meaning. Different sets of edit records correspond to different content units.

[0078] 9) Review mode refers to a specific editing environment provided in word processing software (such as Microsoft Word). It allows users to review documents, offer suggestions for revisions and comments, and record these changes without directly altering the original content of the document. In review mode, every editing operation by the user (such as adding or deleting text or changing formatting) is recorded and distinguished by different markers (such as strikethrough, underline, or color highlighting) to differentiate between different editing types and editors.

[0079] The following are the key features of the document review mode:

[0080] Record changes: Any modifications to the document will be recorded and highlighted, so that the original author or other reviewers can clearly see every change.

[0081] Adding annotations: Users can add annotations and comments without directly changing the document content.

[0082] Revision history: Review mode typically saves a revision history, allowing users to view the document's previous state and all changes made.

[0083] Access control: In some software, the review mode also allows setting different permissions, restricting users to only making comments or suggestions for change, but not directly modifying the document content.

[0084] Accept or reject changes: The document owner or a user with appropriate permissions can choose to accept or reject changes proposed by the reviewer.

[0085] Document processing methods in related technologies typically display all editing records of a document. However, when there are too many editing records, the records become messy and disordered, leading to low search efficiency. Alternatively, these technologies may only record the editing time and the edited object in the editing record set, making the process of viewing the editing records cumbersome and time-consuming.

[0086] Based on the above analysis, the applicant found that the document processing methods of related technologies cannot clearly display the editing history of the document, resulting in low viewing efficiency of the editing history. In order to address the above problems, this application provides a document processing method that can improve the viewing efficiency of the edited content in the document.

[0087] The following describes exemplary applications of the electronic devices provided in the embodiments of this application. These electronic devices can be implemented as various types of terminals such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smartwatches, smart TVs, and in-vehicle terminals, or as servers. The following will describe exemplary applications when the electronic device is implemented as a terminal.

[0088] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of the document processing system 100 provided in the embodiments of this application. In order to support the processing application of a document, the terminal (terminal 400-1 and terminal 400-2 are shown as examples) connects to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0089] Terminal 400-1 or terminal 400-2 is used to display a document on a human-computer interaction interface (human-computer interaction interfaces 410-1 and 410-2 are shown exemplarily), and to display at least one set of editing records of the document, wherein each set of editing records includes at least one editing record of the document; in response to a trigger operation on a first set of editing records, displaying first content in the document, wherein the first set of editing records is any set of editing records, the first content is the content in the document corresponding to at least one first editing record, and the first editing record is the editing record included in the first set of editing records.

[0090] Terminal 400-1 or terminal 400-2 is used to display a document on a human-computer interaction interface (human-computer interaction interfaces 410-1 and 410-2 are shown as examples), and to display at least one set of editing records of the document. In response to a trigger operation for the first set of editing records, it retrieves the first content of the document from the server 200 and sends it to terminal 400-1 or terminal 400-2 to display the first content on human-computer interaction interfaces 410-1 and 410-2.

[0091] Taking an online document scenario as an example, terminals 400-1 and 400-2 are used to display a document and at least one set of editing records of the document on a human-computer interaction interface (human-computer interaction interface 410-1 and human-computer interaction interface 410-2 are shown as examples). The same document and set of editing records can be displayed on the human-computer interaction interface 410-1 of terminal 400-1 and the human-computer interaction interface 410-2 of terminal 410-2. The first content generated by either terminal is synchronized to the other terminal via the server 200 through the network 300.

[0092] In some embodiments, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Terminals and servers can be connected directly or indirectly via wired or wireless communication, which is not limited in this embodiment.

[0093] See Figure 2 , Figure 2 This is a structural schematic diagram of terminal 400-1 or 400-2 provided in the embodiments of this application. Figure 2 The terminal 400-1 or 400-2 shown includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in terminal 400-1 or 400-2 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 440.

[0094] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0095] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0096] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0097] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0098] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0099] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;

[0100] The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.

[0101] Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with user interface 430;

[0102] The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.

[0103] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 A document processing apparatus 455 stored in memory 450 is shown. This apparatus can be software in the form of programs and plug-ins, and includes the following software modules: a collection display module 4551 and a content display module 4552. These modules are logically integrated and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.

[0104] In some embodiments, the terminal or server can implement the document processing method provided in this application by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as online document APPs or instant messaging APPs; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.

[0105] The document processing method provided in this application will be described in conjunction with exemplary applications and implementations of the terminals provided in the embodiments of this application.

[0106] See Figure 3A , Figure 3A This is a first flowchart illustrating the document processing method provided in this application embodiment, with the terminal as the main component, and combining... Figure 3A The steps shown are explained.

[0107] In step 101, a document processing interface is displayed, and at least one set of editing records of the document is displayed, wherein each set of editing records includes at least one editing record of the document.

[0108] In some embodiments, the document processing interface is used to display at least a portion of the document's content. The interface may display the original content of the document, or new content applied to a first edit record in a first edit record set, and at least one edit record set of the document. Each edit record set may include one or more edit records of the document, which may be consecutive or non-consecutive. Each edit record set includes at least one edit record and edited content, which is the content formed after applying at least one edit record to the original content of the document.

[0109] For example, the document type can be any of the following: Word, PPT, PDF, Excel, or TXT, etc. In read-only mode, the document processing interface is only used to browse at least one set of edit records and the content corresponding to that set. In edit mode, the document processing interface can be used to browse at least one set of edit records while editing the currently displayed content of the document. The edited content of the edit records included in the set can be the content corresponding to the original content of the document before the edit record was applied, or the content corresponding to the edit record in the new content after the edit record has been applied.

[0110] In some embodiments, each set of edit records includes any one of the following edit records:

[0111] The first type is a record of editing operations performed on a document within a time window, where different sets of editing records correspond to different time windows.

[0112] In some embodiments, a time window can be a fixed period of time. When the document is an online document, each set of edit records can include edit records of edits performed on the document by any one account within a time window, edit records of edits performed on the document by all accounts within a time window, or edit records of edits performed on the document by a specific account within a time window.

[0113] For example, the time window can be an hour, a quarter of an hour, or a day, etc., and there is no limitation here.

[0114] The second type: edit records of a batch of editing operations on a document, where different sets of edit records correspond to different batches.

[0115] In some embodiments, a batch can be a fixed number of edit records, sorted by edit time, and different batches can be divided according to the order of the edit times of the edit records. When the document is an online document, each set of edit records can include edit records of edit operations performed on the document by any one account within a batch, edit records of edit operations performed on the document by all accounts within a batch, or edit records of edit operations performed on the document by a specific account within a batch.

[0116] For example, if there are multiple edit records, they are ordered by editing time as edit record A, edit record B, edit record C and edit record D. If each batch includes two edit records, then edit record set 1 includes edit record A and edit record B, and edit record set 2 includes edit record C and edit record D.

[0117] The third type: edit records of editing operations performed on a content unit in a document, where different sets of edit records correspond to different content units.

[0118] For example, a content unit can be a segment of the document's content, a preset number of consecutive segments, half a page, or a full page.

[0119] This application embodiment divides the edit record set by time window, batch, or content unit, providing multiple ways to divide the edit record set, so as to quickly locate the required edit record according to time, quantity, or location, thereby improving the query efficiency of edit record.

[0120] In some embodiments, a version number is displayed in each edit record set, wherein, when an edit record set corresponds to a time window, the version number represents the count of the time window; when an edit record set corresponds to a batch, the version number represents the count of the batch; and when an edit record set corresponds to a content unit, the version number represents the count of the content unit.

[0121] For example, if the time difference between the editing time of the first edit record and the editing time of the latest edit record is 24 hours, and if a time window is 6 hours, then there are 4 time windows. If the set of edit records corresponds to the second time window, then the version number of the set of edit records is 2. If there are 30 edit records from the first edit record to the latest edit record, and these 30 edit records are divided into batches of 3 edit records each, then the batch from the 4th to the 6th edit records is the 2nd batch, and the version number of the set of edit records including the 4th to the 6th edit records is 2. If the document contains 6 paragraphs, and each pair of paragraphs forms a content unit, then the 3rd and 4th paragraphs correspond to the second content unit, and the version number of the set of edit records including the 3rd and 4th paragraphs is 2.

[0122] In some embodiments, step 101, "displaying at least one set of editing records of the document," can be achieved by displaying at least one set of editing records using any of the following first display methods:

[0123] First display method 1: Display at least one set of editing records of the first account, wherein the at least one set of editing records of the first account includes editing records of the first account's editing operations on the document.

[0124] In some embodiments, a document is displayed on the document processing interface, and the first account is the account used to log in to the document processing interface.

[0125] For example, see Figure 4A , Figure 4A This is a schematic diagram illustrating various first display methods provided in the embodiments of this application. Figure 4A The left-hand diagram shows at least one set of editing records for the first account 310. The set of at least one set of editing records for the first account 310 includes editing records of the first account 310's editing operations on the document. For example, the set of editing records 315 includes the version number ("Version 55"), editing time, editing account (first account 310 "sherlock"), editing record 338, and editing content "......xxXX!". The editing content "......xxXX!" is the content formed after applying editing record 338 to the original content of the document.

[0126] First display method 2: Display at least one set of editing records for at least one second account, wherein the at least one set of editing records for at least one second account includes editing records of editing operations performed by at least one second account on a document.

[0127] In some embodiments, the second account may be a designated account, an account that is a friend of the first account, or an account that is in the same group as the first account.

[0128] For example, see Figure 4A The intermediate diagram shows at least one set of editing records for the second account 311, wherein the at least one set of editing records for the second account 311 includes editing records of editing operations performed by the second account 311 on the document.

[0129] First display method 3: Display at least one set of editing records from multiple accounts, wherein the multiple accounts are accounts that collaboratively edit the document, and the at least one set of editing records from multiple accounts includes editing records of editing operations performed on the document by the multiple accounts.

[0130] In some embodiments, multiple accounts may be some of the accounts used for collaborative editing of a document, or all of the accounts used for collaborative editing of a document.

[0131] For example, see Figure 4A The right-hand diagram shows multiple accounts, including account 310, account 311, and account 312, wherein at least one set of editing records for the multiple accounts includes editing records of editing operations performed by the multiple accounts on the document.

[0132] In some embodiments, the document includes multiple first account type tags, and each first account type tag corresponds to a first display mode. The above-mentioned "displaying at least one set of edited records using any of the following first display modes" can be achieved by performing the following process: in response to a trigger operation on a first tag, displaying at least one set of edited records based on a first target display mode, wherein the first tag is any one of the multiple first account type tags, and the first target display mode is the first display mode corresponding to the first tag.

[0133] Here, in response to a trigger operation targeting a third tag, the display of at least one set of edited records based on a first target display method is updated to display at least one set of edited records based on a third target display method, wherein the third tag is any one of a plurality of first account type tags, and the third target display method is the first display method corresponding to the third tag.

[0134] For example, see Figure 4B , Figure 4BThis is a first schematic diagram illustrating the display method of determining the edit record set based on tags according to an embodiment of this application. In response to a trigger operation on the first tag 313, at least one edit record set is displayed based on a first target display method, for example, at least one edit record set of the first account 310 is displayed. Here, the first tag 313 is any one of a plurality of first account type tags, and the first target display method is the first display method corresponding to the first tag 313. In response to a trigger operation on the third tag 314, in Figure 4B In the right-hand diagram, the display of at least one set of edited records based on the first target display method is updated to display at least one set of edited records based on the third target display method. For example, at least one set of edited records for account 310, account 311 and account 312 is displayed. The third label 314 is any one of a plurality of first account type labels, and the third target display method is the first display method corresponding to the third label 314.

[0135] This application embodiment can determine the account to which the currently displayed set of edit records belongs by using different tags, so as to quickly switch between different sets of edit records for different accounts, thereby improving the viewing efficiency of edit record sets for specific accounts and meeting the preferences and needs of different users.

[0136] In some embodiments, the document is displayed in a document processing interface logged into a first account. Step 101, "Display at least one set of editing records of the document," can be implemented for each set of editing records by performing the following processing: displaying the editing records included in the set of editing records based on any of the following second display methods:

[0137] Second display method 1: Display the editing history of the first account.

[0138] For example, participate Figure 4C , Figure 4C This is a schematic diagram illustrating various second display methods provided in the embodiments of this application. Figure 4C In the left-hand image, for edit record set 315, the edit records of the first account 310 are displayed, such as "......XxXX!".

[0139] Second display method 2: Display the editing history of at least one secondary account.

[0140] In some embodiments, the second account may be a designated account, an account that is a friend of the first account, or an account that is in the same group as the first account.

[0141] For example, see Figure 4CThe intermediate image, for edit record set 315, displays at least one edit record of a second account 311, such as edit record "xxFFxx".

[0142] The second display method 3 displays the editing history of multiple accounts, where the multiple accounts are accounts that collaboratively edited the document.

[0143] In some embodiments, multiple accounts may be some of the accounts used for collaborative editing of a document, or all of the accounts used for collaborative editing of a document.

[0144] For example, see Figure 4C The right-hand image shows the edit records of multiple accounts for edit record set 315. These accounts include account 310, account 311, and account 312. For example, account 310's edit record is "......xxxx!", account 311's edit record is "xxFFxx", and account 312's edit record is "xxssxx".

[0145] In some embodiments, the edit record set includes multiple second account type tags, and each second account type tag corresponds to a second display mode. The above-mentioned "displaying the edit records included in the edit record set based on any one of the following second display modes" can be achieved by performing the following process: in response to a trigger operation on a second tag, displaying the edit records included in the edit record set based on a second target display mode, wherein the second tag is any one of the multiple second account type tags, and the second target display mode is the second display mode corresponding to the second tag.

[0146] Here, in response to a trigger operation on the fourth tag, the display of at least one set of edited records based on the second target display method is updated to display at least one set of edited records based on the fourth target display method, wherein the fourth tag is any one of a plurality of second account type tags, and the fourth target display method is the second display method corresponding to the fourth tag.

[0147] For example, see Figure 4D , Figure 4D This is a second schematic diagram illustrating the display method of determining the edit record set based on tags, as provided in an embodiment of this application. Figure 4D In the left-hand image, in response to a trigger operation on the second tag 316 in the edit record set 315, the edit records included in the edit record set 315 are displayed based on the second target display method, for example, the edit record "......XXXX!", where the second tag 216 is any one of multiple second account type tags, and the second target display method is the second display method corresponding to the second tag 316. In response to a trigger operation on the fourth tag 317, in Figure 4DIn the right-hand diagram, the display of edit records included in the edit record set 315 is changed from being based on the second target display method to being based on the fourth target display method. For example, the edit records of accounts 310, 311 and 312 are displayed as "......XXXX!、xxFFxx、XXssxX". Here, the fourth label 317 is any one of the multiple second account type labels, and the fourth target display method is the second display method corresponding to the fourth label 317.

[0148] This application embodiment allows selection of the required account's edit record from an edit record set using tags, enabling quick determination of the corresponding second display method based on different edit record sets or different task stages, thereby improving the efficiency of querying the required edit record.

[0149] In some embodiments, step 101, "displaying at least one set of editing records of the document," may perform the following processing for any one set of editing records:

[0150] Scenario 1: When the set of edit records includes edit records within a time window, multiple edit records are displayed through at least one virtual container. Each virtual container includes edit records of document editing operations performed within a sub-time window, which is obtained by dividing the time window.

[0151] For example, virtual containers can take many forms, such as cards, bottles, etc. If a time window is 6 hours and an edit record set includes edit records within 6 hours, dividing a time window into 3 sub-time windows results in each sub-time window being 2 hours, and each virtual container displays edit records within 2 hours.

[0152] Scenario 2: When the set of edit records includes a batch of edit records, multiple edit records are displayed through at least one virtual container, wherein each virtual container includes edit records of editing operations performed on the document within a sub-batch, and the sub-batch is obtained by dividing the batch.

[0153] For example, every 3 edit records are divided into a batch, and an edit record set includes 3 edit records. If a batch is divided into 3 sub-batches, then each sub-batch corresponds to one edit record, and each virtual container displays 1 edit record.

[0154] Case 3: When the set of edit records includes edit records of a single content unit, multiple edit records are displayed through at least one virtual container. Each virtual container includes edit records of document editing operations performed within a sub-content unit, which is obtained by dividing the content unit.

[0155] For example, if every two segments constitute a content unit, and an edit record set includes edit records corresponding to two segments, then dividing a content unit into two sub-content units results in each sub-content unit being a segment, and each virtual container displays the edit record corresponding to one segment.

[0156] This application embodiment addresses a collection of edit records. The virtual container provides a clear visual organizational structure, facilitating the rapid understanding and processing of large volumes of edit records. Edit records within the collection can be grouped more finely using sub-time windows, sub-batches, or sub-content units. Different grouping methods can be selected to view the edit records, improving the flexibility of information display.

[0157] In some embodiments, see Figure 3B , Figure 3B This is a schematic diagram of the second process of the document processing method provided in the embodiments of this application. In the above-described "displaying multiple edit records through at least one virtual container", the following steps are executed: Figure 3B Steps 201 to 202 are explained in detail below.

[0158] In step 201, if there are multiple virtual containers, the multiple virtual containers are displayed in a stacked manner.

[0159] See Figure 4E , Figure 4E This is a first schematic diagram illustrating the display method of multiple virtual containers provided in this application embodiment. Figure 4E In the left-hand diagram, for edit record set 318, the edit records in edit record set 318 are displayed in two virtual containers, such as virtual container 319 and virtual container 320. The virtual containers 319 and virtual container 320 corresponding to edit record set 318 are displayed in a stacked manner by default.

[0160] In step 202, in response to a trigger operation for multiple virtual containers, the multiple virtual containers are displayed in a tiled manner.

[0161] For examples, see below. Figure 4E In response to the triggered operation for virtual container 319 and virtual container 320, in Figure 4E In the image on the right, virtual containers 319 and 320 are displayed in a tiled manner. The operation can be triggered by long-pressing virtual containers 319 and 320 and expanding them outward, or by clicking virtual containers 319 and 320 continuously.

[0162] In some embodiments, see Figure 3C , Figure 3CThis is a schematic diagram of the third process of the document processing method provided in this application embodiment. During the above-mentioned "displaying multiple edit records through at least one virtual container", the following steps are executed: Figure 3C Steps 301 to 302 are explained in detail below.

[0163] In step 301, if there are multiple virtual containers, the multiple virtual containers are displayed in a tiled manner.

[0164] See Figure 4F , Figure 4F This is a second schematic diagram illustrating the display method of multiple virtual containers provided in the embodiments of this application. Figure 4F In the left-hand image, for edit record set 318, the edit records in edit record set 318 are displayed in two virtual containers, such as virtual container 319 and virtual container 320. Virtual containers 319 and virtual container 320 corresponding to edit record set 318 are displayed in a tiled manner by default.

[0165] In step 302, in response to a trigger operation for multiple virtual containers, multiple virtual containers are displayed in a stacked manner.

[0166] For examples, see below. Figure 4F In response to the triggered operation for virtual container 319 and virtual container 320, in Figure 4F In the right-hand image, virtual containers 319 and 320 are displayed in a stacked manner. The operation can be triggered by long-pressing virtual containers 319 and 320 and shrinking them inward, or by clicking virtual containers 319 and 320 repeatedly.

[0167] In this embodiment of the application, when there are multiple virtual containers, the display mode of multiple virtual containers is converted by triggering operations on multiple virtual containers. For example, the display mode can be converted from stacked display to tiled display, which can clearly display all the editing records in the editing record set and improve the efficiency of finding editing records. The display mode can be converted from tiled display to stacked display, which can save the space occupied by editing records when there is no need to find editing records in the current editing record set.

[0168] In some embodiments, see Figure 3D , Figure 3D This is a schematic diagram of the fourth process of the document processing method provided in the embodiments of this application. Figure 3A Step 101, "Display at least one set of editing records of the document," can be achieved through... Figure 3D Steps 1011 to 1012 are implemented, and the details are explained below.

[0169] In step 1011, for any set of edited records, if the number of edited records included in the set of edited records is greater than a preset number, then the preset number of edited records are displayed and the other edited records are hidden. The other edited records are the edited records other than the preset number of edited records among the multiple edited records.

[0170] For example, see Figure 4G , Figure 4G This is a schematic diagram illustrating the display of a preset number of edit records provided in an embodiment of this application. Figure 4G In the left-hand image, if the preset quantity is 3 and the edit record set 315 includes 5 edit records, then 2 other edit records will be hidden and 3 edit records will be displayed, such as edit record "......XXXX!", edit record "xxFFxx" and edit record "Xxssxx".

[0171] In some embodiments, the preset number of edit records includes any one of the following: a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the editing time; a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the position of the corresponding content in the document; a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the editing frequency of the corresponding content in the document; or a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the interaction frequency between the corresponding accounts and the first account, where the first account is the account logged into the document processing interface, and the document processing interface is used to display the document.

[0172] For example, if the preset quantity is 3, multiple edit records can be sorted in ascending or descending order by editing time. The preset number of edit records can be selected from the beginning of the sorted results. For instance, if edit record 1 was edited at 10:00, edit record 2 at 11:00, edit record 3 at 12:00, and edit record 4 at 13:00, sorting by editing time in descending order would result in edit record 4, edit record 3, edit record 2, and edit record 1. The preset number of edit records from the beginning would be edit record 4, edit record 3, and edit record 2. Alternatively, multiple edit records can be sorted from beginning to end or end to beginning according to their corresponding content position in the document. The edit records are sorted sequentially. From the sorted results, a preset number of edit records are selected, starting from the beginning. For example, if edit record 1 corresponds to paragraph 1, edit record 2 to paragraph 2, edit record 3 to paragraph 3, and edit record 4 to paragraph 4, then sorting by their position in the document from beginning to end would result in edit record 1, edit record 2, edit record 3, and edit record 4. The preset number of edit records starting from the beginning would be edit record 1, edit record 2, and edit record 3. Multiple edit records can then be sorted in ascending or descending order based on their frequency of editing content in the document. The sorting process involves selecting a preset number of edit records from the beginning of the sorted results. For example, if edit record 1 has an edit frequency of 7, edit record 2 has an edit frequency of 5, edit record 3 has an edit frequency of 3, and edit record 4 has an edit frequency of 1, then sorting by edit frequency in descending order would result in edit record 1, edit record 2, edit record 3, and edit record 4, with the preset number of edit records from the beginning being edit record 1, edit record 2, and edit record 3. Alternatively, multiple edit records can be sorted in ascending or descending order based on the interaction frequency between their respective accounts and the first account, with the selected records from the beginning of the sorted results. A preset number of edit records are retrieved. The first account is the account logged into the document processing interface, which is used to display documents. If the account corresponding to an edit record is the first account, then that edit record has the highest interaction frequency. For example, the interaction frequency between the account corresponding to edit record 1 and the first account is 10, the interaction frequency between the account corresponding to edit record 2 and the first account is 8, the interaction frequency between the account corresponding to edit record 3 and the first account is 6, and the interaction frequency between the account corresponding to edit record 4 and the first account is 4. Taking the sorting by interaction frequency in descending order as an example, the sorting result is edit record 1, edit record 2, edit record 3 and edit record 4. The preset number of edit records starting from the beginning are edit record 1, edit record 2 and edit record 3.

[0173] In step 1012, in response to a trigger action on the expand button, other edit records are displayed.

[0174] For examples, see below. Figure 4G ,exist Figure 4G In the left-hand image, in response to the triggering action of the expand button 321, other edit records are displayed, such as other edit records "xxx?" and other edit records "xxqwexx".

[0175] This application embodiment reduces the amount of information displayed at once by showing only a preset number of editing records, avoiding information overload and making the document processing interface clearer and more concise. Users can quickly view the preset number of editing records sorted according to different criteria, improving document processing efficiency. Sorting can be done by editing time, content location, editing frequency, or user interaction frequency to quickly find key editing records. An expand button allows users to view more editing records as needed, providing a better interactive experience and more flexible control. Although only a preset number of editing records are displayed, all editing records are still saved, ensuring document integrity.

[0176] In some embodiments, see Figure 3E , Figure 3E This is a schematic diagram of the fifth process of the document processing method provided in this application embodiment. Before step 101 "displaying at least one set of editing records of the document", the following steps are executed: Figure 3E Steps 401 to 406 are explained in detail below.

[0177] In step 401, the original content of the document is divided into multiple first paragraphs, each of which includes a first paragraph identifier.

[0178] For example, the original content of a document is divided into paragraph A, paragraph B, paragraph C, and paragraph D. The first paragraph of paragraph A is identified as aaa, the first paragraph of paragraph B is identified as bbb, the first paragraph of paragraph C is identified as ccc, and the first paragraph of paragraph D is identified as ddd.

[0179] In step 402, in response to the editing operation on the document, the content of the edited document is divided into multiple second paragraphs, wherein each second paragraph includes a second paragraph identifier, and the second paragraph identifier of the second paragraph is the same as the first paragraph identifier of the first paragraph in the same position in the document.

[0180] For example, editing operations include adding, deleting, and modifying. Adding represents adding text or paragraphs to the original content of the document; deleting represents deleting text or paragraphs from the original content of the document; and modifying represents modifying a portion of the original content. The edited document is divided into multiple second paragraphs, such as second paragraph B, second paragraph C, second paragraph D, and second paragraph E. If the second paragraph identifier of second paragraph B is the same as the first paragraph identifier "bbb" of first paragraph B in the same position in the document, then the second paragraph identifier of second paragraph B is "bbb". If the second paragraph identifier of second paragraph C is the same as the first paragraph identifier "ccc" of first paragraph C in the same position in the document, then the second paragraph identifier of second paragraph C is "ccc". If the second paragraph identifier of second paragraph D is the same as the first paragraph identifier "ddd" of first paragraph D in the same position in the document, then the second paragraph identifier of second paragraph D is "ddd". The second paragraph identifier of second paragraph E is "eee".

[0181] In step 403, for each second paragraph, if the second paragraph identifier of the second paragraph is different from all the first paragraph identifiers, then the second paragraph is a newly added paragraph; if there is a target first paragraph identifier that is the same as the second paragraph identifier of the second paragraph, and the content of the first paragraph corresponding to the target first paragraph identifier is different from the second paragraph, then the second paragraph is a modified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content; if there is a target first paragraph identifier that is the same as the second paragraph identifier of the second paragraph, and the content of the first paragraph corresponding to the target first paragraph identifier is the same as the second paragraph, then the second paragraph is an unmodified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content.

[0182] Following the examples of steps 401 and 402 above, if the second paragraph identifier of the second paragraph E is different from multiple first paragraph identifiers, then the second paragraph E is a newly added paragraph; if the second paragraph identifier of the second paragraph B is the same as the first paragraph identifier of the first paragraph B, the second paragraph identifier of the second paragraph C is the same as the first paragraph identifier of the first paragraph C, and the second paragraph identifier of the second paragraph D is the same as the first paragraph identifier of the first paragraph D, then if the content of the second paragraph C is different from the content of the first paragraph C, then the second paragraph C is a modified paragraph, and the first paragraph C is deleted from the original content; if the content of the second paragraph B is the same as the content of the first paragraph B, and the content of the second paragraph D is the same as the content of the first paragraph D, then the second paragraph B and the second paragraph D are unmodified paragraphs, and the first paragraph B and the first paragraph D are deleted from the original content.

[0183] In step 404, the remaining first paragraph in the original content is treated as a deleted paragraph.

[0184] Following the example of step 403 above, if the remaining paragraph in the original content is paragraph A, then paragraph A is a deleted paragraph.

[0185] In step 405, the newly added paragraphs, modified paragraphs, and deleted paragraphs are grouped into a paragraph set according to their position in the document.

[0186] Following the example of step 404 above, the newly added paragraph is the second paragraph E, the modified paragraph is the second paragraph C, and the deleted paragraph is the first paragraph A. The second paragraph E, the second paragraph C, and the first paragraph A are combined into a paragraph set according to their position in the document.

[0187] In step 406, the content in the paragraph set that differs from the original content is used as at least one set of editing records for the document.

[0188] Following the example of step 405 above, extract the content that is different from the original content from the second paragraph E, the second paragraph C and the first paragraph A, as at least one set of editing records in the document. For example, if the second paragraph C adds "11" compared to the first paragraph C, then "11" is taken as an editing record and the editing record is taken as a set of editing records.

[0189] In some embodiments, prior to step 101 "display at least one set of edit records of the document", the following processing is performed: in response to at least one edit operation on the document, at least one set of edit records is generated, wherein each set of edit records includes at least one edit record corresponding to the edit operation.

[0190] For example, editing operations include adding, deleting, and modifying. The edit records corresponding to one editing operation can be considered as a set of edit records, or multiple edit records corresponding to different editing operations can be considered as a set of edit records.

[0191] In some embodiments, see Figure 3F , Figure 3F This is a schematic diagram of the sixth step in the document processing method provided in this application embodiment. The above-mentioned "generating at least one set of edit records" can be achieved through... Figure 3F Steps 501 to 503 are implemented, and the details are explained below.

[0192] In step 501, the editing records of the editing operations performed on the document within a time window are combined into an editing record set, wherein different editing record sets correspond to different time windows.

[0193] In some embodiments, a time window can be a fixed period of time. When the document is an online document, the editing records of any one account's editing operations on the document within a time window are combined into a single editing record set; the editing records of all accounts' editing operations on the document within a time window are combined into a single editing record set; and the editing records of a specified account's editing operations on the document within a time window are combined into a single editing record set.

[0194] For example, the time window can be an hour, a quarter of an hour, or a day, etc., and there is no limitation here.

[0195] In step 502, the editing records of a batch of editing operations on the document are combined into an editing record set, wherein different editing record sets correspond to different batches.

[0196] In some embodiments, a batch can be a fixed number of edit records, which are sorted by edit time, and different batches are divided according to the order of the edit times of the edit records. When the document is an online document, the edit records of any account's edit operations within a batch are grouped into one edit record set; the edit records of all accounts' edit operations within a batch are grouped into one edit record set; and the edit records of a specified account's edit operations within a batch are grouped into one edit record set.

[0197] For example, if there are multiple edit records, they are ordered by editing time as edit record A, edit record B, edit record C and edit record D. If each batch includes two edit records, then edit record A and edit record B are combined into edit record set 1, and edit record C and edit record D are combined into edit record set 2.

[0198] In step 503, the editing records of editing operations performed on a content unit in the document are combined into an editing record set, wherein different editing record sets correspond to different content units.

[0199] For example, a content unit can be a segment of the document's content, a preset number of consecutive segments, half a page, or a full page.

[0200] In some embodiments, the document is displayed in a first area of ​​the document processing interface, and at least one set of edited records is displayed in a second area of ​​the document editing interface, see [link to documentation]. Figure 3G , Figure 3G This is a schematic diagram of the seventh process of the document processing method provided in this application embodiment. In step 101, "displaying at least one set of editing records of the document," the following steps are executed: Figure 3GSteps 601 to 602 are explained in detail below.

[0201] In step 601, in response to the activation of the document review mode, a third area is displayed in the document editing interface, wherein the third area includes the editing history of the current content, which is the content currently displayed in the document editing interface.

[0202] For example, see Figure 4H , Figure 4H This is a schematic diagram illustrating the display of editing records in the third area provided in an embodiment of this application. Figure 4H In the upper-level diagram, the document content is displayed in the first area 322 of the document processing interface 325, and at least one set of editing records is displayed in the second area 323 of the document processing interface 325. In response to the activation of the review mode for the document, a third area 324 is displayed in the document editing interface 325, wherein the third area 324 includes the editing records of the current content, which is the content of the document currently displayed in the document editing interface 325.

[0203] In step 602, in response to a trigger operation on the second edit record set in the second region, the edit records in the second edit record set are displayed in the third region, and the content corresponding to the currently displayed edit record is displayed in the first region, wherein the second edit record set is any one of at least one edit record set.

[0204] For example, in Figure 4H In the upper-level diagram, in response to a triggering operation in the second region 323 for a second edit record set, such as edit record set 318, edit record set 318 is any one of at least one edit record set. Figure 4H In the lower-level diagram, edit records 326, 327, and 328 from the edit record set 318 are displayed in the third area 324, while the contents corresponding to the currently displayed edit records 326, 327, and 328 are displayed in the first area 322.

[0205] This embodiment clearly distinguishes the document display area, the editing record collection display area, and the current content editing record display area by dividing the editing interface into a first area, a second area, and a third area. Records in a specific editing record collection can be quickly located and viewed by triggering an operation in the second area, and the selected editing record is immediately displayed in the third area. This allows for document editing and record review to be completed within the same document processing interface without switching between different interfaces or views.

[0206] In some embodiments, the above-mentioned "displaying the content corresponding to the currently displayed edit record in the first area" can be achieved by performing any of the following processes:

[0207] Case 1: Starting from the position of the content corresponding to the first edit record in the currently displayed edit record, display the content corresponding to the currently displayed edit record in the first area.

[0208] For example, see Figure 4I , Figure 4I This is a first schematic diagram illustrating the display of the content corresponding to the currently displayed edit record in the first area, as provided in this embodiment of the application. If the triggered element is the edit record set 318, which includes edit record 326, edit record 327, and edit record 328, and the first edit record is edit record 326, then starting from the position of the content corresponding to edit record 326, the content corresponding to the currently displayed edit record 326, edit record 327, and edit record 328 will be displayed in the first area.

[0209] Scenario 2: If the currently displayed editing record spans multiple pages, the content corresponding to the currently displayed editing record will be displayed on the current page of the document, along with a prompt message indicating the page number corresponding to the editing record.

[0210] For example, see Figure 4J , Figure 4J This is a second schematic diagram provided in this application embodiment, showing the content corresponding to the currently displayed editing record in the first area. If the triggered element is the editing record set 318, which includes editing records 326, 327, and 328, as well as undisplayed editing records (i.e., the currently displayed editing record spans multiple pages), then the content corresponding to the currently displayed editing record is displayed on the current page of the document. For example, the content corresponding to editing records 326, 327, and 328 are displayed respectively, and a prompt message 329 is displayed, where the prompt message 329 is used to indicate the page number corresponding to the editing record.

[0211] Scenario 3: If the currently displayed editing record spans multiple pages, the content in the document corresponding to the currently displayed editing record will be displayed on the current page by hiding content in the document that is unrelated to the currently displayed editing record. If the content corresponding to the currently displayed editing record cannot be fully displayed, a pagination control will be displayed. In response to the triggering operation of the pagination control, at least part of the content corresponding to other editing records will be displayed on the next page after the current page. The other editing records are the editing records in the second set of editing records other than the currently displayed editing record.

[0212] For example, see Figure 4K , Figure 4KThis is a third schematic diagram provided in this application embodiment, showing the content corresponding to the currently displayed editing record in the first area. Figure 4K In the upper-level image, if the currently displayed editing record spans multiple pages, the content in the document corresponding to the currently displayed editing record is displayed on the current page by hiding content unrelated to the currently displayed editing record. If the content corresponding to the currently displayed editing record cannot be fully displayed, a page-turning control 331 is displayed. In response to a trigger operation on the page-turning control 331, ... Figure 4K In the lower-level diagram, at least some of the content corresponding to other edit records is displayed on the next page after the current page, such as edit record 332 and edit record 333. The other edit records are the edit records in the second set of edit records other than the currently displayed edit record (e.g., edit record 326, edit record 327, edit record 328 and edit record 330).

[0213] Here, for hidden content in the document that is unrelated to the currently displayed editing record, a restore control can be displayed. In response to a trigger operation on the restore control, the hidden state is unhidden, and content unrelated to the currently displayed editing record is displayed.

[0214] In this embodiment, through scenario 1 described above, the content corresponding to the edit record can be seen immediately, allowing for an intuitive understanding of the specific impact of the edit. The display starts directly from the first edit record, facilitating quick location of the starting point of the edit operation. Through scenario 2, when the edit record spans multiple pages, a portion of the content can be seen on the current page, and prompts can be used to understand the distribution of the complete edit record across different pages. Through scenario 3, by hiding content unrelated to the current edit record, users can focus only on the content corresponding to the currently displayed edit record, resulting in a more rational interface layout and reduced interface clutter.

[0215] In some embodiments, after step 101 "displaying at least one set of edit records of the document", the following processing may be performed: if the first content is the original content before the application of the first edit record, and if the editing operation corresponding to the first edit record is a deletion operation, a first display mode is applied to the deleted content in the document, wherein the first display mode is different from the second display mode applied to the undeleted content in the document; if the first content is the original content after the application of the first edit record, and if the editing operation corresponding to the first edit record is a new content operation, a third display mode is applied to the new content in the document, wherein the third display mode is different from both the first and second display modes.

[0216] For example, display modes can be display parameters applied to the content. These parameters can be font, font color, font size, or font background color. Display modes can also be symbols added to the content, such as strikethrough, circle, triangle, etc. See also Figure 4L , Figure 4L These are schematic diagrams illustrating different display modes provided in embodiments of this application. Figure 4L In the case where the first content is the original content before the application of the first editing record (e.g., editing record 334), if the editing operation corresponding to editing record 334 is a deletion operation, for the content 335 deleted in the document by the deletion operation, a first display mode is applied to the deleted content 335 in the document. The first display mode can be adding a strikethrough to the deleted content 335 in the document. The second display mode can be the document's default mode, such as using the document's default font, font size, color, and not adding any symbols. The first display mode is different from the second display mode applied to the content that has not been deleted in the document. In the case where the first content is the original content after the application of the first editing record (e.g., editing record 336), if the editing operation corresponding to editing record 336 is a new content operation, for the content 337 added in the document by the new content operation, a third display mode is applied to the new content 337 in the document. For example, the new content 337 is highlighted. The highlighting can be at least one of the following: highlighting, enlarging, bolding, or blinking. The third display mode is different from both the first and second display modes.

[0217] This application's embodiments, through different display modes, allow users to clearly distinguish deleted or added content within a document, improving content identifiability. By comparing different display modes, users can understand the document's historical state and change process, facilitating historical analysis and comparison. Different display modes help users precisely manage document content.

[0218] See also Figure 3A In step 102, in response to a trigger operation on the first set of edit records, the first content in the document is displayed, wherein the first set of edit records is any set of edit records, the first content is the content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

[0219] In some embodiments, if the original content of the document is displayed before the triggering operation, then in response to the triggering operation for the first set of edit records, the first content is displayed starting from the position corresponding to the first edit record, or the first content is highlighted. In this case, the document is updated from the original content to the new content of the document that applies the first edit record in the first set of edit records, and the first content is the content corresponding to the first edit record in the new content. If the new content of the document that applies the first edit record in the first set of edit records is displayed before the triggering operation, then in response to the triggering operation for the first set of edit records, the first content is highlighted, or if the first content is not located at the top of the currently displayed page in the document processing interface, the first content is displayed from the top of the current page.

[0220] For example, to show the original content of the document before triggering an action, see [link to example]. Figure 4M , Figure 4M This is a schematic diagram highlighting the first content provided in an embodiment of this application. Figure 4M In the left-hand image, the original content 345 of the document is displayed in the document processing interface 344, along with at least one set of editing records, such as editing record set 315. Each set of editing records includes at least one editing record, such as the edited content of editing record 338, "......XXXX!". In response to a trigger operation targeting the first set of editing records (e.g., editing record set 315), in... Figure 4M In the right-hand image, the first content “xXXX!” is highlighted. The current document content is the new content 346 of the document that applied the first edit record 338, and the first content is the content corresponding to the first edit record 338.

[0221] Here, the first area in the document processing interface can display only the first content. If there is still empty space in the first area after displaying the first content, the remaining content in the document can be displayed in the empty space, for example, content following the first content can be displayed. The content corresponding to the first edit record can be any of the following: First, the content corresponding to the first edit record in the original content of the document; Second, the content corresponding to the first edit record in the new content of the document that has applied the first edit record in the first edit record set. If the first content corresponding to the first edit record is the first type, in response to a switching operation on the first content, the content switches from the first type to the second type; if the first content corresponding to the first edit record is the second type, in response to a switching operation on the first content, the content switches from the second type to the first type. The switching operation can be any of the following: a click operation on the first content, a swipe operation (left or right swipe) on the first content, or a trigger operation on the switching control displayed on the first content. When there are multiple first edit records, the content corresponding to at least one first edit record can be the content corresponding to each first edit record in the first edit record set.

[0222] In some embodiments, when the number of first edit records included in the first edit record set is one, step 102, "displaying the first content in the document in response to a trigger operation for the first edit record set," can be implemented by performing the following processing: in response to a trigger operation for the first edit record set, if the current display position is inconsistent with the position corresponding to the first edit record in the document, jump from the current display position of the document to the position corresponding to the first edit record in the document to display the first content of the document, wherein the current display position is the starting display position of the document before the trigger operation; if the current display position is consistent with the position corresponding to the first edit record in the document, highlight the first content of the document.

[0223] Here, the current display position of the document refers to the position of the first content currently displayed in the document. If the first content is a single line of text, the position can be the line number of that line; if the first content is multiple lines of text, the position can be the line number of the first line of the multiple lines of text; if the first content is a paragraph of text, the position can be the paragraph number of that paragraph in the document; if the first content is multiple paragraphs of text, the position can be the paragraph number of the first paragraph of the multiple paragraphs in the document.

[0224] For example, consider a scenario where the current display position is inconsistent with the position of the first edited record in the document, and new content in the document is displayed before the operation is triggered. See [link to example]. Figure 4N , Figure 4N This is a first schematic diagram showing the first content provided in an embodiment of this application. Figure 4N In the left-hand diagram, when the number of first edit records included in the first edit record set (e.g., edit record set 315) is one, such as edit record 338, in response to a triggering operation on edit record set 315, Figure 4N In the right-hand diagram, the document jumps from its current display position to the corresponding position of editing record 338 in the document, and uses that position as the starting display position to display the first content of the document, “xXXX!”, starting from that position. Here, the current display position is the starting display position of the document before the operation was triggered.

[0225] Here, if the content corresponding to the first edit record cannot be fully displayed on the current page, the content corresponding to the first edit record can be scaled down so that it can be fully displayed in the document processing interface at once.

[0226] In some embodiments, if the first content is the content corresponding to the first edit record in the new content of the document that has applied the first edit record, the display method of the first content may include any of the following:

[0227] The first approach, when the document has only one page, is to display the original content of the document before the editing operation. In response to the trigger operation for the first set of editing records, the original content is updated with the first content corresponding to the first editing record, while keeping the content in the original content that is unrelated to the first editing record unchanged; or, the first content corresponding to the first editing record is displayed at the top of the current page of the displayed document content, and the content before the first content is hidden.

[0228] For example, if the entire original content of the document is displayed on page 1, and the edited content of an edited record in the first edited record set is in paragraph 2 of the document, in response to a triggering operation for the first edited record set, paragraph 2 in the original content is replaced with the edited content, while keeping the content in the original content that is unrelated to the first edited record unchanged; or, paragraph 2 is displayed at the top of the page, and paragraph 1 is hidden.

[0229] The second approach, when the document has only one page, is to display the new content of the document that applies the first edit record in the first edit record set before the editing operation. In response to the trigger operation for the first edit record set, the first content is highlighted, and the content in the new content that is unrelated to the first edit record remains unchanged; or, the first content corresponding to the first edit record is displayed at the top of the current page of the displayed new content, and the content before the first content is hidden.

[0230] For example, on page 1, the new content of the document with the first edit record in the first edit record set applied is displayed. If the edit content of the edit record in the first edit record set is in the second paragraph of the document, in response to the triggering operation for the first edit record set, the content corresponding to the first edit record in the second paragraph is highlighted; or, the two paragraphs are displayed at the top of the page and the first paragraph is hidden.

[0231] The third approach, when the document has multiple pages, displays the original content of the document before the editing operation. In response to the trigger operation for the first set of editing records, if the first content corresponding to the first editing record is on the same page as the currently displayed document content, the original content is updated with the first content corresponding to the first editing record, while keeping the content in the original content that is unrelated to the first editing record unchanged; or, the first content corresponding to the first editing record is displayed at the top of the current page of the displayed document content, and the content before the first content is hidden.

[0232] For example, if a document has 3 pages and the current display is page 1, showing part of the original content of the document on page 1, if the edited content of the edit record in the first edit record set is in the second paragraph of page 1 of the document, in response to the trigger operation for the first edit record set, the content of the second paragraph of the original document on page 1 is replaced with the edited content, while keeping the content in the original content that is unrelated to the first edit record unchanged; or, the second paragraph is displayed at the top of page 1, and the first paragraph of page 1 is hidden.

[0233] Fourthly, when the document has multiple pages, before the editing operation, the new content of the document that applies the first editing record in the first editing record set is displayed. In response to the triggering operation for the first editing record set, if the first content corresponding to the first editing record is on the same page as the currently displayed document content, the first content is highlighted, and the content in the new content that is unrelated to the first editing record remains unchanged; or, the first content corresponding to the first editing record is displayed at the top of the current page of the displayed new content, and the content before the first content is hidden.

[0234] For example, if a document has 3 pages and the current display is page 1, and the document displays some new content that applies the first edit record in the first edit record set, if the edit content of the first edit record set is in the second paragraph of page 1, then the first content corresponding to the first edit record in the second paragraph of page 1 will be highlighted, and the content in the new content of page 1 that is unrelated to the first edit record will remain unchanged; or, the second paragraph will be displayed at the top of page 1, and the first paragraph of page 1 will be hidden.

[0235] Fifth, when the document has multiple pages, before editing, display the original content of the document. In response to the trigger operation for the first set of editing records, if the first content corresponding to the first editing record is not on the same page as the currently displayed document content, update the original content with the first content corresponding to the first editing record, while keeping the content in the original content that is unrelated to the first editing record unchanged, and jump to the location of the first content to display the first content; the first content can be highlighted.

[0236] For example, if a document has 3 pages and the current display is page 1, showing part of the original content of the document on page 1, if the edited content of an edit record in the first edit record set is on the second paragraph of page 3 of the document, in response to a trigger operation on the first edit record set, the content of the second paragraph of page 3 of the original document is replaced with the edited content, while keeping the content in the original document that is unrelated to the first edit record unchanged, and the page jumps to the second paragraph of page 3 to display the first content; at the same time, the first content in the second paragraph of page 3 can be highlighted.

[0237] Sixth, when a document has multiple pages, before editing, display the new content of the document that has applied the first editing record in the first editing record set. In response to a trigger operation on the first editing record set, if the first content corresponding to the first editing record is not on the same page as the currently displayed document content, jump to the location of the first content to display the first content; the first content can be highlighted.

[0238] For example, if a document has 3 pages and the current page is page 1, and the document displays some new content that has been applied to the first edit record in the first edit record set, then if the edit content of the first edit record in the first edit record set is in the second paragraph of the third page of the document, then jump to the second paragraph of the third page to display the first content; at the same time, the first content in the second paragraph of the third page can be highlighted.

[0239] This application embodiment determines the display method of the first content by displaying the document content, the number of pages in the document, and the page number where the first content is located, thereby improving the diversity of display methods and ensuring that the display method of the first content can be flexibly switched under different circumstances.

[0240] In some embodiments, when the number of first edit records included in the first edit record set is multiple, step 102, "displaying the first content in the document in response to a trigger operation for the first edit record set," can be implemented by performing the following process: in response to a trigger operation for the first edit record set, jumping from the current display position of the document to the position in the document corresponding to the first first edit record among the multiple first edit records, using the position as the starting display position, to display the first content of the document starting from the position, wherein the multiple first edit records are ordered according to their positions in the document, and the current display position is the starting display position of the document before the trigger operation.

[0241] Here, in response to a trigger operation on the first set of edit records, the system jumps from the current display position of the document, i.e., the position of the first content currently displayed in the document, to the position of the first first edit record among multiple first edit records in the first set of edit records in the document. This position is used as the starting display position to display the first content of the document starting from that position. The multiple first edit records are sorted according to their positions in the document, for example, they can be sorted in order from top to bottom. The current display position is the starting display position of the document before the trigger operation.

[0242] See Figure 4O , Figure 4O This is a second schematic diagram showing the first content provided in an embodiment of this application. Figure 4O In the left-hand diagram, when the first editing record set (e.g., editing record set 318) includes multiple first editing records, such as editing records 339 and 340, in response to a trigger operation for editing record set 318, the document jumps from its current display position to the position in the document corresponding to the first first editing record (e.g., editing record 339) among the multiple first editing records, using that position as the starting display position to display the first content of the document starting from that position. Here, the multiple first editing records are ordered according to their positions in the document, and the current display position is the starting display position of the document before the trigger operation.

[0243] In some embodiments, the other first edit records among the plurality of first edit records, excluding the first first edit record, can be displayed by performing any of the following processes: in response to a swipe operation starting from the first first edit record, the other first edit records are displayed in a scrolling manner according to the order of their corresponding positions in the document, wherein the other first edit records are the first edit records among the plurality of first edit records excluding the first first edit record; in response to a switching operation for the first first edit record, the other first edit records are displayed.

[0244] For example, see Figure 4P , Figure 4P This is a schematic diagram illustrating the switching of the first edit record according to an embodiment of this application. Figure 4P In the left-hand diagram, in response to a swipe operation starting from the first first editing record (e.g., editing record 339), other first editing records (e.g., editing record 341) are displayed in a scrolling manner according to the top-to-bottom order of their corresponding positions in the document. Alternatively, in response to a switching operation on the first first editing record, the switching operation includes clicking, swiping left or right, or long-pressing to display other first editing records (e.g., editing record 341).

[0245] In some embodiments, step 102, "displaying the first content in the document," can be achieved by performing any of the following methods:

[0246] Method 1: Start displaying the first content from the position corresponding to the first edit record of the first edit record.

[0247] For example, see Figure 4Q , Figure 4Q This is a first schematic diagram of the first content in the document provided in this application embodiment. If the triggered element is the editing record set 318, which includes editing record 326, editing record 327, editing record 328, editing record 330, editing record 332 and editing record 333, and the first editing record is editing record 326, then the first content is displayed starting from the position of the content corresponding to editing record 326.

[0248] Method 2: If the first content spans multiple pages, the content corresponding to the first edit record currently displayed will be shown on the current page of the document, along with a prompt message indicating the page number corresponding to the first edit record.

[0249] For example, see Figure 4R , Figure 4R This is a second schematic diagram illustrating the display of the first content in a document provided in this application embodiment. If the triggered element is the editing record set 318, and the first content corresponding to the editing record set 318 spans multiple pages, then the content corresponding to the currently displayed first editing record is displayed on the current page of the document. For example, the content corresponding to editing records 326, 327, 328, and 330 are displayed respectively, and a prompt message 342 is displayed, wherein the prompt message 342 is used to indicate the page number corresponding to the first editing record.

[0250] Method 3: If the first content spans multiple pages, the content in the document corresponding to the currently displayed first editing record is displayed on the current page by hiding the content in the document that is unrelated to the first editing record. If the content corresponding to the currently displayed first editing record cannot be fully displayed, a page-turning control is displayed. In response to the triggering operation of the page-turning control, at least part of the content corresponding to other editing records is displayed on the next page of the current page. The other editing records are the first editing records in the set of first editing records other than the currently displayed first editing record.

[0251] For example, see Figure 4S , Figure 4S This is a third schematic diagram showing the first content of the display document provided in the embodiments of this application. Figure 4S In the left-hand image, if the first content spans multiple pages, the content in the document corresponding to the currently displayed first editing record is displayed on the current page by hiding content unrelated to the first editing record. If the content corresponding to the currently displayed first editing record cannot be fully displayed, a page-turning control 343 is displayed. In response to a trigger operation on the page-turning control 343, ... Figure 4S In the diagram on the right, at least some of the content corresponding to other edit records is displayed on the next page after the current page, such as the content corresponding to edit record 332 and the content corresponding to edit record 333. The other edit records are the first edit records in the first set of edit records other than the currently displayed first edit record (e.g., edit record 326, edit record 327, edit record 328 and edit record 330).

[0252] Here, for hidden content in the document that is unrelated to the currently displayed editing record, a restore control can be displayed. In response to a trigger operation on the restore control, the hidden state is unhidden, and content unrelated to the currently displayed editing record is displayed.

[0253] This application embodiment, through method 1 described above, allows direct location of the document content corresponding to the first edit record, enabling a quick understanding of the specific impact of the edit. Displaying the content starting from the first edit record simplifies the process of viewing the edited content. Through method 2 described above, when the first content spans multiple pages, a portion of the content can be seen on the current page, and prompts indicate which pages the complete edited content is distributed across, with page numbers providing better navigation. Through method 3 described above, content unrelated to the first edit record is hidden, reducing interference for users when searching for and reviewing edited content.

[0254] In some embodiments, where the first content is the edited content of the first set of edit records, before step 102 "display the first content in the document", corresponding processing is performed in the following different cases:

[0255] Scenario 1: If the first set of edit records includes edit records within a time window, and the version of the first set of edit records is not the initial version, then the edit records in the edit record sets of each previous version are merged to obtain a merged edit record. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record.

[0256] For example, if the current first edit record set C is version 3, and version C corresponds to the 3rd time window, then the first edit record set C is merged with the edit records in version 1's first edit record set A, and the edit records in version 2's first edit record set B, resulting in merged edit records. Here, version 1's first edit record set A corresponds to the 1st time window, and version 2's first edit record set B corresponds to the 2nd time window. The merged edit records are then applied to the original content of the document to obtain the first content corresponding to the first edit record.

[0257] Scenario 2: If the first set of edit records includes a batch of edit records, and the version of the first set of edit records is not the initial version, then the edit records in the edit record sets of each previous version are merged to obtain a merged edit record. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record.

[0258] For example, if the current first edit record set C is version 3, and first edit record set C corresponds to the 3rd batch, then first edit record set C is merged with the edit records in first edit record set A of version 1, and the edit records in first edit record set B of version 2, to obtain merged edit records. Here, first edit record set A corresponds to the 1st batch, and first edit record set B corresponds to the 2nd batch. The merged edit records are then applied to the original content of the document to obtain the first content corresponding to the first edit record.

[0259] Case 3: If the first set of edit records includes an edit record of a single content unit, merge the edit records in the first set of edit records to obtain a merged edit record. Apply the merged edit record to the original content of the document to obtain the first content corresponding to the first edit record.

[0260] For example, if the current first edit record set C is version 3, and version C corresponds to the 3rd content unit, then the first edit record set C is merged with the edit records in version 1's first edit record set A, and the edit records in version 2's first edit record set B, resulting in a merged edit record. Here, version 1's first edit record set A corresponds to the 1st content unit, and version 2's first edit record set B corresponds to the 2nd content unit. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record.

[0261] This application embodiment ensures document consistency and coherence across different versions by merging historical edit records. Viewing the entire edit history from the initial version to the current version facilitates a comprehensive understanding of the document's change process. Merging edit records avoids repeatedly reviewing and processing the same edits, improving processing efficiency. Merging edit records at the content unit level helps to precisely manage specific sections of a document within a structured document.

[0262] The following will describe an exemplary application of the embodiments of this application in an online document APP application scenario.

[0263] The embodiments of this application are not limited to online document processing in online document APP scenarios, but are also applicable to other scenarios, such as online document mini-program scenarios in instant messaging APPs or browser scenarios that can display and process online documents.

[0264] For a document that has undergone multiple edits, when a user wants to quickly review the editing process through the edit history, they are faced with dozens or even more edit records, and all they can see are the version number and editing time. Some edit records may only have changed styles and punctuation, while others have changed a large amount of content. The lack of preview content in the relevant technology makes it difficult for users to grasp the key points, and they can only open and check each edit record one by one.

[0265] A single edit record may contain changes to multiple paragraphs, which may be scattered across different parts of the document, such as the beginning, middle, or end. With a large number of edit records, the edit history becomes disorganized and disorganized, leading to inefficient searching.

[0266] When rendering document content, related technologies respond to trigger operations on the edit history set by sending a content retrieval request to the server. The server (e.g., server 200 as mentioned above) then sends the full-text content of the edit history set to the terminal (e.g., terminal 400-1 or 400-2 as mentioned above). The more content in the document, the slower the sending process. After receiving the content, the terminal must render the entire content from scratch, again, the more content in the document, the slower the rendering. This results in excessively long waiting times for users when viewing edit history sets of documents with a lot of content, negatively impacting user experience and reducing document processing efficiency.

[0267] See Figure 5 , Figure 5 This is a schematic diagram illustrating a document processing method for related technologies provided in this application embodiment. Figure 5 In the middle, the left side is the document's content area, and the right side is the edit history collection sidebar. The changes made to the document are not directly visible from the edit history collection sidebar. Only in response to a trigger action on any edit history collection will the current content and changes be viewed in the content area. Version 55 of the edit history collection only added an exclamation mark at the end of the second paragraph of the document's content.

[0268] This application embodiment displays an editing record set in a document, which includes at least one editing record of the document. This allows for a clear and intuitive viewing of the editing records in the document directly through the editing record set, reducing search time and improving document processing efficiency compared to searching one by one throughout the entire document. In response to a trigger operation on the editing record set, first content corresponding to at least one editing record in the editing record set is displayed, which can quickly locate the position of the edited content in the document and improve the convenience of document viewing.

[0269] See Figure 6 , Figure 6 This is a schematic diagram of the document processing interface provided in an embodiment of this application. Figure 6 In this mode, changes can be seen directly without selecting an edit history set. Users can continue browsing and editing the latest content in the left-hand document content area (the first area). Simultaneously, in response to the selection of any edit history set, the corresponding document content (the first content) will still be displayed in the left-hand content area. For example, in response to a trigger action on the 55th edit history set, content showing the addition of !, AA, BB, and CC compared to the original document content will be displayed. The 54th edit history set added AA, BB, and CC, while the 55th edit history set only added an exclamation mark. If the current user is concerned with when AA was inserted into the document, they can skip versions 56 and 55 and directly find version 54.

[0270] If an edit record in a certain version of the edit history collection modifies multiple paragraphs of the document, the edit history collection will treat consecutive paragraphs as one modified area, such as paragraphs xxAAxx and xxBBxx, while the last paragraph xxCCxx is treated as another modified area. Multiple modified areas within the same edit history collection are stacked by default to save display space. When the user clicks, they can be tiled for viewing. For example, if the edit record in version 55 of the edit history collection adds AA, BB, and CC, since AA and BB are in the same paragraph, they are displayed on the same card (i.e., a virtual container), while CC is in another paragraph and displayed on a different card. Therefore, the cards are stacked, and the card for CC is obscured. In response to a trigger action for version 55 of the edit history collection, two cards are tiled, one recording the addition of AA and BB, and the other recording the addition of CC. In response to a trigger action for any card, the left-hand content area will automatically scroll to the position of the corresponding content in the card's edit record. Users can clearly see the number, content, and location of changes in a particular version of the edit history collection without having to browse the entire document from beginning to end.

[0271] Since the preview of the edit history collection does not need to retrieve the full text content from the server, but only retrieves a very small amount of the modified content, the preview of the edit history collection can be rendered quickly, saving a lot of rendering time for the edit history collection.

[0272] See Figure 7A , Figure 7A This is a first multi-terminal interaction diagram of the document processing method provided in this application embodiment. The terminal sends the edited content to the server according to the editing time. The server generates editing records, keyframes, and an editing record set in sequence according to the editing time and stores them in the database. In response to an open operation on the document or a trigger operation on the editing record set, the terminal obtains the editing record set and new document content from the server, renders and displays it.

[0273] See Figure 7B , Figure 7B This is a second multi-terminal interaction diagram illustrating the document processing method provided in this application embodiment. The interaction process between the terminal, server, and database can be achieved through... Figure 7B Steps 701 to 711 are implemented, and the details are explained below.

[0274] In step 701, in response to an editing operation on a document, the terminal generates editing requests sequentially based on the editing time and sends them to the server.

[0275] In step 702, the server receives each editing request and processes them sequentially, assigns an incrementing version number to the content corresponding to the editing operation, and stores it in the database as an editing record.

[0276] In step 703, the server merges the edit records within a fixed interval into a keyframe and stores the keyframe in the database.

[0277] For example, if we use 100 version numbers as a fixed interval, the merging process only needs to merge the previous keyframe and the next 100 edit records. For instance, the keyframe generated by version 400 is the result of merging edit records from version 0 to version 400. When generating the keyframe for version 500, we don't need to merge edit records from version 0 to version 500, because those edit records have already been merged into the previous keyframe. Therefore, we only need to merge the keyframe generated by version 400 and the edit records from version 400 to version 500 to obtain the keyframe for version 500, without having to merge all edit records from the beginning.

[0278] In step 704, the server generates an edit record set according to the interval rule, assigns an incrementing version number to the edit record set according to the time sequence, and stores the edit record set in the database.

[0279] For example, an edit record set corresponds to one or more consecutive edit records. Here, only the version number range of the edit records is recorded on the edit record set.

[0280] In step 705, the server determines the new document content (i.e., the first content) based on the keyframe.

[0281] In some embodiments, a full document content is generated based on the most recent keyframe and the edit records from the version of that keyframe to the beginning of the edit record set. All edit records in the edit record set are then applied to the full document content (i.e., the original content) to obtain new document content (i.e., the first content).

[0282] For example, based on the most recent keyframe and the edit records from the version after that keyframe to the beginning of the revision record interval, a full document content A is generated. A is copied, and all edit records within the revision record interval are applied to A, resulting in document B. For instance, the edit record set for version 55 includes edit record 206 and edit record 207. The most recent keyframe in the version 55 edit record set is 201. The edit records from keyframe 201 to the beginning of the version 55 edit record set are edit records 202 to 205. Based on keyframe 201 and edit records 202 to 205, the full document content before the version 55 edit record set is generated. Edit records 206 and 207 are applied to the full document content, resulting in new document content.

[0283] In step 706, the server splits the original document content and the new document content into paragraphs and stores them in a hash table.

[0284] In some embodiments, both the original document content and the new document content are divided into multiple paragraphs, and the multiple paragraphs corresponding to different document content are stored in different hash tables. Each paragraph includes a paragraph identifier, and the hash table includes key-value pairs, where the key is the paragraph identifier and the value is the content of the paragraph corresponding to the paragraph identifier and the index of the paragraph in the document.

[0285] For example, see Figure 8 , Figure 8 This is a schematic diagram illustrating document content storage using a hash table, as provided in an embodiment of this application. Documents A and B are each divided into paragraphs and placed into the hash table. In response to an insertion operation for any paragraph, a paragraph identifier corresponding to that paragraph is generated, for example, using a random string of length 4 as the paragraph identifier. The hash table is built using the paragraph identifier as the key, the content of the paragraph itself, and the index of the paragraph in the document as the values.

[0286] In step 707, the server compares the two document hash tables to identify the modified paragraphs.

[0287] For example, modified paragraphs include newly added paragraphs, deleted paragraphs, and paragraphs that modify existing paragraphs. See also Figure 9 , Figure 9 This is a schematic diagram of hash table comparison provided in an embodiment of this application. Document B is traversed, and it is determined whether the paragraph identifier of each paragraph in document B exists in document A. If it does not exist, it is a newly added paragraph. If it exists, it is determined whether the two paragraphs are completely identical, and the different paragraphs are identified. Regardless of whether they are identical, the paragraph is deleted from document A. After the traversal is complete, the remaining paragraphs in document A are the deleted paragraphs. These modified paragraphs are placed into an ordered set.

[0288] In step 708, the server sorts the ordered set according to the paragraph index in the original text and groups paragraphs with consecutive indices together.

[0289] For example, see Figure 10 , Figure 10 This is a schematic diagram of paragraph grouping provided in an embodiment of this application. The paragraph with the identifier vfgz has an index of 3, and the paragraph with the identifier aNdf has an index of 4. Since the indices of the two paragraphs are consecutive, the two paragraphs are grouped together. The paragraph with the identifier bxkO has an index of 9, which is separated from the indices of the above two paragraphs. Therefore, the paragraph with the identifier bxkO is grouped separately.

[0290] In step 709, the server compares the modified paragraphs and marks the modified content.

[0291] For example, modified content can be identified using text comparison algorithms, such as the Difference (Diff) algorithm. The Diff algorithm breaks down the complete text into blocks and marks these blocks as identical, newly added, or deleted. These blocks are then assembled, and different style attributes are applied to the newly added or deleted blocks, such as green or red font, as paragraph data.

[0292] For example, see Figure 11 , Figure 11 This is a schematic diagram of paragraph comparison provided in an embodiment of this application. The original document content is compared with paragraphs in the current document content that have the same paragraph identifier. It is determined that AA has been inserted into that paragraph in the current document content, therefore AA is set to green font. For example, if the current document content has deleted yyyy compared to the paragraphs in the original document content that have the same paragraph identifier, then yyyy is set to red.

[0293] In step 710, the server records the identified edited content into a field of the edit record set and stores it in the database.

[0294] For example, a group includes at least one paragraph, and a paragraph includes at least one piece of text.

[0295] In step 711, in response to a trigger operation on the sidebar of the edit record set (i.e., the second area), the terminal obtains the edit record set through the interface and renders the corresponding paragraphs according to the grouping.

[0296] For example, since the edit record set includes paragraph identifiers, in response to a trigger operation on an edit record in the edit record set, the corresponding paragraph is located based on the paragraph identifier of the record in the triggered edit record, and the corresponding content of the edit record is highlighted.

[0297] This application embodiment displays an editing record set in a document, which includes at least one editing record of the document. This allows for a clear and intuitive viewing of the editing records in the document directly through the editing record set, reducing search time and improving document processing efficiency compared to searching one by one throughout the entire document. In response to a trigger operation on the editing record set, first content corresponding to at least one editing record in the editing record set is displayed, which can quickly locate the position of the edited content in the document and improve the convenience of document viewing.

[0298] The following description continues to illustrate the exemplary structure of the document processing apparatus 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2As shown, the software modules in the document processing device 455 stored in the memory 450 may include:

[0299] The collection display module 4551 is used to display a document and display at least one set of editing records of the document, wherein each set of editing records includes at least one editing record of the document.

[0300] The content display module 4552 is used to display the first content in the document in response to a trigger operation on the first set of edit records, wherein the first set of edit records is any set of edit records, the first content is the content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

[0301] In some embodiments, each set of edit records includes any one of the following types of edit records: edit records of edit operations performed on a document within a time window, wherein different sets of edit records correspond to different time windows; edit records of edit operations performed on a batch of documents, wherein different sets of edit records correspond to different batches; edit records of edit operations performed on a content unit of a document, wherein different sets of edit records correspond to different content units.

[0302] In some embodiments, the collection display module 4551 is further configured to display a version number in each edit record collection, wherein, when an edit record collection corresponds to a time window, the version number represents the count of the time window; when an edit record collection corresponds to a batch, the version number represents the count of the batch; and when an edit record collection corresponds to a content unit, the version number represents the count of the content unit.

[0303] In some embodiments, the collection display module 4551 is further configured to display at least one set of editing records using any of the following first display methods: displaying at least one set of editing records of a first account, wherein the at least one set of editing records of the first account includes editing records of editing operations performed by the first account on the document; displaying at least one set of editing records of at least one second account, wherein the at least one set of editing records of the at least one second account includes editing records of editing operations performed by the at least one second account on the document; displaying at least one set of editing records of multiple accounts, wherein the multiple accounts are accounts that collaboratively edit the document, and the at least one set of editing records of the multiple accounts includes editing records of editing operations performed by the multiple accounts on the document.

[0304] In some embodiments, the document includes multiple first account type tags, each first account type tag corresponding to a first display mode. The collection display module 4551 is further configured to, in response to a trigger operation on the first tag, display at least one collection of edited records based on the first target display mode, wherein the first tag is any one of the multiple first account type tags, and the first target display mode is the first display mode corresponding to the first tag.

[0305] In some embodiments, the document is displayed in a document processing interface, which is logged into a first account. The collection display module 4551 is also used to display the editing records included in the editing record collection based on any of the following second display methods: displaying the editing records of the first account; displaying the editing records of at least one second account; displaying the editing records of multiple accounts, wherein the multiple accounts are accounts that collaboratively edit the document.

[0306] In some embodiments, the edit record set includes multiple second account type tags, each second account type tag corresponds to a second display mode, and the set display module 4551 is further configured to, in response to a trigger operation on a second tag, display the edit records included in the edit record set based on a second target display mode, wherein the second tag is any one of the multiple second account type tags, and the second target display mode is the second display mode corresponding to the second tag.

[0307] In some embodiments, the collection display module 4551 is further configured to, for any collection of edit records: when the collection of edit records includes edit records within a time window, display multiple edit records through at least one virtual container, wherein each virtual container includes edit records of editing operations performed on the document within a sub-time window, the sub-time window being a division of the time window; when the collection of edit records includes edit records in a batch, display multiple edit records through at least one virtual container, wherein each virtual container includes edit records of editing operations performed on the document within a sub-batch, the sub-batch being a division of the batch; when the collection of edit records includes edit records of a content unit, display multiple edit records through at least one virtual container, wherein each virtual container includes edit records of editing operations performed on the document within a sub-content unit, the sub-content unit being a division of the content unit.

[0308] In some embodiments, the collection display module 4551 is further configured to display multiple virtual containers in a stacked manner when there are multiple virtual containers; and to display multiple virtual containers in a tiled manner in response to a trigger operation for multiple virtual containers.

[0309] In some embodiments, the collection display module 4551 is further configured to display multiple virtual containers in a tiled manner when there are multiple virtual containers; and to display multiple virtual containers in a stacked manner in response to a triggering operation for multiple virtual containers.

[0310] In some embodiments, the collection display module 4551 is further configured to, for any collection of edited records, if the number of edited records included in the collection of edited records is greater than a preset number, display a preset number of edited records and hide other edited records, wherein the other edited records are the edited records other than the preset number of edited records among the multiple edited records; and display other edited records in response to a trigger operation on the expand button.

[0311] In some embodiments, the preset number of edit records includes any one of the following: a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the editing time; a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the position of the corresponding content in the document; a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the editing frequency of the corresponding content in the document; or a preset number of edit records starting from the beginning in the sorting result of multiple edit records according to the interaction frequency between the corresponding accounts and the first account, where the first account is the account logged into the document processing interface, and the document processing interface is used to display the document.

[0312] In some embodiments, the collection display module 4551 is further configured to divide the original content of the document into multiple first paragraphs, wherein each first paragraph includes a first paragraph identifier; in response to an editing operation on the document, divide the content of the edited document into multiple second paragraphs, wherein each second paragraph includes a second paragraph identifier, and the second paragraph identifier of the second paragraph is the same as the first paragraph identifier of the first paragraph at the same position in the document; for each second paragraph, if the second paragraph identifier of the second paragraph is different from all of the multiple first paragraph identifiers, then the second paragraph is a newly added paragraph; if there exists a target first paragraph identifier that is the same as the second paragraph identifier of the second paragraph, and the first paragraph corresponding to the target first paragraph identifier is a first paragraph... If the content of the newly added paragraph differs from the second paragraph, then the second paragraph is a modified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content. If there exists a target first paragraph identifier with the same second paragraph identifier as the second paragraph, and the content of the first paragraph corresponding to the target first paragraph identifier is the same as the second paragraph, then the second paragraph is an unmodified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content. The remaining first paragraphs in the original content are treated as deleted paragraphs. The newly added paragraphs, modified paragraphs, and deleted paragraphs are combined into a paragraph set according to their position in the document. The content in the paragraph set that differs from the original content is treated as at least one set of edit records in the document.

[0313] In some embodiments, the collection display module 4551 is further configured to generate at least one set of edit records in response to at least one edit operation on a document, wherein each set of edit records includes at least one edit record corresponding to the edit operation.

[0314] In some embodiments, the collection display module 4551 is further configured to combine the editing records of editing operations performed on the document within a time window into an editing record set, wherein different editing record sets correspond to different time windows; combine the editing records of editing operations performed on a batch of the document into an editing record set, wherein different editing record sets correspond to different batches; and combine the editing records of editing operations performed on a content unit of the document into an editing record set, wherein different editing record sets correspond to different content units.

[0315] In some embodiments, the document is displayed in a first area of ​​the document processing interface, and at least one set of editing records is displayed in a second area of ​​the document editing interface. The set display module 4551 is further configured to display a third area in the document editing interface in response to an operation that enables the review mode for the document. The third area includes the editing records of the current content, which is the content currently displayed in the document editing interface. In response to a trigger operation for a second set of editing records in the second area, the editing records in the second set of editing records are displayed in the third area, and the content corresponding to the currently displayed editing record is displayed in the first area. The second set of editing records is any one of the at least one set of editing records.

[0316] In some embodiments, the collection display module 4551 is further configured to display the content corresponding to the currently displayed editing record in a first area, starting from the position of the content corresponding to the first editing record in the currently displayed editing record; if the currently displayed editing record spans multiple pages, the content corresponding to the currently displayed editing record is displayed on the current page of the document, and a prompt message is displayed, wherein the prompt message is used to indicate the page number corresponding to the editing record; if the currently displayed editing record spans multiple pages, the content corresponding to the currently displayed editing record in the document is displayed on the current page by hiding content in the document that is unrelated to the currently displayed editing record; if the content corresponding to the currently displayed editing record cannot be fully displayed, a page-turning control is displayed, and in response to a trigger operation on the page-turning control, at least a portion of the content corresponding to other editing records is displayed on the next page of the current page, wherein the other editing records are editing records in the second set of editing records other than the currently displayed editing record.

[0317] In some embodiments, the collection display module 4551 is further configured to, when the first content is the original content before the application of the first editing record, if the editing operation corresponding to the first editing record is a deletion operation, apply a first display mode to the content deleted in the document by the deletion operation, wherein the first display mode is different from the second display mode applied to the content not deleted in the document; when the first content is the original content after the application of the first editing record, if the editing operation corresponding to the first editing record is a new content operation, apply a third display mode to the content added in the document by the new content operation, wherein the third display mode is different from both the first and second display modes.

[0318] In some embodiments, the content display module 4552 is further configured to, in response to a triggering operation for the first editing record set, jump from the current display position of the document to the position of the first editing record in the document when the number of first editing records included in the first editing record set is one, and use the position as the starting display position to display the first content of the document starting from the position, wherein the current display position is the starting display position of the document before the triggering operation.

[0319] In some embodiments, the content display module 4552 is further configured to, in response to a triggering operation for the first editing record set, jump from the current display position of the document to the position of the first first editing record in the document among the multiple first editing records when the number of first editing records included in the first editing record set is multiple, and use the position as the starting display position to display the first content of the document starting from the position, wherein the multiple first editing records are ordered according to their positions in the document, and the current display position is the starting display position of the document before the triggering operation.

[0320] In some embodiments, the content display module 4552 is further configured to, in response to a sliding operation starting from the first first edit record, switch and display other first edit records in a scrolling manner according to the order of their corresponding positions in the document, wherein the other first edit records are first edit records other than the first first edit record among the multiple first edit records; and to display other first edit records in response to a switching operation for the first first edit record.

[0321] In some embodiments, the content display module 4552 is further configured to display first content starting from the position of the content corresponding to the first edit record of the first edit record; if the first content spans multiple pages, the content corresponding to the currently displayed first edit record is displayed on the current page of the document, and a prompt message is displayed, wherein the prompt message is used to indicate the page number corresponding to the first edit record; if the first content spans multiple pages, the content corresponding to the currently displayed first edit record in the document is displayed on the current page by hiding content in the document that is unrelated to the first edit record; if the content corresponding to the currently displayed first edit record cannot be fully displayed, a page-turning control is displayed, and in response to a trigger operation on the page-turning control, at least a portion of the content corresponding to other edit records is displayed on the next page of the current page, wherein the other edit records are the first edit records in the first edit record set other than the currently displayed first edit record.

[0322] In some embodiments, when the first content is the edited content of the first edit record set, the content display module 4552 is further configured to, when the first edit record set includes edit records of a time window, if the version of the first edit record set is not the initial version, merge the edit records in the edit record set of each historical version before the version to obtain a merged edit record, and apply the merged edit record to the original content of the document to obtain the first content corresponding to the first edit record; when the first edit record set includes edit records of a batch, if the version of the first edit record set is not the initial version, merge the edit records in the edit record set of each historical version before the version to obtain a merged edit record, and apply the merged edit record to the original content of the document to obtain the first content corresponding to the first edit record; when the first edit record set includes edit records of a content unit, merge the edit records in the first edit set to obtain a merged edit record, and apply the merged edit record to the original content of the document to obtain the first content corresponding to the first edit record.

[0323] This application provides a computer program product comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the document processing method described above in this application.

[0324] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the document processing method provided in this application, for example, such as... Figure 3A The document processing method is shown.

[0325] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0326] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0327] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).

[0328] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0329] In summary, by displaying a set of editing records in a document through the embodiments of this application, the set of editing records includes at least one editing record of the document, allowing for a clear and intuitive viewing of the editing records in the document directly through the set of editing records. Compared to searching one by one in the entire document, this reduces search time and improves document processing efficiency. In response to a trigger operation on the set of editing records, the first content corresponding to at least one editing record in the set of editing records is displayed, which can quickly locate the position of the edited content in the document, improving the convenience of document viewing.

[0330] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A document processing method, characterized in that, The method includes: Display a document processing interface and display at least one set of editing records for the document, wherein each set of editing records includes at least one editing record for the document; In response to a trigger operation on a first set of edit records, first content in the document is displayed, wherein the first set of edit records is any set of edit records, the first content is content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

2. The method according to claim 1, characterized in that, When the number of the first edit records included in the first edit record set is one, the step of displaying the first content in the document in response to a trigger operation on the first edit record set includes: In response to a triggered operation targeting the first set of edited records, If the current display position is inconsistent with the position of the first edit record in the document, the document jumps from the current display position to the position of the first edit record in the document to display the first content of the document, wherein the current display position is the starting display position of the document before the triggering operation; If the current display position matches the position of the first edit record in the document, the first content of the document is highlighted.

3. The method according to claim 1, characterized in that, When the number of first edit records included in the first edit record set is multiple, the step of displaying the first content in the document in response to a trigger operation on the first edit record set includes: In response to a triggered operation targeting the first set of edited records, If the current display position is inconsistent with the position of the first first edit record in the document among a plurality of first edit records, the document jumps from the current display position to the position of the first first edit record in the document to display the first content of the document, wherein the plurality of first edit records are ordered according to their positions in the document, and the current display position is the starting display position of the document before the triggering operation; If the current display position matches the position of the first edit record in the document, the first content of the document is highlighted.

4. The method according to claim 3, characterized in that, The method further includes: In response to a swipe operation starting from the first first edit record, other first edit records are displayed in a scrolling manner according to the order of their corresponding positions in the document, wherein the other first edit records are first edit records other than the first first edit record among the plurality of first edit records; In response to a switching operation on the first first edit record, the other first edit records are displayed.

5. The method according to any one of claims 1 to 4, characterized in that, The document processing interface is logged in with a first account; The set of at least one edit records for displaying the document includes: At least one set of edited records is displayed using any of the following first display methods: Display at least one set of edit records for the first account, wherein the at least one set of edit records for the first account includes edit records of the first account's editing operations on the document; Display at least one set of editing records for at least one second account, wherein the at least one set of editing records for at least one second account includes editing records of editing operations performed by the at least one second account on the document; Display at least one set of editing records from multiple accounts, wherein the multiple accounts are accounts that collaboratively edit the document, and the at least one set of editing records from the multiple accounts includes editing records of editing operations performed on the document by the multiple accounts.

6. The method according to claim 5, characterized in that, The document includes multiple first account type tags, and each first account type tag corresponds to a first display method; The display of at least one set of edited records using any of the following first display methods includes: In response to a trigger operation on a first tag, at least one set of edited records is displayed based on a first target display method, wherein the first tag is any one of a plurality of first account type tags, and the first target display method is the first display method corresponding to the first tag.

7. The method according to any one of claims 1 to 4, characterized in that, The document processing interface is logged in with a first account; The set of at least one edit records for displaying the document includes: For each set of edited records, perform the following processing: The edit records included in the edit record set are displayed based on any of the following second display methods: Display the edit history of the first account; Display the edit history of at least one second account; The editing history of multiple accounts is displayed, wherein the multiple accounts are accounts that collaboratively edit the document.

8. The method according to claim 7, characterized in that, The edit record set includes multiple second account type tags, and each second account type tag corresponds to a second display method; The display of the edit records included in the edit record set based on any of the following second display methods includes: In response to a trigger operation on the second tag, the edited records included in the edited record set are displayed based on the second target display mode, wherein the second tag is any one of a plurality of second account type tags, and the second target display mode is the second display mode corresponding to the second tag.

9. The method according to claim 1, characterized in that, Each set of edit records includes any one of the following types of edit records: Editing records of editing operations performed on the document within a time window, wherein different sets of editing records correspond to different time windows; An edit record of a batch of edit operations on the document, wherein different sets of edit records correspond to different batches; An editing record of editing operations performed on a content unit in the document, wherein different sets of editing records correspond to different content units.

10. The method according to claim 9, characterized in that, The method further includes: A version number is displayed in each of the edit record sets, wherein, when an edit record set corresponds to a time window, the version number represents the count of the time window; when an edit record set corresponds to a batch, the version number represents the count of the batch; and when an edit record set corresponds to a content unit, the version number represents the count of the content unit.

11. The method according to any one of claims 1 to 4, characterized in that, The set of at least one edit records for displaying the document includes: For any of the aforementioned set of edited records, perform the following processing: When the set of edit records includes edit records within a time window, multiple edit records are displayed through at least one virtual container, wherein each virtual container includes edit records of edit operations performed on the document within a sub-time window, the sub-time window being obtained by dividing the time window; When the set of edit records includes a batch of edit records, multiple edit records are displayed through at least one virtual container, wherein each virtual container includes edit records of edit operations performed on the document within a sub-batch, the sub-batch being obtained by dividing the batch; When the set of edit records includes an edit record of a content unit, multiple edit records are displayed through at least one virtual container, wherein each virtual container includes an edit record of an edit operation performed on the document within a sub-content unit, the sub-content unit being obtained by dividing the content unit.

12. The method according to claim 11, characterized in that, The method further includes: When there are multiple virtual containers, they are displayed in a stacked manner. In response to a triggered operation on the multiple virtual containers, the multiple virtual containers are displayed in a tiled manner.

13. The method according to claim 11, characterized in that, When there are multiple virtual containers, the multiple virtual containers are displayed in a tiled manner; In response to a triggered operation on multiple virtual containers, multiple virtual containers are displayed in a stacked manner.

14. The method according to any one of claims 1 to 4, characterized in that, The set of at least one edit records for displaying the document includes: For any set of edited records, if the number of edited records included in the set of edited records is greater than a preset number, then the preset number of edited records are displayed and other edited records are hidden. The other edited records are the edited records other than the preset number of edited records among the multiple edited records. In response to a trigger action on the expand button, the other edit records are displayed.

15. The method according to claim 14, characterized in that, The preset number of edited records includes any one of the following: The predetermined number of edited records, starting from the beginning, in the sorting result of multiple edited records according to edit time; The predetermined number of edit records, starting from the beginning, are sorted according to their corresponding positions in the document. The preset number of edit records, starting from the beginning, are sorted according to the frequency of editing the corresponding content in the document. The preset number of edit records, starting from the top, are sorted according to the frequency of interaction between the corresponding accounts and the first account. The first account is the account logged into the document processing interface, which is used to display the document.

16. The method according to any one of claims 1 to 15, characterized in that, The document is displayed in a first area of ​​the document processing interface, and at least one set of editing records is displayed in a second area of ​​the document editing interface; When displaying at least one set of edit records of the document, the method further includes: In response to the activation of the review mode for the document, a third area is displayed in the document editing interface, wherein the third area includes the editing history of the current content, which is the content currently displayed in the document editing interface; In response to a trigger operation in the second region for a second set of edited records, edited records in the second set of edited records are displayed in the third region, and the content corresponding to the currently displayed edited record is displayed in the first region, wherein the second set of edited records is any one of at least one of the edited record sets.

17. The method according to claim 16, characterized in that, The step of displaying the content corresponding to the currently displayed edit record in the first area includes: Perform any of the following processes: Starting from the position of the content corresponding to the first edit record in the currently displayed edit records, the content corresponding to the currently displayed edit record is displayed in the first area; If the currently displayed editing record spans multiple pages, the content corresponding to the currently displayed editing record will be displayed on the current page of the document, along with a prompt message. This prompt message indicates the page number corresponding to the editing record, or... By hiding content in the document that is unrelated to the currently displayed editing record, the content in the document corresponding to the currently displayed editing record is displayed on the current page. If the content corresponding to the currently displayed editing record cannot be fully displayed, a page-turning control is displayed. In response to a trigger operation on the page-turning control, at least a portion of the content corresponding to other editing records is displayed on the next page of the current page, wherein the other editing records are editing records in the second set of editing records other than the currently displayed editing record.

18. The method according to any one of claims 1 to 15, characterized in that, After displaying at least one set of edit records of the document, the method further includes: If the first content is the original content before the application of the first editing record, and if the editing operation corresponding to the first editing record is a deletion operation, a first display mode is applied to the content deleted in the document by the deletion operation, wherein the first display mode is different from the second display mode applied to the content that has not been deleted in the document; If the first content is the original content after applying the first edit record, and the editing operation corresponding to the first edit record is a new content operation, then for the new content added in the document by the new content operation, a third display mode is applied to the new content in the document, wherein the third display mode is different from both the first display mode and the second display mode.

19. The method according to any one of claims 1 to 15, characterized in that, The display of the first content in the document includes: Perform any of the following processes: The first content is displayed starting from the position corresponding to the first edit record of the first edit record; If the first content spans multiple pages, the content corresponding to the currently displayed first editing record will be shown on the current page of the document, along with a prompt message. The prompt message will indicate the page number corresponding to the first editing record, or... By hiding content in the document that is unrelated to the first edit record, the content in the document corresponding to the currently displayed first edit record is displayed on the current page. If the content corresponding to the currently displayed first edit record cannot be fully displayed, a page-turning control is displayed. In response to a trigger operation on the page-turning control, at least a portion of the content corresponding to other edit records is displayed on the next page of the current page. The other edit records are the first edit records in the first set of edit records other than the currently displayed first edit record.

20. The method according to any one of claims 1 to 15, characterized in that, If the first content is the edited content applied to the first set of edit records, the method further includes the following steps before displaying the first content in the document: If the first set of edit records includes edit records within a time window, and if the version of the first set of edit records is not the initial version, then the edit records in the edit record sets of each historical version prior to the initial version are merged to obtain a merged edit record. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record. If the first set of edit records includes a batch of edit records, and the version of the first set of edit records is not the initial version, then the edit records in the edit record sets of each historical version before the version are merged to obtain a merged edit record. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record. If the first set of edit records includes an edit record of a content unit, the edit records in the first set of edit records are merged to obtain a merged edit record. The merged edit record is then applied to the original content of the document to obtain the first content corresponding to the first edit record.

21. The method according to any one of claims 1 to 15, characterized in that, Before displaying at least one set of edit records of the document, the method further includes: The original content of the document is divided into multiple first paragraphs, wherein each first paragraph includes a first paragraph identifier; In response to an editing operation on the document, the content of the edited document is divided into a plurality of second paragraphs, wherein each second paragraph includes a second paragraph identifier, and the second paragraph identifier of the second paragraph is the same as the first paragraph identifier of the first paragraph at the same position in the document; For each second paragraph, if the second paragraph identifier of the second paragraph is different from all of the first paragraph identifiers, then the second paragraph is a newly added paragraph; if there is a target first paragraph identifier that is the same as the second paragraph identifier of the second paragraph, and the content of the first paragraph corresponding to the target first paragraph identifier is different from the second paragraph, then the second paragraph is a modified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content; if there is a target first paragraph identifier that is the same as the second paragraph identifier of the second paragraph, and the content of the first paragraph corresponding to the target first paragraph identifier is the same as the second paragraph, then the second paragraph is an unmodified paragraph, and the first paragraph with the same paragraph identifier as the second paragraph is deleted from the original content. The remaining first paragraph in the original content is treated as a deleted paragraph. The newly added paragraphs, modified paragraphs, and deleted paragraphs are grouped into a paragraph set according to their position in the document; The content in the paragraph set that differs from the original content is taken as at least one set of edit records in the document.

22. A document processing apparatus, characterized in that, The device includes: A collection display module is used to display a document and at least one set of edit records of the document, wherein each set of edit records includes at least one edit record of the document; A content display module is configured to display first content in the document in response to a trigger operation on a first set of edit records, wherein the first set of edit records is any set of edit records, the first content is content in the document corresponding to at least one first edit record, and the first edit record is the edit record included in the first set of edit records.

23. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, configured to execute computer-executable instructions or computer programs stored in the memory, implements the document processing method according to any one of claims 1 to 21.

24. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the document processing method according to any one of claims 1 to 21.

25. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the document processing method according to any one of claims 1 to 21.