Method, apparatus, and storage medium for document collaboration
The method improves document collaboration efficiency by creating controlled collaboration spaces within document collaboration systems, reducing unnecessary version creation and enhancing content management through controlled editing and synchronization.
Patent Information
- Application Number
- JP2024573140
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-06-10
- Filing Date
- 2023-06-07
- Publication Date
- 2025-06-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing document collaboration systems face inefficiencies due to the need for multiple draft versions and the display of all draft versions to all collaborators, leading to repeated editing in the same document areas and reduced collaboration efficiency.
A method, apparatus, and storage medium for document collaboration that involves creating a collaboration space for a document area, generating edited documents based on edit information from the collaboration space, and managing sub-spaces and parallel spaces to control editing permissions and content synchronization.
This approach enhances collaboration efficiency by allowing controlled editing within defined spaces, reducing unnecessary version creation, and improving content management by synchronizing edits across collaboration spaces.
Smart Images

Figure 2025519638000001_ABST
Abstract
Description
Cross-reference to Related Applications
[0001] This application claims the priority of a Chinese patent application with the application number 202210657172.0 and the invention title "Method, Apparatus, and Storage Medium for Document Collaboration", which was filed with the China National Intellectual Property Administration on June 10, 2022, and all of its contents are incorporated herein by reference.
Technical Field
[0002] Embodiments of the present disclosure relate to the technical field of computers, and in particular, to a method, an apparatus, and a storage medium for document collaboration.
Background Art
[0003] Some document collaboration functions support collaborative editing of the same document by multiple people, and all historical versions of the document can be viewed by all collaborators.
[0004] In actual work, one document needs to be edited by different parts by different teams or some data needs to be masked from different teams.
[0005] In the above scenario, before a document is finally determined, it is necessary to create many draft versions. When multiple people cooperate, all draft versions are displayed to everyone, so the same document area is edited repeatedly multiple times, and the efficiency of collaborative editing and creation of the document is reduced.
Summary of the Invention
Means for Solving the Problems
[0006] In view of this, in order to solve some or all of the above technical problems, embodiments of the present disclosure provide a method, an apparatus, and a storage medium for document collaboration.
[0007] In a first aspect, embodiments of the present disclosure provide a method for document collaboration, and the method includes A step of obtaining a target document including a document area; A step of creating a collaboration space for the document area; A step of generating an edited document of the target document based on first edit information of the collaboration space, wherein the first edit information is determined by the collaboration space.
[0008] In the method according to any embodiment of the present disclosure, the step of creating a collaboration space for the document area includes: Establishing an association between the document area and a first user having an operation right for the document area, and creating a collaboration space for the document area.
[0009] In the method according to any embodiment of the present disclosure, the operation right includes a first editing right to edit the document area via the collaboration space, and the first edit information is information created by the first user with the first editing right.
[0010] In the method according to any embodiment of the present disclosure, the step of generating an edited document of the target document based on first edit information of the collaboration space includes: When a first confirmation operation on the first edit information is detected, obtaining the content of the document area in the target document based on the first edit information.
[0011] In the method according to any embodiment of the present disclosure, the document area includes a sub-area, and after the step of creating a collaboration space for the document area, the method further includes: A step of creating a sub-space for the sub-area; A step of determining first edit information of the collaboration space based on second edit information of the sub-space, wherein the second edit information is determined by the sub-space.
[0012] In the method according to any embodiment of the present disclosure, the step of creating a subspace of the sub-region includes establishing an association between the sub-region and a second user, and creating a subspace of the sub-region, where the second user has read-only permission or second editing permission for the sub-region, and the second editing permission is the permission to edit the sub-region through the subspace, when the second user has the second editing permission, the second editing information is the information created by the second user with the second editing permission.
[0013] In the method according to any embodiment of the present disclosure, the step of determining the first editing information of the collaboration space based on the second editing information of the subspace includes when a second confirmation operation for the second editing information is detected, including the step of obtaining the content of the sub-region in the collaboration space based on the second editing information.
[0014] In the method according to any embodiment of the present disclosure, after the step of creating the collaboration space of the document region, the method further includes creating a parallel space of the document region, and in the step of generating an edited document of the target document based on the first editing information of the collaboration space, generating an edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space, where the third editing information is determined by the parallel space.
[0015] In the method according to any embodiment of the present disclosure, the step of creating a parallel space of the document region includes establishing an association between the document region and a third user, and creating a parallel space of the document region.
[0016] In the method according to any embodiment of the present disclosure, when the step of creating the collaboration space for the document area includes the step of establishing an association between the document area and a first user, the third user and the first user who creates a parallel space corresponding to the third user have the same permissions for the document area, and the same permissions are read-only permissions or first editing permissions.
[0017] In the method according to any embodiment of the present disclosure, the step of generating an edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space includes: When a first confirmation operation for the first editing information is detected, the step of obtaining first content of the document area in the target document based on the first editing information; When a third confirmation operation for the third editing information is detected, the step of obtaining second content of the document area in the target document based on the third editing information; And the step of generating an edited document of the target document based on the first content and the second content.
[0018] In the method according to any embodiment of the present disclosure, the method further includes: The step of switching the content displayed through the collaboration space to the obtained content of the document area in the target document.
[0019] In the method according to any embodiment of the present disclosure, the method further includes: When a viewing request is detected and the user who initiated the viewing request has corresponding read-only permissions, the step of displaying the target content is further included. When the above browsing request indicates browsing the content of the document area in the above collaboration space, the above target content is the content of the document area in the above collaboration space, When the above browsing request indicates browsing the content of the sub-area in the above sub-space, the above target content is the content of the sub-area in the above sub-space, When the above browsing request indicates browsing the content of the document area in the above parallel space, the above target content is the content of the document area in the above parallel space.
[0020] In the method according to any embodiment of the present disclosure, the above method When a selection operation on the document area in the above target document is detected, determining each historical version of the document area selected by the above selection operation and marking the differences between the above historical versions, where each of the above historical versions includes first editing information, second editing information, third editing information, and the information before editing of the above document area; And the step of displaying the above historical versions and the above differences.
[0021] In the method according to any embodiment of the present disclosure, the above step of generating the document after editing the above target document When there is a common area in at least two document areas of at least two of the above collaboration spaces, determining the number of target collaboration spaces for editing the content segment of the above common area; When the above number is 1, determining the content segment obtained by the editing in the above target collaboration space as the content in the document after editing the above target document; When the above number is greater than 1, determining, as the content in the document after editing the target document, the content segment obtained by editing in a single target collaboration space selected by the user who created the target collaboration space.
[0022] In a second aspect, embodiments of the present disclosure provide an apparatus for document collaboration, the apparatus including: An acquisition unit configured to acquire a target document including a document area; A first creation unit configured to create a collaboration space for the document area; A generation unit configured to generate a document after editing the target document based on first edit information of the collaboration space, where the first edit information is determined by the collaboration space.
[0023] In the apparatus according to any embodiment of the present disclosure, the first creation unit is configured to: Establish an association between the document area and a first user having operation authority over the document area, and create a collaboration space for the document area.
[0024] In the apparatus according to any embodiment of the present disclosure, the operation authority includes a first edit authority to edit the document area through the collaboration space, and the first edit information is information created by the first user with the first edit authority.
[0025] In the apparatus according to any embodiment of the present disclosure, the generation unit is configured to: When a first confirmation operation on the first edit information is detected, acquire the content of the document area in the target document based on the first edit information.
[0026] In the apparatus according to any embodiment of the present disclosure, the document area includes sub-areas. The above device a second creation unit configured to create a subspace of the above sub-region, a first determination unit configured to determine first edit information of the above collaboration space based on second edit information of the above subspace, wherein the second edit information is determined by the above subspace, and further includes.
[0027] In the device according to any embodiment of the present disclosure, the above second creation unit is configured to establish an association between the above sub-region and a second user, and create a subspace of the above sub-region, the second user has read-only permission or second edit permission for the above sub-region, and the second edit permission is the permission to edit the above sub-region through the above subspace, when the above second user has the above second edit permission, the above second edit information is information created by the above second user with the above second edit permission.
[0028] In the device according to any embodiment of the present disclosure, the above first determination unit is configured to obtain the content of the above sub-region in the above collaboration space based on the above second edit information when a second confirmation operation for the above second edit information is detected.
[0029] In the device according to any embodiment of the present disclosure, the above device further includes a third creation unit configured to create a parallel space of the above document region, the above generation unit is configured to generate an edited document of the above target document based on the first edit information of the above collaboration space and the third edit information of the above parallel space, and the third edit information is determined by the above parallel space.
[0030] In the device according to any embodiment of the present disclosure, the above third creation unit configured to establish an association between the document area and a third user and create a parallel space for the document area.
[0031] In an apparatus according to any embodiment of the present disclosure, when the step of creating a collaboration space for the document area includes the step of establishing an association between the document area and a first user, the third user and the first user who creates a parallel space corresponding to the third user have the same permissions for the document area, and the same permissions are read-only permissions or first editing permissions.
[0032] In an apparatus according to any embodiment of the present disclosure, the generating unit when a first confirmation operation for the first editing information is detected, obtains first content of the document area in the target document based on the first editing information, when a third confirmation operation for the third editing information is detected, obtains second content of the document area in the target document based on the third editing information, is configured to generate an edited document of the target document based on the first content and the second content.
[0033] In an apparatus according to any embodiment of the present disclosure, the apparatus further includes an adjustment unit configured to switch the content displayed via the collaboration space to the acquired content of the document area in the target document.
[0034] In an apparatus according to any embodiment of the present disclosure, the apparatus further includes a first display unit configured to display target content when a browsing request is detected and the user who initiated the browsing request has corresponding read-only permissions. When the browsing request indicates browsing the content of the document area in the collaboration space, the target content is the content of the document area in the collaboration space, When the browsing request indicates browsing the content of the sub-area in the sub-space, the target content is the content of the sub-area in the sub-space, When the browsing request indicates browsing the content of the document area in the parallel space, the target content is the content of the document area in the parallel space.
[0035] In the apparatus according to any embodiment of the present disclosure, the apparatus a second determination unit configured to determine each historical version of the document area selected by the selection operation and mark the differences between the historical versions when a selection operation on the document area in the target document is detected, where each historical version includes first editing information, second editing information, third editing information, and information before editing of the document area, and a second display unit configured to display each historical version and the differences.
[0036] In the apparatus according to any embodiment of the present disclosure, the generation unit determines the number of target collaboration spaces for editing the content segment of the common area when there is a common area in at least two document areas of at least two of the collaboration spaces, when the number is 1, determines the content segment obtained by editing in the target collaboration space as the content in the edited document of the target document, When the above number is greater than 1, it is configured to determine, as the content in the document after editing the target document, the above content segment obtained by editing in a single above target collaboration space selected by the creator of the above target collaboration space.
[0037] In a third aspect, an embodiment of the present disclosure is a memory storing a computer program, a processor that executes the computer program stored in the above memory, and when the computer program is executed, realizes a method according to any embodiment of the method for document collaboration in the above first aspect of the present disclosure, and provides an electronic device including the same.
[0038] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium that, when the computer program is executed by a processor, realizes a method according to any embodiment of the method for document collaboration in the above first aspect.
[0039] In a fifth aspect, an embodiment of the present disclosure provides a computer program including computer-readable code, and when the computer-readable code is executed by a device, causes a processor in the device to execute instructions for realizing each step in a method according to any embodiment of the method for document collaboration in the above first aspect.
[0040] In the method for document collaboration according to the embodiments of the present disclosure, a target document including a document area is acquired, then a collaboration space for the above document area is created, and finally, based on first edit information of the above collaboration space, a document after editing the above target document is generated, and the above first edit information is determined by the above collaboration space. Thereby, a document after editing the target document can be generated using the collaboration space, contributing to improving the efficiency of collaborative editing and generation of documents.
Brief Description of the Drawings
[0041]
Figure 1A
Figure 1B
Figure 2
Figure 3A
Figure 3B
Figure 4A
Figure 4B
Figure 5A
Figure 5B
Figure 6
Figure 7
Embodiments for Carrying Out the Invention
[0042] Hereinafter, the present invention will be further described with reference to the drawings and specific embodiments.
[0043] Hereinafter, various exemplary embodiments of the present disclosure will be described in detail with reference to the drawings. Unless otherwise specified, the relative arrangements of the members and steps described in these embodiments, numerical expressions, and numerical values do not limit the scope of the present disclosure.
[0044] As can be understood by those skilled in the art, terms such as "first", "second", etc. in the embodiments of the present disclosure are used to distinguish different steps, devices, modules, etc., and do not represent any specific technical meaning, nor do they represent the logical order between them.
[0045] Furthermore, in the embodiments of the present disclosure, it should be understood that "a plurality" may refer to two or more, and "at least one" may refer to one, two or more.
[0046] Furthermore, it should be understood that any component, data or structure mentioned in the embodiments of the present disclosure may generally be understood as one or more, unless specifically limited or otherwise suggested by the context of the specification.
[0047] In addition, the term "and / or" in the present disclosure represents a relationship for explaining related objects, indicating that three relationships may exist. For example, A and / or B can represent three cases: simply A exists, A and B exist simultaneously, and simply B exists. Also, the character " / " in the present disclosure generally indicates that the related objects before and after are in an "or" relationship.
[0048] Furthermore, the description of each embodiment in the present disclosure focuses on the differences between the embodiments, and for the same or similar points, reference may be made to each other. For the sake of brevity, it should be understood that they will not be repeatedly described one by one here.
[0049] The following description of at least one exemplary embodiment is essentially exemplary only and in no way limits the present disclosure and its application or use.
[0050] Although the techniques, methods and devices known to those skilled in the art have not been discussed in detail, where appropriate, the above techniques, methods and devices should be regarded as part of the specification.
[0051] In addition, in order for similar reference numerals and alphabets to represent similar elements in the following drawings, once an element is defined in one drawing, there is no need to further consider it in subsequent drawings.
[0052] In addition, the embodiments and features in the embodiments of the present disclosure can be combined with each other as long as they do not conflict. To facilitate the understanding of the embodiments of the present disclosure, the present disclosure will be described in detail below with reference to the drawings and by way of examples. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present disclosure.
[0053] In addition, the users described in the present disclosure (including the first user, the second user, the third user, the user who creates the target document, the user who creates the collaboration space, the user who has the permission to edit the target document, etc.) can be distinguished using user identifiers. For example, the user identifier may be a login account. In this scenario, when different people log in using the same account, the different people may be regarded as the same user. When the same person logs in using different accounts respectively, the same person who logs in to different accounts may be regarded as different users.
[0054] FIG. 1A is a flowchart of a first method for document collaboration according to an embodiment of the present disclosure. As shown in FIG. 1A, the method specifically includes the following steps 101 to 103.
[0055] 101. Obtain a target document.
[0056] In the embodiments of the present disclosure, the execution subject of the method for document collaboration (for example, a server, a terminal device, a device for document collaboration, etc.) can obtain a target document.
[0057] Here, the above target document includes a document area.
[0058] The above target document may be any document. As an example, the target document may be a document to be edited. For example, the target document may be a document in a format such as.doc,.docx,.xlsx,.xls,.ppt, etc. The document area may be all or part of the area in the target document. When the target document is a PPT, the document area may be one or more pages in the PPT, or all or part of the area in one or more pages in the PPT. When the target document is an image, the document area may be the position of the text in the image, and the editing target of the document area in the image may be text, color, etc.
[0059] 102. Create a collaboration space for the above document area.
[0060] In this embodiment, the above execution entity can create a collaboration space for the above document area.
[0061] Here, the collaboration space may be a virtual space for editing or making read-only the content in the above document area.
[0062] The above collaboration space may be created by an administrator of the target document (for example, the user who created the target document) selecting a document area (for example, the content of the document, the page number of the document, etc.) from the target document. In the process of creating the collaboration space, the user who created the target document can also set a first user so that the first user has at least read-only permission for the document area. Also, in the process of creating the collaboration space, a first editing permission may be set for the first user. Here, the first editing permission is the permission to edit all or part of the content in the above document area.
[0063] Also, after forming a collaboration space, the association between the document area and the collaboration space may be changed. For example, after selecting document area A to form collaboration space A, document area B may be selected, and then the collaboration space A may be selected. Specifically, when document area B is selected, the user can be presented with the created collaboration spaces (including collaboration space A) in a pop-up window and be allowed to select one from them. When the user selects collaboration space A, both document area A and document area B are associated with collaboration space A. That is, the first user of collaboration space A has at least read-only permissions for at least document area A and document area B.
[0064] By creating a collaboration space, a collaborative editing method for the content of the document area can be formed, and the result of the collaborative editing method can affect the content that needs to be edited.
[0065] In each collaboration space, the above document areas are edited independently of each other. That is, the first edit information generated by editing within a single collaboration space is not visible to other first users in the at least one collaboration space other than the single collaboration space before being updated to the target document. Thus, by creating a plurality of collaboration spaces and setting different permissions (e.g., read-only permission, first edit permission to edit different contents in the document area) for the first users of each collaboration space, different first users between collaboration spaces or within a collaboration space can have different first edit permissions. Here, as the permissions between spaces, for example, first users of different collaboration spaces cannot view and edit the contents in a collaboration space where they do not have permissions across collaboration spaces, the first user can only edit a part (e.g., the first sentence of the content) of the contents in the document area, or the content edited by the first user only affects a part of the above content.
[0066] When selecting the above document area, the document area may or may not contain content, that is, the document area may be empty content.
[0067] The users who can enter the collaboration space and view the above document area may include at least one of the administrator of the target document (e.g., the user who created the target document) and the first user. Also, when the first user can enter the collaboration space and view the above document area, viewing of the document area by other users can also be realized by invitation from the first user. Preferably, after entering the collaboration space, in addition to having the viewing permission for the above document area, the corresponding user can have the edit permission (i.e., the first edit permission) for a part or all of the above document area.
[0068] The administrator of the target document (e.g., the user who created the target document) can have the highest authority over the target document. For example, the authority to edit or delete the target document, the authority to create a collaboration space for the document area in the target document, etc.
[0069] In fact, a link can be generated for each collaboration space. When the first user clicks on the link, they can enter the collaboration space and view (or view and edit) all or part of the content of the target document. Other users except the first user cannot view (or view and edit) any content of the target document when they click on the link. The number of each first user (i.e., the user designated for the collaboration space) can be one or more. Each first editing authority can correspond to the editing range of the above document area. Different first users in the same collaboration space have the same authority (e.g., read-only authority or the first editing authority).
[0070] As an example, the collaboration spaces of Document A (i.e., the above target document) include Collaboration Space A and Collaboration Space B. The first users of the Collaboration Space A include First User A, First User B, and First User C, and the first users of the Collaboration Space B include First User a and First User b. The first editing authority of the Collaboration Space A enables viewing and editing of Document Area A of Document A, and the authority of the Collaboration Space B can be set to read-only for Document Area B of Document A (only viewing is possible, but editing is not possible) (i.e., read-only authority).
[0071] Accordingly, in the above example, the first users A, B, and C can all view and edit the document area A of document A, and the first users a and b can both make the document area B of document A read-only (viewable but not editable). Also, any one of the first users A, B, and C can edit a copy of the document area A of document A via the collaboration space A. However, since the object of editing is a copy, in the collaboration space A, the content (i.e., the first edit information) entered by editing the copy of the document area A of document A is not visible to the first users (including the first users a and b) in the collaboration space B before being updated to document A.
[0072] Here, one or more collaboration spaces may be specified.
[0073] In some selectable implementations of this embodiment, the above execution entity can create a collaboration space for the above document area by executing the above step 102 as follows.
[0074] Establish an association between the above document area and the first user, and create a collaboration space for the above document area. Here, the first user has the operation authority for the above document area. The operation authority may include read-only authority or first edit authority.
[0075] It should be understood that in the above selectable implementation, first users with different operation authorities can view or edit the document area of the target document independently in each collaboration space, thereby improving the efficiency of document collaboration.
[0076] 103. Generate an edited document of the above target document based on the first edit information of the above collaboration space.
[0077] In an embodiment of the present disclosure, the execution entity can generate an edited document of the target document based on the first editing information of the collaboration space.
[0078] The first editing information is determined by the collaboration space. Specifically, the first editing information may be contents such as characters and images input by editing the document area of the target document in the collaboration space.
[0079] In some selectable implementations of this embodiment, the execution entity can also share a part of the content of the target document (or the edited document) by creating a collaboration space for the target document (or the edited document).
[0080] It should be understood that since the first user in the collaboration space can view a part or all of the content of the target document (or the edited document) in the collaboration space, by creating a collaboration space for the target document and sharing a part of the content of the target document (or the edited document), the first user related to the collaboration space can view a part of the content.
[0081] In some selectable implementations of this embodiment, when an association between the document area and the first user is established, a collaboration space for the document area is created, and the first user has the operation authority for the document area, the operation authority may include a first editing authority for editing the document area through the collaboration space, and the first editing information is the information generated by the first user according to the first editing authority.
[0082] Here, the first editing right may be the right to edit all or part of the area in the above document area. The above first editing information is determined by the above collaboration space. For example, the first editing information may be the characters input by the first user via the collaboration space.
[0083] The above association can be established in various ways. For example, the identifier of the collaboration space (e.g., the name of the collaboration space) and the identifier of the first user (e.g., the user account) may be associated and stored, or the identifier of the document area and the identifier of the first user (e.g., the user account) may be associated and stored.
[0084] In the above selectable implementation, it should be understood that first users with the same or different first editing rights can improve the efficiency of document editing by collaborating to edit the document area of the target document in each collaboration space.
[0085] In some selectable implementations of this embodiment, the content displayed via the above collaboration space may be switched to the acquired content of the above document area in the above target document.
[0086] In the above application scenario, it can be realized to switch the content displayed via the above collaboration space to the acquired content of the above document area in the above target document, that is, the content displayed in the collaboration space of the target document changes in the same way as the content being edited in the target document. In this way, after editing the target document, there is no need to share it again, and it should be understood that the shared person can view the edited content in the target document.
[0087] In some selectable implementations of this embodiment, the execution entity may further execute the step of displaying the target content when a viewing request is detected and the user who initiated the viewing request has the corresponding read-only permission.
[0088] Here, when the viewing request indicates viewing the content of the document area in the collaboration space, the target content is the content of the document area in the collaboration space; when the viewing request indicates viewing the content of the sub-area in the sub-space, the target content is the content of the sub-area in the sub-space; when the viewing request indicates viewing the content of the document area in the parallel space, the target content is the content of the document area in the parallel space.
[0089] In the selectable implementation, when the user has read-only permission for the sub-area of the sub-space, the document area of the parallel space or the document area of the collaboration space, after the user initiates a request, the corresponding content can be displayed to the user, thereby improving the security of document viewing or collaborative editing.
[0090] In some selectable implementations of this embodiment, when a selection operation on the document area in the target document (for example, a selection operation executed by the creator of the target document) is detected, the execution entity can further execute the following steps.
[0091] First, determine each historical version of the document area selected by the selection operation and mark the differences between the historical versions.
[0092] Here, each historical version includes first editing information, second editing information, third editing information, and the information of the document area before editing.
[0093] After that, each of the above history versions and the above differences are displayed.
[0094] Here, by changing the character color, background color, etc., the differences between each of the above history versions can be marked.
[0095] In the above selectable implementation, it should be understood that the differences between each history version can be directly compared and viewed.
[0096] Optionally, the above execution entity may execute the above step 103 as follows.
[0097] When the first editing information is obtained, the content (such as characters, images, etc.) included in the first editing information is directly synchronized to the above document area to generate an edited document of the above target document.
[0098] In some selectable implementations of this embodiment, the above execution entity can generate an edited document of the above target document as follows.
[0099] First, when there is a common area in at least two document areas of at least two of the above collaboration spaces, determine the number of target collaboration spaces for editing the content segment of the above common area.
[0100] After that, when the number is 1, determine the content segment obtained by the editing in the above target collaboration space as the content in the edited document of the above target document. When the number is greater than 1, determine the content segment obtained by the editing in a single above target collaboration space selected by the creator of the above target collaboration space as the content in the edited document of the above target document.
[0101] There is a conflict in the document area to be co-edited among multiple collaboration spaces. For example, if one piece of content has three sentences: sentence A, sentence B, and sentence C, and the document area of collaboration space 1 corresponds to sentence A and sentence B, and the document area of collaboration space 2 corresponds to sentence B and sentence C, in this scenario, it should be understood that the conflict target lies in the content of sentence B. In this case, it is possible to determine whether sentence B has been edited in collaboration space 1 and whether sentence B has been edited in collaboration space 2. If it has not been edited in one of them, the content of sentence B in the other one will be directly used to generate the content in the edited document. If it has been edited in both, the users who created collaboration space 1 and collaboration space 2 (i.e., the above-mentioned target collaboration spaces) will be prompted to select which edited sentence B in which collaboration space should be used as the content in the edited document.
[0102] In a method for document collaboration according to an embodiment of the present disclosure, a target document including a document area is obtained, then a collaboration space for the document area is created, and finally, based on first editing information of the collaboration space, an edited document of the target document is generated, where the first editing information is determined by the collaboration space. Thereby, an edited document of the target document can be generated using the collaboration space, contributing to improving the efficiency of document co-editing and generation.
[0103] As an example, referring to FIG. 1B, FIG. 1B is a schematic diagram of the application scenario of FIG. 1A.
[0104] In FIG. 1B, a collaboration space can be created for the target document, and a co-worker (i.e., the first user) can be specified.
[0105] Here, a user who has the right to edit the target document (for example, the user who created the target document, hereinafter referred to as the user with editing rights) can create a collaboration space for the document (that is, the above-mentioned target document), and specify co-workers (that is, the above-mentioned first user) and permissions (for example, the above-mentioned operation permissions) within the collaboration space. For example, co-workers with editing rights can participate in viewing and editing the content in the collaboration space (that is, the content in the above-mentioned document area displayed through the collaboration space), and co-workers with read-only permissions can only view the content in the collaboration space. In addition, a collaboration space can be created by specifying an area of the target document (that is, the above-mentioned document area). For example, the page number of a PPT (Power Point) can be selected, a paragraph of text in a draft or a certain page in a table can be selected, and only the content in the specified area in the collaboration space can be edited.
[0106] FIG. 2 is a flowchart of a second method for document collaboration according to an embodiment of the present disclosure. As shown in FIG. 2, the method specifically includes the following steps 201 to 205.
[0107] 201. Obtain a target document.
[0108] In an embodiment of the present disclosure, an execution entity of a method for document collaboration (for example, a server, a terminal device, a device for document collaboration, etc.) can obtain a target document.
[0109] Here, the above-mentioned target document includes a document area. The above-mentioned document area includes sub-areas.
[0110] The sub-area may be all or part of the area in the document area.
[0111] In an embodiment of the present disclosure, step 201 basically coincides with step 101 in the embodiment corresponding to FIG. 1A, and the description thereof is omitted here.
[0112] 202. Create a collaboration space for the above document area.
[0113] In an embodiment of the present disclosure, the above execution entity can create a collaboration space for the above document area.
[0114] In an embodiment of the present disclosure, step 202 basically coincides with step 102 in the embodiment corresponding to FIG. 1A, and the description thereof is omitted here.
[0115] 203. Create a sub - space for the above sub - area.
[0116] In an embodiment of the present disclosure, the above execution entity can create a sub - space for the above sub - area.
[0117] Here, the above sub - space may be a virtual space for editing or making read - only the content in the above sub - area. The sub - space may be a collaboration space at a lower hierarchy than the collaboration space.
[0118] The above sub - space may be created by the first user selecting a sub - area (such as the content of a document, page numbers of a document, etc.) from the document area of the collaboration space. In the process of creating the sub - space, the first user can also set the second user so that the second user has at least read - only permission for the content of the sub - area. Also, in the process of creating the sub - space, a second editing permission may be set for the second user. Here, the second editing permission is the permission to edit all or part of the content in the above sub - area.
[0119] Also, after forming the subspace, the association between the sub-region and the subspace may be changed. For example, after selecting sub-region A to form subspace A, sub-region B may be selected, and then subspace A may be selected. Specifically, when sub-region B is selected, the user can be presented with the created collaboration space and the subspaces (including subspace A) in a pop-up window and be allowed to select from them. When the user selects subspace A, both sub-region A and sub-region B are associated with subspace A. That is, the second user of subspace A has at least read-only permissions for at least sub-region A and sub-region B.
[0120] By creating a subspace, a collaborative editing method for the content of the sub-region can be formed, and the result of this collaborative editing method can affect the content that needs to be edited.
[0121] In each subspace, the above sub-regions are edited independently of each other. That is, the second editing information generated by editing within a single subspace is not visible to other second users in the at least one subspace other than the single subspace before being updated in the document area. Thus, by creating a plurality of subspaces and setting different permissions (e.g., read-only permissions, second editing permissions to edit different content in the document area) for the second users of each subspace, different second users between subspaces or within a subspace can have different second editing permissions. Here, examples of the permissions between spaces include that second users of different subspaces cannot view and edit the content in a subspace where they do not have permissions across subspaces, that the second user can only edit a part of the content in the sub-region (e.g., the first sentence of the content), or that the content edited by the second user only affects a part of the above content.
[0122] When selecting the above sub-region, the sub-region may or may not contain content, that is, the sub-region of the document may be empty content.
[0123] The user who can enter the sub-space and view the content of the above sub-region may include at least one of the administrator of the target document, the first user, and the second user. Also, when the second user can enter the sub-space and view the content of the above sub-region, viewing of the above sub-region by other users can also be realized by invitation from the second user. Preferably, after entering the sub-space, in addition to having the viewing right for the above sub-region, the corresponding user can have the editing right (that is, the second editing right) for a part or all of the above sub-region.
[0124] The administrator of the above target document (for example, the user who created the target document) can have the highest authority for the target document. For example, the authority to edit or delete the document area, the authority to create a sub-space for the sub-region in the target document, etc.
[0125] In fact, a link can be generated for each sub-space. When the second user clicks on the link, they can enter the sub-space and view (or view and edit) all or part of the content of the sub-region. Other users other than the second user cannot view (or view and edit) any content of the sub-region when they click on the link. The number of each second user (that is, the user designated for the collaboration space) may be one or more. Each second editing right can correspond to the editing range of the above sub-region. Different second users in the same sub-space have the same authority (for example, read-only authority or second editing right).
[0126] As an example, the subspace includes Subspace A and Subspace B. The second users of the Subspace A include Second User A, Second User B, and Second User C, and the second users of the Subspace B include Second User a and Second User b. The second editing permission of the Subspace A enables viewing and editing of Subarea A, and the permission of the Subspace B can be set to read-only for Subarea B (only viewing is possible, but editing is not possible) (i.e., read-only permission).
[0127] Accordingly, in the above example, Second User A, Second User B, and Second User C can all view and edit Subarea A, and Second User a and Second User b can both set Subarea B to read-only (viewing is possible, but editing is not possible). Also, any one of Second User A, Second User B, and Second User C can edit a copy of Subarea A in Subspace A. However, since the object of editing is a copy, the content (i.e., the second editing information) entered by editing the copy of Subarea A in Subspace A is not visible to the second users (including Second User a and Second User b) of Subspace B before being updated in the document area.
[0128] Here, one or more subspaces may be specified.
[0129] It should be understood that the above second editing permission is a proper subset of the above first editing permission. For example, if the first editing permission is for Document Areas A, B, and C of the target document, the second editing permission may include editing permissions for Document Areas B and C of the target document, or the second editing permission may include editing permission for Document Area A of the target document. The second editing permission may not include editing permission for Document Area D of the target document.
[0130] It should be understood that the collaboration space and sub - spaces are relative. A second user of a sub - space can continue to create sub - spaces of that sub - space. The relationship between sub - space B of sub - space A and sub - space A can refer to the relationship between sub - space A and the collaboration space, which will not be elaborated here.
[0131] In some selectable implementations of this embodiment, the above - mentioned execution entity can execute step 203 as follows to create a sub - space of the above - mentioned sub - region.
[0132] First, establish an association between the above - mentioned sub - region and a second user to create a sub - space of the above - mentioned sub - region.
[0133] Here, the second user has read - only permission or second - level editing permission for the above - mentioned sub - region. The second - level editing permission is the permission to edit the above - mentioned sub - region through the above - mentioned sub - space. Also, when the second user has the second - level editing permission, the second - level editing information is the information created by the second user with the second - level editing permission.
[0134] The above - mentioned association can be established in various ways. For example, the identifier of the sub - space (e.g., the name of the sub - space) and the identifier of the second user (e.g., the user account) can be associated and stored, or the identifier of the sub - region and the identifier of the second user (e.g., the user account) can be associated and stored.
[0135] In the above - mentioned selectable implementation, by establishing an association between the above - mentioned sub - region and a second user to create the above - mentioned sub - space, second users with different operation permissions (i.e., read - only permission or second - level editing permission) can view or edit sub - regions independently of each other in each sub - space, thereby improving the efficiency of document collaboration.
[0136] 204. Determine the first edit information of the collaboration space based on the second edit information of the subspace.
[0137] In an embodiment of the present disclosure, the executing entity can determine the first edit information of the collaboration space based on the second edit information of the subspace.
[0138] The second edit information is determined by the subspace.
[0139] In some selectable implementations of this embodiment, the executing entity can execute step 204 as follows.
[0140] When a second confirmation operation for the second edit information is detected, obtain the content of the sub-region in the collaboration space based on the second edit information.
[0141] Here, the second confirmation operation may indicate that the user (e.g., the first user) is permitted to update the second edit information in the corresponding document area.
[0142] In the selectable implementation, adjustment of the content displayed via the collaboration space due to the content of the sub-region is realized, that is, it should be understood that the content displayed in the collaboration space of the target document changes in the same way as the content in the subspace.
[0143] Optionally, the executing entity may execute step 203 as follows.
[0144] When the second edit information is obtained, synchronize the content (e.g., characters, images, etc.) included in the second edit information directly to the document area.
[0145] 205. Generate the edited document of the target document based on the first editing information of the collaboration space.
[0146] In an embodiment of the present disclosure, the execution entity can generate the edited document of the target document based on the first editing information of the collaboration space.
[0147] The first editing information is determined by the collaboration space.
[0148] In an embodiment of the present disclosure, step 205 basically coincides with step 103 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0149] According to the method for document collaboration according to an embodiment of the present disclosure, by creating a sub - space of a sub - region and further generating the edited document of the target document based on the second editing information of the sub - space, it contributes to generating the edited document of the target document using the sub - space and further improving the efficiency of joint editing and generation of the document.
[0150] FIG. 3A is a flowchart of a third method for document collaboration according to an embodiment of the present disclosure, and this method can be applied to electronic devices such as smartphones, notebook computers, desktop computers, and portable computers.
[0151] Specifically, as shown in FIG. 3A, the method specifically includes the following steps 301 to 304.
[0152] 301. Obtain a target document.
[0153] In an embodiment of the present disclosure, the execution entity (for example, a server, a terminal device, a device for document collaboration, etc.) of the method for document collaboration can obtain a target document.
[0154] Here, the target document includes a document area.
[0155] In an embodiment of the present disclosure, step 301 basically coincides with step 101 in the embodiment corresponding to FIG. 1A, and the description thereof is omitted here.
[0156] 302. Create a collaboration space for the above document area.
[0157] In an embodiment of the present disclosure, the above execution entity can create a collaboration space for the above document area.
[0158] In an embodiment of the present disclosure, step 302 basically coincides with step 102 in the embodiment corresponding to FIG. 1A, and the description thereof is omitted here.
[0159] 303. Create a parallel space for the above document area.
[0160] In an embodiment of the present disclosure, the above execution entity can create a parallel space for the above document area.
[0161] Here, the above parallel space may be a virtual space for editing or making read-only the content in the above document area.
[0162] The parallel space may be regarded as another collaboration space different from the collaboration space described in step 302. The parallel space and the collaboration space have different users with operation permissions. Specifically, the user operating the collaboration space is the first user, and the user operating the parallel space is the third user.
[0163] The above parallel space may be created by an administrator of the target document (e.g., the user who created the target document) selecting a document area (e.g., the content of the document, the page number of the document, etc.) from the target document, or may be created by the first user. In the process of creating the parallel space, the user who created the target document or the first user may also set a third user so that the third user has at least read-only permission for the document area. Also, in the process of creating the parallel space, the third user and the first user who creates the parallel space corresponding to the third user may have the same permissions (e.g., read-only permission and first editing permission).
[0164] By creating a parallel space, a collaborative method in which the content of the document area can be co-edited can be formed, and the result of the collaborative method can affect the content that needs to be edited.
[0165] In each parallel space, the above document areas are edited independently of each other, that is, the editing information generated by editing within a single parallel space cannot be seen by users in other spaces (e.g., the first user, the second user, the third user) other than the single parallel space in the at least one parallel space before being updated to the target document. Thus, by creating a plurality of parallel spaces, the same permissions as the first user can be set for the third user in each parallel space.
[0166] When selecting the above document area, the document area may or may not contain content, that is, the document area may be empty content.
[0167] Users who can enter the parallel space and view the above document area may include at least one of the administrator of the target document, the first user, and the third user. Also, when the third user can enter the parallel space and view the above document area, viewing of the document area by other users can also be realized by invitation from the third user.
[0168] In fact, a link can be generated for each parallel space. When the third user clicks on the link, they can enter the collaboration space and view (or view and edit) all or part of the content of the target document. Users other than the third user cannot view (or view and edit) any content of the target document via the parallel space by clicking on the link. The number of third users may be one or more.
[0169] As an example, the parallel spaces of Document A (i.e., the above target document) include Parallel Space A and Parallel Space B. The third users of Parallel Space A include Third User A, Third User B, and Third User C, and the third users of Parallel Space B include Third User a and Third User b. The first editing permission of Parallel Space A (i.e., the operation permissions held by Third User A, Third User B, and Third User C) enables viewing and editing of Document Area A of Document A. The permission of Parallel Space B (i.e., the permissions held by Third User a and Third User b) can be set to read-only for Document Area B of Document A (i.e., only viewing is possible, but editing is not possible) (i.e., read-only permission).
[0170] Also, the operation authorities held by the third users in the same parallel space may be the same, and the operation authorities held by the third users in different parallel spaces may be different. In the above example, the operation authorities held by the third user A, the third user B, and the third user C may be the same, and the operation authorities held by the third user A and the third user a may be different. For example, the operation authorities held by the third user A, the third user B, and the third user C all enable viewing and editing of the document area A of document A, and the operation authorities held by the third user a and the third user b can both make the document area B of document A read-only (only viewable but not editable).
[0171] Accordingly, in the above example, the third user A, the third user B, and the third user C can all view and edit the document area A of document A, and the third user a and the third user b can both make only the document area B of document A read-only (viewable but not editable). Also, any one of the third user A, the third user B, and the third user C can edit the copy of the document area A of document A in parallel space A. However, since the editing target is a copy, the content (i.e., the third edit information) input by editing the copy of the document area A of document A in parallel space A is not visible to the third users (including the third user a and the third user b) in parallel space B before it is updated to document A or the collaboration space.
[0172] Here, one or more parallel spaces may be specified.
[0173] Also, the third user and the first user who creates a parallel space corresponding to the third user may have the same permissions. For example, the first user A creates a parallel space A, and the third user of the parallel space A is the third user A. The first user B creates a parallel space B, and the third user of the parallel space B is the third user B. In the above scenario, the third user A and the first user A have the same operation permissions, and the third user B and the first user B have the same operation permissions.
[0174] In some selectable implementations of this embodiment, the execution entity can execute step 303 as follows.
[0175] Establish an association between the document area and the third user, and create a parallel space for the document area.
[0176] The above association can be established in various ways. For example, the identifier of the parallel space (e.g., the name of the parallel space) and the identifier of the third user (e.g., the user account) can be associated and stored, or the identifier of the document area and the identifier of the third user (e.g., the user account) can be associated and stored.
[0177] In the above selectable implementation, an association between the document area and the third user is established to create a parallel space for the document area. In this way, it should be understood that the third user can view or edit the document area of the target document in the parallel space, thereby further improving the efficiency of document collaboration.
[0178] In some application scenarios in the above selectable implementation, when the step of creating the collaboration space of the document area includes the step of establishing an association between the document area and the first user, the third user and the first user who creates the parallel space corresponding to the third user have the same permissions for the document area. The same permissions are read-only permissions or first editing permissions.
[0179] In the above application scenario, the first user and the third user can have the same permissions for the document area. As a result, multiple users can independently operate on the same document area to generate multiple editing plans for the same document area, and then select from them to generate the edited document, thereby improving the efficiency of document collaboration.
[0180] 304. Generate an edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space.
[0181] In the embodiments of the present disclosure, the execution entity can generate an edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space.
[0182] The third editing information is determined by the parallel space.
[0183] In some selectable implementations of this embodiment, the execution entity can execute step 304 as follows.
[0184] When a first confirmation operation for the first editing information is detected, obtain the first content of the document area in the target document based on the first editing information.
[0185] Here, the first confirmation operation may be performed on the first editing information by the user who created the target document or the first user. The first confirmation operation may indicate that the user who created the target document or the first user is permitted to adjust the content in the document area to the first editing information.
[0186] When a third confirmation operation for the third editing information is detected, the second content in the document area in the target document is acquired based on the third editing information.
[0187] Here, the third confirmation operation may be performed on the third editing information by the user who created the target document or the first user. The third confirmation operation may indicate that the user who created the target document or the first user is permitted to adjust the content in the document area to the third editing information.
[0188] It is configured to generate the edited document of the target document based on the first content and the second content.
[0189] In the above selectable implementation, it should be understood that by performing the first confirmation operation or the third confirmation operation, the user (for example, the user who created the target document or the first user) can select to adjust the content in the document area to the first editing information or the third editing information.
[0190] For example, please refer to FIG. 3B. A collaborator in a collaboration space (i.e., the first user above) creates a "parallel space" in the collaboration space, and the content edited and modified in the parallel space may be used as an alternative to the collaboration space. When the content in the collaboration space and its parallel space simultaneously requests approval from the editor of the original document (i.e., the user who created the collaboration space), at most, only the content in one space (i.e., the first edit information or the third edit information) can be approved. The content in the collaboration space and its parallel space can continue to be updated, and the updated content needs to request approval again. After approval, the original document can be modified.
[0191] The method for document collaboration according to an embodiment of the present disclosure determines one piece of edit information from the edit information generated in the collaboration space and its parallel space, and updates the target document, thereby improving the efficiency of document editing and management.
[0192] FIG. 4A is a flowchart of a fourth method for document collaboration according to an embodiment of the present disclosure. As shown in FIG. 4A, the method specifically includes the following steps 401 to 403.
[0193] 401. Obtain a target document.
[0194] In an embodiment of the present disclosure, an execution entity of the method for document collaboration (for example, a server, a terminal device, a device for document collaboration, etc.) can obtain a target document.
[0195] Here, the target document includes a document area.
[0196] In an embodiment of the present disclosure, step 401 basically coincides with step 101 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0197] 402. Create a collaboration space for the above document area.
[0198] In an embodiment of the present disclosure, the above execution entity can create a collaboration space for the above document area.
[0199] In an embodiment of the present disclosure, step 402 basically coincides with step 102 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0200] 403. When a first confirmation operation for the above first editing information is detected, obtain the content of the above document area in the above target document based on the above first editing information.
[0201] In an embodiment of the present disclosure, the above execution entity can obtain the content of the above document area in the above target document based on the above first editing information when a first confirmation operation for the above first editing information is detected.
[0202] The above first editing information is determined by the above collaboration space. For example, the first editing information may be characters input by a user (for example, a first user) through the collaboration space.
[0203] The first confirmation operation is executed by the above first user or the user who created the above target document. The first confirmation operation indicates that the above first user or the user who created the above target document permits the above document area to be adjusted to the above first editing information.
[0204] As an example, as shown in FIG. 4B, when modifying the content of a document in a collaboration space, you may choose whether to update the original document (i.e., the above-mentioned target document). Here, the content edited in the collaboration space does not immediately become effective in the document and is only updated in the original document after approval by the document creator (i.e., the user who created the above-mentioned target document) or a user with editing rights (i.e., the above-mentioned first user). Also, collaborators (i.e., the above-mentioned first users) within the collaboration space can continue to create sub-spaces. Similarly, the creator of the sub-space (i.e., the above-mentioned collaborator) can specify permissions (i.e., the above-mentioned second editing rights or read-only rights) with the collaborators of the sub-space (i.e., the above-mentioned second users), and the content edited in the sub-space does not immediately become effective in the collaboration space at the upper level and is only updated in the collaboration space after approval by the collaborator of the collaboration space (i.e., the first user).
[0205] According to the method for document collaboration according to an embodiment of the present disclosure, when a first confirmation operation for the first editing information is detected, the target document area is adjusted to the first editing information, and when the first confirmation operation for the first editing information is not detected, the target document area is not adjusted to the first editing information. Thereby, after the user approves, the target document area in the target document can be adjusted to the first editing information, avoiding frequent adjustment of the content in the target document.
[0206] FIG. 5A is a flowchart of a fifth method for document collaboration according to an embodiment of the present disclosure. As shown in FIG. 5A, the method specifically includes the following steps 501 to 504.
[0207] 501. Obtain a target document.
[0208] In an embodiment of the present disclosure, an execution entity (e.g., a server, a terminal device, a device for document collaboration, etc.) for a method for document collaboration can obtain a target document.
[0209] Here, the above target document includes a document area.
[0210] In an embodiment of the present disclosure, step 501 basically coincides with step 101 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0211] 502. Create a collaboration space for the above document area.
[0212] In an embodiment of the present disclosure, the above execution entity can create a collaboration space for the above document area.
[0213] In an embodiment of the present disclosure, step 502 basically coincides with step 102 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0214] 503. Generate an edited document of the above target document based on the first editing information of the above collaboration space.
[0215] In an embodiment of the present disclosure, the above execution entity can generate an edited document of the above target document based on the first editing information of the above collaboration space.
[0216] The above first editing information is determined by the above collaboration space.
[0217] In an embodiment of the present disclosure, step 503 basically coincides with step 103 in the embodiment corresponding to FIG. 1A, and the description is omitted here.
[0218] 504. Switch the content displayed through the above collaboration space to the obtained content of the above document area in the above target document.
[0219] In an embodiment of the present disclosure, the execution entity can switch the content displayed through the collaboration space to the content obtained in the document area in the target document.
[0220] In some selectable implementations of this embodiment, after both the first user and the creating user are confirmed, the content displayed through the collaboration space can be switched to the content obtained in the document area in the target document. If it is not confirmed by at least one of the two, the adjustment may not be performed. Thus, one of the two can flexibly determine whether to adjust the content.
[0221] For example, refer to FIG. 5B. The content of the document may be extracted in the form of a collaboration space and shared with a specified user for viewing.
[0222] Here, it is necessary to set the main document (i.e., the target document) and the document in the collaboration space to be content-linked (i.e., switch the content displayed through the collaboration space to the content obtained in the document area in the target document). After being confirmed by both the editor of the main document (i.e., the creating user) and the editor of the collaboration space (i.e., the first user), the main document and the document in the collaboration space may be set to be content-linked. When changing the coverage range of the collaboration space in the main document, the changed content will automatically be linked to the specified collaboration space, that is, the content displayed through the collaboration space will be switched to the content obtained in the document area in the target document.
[0223] If the content edited in the main document is outside the range of the collaboration space, the content of the collaboration space will not be updated.
[0224] If content linkage is not set in the main document, the edited content needs to be manually synchronized to the collaboration space.
[0225] According to the method for document collaboration according to an embodiment of the present disclosure, all or part of the content in the target document can be shared and viewed by a specified user (for example, the first user) in the form of a collaboration space, and in order to switch the content displayed through the collaboration space to the obtained content in the document area of the target document, after adjusting the content in the document area of the target document, there is no need to share it again, and there is no need to generate a link to the collaboration space again. The first user can view the adjusted content.
[0226] Hereinafter, embodiments of the present disclosure will be exemplarily described with reference to FIGS. 1B, 3B, 4B, and 5B. It should be noted that the embodiments of the present disclosure may have the features described below, but the following description does not limit the protection scope of the embodiments of the present disclosure.
[0227] Currently, the conventional cloud document collaboration function supports collaborative editing of the same document (for example, the target document) by multiple people, but the comment and correction history versions are visible to all collaborators (including the first user, the second user, and the third user). In actual work, one document needs to be edited in different parts by different teams or some confidential data needs to be masked from different teams. In this case, it is necessary to recreate the version and share it with the collaborators. If there are modifications to the content in the original document, the document shared with others also needs to be modified and cannot be linked.
[0228] In the above scene, before a document reaches its final version, it is necessary to create many draft versions. When multiple people collaborate, all draft versions are viewed by all collaborators, but it is not possible to simultaneously compare and view the differences between old and new documents.
[0229] Here, the collaboration space may be a virtual space divided for document editing. It is necessary to specify the editable range of the document (i.e., the above first editing right) and the users who can participate in collaboration and viewing (i.e., the above first users). It is also possible to specify multiple collaboration spaces for the same document. A sub - space can be understood as a collaboration space at a lower hierarchy than a certain collaboration space with respect to the "collaboration space". A collaboration space may have multiple sub - spaces. A parallel space is in a parallel relationship with the "collaboration space" and has the same document editing range as the collaboration space. When the content in the collaboration space and the content in the parallel space overwrite the original document, only one of the options can be selected. A collaboration space may have multiple parallel spaces.
[0230] In practice, the editing process of the main document (i.e., the above-mentioned target document) can be distributed to multiple "collaboration spaces" (e.g., for each team). Different teams have different scopes for editing or viewing, that is, they operate in different "collaboration spaces". Finally, the content completed by multiple collaboration spaces can be merged into the main document for viewing. The original document (i.e., the above-mentioned main document) is used as the main display carrier for sharing and viewing. The editing work of the main document is completed in the "collaboration space". Here, the collaboration space supports multiple "parallel spaces" to manage and compare various draft versions and finally select the final draft. When it is necessary to share and display (not all) part of the content of the main document, there is no need to copy this document. By creating a new "collaboration space" and setting content linkage, it can be shared.
[0231] Specifically, the above example may be applied to the following scenarios.
[0232] Scene 1: For a document, organize multiple people to cooperate in the form of a collaboration space.
[0233] Sub-scene 1: Create a collaboration space and specify co-workers (see Figure 1B).
[0234] Here, a user who has the right to edit the target document (hereinafter referred to as the user with editing rights) can create a collaboration space for the said document (i.e., the above-mentioned target document), and can specify co-workers (i.e., the above-mentioned first user) and permissions (for example, the above-mentioned first editing right) within the said collaboration space. For example, a co-worker with editing rights can participate in the viewing and editing of the content in the collaboration space (i.e., the content of the target document displayed in the collaboration space by setting the first editing right), and a co-worker with read-only rights can only view the content in the collaboration space.
[0235] Also, a collaboration space can be created by specifying an area of the target document. For example, select the page number of PPT (Power Point), select a paragraph of text in the draft or a certain page in the table, and edit only the content of the specified area in the collaboration space. Multiple different collaboration spaces may be created for one document.
[0236] Sub-scene 2: When modifying the document content in the collaboration space, it may be possible to select whether to update the original document or not.
[0237] Here, the content modified in the collaboration space does not immediately become effective in the document and is only updated in the original document after approval by the document creator or a user with editing rights. Also, collaborators within the collaboration space (i.e., the first user above) can continue to create sub-spaces. Similarly, the creator of the sub-space (i.e., the collaborator above) can specify permissions (i.e., the second editing rights above) for the collaborators of the sub-space (i.e., the second user above), and the content edited in the sub-space does not immediately become effective in the collaboration space at the upper level and is only updated in the collaboration space after approval by the collaborators of the collaboration space (see Figure 4B).
[0238] Collaborators in the collaboration space can create a "parallel space" of the collaboration space, and the content edited and modified in the parallel space can be used as an alternative to the collaboration space. If the content of the collaboration space and its parallel space simultaneously require approval from the editor of the original document, only the content in up to one space (i.e., the first editing information or the third editing information above) can be approved. The content in the collaboration space and its parallel space can continue to be updated, and the updated content needs to be approved again. After approval, the original document can be modified (see Figure 3B).
[0239] Sub-scene 3: Support the comparison and viewing of the content in the original document, collaboration space, and parallel space and mark the differences.
[0240] When the collaboration space and its parallel space start a request, the contents of the "original document (i.e., the content in the above target document)", the "document in the collaboration space (i.e., the first edit information generated in the above collaboration space)", and the "document in the parallel space (i.e., the third edit information generated in the above parallel space)" can be compared and viewed, and the differences can be intelligently identified and highlighted.
[0241] Users can compare and view the documents in the space with permissions. For example, when the collaborators in the collaboration space have permissions for the original document at the same time, they can select the specified element or page (i.e., the document area selected by the above selection operation) and view the contents in its different spaces (including the first edit information generated in the above collaboration space, the second edit information generated in the subspace, the third edit information generated in the above parallel space, and the pre-edit information of the above document area), and the differences can be highlighted. Scene 2: Extract the content of the document in the form of the collaboration space and share it with the specified user for viewing (see Figure 5B).
[0242] Here, it is necessary to set the content of the main document and the document in the collaboration space to be content-linked. After being confirmed by both the editor of the main document (i.e., the above creating user) and the editor of the collaboration space (i.e., the above first user), the content of the main document and the document in the collaboration space may be set to be content-linked. When the coverage range of the collaboration space in the main document is changed, the changed content will be automatically linked to the specified collaboration space, that is, the content displayed in the collaboration space of the above target document and the content being edited in the above target document will be adjusted simultaneously.
[0243] If the modified content in the main document is outside the scope of the collaboration space, the content of the collaboration space will not be updated.
[0244] If content linkage is not set in the main document, the modified content needs to be manually synchronized to the collaboration space.
[0245] Scene 3: Manage, compare, and view document history versions using the collaboration space.
[0246] Sub-scene 1: Create n collaboration spaces for the nth history version of the document.
[0247] The user who creates the target document can simultaneously create a collaboration space for the target document and complete the editing work of the target document in the collaboration space. After the content editing is completed, share and allow the users who need the target document to view it.
[0248] When the user who creates the target document updates the second version of the document, a collaboration space named "Second Edition" can be created, and the editing and updating work of the target document can be completed in the collaboration space. After the content editing is completed, request to synchronize and update the target document, and the original users with viewing permissions can view the updated content without updating the document link.
[0249] Sub-scene 2: Compare and view the effects of different history versions of a page / content.
[0250] When a user with viewing permissions for the history version views the document content, if a page / content (i.e., the document area selected by the above selection operation) is selected, the history versions of the page / content can be viewed and the differences can be highlighted.
[0251] As can be understood, in the above example, according to the concept of "collaboration space" of the document, the editing process of the document is divided by the team, and the editable or viewable ranges of different teams are different. This solves the problem that it is necessary to create multiple versions for different teams for the same document, and at the same time, it is difficult to perform maintenance and editing. It avoids problems such as the disclosure of confidential data, the interference of collaboration by irrelevant editing, and data conflicts among multiple editors, makes it easier to merge and generate the final draft, and improves the efficiency of document editing and management.
[0252] It should be noted that the first user, the second user, and the third user described in each of the above embodiments of the present disclosure each refer to one type of user. Specifically, the first user is a user who has the authority to operate on the document area through the collaboration space (for example, read-only authority or the first editing authority). The second user is a user who has the authority to operate on the sub-area through the sub-space (for example, read-only authority or the second editing authority). The third user is a user who has the authority to operate on the document area through the parallel space (for example, read-only authority or the first editing authority). The first user, the second user, and the third user may each include one or more specific users.
[0253] FIG. 6 is a schematic configuration diagram of an apparatus for document collaboration according to an embodiment of the present disclosure. The apparatus includes an acquisition unit 601 configured to acquire a target document including a document area, a first creation unit 602 configured to create a collaboration space for the above document area, a generation unit 603 configured to generate an edited document of the above target document based on the first editing information of the above collaboration space, where the first editing information is determined by the above collaboration space.
[0254] In the apparatus according to any embodiment of the present disclosure, the first creation unit 602 It is configured to establish an association between the above document area and a first user having operation authority over the above document area, and create a collaboration space for the above document area.
[0255] In the apparatus according to any embodiment of the present disclosure, the above operation authority includes a first editing authority for editing the above document area via the above collaboration space, and the above first editing information is information created by the above first user with the above first editing authority.
[0256] In the apparatus according to any embodiment of the present disclosure, the above generating unit 603 When a first confirmation operation for the above first editing information is detected, it is configured to obtain the content of the above document area in the above target document based on the above first editing information.
[0257] In the apparatus according to any embodiment of the present disclosure, the above document area includes a sub-area, The above apparatus A second creating unit (not shown) configured to create a sub-space for the above sub-area, A first determining unit (not shown) configured to determine the first editing information of the above collaboration space based on the second editing information of the above sub-space, where the above second editing information is determined by the above sub-space, and further includes.
[0258] In the apparatus according to any embodiment of the present disclosure, the above second creating unit It is configured to establish an association between the above sub-area and a second user, and create a sub-space for the above sub-area. The above second user has read-only authority or a second editing authority over the above sub-area. The above second editing authority is the authority to edit the above sub-area via the above sub-space. When the above second user has the above second editing authority, the above second editing information is information created by the above second user with the above second editing authority.
[0259] In the apparatus according to any embodiment of the present disclosure, the first creation unit 602 When a second confirmation operation on the second editing information is detected, based on the second editing information, obtain the content of the sub-region in the collaboration space.
[0260] In the apparatus according to any embodiment of the present disclosure, the apparatus further includes a third creation unit (not shown) configured to create a parallel space of the document area, The generation unit 603 is configured to generate an edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space, and the third editing information is determined by the parallel space.
[0261] In the apparatus according to any embodiment of the present disclosure, the third creation unit is configured to establish an association between the document area and a third user, and create a parallel space of the document area.
[0262] In the apparatus according to any embodiment of the present disclosure, if the step of creating a collaboration space of the document area includes the step of establishing an association between the document area and a first user, the third user and the first user who creates the parallel space corresponding to the third user have the same permissions for the document area, and the same permissions are read-only permissions or first editing permissions.
[0263] In the apparatus according to any embodiment of the present disclosure, the generation unit 603 When a first confirmation operation on the first editing information is detected, obtain the first content of the document area in the target document based on the first editing information, When a third confirmation operation for the third edit information is detected, the second content in the document area in the target document is obtained based on the third edit information, It is configured to generate an edited document of the target document based on the first content and the second content.
[0264] In an apparatus according to any embodiment of the present disclosure, the apparatus further includes an adjustment unit (not shown) configured to switch the content displayed via the collaboration space to the acquired content in the document area in the target document.
[0265] In an apparatus according to any embodiment of the present disclosure, the apparatus further includes a first display unit (not shown) configured to display target content when a browsing request is detected and the user who initiated the browsing request has the corresponding read-only permission, when the browsing request indicates browsing the content in the document area in the collaboration space, the target content is the content in the document area in the collaboration space, when the browsing request indicates browsing the content in the sub-area in the sub-space, the target content is the content in the sub-area in the sub-space, when the browsing request indicates browsing the content in the document area in the parallel space, the target content is the content in the document area in the parallel space.
[0266] In an apparatus according to any embodiment of the present disclosure, the apparatus When a selection operation on a document area in the target document is detected, a second determination unit (not shown) configured to determine each historical version of the document area selected by the selection operation and mark the differences between the historical versions, where each historical version includes first editing information, second editing information, third editing information, and the information of the document area before editing. It further includes a second display unit (not shown) configured to display each of the historical versions and the differences.
[0267] In the apparatus according to any embodiment of the present disclosure, the generation unit 603 When there is a common area in at least two document areas of at least two of the collaboration spaces, determine the number of target collaboration spaces for editing the content segment of the common area. When the number is 1, determine the content segment obtained by the editing in the target collaboration space as the content in the edited document of the target document. When the number is greater than 1, it is configured to determine the content segment obtained by the editing in a single target collaboration space selected by the creator of the target collaboration space as the content in the edited document of the target document.
[0268] The apparatus for document collaboration according to this embodiment may be the apparatus for document collaboration shown in FIG. 6, execute all steps of the method for document collaboration in FIGS. 1A - 5B, and further achieve the technical effects of the method for document collaboration shown in FIGS. 1A - 5B. Specifically, for the sake of brief description with reference to the relevant descriptions in FIGS. 1A - 5B, the description is omitted here.
[0269] FIG. 7 is a schematic configuration diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 700 shown in FIG. 7 includes at least one processor 701, a memory 702, at least one network interface 704, and other user interfaces 703. Each component in the electronic device 700 is coupled via a bus system 705. It should be understood that the bus system 705 realizes connection communication between these components. The bus system 705 further includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of explanation, in FIG. 7, all various buses are denoted as the bus system 705.
[0270] The user interface 703 may include a display, a keyboard, or a click device (e.g., a mouse, a trackball), a touch pad, or a touch screen, etc.
[0271] It should be understood that the memory 702 in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) used as an external cache. By way of non-limiting illustrative example, many forms of RAM such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synch link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM) can be used. The memory 702 described herein includes these and any other suitable types of memory, but is not limited thereto.
[0272] In some embodiments, the memory 702 stores the following elements, namely, executable modules or data structures, or true subsets or extended sets thereof, such as the operating system 7021 and the application program 7022.
[0273] The operating system 7021 includes various system programs such as a framework layer, a core library layer, and a driver layer to implement various basic services and process hardware-based services. The application program 7022 includes various application programs such as a media player and a browser to implement various application services. A program for implementing the method according to an embodiment of the present disclosure may be included in the application program 7022.
[0274] In an embodiment of the present disclosure, by calling a program or instruction stored in the memory 702, specifically, a program or instruction stored in the application program 7022, the steps of the method for the processor 701 to execute an embodiment of each method are, for example, acquiring a target document including a document area; creating a collaboration space for the document area; generating an edited document of the target document based on first edit information of the collaboration space, where the first edit information is determined by the collaboration space.
[0275] In the method according to any embodiment of the present disclosure, the step of creating the collaboration space for the document area includes establishing an association between the document area and a first user having an operation right for the document area to create the collaboration space for the document area.
[0276] In the method according to any embodiment of the present disclosure, the operation right includes a first edit right to edit the document area through the collaboration space, and the first edit information is information created by the first user with the first edit right.
[0277] In the method according to any embodiment of the present disclosure, the step of generating the edited document of the target document based on the first editing information of the collaboration space is When a first confirmation operation for the first editing information is detected, it includes the step of obtaining the content of the document area in the target document based on the first editing information.
[0278] In the method according to any embodiment of the present disclosure, the document area includes sub-areas. After the step of creating the collaboration space of the document area, the method includes the step of creating a sub-space of the sub-area, and a step of determining the first editing information of the collaboration space based on the second editing information of the sub-space, wherein the second editing information is determined by the sub-space.
[0279] In the method according to any embodiment of the present disclosure, the step of creating a sub-space of the sub-area is including the step of establishing an association between the sub-area and a second user to create a sub-space of the sub-area, where the second user has read-only permission or second editing permission for the sub-area, and the second editing permission is the permission to edit the sub-area through the sub-space. When the second user has the second editing permission, the second editing information is the information created by the second user with the second editing permission.
[0280] In the method according to any embodiment of the present disclosure, the step of determining the first editing information of the collaboration space based on the second editing information of the sub-space is When a second confirmation operation for the second editing information is detected, it includes the step of obtaining the content of the sub-area in the collaboration space based on the second editing information.
[0281] In the method according to any embodiment of the present disclosure, after the step of creating the collaboration space for the document area, the method further includes: creating a parallel space for the document area; and in the step of generating the edited document of the target document based on the first edit information of the collaboration space, generating the edited document of the target document based on the first edit information of the collaboration space and the third edit information of the parallel space, wherein the third edit information is determined by the parallel space.
[0282] In the method according to any embodiment of the present disclosure, the step of creating the parallel space for the document area includes: establishing an association between the document area and a third user to create a parallel space for the document area.
[0283] In the method according to any embodiment of the present disclosure, if the step of creating the collaboration space for the document area includes establishing an association between the document area and a first user, the third user and the first user who creates the parallel space corresponding to the third user have the same permissions for the document area, and the same permissions are read-only permissions or first edit permissions.
[0284] In the method according to any embodiment of the present disclosure, the step of generating the edited document of the target document based on the first edit information of the collaboration space and the third edit information of the parallel space includes: when a first confirmation operation for the first edit information is detected, obtaining the first content of the document area in the target document based on the first edit information; and when a third confirmation operation for the third edit information is detected, obtaining the second content of the document area in the target document based on the third edit information. generating an edited document of the target document based on the first content and the second content;
[0285] In the method according to any embodiment of the present disclosure, the method further includes switching the content displayed via the collaboration space to the content obtained in the document area of the target document.
[0286] In the method according to any embodiment of the present disclosure, the method further includes displaying target content when a viewing request is detected and the user who initiated the viewing request has the corresponding read-only permission. When the viewing request indicates viewing the content in the document area in the collaboration space, the target content is the content in the document area in the collaboration space. When the viewing request indicates viewing the content in the sub-area in the sub-space, the target content is the content in the sub-area in the sub-space. When the viewing request indicates viewing the content in the document area in the parallel space, the target content is the content in the document area in the parallel space.
[0287] In the method according to any embodiment of the present disclosure, the method when a selection operation on the document area in the target document is detected, determining each historical version of the document area selected by the selection operation and marking the differences between the historical versions, where each historical version includes first editing information, second editing information, third editing information, and the information before editing of the document area; further includes displaying each historical version and the differences.
[0288] In the method according to any embodiment of the present disclosure, the step of generating the edited document of the target document includes: When there is a common area in at least two document areas of at least two of the collaboration spaces, determining the number of target collaboration spaces for editing the content segment of the common area; When the number is 1, determining the content segment obtained by the editing in the target collaboration space as the content in the edited document of the target document; When the number is greater than 1, determining the content segment obtained by the editing in a single target collaboration space selected by the creating user of the target collaboration space as the content in the edited document of the target document.
[0289] The method disclosed in the embodiments of the present disclosure may be applied to the processor 701 and may also be implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 701 or a command in the form of software. The above processor 701 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logical block diagram according to the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or any ordinary processor, etc. The steps of the method disclosed with reference to the embodiments of the present disclosure can be directly embodied as being executed and completed by a hardware decoding processor or by a combination of hardware and software units in the decoding processor. The software unit may be located in a mature storage medium in this field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and combines it with its hardware to complete the steps of the above method.
[0290] To be understandable, these embodiments described in this specification can be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. In the case of implementation by hardware, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic elements for performing the above functions of the present disclosure, or a combination thereof.
[0291] In the case of implementation by software, the techniques described in this specification can be implemented by a unit that executes the functions described in this specification. The software code can be stored in a memory and executed by a processor. The memory may be implemented inside or outside the processor.
[0292] The electronic device according to this embodiment may be the electronic device shown in FIG. 7, execute all steps of the method for document collaboration in FIGS. 1A - 5B, and further achieve the technical effects of the method for document collaboration shown in FIGS. 1A - 5B. Specifically, for the sake of brevity, with reference to the relevant descriptions in FIGS. 1A - 5B, the description is omitted here.
[0293] Embodiments of the present disclosure further provide a storage medium (computer-readable storage medium). One or more programs are stored in the storage medium. The storage medium may include a volatile memory such as a random access memory, and the memory may include a non-volatile memory such as a read-only memory, a flash memory, a hard disk, or a solid state drive, and the memory may further include a combination of the above types of memories.
[0294] When one or more programs in the storage medium are executed by one or more processors, a method for document collaboration executed on the electronic device side is realized.
[0295] The above processor executes a document editing program stored in the memory to realize the following steps of a method for document collaboration executed on the electronic device side, and the steps include: Obtaining a target document including a document area; Creating a collaboration space for the document area; Generating an edited document of the target document based on first editing information of the collaboration space, where the first editing information is determined by the collaboration space.
[0296] In the method according to any embodiment of the present disclosure, the step of creating a collaboration space for the document area includes: Establishing an association between the document area and a first user having an operation right for the document area, and creating a collaboration space for the document area.
[0297] In the method according to any embodiment of the present disclosure, the operation right includes a first editing right to edit the document area through the collaboration space, and the first editing information is information created by the first user with the first editing right.
[0298] In the method according to any embodiment of the present disclosure, the step of generating the edited document of the target document based on the first editing information of the collaboration space is as follows: When a first confirmation operation for the first editing information is detected, it includes the step of obtaining the content of the document area in the target document based on the first editing information.
[0299] In the method according to any embodiment of the present disclosure, the document area includes sub-areas. After the step of creating the collaboration space of the document area, the method further includes: The step of creating a sub-space of the sub-area; The step of determining the first editing information of the collaboration space based on the second editing information of the sub-space, wherein the second editing information is determined by the sub-space.
[0300] In the method according to any embodiment of the present disclosure, the step of creating a sub-space of the sub-area includes: Establishing an association between the sub-area and a second user to create a sub-space of the sub-area. The second user has read-only permission or second editing permission for the sub-area, and the second editing permission is the permission to edit the sub-area through the sub-space. When the second user has the second editing permission, the second editing information is the information created by the second user with the second editing permission.
[0301] In the method according to any embodiment of the present disclosure, the step of determining the first editing information of the collaboration space based on the second editing information of the sub-space includes: When a second confirmation operation for the second editing information is detected, it includes the step of obtaining the content of the sub-area in the collaboration space based on the second editing information.
[0302] In the method according to any embodiment of the present disclosure, after the step of creating a collaboration space for the document area, the method further includes: creating a parallel space for the document area; and in the step of generating an edited document of the target document based on first edit information of the collaboration space, generating an edited document of the target document based on the first edit information of the collaboration space and third edit information of the parallel space, where the third edit information is determined by the parallel space.
[0303] In the method according to any embodiment of the present disclosure, the step of creating a parallel space for the document area includes: establishing an association between the document area and a third user to create a parallel space for the document area.
[0304] In the method according to any embodiment of the present disclosure, when the step of creating a collaboration space for the document area includes establishing an association between the document area and a first user, the third user and the first user who creates a parallel space corresponding to the third user have the same permissions for the document area, and the same permissions are read-only permissions or first edit permissions.
[0305] In the method according to any embodiment of the present disclosure, the step of generating an edited document of the target document based on the first edit information of the collaboration space and the third edit information of the parallel space includes: when a first confirmation operation for the first edit information is detected, obtaining first content of the document area in the target document based on the first edit information; when a third confirmation operation for the third edit information is detected, obtaining second content of the document area in the target document based on the third edit information; generating an edited document of the target document based on the first content and the second content;
[0306] In the method according to any embodiment of the present disclosure, the method further includes switching the content displayed via the collaboration space to the obtained content in the document area of the target document.
[0307] In the method according to any embodiment of the present disclosure, the method further includes, when a viewing request is detected and the user who initiated the viewing request has the corresponding read-only permission, displaying the target content, when the viewing request indicates viewing the content in the document area in the collaboration space, the target content is the content in the document area in the collaboration space, when the viewing request indicates viewing the content in the sub-area in the sub-space, the target content is the content in the sub-area in the sub-space, when the viewing request indicates viewing the content in the document area in the parallel space, the target content is the content in the document area in the parallel space.
[0308] In the method according to any embodiment of the present disclosure, the method when a selection operation on the document area in the target document is detected, determining each historical version of the document area selected by the selection operation and marking the differences between the historical versions, wherein each historical version includes first editing information, second editing information, third editing information, and information before editing of the document area; further includes displaying each of the historical versions and the differences.
[0309] In the method according to any embodiment of the present disclosure, the step of generating the edited document of the target document is as follows: When there is a common area in at least two document areas of at least two of the above collaboration spaces, determining the number of target collaboration spaces for editing the content segment of the common area; When the number is 1, determining the content segment obtained by the editing in the target collaboration space as the content in the edited document of the target document; When the number is greater than 1, determining the content segment obtained by the editing in a single target collaboration space selected by the creator of the target collaboration space as the content in the edited document of the target document.
[0310] As can be understood by those skilled in the art, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, it can be realized by electronic hardware, computer software, or a combination of both. To clearly explain the compatibility between hardware and software, the configurations and steps of each example are generally described according to functions in the above description. Whether these functions are executed in the form of hardware or in the form of software depends on the specific application of the technical means and the design constraints. Those skilled in the art may implement the functions described in different ways for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0311] The steps of the methods or algorithms described in the embodiments disclosed in this specification may be implemented by hardware, software modules executed by a processor, or a combination of both. The software modules may be disposed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0312] The above specific embodiments further illustrate the objectives, technical means, and beneficial effects of the present disclosure. However, it should be understood that the above are only specific embodiments of the present disclosure and do not limit the protection scope of the present disclosure. Any editing, equivalent replacement, improvement, etc. made without departing from the spirit of the present disclosure should all be included within the protection scope of the present disclosure.
Claims
1. A method for document collaboration, comprising: obtaining a target document including a document area; creating a collaboration space for the document area; and generating an edited document of the target document based on first edit information of the collaboration space, wherein the first edit information is determined by the collaboration space.
2. The step of creating a collaboration space for the document area includes: establishing an association between the document area and a first user having an operation right for the document area, and creating the collaboration space for the document area. The method according to claim 1.
3. The operation right includes a first editing right to edit the document area through the collaboration space, and the first edit information is information created by the first user with the first editing right. The method according to claim 2.
4. The step of generating an edited document of the target document based on first edit information of the collaboration space includes: when a first confirmation operation for the first edit information is detected, obtaining the content of the document area in the target document based on the first edit information. The method according to claim 1.
5. The document area includes a sub-area. After the step of creating a collaboration space for the document area, the method further includes: creating a sub-space for the sub-area; and determining the first edit information of the collaboration space based on second edit information of the sub-space, wherein the second edit information is determined by the sub-space. The method according to claim 1.
6. The step of creating a sub-space for the sub-area includes: establishing an association between the sub-area and a second user, and creating the sub-space for the sub-area. The second user has a read-only right or a second editing right for the sub-area, and the second editing right is a right to edit the sub-area through the sub-space. The method according to claim 5, wherein when the second user has the second editing right, the second editing information is information created by the second user based on the second editing right.
7. The step of determining the first editing information of the collaboration space based on the second editing information of the subspace is The method according to claim 5, including the step of obtaining the content of the sub-region in the collaboration space based on the second editing information when a second confirmation operation on the second editing information is detected.
8. After the step of creating the collaboration space of the document area, the method is The step of creating a parallel space of the document area, and In the step of generating the edited document of the target document based on the first editing information of the collaboration space, The method according to claim 1, further including the step of generating the edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space, wherein the third editing information is determined by the parallel space.
9. The step of creating a parallel space of the document area is The method according to claim 8, including the step of establishing an association between the document area and a third user to create the parallel space of the document area.
10. If the step of creating the collaboration space of the document area includes the step of establishing an association between the document area and a first user, the third user and the first user who creates the parallel space corresponding to the third user have the same rights with respect to the document area, and the same rights are read-only rights or first editing rights. The method according to claim 9.
11. The step of generating the edited document of the target document based on the first editing information of the collaboration space and the third editing information of the parallel space is When a first confirmation operation on the first editing information is detected, the step of obtaining the first content of the document area in the target document based on the first editing information, and When a third confirmation operation for the third editing information is detected, obtaining second content of the document area in the target document based on the third editing information; generating the edited document of the target document based on the first content and the second content, the method according to claim 8. **Claim 12** The method according to any one of claims 1 to 11, further comprising switching the content displayed via the collaboration space to the obtained content of the document area in the target document. **Claim 13** When a viewing request is detected and the user who initiated the viewing request has read-only permission, further comprising the step of displaying the target content, when the viewing request indicates viewing the content of the document area in the collaboration space, the target content is the content of the document area in the collaboration space, when the viewing request indicates viewing the content of the sub-area in the sub-space, the target content is the content of the sub-area in the sub-space, when the viewing request indicates viewing the content of the document area in the parallel space, the target content is the content of the document area in the parallel space, the method according to any one of claims 1 to 11. **Claim 14** When a selection operation on the document area in the target document is detected, determining each historical version of the document area selected by the selection operation and marking the differences between the historical versions, wherein each historical version includes the first editing information, the second editing information, the third editing information, and the pre-editing information of the document area; the method according to any one of claims 1 to 11, further comprising the step of displaying each historical version and the differences. **Claim 15** The step of generating the edited document of the target document is when there is a common area in at least two document areas of at least two collaboration spaces, determining the number of target collaboration spaces for editing the content segment of the common area; When the number is 1, determining, as the content in the document after editing of the target document, the content segment obtained by editing in the target collaboration space; When the number is greater than 1, determining, as the content in the document after editing of the target document, the content segment obtained by editing in a single target collaboration space selected by the creator of the target collaboration space, the method according to any one of claims 1 to 11, comprising: **Claim 16** An apparatus for document collaboration, comprising: An acquisition unit configured to acquire a target document including a document area; A first creation unit configured to create a collaboration space for the document area; A generation unit configured to generate a document after editing of the target document based on first edit information of the collaboration space, wherein the first edit information is determined by the collaboration space. **Claim 17** A computer-readable storage medium storing a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Document cooperative edition system and recording medium
JP2000020508A
Methods, Systems, and Computer Programs for Creating Collaborative Email Documents (Collaborative Email)
JP2007501969A
Editing apparatus, editing program and editing method
JP2010086083A
Document collaboration system with alternative views
US20110016387A1