A document version management method, system, device and readable storage medium
By defining content synchronization logic in document version management, multiple reading documents are generated, and automatic synchronization updates are performed when the content of the source document changes. This solves the problem of low efficiency in document version management, improves management efficiency, and optimizes the reader experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2022-10-31
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, document version management is inefficient and requires a cumbersome process to maintain different versions of document content.
By determining the content synchronization logic based on business scenarios, multiple reading documents are generated, and the content in the reading documents is automatically updated according to the logic when the content of the source document changes.
It improves the efficiency of document version management and ensures that the reader experience is not affected, especially when content is inserted or deleted, the reader's reading progress is not interrupted.
Smart Images

Figure CN115526161B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and more specifically to a document version management method, system, apparatus, and readable storage medium. Background Technology
[0002] Currently, when engaging in literary creation, users may create different versions of documents for various purposes. For example, when writing a novel, a user may make different modifications to the content, resulting in multiple different versions of the novel.
[0003] In real-world scenarios, maintaining different versions of document content typically involves a cumbersome process. For example, when a user needs to modify part of a published novel, they must first identify the affected versions and then modify each one individually. Clearly, this method of managing document versions is inefficient.
[0004] Therefore, there is an urgent need for a more efficient method for managing document versions. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a document version management method, a document version management system, a document version management device, and a computer-readable storage medium, which can improve the efficiency of document version management.
[0006] This invention provides a document version management method, the method comprising:
[0007] Determine one or more content synchronization logics based on the business scenario;
[0008] Based on the content synchronization logic, generate one or more reading documents corresponding to the source document; and
[0009] When the content in the source document changes, the content in the reading document is modified according to the content synchronization logic to synchronize the changed content in the source document to the reading document.
[0010] In another aspect, the present invention provides a document version management system, the system comprising:
[0011] The logic settings module is used to determine one or more content synchronization logics based on business scenarios;
[0012] The document generation module is used to generate one or more reading documents corresponding to the source document according to the content synchronization logic; and
[0013] The change synchronization module is used to modify the content in the reading document according to the content synchronization logic when the content in the source document changes, so as to synchronize the changed content in the source document to the reading document.
[0014] In another aspect, the present invention provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the method described above.
[0015] In another aspect, the present invention provides a document version management device, which includes a processor and a memory, the memory being used to store a computer program, which, when executed by the processor, implements the method described above.
[0016] In some embodiments of this application, one or more content synchronization logics are determined based on the business scenario, and reading documents of the source document are generated according to the content synchronization logic. Furthermore, if the content in the source document changes, the content in the source document is synchronized to the reading document according to the content synchronization logic. Thus, when the content in the source document changes, each reading document can be automatically updated according to the content synchronization logic, thereby improving the efficiency of document version management. Attached Figure Description
[0017] The features and advantages of the invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way. In the drawings:
[0018] Figure 1 A flowchart illustrating a document version management method provided in one embodiment of this application is shown;
[0019] Figure 2 A schematic diagram of a logical settings page provided in one embodiment of this application is shown;
[0020] Figure 3 This illustration shows a schematic diagram illustrating the relationship between the source document, content synchronization logic, and the document to be read, according to an embodiment of this application.
[0021] Figure 4 A schematic diagram illustrating chapter splitting provided in one embodiment of this application is shown;
[0022] Figure 5 A schematic diagram illustrating content customization provided in one embodiment of this application is shown;
[0023] Figure 6 A schematic diagram illustrating a new section provided in one embodiment of this application is shown;
[0024] Figure 7This illustration shows a schematic diagram of chapter deletion provided in one embodiment of this application;
[0025] Figure 8 A schematic diagram of the modules of a document version management system provided in one embodiment of this application is shown;
[0026] Figure 9 A schematic diagram of a document version management device provided in one embodiment of this application is shown. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] The document version management method provided in this application can be applied to electronic devices with content display capabilities. These electronic devices may include laptops, desktop computers, smartphones, tablets, etc. Of course, the document version management method provided in this application can also be applied to applications running on the aforementioned electronic devices. For example, this document version management method can be applied to browser software or novel reading software on these electronic devices.
[0029] Please see Figure 1 This is a flowchart illustrating a document version management method provided in one embodiment of this application. Figure 1 In China, document version control methods include the following steps:
[0030] Step S11: Determine one or more content synchronization logics based on the business scenario.
[0031] In some embodiments, content synchronization refers to synchronizing the content of a source document to a reading document. The reading document can be a version of the source document, and its content may not be entirely identical to that of the source document. The source document can be the original document used by the document's creator, while the reading document can be a different version of the source document obtained through varying degrees of modification. Typically, the reading permissions for the source document can be set by the document's creator, and by default, the source document will not be accessible to readers other than the creator. However, the reading permissions for the reading document can be granted to other readers. For example, in the context of creating online novels, the source document can be the original version created by the novel's author. This original version of the novel can subsequently be modified in different ways to obtain different versions of the novel. These modified versions of the novel can then serve as reading documents generated based on the source document. The modified versions of the novel can be made available to readers, while the original version is typically only accessible to the novel's author. Of course, in some scenarios, the source document can also be published as one of the reading documents without modification.
[0032] In this implementation, the business scenario can be characterized as the business requirement to generate a reading document from a source document. In practical applications, this business scenario could be, for example, changing the word count of chapters in the source document, merging or splitting chapters in the source document, or rewriting the content of some chapters in the source document. Content synchronization logic can be used to characterize the operation logic on the content of the source document when synchronizing content from it. The source document content here can be the content that needs to be synchronized from the source document. The content synchronization logic can differ for different business scenarios.
[0033] In some embodiments, the requirement to generate a reading document from a source document involves changing the word count of the source chapters in the source document. Correspondingly, content synchronization logic can be used to represent changes made to the source chapters in the source document. These changes can include merging or splitting the source chapters. That is, when synchronizing content from the source document, the content synchronization logic can merge or split the source chapters in the source document, making the synchronized chapters different from the original chapters in the source document, thereby achieving chapter conversion during the synchronization process.
[0034] Specifically, source chapters can be merged or split into chapters with a specified word count. For example, when synchronizing content in a source document according to content synchronization logic, source chapters in the source document can be merged or split into chapters of 200 words each. In this way, the synchronized chapters can have at least some chapters with different word counts compared to the source chapters in the source document.
[0035] In some embodiments, the requirement to generate a reading document for a source document involves replacing a specified source chapter in the source document. Correspondingly, content synchronization logic can be used to represent this replacement of the specified source chapter. Specifically, when synchronizing content from the source document, the specified source chapter is replaced with other content, and other source chapters in the source document are synchronized. For example, the content of source chapters 1 through 100 in the source document is replaced, and the content after the 100th source chapter is synchronized.
[0036] Understandably, content synchronization logic can include, but is not limited to, the logic listed above, depending on the specific business scenario. For example, content synchronization logic can also represent setting the font color in the source document. That is, when synchronizing content from the source document, the font color of the synchronized content can be reset according to the content synchronization logic.
[0037] In some embodiments, after the source document is created, one or more content synchronization logics can be set for the source document based on the business scenario. When synchronizing content from the source document based on different content synchronization logics, the operation logic for the source document content can be different, so that the reading documents synchronized under different content synchronization logics may not be exactly the same.
[0038] In some embodiments, when setting content synchronization logic for a source document, parameters related to the content synchronization logic can also be specified.
[0039] Specifically, when the content synchronization logic represents changes to source chapters in the source document, it can include a first parameter. The value of the first parameter can represent the number of words in each synchronized chapter after merging or splitting the source chapters. For example, assuming the first parameter is 200, it means that after splitting or merging the source chapters in the source document, each synchronized chapter has 200 words.
[0040] When the content synchronization logic represents the replacement of a specified source chapter in the source document, it can include a second parameter. The value of the second parameter can represent the specified source chapter to be replaced in the source document. For example, assuming the second parameter has a value of 1 to 100, it can represent replacing the first to the 100th source chapter in the source document, and synchronizing the other source chapters after the 100th source chapter.
[0041] In some embodiments, content synchronization logic can be configured for source documents via a logic settings page. Each source document can have its own corresponding logic settings page. For ease of understanding, please refer to the following references. Figure 2 This is a schematic diagram of a logical settings page provided in one embodiment of this application. Assume... Figure 2The logic settings page in the document is the logic settings page corresponding to the source document AA. The page displays three content synchronization logics by default, but only content synchronization logics B and C are selected, indicating that two content synchronization logics (i.e., content synchronization logic B and content synchronization logic C) have been set for the source document AA, and the relevant parameter values have been set for each content synchronization logic.
[0042] It should be noted that, Figure 2 This is merely an illustrative example of a logic settings page and does not constitute a limitation of this application. In practice, logic settings pages may include various forms, all of which should be within the scope of protection of this application.
[0043] Step S12: Based on the content synchronization logic, generate one or more reading documents corresponding to the source document.
[0044] For easier understanding, please refer to Figure 3 This is a schematic diagram illustrating the relationship between the source document, content synchronization logic, and the reading document, provided in one embodiment of this application. Figure 3 In this example, three content synchronization logics are set up for the source document, and three corresponding reading documents are generated for the source document. It is understandable that, depending on the different content synchronization logics, the operation logic on the content of the source document will differ during the content synchronization process, thus ensuring that the content in the different reading documents is not entirely identical.
[0045] In this embodiment, the source document can serve as the document for the author to edit. The reading document can serve as the document to be displayed to the reader. By setting content synchronization logic for the source document and generating the reading document based on the content synchronization logic, multiple reading documents with slightly different content can be generated on the reader's side for the same source document on the author's side, i.e., multiple versions of the reading document can be generated for the source document. The following describes the generation process of some reading documents.
[0046] In some embodiments, if the content synchronization logic represents a change to a source chapter in the source document, then when generating the corresponding reading document, the source chapter in the source document can be split or merged into reading chapters, and a reading document containing one or more reading chapters can be generated. That is, when generating the reading document according to this content synchronization logic, the source chapter in the source document will be changed during the content synchronization process, resulting in inconsistencies between the source chapter in the source document and the reading chapter in the reading document.
[0047] Specifically, source chapters in a source document can be split or merged into reading chapters of a specified word count. In some business scenarios where payment is based on chapters (such as novel subscription services), the pricing can be adjusted by changing the word count (i.e., the specified word count) of each reading chapter. For example, with the same pricing for each reading chapter, fewer words in a reading chapter result in a higher price; conversely, more words in a reading chapter result in a lower price.
[0048] See also Figure 4 This is a schematic diagram of chapter splitting provided for one embodiment of this application. Figure 4 In the text, a1 to a4 represent the source chapters in the source document, and b1 to b7 represent the reading chapters in the reading document. Figure 4 It can be seen that there are differences between the source chapters in the source document and the reading chapters in the reading document. The number of words in each reading chapter in the reading document is less than the number of words in each source chapter in the source document.
[0049] In some embodiments, if the content synchronization logic represents a replacement of a specified source chapter in the source document, then when generating the corresponding reading document, the replacement chapter for the specified source chapter can be obtained, and a reading document containing the replacement chapter can be generated. All other source chapters in the source document, except for the specified source chapter, can be synchronized to the reading document. This allows for customization of the content of the specified source chapter within the reading document.
[0050] Take the novel business as an example. After some novels are published, it may be necessary to rewrite some chapters in an attempt to attract or retain readers. In this case, the chapters that need to be replaced can be designated as source chapters, and the source chapters can be replaced in the reading document to customize the reading document.
[0051] For ease of understanding, please refer to the following: Figure 5 This is a schematic diagram illustrating content customization provided for one embodiment of this application. Figure 5 In the text, a1-a4 represent the source chapters in the source document. b3-b5 represent the reading chapters in the reading document, i.e., the content synchronized from the source document. b1-b2 represent the replacement chapters. This can be understood as... Figure 5 In the source and reading documents shown, the content of source chapters a3 and a4 can be the same as the content of reading chapters b3 to b5; however, the content of source chapters a1 and a2 can be different from the content of reading chapters b1 and b2.
[0052] Step S13: When the content in the source document changes, modify the content in the reading document according to the content synchronization logic to synchronize the changed content in the source document to the reading document.
[0053] In some embodiments, after generating the reading document corresponding to the source document, for the reading chapters in the reading document, the chapter content contained in the reading chapters can be identified, and the source chapter to which the chapter content belongs can be determined; then, a chapter association relationship can be established between at least a portion of the source chapters to which the chapter content belongs and the reading chapters.
[0054] Specifically, if all the content of a reading chapter belongs to the same source chapter, a chapter relationship can be established between the reading chapter and the source chapter; if the content of a chapter belongs to multiple source chapters, a chapter relationship can be established between the latest source chapter and the reading chapter; if the content of a chapter does not belong to any source chapter (for example, a custom chapter in a reading document does not belong to any source chapter), there is no need to establish a chapter relationship between the reading chapter and the source chapter.
[0055] See also Figure 4 and Figure 5 . Figure 4 If the content of reading chapter b1 belongs entirely to the source chapter a1, then a chapter association relationship can be established between reading chapter b1 and the source chapter a1; if the content of reading chapter b2 belongs to the source chapters a1 and a2, and since the source chapter a2 is the latest source chapter, then a chapter association relationship can be established between reading chapter b2 and the source chapter a2. Figure 5 In the document, reading chapters b1 and b2 are custom chapters. Since the content of these two chapters does not belong to any source chapter in the source document, it is not necessary to establish a chapter association relationship between reading chapters b1 and b2 and the source chapter.
[0056] Furthermore, through Figure 4 and Figure 5 It is clear that in certain sections of the document, each section may include content from multiple source sections (e.g., ...). Figure 4 In section b2 of the document, it is not easy to distinguish the content of different source sections. Therefore, if one section of the document includes the content of multiple source sections, the dividing positions of the content of different source sections in that section can be recorded to facilitate the distinction of the content of each source section based on the dividing positions.
[0057] In some embodiments, by establishing chapter associations, when the content of a source chapter changes, the relevant reading chapter in the reading document can be located and modified synchronously based on these associations. Specifically, the target source chapter in the source document whose content has changed can be identified first; then, based on the chapter associations, the target reading chapter in the reading document that includes the content of the target source chapter can be identified; and finally, the content of the target reading chapter can be modified according to the content synchronization logic.
[0058] for example Figure 4 In this context, assuming the target source chapter where content changes is a1, based on chapter relationships, the associated target reading chapter is b1. Therefore, following content synchronization logic, the changed content in source chapter a1 can be synchronized to reading chapter b1. However, through... Figure 4 It is clear that reading chapter b2 also includes some content from the source chapter a1, but reading chapter b2 does not establish a chapter association relationship with the source chapter a1, making it impossible to find the content of the source chapter a1 included in reading chapter b2 through the chapter association relationship.
[0059] Therefore, after finding all target reading chapters related to the target source chapter through chapter association, the latest target reading chapter can be found among these target reading chapters. Then, in the next reading chapter of the latest target reading chapter, it can be checked whether there is a dividing position. If there is, the content before the first dividing position in the next reading chapter can be identified as the content of the target source chapter, and the content before the first dividing position in the next reading chapter can be modified simultaneously.
[0060] Continue with Figure 4 For example, if the content of source chapter a1 changes, the first step is to find the reading chapter b1 associated with source chapter a1 based on chapter relationships. Here, since only one reading chapter b1 is associated with source chapter a1, reading chapter b1 is the latest reading chapter. In the next reading chapter b2 of reading chapter b1, there is a dividing point. The content before this dividing point can be identified as the content of source chapter a1, and this part of the content can then be modified synchronously.
[0061] In some embodiments, if a new source chapter is inserted into the source document, the second insertion position of the new source chapter's content in the reading document can be determined based on the first insertion position of the new source chapter in the source document and the chapter association relationship. Then, according to the content synchronization logic, the content of the new source chapter is inserted at the second insertion position in the reading document. Specifically, the next source chapter after the first insertion position can be determined in the source document. Then, based on the chapter association relationship, the starting reading chapter in the reading document that includes the content of the next source chapter can be determined. The second insertion position is determined based on the position of the starting reading chapter and the position of the reading chapter preceding the starting reading chapter. Here, the starting reading chapter refers to the first reading chapter in the reading document that includes the content of the next source chapter. The second insertion position can be the position between the starting reading chapter and the preceding reading chapter.
[0062] See also Figure 6 This is a newly added schematic diagram for one embodiment of this application. Figure 6In this example, source chapter a5 is a new source chapter inserted into the source document. The next source chapter after source chapter a5 is source chapter a3. Based on the chapter relationships, the starting reading chapter in the document that includes the content of source chapter a3 can be determined as reading chapter b4, and the preceding reading chapter of reading chapter b4 is reading chapter b3. Therefore, the position between reading chapter b4 and reading chapter b3 can be used as the second insertion position. That is, according to the content synchronization logic, the content of the new source chapter is inserted between reading chapter b4 and reading chapter b3.
[0063] Furthermore, through Figure 6 It can be seen that reading chapter b4 includes part of the content of source chapter a2. After inserting the content of the new source chapter between reading chapter b4 and reading chapter b3, the interval of the newly inserted content of source chapter a2 is interrupted in the reading document, thus causing content disorder in the reading document. Therefore, in the source document, we can determine the previous source chapter before the first insertion position. If the starting reading chapter includes the content of the previous source chapter, we can move the content of the previous source chapter included in the starting reading chapter before the content of the new source chapter. Figure 6 For example, if the previous source chapter before the first insertion point is source chapter a2, and the reading chapter b4 includes content from source chapter a2, then the content from source chapter a2 in the reading chapter b4 can be moved before the content of the new source chapter. This ensures that the content of the previous source chapter remains continuous within the reading document, making it easier for the reader to view.
[0064] In some embodiments, if an existing source chapter is deleted from the source document, a target reading chapter in the reading document that includes the content of the existing source chapter can be determined based on chapter relationships. If the target reading chapter does not include the content of other source chapters besides the existing source chapter, the target reading chapter is deleted. If the target reading chapter includes the content of other source chapters, the content of the existing source chapter is deleted from the target reading chapter, while the content of the other source chapters is retained.
[0065] Furthermore, after deleting content from existing source chapters in the target reading chapter, if other source chapters do not have a chapter association with the target reading chapter, at least some of the other source chapters will have a chapter association with the target reading chapter.
[0066] See also Figure 7 This is a schematic diagram illustrating the deletion of a section according to an embodiment of this application. Figure 7In this example, the existing source chapter to be deleted from the source document is source chapter a2. Based on the chapter relationships, the target reading chapters in the reading document that include the content of source chapter a2 are determined as reading chapters b2, b3, and b4. Reading chapter b3 only includes the content of source chapter a2, reading chapter b4 includes the content of other source chapters besides source chapter a2 (the content of source chapter a3), and reading chapter b2 includes the content of other source chapters besides source chapter a2 (the content of source chapter a1). Therefore, we can delete reading chapter b3, delete the content of source chapter a2 in reading chapter b2, and retain the content of source chapter a1; similarly, we can delete the content of source chapter a2 in reading chapter b4 and retain the content of source chapter a3. Furthermore, in reading chapter b2, source chapter a1 is not associated with reading chapter b2 (see the logic for establishing chapter relationships above for details). Therefore, after deleting the content of source chapter a2 in reading chapter b2, it is necessary to establish a chapter relationship between source chapter a1 and reading chapter b2. In reading chapter b4, a chapter association has already been established with the source chapter a3, so it's unnecessary to re-establish this association between reading chapter b4 and source chapter a3. Therefore, deleting a source chapter in the source document will automatically delete that chapter in the reading document.
[0067] In some embodiments, after inserting or deleting a source chapter in the source document, the content can be inserted or deleted synchronously in the reading document. This eliminates the need to regenerate the reading document for the source document, ensuring that the reader's reading progress is not affected after inserting or deleting a chapter in the source document, thus improving the reader experience.
[0068] It is understandable that the above modification operations for the reading document can be applied to any reading document of the source document. That is, when the content in the source document changes, each reading document of the source document can be modified separately.
[0069] In some embodiments, when multiple source documents exist, when displaying search results or recommending source documents to the reader, a target document can be selected from the multiple documents to be displayed. This avoids showing all documents to the reader in search or recommendation scenarios, making it easier for the reader to browse and improving the reader experience.
[0070] When determining the target reading document, the system obtains the reader's account and the source document's name. Based on the combination of reader account and document name, it selects the target reading document from multiple reading documents and displays it to the reader. Specifically, the combination of reader account and document name can be represented as the key value A1_{userId}, and the value of key A1_{userId} can be set to Bx. Here, A1 represents the document name, userId represents the reader account, and Bx is the version number of the target reading document. When the reader searches for the source document for the first time, or when the system recommends the source document to the reader for the first time, Bx can be the default value. If the reader selects a different version of the reading document, Bx can be updated to the version number of the selected reading document, and the latest version of the reading document will be displayed to the reader the next time the search results or recommendation list of the source document is displayed. For example, if the target reading document is set to version 01 by default, and the reader selects version 02, the value of Bx can be updated to 02, and version 02 will be displayed to the reader the next time the search results or recommendation list of the source document is displayed. In this way, readers can access the same version of the document they read each time, which can improve the reader experience.
[0071] In some embodiments of this application, one or more content synchronization logics are determined based on the business scenario, and reading documents of the source document are generated according to the content synchronization logic. Furthermore, if the content in the source document changes, the content in the source document is synchronized to the reading document according to the content synchronization logic. Thus, when the content in the source document changes, each reading document can be automatically updated according to the content synchronization logic, thereby improving the efficiency of document version management.
[0072] Please see Figure 8 This is a schematic diagram of a document version control system provided in one embodiment of this application. The document version control system includes:
[0073] The logic settings module is used to set one or more content synchronization logics for the source document;
[0074] The document generation module is used to generate one or more reading documents corresponding to the source document according to the content synchronization logic; and
[0075] The change synchronization module is used to modify the content in the reading document according to the content synchronization logic when the content in the source document changes, so as to synchronize the changed content in the source document to the reading document.
[0076] Please see Figure 9This is a schematic diagram of a document version management device provided in one embodiment of this application. The document version management device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it implements the above-described document version management method.
[0077] The processor can be a central processing unit (CPU). It can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
[0078] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods in the embodiments of this invention. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby implementing the methods described in the above embodiments.
[0079] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0080] One embodiment of this application also provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the above-described document version management method.
[0081] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A document version management method characterized by, The method includes: One or more content synchronization logics are determined based on the business scenario; the business scenario represents the business requirement of generating a reading document from a source document; the content synchronization logic is used to represent the operation logic for the content of the source document when synchronizing content from the source document; Based on the content synchronization logic, one or more reading documents corresponding to the source document are generated; and When the content in the source document changes, the content in the reading document is modified according to the content synchronization logic to synchronize the changed content in the source document to the reading document; After generating the reading document corresponding to the source document, the method further includes: For each reading chapter in the document, identify the chapter content contained in the reading chapter and determine the source chapter to which the chapter content belongs; Establish a chapter association relationship between at least a portion of the source chapters to which the content of the aforementioned chapter belongs and the reading chapter; Modifying the content in the reading document according to the content synchronization logic includes: Identify the target source section in the source document where the content has changed; Based on the aforementioned chapter relationships, the target reading chapter in the reading document that includes the content of the target source chapter is determined; Modify the content of the target reading chapter according to the content synchronization logic described above.
2. The method of claim 1, wherein, The content synchronization logic is used to represent changes made to the source chapters in the source document; The process of generating the reading document corresponding to the source document includes: The source chapters in the source document are split or merged into reading chapters, and a reading document containing one or more of the reading chapters is generated.
3. The method of claim 2, wherein, The step of splitting or merging source chapters in the source document into reading chapters includes: Split or merge the source chapters in the source document into reading chapters of a specified word count.
4. The method of claim 1, wherein, The content synchronization logic is used to represent the replacement of a specified source chapter in the source document; The process of generating the reading document corresponding to the source document includes: Obtain the replacement chapter for the specified source chapter, and generate a reading document containing the replacement chapter; Synchronize all source chapters in the source document except for the specified source chapter to the reading document.
5. The method of claim 1, wherein, The step of establishing a chapter association relationship between at least a portion of the source chapters to which the chapter content belongs and the reading chapter includes: If the content of the chapter belongs to multiple source chapters, a chapter association relationship will be established between the latest source chapter and the reading chapter.
6. The method of claim 1, wherein, After establishing a chapter association between at least some of the source chapters to which the chapter content belongs and the reading chapter, the method further includes: In the reading document, if one of the reading chapters includes the content of multiple source chapters in the source document, the dividing positions of the content of different source chapters in the reading chapter are recorded so as to distinguish the content of each source chapter in the reading chapter based on the dividing positions.
7. The method of claim 1, wherein, Modifying the content in the reading document according to the content synchronization logic includes: If a new source chapter is inserted into the source document, the second insertion position of the content of the new source chapter in the reading document is determined based on the first insertion position of the new source chapter in the source document and the chapter association relationship; According to the content synchronization logic, the content of the new source chapter is inserted at the second insertion position in the reading document.
8. The method of claim 7, wherein, Determining the second insertion position of the content of the new source chapter in the reading document includes: In the source document, determine the next source chapter after the first insertion position; Based on the aforementioned chapter relationships, determine the starting reading chapter in the reading document that includes the content of the next source chapter; The second insertion position is determined based on the position of the starting reading chapter and the position of the preceding reading chapter.
9. The method of claim 8, wherein, Inserting the content of the new source chapter at the second insertion position in the reading document includes: In the source document, determine the previous source chapter preceding the first insertion position; If the starting reading chapter includes the content of the previous source chapter, the content of the previous source chapter included in the starting reading chapter is moved before the content of the new source chapter.
10. The method as described in claim 1, characterized in that, The method further includes: If an existing source chapter is deleted from the source document, the target reading chapter in the reading document that includes the content of the existing source chapter is determined based on the chapter association relationship; If the target reading chapter does not include content from any other source chapters besides the existing source chapters, the target reading chapter will be deleted.
11. The method as described in claim 10, characterized in that, The method further includes: If the target reading chapter includes the content of the other source chapters, delete the content of the existing source chapters in the target reading chapter, and retain the content of the other source chapters.
12. The method as described in claim 11, characterized in that, After deleting the content of the existing source chapter from the target reading chapter, the method further includes: If the other source chapters do not have a chapter association relationship with the target reading chapter, at least some of the other source chapters will have a chapter association relationship established with the target reading chapter.
13. The method as described in claim 1, characterized in that, The method further includes: When there are multiple reading documents in the source document, if the search results of the source document are displayed to the reader or the source document is recommended to the reader, a target reading document is selected from the multiple reading documents and used as the document to be displayed to the reader.
14. The method of claim 13, wherein, The step of selecting a target reading document from multiple reading documents as the document to be displayed to the reader includes: Obtain the reader's account and the document name of the source document; Based on the combination of the reader account and the document name, the target reading document corresponding to the combination is selected from the multiple reading documents and displayed to the reader.
15. A document version control system, characterized in that, The version management system includes: The logic setting module is used to determine one or more content synchronization logics based on a business scenario; the business scenario represents the business requirement of generating a reading document from a source document; the content synchronization logic represents the operation logic for the content of the source document when synchronizing content from the source document. The document generation module is used to generate one or more reading documents corresponding to the source document according to the content synchronization logic; and The change synchronization module is used to modify the content in the reading document according to the content synchronization logic when the content in the source document changes, so as to synchronize the changed content in the source document to the reading document; After generating the reading document corresponding to the source document, the system further includes: For each reading chapter in the document, identify the chapter content contained in the reading chapter and determine the source chapter to which the chapter content belongs; Establish a chapter association relationship between at least a portion of the source chapters to which the content of the aforementioned chapter belongs and the reading chapter; Modifying the content in the reading document according to the content synchronization logic includes: Identify the target source section in the source document where the content has changed; Based on the aforementioned chapter relationships, the target reading chapter in the reading document that includes the content of the target source chapter is determined; Modify the content of the target reading chapter according to the content synchronization logic described above.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 14.
17. A document version management apparatus characterized by comprising: The version management device includes a processor and a memory, the memory being used to store a computer program that, when executed by the processor, implements the method as described in any one of claims 1 to 14.