A data processing method, apparatus, and readable storage medium
By stating and displaying the editing workload in real time in online document editing applications, the problem of low data statistics efficiency and accuracy in multiple document editing processes in the prior art is solved, and more efficient and accurate editing workload management is achieved.
Patent Information
- Application Number
- CN202110724283.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-06-29
AI Technical Summary
Existing online document products lack detailed process data statistics during the editing process of multiple documents, resulting in inefficient and low accuracy of editing workload.
Provides a data processing method and device to support multiple characters based on the number of characters in the editing operation by displaying and updating the editing workload, including the difference between the initial editing workload and the target editing workload. Workload details and workload progress information for the time dimension.
It improves the statistical efficiency and accuracy of editing workload during document editing, dynamically displays the editing workload, enriches the display method of document editing, and supports cross-document editing workload statistics.
Smart Images

Figure CN113449494B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data processing method, device and readable storage medium. Background Art
[0002] With the increasingly tense pace of modern work, processing various files has become an indispensable daily task. In the process of processing files, if multiple users need to process the same document, taking turns to process will waste a lot of time in the transmission process, and the user who processes later may not know the content modified by the user who processes earlier. To solve this problem, online documents came into being. Online documents are a document tool that can be edited, viewed, and collaborated online, and can support users to import local documents for online editing.
[0003] In the process of editing a document, existing online document products can perform statistical analysis and display of the total number of characters in a single document based on the characters in the single document, but lack detailed and specific process data statistics for multiple documents. For example, when a user wants to perceive his editing workload within a period of working time (such as the number of characters added to multiple documents on the same day), he can only guess by manually observing and recording the changes in the total number of characters before and after this period, resulting in low statistical efficiency of editing workload and the results obtained are often of low accuracy. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, and readable storage medium, which can improve the efficiency and accuracy of statistical editing workload during document editing.
[0005] On the one hand, an embodiment of the present application provides a data processing method, including:
[0006] Displaying one or more documents to be edited associated with a target user account; the one or more documents to be edited include the target document;
[0007] In response to a trigger operation on a target document, the text data in the target document in an editing state and the initial editing workload are displayed on the document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited.
[0008] On the one hand, an embodiment of the present application provides a data processing method, including:
[0009] Displaying text data in an editing state and an initial editing workload in a target document of a document editing application; the initial editing workload is used to represent the number of characters associated with the target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document;
[0010] In response to an editing operation on text data, if the editing operation includes an operation belonging to a target editing mode, the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the editing operation.
[0011] An embodiment of the present application provides a data processing device, including:
[0012] A first display module, configured to display one or more documents to be edited associated with a target user account; the one or more documents to be edited include a target document;
[0013] The second display module is used to respond to the trigger operation on the target document and display the text data in the target document in the editing state and the initial editing workload in the document editing interface; the initial editing workload includes the total number of characters associated with the target editing method counted in each document to be edited.
[0014] The first display module is specifically used to display at least two documents associated with the target user account; in response to a selection operation on the at least two documents, the selected documents are determined as documents to be edited; and the number of documents to be edited is one or more.
[0015] The above device further comprises:
[0016] The third display module is used to respond to the trigger operation for the initial editing workload and display the workload details information of at least two time dimensions.
[0017] Wherein, the third display module comprises:
[0018] The first display unit is used to respond to the trigger operation for the initial editing workload and display the workload details interface; the workload details interface includes detail display controls for at least two time dimensions; the at least two time dimensions include the time dimension T i , i is a positive integer less than or equal to the total number of time dimensions;
[0019] The second display unit is used to respond to the time dimension T in at least two detail display controls of the workload detail interface. i The details of the display control trigger operation, showing the time dimension T iWorkload details information M i .
[0020] The second display unit is specifically used to respond to the time dimension T i The details of the display control trigger operation, showing the time dimension T i The sum of the editing workload corresponding to each document to be edited, and the time dimension T i The editing workload corresponding to the target document.
[0021] An embodiment of the present application provides a data processing device, including:
[0022] A first display module is used to display text data in an editing state and an initial editing workload in a target document of a document editing application; the initial editing workload is used to represent the number of characters associated with the target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document;
[0023] The first update display module is used to respond to editing operations on text data. If the editing operations include operations belonging to the target editing method, the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing method in the editing operation.
[0024] Among them, the target editing method includes an adding editing method;
[0025] The first update display module includes:
[0026] The first update unit is used to respond to editing operations on text data. If the editing operations include operations belonging to the adding editing mode, target characters are added to the text data based on the operations belonging to the adding editing mode, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is equal to the number of target characters added.
[0027] Among them, the target editing method includes the deletion editing method;
[0028] The first update display module includes:
[0029] The second updating unit is used to respond to editing operations on text data. If the editing operations include operations belonging to the deletion editing mode, based on the operations belonging to the deletion editing mode, target characters are deleted from the text data, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the target characters belong to the text data; the difference between the target editing workload and the initial editing workload is equal to the number of target characters deleted.
[0030] Among them, the target editing mode includes an attribute modification editing mode;
[0031] The first update display module includes:
[0032] The third updating unit is used to respond to editing operations on text data. If the editing operations include operations belonging to the attribute modification editing mode, the character attributes of the target characters are modified in the text data based on the operations belonging to the attribute modification editing mode, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the target characters belong to the text data; the difference between the target editing workload and the initial editing workload is equal to the number of characters of the target characters whose character attributes are modified.
[0033] Wherein, the above-mentioned document editing application also includes workload progress information;
[0034] The above device also includes:
[0035] A second updating and displaying module, used for updating and displaying the workload progress information based on the difference between the target editing workload and the initial editing workload;
[0036] An animation display module is used to display a special effect animation associated with the editing operation if the updated workload progress information is in a progress completion state during an editing cycle associated with the workload progress information;
[0037] The prompt module is used to display a task failure prompt message if the editing cycle has ended and the updated workload progress information is in an incomplete progress state.
[0038] The above device further comprises:
[0039] A progress information generation module is used to obtain editing frequency, incentive parameters and editing cycle; the editing frequency is used to characterize the number of characters associated with the target editing method counted in the document editing application within a unit time period; the incentive editing frequency is generated based on the editing frequency and incentive parameters, and the cycle ratio of the editing cycle to the unit time period is generated; the incentive editing frequency is multiplied by the cycle ratio to obtain the expected total workload, and the workload progress information is generated according to the expected total workload planned to be completed within the editing cycle.
[0040] Wherein, the above-mentioned first update display module includes:
[0041] A change set generating unit, for responding to an editing operation on text data, generating a data change set corresponding to the target editing mode if the editing operation includes an operation belonging to the target editing mode, and sending the data change set to a server so that the server generates a target editing workload based on the data change set;
[0042] The fourth updating unit is used to obtain a target editing workload, and update and display the initial editing workload in the document editing application as the target editing workload.
[0043] Among them, the target editing method includes an adding editing method;
[0044] The above change set generation unit includes:
[0045] The first generating sub-unit is used to respond to the editing operation on the text data. If the editing operation includes an operation belonging to the adding editing mode, then based on the operation belonging to the adding editing mode, the adding position information and the added target characters are obtained, and a data change set matching the adding editing mode is generated based on the adding position information and the target characters, and the data change set is sent to the server, so that the server generates a target editing workload according to the number of target characters in the data change set and the initial editing workload.
[0046] Among them, the target editing method includes the deletion editing method;
[0047] The above change set generation unit includes:
[0048] The second generating sub-unit is used to respond to editing operations on text data. If the editing operations include operations belonging to the deletion editing mode, then based on the operations belonging to the deletion editing mode, the deletion position information and the number of deleted characters are obtained, and a data change set matching the deletion editing mode is generated based on the deletion position information and the number of deleted characters. The data change set is sent to the server so that the server generates a target editing workload based on the number of deleted characters in the data change set and the initial editing workload.
[0049] Among them, the target editing mode includes an attribute modification editing mode;
[0050] The above change set generation unit includes:
[0051] The third generating sub-unit is used to respond to editing operations on text data. If the editing operations include operations belonging to the attribute modification editing mode, then based on the operations belonging to the attribute modification editing mode, the modification position information, the number of modified characters and the modified character attributes are obtained, and based on the modification position information, the number of modified characters and the modified character attributes, a data change set matching the attribute modification editing mode is generated, and the data change set is sent to the server so that the server generates a target editing workload based on the number of modified characters and the initial editing workload in the data change set.
[0052] The above-mentioned change set generation unit includes:
[0053] The fourth generating sub-unit is used to respond to editing operations on text data. If the editing operation includes an operation belonging to a target editing mode, the characters associated with the target editing mode in the editing operation are stored in a target cache area; when the number of cached characters stored in the target cache area is greater than or equal to a storage threshold, a data change set corresponding to the target editing mode is generated based on the cached characters, and the data change set is sent to the server.
[0054] The above-mentioned change set generation unit includes:
[0055] The fifth generating sub-unit is used to respond to editing operations on text data. If the editing operation includes operations belonging to the target editing mode, the characters associated with the target editing mode in the editing operation are stored in the target cache area; when the cache cycle associated with the target cache area ends, a data change set corresponding to the target editing mode is generated based on the cached characters stored in the target cache area, and the data change set is sent to the server.
[0056] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;
[0057] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program to execute the method in the embodiment of the present application.
[0058] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.
[0059] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.
[0060] The embodiments of the present application can support the statistics of cross-document editing workload, that is, it can automatically count the number of characters associated with the editing methods adopted by the user in the process of editing one or more documents, so that the sum of the editing workload corresponding to each document can be obtained based on these number of characters, and it can be continuously displayed dynamically and intuitively in the document editing application, without the need for users to manually observe and record relevant data for inference, thereby expanding the product form and capabilities of document products, improving the efficiency and accuracy of statistical editing workload in the document editing process, and enriching the display method of document editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0062] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0063] Figure 2a-2e It is a schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0064] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0065] Figure 4 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0066] Figure 5a-Figure 5b It is a schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0067] Figure 6 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0068] Figure 7 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0069] Figure 8It is a flowchart of a data processing method provided in an embodiment of the present application;
[0070] Figure 9a-9d It is a schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0071] Fig.10 It is a timing diagram of a data processing method provided in an embodiment of the present application;
[0072] Fig.11 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0073] Fig.12 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0074] Fig.13 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0075] Fig.14 is a structural schematic diagram of a computer device provided in an embodiment of the present application;
[0076] Fig.15 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0078] See also Figure 1 , is a schematic diagram of a system architecture provided by an embodiment of the present application. Figure 1As shown, the system architecture may include a business server 100 and a terminal cluster, and the terminal cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n, wherein there may be a communication connection between the terminal clusters, for example, there is a communication connection between terminal device 200a and terminal device 200b, and there is a communication connection between terminal device 200a and terminal device 200c. At the same time, any terminal device in the terminal cluster may have a communication connection with the business server 100, for example, there is a communication connection between terminal device 200a and the business server 100, wherein the above communication connection does not limit the connection method, and may be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, and this application does not make any restrictions here.
[0079] It should be understood that Figure 1 Each terminal device in the terminal cluster shown in the figure may be installed with an application client. When the application client runs in each terminal device, it can be respectively connected to the above Figure 1 The business servers 100 shown in the figure interact with each other so that the business server 100 can receive business data from each terminal device. Among them, the application client can be an application client with the function of displaying text, images, audio and video data information such as document editing application, browser, social application, instant messaging application, live broadcast application, game application, short video application, video application, music application, shopping application, novel application, payment application, etc. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as an instant messaging client, a social client, etc.), which is not limited here. Taking the document editing application as an example, the business server 100 may be a collection of multiple servers including a background server corresponding to the document editing application, a data processing server, etc. Therefore, each terminal device may transmit data with the business server 100 through the application client corresponding to the document editing application. For example, each terminal device may view, edit, and perform other operations on the same document together with other terminal devices through the business server 100 to achieve multi-party online collaboration. For example, terminal device 200a, terminal device 200b, and terminal device 200c may jointly edit an information collection form through the business server 100, including filling in personal identity information, contact information, address, etc. During the multi-party collaborative editing process, the editing interface of each terminal device may synchronously display the editing operations (such as adding characters, deleting characters, etc.) performed by any terminal device in real time.
[0080] Taking the terminal device 200a and the terminal device 200b as an example, assuming that user A edits the target document through the terminal device 200a, and user B also edits the target document through the terminal device 200b, during the collaborative editing process of both parties, the terminal device 200a can respond to the editing operation on the target document, automatically save its edited content to the cloud, and send a synchronization instruction to the business server 100 in real time. After receiving the synchronization instruction sent by the terminal device 200a, the business server 100 can synchronize the content edited by the terminal device 200a to the terminal device 200b in real time, and the terminal device 200b can then display the content edited by the terminal device 200a in the target document. Similarly, the terminal device 200b can also synchronize the content edited by it in the target document to the terminal device 200a in real time through the business server 100 for display.
[0081] It should be noted that in the embodiment of the present application, for any terminal device, the document editing application also provides the function of editing workload statistics and display. For example, the document editing application can objectively count the number of characters added by the user during a period of working time and update and display them in real time. Taking the terminal device 200a as an example, after the terminal device 200a opens and logs in to the document editing application, the text data in the target document in the editing state and the initial editing workload can be displayed in the editing interface of the document editing application, wherein the initial editing workload is used to characterize the number of characters associated with the target editing mode counted in one or more documents to be edited. Further, the terminal device 200a can edit the text data, at which time the terminal device 200a can respond to the editing operation for the text data, display the edited content in the editing interface, and detect the editing operation. If it is detected that the editing operation contains an operation belonging to the target editing mode, a data change set corresponding to the target editing mode can be generated based on the editing operation, and then the data change set can be sent to the business server 100. After receiving the data change set, the business server 100 can parse the data change set to obtain the character change increment in this editing operation, so as to generate the target editing workload based on the character change increment, and then return the target editing workload to the terminal device 200a. After the terminal device 200a successfully receives it, it can further update the initial editing workload in the document editing application to display the target editing workload. It can be understood that the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the above-mentioned editing operation. Among them, the target editing mode includes but is not limited to the addition editing mode, the deletion editing mode, and the attribute modification editing mode. For example, if the target editing mode is the add editing mode, then during the process of editing the document, the terminal device 200a can update and display in real time the number of characters associated with the add editing mode counted in the document editing application, that is, display the real-time number of added characters (corresponding to the target editing workload), that is, each time the operation of adding characters is performed, the number of added characters will be synchronously updated accordingly, and this update will not be affected by other operations that do not belong to the add editing mode (such as the operation of deleting characters), so the user can intuitively know how many characters he has added through the document editing application. Optionally, the business server 100 can synchronously send the target editing workload corresponding to the terminal device 200a to other terminal devices participating in the collaborative editing (such as any one or more of the terminal device 200b, the terminal device 200c, and the terminal device 200n) for display, so that any user can know the editing workload completed by other users during the collaborative editing process.
[0082] It is understandable that the method provided in the embodiment of the present application can be performed by a computer device, and the computer device includes but is not limited to a terminal device or a business server. Among them, the business server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a PDA, a mobile Internet device (mobile internet device, MID), a wearable device (such as a smart watch, a smart bracelet, etc.), a smart computer, a smart car, etc., which can run the above-mentioned application. Intelligent terminals. Among them, the terminal device and the business server can be directly or indirectly connected by wired or wireless means, and the embodiments of the present application are not limited here.
[0083] For ease of understanding, the following specific description is given by taking the terminal device 200a and the service server 100 as an example.
[0084] Please also see Figure 2a-2e , is a schematic diagram of a data processing scenario provided by an embodiment of the present application. The implementation process of the data processing scenario can be as follows: Figure 1 The service server 100 shown in the figure can also be used in a terminal device (such as Figure 1 The process is performed in any one of the terminal devices 200a, 200b, 200c or 200n shown in the figure), and can also be performed by the terminal device and the service server together. There is no limitation here. The embodiment of the present application takes the terminal device 200a and the service server 100 as an example for explanation. Figure 2aAs shown, user A has a binding relationship with the terminal device 200a, and multiple application clients (such as document editing applications, browsers, game applications, video applications, etc.) can be installed on the terminal device 200a, including application client A1, application client A2, application client A3, ..., application client A8, etc. Assuming that user A wants to open one of the applications for document viewing and editing, such as application client A1 (specifically, it can be a document editing application), the terminal device 200a can respond to the trigger operation (such as a click operation) for the application client A1, and display the login interface 300a corresponding to the application client A1 on its screen. A variety of login methods that can be selected by the user can be displayed in the login interface 300a. For example, one optional login method is the "quick and secure login" method, that is, user A can use a terminal device with a scanning function (such as a smart phone) to scan the QR code 301a in the login interface 300a according to relevant prompt information (such as "Please use a mobile phone to scan the QR code"). After the scanning is successful, the terminal device 200a can connect to the business server 100 through the application client A1 to initiate a login request. Another optional login method is the "account and password login" method, that is, user A can log in by manually entering the user account and corresponding password associated with the application client A1, that is, the terminal device 200a can respond to the trigger operation for the login control 302a, and display an interface for the user to input information (or display it in the form of a floating window, mask, etc.). When user A completes the information entry, the terminal device 200a can connect to the business server 100 through the application client A1 to initiate a login request. It can be understood that if user A has not previously applied for a user account associated with the application client A1, the terminal device 200a can respond to the trigger operation for the registration control 303a, and display the registration interface. After user A completes the relevant information on the registration interface, he can create his own user account. At the same time, the terminal device 200a will send the account information to the business server 100 for record backup, and then he can log in through the above-mentioned "quick and secure login" method or "account and password login" method. Optionally, user A can also choose whether to check the "Automatic login next time option". If it is checked successfully, the terminal device 200a can automatically log in the next time the application client A1 is opened; if it is not checked, the terminal device 200a needs to log in again the next time the application client A1 is opened. Optionally, you can also use an account associated with a third-party application to log in.
[0085] For further information, see Figure 2b ,like Figure 2bAs shown, after receiving the login request sent by the terminal device 200a, the business server 100 can initiate an identity data verification query, and return the authentication result after completing the data query. If the identity verification is passed, the business server 100 continues to query and return the account status data (such as account level, documents associated with the user account, and historical records edited during the last login, etc.). After receiving the feedback, the terminal device 200a can successfully log in to the application client A1, and then can display the following on the screen: Figure 2b The application interface 300b shown in the figure displays the data of the home page by default. It can be understood that the application interface 300b can also display at least four other functional controls, which are respectively represented by the "New" control, the "Import Local File" control, the "My Documents" control, and the "Recycle Bin" control. When user A triggers one of the controls, the terminal device 200a can respond to the trigger operation and display the display interface corresponding to the control, which will not be expanded here. In the application interface 300b, in addition to displaying the user avatar 301b corresponding to user A, a document list consisting of one or more documents associated with the user account of user A can also be displayed. The application client A1 can automatically classify and organize these documents for user search. For example, at least two options can be displayed in the application interface 300b, namely, a "recently viewed" option 302b and a "star" option 303b. If user A selects the "recently viewed" option 302b, a list of documents recently viewed or edited by user A can be displayed in the application interface 300b; if user A selects the "star" option 303b, a list of documents added as starred documents by user A can be displayed in the application interface 300b. As shown in the application interface 300b, after user A selects the "Recently Viewed" option 302b, the name of the recently viewed documents (including Document 1, Document 2, Document 3, Document 4), the source user, and the last viewed timestamp (or last edited timestamp) and other information can be displayed in the document list 304b. For example, for Document 1, it can be seen that it comes from user A, that is, the document is created by user A in the application client A1 or directly uploaded locally, and the last viewed timestamp corresponding to the document is timestamp T1.
[0086] Further, if Figure 2bAs shown, assuming that user A wants to edit document 1, the terminal device 200a can respond to the trigger operation for area 305b in the application interface 300b and display the document editing interface 300c. In area 301c in the document editing interface 300c, the content of document 1 can be displayed, which may specifically include text data, image data, table data, etc. in the editing state. For example, its title is "Document 1", and the main content includes text data: "When performing text creation work, it is often impossible to get a complete workload." At the same time, area 302c can display the current total number of characters in document 1 as 29 words, and area 303c can display the current editing workload as 0 words. Furthermore, when user A uses the target editing method to edit the text data in document 1, the terminal device 200a can respond to the editing operation on the text data, generate a data change set 304c corresponding to the target editing method, and then send the data change set 304c to the business server 100. After receiving the data change set 304c, the business server 100 can obtain the latest editing workload after the editing operation based on the data change set 304c, and then return the editing workload to the terminal device 200a, and then the terminal device 200a can update and display the editing workload in the original area 303c.
[0087] It should be noted that the editing workload can be used to represent the number of characters associated with the target editing mode counted in the application client A1. Different target editing modes have different specific meanings of the editing workload. Therefore, the editing workload can be understood as an event-driven statistical value. That is, the editing workload may change every time the text data is edited. In addition, the editing workload is a statistical value with a statistical time scale. Specifically, if the statistical time scale is days, the editing workload represents the number of characters associated with the target editing mode counted from midnight of the day to the present. At midnight of the next day, the final result is the total editing workload of user A on that day. For example, Figure 2b The editing workload shown in the area 303c is 0 words, which means that from midnight to now, user A has not edited document 1 using the target editing mode. It can be understood that after a new day starts, the editing workload of the previous day can be automatically reset to zero, and then the statistics can be restarted. It should be noted that other time units (including but not limited to weeks and months) can also be used as statistical time scales, and the embodiments of the present application do not limit this.
[0088] Among them, the target editing methods mentioned above include but are not limited to addition editing method, deletion editing method, and attribute modification editing method. In the process of user A editing document 1 as shown in the document editing interface 300c, any one or more of these editing methods may be used. For ease of understanding and explanation, these three editing methods are illustrated below.
[0089] For example, Figure 2c As shown in the document editing interface 300d in the figure, assuming that user A edits document 1 using the adding editing method, the terminal device 200a can respond to the editing operation on the text data in document 1 by adding 15 characters to the text data: "Therefore, we need to perform procedural statistics." and display them together in area 301d. At the same time, the current total number of characters in document 1 can be updated from the previous 29 characters to 44 characters in area 302d, and the current editing workload of document 1 can be updated from the previous 0 characters to 15 characters in area 303d. That is to say, the editing workload in this scenario can be associated with the adding editing method.
[0090] For example, Figure 2d As shown in the document editing interface 300e, assuming that user A uses the deletion editing method to edit document 1, the terminal device 200a can respond to the editing operation on the text data in document 1, delete 5 characters in the text data, and thus obtain the edited text data displayed in area 301e: "It is not possible to get the complete workload when performing text creation work." At the same time, the current total number of characters in document 1 can be updated from the previous 29 characters to 24 characters in area 302e, and the current editing workload of document 1 can be updated from the previous 0 characters to 5 characters in area 303e. That is to say, the editing workload in this scenario can be associated with the deletion editing method.
[0091] For example, Figure 2e As shown in the document editing interface 300f in , assuming that user A edits document 1 using the attribute modification editing mode, the terminal device 200a can respond to the editing operation on the text data in document 1 and modify the character attributes of the 6 characters "complete workload" in the text data, for example, modify the font size of these characters, so as to obtain the edited text data as shown in area 301f. At the same time, since the total number of characters in document 1 has not increased or decreased during the above editing operation, the current total number of characters is still displayed as 29 characters in area 302f, and the current editing workload of document 1 is updated from the previous 0 characters to 6 characters in area 303f, that is, the editing workload in this scenario can be associated with the attribute modification editing mode.
[0092] It can be understood that, since multiple editing methods (including adding editing methods, deleting editing methods, and property modification editing methods) are usually used in actual application scenarios, the editing workload can be a combination of multiple sub-editing workloads, each of which can correspond to an editing method, and multiple sub-editing workloads can be displayed together in the corresponding area. Alternatively, it can also support users to select the sub-editing workloads that need to be displayed in the corresponding area (such as the sub-editing workload corresponding to the adding editing method), or it can default to displaying the sub-editing workloads corresponding to the commonly used editing methods (such as adding editing methods), and the embodiments of the present application do not limit this.
[0093] From the above, it can be seen that the embodiment of the present application provides a method for counting and displaying editing workload in combination with online documents. The method can automatically count the number of characters associated with the editing method adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application without the need for the user to manually observe and record relevant data for inference, thereby improving the efficiency and accuracy of counting the editing workload in the document editing process and enriching the display method of document editing.
[0094] See also Figure 3 , is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may be executed by a computer device, and the computer device may include Figure 1 The terminal device or service server described above is described by taking the terminal device as an example in the present application embodiment. Figure 3 As shown, the data processing method may at least include the following steps S101-S102:
[0095] Step S101, displaying one or more documents to be edited associated with a target user account; the one or more documents to be edited include a target document;
[0096] Specifically, the terminal device can respond to the login operation for the target user account in the document editing application and display at least two documents associated with the target user account (including but not limited to text documents, tables, slides, PDF (Portable Document Format) and other files containing text data), wherein the document editing application can be a client or web page (i.e., a browser) corresponding to the online document. The specific process of account login can be referred to in the above Figure 2a-2b The relevant descriptions in the corresponding embodiments will not be repeated here. It should be noted that the account system is the basic premise for the subsequent editing workload statistics and display, and the user's workload data information will be deposited and recorded in his own account.
[0097] Further, the terminal device can respond to the selection operation of the above-mentioned at least two documents and determine the selected document as the document to be edited, wherein the number of documents to be edited can be one or more, that is, within a period of time, the user can open one or more documents for editing through the document editing application, and the embodiment of the present application does not impose any restrictions on this.
[0098] Step S102, in response to a trigger operation on a target document, the text data in the target document in an editing state and the initial editing workload are displayed on a document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited.
[0099] Specifically, for the understanding and explanation of the subsequent steps, assuming that the above one or more documents to be edited include a target document, the terminal device can respond to the trigger operation for the target document, and display the text data in the target document in the editing state and the initial editing workload in the document editing interface. Among them, the initial editing workload can include the sum of the number of characters associated with the target editing mode counted in each document to be edited, and the initial editing workload represents the statistical result before the next editing operation, so the initial editing workload still needs to be updated after the target document is edited. In the embodiment of the present application, the target editing mode includes but is not limited to adding editing mode, deleting editing mode, and modifying attribute editing mode. It can be understood that in the process of editing a document, the embodiment of the present application can support the simultaneous statistics of the number of characters associated with different editing modes, and obtain the editing workload corresponding to the editing mode, so as to obtain richer and more specific workload statistics. Among them, characters belong to text data and can include letters, Chinese characters, numbers, operation symbols, punctuation marks and other symbols.
[0100] Please see again Figure 2b , assuming that user A opens document 1 and document 2 for editing, then when user A is editing document 1, the editing workload displayed in area 303c in the document editing interface 300c corresponding to document 1 is the sum of the editing workload corresponding to document 1 and the editing workload corresponding to document 2. Similarly, when user A is editing document 2, the editing workload displayed in the document editing interface corresponding to document 2 is also the sum of the editing workloads of both parties.
[0101] The embodiment of the present application can display one or more documents to be edited associated with the target user account, and then can respond to the trigger operation for the target document, and display the text data in the target document in the editing state and the initial editing workload in the document editing interface, wherein the initial editing workload is used to characterize the sum of the number of characters associated with the target editing method counted in each document to be edited. As can be seen from the above, the existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on the account system and can support the statistics of cross-document editing workload, that is, the number of characters associated with the editing method adopted by the user in the process of editing one or more documents can be automatically counted, so that the sum of the editing workload corresponding to each document can be obtained based on these character numbers, and it can be continuously displayed dynamically and intuitively in the document editing application, without the need for the user to manually observe and record relevant data for inference, so that the product form and capabilities of document products can be expanded, the efficiency and accuracy of statistical editing workload in the document editing process can be improved, and the display method of document editing can be enriched.
[0102] For further information, see Figure 4 , is a flow chart of a data processing method provided in an embodiment of the present application. Figure 4 As shown, the data processing method may at least include the following steps S201 to S203:
[0103] Step S201, displaying one or more documents to be edited associated with a target user account; the one or more documents to be edited include a target document;
[0104] The specific process of this step can be found in the above Figure 3 The step S101 in the corresponding embodiment will not be described in detail here.
[0105] Step S202, in response to a trigger operation on a target document, displaying text data in an editing state in the target document and an initial editing workload on a document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited;
[0106] The specific process of this step can be found in the above Figure 3 Step S102 in the corresponding embodiment will not be described in detail here.
[0107] Step S203, in response to the triggering operation for the initial editing workload, displaying workload details information in at least two time dimensions.
[0108] Specifically, the terminal device may respond to the trigger operation for the initial editing workload and display the workload details interface, wherein the workload details interface may include detail display controls for at least two time dimensions (such as day, week, month, year, etc.). For ease of understanding and explanation, it is assumed that the at least two time dimensions include the time dimension T i , i is a positive integer less than or equal to the total number of time dimensions, then in at least two detail display controls of the workload details interface, the terminal device can respond to the time dimension T i The details of the display control trigger operation, showing the time dimension T i Workload details information M i , among which, workload details information M i It can include the time dimension T i The sum of the editing workload corresponding to each document to be edited, and the time dimension T i The editing workload corresponding to the target document is displayed. It can be understood that as the editing workload changes during the document editing process, the workload details of each time dimension will also change accordingly, and the terminal device will update and display it.
[0109] Please also see Figure 5a-Figure 5b , is a schematic diagram of a data processing scenario provided by an embodiment of the present application. Figure 5a As shown, assuming that user A has opened one or more documents to be edited (including document 1) at the same time, and is currently editing document 1, the specific content of document 1 can be displayed in area 401a of the document editing interface 400a, and the total number of characters in document 1 can be displayed in area 402a, for example, 29 characters are displayed at this time, and the total editing workload of the current user account today (or other time dimensions) can be displayed by default in area 403a. For example, a total of 230 characters are counted at this time. For easy distinction later, the total editing workload can be marked as editing workload 403a, and editing workload 403a can be encapsulated in the form of a control (such as a button). Specifically, the editing workload 403a here includes the sum of the editing workloads corresponding to each document to be edited today, and these editing workloads all correspond to the same editing method. For example, if the adding editing method is taken as an example, that is, editing workload 403a refers to the sum of the number of characters associated with the adding editing method counted in each document to be edited from early morning of today to the present. Furthermore, when user A wants to intuitively understand the workload details of different time dimensions, the terminal device can respond to the trigger operation (such as a click operation) for the editing workload 403a, and display the workload details interface 401b in the document editing interface 400b. The specific form is not limited, for example, it can be displayed in the form of a panel popping up from the side of the editing interface 400b. Figure 5aAs shown, four detail display controls can be displayed in the workload details interface 401b, namely, the "Today" detail display control, the "This week" detail display control, the "This month" detail display control and the "Total" detail display control, wherein the "Today" detail display control, the "This week" detail display control and the "This month" detail display control correspond to the three time dimensions of day, week and month respectively, and the "Total" detail display control corresponds to the total workload of historical editing, including the total number of characters associated with the added editing mode counted in the entire time dimension from the beginning of use of the current user account (i.e., the account corresponding to user A) to the present. It can be understood that the terminal device can respond to the selection operation of the four detail display controls, and display the workload detail information corresponding to the detail display control selected by user A in the workload details interface 401b. For example, when user A wants to view the workload detail information of the day, he can click the "Today" detail display control, as shown in FIG. Figure 5a As shown, at this time, the workload details interface 401b can display "You wrote 230 words today, of which 50 words were written in this document", that is, it is simultaneously displayed that the total editing workload associated with adding editing methods in each document to be edited is 230 words when the time dimension is day, of which the editing workload associated with adding editing methods in document 1 is 50 words. It should be noted that the embodiment of the present application only takes adding editing methods and the time dimension as day as an example for illustration, and the interface display in other editing methods or time dimension scenarios is similar, which will not be repeated here.
[0110] Optionally, you can also display the editing workload corresponding to all editing methods used by the user in the workload details interface. Please refer to Figure 5b , suppose user A clicks Figure 5a After the editing workload 403a in the document editing interface 400b is displayed, Figure 5b In the workload details interface 402b shown, the terminal device can respond to the trigger operation of the "Today" detail display control in the workload details interface 402b, and display the number of characters added / deleted / modified in character attributes of user A in all documents to be edited and document 1 today in the workload details interface 402b. Of course, the number of characters added / deleted / modified in character attributes of other documents to be edited can also be displayed in the workload details interface 402b at the same time, which will not be described in detail here. When user A clicks on edit workload 403a again, the terminal device can hide the workload details interface 402b (or workload details interface 401b).
[0111] It can be understood that by counting workload details information, a flexible statistical method can be provided to users.
[0112] Among them, the workload details interface can be displayed in any area of the document editing interface (such as the side area) in a floating window form, a mask form, or a semi-transparent form, or it can be displayed using a shrinkable interface (such as a panel) that can change the display size by dragging, and the size of the interface is smaller than the document editing interface, and the embodiment of the present application does not limit this. It can be understood that the above-mentioned workload details interface 401b and workload details interface 402b are only used as interface display forms for reference, and the interface display form in the actual product can be designed according to product requirements, and the embodiment of the present application does not limit this.
[0113] The embodiment of the present application can display one or more documents to be edited associated with the target user account, and then can respond to the trigger operation for the target document, display the text data in the target document in the editing state and the initial editing workload in the document editing interface, and further, can respond to the trigger operation for the initial editing workload, and display the workload details of multiple time dimensions. As can be seen from the above, the existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on the account system and can support the statistics of cross-document editing workload, that is, the number of characters associated with the editing method adopted by the user in the process of editing one or more documents can be automatically counted, so that the sum of the editing workload corresponding to each document can be obtained based on these character numbers, and it can be continuously displayed dynamically and intuitively in the document editing application, without the need for the user to manually observe and record relevant data for inference, so that the product form and capabilities of document products can be expanded, the efficiency and accuracy of statistical editing workload in the document editing process can be improved, and the display method of document editing can be enriched, and a flexible statistical method can be provided for users.
[0114] See also Figure 6 , is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may be executed by a computer device, and the computer device may include Figure 1 The terminal device or service server described above is described by taking the terminal device as an example in the present application embodiment. Figure 6 As shown, the data processing method may at least include the following steps S301-S302:
[0115] Step S301, displaying text data in an editing state and an initial editing workload in a target document of a document editing application; the initial editing workload is used to represent the number of characters associated with a target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document;
[0116] Specifically, the terminal device can respond to a login operation for a target user account in a document editing application, and display at least two documents associated with the target user account. Further, it can respond to a selection operation for the at least two documents, and determine the selected document as a document to be edited, wherein the number of documents to be edited can be at least two, that is, within a period of time, a user can open multiple documents for editing through a document editing application, and the embodiment of the present application does not limit the specific number of documents to be edited. Further, assuming that at least two documents to be edited include a target document, the terminal device can respond to a trigger operation for the target document, and display text data in an editing state and an initial editing workload in a document editing interface corresponding to the target document, wherein the initial editing workload is used to characterize the number of characters associated with the target editing method counted in at least two documents to be edited in the document editing application.
[0117] Optionally, it can be understood that when multiple documents to be edited are opened, the editing workload corresponding to each document to be edited can also be displayed simultaneously in the document editing interface, that is, the initial editing workload can be a combination of multiple sub-initial editing workloads, and a sub-initial editing workload refers to the number of characters associated with the target editing method counted in a document to be edited, which will not be further explained later. How to define the initial editing workload can be determined according to actual product requirements, and the embodiments of the present application do not limit this.
[0118] Step S302, in response to an editing operation on text data, if the editing operation includes an operation belonging to a target editing mode, the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the editing operation.
[0119] Specifically, it should be noted that in the embodiment of the present application, the target editing mode includes but is not limited to the addition editing mode, the deletion editing mode, and the attribute modification editing mode. Combined with the definition of the initial editing workload in the above step S301, it can be understood that in the process of editing the document, the embodiment of the present application can support the simultaneous statistics of the number of characters associated with different editing modes, and obtain the editing workload corresponding to the editing mode, so as to obtain richer and more specific workload statistics. For ease of understanding, the target document is taken as an example below to respectively explain the above three editing modes. When there are multiple documents to be edited, after completing the update of the editing workload in the target document, the update results must also be synchronized to other documents to be edited for update and display, and the editing operations of other documents to be edited are consistent with the target document. The statistical update process.
[0120] Optionally, for a scenario where the addition editing method is used as the target editing method, after editing the text data in the target document, it is necessary to update the initial editing workload X1 (associated with the addition editing method) accordingly. The specific process can be as follows: The terminal device can respond to the editing operation on the text data, identify the editing operation. If it is identified that the editing operation includes an operation belonging to the addition editing method, then based on the operation belonging to the addition editing method, target characters can be added to the above text data. Furthermore, the initial editing workload X1 in the document editing application can be updated and displayed as the target editing workload Y1. Among them, the difference between the target editing workload Y1 and the initial editing workload X1 is equal to the number of characters of the added target characters. For example, please refer to again Figure 2c , such as Figure 2c shown, the target characters added by user A in Document 1 are: "Therefore, we need to conduct process statistics." At this time, the number of characters of the target characters is 15 (including punctuation marks). Therefore, the terminal device 200a can update the initial editing workload "0" to the target editing workload "15" and display it in area 303d.
[0121] Optionally, for a scenario where the deletion editing method is used as the target editing method, after editing the text data in the target document, it is necessary to update the initial editing workload X2 (associated with the deletion editing method) accordingly. The specific process can be as follows: The terminal device can respond to the editing operation on the text data, identify the editing operation. If it is identified that the editing operation includes an operation belonging to the deletion editing method, then based on the operation belonging to the deletion editing method, target characters can be deleted from the above text data. Furthermore, the initial editing workload X2 in the document editing application can be updated and displayed as the target editing workload Y2. Among them, the target characters belong to the above text data, and the difference between the target editing workload Y2 and the initial editing workload X2 is equal to the number of characters of the deleted target characters. For example, please refer to again Figure 2d , such as Figure 2d shown, the target characters deleted by user A in Document 1 include: "of", "when,", "often". At this time, the number of characters of the target characters is 5 (including punctuation marks). Therefore, the terminal device 200a can update the initial editing workload "0" to the target editing workload "5" and display it in area 303e.
[0122] Optionally, for the scenario where the attribute modification editing mode is used as the target editing mode, after editing the text data in the target document, the initial editing workload X3 (associated with the attribute modification editing mode) needs to be updated accordingly. The specific process may be: the terminal device may respond to the editing operation on the text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the attribute modification editing mode, the character attributes of the target characters may be modified in the above text data based on the operation belonging to the attribute modification editing mode, and then the initial editing workload X3 in the document editing application may be updated and displayed as the target editing workload Y3. Among them, the target characters belong to the above text data, and the difference between the target editing workload Y3 and the initial editing workload X3 is equal to the number of target characters whose character attributes are modified. Among them, character attributes include but are not limited to font, font size, font color, alignment, whether bold, whether it is italic, and other attributes. For example, please refer again to Figure 2e ,like Figure 2e As shown, the target character for user A to modify the font size in document 1 is: "Complete workload". At this time, the number of characters of the target character is 6 characters, so the terminal device 200a can update the initial editing workload "0" to the target editing workload "6" and display it in area 303f.
[0123] It can be understood that in actual applications, an editing operation may include operations corresponding to multiple editing methods. In this scenario, the terminal device can still count the number of characters associated with each editing method in this editing operation, and then update the editing workload associated with each editing method accordingly.
[0124] It should be noted that the above Figure 2c-Figure 2e The display position (bottom status bar) and display format of the editing workload are only used for illustration. In actual applications, they can be adjusted according to product requirements. The embodiments of the present application do not impose specific restrictions on this.
[0125] The embodiment of the present application can display the text data in the editing state and the initial editing workload in the target document of the document editing application. Further, it can respond to the editing operation for the above text data. If the editing operation includes an operation belonging to the target editing mode, the initial editing workload in the document editing application can be updated and displayed as the target editing workload. That is to say, the embodiment of the present application can determine the change of the editing workload in the document editing application after the editing operation based on the number of characters associated with the target editing mode in the above editing operation, so that the initial editing workload can be updated and displayed as the target editing workload based on the number of characters. As can be seen from the above, the embodiment of the present application provides a function of editing workload statistics and display, which can automatically count the number of characters associated with the editing mode adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application without the need for the user to manually observe and record relevant data for speculation, thereby improving the efficiency and accuracy of statistical editing workload in the document editing process and enriching the display method of document editing. In addition, existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on an account system and can support the statistics of cross-document editing workload, thereby expanding the product form and capabilities of document products.
[0126] For further information, see Figure 7 , is a flow chart of a data processing method provided in an embodiment of the present application. The present application embodiment takes the data processing method executed by a terminal device as an example for explanation. Figure 7 As shown, the process of the data processing method includes the following steps S401-step S403, and steps S402-step S403 are Figure 6 In a specific embodiment of step S302 in the corresponding embodiment, the data processing process may include the following steps:
[0127] Step S401, displaying text data in an editing state and an initial editing workload in a target document of a document editing application;
[0128] The specific process of this step can be found in the above Figure 6 Step S301 in the corresponding embodiment will not be described in detail here.
[0129] Step S402, in response to an editing operation on the text data, if the editing operation includes an operation belonging to a target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to a server, so that the server generates a target editing workload based on the data change set;
[0130] Specifically, the terminal device can respond to the editing operation on the text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the target editing mode, a data change set corresponding to the target editing mode can be generated, and then the data change set can be sent to the server. After the server successfully receives it, it can calculate based on the data change set to obtain the target editing workload, and then the target editing workload can be returned to the terminal device. At the same time, the server can update the workload data information associated with the target user account according to the target editing workload. For specific scenarios, please refer to the above Figure 2b-Figure 2e Related description in the corresponding embodiment.
[0131] Combined with the above Figure 6 In the description of step S302 in the corresponding embodiment, the target editing method includes but is not limited to an addition editing method, a deletion editing method, and an attribute modification editing method. Each time the user edits the text data in any document to be edited (such as the target document), the terminal device can generate a data change set. It can be understood that different editing methods will generate different types of data change sets. The following takes the target document as an example to explain the above three editing methods respectively.
[0132] Optionally, for the scenario where the addition editing mode is used as the target editing mode, after editing the text data in the target document, the specific process of calculating the target editing workload Y1 (associated with the addition editing mode) can be: the terminal device can respond to the editing operation on the text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the addition editing mode, the addition position information and the added target characters can be obtained based on the operation belonging to the addition editing mode, and then the data change set Z1 matching the addition editing mode can be generated based on the addition position information and the target characters, and then the data change set Z1 can be sent to the server. After the server successfully receives it, it can extract the target characters in the data change set Z1 and calculate its length to obtain the number of characters of the target characters, and then the number of characters of the target characters and the initial editing workload X1 can be added to finally obtain the target editing workload Y1.
[0133] Optionally, for the scenario where the deletion editing method is used as the target editing method, after editing the text data in the target document, the specific process of calculating the target editing workload Y2 (associated with the deletion editing method) can be: the terminal device can respond to the editing operation on the text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the deletion editing method, the deletion position information and the number of deleted characters can be obtained based on the operation belonging to the deletion editing method, and then the data change set Z2 matching the deletion editing method can be generated based on the deletion position information and the number of deleted characters, and then the data change set Z2 can be sent to the server. After the server successfully receives it, it can parse the number of deleted characters in the data change set Z2, and then the number of deleted characters and the initial editing workload X2 can be added to finally obtain the target editing workload Y2.
[0134] Optionally, for the scenario where the attribute modification editing mode is used as the target editing mode, after the text data in the target document is edited, the specific process of calculating the target editing workload Y3 (associated with the attribute modification editing mode) can be: the terminal device can respond to the editing operation on the text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the attribute modification editing mode, the modification position information, the number of modified characters, and the modified character attributes can be obtained based on the operation belonging to the attribute modification editing mode, and then the data change set Z3 matching the attribute modification editing mode can be generated based on the modification position information, the number of modified characters, and the modified character attributes, and then the data change set Z3 can be sent to the server. After the server successfully receives it, it can parse the number of modified characters in the data change set Z3, and then the number of modified characters and the initial editing workload X3 can be added to finally obtain the target editing workload Y3.
[0135] It should be noted that the above three methods of generating data change sets and some rules can also be integrated for use. For example, in one embodiment, a pre-designed rule can be used as a data change set generation strategy. In this generation strategy, the terminal device can first store a part of the change information in a small cache area. Only when the relevant rules are met will the data change set be uniformly generated based on the pre-stored change information and sent to the server, instead of immediately feeding back to the server as soon as the text data changes. The following is an explanation from the two dimensions of cache quantity and cache time.
[0136] Optionally, the terminal device can respond to an editing operation on text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to a target editing mode, the characters associated with the target editing mode in the editing operation can be stored in the target buffer area. Further, when the number of cached characters stored in the target buffer area is greater than or equal to a storage threshold, the terminal device can generate a data change set corresponding to the target editing mode based on the cached characters, and then send the data change set to the server so that the server can generate a target editing workload based on the data change set. The specific size of the storage threshold can be set according to actual needs.
[0137] Optionally, the terminal device can respond to an editing operation on text data and identify the editing operation. If it is identified that the editing operation includes an operation belonging to the target editing mode, the characters associated with the target editing mode in the editing operation can be stored in the target cache area. Further, when the cache cycle associated with the target cache area ends, the terminal device can generate a data change set corresponding to the target editing mode based on the cached characters stored in the target cache area, and then send the data change set to the server so that the server can generate a target editing workload based on the data change set. The specific size of the cache cycle can be set according to actual needs. For example, in one embodiment, the cache cycle can be set to 2 seconds, that is, no matter how many characters are involved in the previous editing operation, the terminal device will generate a data change set every 2 seconds.
[0138] Step S403: Obtain the target editing workload, and update and display the initial editing workload in the document editing application as the target editing workload.
[0139] Specifically, the terminal device can receive the target editing workload sent by the server, and then can update and display the initial editing workload in the document editing application as the target editing workload. Combined with the above step S402, it can be understood that the initial editing workload and the target editing workload here correspond to the same editing method. For the scenario where the addition editing method is used as the target editing method, the terminal device can update and display the initial editing workload X1 as the target editing workload Y1; for the scenario where the deletion editing method is used as the target editing method, the terminal device can update and display the initial editing workload X2 as the target editing workload Y2; for the scenario where the attribute modification editing method is used as the target editing method, the terminal device can update and display the initial editing workload X3 as the target editing workload Y3.
[0140] The embodiment of the present application can determine the change of the editing workload in the document editing application after the editing operation based on the number of characters associated with the target editing mode in the editing operation, so that the initial editing workload can be updated and displayed as the target editing workload based on the number of characters. As can be seen from the above, the embodiment of the present application provides a function of editing workload statistics and display, which can automatically count the number of characters associated with the editing mode adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application, without the need for the user to manually observe and record relevant data for speculation, thereby improving the efficiency and accuracy of statistical editing workload in the document editing process, and enriching the display method of document editing. In addition, existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on the account system, which can support the statistics of cross-document editing workload, thereby expanding the product form and capabilities of document products.
[0141] See also Figure 8 , is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a terminal device. Figure 8 As shown, the data processing method may at least include the following steps S501 to S504:
[0142] Step S501, displaying text data in an editing state and an initial editing workload in a target document of a document editing application;
[0143] The specific process of this step can be found in the above Figure 6 Step S301 in the corresponding embodiment will not be described in detail here. It should be noted that the terminal device can respond to the trigger operation for the initial editing workload and display the workload details of multiple time dimensions. For details, please refer to the above Figure 4 The corresponding step S203 in the embodiment.
[0144] Step S502, in response to an editing operation on text data, if the editing operation includes an operation belonging to a target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload;
[0145] The specific process of this step can be found in the above Figure 6 The corresponding step S302 in the embodiment or the above Figure 7 Steps S402 to S403 in the corresponding embodiment will not be described in detail here. It can be understood that the workload details information associated with the initial editing workload will also change accordingly.
[0146] Step S503, based on the difference between the target editing workload and the initial editing workload, updating and displaying the workload progress information;
[0147] In an embodiment of the present application, the document editing application may also include workload progress information, wherein the workload progress information may be used to characterize the user's current work progress. Specifically, the user may set an expected total workload (i.e., the expected workload target) and a corresponding editing cycle as needed, indicating that the user hopes to achieve an editing workload equal to the expected total workload within the editing cycle. It is understandable that, in the process of the user editing the document, the editing workload is gradually accumulating and will get closer and closer to the expected total workload. In order to more intuitively present this process, an embodiment of the present application may support displaying workload progress information in the document editing interface. It is understandable that the workload progress information will change with the accumulation of the current editing workload, that is, the terminal device may update and display the workload progress information based on the difference between the target editing workload and the initial editing workload.
[0148] Please also see Figure 9a-9d , is a schematic diagram of a data processing scenario provided by an embodiment of the present application. This embodiment of the present application is described by taking a single document as an example. Figure 9a As shown, after the terminal device opens the document 1, the workload setting control 501a can be displayed in the document editing interface 500a, and then the workload setting interface 502a can be displayed in response to the trigger operation of the workload setting control 501a. In the workload setting interface 502a, the editing cycle setting option 503a and the expected total workload setting option 504a can be displayed, and the terminal device can display multiple options related to these two options (such as some options commonly used by users or generated based on historical settings) for users to choose. For example, the terminal device can respond to the trigger operation of the editing cycle setting option 503a to display multiple editing cycle options, including "hours", "days", "weeks", etc. Similarly, the terminal device can respond to the trigger operation of the expected total workload setting option 504a to display multiple workload value options, including "500", "800", "1000", etc. It can be understood that the editing cycle setting option 503a and the expected total workload setting option 504a can also support users to manually enter relevant data for setting. Among them, the workload setting interface 502a can be displayed in any area of the document editing interface 500a in the form of a floating window, a mask or a semi-transparent form, or it can be displayed using a shrinkable interface that can change the display size by dragging an operation. The size of the interface is smaller than the document editing interface 500a, and the embodiment of the present application does not impose any restrictions on this.
[0149] Further, assuming that the user sets the editing cycle to "day" (i.e., from midnight of the current day to midnight of the next day) and sets the expected total workload to 500 words, the terminal device can generate workload progress information 502b in response to the trigger operation for determining the setting control 505a, such as Figure 9b As shown, the workload progress information 502b can be displayed in the document editing interface 500b. Since the user has not edited the document 1, the editing workload 501b displayed in the document editing interface 500b is zero. Accordingly, the workload progress information 502b is displayed as 0% (i.e., the ratio of the editing workload 501b to the expected total workload). Further, after the user performs an editing operation on the document 1, the terminal device needs to update the editing workload 501b and the workload progress information 502b. Assuming that the editing workload generated by this editing operation is 100 words, as shown in the document editing interface 500c, the terminal device can update the editing workload 501b (0 words) to the editing workload 501c (100 words), and the difference between the two (i.e., the newly added editing workload) is 100. Accordingly, the workload progress information 502b (0%) can be updated to the workload progress information 502c (20%, i.e., the ratio of the editing workload 501c to the expected total workload).
[0150] It should be noted that the display form of workload progress information can be as follows: Figure 9b The progress bar shown may also be in other forms (such as a pie chart), and the embodiment of the present application is not limited to this.
[0151] In addition, the embodiments of the present application can also provide corresponding prompts when the user achieves / fails to achieve the workload target, so as to enrich the display method of the document product. Specifically, during the editing cycle associated with the workload progress information, if the updated workload progress information is in the progress completion state, the special effects animation associated with the editing operation can be displayed; conversely, if the editing cycle has ended and the updated workload progress information is in the progress incomplete state, the task failure prompt information can be displayed. For example, please refer to Fig.9c , assuming that the user has achieved the expected total workload of 500 words in the process of editing document 1 on the same day, the current editing workload 501d (500 words) and workload progress information 502d (100%, i.e., progress completion status) can be displayed in the document editing interface 500d, and the corresponding special effect animation 503d (such as spray, fireworks, etc.) and prompt information 504d can also be displayed, such as "Congratulations on completing today's goal!". For another example, please refer to Figure 9dAssuming that the user's editing workload before the end of the day is 400 words, and the expected total workload of 500 words has not been achieved, the current editing workload 501e (400 words) and workload progress information 502e (80%, i.e., incomplete progress) can be displayed in the document editing interface 500e. At the same time, the task failure prompt message 503e can also be displayed, such as "It's a pity that you have not completed today's goal, please keep working hard", and the subsequent user can make corresponding adjustments to the editing cycle and the expected total workload based on the actual situation.
[0152] It can be understood that by setting workload goals, the process of editing documents can be made more entertaining and task-oriented, thereby expanding the form and capabilities of document products.
[0153] Optional, in addition to the above Figure 9a As shown, it supports users to manually set the expected total workload. The embodiment of the present application can also use an AI model to predict the expected total workload to assist in generating workload progress information, that is, before executing this step, step S504 can be executed first.
[0154] Step S504, obtaining the editing frequency, the excitation parameter and the editing cycle, generating workload progress information based on the editing frequency, the excitation parameter and the editing cycle, and displaying the workload progress information in the document editing application.
[0155] Specifically, in the process of editing the target document, the terminal device can obtain the editing frequency, incentive parameters, and the editing cycle set by the user, wherein the editing frequency is used to characterize the number of characters associated with the target editing method counted in the document editing application within a unit time period. For example, assuming that the unit time period is one minute, the average editing workload per minute of the user in the past editing process can be counted as the editing frequency. It should be noted that a workload prediction model based on deep learning can be trained. The workload prediction model can predict incentive parameters based on user personality characteristics, user editing frequency in different time periods, and the importance of the target document. Subsequently, an incentive editing frequency can be generated based on the editing frequency and incentive parameters. At the same time, the ratio of the editing cycle to the unit time period can be generated, and then the incentive editing frequency can be multiplied by the cycle ratio to obtain the expected total workload. For example, assuming that the editing cycle is set to 4 hours, the editing frequency is 200 words / minute, and the incentive parameter is 10% (indicating an additional 10% editing workload), the incentive editing frequency can be calculated to be 200×(1+10%)=220 words / minute. It can be seen that the incentive editing frequency increases the workload by 20 words per minute more than the editing frequency. At the same time, the cycle ratio can be calculated to be 240, so the expected total workload can be further calculated to be 220×240=52800 words. Optionally, the method of predicting the expected total workload through the workload prediction model can be combined with the method of manually setting the expected total workload by the user in the above step S503. For example, a predicted expected total workload can be output by the workload prediction model first. If the user is not satisfied with the prediction result, he can modify it manually at any time to meet his work needs. Finally, the terminal device can generate workload progress information based on the expected total workload planned to be completed within the editing cycle, and display it in the document editing application. The workload progress information can be updated as the editing workload changes (the update process can be seen in the above step S503).
[0156] The embodiment of the present application can display the text data in the editing state and the initial editing workload in the target document of the document editing application, and then can respond to the trigger operation for the initial editing workload, display the workload details information of multiple time dimensions, and at the same time, can display the workload progress information through the corresponding settings. Further, when the text data is edited, the change of the editing workload in the document editing application after the editing operation can be determined based on the number of characters associated with the target editing mode in the editing operation, so that the initial editing workload, the workload details information and the workload progress information can be updated and displayed based on the number of characters. As can be seen from the above, the embodiment of the present application provides the function of editing workload statistics and display, which can automatically count the number of characters associated with the editing mode adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application, without the need for the user to manually observe and record relevant data for speculation, so as to improve the efficiency and accuracy of statistical editing workload in the document editing process, and at the same time, by displaying the workload progress information that changes with the editing workload to give corresponding prompts to the user, the display method of document editing can be enriched. In addition, existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on an account system and can support the statistics of cross-document editing workload, thereby expanding the product form and capabilities of document products.
[0157] See also Fig.10 , is a timing diagram of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a terminal device and a server together. Fig.10 As shown, the data processing method may at least include the following steps:
[0158] Step S601, the terminal device edits the text data;
[0159] Specifically, a user can edit multiple documents (such as document A and document B) through a document editing application within a period of time. Therefore, each time one of the documents is edited, the terminal device can respond to the editing operation on the text data in the document (including but not limited to one or more operations belonging to the addition editing mode, the deletion editing mode or the attribute modification editing mode) and update the text data accordingly.
[0160] Step S602, the terminal device submits a data change set to the server;
[0161] Specifically, each time an editing operation is performed in a document, the terminal device can generate a data change set, and then submit the data change set to a background server that stores the edited data through the network, wherein the data change set may include multiple types of changes, such as adding character types, deleting character types, modifying character attribute types, etc. In an embodiment of the present application, different types of changes may be defined. For example, for a change of adding character types, that is, inserting characters at a certain position in the document, it may be defined as insert(pos1, string), wherein parameter pos1 indicates the added position information, and parameter string indicates the target character to be added; for a change of deleting character types, that is, deleting certain characters at a certain position in the document, it may be defined as del(pos2, len1), wherein parameter pos2 indicates the deleted position information, and parameter len1 indicates the number of deleted characters; for a change of modifying character attribute types, that is, modifying the character attributes corresponding to certain characters at a certain position in the document, it may be defined as modify(pos3, len2, attrib), wherein parameter pos3 indicates the modified position information, parameter len2 indicates the modified number of characters, and parameter attrib indicates the modified character attributes. Optionally, the process of generating a data change set may refer to the above. Figure 7 The description of the strategy for generating the target buffer area in step S402 of the corresponding embodiment will not be repeated here.
[0162] It should be noted that the terminal device (or document editing application) sends a request to the server, which is a negotiation process to provide real-time change notification of the user's editing workload. In the process of data transmission between the terminal device and the server, the embodiment of the present application can use the WebSocket protocol to realize the real-time synchronization of the editing workload data when multiple documents are opened at the same time. Specifically, the terminal device can first send an HTTP (Hypertext Transfer Protocol) request to the server to initiate a connection. After obtaining the server response, the established connection will be upgraded using HTTP, and the HTTP protocol will be exchanged for the WebSocket protocol. Subsequently, a persistent connection can be established between the terminal device and the server. The WebSocket protocol makes the data exchange between the terminal device and the server simpler, and allows the server to actively push data to the terminal device, such as actively informing the terminal device how many characters the editing workload needs to be updated to. Among them, the WebSocket protocol is a protocol for full-duplex communication on a single TCP (Transmission Control Protocol, a connection-oriented, reliable, byte stream-based transport layer communication protocol) connection provided since HTML5. In the WebSocket API (application programming interface), the application client and the server only need to complete a handshake once to create a persistent connection and perform two-way data transmission.
[0163] Step S603, the server counts the character change increments in this editing based on the data change set;
[0164] Specifically, since the data change set generated by the above steps may contain multiple types of changes, after the server receives the data change set, it can first identify the change type in the data change set. For example, it can distinguish the various changes in the data change set by identifying identifiers such as insert, del, and modify. If a change of the type of adding characters is identified, the server can count the number of characters added in this edit; if a change of the type of deleting characters is identified, the server can count the number of characters deleted in this edit; if a change of the type of modifying character attributes is identified, the server can count the number of characters whose character attributes are modified in this edit. Finally, the statistical results can be summarized to obtain the character change increment in this edit, and then the character change increment can be passed to the workload statistics module in the server.
[0165] It should be noted that in the above Figure 6 , Figure 7In the corresponding embodiment, before generating the data change set, the terminal device pre-identifies the editing operation, and only when the editing operation includes an operation belonging to the target editing mode will the subsequent steps be continued until the data change set corresponding to the target editing mode is generated, and at this time the data change set only includes one type of change. The embodiment of the present application provides another method, which can support the terminal device to respond to the editing operation, directly generate the corresponding data change set, and then send the data change set to the server, and then the server identifies the data change set, so the data change set obtained by this method may include multiple types of changes.
[0166] Step S604, the server updates the editing workload according to the character change increment;
[0167] Specifically, after receiving the character change increment, the workload statistics module in the server can parse it to obtain the number of characters associated with each change in this editing, and then add them up to the current user account. In other words, the number of characters and editing workload associated with the same change (i.e., editing method) are added together, and finally the updated editing workload (which is a combination of editing workloads corresponding to multiple types of changes) can be obtained. At the same time, the server will record it in the workload statistics module.
[0168] Step S605, the server returns the updated editing workload;
[0169] Specifically, the server can return the updated editing workload to the terminal device. It should be noted that during the interactive process of document editing, the document editing application used by the user (i.e., the client side) and the server (i.e., the background side) communicate in real time. If the user opens multiple documents (such as document A and document B) for editing, the editing workload corresponding to document A changes, and it must also be synchronized and notified to the workload statistics display module of document B in real time.
[0170] Step S606: The terminal device displays the updated editing workload in real time.
[0171] Specifically, after the terminal device successfully receives the information, it can display the updated editing workload in real time.
[0172] Further, we take the change of adding character type (that is, the editing operation includes the operation of adding editing mode) as an example to explain. It is assumed that in this scenario, the server is only sensitive to the change of adding character type. In other words, only inserting characters into the document by adding editing mode will lead to an increase in editing workload. Please refer to Fig.11 , is a flow chart of a data processing method provided in an embodiment of the present application. Fig.11As shown, the method may include the following steps:
[0173] Step S701: When a user edits a document, the terminal device can respond to the editing operation on the document, modify the document content and update the display;
[0174] Step S702, the terminal device generates a data change set based on the above editing operation, and then sends the data change set to the server (backend);
[0175] Step S703, after receiving the data change set, the server identifies the change type. If it is identified that there is no change of adding characters in the data change set, the change caused by this editing operation is not counted in the workload statistics process; if it is identified that there is a change of adding characters in the data change set, step S704 is executed;
[0176] Step S704, the server may obtain the changes of the data change set that are of the type of adding characters (i.e., the insert change set), and then extract the character string part in the insert change set and calculate the length, so as to count the number of characters added in this editing operation;
[0177] Step S705, the server may input the calculation result in the above step S704 into the workload statistics module, and the workload statistics module may calculate the current latest editing workload;
[0178] Step S706, the server may return the latest editing workload to the terminal device (i.e., the client corresponding to the document editing application) based on the WebSocket protocol;
[0179] Step S707: After receiving the latest editing workload, the terminal device may display it.
[0180] The embodiment of the present application provides a method for counting and displaying cross-document editing workload based on an account number, which can automatically count the number of characters associated with the editing method adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application, without the need for the user to manually observe and record relevant data for speculation, thereby improving the efficiency and accuracy of counting editing workload in the document editing process, and enriching the display method of document editing. In addition, existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on the account system and can support the statistics of cross-document editing workload, thereby expanding the product form and capabilities of document products.
[0181] See also Fig.12, is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.12 As shown, the data processing device 1 may include: a first display module 11, a second display module 12;
[0182] A first display module 11 is used to display one or more documents to be edited associated with a target user account; the one or more documents to be edited include a target document;
[0183] The first display module 11 is specifically used to display at least two documents associated with the target user account; in response to a selection operation on the at least two documents, determine the selected documents as documents to be edited; the number of the documents to be edited is one or more;
[0184] The second display module 12 is used to respond to the trigger operation on the target document and display the text data in the target document in the editing state and the initial editing workload in the document editing interface; the initial editing workload includes the total number of characters associated with the target editing method counted in each document to be edited.
[0185] The specific functional implementation of the first display module 11 can be found in the above Figure 3 In the corresponding embodiment, the specific function implementation of the second display module 12 can refer to the above Figure 3 Step S102 in the corresponding embodiment will not be described in detail here.
[0186] Please also see Fig.12 , the above-mentioned data processing device 1 further includes: a third display module 13;
[0187] The third display module 13 is used to respond to the triggering operation for the initial editing workload and display the workload details information of at least two time dimensions.
[0188] The specific function implementation of the third display module 13 can be found in the above Figure 4 Step S203 in the corresponding embodiment will not be described in detail here.
[0189] Please also see Fig.12 The third display module 13 includes a first display unit 131 and a second display unit 132;
[0190] The first display unit 131 is used to respond to the trigger operation for the initial editing workload and display the workload details interface; the workload details interface includes detail display controls for at least two time dimensions; the at least two time dimensions include the time dimension T i , i is a positive integer less than or equal to the total number of time dimensions;
[0191] The second display unit 132 is used to respond to the time dimension T in at least two detail display controls of the workload detail interface. i The details of the display control trigger operation, showing the time dimension T i Workload details information M i ;
[0192] The second display unit 132 is specifically used to respond to the time dimension T i The details of the display control trigger operation, showing the time dimension T i The sum of the editing workload corresponding to each document to be edited, and the time dimension T i The editing workload corresponding to the target document.
[0193] The specific functional implementation of the first display unit 131 and the second display unit 132 can be referred to in the above Figure 4 Step S203 in the corresponding embodiment will not be described in detail here.
[0194] The embodiment of the present application can display one or more documents to be edited associated with the target user account, and then can respond to the trigger operation for the target document, and display the text data in the target document in the editing state and the initial editing workload in the document editing interface, wherein the initial editing workload is used to characterize the sum of the number of characters associated with the target editing method counted in each document to be edited. As can be seen from the above, the existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on the account system and can support the statistics of cross-document editing workload, that is, the number of characters associated with the editing method adopted by the user in the process of editing one or more documents can be automatically counted, so that the sum of the editing workload corresponding to each document can be obtained based on these character numbers, and it can be continuously displayed dynamically and intuitively in the document editing application, without the need for the user to manually observe and record relevant data for inference, so that the product form and capabilities of document products can be expanded, the efficiency and accuracy of statistical editing workload in the document editing process can be improved, and the display method of document editing can be enriched.
[0195] See also Fig.13, is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.13 As shown, the data processing device 2 may include: a first display module 21, a first update display module 22;
[0196] The first display module 21 is used to display text data in an editing state and an initial editing workload in a target document of a document editing application; the initial editing workload is used to represent the number of characters associated with the target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document;
[0197] The first update display module 22 is used to respond to editing operations on text data. If the editing operations include operations belonging to the target editing mode, the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the editing operation.
[0198] The specific function implementation of the first display module 21 can be found in the above Figure 6 In the corresponding embodiment, step S301, the specific function implementation of the first update display module 22 can refer to the above Figure 6 The corresponding step S302 in the embodiment, or refer to the above Figure 7 Steps S402 to S403 in the corresponding embodiment will not be described in detail here.
[0199] In one implementation, the document editing application may further include workload progress information;
[0200] Please also see Fig.13 , the data processing device 2 may further include: a second update display module 23, an animation display module 24, and a prompt module 25;
[0201] A second updating and displaying module 23, configured to update and display the workload progress information based on the difference between the target editing workload and the initial editing workload;
[0202] Animation display module 24, used for displaying special effect animation associated with the editing operation if the updated workload progress information is in a progress completion state during the editing cycle associated with the workload progress information;
[0203] The prompt module 25 is used to display a task failure prompt message if the editing cycle has ended and the updated workload progress information is in an incomplete progress state.
[0204] The specific functional implementation of the second update display module 23, the animation display module 24, and the prompt module 25 can be found in the above Figure 8 Step S503 in the corresponding embodiment will not be described in detail here.
[0205] Please also see Fig.13 , the above-mentioned data processing device 2 may further include: a progress information generating module 26;
[0206] The progress information generation module 26 is used to obtain the editing frequency, incentive parameters and editing cycle; the editing frequency is used to characterize the number of characters associated with the target editing method counted in the document editing application within a unit time period; the incentive editing frequency is generated based on the editing frequency and the incentive parameters, and the cycle ratio of the editing cycle to the unit time period is generated; the incentive editing frequency is multiplied by the cycle ratio to obtain the expected total workload, and the workload progress information is generated according to the expected total workload planned to be completed within the editing cycle.
[0207] The specific functional implementation of the progress information generation module 26 can be found in the above Figure 8 Step S504 in the corresponding embodiment will not be described in detail here.
[0208] In one embodiment, the target editing mode may include an add editing mode;
[0209] Please also see Fig.13 , the above-mentioned first update display module 22 may include: a first update unit 221;
[0210] The first update unit 221 is used to respond to editing operations on text data. If the editing operations include operations belonging to the adding editing mode, target characters are added to the text data based on the operations belonging to the adding editing mode, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is equal to the number of target characters added.
[0211] The specific functional implementation of the first updating unit 221 can refer to the above Figure 6 Step S302 in the corresponding embodiment will not be described in detail here.
[0212] In one embodiment, the target editing mode may include a deletion editing mode;
[0213] Please also see Fig.13, the above-mentioned first update display module 22 may include: a second update unit 222;
[0214] The second update unit 222 is used to respond to editing operations on text data. If the editing operations include operations belonging to the deletion editing mode, based on the operations belonging to the deletion editing mode, target characters are deleted from the text data, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the target characters belong to the text data; the difference between the target editing workload and the initial editing workload is equal to the number of target characters deleted.
[0215] The specific functional implementation of the second updating unit 222 can refer to the above Figure 6 Step S302 in the corresponding embodiment will not be described in detail here.
[0216] In one embodiment, the target editing mode may include an attribute modification editing mode;
[0217] Please also see Fig.13 , the above-mentioned first update display module 22 may include: a third update unit 223;
[0218] The third updating unit 223 is used to respond to editing operations on text data. If the editing operations include operations belonging to the attribute modification editing mode, the character attributes of the target characters are modified in the text data based on the operations belonging to the attribute modification editing mode, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the target characters belong to the text data; the difference between the target editing workload and the initial editing workload is equal to the number of characters of the target characters whose character attributes are modified.
[0219] The specific function implementation of the third updating unit 223 can be found in the above Figure 6 Step S302 in the corresponding embodiment will not be described in detail here.
[0220] Please also see Fig.13 , the first update display module 22 may include: a change set generation unit 224, a fourth update unit 225;
[0221] A change set generating unit 224 is used to respond to an editing operation on text data, and if the editing operation includes an operation belonging to a target editing mode, generate a data change set corresponding to the target editing mode, and send the data change set to the server so that the server generates a target editing workload based on the data change set;
[0222] The fourth updating unit 225 is used to obtain a target editing workload, and update and display the initial editing workload in the document editing application as the target editing workload.
[0223] The specific functional implementation of the change set generation unit 224 can be found in the above Figure 7 The specific functional implementation of the fourth updating unit 225 in the corresponding embodiment of step S402 can refer to the above Figure 7 Step S403 in the corresponding embodiment will not be described in detail here.
[0224] In one embodiment, the target editing mode may include an add editing mode;
[0225] Please also see Fig.13 , the above-mentioned change set generation unit 224 may include: a first generation subunit 2241;
[0226] The first generating sub-unit 2241 is used to respond to editing operations on text data. If the editing operations include operations belonging to an adding editing mode, then based on the operations belonging to the adding editing mode, the adding position information and the target characters to be added are obtained, and a data change set matching the adding editing mode is generated based on the adding position information and the target characters, and the data change set is sent to the server so that the server generates a target editing workload based on the number of target characters in the data change set and the initial editing workload.
[0227] The specific functional implementation of the first generating subunit 2241 can be found in the above Figure 7 Step S402 in the corresponding embodiment will not be described in detail here.
[0228] In one embodiment, the target editing mode may include a deletion editing mode;
[0229] Please also see Fig.13 , the above-mentioned change set generation unit 224 may include: a second generation subunit 2242;
[0230] The second generation subunit 2242 is used to respond to editing operations on text data. If the editing operations include operations belonging to the deletion editing mode, then based on the operations belonging to the deletion editing mode, the deletion position information and the number of deleted characters are obtained, and a data change set matching the deletion editing mode is generated based on the deletion position information and the number of deleted characters. The data change set is sent to the server so that the server generates a target editing workload based on the number of deleted characters in the data change set and the initial editing workload.
[0231] The specific functional implementation of the second generation subunit 2242 can be found in the above Figure 7 Step S402 in the corresponding embodiment will not be described in detail here.
[0232] In one embodiment, the target editing mode may include an attribute modification editing mode;
[0233] Please also see Fig.13 , the above-mentioned change set generation unit 224 may include: a third generation subunit 2243;
[0234] The third generation subunit 2243 is used to respond to editing operations on text data. If the editing operations include operations belonging to the attribute modification editing mode, then based on the operations belonging to the attribute modification editing mode, the modification position information, the number of modified characters and the modified character attributes are obtained, and based on the modification position information, the number of modified characters and the modified character attributes, a data change set matching the attribute modification editing mode is generated, and the data change set is sent to the server so that the server generates a target editing workload based on the number of modified characters and the initial editing workload in the data change set.
[0235] The specific functional implementation of the third generation subunit 2243 can be found in the above Figure 7 Step S402 in the corresponding embodiment will not be described in detail here.
[0236] Please also see Fig.13 , the above-mentioned change set generation unit 224 may include: a fourth generation subunit 2244;
[0237] The fourth generation sub-unit 2244 is used to respond to editing operations on text data. If the editing operation includes an operation belonging to a target editing mode, the characters associated with the target editing mode in the editing operation are stored in a target buffer area; when the number of cached characters stored in the target buffer area is greater than or equal to a storage threshold, a data change set corresponding to the target editing mode is generated based on the cached characters, and the data change set is sent to the server.
[0238] The specific functional implementation of the fourth generation subunit 2244 can be found in the above Figure 7 Step S402 in the corresponding embodiment will not be described in detail here.
[0239] Please also see Fig.13 , the above-mentioned change set generation unit 224 may include: a fifth generation subunit 2245;
[0240] The fifth generation sub-unit 2245 is used to respond to editing operations on text data. If the editing operation includes operations belonging to the target editing mode, the characters associated with the target editing mode in the editing operation are stored in the target cache area; when the cache cycle associated with the target cache area ends, a data change set corresponding to the target editing mode is generated based on the cached characters stored in the target cache area, and the data change set is sent to the server.
[0241] The specific functional implementation of the fifth generation subunit 2245 can be found in the above Figure 7 Step S402 in the corresponding embodiment will not be described in detail here.
[0242] The embodiment of the present application can display the text data in the editing state and the initial editing workload in the target document of the document editing application. Further, it can respond to the editing operation for the above text data. If the editing operation includes an operation belonging to the target editing mode, the initial editing workload in the document editing application can be updated and displayed as the target editing workload. That is to say, the embodiment of the present application can determine the change of the editing workload in the document editing application after the editing operation based on the number of characters associated with the target editing mode in the above editing operation, so that the initial editing workload can be updated and displayed as the target editing workload based on the number of characters. As can be seen from the above, the embodiment of the present application provides a function of editing workload statistics and display, which can automatically count the number of characters associated with the editing mode adopted by the user in the process of editing the document, so that the editing workload can be continuously updated based on these character numbers, and it can be dynamically and intuitively displayed in the document editing application without the need for the user to manually observe and record relevant data for speculation, thereby improving the efficiency and accuracy of statistical editing workload in the document editing process and enriching the display method of document editing. In addition, existing document products can only count and display the total number of characters in a single document, and cannot perform cross-document word count statistics. The embodiment of the present application is based on an account system and can support the statistics of cross-document editing workload, thereby expanding the product form and capabilities of document products.
[0243] See also Fig.14 , is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.14 As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.14As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0244] In such Fig.14 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0245] Displaying one or more documents to be edited associated with a target user account; the one or more documents to be edited include the target document;
[0246] In response to a trigger operation on a target document, the text data in the target document in an editing state and the initial editing workload are displayed on the document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited.
[0247] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 , Figure 4 The description of the data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.
[0248] See also Fig.15 , is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.15 As shown, the computer device 2000 may include: a processor 2001, a network interface 2004 and a memory 2005. In addition, the above-mentioned computer device 2000 may also include: a user interface 2003, and at least one communication bus 2002. Among them, the communication bus 2002 is used to realize the connection and communication between these components. Among them, the user interface 2003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 2003 may optionally include a standard wired interface and a wireless interface. The network interface 2004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 2004 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 2005 may optionally also be at least one storage device located away from the aforementioned processor 2001. As Fig.15 As shown, the memory 2005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0249] In such Fig.15 In the computer device 2000 shown, the network interface 2004 can provide a network communication function; the user interface 2003 is mainly used to provide an input interface for the user; and the processor 2001 can be used to call the device control application stored in the memory 2005 to achieve:
[0250] Displaying text data in an editing state and an initial editing workload in a target document of a document editing application; the initial editing workload is used to represent the number of characters associated with the target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document;
[0251] In response to an editing operation on text data, if the editing operation includes an operation belonging to a target editing mode, the initial editing workload in the document editing application is updated and displayed as the target editing workload; the difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the editing operation.
[0252] It should be understood that the computer device 2000 described in the embodiment of the present application can execute the above Figure 6 , Figure 7 , Figure 8 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0253] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 and the data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 3 , Figure 4 , Figure 6 , Figure 7 , Figure 8 The description of the above data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0254] The computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0255] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above Figure 3 , Figure 4 , Figure 6 , Figure 7 , Figure 8 Any method provided by the corresponding embodiment.
[0256] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0257] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0258] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, It is characterized in that include: Displaying one or more documents to be edited that are associated with the target user account; The one or more documents to be edited include a target document; In response to a trigger operation on the target document, the text data in the target document in an editing state and the initial editing workload are displayed on a document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited; The initial editing workload is updated based on the editing operations belonging to the target editing mode for the text data; if the target editing mode is the deletion editing mode, the updated initial editing workload is the sum of the initial editing workload and the number of target characters deleted in the text data.
2. The method according to claim 1, It is characterized in that The displaying of one or more documents to be edited associated with the target user account includes: Display at least two documents associated with the target user account; In response to a selection operation on the at least two documents, the selected documents are determined as documents to be edited; the number of the documents to be edited is one or more.
3. The method according to claim 1, It is characterized in that Also includes: In response to a triggering operation on the initial editing workload, workload detail information in at least two time dimensions is displayed.
4. The method according to claim 3, It is characterized in that The response to the triggering operation for the initial editing workload displays workload details information in at least two time dimensions, including: In response to the trigger operation for the initial editing workload, a workload details interface is displayed; the workload details interface includes detail display controls for at least two time dimensions; the at least two time dimensions include a time dimension T i , i is a positive integer less than or equal to the total number of time dimensions; In at least two detail display controls of the workload details interface, the response to the time dimension T i The details of the display control trigger operation, showing the time dimension T i Workload details information M i .
5. The method according to claim 4, It is characterized in that The response is for the time dimension T i The details of the display control trigger operation, showing the time dimension T i Workload details information M i ,include: The response is for the time dimension T i The details of the display control trigger operation, showing the time dimension T i The sum of the editing workload corresponding to each document to be edited, and the time dimension T i The editing workload corresponding to the target document described below.
6. A data processing method, It is characterized in that include: Displaying text data in an editing state and an initial editing workload in a target document of a document editing application; The initial editing workload is used to represent the number of characters associated with the target editing mode counted in at least two documents to be edited in the document editing application; the at least two documents to be edited include the target document; In response to an editing operation on the text data, if the editing operation includes an operation belonging to the target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload; The difference between the target editing workload and the initial editing workload is determined based on the number of characters associated with the target editing mode in the editing operation; if the target editing mode is the deletion editing mode, then the target editing workload is the sum of the initial editing workload and the number of target characters deleted in the text data.
7. The method according to claim 6, It is characterized in that The target editing mode includes an adding editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload, includes: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the add editing mode, target characters are added to the text data based on the operation belonging to the add editing mode, and the initial editing workload in the document editing application is updated and displayed as a target editing workload; the difference between the target editing workload and the initial editing workload is equal to the number of target characters added.
8. The method according to claim 6, It is characterized in that The target editing mode includes a deletion editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload, includes: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the deletion editing method, based on the operation belonging to the deletion editing method, target characters are deleted from the text data, and the initial editing workload in the document editing application is updated and displayed as a target editing workload; the target characters belong to the text data; and the difference between the target editing workload and the initial editing workload is equal to the number of characters of the target characters deleted.
9. The method according to claim 6, It is characterized in that The target editing mode includes an attribute modification editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload, includes: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the attribute modification editing mode, then based on the operation belonging to the attribute modification editing mode, the character attributes of the target characters are modified in the text data, and the initial editing workload in the document editing application is updated and displayed as the target editing workload; the target characters belong to the text data; the difference between the target editing workload and the initial editing workload is equal to the number of characters of the target characters whose character attributes are modified.
10. The method according to claim 6, It is characterized in that The document editing application also includes workload progress information; the method also includes: Based on the difference between the target editing workload and the initial editing workload, updating and displaying the workload progress information; During the editing cycle associated with the workload progress information, if the updated workload progress information is in a progress completion state, displaying a special effect animation associated with the editing operation; If the editing cycle has ended and the updated workload progress information is in an incomplete progress state, a task failure prompt message is displayed.
11. The method according to claim 10, It is characterized in that Also includes: Acquire an editing frequency, an excitation parameter, and an editing cycle; the editing frequency is used to represent the number of characters associated with the target editing mode counted in the document editing application within a unit time period; Generate an excitation editing frequency based on the editing frequency and the excitation parameter, and generate a period ratio of the editing period to the unit time period; The excitation editing frequency is multiplied by the cycle ratio to obtain the expected total workload, and the workload progress information is generated according to the expected total workload planned to be completed within the editing cycle.
12. The method according to claim 6, It is characterized in that The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, updating and displaying the initial editing workload in the document editing application as the target editing workload, includes: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to a server so that the server generates a target editing workload based on the data change set; The target editing workload is obtained, and the initial editing workload in the document editing application is updated and displayed as the target editing workload.
13. The method according to claim 12, It is characterized in that The target editing mode includes an adding editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to the server, including: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the add editing mode, then based on the operation belonging to the add editing mode, the add position information and the target characters to be added are obtained, and a data change set matching the add editing mode is generated based on the add position information and the target characters, and the data change set is sent to a server so that the server generates a target editing workload based on the number of target characters in the data change set and the initial editing workload.
14. The method according to claim 12, It is characterized in that The target editing mode includes a deletion editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to the server, including: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the deletion editing method, then based on the operation belonging to the deletion editing method, deletion position information and the number of deleted characters are obtained, and a data change set matching the deletion editing method is generated based on the deletion position information and the number of deleted characters, and the data change set is sent to a server so that the server generates a target editing workload based on the number of deleted characters in the data change set and the initial editing workload.
15. The method according to claim 12, It is characterized in that The target editing mode includes an attribute modification editing mode; The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to the server, including: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the attribute modification editing mode, then based on the operation belonging to the attribute modification editing mode, modification position information, the number of modified characters, and the modified character attributes are obtained, and a data change set matching the attribute modification editing mode is generated based on the modification position information, the number of modified characters, and the modified character attributes, and the data change set is sent to a server so that the server generates a target editing workload based on the number of modified characters in the data change set and the initial editing workload.
16. The method according to claim 12, It is characterized in that The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to the server, including: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the target editing mode, storing characters in the editing operation associated with the target editing mode into a target buffer area; When the number of cached characters stored in the target cache area is greater than or equal to a storage threshold, a data change set corresponding to the target editing mode is generated based on the cached characters, and the data change set is sent to a server.
17. The method according to claim 12, It is characterized in that The response is for an editing operation of the text data, and if the editing operation includes an operation belonging to the target editing mode, generating a data change set corresponding to the target editing mode, and sending the data change set to the server, including: In response to an editing operation on the text data, if the editing operation includes an operation belonging to the target editing mode, storing characters in the editing operation associated with the target editing mode into a target buffer area; When the cache cycle associated with the target cache area ends, a data change set corresponding to the target editing mode is generated based on the cache characters stored in the target cache area, and the data change set is sent to the server.
18. A data processing device, It is characterized in that include: A first display module, used to display one or more documents to be edited associated with a target user account; The one or more documents to be edited include a target document; A second display module, for responding to a trigger operation on the target document, and displaying text data in the target document in an editing state and an initial editing workload on a document editing interface; the initial editing workload includes the sum of the number of characters associated with the target editing mode counted in each document to be edited; The initial editing workload is updated based on the editing operations belonging to the target editing mode for the text data; if the target editing mode is the deletion editing mode, the updated initial editing workload is the sum of the initial editing workload and the number of target characters deleted in the text data.
19. A computer device, It is characterized in that include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code to execute the method described in any one of claims 1-17.
20. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method according to any one of claims 1 to 17.
