A document processing method, device, equipment and medium
By identifying and updating common language identifiers between clients and servers, the problem of common language management in online documents is solved, language consistency and clarity of information transmission are achieved, and knowledge transfer within the team is simplified.
Patent Information
- Application Number
- CN202110232055.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-03-02
AI Technical Summary
There is a lack of effective methods in the existing technology to manage common language in online documents, resulting in unclear information transmission and interpretation between teams and difficulty in maintaining language consistency.
By enabling the identification and updating of common language identifiers between clients and servers, target content in editorial content is automatically updated to a common language, ensuring language consistency and clarity within the team.
It achieves effective management of common language in online documents, improves the clarity and consistency of information transmission, and simplifies the knowledge transfer process.
Smart Images

Figure CN114997118B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to information processing technology, and more particularly to a document processing method, apparatus, device and medium. Background Art
[0002] When users use documents to record professional information, they will write relevant information into the documents. Since each team is involved in different domain knowledge, different users in the same team are responsible for different technical fields. As a result, users in the team need to use a common language to describe a concept, and keep the common language without introducing other ambiguities and facilitate summary and clear explanation, so as to facilitate subsequent knowledge transfer and information alignment.
[0003] However, in the prior art, there is no effective method to manage the common language in online documents. Summary of the invention
[0004] Embodiments of the present disclosure provide a document processing method, apparatus, device, and medium to effectively manage common languages in online documents.
[0005] In a first aspect, an embodiment of the present disclosure provides a document processing method, including:
[0006] In response to receiving an editing operation of the target document by the first user, acquiring editing content;
[0007] Based on the edited content, sending a first data request to a server;
[0008] In response to receiving the universal language identifier sent by the server, the target content in the edited content is updated to a universal language, wherein the universal language identifier is determined based on the edited content.
[0009] In a second aspect, the embodiment of the present disclosure further provides a document processing method, which is applied to a server and includes:
[0010] Receiving a first data request sent by a client, wherein the first data request includes editing content;
[0011] Based on the edited content, obtaining a universal language identifier corresponding to the edited content;
[0012] The universal language identifier corresponding to the edited content is sent to the client.
[0013] In a third aspect, the present disclosure also provides a document processing device, including:
[0014] A content acquisition module, configured to acquire edited content in response to receiving an edit operation of a target document by a first user;
[0015] A request sending module, used for sending a first data request to a server based on the edited content;
[0016] The universal language updating module is used to update the target content in the edited content to a universal language in response to receiving the universal language identifier sent by the server, wherein the universal language identifier is determined based on the edited content.
[0017] In a fourth aspect, an embodiment of the present disclosure further provides a document processing device, which is configured on a server and includes:
[0018] A request receiving module, configured to receive a first data request sent by a client, wherein the first data request includes editing content;
[0019] A universal language identifier acquisition module, used to acquire a universal language identifier corresponding to the edited content based on the edited content;
[0020] The universal language identifier sending module is used to send the universal language identifier corresponding to the edited content to the client.
[0021] In a fifth aspect, an embodiment of the present disclosure further provides a document processing device, including:
[0022] one or more processors;
[0023] A memory for storing one or more programs;
[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the document processing method as described in any one of the embodiments of the present disclosure.
[0025] In a sixth aspect, an embodiment of the present disclosure further provides a medium, wherein the medium stores a computer program, and when the computer program is executed by a processor, the document processing method as described in any one of the embodiments of the present disclosure is implemented.
[0026] The disclosed embodiments provide a document processing method, apparatus, device and medium, the document processing method comprising: in response to receiving an editing operation of a target document by a first user, obtaining editing content; based on the editing content, sending a first data request to a server; in response to receiving a universal language identifier sent by the server, updating the target content in the editing content to the universal language, wherein the universal language identifier is determined based on the editing content. In the process of editing an online document, if it is recognized that the input editing content includes the universal language, the disclosed embodiments automatically update the target content in the editing content to the universal language, thereby achieving effective management of the universal language in the online document. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0028] Figure 1 is a flowchart of a document processing method provided by an embodiment of the present disclosure;
[0029] Figure 2 is a schematic diagram of a first interaction area provided by an embodiment of the present disclosure;
[0030] Figure 3 is a schematic diagram of a second interaction area provided by an embodiment of the present disclosure;
[0031] Figure 4 This is a schematic diagram of a document operation page provided by an embodiment of the present disclosure;
[0032] Figure 5 is a flowchart of a document processing method provided by an embodiment of the present disclosure;
[0033] Figure 6 is a flow chart of an interactive method for document processing provided by an embodiment of the present disclosure;
[0034] Figure 7 is a flow chart of an interactive method for document processing provided by an embodiment of the present disclosure;
[0035] Figure 8 is a flow chart of an interactive method for document processing provided by an embodiment of the present disclosure;
[0036] Fig. 9 is a structural schematic diagram of a document processing device provided by an embodiment of the present disclosure;
[0037] Fig.10 is a structural schematic diagram of a document processing device provided by an embodiment of the present disclosure;
[0038] Fig.11 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0040] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0041] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0042] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0043] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0044] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0045] Figure 1 This is a flowchart of a document processing method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of managing common languages in documents. The method can be executed by a document processing device, which can be implemented by software and / or hardware. The document processing method is applied in a client.
[0046] It should be noted that the document processing method provided in this embodiment can be used specifically on the client, and can be considered to be specifically executed by a document processing device integrated on the client, wherein the client can specifically be a computer device including a processor, a memory, an input device and an output device, such as a laptop computer, a desktop computer, a tablet computer, and a smart terminal.
[0047] like Figure 1 As shown, the document processing method provided in this embodiment mainly includes steps S11, S12 and S13.
[0048] S11, in response to receiving an editing operation of a first user on a target document, obtaining editing content;
[0049] The target document may be an editable document displayed in the display area of the client, for example, a common document such as a word document, an excel document, a pdf document, a txt document, or other editable documents, which is not limited in this embodiment. The edited content refers to the content entered by the staff in the current document page, which may be the content entered by the user by pasting or the content entered by the user by an input method. This embodiment only illustrates the edited content by way of example, but does not limit it.
[0050] S12. Send a first data request to a server based on the edited content.
[0051] The above-mentioned server can be a background server or a back-end server, which provides computing or application services for clients in the network. It has the ability to respond to service requests, provide services, and guarantee services, and has high-speed CPU computing power, long-term reliable operation, strong I / O external data throughput capacity, and better scalability.
[0052] The first data request includes the edited content, and the first data request is used to request the server to identify whether there is a universal language in the edited content. If the server identifies the universal language identifier corresponding to the edited content, the server sends the universal language identifier to the client.
[0053] S13. In response to receiving the universal language identifier sent by the server, updating the target content in the edited content into a universal language, wherein the universal language identifier is determined based on the edited content.
[0054] Among them, common language refers to the language used by a work team to describe the same concepts or knowledge points. The work team maintains the common language so as not to introduce other ambiguities and facilitates summary and clear explanation, which facilitates subsequent knowledge transfer and information alignment.
[0055] Specifically, the common language is widely used by all participants in the team in the process of DDD (program-driven design) software development, so as to accurately convey the business rule description, facilitate team members to reach a consensus on terminology identification, and facilitate understanding and dissemination. The common language identification means that each common language has a unique identification ID, through which the name of the corresponding common language and the corresponding interpretation can be found. The target content is part of or all of the edited content.
[0056] In this embodiment, the client receives the edited content input by the first user in the target document page, generates a first data request based on the edited content, and sends it to the server. The server identifies whether there is a corresponding universal language identifier for the edited content based on the edited content. If so, the universal language identifier is returned to the client. The client automatically updates the target content in the edited content to the universal language based on the universal language identifier received from the server. If there is no corresponding universal language identifier for the edited content, the server does not perform any processing. Among them, the universal language identifier corresponding to the edited content means that part or all of the content in the edited content has a corresponding universal language identifier.
[0057] In the disclosed embodiment, the target content in the edited content is automatically updated to the universal language. It can be understood that after receiving the universal language identifier sent by the server, the target content is directly updated to the universal language without manual intervention, which is convenient and fast.
[0058] In one embodiment, in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to a universal language includes: displaying a first interaction area, where the first interaction area is associated with the target content; in response to receiving a first operation of the first user on the first interaction area, updating the target content in the edited content to a universal language.
[0059] Among them, the interactive area can be understood as a display area displayed in the target document for the first user to interact with the client. Furthermore, the interactive area can be a preset area in the target document page, or it can be the area where the cursor is located in the target document. The preset area can be a pre-set fixed position, or it can change with the change of the editing content position. For example: the predetermined position can be the bottom, top, left or right of the document page. The position that changes with the change of the editing content position can be the lower right, upper right or lower left of the editing content.
[0060] In this embodiment, the server returns the universal language identifier corresponding to the target content to the client, and the client displays information associated with the target content in the first interactive area. The associated information is used to prompt the first user whether to update the target content to the universal language.
[0061] Figure 2 is a schematic diagram of a first interactive area provided by an embodiment of the present disclosure, such as Figure 2 As shown, “Set as universal language?” is displayed in the first interactive area 11 , and two selection buttons, a “Yes” button and a “No” button, are displayed.
[0062] Further, in response to the first user's first operation on the first interactive area, the target content in the edited content is updated to the universal language. In response to the first user's triggering operation on the first interactive area, no processing is performed on the edited content.
[0063] For example, the first operation may be an operation on a "yes" button in the first interactive area 11, and the target content in the edited content is updated to the universal language. Further, the trigger operation may be an operation on a "no" button in the first interactive area 11. The trigger operation on the button may be a single click, double click or touch operation on the button, which is not limited in this embodiment.
[0064] Specifically, after receiving the operation of the first user on the "Yes" button, respond to the operation and update the target content to the universal language. After receiving the operation of the first user on the "No" button, respond to the operation and do not process the target content, and the target content is still the regular editing content.
[0065] It should be noted that Figure 2 The first interactive area and operation method shown in the figure are merely exemplary descriptions and are not limiting. Other settings may be made according to the actual page display scenario.
[0066] In one embodiment, in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to a universal language includes: displaying a second interaction area, the second interaction area including a universal language identifier associated with the target content; in response to receiving a second operation of the first user on the second interaction area, acquiring the universal language identifier corresponding to the target content; in response to receiving a third operation of the first user on the second interaction area, updating the target content in the edited content to a universal language corresponding to the universal language identifier.
[0067] In this embodiment, the server recognizes that the target content in the edited content corresponds to multiple universal language identifiers, and returns the multiple universal language identifiers corresponding to the target content to the client, and the client displays the multiple universal language identifiers associated with the target content in the second interactive area.
[0068] Figure 3 is a schematic diagram of a second interactive area provided by an embodiment of the present disclosure, such as Figure 3 As shown, a first interactive area 21 is displayed in the lower right corner of the editing content. The first interactive area 21 includes multiple universal language identifiers, such as universal language A, universal language B, universal language C, universal language D, and operable options such as not set as universal language. The staff can select the universal language identifier corresponding to the target content in the above-mentioned second interactive area.
[0069] Exemplarily, when a click operation of the first user on the option "not set as universal language" in the second interactive area is detected, the target content is not processed in any way and is simply stored as ordinary text.
[0070] Furthermore, when receiving the universal language identifier sent by the server, the matching degree between each universal language identifier and the target content can also be received. The order of the universal language identifiers in the second interactive area is determined by the matching degree. For example, the order of the universal language identifiers from top to bottom in the second interactive area is the order of the matching degree of the corresponding target content on the universal language identifier from large to small. The highest matching degree is displayed in the first place, and then the matching degree decreases in sequence.
[0071] In one embodiment, in response to receiving the second operation of the first user on the second interactive area, a universal language identifier corresponding to the target content is obtained, and the target content is directly set to the universal language corresponding to the universal language identifier.
[0072] For example, if a click operation of the first user on the "universal language A" option in the second interactive area is detected, the universal language identifier A is obtained, and the target content is directly updated to the universal language corresponding to the universal language identifier A.
[0073] In one embodiment, in response to receiving a second operation of the first user on the second interaction area, a universal language identifier corresponding to the target content is obtained, and the display content in the second interaction area is updated. At this time, information associated with the target content is displayed in the second interaction area. In response to receiving a third operation of the first user on the second interaction area, the target content is updated to the universal language corresponding to the universal language identifier. In response to receiving the third operation of the first user on the second interaction area being the same as the first operation in the first interaction area, the specific description can be referred to the description of the first operation in the first interaction area in the above embodiment, which will not be repeated in this embodiment. The above-mentioned associated information is used to prompt the first user whether to set the target content to the universal language.
[0074] In one embodiment, in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to a universal language includes: in response to there being multiple target contents, displaying a third interaction area, the third interaction area including universal language identifiers associated with the multiple target contents; in response to receiving a fourth operation of the first user on the third interaction area, matching the target content with a corresponding universal language identifier; in response to receiving a fifth operation of the first user on the third interaction area, updating the target content in the edited content to a universal language corresponding to the matched universal language identifier.
[0075] In this embodiment, the server recognizes that there are corresponding universal language identifiers for multiple target contents in the edited content, and the server returns the multiple universal language identifiers corresponding to the target contents to the client, and the client displays the universal language identifiers associated with the multiple target contents in the third interactive area. In response to receiving the fifth operation of the first user on the third interactive area, the client updates the target content in the edited content to the universal language corresponding to the matching universal language identifier.
[0076] For example: multiple target contents in the edited content have corresponding universal language identifiers, which can be understood as target content a corresponding to universal language identifier A, target content b corresponding to universal language identifier B, target content c corresponding to universal language identifier C, and target content d corresponding to universal language identifier D.
[0077] Based on the above embodiment, in response to receiving an editing operation of the target document by the first user, before acquiring the editing content, the method further includes: in response to the first user operating a mode switch, turning on the universal language recognition mode of the user ID.
[0078] Specifically, a mode switch may be set in the document, and the mode switch is used to turn on or off the universal language recognition mode. The universal language recognition mode means that after the user inputs the editing content, it will automatically recognize whether the editing content is in the universal language.
[0079] If the universal language recognition mode is on, after the user inputs the edited content, it will automatically recognize whether the edited content is in the universal language, that is, the document processing method provided by the embodiment of the present disclosure is executed, such as the above steps S11-S13. If the universal language recognition mode is off, after the user inputs the edited content, the universal language recognition is not performed, and it is directly stored as a normal edited text.
[0080] Further, when the mode switch is in the off state, in response to the operation of the mode switch, the universal language recognition mode is turned on, and the operation of the mode switch includes single-clicking, double-clicking, or touching the mode switch. When the mode switch is in the on state, in response to the operation of the mode switch, the universal language recognition mode is turned off, and the operation of the mode switch includes single-clicking, double-clicking, or touching the mode switch.
[0081] The document processing method provided by the embodiment of the present disclosure includes: in response to receiving an editing operation of a target document by a first user, obtaining editing content; based on the editing content, sending a first data request to a server; in response to receiving a universal language identifier sent by the server, updating the target content in the editing content to the universal language, wherein the universal language identifier is determined based on the editing content. In the process of editing an online document, if the input editing content includes the universal language, the embodiment of the present disclosure automatically updates the target content in the editing content to the universal language, thereby achieving effective management of the universal language in the online document.
[0082] Based on the above embodiment, an embodiment of the present disclosure provides another document processing method, which includes: in response to an insert operation on a universal language, displaying the universal language in the target document.
[0083] In this embodiment, the insertion operation of the universal language can be understood as the operation of inserting the universal language in the target current document. The above insertion operation can be performed by right clicking, or by the insert button in the function box at the top of the document. This is not limited in this embodiment.
[0084] In one embodiment, in response to an insert operation on a universal language, displaying the universal language in the target document includes: in response to an insert operation on the universal language, displaying a first operation entry for obtaining a target universal language; in response to obtaining the target universal language, displaying a second operation entry; and in response to receiving an operation instruction for the second operation entry, displaying the target universal language in the target document.
[0085] The second operation entry includes one or more operation entries in the target universal language. The operation instruction for the second operation entry may include single-clicking, double-clicking or touching any one of the options in the second operation entry.
[0086] Furthermore, the insertion operation of the universal language can be operated through the insert button at the top of the document, and all options for inserting content in the document, including the first operation entry, are displayed in response to the operation of the universal language option corresponding to the first operation entry. An insert selection box can also be displayed in the target document, and the insert selection box displays all options for adding content to the document, including the first operation entry, in response to the operation of the universal language option corresponding to the first operation entry.
[0087] Further, in response to an operation on the universal language option in the first operation entry, a target universal language is obtained, and in response to obtaining the target universal language, a second operation entry is displayed. In response to an operation on the second operation entry, a target universal language is selected from a plurality of target universal languages. Target content input by the first user in the target document is received, and the target content is updated to the universal language.
[0088] In an exemplary embodiment, Figure 4 is a schematic diagram of a document operation page provided by an embodiment of the present disclosure, such as Figure 4 As shown, right-click anywhere in the target document or select an operation in the function bar at the top of the document. The target document will display the following Figure 4 The function list box 21 shown in the figure operates the "Add below" option 22 in the above function list, and the current document is displayed as follows Figure 3 The add selection box 23 shown in the figure operates the first operation entry "universal language" option in the add selection box 23, and the second selection box 24 displayed in the target document, such as Figure 4 As shown, the second selection box 24 includes a second operation entry, for example: universal language A, universal language B, universal language C, universal language D, and the staff can arbitrarily select a universal language ID as the universal language corresponding to the editing content to be input in the document next.
[0089] It should be noted that Figure 5 This is merely an illustrative description of the method of inserting general language, and is not intended to be limiting.
[0090] In one embodiment, in response to the insert operation on the universal language, displaying the universal language in the target document includes: in response to the insert operation on the universal language, acquiring target position information; and displaying the universal language in the target document based on the target position information.
[0091] In this embodiment, the target position information refers to the position where the universal language is inserted, and the position information is implemented by the first user's insertion operation on the universal language. The first user can insert the universal language at any position in the target document.
[0092] Further, after the target universal language is acquired based on the above embodiment, the target content subsequently input by the first user at the target position is updated to the target universal language.
[0093] In one embodiment, "updating the target content in the edited content to the universal language" is optimized to "establishing an association relationship between the target content in the edited content and the universal language identifier; and storing the association relationship in a mapping relationship table."
[0094] The universal language identifier may be a universal language identifier selected by the first user from the first interaction area, the second interaction area or the third interaction area in the above embodiment.
[0095] A corresponding relationship between the target content and the selected universal language identifier is established. It should be noted that the target content and the universal language identifier can be a one-to-one relationship or a many-to-one relationship. That is, different target contents can have the same universal language identifier.
[0096] The mapping relationship table stores the correspondence between the target content and the universal language identifier, so that the staff can easily obtain the universal language ID corresponding to the target content during the subsequent document use.
[0097] Furthermore, setting the editing content to a universal language also includes: in response to the current editing mode being the first mode, changing the display mode of the target content in the editing content from the first mode to the second mode; or, in response to the current editing mode being the third mode, changing the display mode of the target content in the editing content from the third mode to the second mode associated with the third mode.
[0098] In this embodiment, the first mode can be understood as a display mode of conventional content in the target document. The second mode refers to a proprietary display mode of target content in a universal language.
[0099] For example, the first display mode is Songti, font size 4. The second display mode can be to add underline, add text background, bold, or bevel.
[0100] In this embodiment, the third mode can be understood as a display mode in which rendering is added to the display mode of the conventional content in the target document. The second mode refers to a proprietary display mode for target content in a universal language.
[0101] It should be noted that the difference between the third display mode and the first display mode is that the first mode is only a basic display of the document content, and the third display mode adds a rendering display mode on the basis of the first mode. The second display mode associated with the third mode is to add a rendering display mode on the basis of the third mode.
[0102] For example: the first display mode is Songti, size 4 font. The third mode is Songti, size 4 font, bold. Correspondingly, the second display mode associated with the third mode is Songti, size 4 font, bold, underlined. Or the second display mode associated with the third mode is Songti, size 4 font, bold, text background added.
[0103] The above-mentioned method of displaying the target contents in a differentiated manner can enable the staff to clearly know which contents are common languages when using the document later.
[0104] Based on the above embodiment, the above document processing method also includes: in response to a trigger operation on the updated target content, sending a second data request to the server, wherein the second data request includes a universal language identifier and an identifier of the target document; in response to receiving the second data sent by the server, displaying universal language description information corresponding to the universal language identifier.
[0105] In this embodiment, the triggering operation on the updated target content may be a selection operation on the updated target content, a click operation on the updated target content, or a mouse cursor pointing to the updated target content. The general language description information refers to the detailed explanation information of the general language corresponding to the target content.
[0106] The second data request is mainly used by the client to request the server for detailed explanation information in the common language corresponding to the target content.
[0107] In this embodiment, in response to a trigger operation on the updated target content, a second data request is sent to the server, and the server determines the corresponding preset mapping relationship table based on the identifier of the target document, and queries the preset mapping relationship table based on the target content. If the universal language identifier corresponding to the target content is queried in the preset mapping relationship table, it means that the target content of the current operation is a universal language, and the universal language description information corresponding to the target content is obtained based on the universal language identifier, and sent to the client for display.
[0108] Furthermore, after receiving the general language description information corresponding to the target content returned by the server, the client can display the general language description information in the interpretation display box.
[0109] There are many ways to display the definition display box in the target document. For example, the definition display box can be displayed in a preset area on the target document page, or the definition display box can be displayed in the area where the cursor is located in the document area. The definition display box is a display box that is suspended above the document. The preset area can be a pre-set fixed position, or a position that changes with the document content. For example, the predetermined position can be the bottom, top, left or right of the document page. The position that changes with the document content can be the lower right, upper right or lower left of the edited content.
[0110] For example: the interpretation display box is set at the bottom of the document. When the staff browses the document, they need to view the specific content of the common language corresponding to the target content "ABCD". They can place the mouse cursor on the target content "ABCD" or click the target content "ABCD" with the mouse. After the client detects the staff's operation, it sends a second data request to the server. The server returns the common language description information corresponding to the target content and displays the common language description information in the interpretation display box in the target document. Furthermore, when the staff has finished viewing, they can close the interpretation display box through the close button of the interpretation display box; they can also close the interpretation display box by operating the document content "ABCD" again.
[0111] According to the technical solution of this embodiment, when the staff puts the mouse on the universal language, a floating window will display the specific meaning of the universal language.
[0112] Based on the above embodiment, the above document processing method also includes: in response to an addition operation on a universal language, receiving the name of the universal language and the description information of the universal language; sending the name of the universal language and the description information of the universal language to the server so that the server creates a corresponding universal language record.
[0113] The common language name may be the name given to the common language by the staff.
[0114] In this embodiment, the client can receive an instruction entered by a user in a document to create or update a universal language library, and in response to an operation to add a universal language, receive the universal language name and universal language description information entered by the user, request the universal language library interface of the server, and pass in the universal language name and the corresponding universal language description information. After receiving the request, the server determines that there is no duplicate universal language. If there is no duplicate universal language, a universal language record is generated, the universal language library is updated, and the processing result is returned to the client.
[0115] Figure 5 1 is a flowchart of a document processing method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of managing common languages in documents. The method can be executed by a document processing device, which can be implemented by software and / or hardware. The document processing method is applied in a server.
[0116] like Figure 5 As shown, the document processing method provided in this embodiment mainly includes steps S21, S22 and S23.
[0117] S21. Receive a first data request sent by a client, where the first data request includes editing content.
[0118] The above-mentioned server can be a background server or a back-end server, which provides computing or application services for clients in the network. It has the ability to respond to service requests, provide services, and guarantee services, and has high-speed CPU computing power, long-term reliable operation, strong I / O external data throughput capacity, and better scalability.
[0119] Furthermore, the server serves the client. A communication connection is established between the client and the server, and data can be interacted and transmitted.
[0120] Specifically, the client receives the edited content input by the staff in the target document page, generates a first data request based on the edited content, and sends the first data request to the server. The server receives the first data request sent by the client.
[0121] S22: Based on the edited content, obtain a universal language identifier corresponding to the edited content.
[0122] In one embodiment, obtaining a universal language identifier corresponding to the edited content based on the edited content includes: aggregating data information corresponding to at least one of the edited contents to determine the total amount of data information after the aggregation process; when the total amount of data information meets a threshold condition, obtaining a universal language identifier corresponding to the edited content.
[0123] The threshold condition refers to a condition for querying the corresponding universal language identifier based on the edited content. The threshold condition may be an attribute feature of the edited content, for example, the number of words in the edited content, the text format, the font size of the edited content, and the like.
[0124] In this embodiment, binlog logs in a MySQL database are monitored; multiple binlog logs corresponding to the target document are obtained; modifications corresponding to the multiple binlog logs are aggregated into one modification, and specific modification content is extracted; when the number of words in the specific modification content reaches a threshold condition, a universal language identifier corresponding to the edited content is obtained.
[0125] MySQL database is an open source row-column database that can store user data. Binlog is a binary log maintained by the MySQL database service layer. It is mainly used to record SQL statements that update or potentially update MySQL data and save them on disk in the form of "transactions". Simply put, it records each operation of the database. You can use binlog to replay the operation of MySQL like playing a movie.
[0126] Specifically, each time the user completes the input operation in the target document page, the corresponding changes will be written to the MySQL database. After receiving the edited content sent by the client, the universal language module asynchronously monitors the Binlog log of the MySQL database and parses the binlog log. In this embodiment, delayed queue consumption is adopted, and multiple binlog records of a document are consumed each time, and then the corresponding modifications are aggregated into one modification, and then the specific modified content is extracted. If the number of text words added by the specific modified content exceeds the threshold condition, the universal language identifier corresponding to the edited content is obtained.
[0127] Preferably, the threshold condition in this embodiment is 10 characters. It should be noted that the threshold condition of 10 characters is obtained based on experience, and the threshold condition can also be set according to actual application conditions. This embodiment is only for illustration, not limitation.
[0128] In one embodiment, obtaining the universal language identifier corresponding to the edited content based on the edited content includes: performing word segmentation processing on the edited content to obtain multiple word units corresponding to the edited content; and matching the word units in a universal language library to determine the universal language identifier corresponding to each word unit.
[0129] Specifically, the edited content is segmented locally, the corresponding word units are extracted from the edited content, and the word units are used to accurately match the word units in the universal language ElasticSearch search library.
[0130] The above-mentioned word segmentation process may adopt any word segmentation strategy, such as the Jieba Chinese word segmentation strategy. This embodiment only illustrates the word segmentation strategy, but does not limit it.
[0131] In another embodiment, querying the universal language ID corresponding to the edited content includes: performing fuzzy matching on the edited content in a universal language library to determine a query result.
[0132] Specifically, the un-segmented edited content is searched in the ElasticSearch search library for fuzzy search.
[0133] ElasticSearch is a search engine based on the Lucene library. It provides a distributed, multi-tenant-supported full-text search engine.
[0134] In another embodiment, the word element is used to search the universal language ElasticSearch library for precise matching of the word element, and the unsegmented edited content is used to search the ElasticSearch library for fuzzy matching, and the query result is determined based on the results of the two searches.
[0135] In this embodiment, the query speed can be improved by using the word element to accurately match the word element in the universal language ElasticSearch search library, and the query recall rate can be improved by using the unsegmented edited content to perform fuzzy search in the ElasticSearch search library.
[0136] S23: Send the universal language identifier corresponding to the edited content to the client.
[0137] In one implementation, if the universal language identifier corresponding to the edited content is not found, no content may be returned.
[0138] In another embodiment, if one or more universal language identifiers are found, different processing may be performed according to the number of the found universal language identifiers.
[0139] Specifically, if the number of the queried universal language identifiers is less than or equal to a preset threshold, all the queried universal language identifiers may be returned to the client, wherein the universal language identifiers returned to the client may be universal language identifiers sorted from high to low according to the matching degree.
[0140] Specifically, if the number of universal language identifiers queried is greater than a preset threshold, all universal language identifiers queried are sorted from high to low according to the matching degree, and the first L universal language identifiers are returned to the client. Wherein, L is equal to the preset threshold. The above preset threshold can be set according to the actual application situation. For example, it can be 3 or 5.
[0141] In another implementation, the sorting process may not be performed, and all the queried universal language IDs are returned to the client.
[0142] In this embodiment, the specific operation of automatically identifying the universal language can be performed only after the current user identification turns on the universal language identification mode. If the current user identification does not turn on the universal language identification mode, no operation can be performed.
[0143] In one embodiment, the document processing method further includes: receiving a second data request sent by the client; wherein the second data request includes a universal language identifier and an identifier of a target document; querying a universal language library for universal language description information corresponding to the universal language identifier; and sending second data to the client, wherein the second data includes the universal language description information corresponding to the universal language identifier.
[0144] In this embodiment, after receiving the second data request, the server needs to determine the universal language description information corresponding to the target content based on the universal language identifier in the second data request. Specifically, the server determines the corresponding preset mapping relationship table based on the identifier of the target document, and searches the preset mapping relationship table based on the target content. If the universal language identifier corresponding to the target content is found in the preset mapping relationship table, it means that the target content of the current operation is a universal language, and the universal language description information corresponding to the target content is obtained based on the universal language identifier, and sent to the client for display.
[0145] Furthermore, the second data request also includes: a user identifier; the method also includes: determining whether the user has permission to the target document based on the user identifier and the target document identifier; in response to the user having permission to the target document, executing an operation of querying the universal language description information corresponding to the universal language identifier in the universal language library.
[0146] A query is made in the table of correspondence between the target document identifier and the user identifier to determine whether the user identifier has the authority to the target document. The above-mentioned authority may refer to the authority to modify, input, delete, edit, etc. The authority in this embodiment mainly refers to the authority to query the universal language identifier.
[0147] If the correspondence between the current user ID and the target document ID can be found in the document ID and user ID correspondence table, it is determined that the current user ID has the target document authority, and then an operation is performed to query the universal language library for the universal language description information corresponding to the target content under the universal language ID.
[0148] If the correspondence between the current user ID and the target document ID is not found in the document ID and user ID correspondence table, it is determined that the current user ID does not have the current document authority, and the user is directly prompted that he does not have the authority to query the universal language ID. In this way, the security and confidentiality of the document can be improved.
[0149] In one embodiment, the above-mentioned document processing method also includes: the method also includes: receiving the name of the common language and the description information of the common language sent by the client; querying the common language library based on the name of the common language; in response to not finding the name of the common language, updating the common language library based on the name of the common language and the description information of the common language.
[0150] In this embodiment, the client can receive an instruction entered by a user in a document to create or update a universal language library, and in response to an operation to add a universal language, receive the universal language name and universal language description information entered by the user, request the universal language library interface of the server, and pass in the universal language name and the corresponding universal language description information. After receiving the request, the server determines that there is no duplicate universal language. If there is no duplicate universal language, a universal language record is generated, the universal language library is updated, and the processing result is returned to the client.
[0151] Figure 6 is a flowchart of an interactive method for document processing provided by an embodiment of the present disclosure, such as Figure 6 As shown, the interaction method provided in this embodiment mainly includes the following steps:
[0152] S31. The client receives the edited content in the target document.
[0153] S32: The client sends the edited content to the server.
[0154] S33: When the edited content meets the query condition, the server queries the universal language ID corresponding to the edited content.
[0155] S34. The server determines the universal language identifier corresponding to the edited content based on the query result.
[0156] S35. The server sends the universal language identifier to the client.
[0157] S36: The client displays a second interactive area in the target document, where the second interactive area includes one or more universal language identifiers.
[0158] S37: The client updates the target content in the edited content into a universal language in response to the operation on the second interactive area.
[0159] The specific implementation of each of the above steps can refer to the description in the above embodiment, and will not be repeated in this embodiment.
[0160] Figure 7 is a flowchart of an interactive method for document processing provided by an embodiment of the present disclosure, such as Figure 7 As shown, the interaction method provided in this embodiment mainly includes the following steps:
[0161] S41. The client responds to the operation on the document content in the target document.
[0162] S42: The client sends a second data request to the server.
[0163] S43: The server determines whether the current user identifier has the current document authority based on the current user identifier and the target document identifier.
[0164] S44: When the current user identifier has the current document authority, the server searches the universal language library for universal language description information corresponding to the document content under the universal language identifier.
[0165] S45. The server returns the general language description information to the client.
[0166] S46. The client displays the general language description information.
[0167] The specific implementation of each of the above steps can refer to the description in the above embodiment, and will not be repeated in this embodiment.
[0168] Figure 8 is a flowchart of an interactive method for document processing provided by an embodiment of the present disclosure, such as Figure 8 As shown, the interaction method provided in this embodiment mainly includes the following steps:
[0169] S51. The client receives a universal language name and universal language description information in response to an operation on the target document.
[0170] S52: The client sends the universal language name and universal language description information to the server.
[0171] S53: The server searches the universal language database using the universal language name.
[0172] S54: If the server fails to find the universal language name, the server updates the universal language library based on the universal language name and the universal language description information.
[0173] S55. The server returns the update result of the universal language library to the client.
[0174] The specific implementation of each of the above steps can refer to the description in the above embodiment, and will not be repeated in this embodiment.
[0175] Fig. 9 1 is a schematic diagram of a document processing device provided by an embodiment of the present disclosure. This embodiment is applicable to the case of managing common languages in documents. The device can be implemented by software and / or hardware. The document processing device is configured in a client.
[0176] like Fig. 9 As shown, the document processing device provided in this embodiment mainly includes: a content acquisition module 91, a request sending module 92 and a universal language updating module 93.
[0177] The content acquisition module 91 is used to acquire the edited content in response to receiving the edit operation of the first user on the target document;
[0178] A request sending module 92, configured to send a first data request to a server based on the edited content;
[0179] The universal language updating module 93 is configured to update the target content in the edited content to a universal language in response to receiving the universal language identifier sent by the server, wherein the universal language identifier is determined based on the edited content.
[0180] The document processing device provided by this embodiment obtains edited content in response to receiving an edit operation of a target document by a first user; sends a first data request to a server based on the edited content; and updates the target content in the edited content to the universal language in response to receiving a universal language identifier sent by the server, wherein the universal language identifier is determined based on the edited content. In the process of editing an online document, if it is recognized that the input edited content includes the universal language, the target content in the edited content is automatically updated to the universal language, thereby achieving effective management of the universal language in the online document.
[0181] In one embodiment, the universal language updating module 93 is specifically used to display a first interactive area, where the first interactive area is associated with the target content; in response to receiving a first operation of the first user on the first interactive area, the target content in the edited content is updated to a universal language.
[0182] In one embodiment, the universal language update module 93 is specifically used to display a second interaction area, wherein the second interaction area includes a universal language identifier associated with the target content; in response to receiving a second operation of the first user on the second interaction area, obtaining a universal language identifier corresponding to the target content; in response to receiving a third operation of the first user on the second interaction area, updating the target content in the edited content to a universal language corresponding to the universal language identifier.
[0183] In one embodiment, the universal language update module 93 is specifically used to display a third interaction area in response to there being multiple target contents, wherein the third interaction area includes universal language information associated with the multiple target contents; in response to receiving a fourth operation of the first user on the third interaction area, match the target content with a corresponding universal language identifier; in response to receiving a fifth operation of the first user on the third interaction area, update the target content in the edited content to a universal language corresponding to the matching universal language identifier.
[0184] In one embodiment, the universal language updating module 93 is specifically configured to establish an association relationship between the target content in the edited content and the universal language identifier; and store the association relationship in a mapping relationship table.
[0185] In one embodiment, the general language update module 93 is specifically used to change the display mode of the target content in the editing content from the first mode to the second mode in response to the current editing mode being the first mode; or, in response to the current editing mode being the third mode, change the display mode of the target content in the editing content from the third mode to the second mode associated with the third mode.
[0186] In one embodiment, the request sending module 92 is further configured to send a second data request to the server in response to a trigger operation on the updated target content, wherein the second data request includes a universal language identifier and an identifier of the target document;
[0187] Correspondingly, the device further includes: a description information display module, configured to display the universal language description information corresponding to the universal language identifier in response to receiving the second data sent by the server.
[0188] In one embodiment, the device further includes: a universal language display module, configured to display the universal language in the target document in response to an insert operation on the universal language.
[0189] In one embodiment, the universal language display module is specifically used to display a first operation entry in response to an insert operation on a universal language, wherein the first operation entry is used to obtain a target universal language; in response to obtaining the target universal language, display a second operation entry; and in response to receiving an operation instruction for the second operation entry, display the target universal language in the target document.
[0190] In one embodiment, the universal language display module is specifically configured to obtain target location information in response to an insertion operation on the universal language; and display the universal language in the target document based on the target location information.
[0191] In one embodiment, the apparatus further comprises: an adding operation response module, configured to receive the name of the universal language and description information of the universal language in response to an adding operation on the universal language;
[0192] The description information sending module is used to send the name of the universal language and the description information of the universal language to the server, so that the server creates a corresponding universal language record.
[0193] In one implementation, the target content is part or all of the edited content.
[0194] The document processing device provided in the embodiments of the present disclosure can execute the document processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the data processing method.
[0195] Fig.10 1 is a schematic diagram of a document processing device provided by an embodiment of the present disclosure. This embodiment is applicable to the case of managing common languages in documents. The device can be implemented by software and / or hardware. The document processing device is configured in a server.
[0196] like Fig.10 As shown, the document processing device provided by this embodiment mainly includes: a request receiving module 101, a universal language identifier obtaining module 102, and a universal language identifier sending module 103.
[0197] The request receiving module 101 is used to receive a first data request sent by a client, wherein the first data request includes editing content;
[0198] A universal language identifier acquisition module 102, configured to acquire a universal language identifier corresponding to the edited content based on the edited content;
[0199] The universal language identifier sending module 103 is used to send the universal language identifier corresponding to the edited content to the client.
[0200] In one embodiment, the universal language identifier acquisition module 102 is specifically used to perform word segmentation processing on the edited content to obtain multiple word units corresponding to the edited content; and determine the universal language identifier corresponding to each word unit by matching the word units in the universal language library.
[0201] In one embodiment, the universal language identifier acquisition module 102 specifically aggregates the data information corresponding to at least one of the edited contents to determine the total amount of data information after the aggregation process; when the total amount of data information meets a threshold condition, the universal language identifier corresponding to the edited content is acquired.
[0202] In one embodiment, the request receiving module 101 is further used for a second data request sent by the client; wherein the second data request includes a universal language identifier and an identifier of a target document;
[0203] Accordingly, the device further comprises: a query module, configured to query the universal language description information corresponding to the universal language identifier in the universal language library;
[0204] The data sending module is used to send second data to the client, where the second data includes universal language description information corresponding to the universal language identifier.
[0205] In one embodiment, the second data request further includes: a user identifier; and the device further includes:
[0206] The authority determination module is used to determine whether the user has the authority to the target document based on the user identifier and the target document identifier; in response to the user having the authority to the target document, perform an operation of querying the universal language description information corresponding to the universal language identifier in the universal language library.
[0207] In one embodiment, the device further comprises: a description information receiving module, configured to receive the name of the common language and the description information of the common language sent by the client;
[0208] A name query module, used for querying a universal language library based on the name of the universal language;
[0209] The language library updating module is used for updating the universal language library based on the name of the universal language and the description information of the universal language in response to failure to find the name of the universal language.
[0210] The document processing device provided in the embodiments of the present disclosure can execute the document processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the data processing method.
[0211] Reference below Fig.11 , which shows an electronic device (eg, Fig.11 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0212] like Fig.11As shown, the electronic device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 11011 to a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0213] Typically, the following devices may be connected to the I / O interface 1105: input devices 1108 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 11011 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1108 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1109. The communication devices 1109 may allow the electronic device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 1100 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0214] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1109, or installed from a storage device 1108, or installed from a ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0215] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0216] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0217] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0218] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0219] In response to receiving an editing operation of the target document by the first user, acquiring editing content;
[0220] Based on the edited content, sending a first data request to a server;
[0221] In response to receiving the universal language identifier sent by the server, the target content in the edited content is updated to a universal language, wherein the universal language identifier is determined based on the edited content.
[0222] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0223] Receiving a first data request sent by a client, wherein the first data request includes editing content;
[0224] Based on the edited content, obtaining a universal language identifier corresponding to the edited content;
[0225] The universal language identifier corresponding to the edited content is sent to the client.
[0226] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0227] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0228] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0229] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0230] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0231] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, including:
[0232] In response to receiving an editing operation of the target document by the first user, acquiring editing content;
[0233] Based on the edited content, sending a first data request to a server;
[0234] In response to receiving the universal language identifier sent by the server, the target content in the edited content is updated to a universal language, wherein the universal language identifier is determined based on the edited content.
[0235] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to the universal language includes:
[0236] Displaying a first interactive area, wherein the first interactive area is associated with the target content;
[0237] In response to receiving a first operation of the first user on the first interactive area, target content in the edited content is updated to a universal language.
[0238] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to the universal language includes:
[0239] displaying a second interactive area, the second interactive area including a universal language identifier associated with the target content;
[0240] In response to receiving a second operation of the first user on the second interactive area, acquiring a universal language identifier corresponding to the target content;
[0241] In response to receiving a third operation of the first user on the second interactive area, the target content in the edited content is updated to a universal language corresponding to the universal language identifier.
[0242] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein in response to receiving a universal language identifier sent by the server, updating the target content in the edited content to the universal language includes:
[0243] In response to the target content being multiple, displaying a third interaction area, the third interaction area including universal language information associated with the multiple target contents;
[0244] In response to receiving a fourth operation of the first user on the third interaction area, matching a corresponding universal language identifier for the target content;
[0245] In response to receiving a fifth operation of the first user on the third interaction area, the target content in the edited content is updated to a universal language corresponding to the matched universal language identifier.
[0246] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein updating the target content in the edited content to a universal language comprises:
[0247] Establishing an association relationship between the target content in the edited content and the universal language identifier;
[0248] The association relationship is stored in a mapping relationship table.
[0249] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein updating the target content in the edited content to a universal language comprises:
[0250] In response to the current editing mode being the first mode, changing the display mode of the target content in the editing content from the first mode to the second mode; or,
[0251] In response to the current editing mode being the third mode, the display mode of the target content in the editing content is changed from the third mode to a second mode associated with the third mode.
[0252] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0253] In response to a triggering operation on the updated target content, sending a second data request to the server, wherein the second data request includes a universal language identifier and an identifier of the target document;
[0254] In response to receiving the second data sent by the server, displaying universal language description information corresponding to the universal language identifier.
[0255] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0256] In response to the insert operation on the universal language, the universal language is displayed in the target document.
[0257] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein in response to an insertion operation of a universal language, displaying the universal language in the target document comprises:
[0258] In response to an insert operation on a universal language, a first operation entry is displayed, wherein the first operation entry is used to obtain a target universal language;
[0259] In response to acquiring the target universal language, displaying a second operation entry;
[0260] In response to receiving an operation instruction for the second operation entry, the target universal language is displayed in the target document.
[0261] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein in response to an insertion operation of a universal language, displaying the universal language in the target document comprises:
[0262] In response to an insert operation on the universal language, obtaining target location information;
[0263] Based on the target location information, the universal language is displayed in the target document.
[0264] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0265] In response to an add operation on a universal language, receiving a name of the universal language and description information of the universal language;
[0266] The name of the universal language and the description information of the universal language are sent to the server, so that the server creates a corresponding universal language record.
[0267] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the target content is part or all of the edited content.
[0268] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, including: receiving a first data request sent by a client, the first data request including editing content;
[0269] Based on the edited content, obtaining a universal language identifier corresponding to the edited content;
[0270] The universal language identifier corresponding to the edited content is sent to the client.
[0271] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the step of acquiring a universal language identifier corresponding to the edited content based on the edited content includes:
[0272] Perform word segmentation on the edited content to obtain a plurality of word units corresponding to the edited content;
[0273] The universal language identifier corresponding to each word-element is determined by matching the word-element in the universal language library.
[0274] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the step of acquiring a universal language identifier corresponding to the edited content based on the edited content includes:
[0275] Aggregate the data information corresponding to at least one of the edited contents to determine the total amount of the data information after the aggregation process;
[0276] When the total amount of data information meets a threshold condition, a universal language identifier corresponding to the edited content is obtained.
[0277] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0278] receiving a second data request sent by the client; wherein the second data request includes a universal language identifier and an identifier of a target document;
[0279] Querying the universal language description information corresponding to the universal language identifier in the universal language library;
[0280] The second data is sent to the client, where the second data includes universal language description information corresponding to the universal language identifier.
[0281] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the second data request further includes: a user identifier; the method further includes:
[0282] Based on the user identifier and the target document identifier, determining whether the user has authority over the target document;
[0283] In response to the user having the authority of the target document, an operation of searching a universal language library for universal language description information corresponding to the universal language identifier is performed.
[0284] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0285] Receive the name of the common language and the description information of the common language sent by the client;
[0286] Querying a universal language library based on the name of the universal language;
[0287] In response to not finding the name of the universal language, updating the universal language library based on the name of the universal language and the description information of the universal language.
[0288] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0289] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0290] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A document processing method, characterized in that: include: In response to receiving an editing operation of the target document by the first user, acquiring editing content; Based on the edited content, sending a first data request to a server; In response to receiving a universal language identifier sent by the server, updating the target content in the edited content to a universal language, the universal language identifier being determined based on the edited content; The universal language is used to describe the same concept or knowledge point without introducing other ambiguous languages, and each universal language corresponds to a unique universal language identifier; The method further comprises: In response to a trigger operation on the updated target content, a second data request is sent to the server, wherein the second data request includes a universal language identifier and an identifier of the target document, and the second data request is used by the client to request detailed interpretation information of the universal language corresponding to the target content from the server; In response to receiving the second data sent by the server, displaying universal language description information corresponding to the universal language identifier.
2. The method according to claim 1, characterized in that In response to receiving the universal language identifier sent by the server, updating the target content in the edited content to the universal language includes: Displaying a first interactive area, wherein the first interactive area is associated with the target content; In response to receiving a first operation of the first user on the first interactive area, target content in the edited content is updated to a universal language.
3. The method according to claim 1, characterized in that: In response to receiving the universal language identifier sent by the server, updating the target content in the edited content to the universal language includes: displaying a second interactive area, the second interactive area including a universal language identifier associated with the target content; In response to receiving a second operation of the first user on the second interactive area, acquiring a universal language identifier corresponding to the target content; In response to receiving a third operation of the first user on the second interactive area, the target content in the edited content is updated to a universal language corresponding to the universal language identifier.
4. The method according to claim 1, characterized in that: In response to receiving the universal language identifier sent by the server, updating the target content in the edited content to the universal language includes: In response to the target content being multiple, displaying a third interactive area, the third interactive area including universal language identifiers associated with the multiple target contents In response to receiving a fourth operation of the first user on the third interaction area, matching a corresponding universal language identifier for the target content; In response to receiving a fifth operation of the first user on the third interaction area, the target content in the edited content is updated to a universal language corresponding to the matched universal language identifier.
5. The method according to claim 1, characterized in that The updating of the target content in the edited content into a universal language comprises: Establishing an association relationship between the target content in the edited content and the universal language identifier; The association relationship is stored in a mapping relationship table.
6. The method according to claim 1, characterized in that The updating of the target content in the edited content into a universal language comprises: In response to the current editing mode being the first mode, changing the display mode of the target content in the editing content from the first mode to the second mode; or, In response to the current editing mode being the third mode, the display mode of the target content in the editing content is changed from the third mode to a second mode associated with the third mode.
7. The method according to claim 1, characterized in that The method further comprises: In response to the insert operation on the universal language, the universal language is displayed in the target document.
8. The method according to claim 7, characterized in that In response to the insertion operation of the universal language, displaying the universal language in the target document comprises: In response to an insert operation on a universal language, a first operation entry is displayed, wherein the first operation entry is used to obtain a target universal language; In response to acquiring the target universal language, displaying a second operation entry; In response to receiving an operation instruction for the second operation entry, the target universal language is displayed in the target document.
9. The method according to claim 7, characterized in that: In response to the insertion operation of the universal language, displaying the universal language in the target document comprises: In response to an insert operation on the universal language, obtaining target location information; Based on the target location information, the universal language is displayed in the target document.
10. The method according to claim 1, characterized in that The method further comprises: In response to an add operation on a universal language, receiving a name of the universal language and description information of the universal language; The name of the universal language and the description information of the universal language are sent to the server, so that the server creates a corresponding universal language record.
11. The method according to claim 1, characterized in that: The target content is part of or all of the edited content.
12. A document processing method, characterized in that: include: Receiving a first data request sent by a client, wherein the first data request includes editing content; Based on the edited content, obtaining a universal language identifier corresponding to the edited content; Sending the universal language identifier corresponding to the edited content to the client; Among them, the universal language is used to describe the same concept or knowledge point without introducing other ambiguous languages. Each universal language corresponds to a unique universal language identifier; The method further comprises: receiving a second data request sent by the client; wherein the second data request includes a universal language identifier and an identifier of a target document, and the second data request is used by the client to request detailed explanation information of the universal language corresponding to the target content from the server, wherein the target content is part of or all of the edited content; Querying the universal language description information corresponding to the universal language identifier in the universal language library; The second data is sent to the client, where the second data includes universal language description information corresponding to the universal language identifier.
13. The method according to claim 12, characterized in that The acquiring, based on the edited content, a universal language identifier corresponding to the edited content includes: Perform word segmentation on the edited content to obtain a plurality of word units corresponding to the edited content; The universal language identifier corresponding to each word-element is determined by matching the word-element in the universal language library.
14. The method according to claim 12, wherein the acquiring, based on the edited content, a universal language identifier corresponding to the edited content comprises: Aggregate the data information corresponding to at least one of the edited contents to determine the total amount of the data information after the aggregation process; When the total amount of data information meets a threshold condition, a universal language identifier corresponding to the edited content is obtained.
15. The method according to claim 12, characterized in that The second data request further includes: a user identifier; the method further includes: Determining whether the user has authority over the target document based on the user identifier and the identifier of the target document; In response to the user having the authority of the target document, an operation of searching a universal language library for universal language description information corresponding to the universal language identifier is performed.
16. The method according to claim 12, characterized in that The method further comprises: Receive the name of the common language and the description information of the common language sent by the client; Querying a universal language library based on the name of the universal language; In response to not finding the name of the universal language, updating the universal language library based on the name of the universal language and the description information of the universal language.
17. A document processing device, characterized in that: include: A content acquisition module, configured to acquire edited content in response to receiving an edit operation of a target document by a first user; A request sending module, used for sending a first data request to a server based on the edited content; a universal language updating module, configured to update the target content in the edited content to a universal language in response to receiving a universal language identifier sent by the server, wherein the universal language identifier is determined based on the edited content; The universal language is used to describe the same concept or knowledge point without introducing other ambiguous languages, and each universal language corresponds to a unique universal language identifier; The request sending module is also used for: In response to a trigger operation on the updated target content, a second data request is sent to the server, wherein the second data request includes a universal language identifier and an identifier of the target document, and the second data request is used by the client to request detailed interpretation information of the universal language corresponding to the target content from the server; Correspondingly, the device further includes: a description information display module, configured to display the universal language description information corresponding to the universal language identifier in response to receiving the second data sent by the server.
18. A document processing device, characterized in that: include: A request receiving module, configured to receive a first data request sent by a client, wherein the first data request includes editing content; A universal language identifier acquisition module, used to acquire a universal language identifier corresponding to the edited content based on the edited content; A universal language identifier sending module, used for sending the universal language identifier corresponding to the edited content to the client; Among them, the universal language is used to describe the same concept or knowledge point without introducing other ambiguous languages. Each universal language corresponds to a unique universal language identifier; The request receiving module is further used for: receiving a second data request sent by the client; wherein the second data request includes a universal language identifier and an identifier of a target document, and the second data request is used by the client to request detailed explanation information of the universal language corresponding to the target content from the server, wherein the target content is part of or all of the edited content; Accordingly, the device further comprises: a query module, configured to query the universal language description information corresponding to the universal language identifier in the universal language library; The data sending module is used to send second data to the client, where the second data includes universal language description information corresponding to the universal language identifier.
19. A document processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the document processing method according to any one of claims 1 to 16.
20. A computer storage medium, characterized in that The medium stores a computer program, and when the computer program is executed by a processor, the document processing method according to any one of claims 1 to 16 is implemented.
