CN115688694A - Document processing method, device, equipment and storage medium - Google Patents

Document processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115688694A
CN115688694A CN202110826708.2A CN202110826708A CN115688694A CN 115688694 A CN115688694 A CN 115688694A CN 202110826708 A CN202110826708 A CN 202110826708A CN 115688694 A CN115688694 A CN 115688694A
Authority
CN
China
Prior art keywords
container
updating
preset
document
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110826708.2A
Other languages
Chinese (zh)
Inventor
黄烈锦
曾元概
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202110826708.2A priority Critical patent/CN115688694A/en
Publication of CN115688694A publication Critical patent/CN115688694A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a document processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container; updating the elements in the container based on the preset information. The invention can enrich the content updating forms in the document, improve the document updating efficiency, further improve the efficiency of subsequent terminal equipment for processing the document, reduce the workload of a terminal equipment processor, and improve the intelligent level of document processing.

Description

Document processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a document.
Background
With the development of internet technology, enterprises have higher and higher requirements on collaborative office, and the definition of collaborative application expands along with the development of the collaborative office, so that the collaborative application is more complex and diversified, and is more simplified and intelligent, and the trend of breaking the difference between different collaborative applications is great.
The current mainstream document processing software has a single document processing mode, and when the content in the document needs to be updated, the user needs to manually select the content in the text and then manually edit the content, so that the operation process is complex, the document processing efficiency is low, and the requirements of the user on the flexibility and the efficiency of the document processing mode cannot be met.
Disclosure of Invention
In view of the above, the present invention provides a document processing method, apparatus, device and storage medium to solve the above technical problems.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
according to a first aspect of the embodiments of the present invention, a document processing method is provided, including:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
updating the elements in the container based on the preset information.
In an embodiment, the obtaining preset information for updating at least one container in the document in response to detecting a preset interactive operation for the at least one container includes:
and responding to the at least one container selected in the document, and acquiring preset information for updating the at least one container from a third-party application.
In an embodiment, the method further comprises:
and synchronously updating the elements in the container to a third-party application based on the preset information.
In an embodiment, the updating the elements in the container based on the preset information includes:
updating the elements in the container by adopting the acquired preset information based on the authority provided by the third-party application; or the like, or, alternatively,
updating the elements in the container by adopting the acquired preset information based on the authority in the options of the container; or the like, or, alternatively,
and updating the elements in the container by adopting the acquired preset information based on the permission provided by the third-party application and the permission in the options of the container.
In one embodiment, the container has a cooperating container;
the method further comprises the following steps:
and triggering the collaborative container to carry out collaborative updating in response to updating the elements in the container based on the preset information.
In an embodiment, the triggering the collaborative container to perform collaborative update includes:
updating the collaborative container and/or the elements in the collaborative container based on a preset priority.
In one embodiment, the method further comprises:
when the collaborative container is a streaming text container, updating elements in the collaborative container with a higher priority than updating the collaborative container;
when the collaborative container is a view type container, the collaborative container is updated with a higher priority than the collaborative container.
In an embodiment, the triggering the collaborative container to perform collaborative update includes:
updating the collaborative container based on a manner associated with the collaborative container type.
In an embodiment, the obtaining preset information for updating at least one container in the document in response to detecting a preset interactive operation for the at least one container includes:
and responding to the at least one container selected in the document, and acquiring preset information from a cooperative container of the at least one container.
In an embodiment, the preset interaction operation includes: an operation for selecting a container, the method further comprising:
in response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the gas,
in response to detecting that an object selected based on a preset composition shortcut includes any part of an element in a container, determining that the container is selected.
According to a second aspect of an embodiment of the present invention, there is provided a document processing apparatus including:
the system comprises a preset information acquisition module, a storage module and a processing module, wherein the preset information acquisition module is used for responding to the detection of preset interactive operation aiming at least one container in a document and acquiring preset information for updating the at least one container;
and the container element updating module is used for updating the elements in the container based on the preset information.
In an embodiment, the preset information obtaining module is further configured to:
and responding to the at least one container selected in the document, and acquiring preset information for updating the at least one container from a third-party application.
In one embodiment, the apparatus further comprises:
and the container element synchronization module is used for synchronously updating the elements in the container to a third-party application based on the preset information.
In an embodiment, the container element update module is further configured to:
updating the elements in the container by adopting the acquired preset information based on the authority provided by the third-party application; or the like, or, alternatively,
updating the elements in the container by adopting the acquired preset information based on the authority in the options of the container; or the like, or a combination thereof,
and updating the elements in the container by adopting the acquired preset information based on the permission provided by the third-party application and the permission in the options of the container.
In one embodiment, the container has a cooperating container;
the device further comprises:
and the container cooperation updating module is used for responding to updating of the elements in the container based on the preset information and triggering the cooperation container to perform cooperation updating.
In an embodiment, the container collaboration update module is further configured to update the collaboration container and/or elements in the collaboration container based on a preset priority.
In an embodiment, the apparatus further comprises a priority update module configured to:
when the collaborative container is a streaming text container, updating elements in the collaborative container with a higher priority than updating the collaborative container;
when the collaborative container is a view type container, the collaborative container is updated with a higher priority than the collaborative container.
In an embodiment, the container collaboration update module is further to:
updating the collaborative container based on a manner associated with the collaborative container type.
In one embodiment, the apparatus further comprises:
the attribute information acquisition module is used for acquiring the attribute information of each container, and the attribute information comprises at least one attribute item;
the attribute item determining module is used for determining the attribute items meeting the preset conditions in the at least one attribute item as target attribute items;
and the target position determining module is used for determining the target position of the at least one container in the document according to the target attribute item.
In an embodiment, in case the document contains more than two containers, the apparatus further comprises:
and the container sorting module is used for sorting the more than two containers in the document according to the parameter value sorting result of the target attribute item.
In an embodiment, the attribute item determination module is further configured to any one of:
determining the attribute item as a target attribute item based on the currently selected attribute item;
determining the attribute item with the highest priority as a target attribute item;
determining a target property item based on a currently detected operation triggered on the container.
In an embodiment, the type of the container includes a to-do item container, and the to-do item container includes to-do items;
the editing authority of the to-be-handled item container belongs to a container creator or a to-be-handled task distributor, and the editing authority of the to-be-handled item belongs to a task collaborator.
In one embodiment, the apparatus further comprises: a container selection module;
the container selection module is configured to:
in response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the gas,
in response to detecting that an object selected based on a preset composition shortcut includes any part of an element in a container, determining that the container is selected.
In one embodiment, the apparatus further comprises:
and the preset operation execution module is used for executing preset operation on the at least one container based on a preset cooperative boundary, wherein the preset operation comprises a merging operation and/or a splitting operation.
In an embodiment, in a case that the preset operation includes a merge operation, the preset operation execution module is further configured to perform deduplication processing on a duplicate element in a container obtained after the merge operation.
In an embodiment, the elements of the container include feature items and information items, and in a case that the preset operation includes a merge operation, the preset operation execution module is further configured to:
in response to determining that the level of the first characteristic item of the first container is higher than the level of the second characteristic item of the second container, merging the first container and the second container by merging the second information item of the second container into the first information item of the first container.
In one embodiment, the apparatus further comprises:
a container conversion module, configured to convert a selected object in the document into a container in response to detecting that a first trigger condition is satisfied, where attribute information of the container is determined based on the first trigger condition.
In an embodiment, the container conversion module is further configured to, in response to detecting that the stream text in the document has a preset element, convert the stream text associated with the element into a container of a type corresponding to the element.
In one embodiment, the container conversion module is further configured to convert the content currently selected in the document into a container of an instruction-specified type in response to receiving an instruction to convert the container.
In an embodiment, the container conversion module is further configured to convert a plurality of objects into a container in response to detecting that the plurality of objects are selected in the document and the plurality of objects satisfy a set condition.
In one embodiment, the apparatus further comprises:
and the stream text conversion module is used for converting the selected container into the stream text in response to the detection that the second trigger condition is met.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
a processor;
a memory for storing a computer program;
wherein the processor is configured to, when executing the computer program, implement:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
updating the elements in the container based on the preset information.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when processed by a processor, implements:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
and updating the elements in the container based on the preset information.
Compared with the prior art, the method and the device have the advantages that the preset information for updating at least one container in the document is obtained in response to the detection of the preset interactive operation aiming at the at least one container in the document, the elements in the container are updated based on the preset information, the content updating form in the document can be enriched, the document updating efficiency is improved, the subsequent processing efficiency of the terminal equipment on the document can be improved, the workload of a processor of the terminal equipment is reduced, and the intelligent level of document processing can be improved.
Drawings
FIG. 1 shows a flowchart of a document processing method according to an exemplary embodiment of the present invention;
FIG. 2 shows a flowchart of a document processing method according to yet another exemplary embodiment of the present invention;
FIG. 3 shows a flowchart of a document processing method according to another exemplary embodiment of the present invention;
FIG. 4 illustrates a flowchart of a document processing method according to yet another exemplary embodiment of the present invention;
FIG. 5 shows a block diagram of a document processing apparatus according to an exemplary embodiment of the present invention;
FIG. 6 shows a block diagram of a document processing apparatus according to another exemplary embodiment of the present invention;
fig. 7 shows a block diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to specific embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those of ordinary skill in the art in light of these embodiments are intended to be within the scope of the present invention.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein to describe various structures, these structures should not be limited by these terms. These terms are only used to distinguish one type of structure from another.
FIG. 1 shows a flowchart of a document processing method according to an exemplary embodiment of the present invention. The method of the embodiment may be applied to a terminal device with a document processing function (e.g., a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like), or may be applied to a server (e.g., a server or a server cluster composed of multiple servers, or the like). The following embodiments are exemplarily described by taking application to a terminal device as an example. As shown in fig. 1, the method comprises the following steps S101-S103:
in step S101, in response to detecting a preset interactive operation for at least one container in a document, preset information for updating the at least one container is acquired.
The container may be an object for recording contents and attributes of a document, and the document may be divided into a plurality of containers, and each container records all or part of contents of the document. The containers may have a hierarchical relationship therebetween, and if the content of the first container record includes the content of the second container record, the first container is considered to be a parent container of the second container, and the second container is considered to be a child container of the first container. The entire document may be considered a container that stores the entire contents of the document and is the parent of all other containers in the document.
Further, the document may be stored using one file, or may be stored using a plurality of files. Correspondingly, the file of the document can store at least one container of the document, and the way of storing the container in a file at least comprises one of the following ways: all contents of the storage container, a reference manner of the storage container. The reference mode may be an address of a file where the referenced container is located, and the address may be a path in a file system or a network address.
In one embodiment, the document data about the container may be read from a file in which the document is stored correspondingly; rendering the document content if the document data is the document content; under the condition that the document data is a reference mode of a container, acquiring actual document content based on the reference mode, and rendering the document content; and after the rendering of the document content is completed, displaying the document content.
In this embodiment, the terminal device may obtain preset information for updating at least one container in the document after detecting a preset interactive operation for the at least one container. For example, when the user processes the document through the terminal device, if the elements in the container need to be updated, at least one container in the document may be selected by performing the preset interaction operation, and the terminal device may further obtain the preset information for updating the at least one container in response to the preset interaction operation. It should be noted that the type of the preset interactive operation may be set based on actual needs, which is not limited in this embodiment. Wherein, the content of the preset information is matched with the content of the element of the container. For example, the content of the preset information may be part or all of the elements of the container, which is not limited in this embodiment.
In one embodiment, the preset interaction may include an operation to select a container, i.e., the operation may be used to select a container.
Specifically, in response to detecting a touch operation within a range of the container, determining that the container is selected; and/or the presence of a gas in the atmosphere,
in response to detecting that an object selected based on a preset composition shortcut includes any part of an element in a container, determining that the container is selected.
In a further embodiment, the preset interactive operation may include an opening operation, which may be used to open the document, and specifically, when the opening operation for the document is detected, the preset information for updating at least one container in the document is acquired.
In another embodiment, the preset interactive operation may include a timing operation, which may be used for counting down, specifically, when the timing operation for the at least one container of the document is detected, the counting down is started, and after the counting down is finished, the preset information for updating the at least one container in the document is acquired.
In this embodiment, the source of the preset information is not limited, for example, the preset information may be sourced from a third party application.
In one embodiment, the terminal device may obtain the preset information from the third party application in response to selecting at least one container in the document. When the elements in the container need to be updated or the elements in the container need to be synchronously updated to a third-party application, at least one container in the document can be selected by executing preset interactive operation, and then the terminal device can respond to the preset operation to obtain preset information from the third-party application.
For example, if the element in the container is weather information of a preset area, real-time weather of the preset area may be obtained from a third-party application (i.e., a weather application), and then the weather information in the container is updated. For another example, if the element in the container is a to-do item and the content in the to-do item changes, the element in the container may be updated to the third-party application for displaying the to-do item synchronously.
In step S102, the elements in the container are updated based on the preset information.
In this embodiment, after the preset information for updating the at least one container is obtained, the elements in the container may be updated based on the preset information.
In an embodiment, if the preset information is obtained from a third-party application, after the elements in the container are updated based on the preset information, the elements in the container may be synchronously updated to the third-party application based on the preset information, so that the synchronicity of the information in the container and the third-party application may be ensured.
In an embodiment, the updating the elements in the container based on the preset information in step S102 may include:
updating the elements in the container by adopting the acquired preset information based on the authority provided by the third-party application; or the like, or, alternatively,
updating the elements in the container by adopting the acquired preset information based on the authority in the options of the container; or the like, or a combination thereof,
and updating the elements in the container by adopting the acquired preset information based on the permission provided by the third-party application and the permission in the options of the container.
For example, if the element in the container is updated by using the acquired preset information based on the permission provided by the third-party application, the level of the permission provided by the third-party application may be set to the highest level, and then the element in the container may be updated by using the acquired preset information based on the permission provided by the third-party application after the preset information is acquired from the third-party application; or if the element in the container is updated by using the acquired preset information based on the authority in the option of the container, the level of the authority in the option of the container may be set to the highest level, and then the element in the container may be updated by using the acquired preset information based on the authority in the option of the container after the preset information is acquired from the third-party application; or, if the element in the container is updated by using the acquired preset information based on the permission provided by the third-party application and the permission in the option of the container, the level of the permission provided by the third-party application and the level of the permission in the option of the container may be set to be the same level, and then the element in the container may be updated by using the acquired preset information based on the permission provided by the third-party application and the permission in the option of the container. It is understood that in order to distinguish the above three ways of using the authority, the user name used in each way may be set differently. And further, in practical application, the currently adopted authority can be determined based on the user name. In practical applications, different information that can be obtained based on different permissions can be set based on business needs, for example, the information that can be obtained based on the permissions provided by the third-party application is set differently from the information that can be obtained based on the permissions in the container options; alternatively, it may be set that information that can be acquired by the lower level authority can be acquired based on the higher level authority among the two authorities, but information that can be acquired by the higher level authority cannot be acquired based on the lower level authority, and the like.
For example, when the element in the container is updated by using the acquired preset information based on the permission provided by the third-party application and the permission in the option of the container, the permission to update the element in the container may be further determined based on the pre-constructed corresponding relationship data between various user permissions and corresponding permission levels, where the form of the corresponding relationship data may be set based on actual needs, for example, the corresponding relationship data is set as a corresponding relationship table shown in the following table, and the like, which is not limited in this embodiment.
Watch 1
Figure BDA0003174019690000111
As shown in the first table, the permission levels for updating the elements in the container may include an a level (administrator level), a B level (owner level), and a C level (member level), where the a level is higher than the B level and higher than the C level, and when the update manners of the elements of different permission levels are inconsistent, the update manner of the elements of the different permission levels may be subject to the high-level update manner. For example, if the current document is processed by the document program user "king" and the third party application user "Simon" at the same time, the terminal device may determine, based on the table, that the permission level (level a) of the document program user "king" is higher than the permission level (level B) of the third party application user "Simon", and thus, when it is detected that the updating manners of the "king" and the "Simon" for the same element in the container are contradictory, the updating manner of the high-level user "king" may be used as the standard; if the current document is processed by the program user "king" and the third-party application user "Leon" at the same time, the terminal device may determine, based on the table, that the authority level (level a) of the program user "king" is the same as the authority level (level a) of the third-party application user "Leon", and thus when it is detected that the updating manners of the "king" and the "Leon" for the same element in the container are different, the last executed updating manner of the two may be used as the criterion, that is, the latest processing time is used as the criterion. In an embodiment, different user types corresponding to the same permission level in the table may actually be user names of the same user applied in the document program and a third party, for example, "queen" and "Leon" may be different user names of the same user, which is not limited in this embodiment.
In this embodiment, the preset information may also be derived from a container, which may be a container in the same or different document.
In one embodiment, the container in the above document may have a collaborative container, wherein the container has an update relevance to its collaborative container. When the container is updated, the collaborative container may be triggered to update, and for convenience of distinction, the update of the collaborative container is referred to as a collaborative update in the following embodiments.
Illustratively, the update dependencies that a container has with its cooperating containers may be constructed based on the reference relationships between the containers. For example, when the collaborative container B of the container a is constructed, the container B may be declared as the collaborative container referencing the container a in the attribute information of the container B, and then the update correlation between the constructed container a and the container B may be realized, so that the container B may be triggered to be updated simultaneously when the container a is updated subsequently. It should be noted that the container and the container cooperating therewith may be located in the same document or in different documents, and this embodiment does not limit this.
The document processing method of the embodiment may further include:
responding to the at least one container selected in the document, and acquiring preset information from a collaborative container of the at least one container; and updating the elements in the container based on the preset information.
In this embodiment, when an element in the collaborative container of the at least one container is updated, preset information may be acquired from the collaborative container for updating the element in the at least one container.
The document processing method of the embodiment may further include:
and triggering the collaborative container to carry out collaborative updating in response to updating the elements in the container based on the preset information.
In an embodiment, the manner for triggering the collaborative container to perform collaborative update may include updating the collaborative container and/or elements in the collaborative container based on a preset priority.
Wherein, the preset priority refers to the update priority order of the container update and the element update. For example, the priority of updating the element in the collaborative container is higher than the priority of updating the collaborative container, or the priority of updating the collaborative container is higher than the priority of updating the element in the collaborative container.
In addition, in this embodiment, the updating of the container may refer to a change of a container type, for example, when a set condition is satisfied, the updating may be based on converting a container of a view type into a container of a stream text type, or converting a container of a stream text type into a container of a view type; and an update of an element may refer to a change of the element itself, e.g., an element update of a streaming text container is a change of the streaming text content in the streaming text container.
Further, in the case that the collaborative container is a streaming text container, updating the elements in the collaborative container is higher in priority than updating the collaborative container;
and in the case that the collaborative container is a view container, updating the collaborative container is higher in priority than updating elements in the collaborative container.
In another embodiment, the above-mentioned manner for triggering the collaborative container to perform collaborative update may further include updating the collaborative container based on a manner associated with the collaborative container type.
For example, the updating manner associated with each collaborative container type may be preset, for example, the updating manner associated with the stream text container type (that is, the container type in which the element of the container is the stream text) is set as the element updating (that is, the stream text updating), and when it is detected that the current collaborative container type is the stream text container, etc., the collaborative container may be updated based on the updating manner associated in advance, that is, the element of the collaborative container is updated.
As can be seen from the above description, in this embodiment, by responding to the detection of the preset interaction operation for at least one container in the document, obtaining the preset information for updating the at least one container, and updating the elements in the container based on the preset information, the content update form in the document can be enriched, the efficiency of document update is improved, the efficiency of subsequent terminal devices processing the document can be improved, the workload of a terminal device processor is reduced, and the intelligence level of document processing can be improved.
FIG. 2 shows a flowchart of a document processing method according to a further exemplary embodiment of the present invention; the method of the embodiment can be applied to a terminal device with a document processing function (such as a smart phone, a tablet computer, a notebook computer or a desktop computer), or can be applied to a server (such as a server or a server cluster formed by multiple servers). The following embodiments are exemplarily described by taking the application to a terminal device as an example. As shown in fig. 2, the method comprises the following steps S201-S205:
in step S201, in response to detecting a preset interactive operation for at least one container in a document, acquiring preset information for updating the at least one container;
in step S202, the elements in the container are updated based on the preset information.
For the explanation and explanation of steps S201 to S202, reference may be made to steps S101 to S102 in the embodiment shown in fig. 1, which is not repeated herein.
In step S203, attribute information of each of the containers is acquired.
In this embodiment, the terminal device may select at least one container in the document, and obtain attribute information of each container. For example, when the user processes the document through the terminal device, if the position of the at least one container in the document needs to be adjusted, the user may select the at least one container needing to be adjusted in the document by performing a preset operation, and the terminal device may further obtain the attribute information of each container in the at least one container in response to the preset operation. It should be noted that the type of the preset operation may be set based on actual needs, which is not limited in this embodiment.
The attribute information may include at least one attribute item. In one embodiment, the attribute item is one of the following 1) to 7):
1) Editing authority which can be used for stipulating whether a user has the authority of editing the container, wherein the editing authority relates to whether the addition, deletion, modification and the like of the content and/or the attribute information in the container can be carried out;
2) The viewing permission can be used for stipulating whether the user has the permission to view the container;
3) The preset mounting information can be used for setting various additional information mounted on the container, such as one or more of a creator of the container, time for creating the container, and related personnel of a task corresponding to the container (in the case that the content contained in the container relates to a task to be processed);
4) A collaboration boundary, which may be used to specify whether the current container may collaborate with other containers and/or a specific collaboration manner, etc.;
5) The interaction mode can be used for specifying a mode of interaction between the user or a third-party application and the container, such as one or more of a selection mode, an editing mode, an updating mode, a conversion mode and the like of the content in the container;
6) The attribution information of the element can be used for specifying a specific attribution party of the element in the container, such as one or more of identification information, identity information, ownership information and the like of the attribution party;
7) The association degree setting information may be used to specify the association degree between the current container and other containers in the document, such as whether elements in the container have relevance.
In an embodiment, when the attribute item includes an editing right, the editing right of the container may be further set based on any one of preset mount information, a collaboration boundary, and an interaction manner.
In another embodiment, when the attribute item includes a viewing right, the viewing right of the container may be further set based on any one of preset mounting information, a collaboration boundary, and an interaction manner.
It is to be noted that the container in the document of the present embodiment may be a container that fuses concepts of the subdocuments and the pages. For example, the header, footer, and body of a document may each be stored as a subdocument. It should be noted that the sub-documents are independent, but the containers in this embodiment can be associated and collaborated through the attribute information of the containers, and further, according to the association and collaboration between the containers, the contents in the document can be reorganized, such as edited and translated, thereby increasing the extensibility and flexibility of the document.
In an embodiment, the elements in the container may carry data in a preset display mode. The elements of the container (i.e., the contents of the container) may include at least one of the following (1) to (6):
(1) Streaming text; (2) web pages or parts of content corresponding to web pages; (3) to-do items; (4) a billboard; (5) a graph; and (6) multimedia data.
The stream text is also called text stream, and is a text typeset by stream mode. That is, when the elements of the container are stream texts, the texts in the container are typeset in a stream type typesetting manner. Compared with format typesetting, stream typesetting refers to specific format typesetting processing on characters contained in a document, stored contents are original editing elements, namely characters, a user can view the typesetting style after editing through terminal equipment, and the typesetting style can be displayed in a self-adaptive layout size mode among different zoom ratios. The best performance on the terminal equipment with a small screen is that the initial layout can be automatically rearranged after being enlarged, and the line feed of the paragraph can be adjusted according to the width of the screen so as to adapt to the visual field range of a single page.
The graph can comprise at least one of a mind map, a UML and a flow chart. Of course, the elements of the container may also be containers, for example, the mind map includes at least one module, the mind map corresponds to a parent container, the module corresponds to a child container, and the child containers corresponding to the at least one module have an association relationship therebetween and are connected based on the association relationship.
The multimedia data, including text, sound, image, etc., streaming text, web page, to-do item, billboard, etc., may also be reorganized or typeset for the multimedia data, and finally displayed in the container. For example, the streaming text may be regarded as the text that is formatted in a streaming manner.
The web page may be plain text describing multimedia data using HTML tags. The content, source and presentation mode of the multimedia data can be determined according to the HTML tag.
The pending items may be a collection of multimedia data, i.e. one or more multimedia data, which may be used to describe one or more of people, things, time, and things.
The billboard may include a column and a card, wherein the card may be disposed in the column and may be moved from one column to another, or may be moved from one location in the column to another location in the column. Additionally, the card may also be used to store one or more of the multimedia data.
Optionally, the elements of the container may further include a code block, that is, a text corresponding to a preset program language code, that is, the container in this embodiment may apply a preset theme to the text corresponding to the code according to the type of the program language, where the theme may set a font, a color, and the like for functions, parameters, and the like in the code.
It is understood that the type of the container, such as a streaming text container, a web page container, a proxy item container, a billboard container or a graphics container, may be determined according to the type of the elements in the container in the present embodiment.
In another embodiment, the container may further be provided with a typesetting mode related to the element display mode.
The embodiment may also select at least one container in the document based on at least one of the following manners (a) and (b):
(a) In response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the gas,
(b) In response to detecting that an object selected based on a preset composition shortcut includes any part of an element in a container, determining that the container is selected.
For example, the touch operation may include an operation based on a mouse or a touch screen, and the combination shortcut key may be set based on actual needs, for example, the combination shortcut key is set to be a "shift + direction key", which is not limited in this embodiment.
In step S204, a property item satisfying a preset condition among the at least one property item is determined as a target property item.
In this embodiment, when the terminal device responds to at least one container selected in the document and acquires the attribute information of each container, an attribute item satisfying a preset condition in the at least one attribute item may be determined as a target attribute item.
For example, after the terminal device obtains the attribute information of each container, it may be determined whether an attribute item meeting a preset condition exists in the at least one attribute item, that is, whether each detector meets the preset condition for each attribute item in the at least one attribute item, and then when it is determined that an attribute item meeting the preset condition exists, the attribute item meeting the preset condition may be determined as a target attribute item.
In an embodiment, the above-mentioned manner for determining, as the target attribute item, an attribute item that satisfies a preset condition in the at least one attribute item may include any one of the following items (i) to (iii):
(i) Determining a target attribute item based on the currently selected attribute item;
in this embodiment, after the terminal device obtains the attribute information of each container, the attribute item currently selected by the user in the document may be detected, and then the terminal device may determine the currently selected attribute item as the target attribute item. For example, the user may determine the currently selected attribute item by clicking the attribute item in the alternative attribute items, which is not limited in this embodiment.
(ii) Determining the attribute item with the highest priority as a target attribute item;
in this embodiment, after the terminal device obtains the attribute information of each container, the priority of the attribute information of each container may be detected, and then the attribute item with the highest priority may be determined as the target attribute item.
It should be noted that the priority of the attribute item may be preset or set based on the operation of the current user, which is not limited in this embodiment.
(iii) Determining a target property item based on a currently detected operation triggered on the container.
In this embodiment, after the terminal device obtains the attribute information of each container, it may detect a current operation triggered by the user on the container, and further determine the target attribute item based on the current operation triggered on the container.
In an embodiment, the operation triggered on the container may include a splitting operation on the current container (i.e., splitting the current container into at least two containers, etc.), a merging operation (i.e., merging the current container with at least one other container), and the like.
Taking the above operation as an example of a merge operation, after detecting a merge operation currently triggered by a user on a container, an attribute item of the current container related to container merge may be determined as a target attribute item. It should be noted that the property item related to container merging may be set based on actual needs, such as setting as an editing authority (e.g., whether the property item may be merged, etc.), an interactive manner (i.e., specifically by what manner to merge, such as based on a dragging operation, a selecting operation, etc.).
In this embodiment, the merging operation of the containers may include: merging between different containers, merging of different versions of the same container.
In one embodiment, the merging between different containers may be merging between containers in different documents, or merging between containers in the same document.
In an embodiment, in an application scenario of multi-person collaboration, different versions of the same container may represent different versions edited by multiple users on the same container. Therefore, merging of containers can be understood as resolving content conflicts resulting from multiple users editing simultaneously, resulting in a final version of the container.
In yet another embodiment, in an application scenario of document backup or synchronization, different versions of the same container may represent historical versions of the same container edited by the same user at different times or on different devices. Therefore, merging containers can be understood as resolving content conflicts of multiple version containers, and a final version container can be obtained, and specific content with conflicts can also be obtained.
In this embodiment, how to resolve the content conflict is not limited.
In an embodiment, different versions of content can be obtained, semantic elements including parts of speech, logic and the like of different versions of content are proposed based on a natural language analysis technology, and then the different versions of content are reorganized into the same version of content according to the semantic elements to solve the problem of content conflict.
In yet another embodiment, editors of different versions of content may also be obtained, the user level of the editors is obtained, and the content of the version corresponding to the editors with the high user level is adopted as the content of the final version, so as to solve the problem of content conflict.
In step S205, a target position of the at least one container in the document is determined according to the target attribute item.
In this embodiment, after determining, as a target attribute item, an attribute item that satisfies a preset condition in the at least one attribute item, a target position of the at least one container in the document may be determined according to the target attribute item.
For example, after determining the target property item, a target position of the at least one container in the document may be determined based on the target property item, and the at least one container may be adjusted from the current position to the target position.
Taking the operation triggered by the container as the merging operation and the target attribute item as the editing authority and the interaction mode as examples, after the terminal device determines the editing authority and the interaction mode of the current container, it can be detected whether the editing authority represents 'mergeable', and further, when it is determined that the editing authority represents 'mergeable', the interaction mode, such as a dragging mode or a clicking mode, can be detected. For example, when it is detected that the interaction manner is a "dragging manner," dragging the current container to a target container for merging in response to a dragging operation triggered by a user, where a position of the target container is a target position of the container in the document determined based on the target attribute item.
In an embodiment, in a case that the document includes more than two containers, the document processing method of this embodiment may further include sorting the more than two containers according to the result of the sorting of the parameter values of the target attribute items, and arranging the sorted result in the document. For example, the more than two containers may be sorted according to the levels of the editing permissions, and then the container with the highest permission level may be arranged at the top of the document, so that each container may be displayed in the document based on the level of the editing permission of the container, and the effect of displaying the containers may be improved, and the requirements of the user may be met.
In this embodiment, the container may be a parent container or a child container, wherein the parent container may include at least one child container therein.
In this embodiment, the parent container and the child container may have different editing rights, and the editing right of the parent container is higher than that of the child container. For example, a user who owns the editing right of a parent container must have the editing right of a child container, while a user who owns the editing right of a child container does not necessarily have the editing right of a child container.
In another embodiment, when the elements of the container are to-Do items, the type of such container may be defined as a to-Do item container. The editing authority of the to-be-handled item container belongs to a container creator or a to-be-handled task distributor, and the editing authority of the to-be-handled item belongs to a task collaborator.
The embodiment may also select at least one container in the document based on at least one of the following manners (a) and (b):
(a) In response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the atmosphere,
(b) In response to detecting that an object selected based on a preset composition shortcut includes any part of an element in a container, determining that the container is selected.
For example, the touch operation may include an operation based on a mouse or a touch screen, and the combination shortcut key may be set based on actual needs, for example, the combination shortcut key is set as a "shift + direction key", and the present embodiment does not limit this.
In this embodiment, in response to selecting at least one container in a document, attribute information of each container is acquired, where the attribute information includes at least one attribute item, and an attribute item that satisfies a preset condition in the at least one attribute item is determined as a target attribute item, and then a target position of the at least one container in the document is determined according to the target attribute item.
FIG. 3 shows a flowchart of a document processing method according to another exemplary embodiment of the present invention; the method of the embodiment may be applied to a terminal device with a document processing function (e.g., a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like), or may be applied to a server (e.g., a server or a server cluster composed of multiple servers, or the like). The following embodiments are exemplarily described by taking application to a terminal device as an example. As shown in fig. 3, the method comprises the following steps S301-S303:
in step S301, in response to detecting a preset interactive operation for at least one container in a document, acquiring preset information for updating the at least one container;
in step S302, the elements in the container are updated based on the preset information.
For the explanation and explanation of steps S301 to S302, reference may be made to steps S101 to S102 in the embodiment shown in fig. 1, which is not repeated herein.
In step S303, a preset operation is performed on the at least one container based on a preset cooperation boundary.
The preset collaboration boundary, namely the collaboration update mode of the container, comprises at least one of priority of updating the container and the element, updating the container and updating the element, and the container and the element can be clearly divided by presetting the collaboration boundary of the container, so that strict and diversified definition of the container is realized.
In one embodiment, the configuration of the container may be read first; then obtaining a configuration item about the collaborative boundary from the configuration, wherein the value of the configuration item can be the setting of at least one of container and element update priority, container update and element update; the collaboration boundary may then be determined based on the values of the configuration items.
In this embodiment, the container update may refer to a change of a container type, and the container operated by the preset operation and the container obtained by the preset operation may belong to different types of containers. And the element update may refer to a change of the element itself, and the container operated by the preset operation and the container obtained by the preset operation may be the same type of container.
Further, the container and element update priority may refer to updating the container or updating the element when the two containers perform the preset operation. On this basis, the priority order of the container update and the element update, that is, whether the container update is prior to the element update or lags behind the element update, is also considered in the present embodiment. For example, if the update priority of the container is set to be higher than the element update priority, the update of the container may be preferentially performed; if the update priority of the element is set to be higher than the update priority of the element, the element can be updated preferentially.
In this embodiment, the cooperative boundary of the container may be preset based on three aspects of the priority of the container and the element update, the container update, and the element update, and then the preset operation may be performed on the at least one container based on the cooperative boundary. Wherein the preset operation may comprise a splitting operation (i.e., splitting the container into at least two containers, etc.) and/or a merging operation (i.e., merging the container with at least one other container), etc.
In an embodiment, the performing, based on the preset coordination boundary, a preset operation on the at least one container in step S303 may further include: acquiring an operation rule aiming at the cooperative boundary; and executing preset operation on at least one container based on the operation rule. The operation rule may be used to specify one or more of a type of a container after the preset operation, whether an object operated by the preset operation is a container or an element, and an operation manner of the preset operation on the object. In this embodiment, the specific operation rule is not limited, and different operation rules may be formulated according to different application scenarios in actual implementation. As an example, the operation rules may be stored as a configuration file. When the device is actually used, the configuration file can be read, and the preset operation is executed according to the operation rule configured by the configuration file; as another example, the operation rule may also be stored as an executable code, and then when the operation rule is actually used, the executable code corresponding to the operation rule may be called, so as to execute a preset operation according to the operation rule.
1. In this embodiment, the description will be given by taking the cooperative boundary as an element update as an example.
In one embodiment, an operation rule corresponding to a preset cooperation boundary is obtained; merging the at least one container operated by the merging operation into a container based on the operation rule, wherein the container obtained by merging comprises all elements in the at least one container before merging.
Furthermore, the elements in the container obtained by combination can be displayed according to a preset display rule. The display rule may specify an ordering manner, a screening condition, a grouping manner, and the like of the elements. In this embodiment, the specific display rule is not limited, and different display rules may be formulated according to different application scenarios. In addition, the display rule may be stored as a configuration file, and when the display rule is used specifically, the configuration file may be read, and all elements in the merged container may be displayed according to the display rule configured by the configuration file. The display rule may also be stored as an executable code, and when the display rule is used specifically, the executable code corresponding to the display rule may be called to display all elements in the merged container according to the display rule.
In a particular embodiment, at least one container operated by the merge operation is a streaming text container. For example, an element update of a stream text container is a change of the stream text content in the stream text container. Specifically, the corresponding operation rule may be configured as: the type of the container after the preset operation is still a stream text container, the object operated by the preset operation is a stream text (element) in the stream text container, and the stream text operation mode of the preset operation is that the stream text of one container is added to the stream text of another container. Further, when an original stream text container is dragged to the target stream text container, the original stream text container and the target stream text container are determined to be selected; in response to the merging operation of the original stream text container and the target stream text container, merging the stream text contents in the original stream text container and the target stream text container according to an operation rule corresponding to the merging operation, and taking the merged stream text contents as the stream text contents of the target stream text container, wherein the type of the container is still the stream text container, but the elements (stream text contents) of the stream text container are updated.
In another specific embodiment, when the preset operation includes a merge operation, the corresponding operation rule may be configured to: the object operated by the merge operation is an element in a container, the type of the container after the merge operation is an original type, and the operation mode of the element by the merge operation is deduplication. Specifically, the duplicate elements in the container obtained after the merging operation may be subjected to deduplication processing, for example, only one of the multiple identical elements in the container after the merging operation is deleted, and the like. The deduplication processing mode may be: acquiring elements of all containers operated by the merging operation as an element list; comparing elements in the element list; when the comparison result between at least two elements is the same, deleting redundant elements and only keeping one element in the element list; and in the case that no repeated element exists in the element list, taking all elements in the element list as elements in the container after the merging operation.
In another embodiment, the preset operation may further include a container aggregation operation. For example, a parent container may be set at a preset position of the current document for aggregating child containers with target attribute items in the whole document, for example, the parent container may be set at the beginning of the document to aggregate all backlogs in the current document based on the parent container. Alternatively, a convergence condition may be set when performing container aggregation, such as setting the number of containers after convergence, and the like.
In an embodiment, the elements of the container may include a feature item and an information item, and further, in a case that the preset operation includes a merge operation, the document processing method of this embodiment may further include:
in response to determining that the level of the first characteristic item of the first container is higher than the level of the second characteristic item of the second container, merging the first container and the second container by merging the second information item of the second container into the first information item of the first container.
It should be noted that the "attribute item" in this embodiment may include, in addition to the content that can be directly seen in the container, such as the feature item, preset mount information, such as a creator of the container, creation time, editing authority, content attribution, and the like, and thus the range of information included in the attribute item is greater than the range of information included in the feature item.
In an embodiment, after the second feature item is incorporated into the first feature item, the level of the first feature item may be further raised; and/or, upgrade the first container.
For example, assuming that the containers to be merged are a first container and a second container, respectively, the elements of the first container include a first characteristic item, a first information item, and a first other information item (the other information item may be used to set custom information, and may be deleted if not necessary); and elements of the second container include a second characteristic item, a second information item, and a second other information item (which may be used to set custom information, and may be deleted if desired). For example, the first container and the second container may be streaming text containers, and the first feature item and the second feature item may be used to determine the life cycle of the container to which the first feature item belongs, and satisfy a customized rule (feature item level takes precedence for a merge element). For example, assuming that the level of the first feature item is higher than that of the second feature item, when a merge operation (e.g., an operation triggered based on a ctrl + cmd + c shortcut key) on the first container and the second container is detected, if the first container and the second container are both detected as a stream text container, elements of the first container and the second container may be merged based on a pre-formulated merge rule (i.e., elements of the stream text container are merged at a level higher than that of the container merging). Also, since the level of the first feature item is higher than the level of the second feature item, the second information item and the second other information item of the second container are respectively incorporated into the first information item and the first other information item of the first container. Optionally, the level of the first characteristic item of the merged first container and the level of the first container may be raised, and the whole container merging operation is completed.
By way of further example, assume a hierarchical architecture is characterized based on containers, where: container 1 may be used to characterize a class of one, container 2 may be used to characterize a class of 1 class of one, and container 3 may be used to characterize a class of 2 classes of one, then the elements in container 1 may be set as class containers, such as container 2 and container 3, and further the elements in container 2 and container 3 may also be set as class members (e.g., teachers and students, etc.). When a new container 4 for representing grade 3 shifts is added, the container 4 and the container 1 can be fused (i.e. merged), that is, the container 4 is used as a sub-container of the container 1, which means that grade 3 shifts are added; whereas if it is desired to merge class members from class 1 and class 3 of a year, container 4 and container 2 may be merged, e.g., container 4 and container 2 are merged into container 2 (i.e., container 2 has a higher level of feature item "2" than container 4 has a higher level of feature item "4"), while the elements of merged container 2 are the union of container 4 and container 2, i.e., all class members including class 1 and class 3.
Further, in this embodiment, how the container has the collaborative container is not limited, and the containers may be considered to have a collaborative relationship, that is, the containers are collaborative containers each other, as long as the containers have the update correlation.
Illustratively, the collaborative container includes a container obtained by a preset operation.
Specifically, in an embodiment, after performing a preset operation on the at least one container based on a preset cooperative boundary, a target container may be obtained based on performing a preset operation on the at least one original container; determining the original container as a collaborative container for the target container.
Further, in response to the at least one container selected in the document, acquiring preset information from a collaborative container of the at least one container; updating the elements in the container based on the preset information.
For example, in response to the at least one target container being selected in the document, preset information is obtained from a collaborative container (original container) of the at least one target container; and updating elements in the target container based on the preset information.
In a specific example, assume a hierarchical architecture is characterized based on containers, where: container 1 may be used to characterize a class, container 2 may be used to characterize a class 1 shift, and container 3 may be used to characterize a class 2 shift, then the elements in container 1 may be set as class containers, such as container 2 and container 3, and further the elements in container 2 and container 3 may also be set as class members (e.g., teachers and students, etc.). Wherein, the container 1 can be obtained by combining the container 2 and the container 3. The merging process may be, generating a container 1; acquiring all elements in the container 2 and the container 3; all the elements are set as elements of the container 1. That is, container 1 after merging has all the elements in container 2 and container 3.
At this time, since the container 1 is obtained by combining the container 2 and the container 3, it can be determined that the container 2 is a cooperative container of the container 1, and the container 3 is also a cooperative container of the container 1. When the elements (class members) in container 2 and container 3 are updated, the collaborative update in container 1 may be triggered. Specifically, when all or part of the elements in the container 2 and the container 3 are updated, the updated elements or all the elements are used as preset information, and the elements in the container 1 are reset based on the preset information, so that the container 1 after the collaborative update is ensured to have all the elements in the container 2 and the container 3.
FIG. 4 illustrates a flowchart of a document processing method according to yet another exemplary embodiment of the present invention; the method of the embodiment may be applied to a terminal device with a document processing function (e.g., a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like), or may be applied to a server (e.g., a server or a server cluster composed of multiple servers, or the like). The following embodiments are exemplarily described by taking the application to a terminal device as an example. As shown in fig. 4, the method comprises the following steps S401-S404:
in step S401, in response to detecting a preset interactive operation for at least one container in a document, preset information for updating the at least one container is acquired.
In step S402, the elements in the container are updated based on the preset information.
For the explanation and explanation of steps S401 to S402, reference may be made to steps S101 to S102 in the embodiment shown in fig. 1, which is not repeated herein.
In step S403, in response to detecting that a first trigger condition is satisfied, converting a selected object in the document into a container, attribute information of the container being determined based on the first trigger condition.
The first trigger condition may be set based on actual service needs, for example, set to allow a user to select an object with a conversion container and trigger an operation of converting the object into the container, which is not limited in this embodiment.
In an embodiment, the converting the selected object in the document into a container in response to detecting that the first trigger condition is satisfied in step S403 may further include: in response to detecting that the stream text in the document has a preset element, converting the stream text associated with the element into a container of a type corresponding to the element.
The above elements may be preset keywords, such as "to do" used to represent the to-do item.
In this embodiment, the preset keywords may be set based on the needs of the actual application scenario, for example, in the case that the application scenario is an item to be handled, at least two types of keywords among time, place, event, and person may be used as elements. Keywords such as 4. Specifically, a character string "4.
Further, based on that the extracted elements all belong to the keyword type set in the to-do item scene, it may be determined that the container of the type corresponding to the element is the to-do item container.
In another embodiment, the converting the selected object in the document into a container of a specified type in response to detecting that the first trigger condition is satisfied in step S403 may further include: in response to receiving an instruction to convert a container, it is determined that a first conversion condition is detected to be satisfied to convert an object currently selected in the document to a container of an instruction specified type.
In another embodiment, the converting the selected object in the document into a container of a specified type in response to detecting that the first conversion condition is satisfied in step S403 may further include: in response to receiving an instruction to convert a container, it is determined that a first conversion condition is detected to be satisfied to convert an object currently selected in the document to a container of an instruction specified type.
In one embodiment, the selected objects are containers; a plurality of containers may be selected in the document in response to detecting; determining an association relationship between a plurality of the containers; and converting the containers into the containers of the specified type based on the association relationship among the containers.
The association relationship may include an attribution relationship, a hierarchical relationship, and the like, and is determined according to a specific application scenario. In this embodiment, the manner of obtaining the association relationship is not limited.
For example, attribute information of a plurality of containers may be acquired; determining an association relationship between a plurality of the containers based on the attribute information.
For example, the elements in the container may be obtained, semantic information may be obtained from the elements based on a recognition algorithm, such as a natural language processing technique, a picture recognition technique, and the like, and the association relationship between the containers or between the elements in the containers may be determined based on the semantic information.
In this embodiment, a specific conversion manner for converting the multiple containers into the containers of the designated type based on the relationship between the multiple containers is also not limited.
In an embodiment, the selected objects are a plurality of to-Do item containers; the containers of the specified type are billboard containers; acquiring element attribution information from the attribute information of each to-be-handled item container, wherein the element attribution information is an attribute item of the attribute information, such as an executor corresponding to the to-be-handled item in the to-be-handled item container; and determining at least one to-do item container with the same element attribution information, wherein the association relationship is the to-do item container belonging to the same element attribution information.
Further, the billboard container may be generated; setting a column corresponding to each element attribution information in the billboard container; generating a card corresponding to each element based on the selected elements in the multiple to-do item containers; and setting the card in a column corresponding to the element attribution information based on the element attribution information to which the card belongs.
In yet another embodiment, the plurality of objects selected are streaming text containers; the container of the specified type is a brain graph container; stream text style information, which is a property item of the property information, may be obtained from the property information of each of the stream text containers. For example, the attribute item (stream text style information) of the stream text container may set that the style corresponding to the stream text container is one of the first title, the second title, or the body, and the like, and has a hierarchical relationship, for example, the first title is a layer above the second title. Further, it may be determined that the association is a hierarchical relationship between a plurality of the stream text containers based on the stream text style information.
Further, generating a brain map container; wherein the brain graph container is a brain graph type container. The brain graph may include multiple levels of nodes. Correspondingly, the brain graph container can be determined as a parent container, the elements (nodes) in the brain graph container are determined as child containers, and the connection relationship of the nodes determines the hierarchical relationship between the nodes. The node connected with the root node is the next node of the root node, wherein the root node is the topmost node.
Further, adding a plurality of the stream text containers to the brain graph container as elements of the brain graph container; establishing a connection between a plurality of the stream text containers in the brain graph container based on a hierarchical relationship between the plurality of the stream text containers.
In another embodiment, when the elements in the container are tasks that require multiple persons to collaboratively complete, the tasks corresponding to the multiple persons may be selected as multiple objects, and it may be detected whether the objects satisfy set conditions, for example, whether the tasks processed by the persons are subtasks included in an overall task, or whether the tasks processed by the persons have "transitivity", for example: the task A needs to be processed by a first person, the first person is handed to a second person for processing after the first person is finished, and then the second person is handed to a third person for processing after the second person is finished. Wherein, the task is processed by who can identify the elements in the container through an identification algorithm; or may be determined by attribute information of the container. It should be understood that the setting conditions are only for exemplary purposes, and the present embodiment is not limited thereto. On this basis, when it is detected that these objects satisfy the set condition, the plurality of objects may be converted into containers of a specified type. For example, the tasks (i.e., objects) that three people, a, b, and c, need to complete are converted into a task type container.
It should be noted that, in the present embodiment, the manner of triggering the selected object in the document to be converted into the container of the specified type may be to perform element detection based on a conversion condition trigger (the element is an object for conversion into the container of the specified type). Wherein, the conversion condition selectable items may include the following 3:
1. specific interaction-front direct trigger; for example: triggering an option in the document for inserting a container, etc.; another example is: the instructions for converting containers described above.
2. Escape interaction-trigger detection; for example: triggering operations in the document to leave the edited stream text object, etc., such as: when the operation of editing the stream text container is finished, the enter key can be clicked to indicate that the editing is finished; alternatively, the cursor may be moved from the stream text container to another position to indicate that the stream text container editing is finished.
3. Specific interaction-post trigger detection; for example: triggering a preset shortcut key and the like.
On the other hand, the elements available for detection in the document, i.e. the above-mentioned preset elements related to the selected object, may include the following categories:
a. elemental detection of elements in a container
In this embodiment, all elements in the container may be read; and detecting whether preset elements exist in all the elements.
For example, in a stream text container, the elements in the container are stream text. Further, assuming that when the stream text in the stream text container detects a preset element, such as three elements of user, time and place, and it is determined that the stream text container satisfies the trigger first conversion condition, the conversion into a container of a specified type, such as a container of a "clustered application" structure, based on the stream text associated with the three elements in the stream text container can be realized.
The container of the "grouping application" structure may be an integrated container containing the contents of the three elements of the user, the time and the place, and the user of the integrated container may be two or more people to represent the "grouping" of the elements in the container. For example, stream texts associated with preset elements in a plurality of stream text containers may be obtained; selecting a plurality of stream text containers which are the same as the stream texts associated with the preset elements from the plurality of stream text containers as target stream text containers; generating a container of the type of 'clustered applications'; and displaying the target stream text container in the 'clustering application' type container based on the stream text associated with the same preset element. For example, when three persons a, b, and c (user elements) are detected to have travel information of the same time (time element) and the same place (place element) in a plurality of streaming text containers, it may be determined that a first conversion triggering condition is currently satisfied (i.e., a condition for triggering detection of an element for converting a container and conversion of the element into a container of a specified type is satisfied, and the same is true), and the three elements of the user, time, and place in the travel information of the three persons may be converted into a "clustering application" type container, such as a conference container or an active container. In the conference container or the movable container, the same streaming texts associated with preset elements can be extracted from the target container, for example, the same time corresponding to the time element and the same place corresponding to the place element; taking the same stream text as an element in a conference container or an activity container, and displaying the same stream text in the conference container or the activity container, for example, taking the same time as the conference time or the activity time of the conference container or the activity container, and taking the same place as the conference place or the activity place of the conference container or the activity container; and extracting different stream texts corresponding to other preset elements from the target container, integrating and displaying the different stream texts in the conference container or the activity container, wherein if the different stream texts are extracted from the target container, the different stream texts are used as participants of the conference container or the activity container.
b. Detection of incidental information from a container
In this embodiment, the attribute information in the container may be read as the incidental information of the container; and detecting whether preset elements exist in all the additional information.
For example, assuming that a first conversion condition is satisfied within a container when the container satisfies the incidental creator and the state of the creator is a specific state, the container may be converted into a container of a structure that may limit interaction or visibility. Wherein the restrictable interaction may indicate whether the container may be edited, clicked on, etc.; the visibility restriction may indicate whether the container is displayed in the document, or whether the container is displayed in the document according to the user's rights. Specifically, attribute items related to interaction in the attribute information of the container, such as an attribute item of an interaction mode, may be set. Furthermore, when the container is displayed, the interactive mode attribute items of the container can be read; and determining the interactive mode of the container, such as whether the container can be edited, clicked, displayed and the like, based on the attribute value of the interactive mode attribute item.
c. Container + element comprehensive detection
In this embodiment, attribute information of all elements and containers in a container may be read; and detecting whether preset elements exist in all the elements and the attribute information.
For example, assuming that when the parent container is accompanied by user information and the text element satisfies the conditions of time and place, a container converted into a structure of an assigned "conference application" can be realized, wherein the assigned object can be a user or a user group represented in the user information, and the user or the user group can be stored as a unique identification number in the electronic device.
Exemplarily, element attribution information in attribute information of a stream text container is obtained; determining a user to which the parent container belongs from the element attribution information; when the stream text in the stream text container has preset elements of time and place; and constructing a container of the structure of the conference application based on the user, the stream text corresponding to the time element and the stream text corresponding to the place element. For example, a page is displayed in a container of a structure of a "conference application", and the page is used for displaying information of time, place and participant related to a conference; further, when constructing a container of the structure of the "conference application", the user, the stream text corresponding to the time element, and the stream text corresponding to the place element may be set in corresponding positions on the page, such as the participant information, the time, and the place.
In one embodiment, the detection range of the above elements may include the following categories:
a) Single container detection: i.e., a single container is used as the test object to determine whether the container needs to be converted into another type of container.
B) Multi-stage container detection: under the current container, element detection and conversion of a multi-level container may be triggered if the conditions for converting element detection to a single structured container are met, and the conditions for detecting all child containers and elements under the same parent container are appended to the container.
In this embodiment, how to convert the multi-level capacitor is not limited, and may be set according to an actual application scenario.
For example, in an application scenario of a task type, a plurality of currently detected elements or child containers belonging to the same parent container may be converted into a task container of a chain structure.
The task container may be a container including a structure of a task chain and task nodes, where the task nodes may include people, events, and time elements.
Illustratively, determining that a parent container includes a plurality of to-Do item containers; receiving a conversion instruction for converting into a task container; responding to the conversion instruction, and acquiring character information, event information and time information corresponding to preset elements of characters, events and time in the multiple to-do item containers; determining the sequence of tasks represented by the multiple to-do item containers by adopting a voice analysis algorithm based on the character information, the event information and the time information; generating a task container, and taking a plurality of to-do item containers in a parent container as task nodes in the task container; and establishing the connection of the task nodes according to the determined sequence. The connection may be represented by an arrow, where an arrow points from the first task node to the second task node, indicating that the first task node is executed first and then the second task node is executed.
For example, in an application scenario of task type, multiple elements or child containers currently detected as belonging to the same parent container may be converted into kanban containers.
Specifically, determining that a parent container comprises a plurality of to-do item containers; acquiring element attribution information from the attribute information of each to-be-handled item container, wherein the element attribution information is an attribute item of the attribute information, such as an executor corresponding to the to-be-handled item in the to-be-handled item container; and determining at least one to-do item container with the same element attribution information, wherein the association relationship is the to-do item container attribution to the same element attribution information. Further, the billboard container may be generated; setting a column corresponding to each element attribution information in the billboard container; generating a card corresponding to each element based on the elements in the multiple to-do item containers in the parent container; and setting the card in a column corresponding to the element attribution information based on the element attribution information to which the card belongs.
C) Upper and lower container association detection, converging under set rules: that is, the currently converted container may be obtained by converting on the basis of the original container, or the converted container may be set at a preset position. The upper and lower container association detection is similar to the multi-level container detection, except that the scope of the multi-level container extends to all containers in the document.
For example, a summary container may be set at the beginning of the document to summarize the to-do item containers in the document that satisfy the predetermined condition, where the elements in the summary container may be the elements in the to-do item containers that satisfy the predetermined condition. And the predetermined condition may be a preset priority, a preset user, etc. In this case, the predetermined condition may be a convergence condition under the set rule.
In step S404, in response to detecting that the second trigger condition is satisfied, the selected container is converted into a streaming text.
In this embodiment, when it is detected that the second trigger condition is satisfied, the selected container may be converted into a streaming text.
The second trigger condition may be set based on actual service needs, for example, the second trigger condition is set to be an operation that a user selects a container and triggers a container conversion object, and the like.
Further, in this embodiment, how the containers have the collaborative containers is not limited, and all the containers have the updated correlation, the containers can be considered to have the collaborative relationship, that is, the containers are collaborative containers.
Exemplary collaborative containers include containers transformed, e.g., containers that are considered to be collaborative with one another when one container is transformed from another.
In an embodiment, the selected object is a container, and after step S403, the method may further include:
and setting the converted container as a cooperative container of the container before conversion.
Further, in response to the at least one container selected in the document, acquiring preset information from a collaborative container of the at least one container; updating the elements in the container based on the preset information.
If so, responding to the selection of the at least one target container in the document, and acquiring preset information from a cooperative container (a container having a conversion relation with the target container, such as a container converted based on the target container; or a container converted to obtain the target container); and updating the elements in the target container based on the preset information.
In a specific example, a summary container may be set at the beginning of the document to summarize the to-do item containers satisfying the predetermined condition in the document, where the elements in the summary container may be the elements in the to-do item containers satisfying the predetermined condition. The summary container is obtained by converting the to-do item containers, it can be determined that the summary container is a to-do item container and is a collaborative container, changes of elements of the summary container are synchronously updated into the to-do item container, and changes of elements of the to-do item container are synchronously updated into the summary container.
FIG. 5 shows a block diagram of a document processing apparatus according to an exemplary embodiment of the present invention; the device of the embodiment can be applied to a terminal device with a document processing function (such as a smart phone, a tablet computer, a notebook computer or a desktop computer, etc.), or can be applied to a server (such as a server or a server cluster formed by multiple servers, etc.). As shown in fig. 5, the apparatus includes: a preset information obtaining module 110 and a container element updating module 120, wherein:
a preset information obtaining module 110, configured to, in response to detecting a preset interactive operation for at least one container in a document, obtain preset information for updating the at least one container;
a container element updating module 120, configured to update the elements in the container based on the preset information.
As can be seen from the above description, in this embodiment, by responding to the detection of the preset interaction operation for at least one container in the document, obtaining the preset information for updating the at least one container, and updating the elements in the container based on the preset information, the content update form in the document can be enriched, the efficiency of document update is improved, the efficiency of subsequent terminal devices processing the document can be improved, the workload of a terminal device processor is reduced, and the intelligence level of document processing can be improved.
FIG. 6 is a block diagram showing a configuration of a document processing apparatus according to another exemplary embodiment of the present invention; the device of the embodiment can be applied to a terminal device with a document processing function (such as a smart phone, a tablet computer, a notebook computer or a desktop computer, etc.), or can be applied to a server (such as a server or a server cluster formed by multiple servers, etc.). The preset information obtaining module 210 and the container element updating module 220 have the same functions as the preset information obtaining module 110 and the container element updating module 120 in the embodiment shown in fig. 5, and are not repeated herein.
As shown in fig. 6, the preset information obtaining module 210 may further be configured to:
and responding to the at least one container selected in the document, and acquiring preset information for updating the at least one container from a third-party application.
In one embodiment, the apparatus further comprises:
a container element synchronization module 230, configured to update elements in the container to a third-party application synchronously based on the preset information.
In an embodiment, the container element update module 220 may be further operable to:
updating the elements in the container by adopting the acquired preset information based on the authority provided by the third-party application; or the like, or a combination thereof,
updating the elements in the container by adopting the acquired preset information based on the authority in the options of the container; or the like, or, alternatively,
and updating the elements in the container by adopting the acquired preset information based on the permission provided by the third-party application and the permission in the options of the container.
In one embodiment, the container has a cooperating container;
the device further comprises:
a container cooperation updating module 240, configured to trigger the cooperation container to perform a cooperation update in response to updating the elements in the container based on the preset information.
In an embodiment, the container cooperation updating module 240 is further configured to update the cooperation container and/or an element in the cooperation container based on a preset priority.
In an embodiment, the apparatus further comprises a priority update module 241, and the priority update module 241 may be configured to:
when the collaborative container is a streaming text container, updating elements in the collaborative container with a higher priority than updating the collaborative container;
when the collaborative container is a view type container, the collaborative container is updated with a higher priority than the collaborative container.
In an embodiment, the container collaboration update module 240 is further configured to:
updating the collaborative container based on a manner associated with the collaborative container type.
In an embodiment, the apparatus may further include:
an attribute information obtaining module 250, configured to obtain attribute information of each container, where the attribute information includes at least one attribute item;
the attribute item determination module 260 is configured to determine an attribute item satisfying a preset condition from the at least one attribute item as a target attribute item;
a target location determining module 270, configured to determine a target location of the at least one container in the document according to the target attribute item.
In an embodiment, the attribute item may include at least one of:
editing authority, preset mounting information, a cooperation boundary, an interaction mode, element attribution information and association degree setting information.
In an embodiment, the elements of the container may include at least one of:
streaming text;
a webpage or a part of content corresponding to the webpage;
an item to be dealt with;
a billboard;
the method comprises the following steps that a graph comprises at least one of a mind map, a UML (unified modeling language) and a flow chart, wherein the mind map comprises at least one module, the mind map corresponds to a parent container, the module corresponds to a child container, and the child containers corresponding to the at least one module have an association relationship and are connected based on the association relationship;
multimedia data.
In an embodiment, in a case that the document includes more than two containers, the apparatus may further include:
a container sorting module 280, configured to sort the two or more containers in the document according to the result of sorting the parameter values of the target attribute items.
In an embodiment, the attribute item determination module 260 is further configured to any one of:
determining the attribute item as a target attribute item based on the currently selected attribute item;
determining the attribute item with the highest priority as a target attribute item;
determining a target property item based on a currently detected operation triggered on the container.
In an embodiment, the type of the container includes a to-do item container, and the to-do item container contains to-do items;
the editing authority of the to-be-handled item container belongs to a container creator or a to-be-handled task distributor, and the editing authority of the to-be-handled item belongs to a task collaborator.
In an embodiment, the container may be a parent container or a child container, where the parent container includes at least one child container.
In one embodiment, the parent container and the child container have different editing rights, and the editing rights of the parent container are higher than the editing rights of the child container.
In an embodiment, the type of the container includes a to-do item container, where the to-do item container includes to-do items;
the editing authority of the to-be-handled item container belongs to a container creator or a to-be-handled task distributor, and the editing authority of the to-be-handled item belongs to a task collaborator.
The above-mentioned device still includes: a container selection module 290;
the container selection module 290 may be configured to:
in response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the gas,
in response to detecting that an object selected based on a preset compound shortcut includes any part of an element in a container, determining that the container is selected.
In an embodiment, in a case where the property item includes an editing right, the apparatus further includes: an editing right setting module 300;
the editing right setting module 300 may be configured to set the editing right based on any one of:
mounting information, a cooperation boundary and an interaction mode are preset.
In an embodiment, the apparatus may further include:
a preset operation executing module 310, configured to execute a preset operation on the at least one container based on a preset coordination boundary, where the preset operation includes a merge operation and/or a split operation.
In an embodiment, in a case that the preset operation includes a merge operation, the preset operation executing module 310 may be further configured to perform deduplication processing on the repeated elements in the container obtained after the merge operation.
In an embodiment, the elements of the container include feature items and information items, and in a case that the preset operation includes a merge operation, the preset operation executing module 310 may further be configured to:
in response to determining that the level of the first characteristic item of the first container is higher than the level of the second characteristic item of the second container, merging the first container and the second container by merging the second information item of the second container into the first information item of the first container.
In one embodiment, the apparatus further comprises:
a container conversion module 320, configured to convert a selected object in the document into a container in response to detecting that a first trigger condition is satisfied, where attribute information of the container is determined based on the first trigger condition.
In an embodiment, the container conversion module 320 may be further configured to, in response to detecting that the stream text in the document has a preset element, convert the stream text associated with the element into a container of a type corresponding to the element.
In an embodiment, the above-mentioned elements may be preset keywords.
In an embodiment, the preset keywords include at least two of the to-do item, or the time, the place, the event, and the person, and the container conversion module 320 may be further configured to convert the content currently selected in the document into a container of a type specified by the instruction in response to receiving the instruction for converting the container.
In an embodiment, the container conversion module 320 may be further configured to convert a plurality of objects into a container in response to detecting that the plurality of objects are selected in the document and the plurality of objects satisfy a set condition.
In an embodiment, the apparatus may further include:
a stream text conversion module 330, configured to convert the selected container into stream text in response to detecting that the second trigger condition is satisfied.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiment of the document processing device can be applied to network equipment. The apparatus embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 7, which is a hardware structure diagram of an electronic device in which a document processing apparatus of the present invention is located, in addition to the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 7, the device in which the apparatus is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing a packet, and the like; the device may also be a distributed device in terms of hardware structure, and may include multiple interface cards to facilitate expansion of message processing at the hardware level.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is processed by a processor to implement:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
updating the elements in the container based on the preset information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (13)

1. A method of document processing, comprising:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
and updating the elements in the container based on the preset information.
2. The method according to claim 1, wherein the obtaining preset information for updating at least one container in the document in response to detecting a preset interactive operation for the at least one container comprises:
and responding to the at least one container selected in the document, and acquiring preset information for updating the at least one container from a third-party application.
3. The method of claim 2, further comprising:
and synchronously updating the elements in the container to a third-party application based on the preset information.
4. The method according to claim 2, wherein the updating the elements in the container based on the preset information comprises:
updating the elements in the container by adopting the acquired preset information based on the authority provided by the third-party application; or the like, or, alternatively,
updating the elements in the container by adopting the acquired preset information based on the authority in the options of the container; or the like, or, alternatively,
and updating the elements in the container by adopting the acquired preset information based on the permission provided by the third-party application and the permission in the options of the container.
5. The method of claim 1, wherein the container has a cooperating container;
the method further comprises the following steps:
and triggering the collaborative container to carry out collaborative updating in response to updating the elements in the container based on the preset information.
6. The method of claim 5, wherein the triggering the collaborative container for collaborative updating comprises:
updating the collaborative container and/or elements in the collaborative container based on a preset priority.
7. The method of claim 6, further comprising:
when the collaborative container is a streaming text container, updating elements in the collaborative container with a higher priority than updating the collaborative container;
when the collaborative container is a view type container, the collaborative container is updated with a higher priority than the collaborative container.
8. The method of claim 5, wherein the triggering the collaborative container for collaborative updating comprises:
updating the collaborative container based on a manner associated with the collaborative container type.
9. The method according to claim 5, wherein the obtaining preset information for updating at least one container in the document in response to detecting a preset interactive operation for the at least one container comprises:
and responding to the at least one container selected in the document, and acquiring preset information from a cooperative container of the at least one container.
10. The method of claim 1, wherein the preset interaction comprises: an operation for selecting a container, the method further comprising:
in response to detecting a touch operation within range of the container, determining that the container is selected; and/or the presence of a gas in the gas,
in response to detecting that an object selected based on a preset compound shortcut includes any part of an element in a container, determining that the container is selected.
11. A document processing apparatus, characterized by comprising:
the system comprises a preset information acquisition module, a preset information updating module and a file processing module, wherein the preset information acquisition module is used for responding to the detection of preset interactive operation aiming at least one container in a document and acquiring preset information for updating the at least one container;
and the container element updating module is used for updating the elements in the container based on the preset information.
12. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing a computer program;
wherein the processor is configured to, when executing the computer program, implement:
in response to detecting preset interactive operation aiming at least one container in a document, acquiring preset information for updating the at least one container;
updating the elements in the container based on the preset information.
13. A computer-readable storage medium, on which a computer program is stored, the program, when processed by a processor, implementing:
in response to detecting preset interactive operation aiming at least one container in the document, acquiring preset information for updating the at least one container;
updating the elements in the container based on the preset information.
CN202110826708.2A 2021-07-21 2021-07-21 Document processing method, device, equipment and storage medium Pending CN115688694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110826708.2A CN115688694A (en) 2021-07-21 2021-07-21 Document processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110826708.2A CN115688694A (en) 2021-07-21 2021-07-21 Document processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115688694A true CN115688694A (en) 2023-02-03

Family

ID=85045024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110826708.2A Pending CN115688694A (en) 2021-07-21 2021-07-21 Document processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115688694A (en)

Similar Documents

Publication Publication Date Title
US7325196B1 (en) Method and system for manipulating page control content
US7509345B2 (en) Method and system for persisting and managing computer program clippings
US8341528B2 (en) Managing the content of shared slide presentations
CN112203122A (en) Artificial intelligence-based similar video processing method and device and electronic equipment
JP2019537081A (en) Creating a project in a content management system
US11960525B2 (en) Automatically formatting content items for presentation
EP1615145A2 (en) System and method for graphically illustrating external data source information in the form of a visual hierarchy in an electronic workspace
US9483452B2 (en) Generating document content from application data
US11797258B2 (en) Conversational analytics with data visualization snapshots
US11625686B2 (en) Managing reminders in a content management system
JP2006323815A (en) File management system using time line based expression of data
JP2006244493A (en) File system expressed in data base
US20080288462A1 (en) Database system and display method on information terminal
US20070234201A1 (en) Information Management Device
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
US20190294659A1 (en) Embedding a portion of a source content item
JP6948492B2 (en) Information management device and file management method
CN115688694A (en) Document processing method, device, equipment and storage medium
Lee Taking context seriously: a framework for contextual information in digital collections
US20070220439A1 (en) Information Management Device
US20070055928A1 (en) User workflow lists to organize multimedia files
CN115688691A (en) Document processing method, device, equipment and storage medium
CN113407678A (en) Knowledge graph construction method, device and equipment
CN115688692A (en) Document processing method, device, equipment and storage medium
CN115688693A (en) Document processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination