Document processing method, device, equipment and medium
By displaying the source document information in the target document, it solves the problem of users being unable to trace the content of the document, realizes the intuitive display of reference relationships between content blocks, and improves the user experience.
Patent Information
- Application Number
- CN202110227791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-03-01
AI Technical Summary
When copying document content, it is difficult for users to trace the source of content blocks in the target document, resulting in inconvenience.
By receiving the insertion instruction of the content block in the first document and displaying the information of the second document and the information of the content block in the target document, the user can intuitively understand the reference relationship between the content block and the source document.
It improves user convenience, enables users to easily identify the source of content blocks, and improves the intuitiveness and efficiency of document processing.
Smart Images

Figure CN114997115B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a document processing method, apparatus, device and medium. Background Art
[0002] With the continuous development of science and technology, the use of electronic documents is becoming more and more widespread. When a user copies part of the content in one document to another, the following operations can be performed: the user opens the source document, finds the required part of the content, and then performs the copy operation; then opens the target document, and performs the paste operation in the target document, thereby completing the function of adding the part of the content to the target document. However, it is difficult for users to trace the source of the copied content in the target document.
[0003] Public Content
[0004] The embodiments of the present disclosure provide a document processing method, apparatus, device and medium, which enable a user to intuitively understand the reference relationship between a content block and a source document in a first document.
[0005] In a first aspect, an embodiment of the present disclosure provides a document processing method, including:
[0006] Receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document;
[0007] The information of the second document and the information of the content block are displayed in the first document.
[0008] In a second aspect, an embodiment of the present disclosure further provides a document processing device, including:
[0009] A receiving module, configured to receive an insertion instruction of a content block in a first document, wherein the content block belongs to a second document;
[0010] The display module is used to display the information of the second document and the information of the content block in the first document.
[0011] In a third aspect, an embodiment of the present disclosure further provides a document processing device, including:
[0012] one or more processors;
[0013] A memory for storing one or more programs;
[0014] 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.
[0015] In a fourth 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.
[0016] The document processing method, apparatus, device and medium provided by the embodiments of the present disclosure include: receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document; and displaying information of the second document and information of the content block in the first document. The technical solution of the embodiments of the present disclosure displays information of the second document and information of the content block in the first document after receiving an insertion instruction of the content block in the first document, so that the user can intuitively understand the reference relationship between the content block and the source document in the first document, thereby improving the user's convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 is a flowchart of a document processing method provided by an embodiment of the present disclosure;
[0019] Figure 2 is a flowchart of another document processing method provided by an embodiment of the present disclosure;
[0020] Figure 3 It is a schematic diagram of displaying information of a content block and information of a second document provided by an embodiment of the present disclosure;
[0021] Figure 4 is a flowchart of another document processing method provided by an embodiment of the present disclosure;
[0022] Figure 5 is a structural schematic diagram of a document processing device provided by an embodiment of the present disclosure;
[0023] Figure 6 It is a structural schematic diagram of a document processing device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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".
[0029] 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.
[0030] In one embodiment, Figure 1 1 is a flowchart of a document processing method provided by an embodiment of the present disclosure. This embodiment is applicable to the case where a reference relationship between a content block and a source document is intuitively displayed in a first document. 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 to a document processing device. Exemplarily, the document processing device can be a computer device.
[0031] It should be noted that the document processing method provided in this embodiment can be used on a computer device, and can be considered to be specifically executed by a document processing device integrated on the computer device, wherein the computer device 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.
[0032] like Figure 1 As shown, the document processing method provided in this embodiment mainly includes steps S110 and S120.
[0033] S110: Receive an instruction to insert a content block in a first document.
[0034] Among them, the content block belongs to the second document. In an embodiment, the first document may be an editable document displayed on the display interface of the document processing device. In the actual operation process, the type of the first document is not limited. For example, the first document may be any editable document such as a Word document, a txt document, an Excel document, a PDF document, etc. Among them, the content block is a piece of data with independent collaborative and recordable capabilities. The definition of the content block can be pre-set by the online document software, or it can be customized by the user. For example, content blocks can be distinguished based on the content type, such as text, pictures, tables, etc. as different types of content; content blocks can also be distinguished based on preset delimiters, such as "carriage return", "paragraph delimiter", "section break", etc.; the separation boundary of the content block can also be set by user operation.
[0035] The content block belongs to the second document. It can be understood that the content block in the second document is referenced in the first document. In an embodiment, the content block in the second document is inserted into the first document. Of course, in the actual operation process, it is determined that the user has the reference authority (reading authority and sharing authority) and editing authority for the source document of the content block before the content block in the second document can be inserted into the first document.
[0036] S120: Display the information of the second document and the information of the content block in the first document.
[0037] In an embodiment, the information of the second document includes one of the following: a title of the second document; a tag of the second document; information of a content block in the second document. In an embodiment, the title of the second document refers to the subject name of the second document; the tag of the second document may be a keyword or description information extracted based on the content in the second document. Of course, the information of the second document may also be directly represented by the information of one of the content blocks in the second document.
[0038] In an embodiment, after receiving an insert instruction for a content block in a first document, information of the second document and information of the content block are displayed in the first document. It should be noted that displaying information of the second document in a first document can be understood as displaying a reference source of the content block (i.e., information of the second document) in the first document. Correspondingly, displaying information of the content block in a first document can be understood as displaying the referenced content block in the first document.
[0039] The technical solution of this embodiment, after receiving the insertion instruction of the content block in the first document, displays the information of the second document and the information of the content block in the first document, so that the user can intuitively understand the reference relationship between the content block and the source document in the first document, thereby improving the user's convenience.
[0040] Figure 2 is a flowchart of another document processing method provided by an embodiment of the present disclosure. This embodiment further illustrates the document processing method based on the above embodiment. Figure 2 As shown, the document processing method in this embodiment includes the following steps:
[0041] S210: Receive an instruction to insert a content block in a first document.
[0042] The content block belongs to the second document.
[0043] S220: Display the information of the second document and the information of the content block in the first document.
[0044] In one embodiment, S220 specifically includes: displaying the information of the second document in the content block of the first document or in the associated area of the content block. In the first document, by displaying the information of the second document and the information of the content block in the content block of the first document or in the associated area of the content block, it is reflected that the content block is not the original content in the first document, but is quoted from other documents (for example, the second document). Accordingly, while displaying the information of the content block, the quoted source of the content block is displayed. Among them, the associated area of the content block refers to the surrounding area of the content block.
[0045] In one embodiment, S220 specifically includes: displaying the information of the content block and / or the information of the second document in the first display mode. In the first document, the information of the content block is displayed in the first display module to reflect that the content block is not the original content in the first document, but is quoted from other documents (for example, the second document). While displaying the information of the content block, the information of the second document can also be displayed to show the reference source of the content block. Exemplarily, Figure 3 1 is a schematic diagram showing information of a content block and information of a second document provided by an embodiment of the present disclosure. Figure 3As shown, the content block is displayed as a reference content in the form of a vertical line on the left, not the original content in the first document. At the same time, "FromXXX" is displayed above the content block as the reference source of the content block, so that users can intuitively see the reference source of the content block.
[0046] S230: Respond to a triggering operation on the information of the content block or the information of the second document.
[0047] In an embodiment, the triggering operation on the information of the content block or the information of the second document refers to a click operation on the information of the content block or the information of the second document; it may also be a focus operation on the information of the content block or the information of the second document.
[0048] S240: Locate and display the content block information or the information of the second document in the second document.
[0049] In an embodiment, after the receiving end triggers the operation on the information of the content block or the information of the second document, the second document pops up on the display interface of the first document, and the content block information is positioned on the content block information or the information of the second document at the positioning mark. In the actual operation process, the mouse cursor can be positioned on the content block information of the second document, or directly positioned on the information of the second document. It can be understood that the information of the second document and the information of the content block can interact, that is, after receiving the click operation on the information of the second document or the information of the content block, the second document is automatically opened and jumps to the position where the information of the content block or the information of the second document is located in the second document.
[0050] Figure 4 1 is a flowchart of another document processing method provided by an embodiment of the present disclosure. This embodiment further illustrates the document processing method based on the above embodiment. Figure 4 As shown, the document processing method in this embodiment includes the following steps:
[0051] S310: Receive an instruction to insert a content block in a first document.
[0052] The content block belongs to the second document.
[0053] S320: Obtain rendering mode options corresponding to the content block.
[0054] In an embodiment, after receiving the insertion instruction of the content block in the first document, the document processing device automatically obtains all rendering options corresponding to the content block from its own database. It can be understood that all rendering options corresponding to each content block are pre-stored in the document processing device. Of course, when the first document is an online document, all rendering options corresponding to the content block can also be directly obtained from the server corresponding to the document processing device. It should be noted here that the rendering options contained in each content block can be the same or different, and there is no limitation on this, that is, the rendering options corresponding to the content block are related to the type or form of the content block, and can be adjusted according to the type or form of the content block. It can be understood that the rendering options contained in each content block are the same, the number of rendering options can be the same, the rendering methods corresponding to the rendering options can be the same, the number of rendering options can be the same, and the rendering methods corresponding to each rendering option are the same. It should be noted that each rendering option corresponds to a rendering method, that is, there is a one-to-one correspondence between the rendering method option and the rendering method.
[0055] S330: Display the rendering mode options in the first interactive area.
[0056] It can be understood that the first interactive area is used to carry and display the rendering mode options of the content block. In an embodiment, after all rendering mode options corresponding to the content block are obtained, the rendering mode options are displayed in the first interactive area according to the preset priority order, so that the user can select the corresponding rendering mode. It can be understood that the priority set for the rendering mode option is related to the document software used by the first document, and will not be described one by one here.
[0057] S340: In response to an instruction for selecting a rendering method for the information of the second document and the information of the content block, render the information of the second document and the information of the content block into the first document for display.
[0058] In an embodiment, after the first interactive area pops up in the first document, the user clicks on one of the rendering mode options in the first interactive area according to his or her own needs, and the rendering mode option clicked by the user is highlighted to distinguish the rendering mode option selected by the user from the rendering mode options that are not selected. Among them, the selection instruction refers to the user's operation on the rendering mode option. Exemplarily, the selection operation corresponding to the selection instruction may include: click operation, switch operation. For example, in the actual operation process, the user can switch the rendering mode options through the direction keys on the keyboard (such as the up key, the down key, the left key or the right key); or directly move the cursor to the rendering mode option that the user wants to select with the mouse, and use the mouse to click the rendering mode corresponding to the rendering mode option.
[0059] In one embodiment, rendering the information of the second document and the information of the content block into the first document for display includes: in response to selecting a first rendering mode, rendering the information of the second document and the information of the content block in a first display mode, wherein in the first display mode, the information of the second document and the information of the content block are different from the display style of the content in the first document; in response to selecting a second rendering mode, rendering the information of the second document and the information of the content block in a second display mode, wherein in the second display mode, the information of the second document and the information of the content block are the same as the display style of the content in the first document.
[0060] The first display mode refers to a special form, that is, information used to distinguish the information of the second document from the content block, which is different from the display style of the content in the first document, for example Figure 3 As shown, a vertical line is added to the left of the information in the content block. The second display module refers to the same display mode as the first document, that is, in the second display mode, the information of the second document and the information of the content block are displayed in the same style as the content in the first document.
[0061] In one embodiment, after displaying the information of the second document and the information of the content block in the first document, the method further includes: in response to triggering an operation on a preset component associated with the content block, acquiring and displaying the information of the document into which the content block has been inserted.
[0062] Among them, the preset component trigger operation is used to obtain the information of the document associated with the content block. Of course, the information of the document associated with the content block can be the source document of the content block or the referenced document of the content block. In the actual operation process, the referenced document of each content block can be one or more, and there is no limitation on this. In an embodiment, the acquisition channel of all referenced documents of the content block may include: a server or a local database. It can be understood that when the application software where the first document is located is online, all referenced documents of the content block in the first document can be directly obtained from the server; when the application software where the first document is located is offline, all referenced documents of the content block in the first document can be directly obtained from the local database.
[0063] After obtaining the information of the document inserted into the content block, the document name and document identifier of the associated document of the first document can be displayed on the interface. Of course, in actual operation, the referenced documents may have the same document name. In order to distinguish the referenced documents, the referenced document identifier can be used to distinguish them.
[0064] Figure 5This is a schematic diagram of the structure of a document processing device provided by an embodiment of the present disclosure. This embodiment is applicable to the case where the reference source corresponding to the content block is intuitively displayed in a first document. The document processing device can be implemented by software and / or hardware. The document processing device is integrated into a computer device.
[0065] like Figure 5 As shown, the document processing device provided in this embodiment mainly includes: a receiving module 410 and a first display module 420 .
[0066] The receiving module 410 is used to receive an insertion instruction of a content block in the first document, wherein the content block belongs to the second document;
[0067] The first display module 420 is used to display the information of the second document and the information of the content block in the first document.
[0068] The document processing device provided by the embodiment of the present disclosure is used to perform the following operations: receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document; and displaying information of the second document and information of the content block in the first document. The technical solution of the embodiment of the present disclosure displays information of the second document and information of the content block in the first document after receiving an insertion instruction of the content block in the first document, so that the user can intuitively understand the reference relationship between the content block and the source document in the first document, thereby improving the user's convenience.
[0069] On the basis of the above embodiment, the display module is specifically used to: display the information of the second document in the content block of the first document or in the associated area of the content block.
[0070] On the basis of the above embodiment, the display module is specifically configured to: display the information of the content block and / or the information of the second document in the first display mode.
[0071] Based on the above embodiment, the information of the second document includes one of the following: the title of the second document; the tag of the second document; and the information of a content block in the second document.
[0072] Based on the above embodiment, the document processing device further includes:
[0073] The second display module is used to display the second document in response to a triggering operation on the information of the content block or the information of the second document.
[0074] Based on the above embodiment, the second document package is displayed, which is specifically used for:
[0075] The content block information or the information of the second document is located and displayed in the second document.
[0076] Based on the above embodiment, the document processing device further includes:
[0077] A first acquisition module, configured to acquire a rendering mode option corresponding to the content block after receiving an insertion instruction of the content block in the first document;
[0078] The third display module is used to display the rendering mode options in the first interactive area.
[0079] Based on the above embodiment, the first display module is specifically used to render the second document information and the content block information into the first document for display in response to a selection instruction of a rendering method for the second document information and the content block information.
[0080] Based on the above embodiment, rendering the information of the second document and the information of the content block into the first document for display includes:
[0081] In response to selecting the first rendering mode, rendering the information of the second document and the information of the content block in the first display mode, wherein in the first display mode, the information of the second document and the information of the content block are displayed in a different manner from the content in the first document;
[0082] In response to selecting the second rendering mode, the information of the second document and the information of the content block are rendered in the second display mode, wherein in the second display mode, the information of the second document and the information of the content block are displayed in the same style as the content in the first document.
[0083] Based on the above embodiment, the document processing device further includes:
[0084] The second acquisition module is used to acquire and display the information of the document into which the content block has been inserted in response to a trigger operation on a preset component associated with the content block after displaying the information of the second document and the information of the content block in the first document.
[0085] Based on the above embodiment, the document information includes one of the following: document name, document identification.
[0086] The document processing device provided in this embodiment 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 document processing method.
[0087] Figure 6 Schematic diagram of a document processing device provided by an embodiment of the present disclosure. Figure 6 , which shows a document processing device (eg, Figure 6The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop 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. Figure 6 The document processing 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.
[0088] like Figure 6 As shown, the document processing device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 507 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the document processing device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0089] Typically, the following devices may be connected to the I / O interface 505: input devices 508 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication devices 509 may allow the document processing device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The document processing device 500 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.
[0090] 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 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0091] 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.
[0092] 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.
[0093] The computer-readable medium may be included in the document processing device; or may exist independently without being assembled into the document processing device.
[0094] The computer-readable medium carries one or more programs. When the one or more programs are executed by the document processing device, the document processing device:
[0095] Receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document;
[0096] The information of the second document and the information of the content block are displayed in the first document.
[0097] 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).
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, including:
[0103] Receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document;
[0104] The information of the second document and the information of the content block are displayed in the first document.
[0105] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, wherein displaying information of the second document and information of the content block in the first document includes:
[0106] The information of the second document is displayed in the content block of the first document or in an associated area of the content block.
[0107] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, wherein displaying information of the second document and information of the content block in the first document includes:
[0108] The information of the content block and / or the information of the second document are displayed in a first display mode.
[0109] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the information of the second document includes one of the following: a title of the second document; a tag of the second document; information of a content block in the second document.
[0110] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, further comprising:
[0111] In response to a triggering operation on the information of the content block or the information of the second document, the second document is displayed.
[0112] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, wherein displaying the second document includes:
[0113] The content block information or the information of the second document is located and displayed in the second document.
[0114] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, which, after receiving an insertion instruction of a content block in the first document, further comprises: obtaining a rendering mode option corresponding to the content block;
[0115] The rendering mode option is displayed in the first interactive area.
[0116] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, wherein displaying information of the second document and information of the content block in the first document includes:
[0117] In response to an instruction for selecting a rendering method for the information of the second document and the information of the content block, the information of the second document and the information of the content block are rendered into the first document for display.
[0118] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, wherein rendering the information of the second document and the information of the content block into the first document for display includes:
[0119] In response to selecting the first rendering mode, rendering the information of the second document and the information of the content block in a first display mode, wherein in the first display mode, the information of the second document and the information of the content block are displayed in a different manner from the content in the first document;
[0120] In response to selecting a second rendering mode, the information of the second document and the information of the content block are rendered in a second display mode, wherein in the second display mode, the information of the second document and the information of the content block are displayed in the same style as the content in the first document.
[0121] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device, and medium are provided, which, after displaying information of the second document and information of the content block in the first document, further comprises:
[0122] In response to triggering an operation on a preset component associated with the content block, information of a document that has been inserted into the content block is acquired and displayed.
[0123] According to one or more embodiments of the present disclosure, a document processing method, apparatus, device and medium are provided, wherein the document information includes one of the following: a document name and a document identifier.
[0124] 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.
[0125] 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.
[0126] 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, It is characterized in that include: Receiving an insertion instruction of a content block in a first document, wherein the content block belongs to a second document; Get the rendering mode option corresponding to the content block; Displaying the rendering mode option in the first interactive area; displaying information of the second document and information of the content block in the first document; After displaying the information of the second document and the information of the content block in the first document, the method further includes: In response to a preset component trigger operation associated with the content block, obtaining and displaying information of a document that has been inserted into the content block; wherein the preset component trigger operation is used to obtain information of a document associated with the content block, and the information of the document that has been inserted into the content block includes a referenced document of the content block; The displaying the information of the second document and the information of the content block in the first document includes: In response to a selection instruction for rendering the information of the second document and the information of the content block, the information of the second document and the information of the content block are rendered into the first document for display; the selection instruction is an operation instruction of the user for the rendering method option, and the selection operations corresponding to the selection instruction include: click operation and switch operation.
2. The method according to claim 1, It is characterized in that The displaying the information of the second document and the information of the content block in the first document includes: The information of the second document is displayed in the content block of the first document or in an associated area of the content block.
3. The method according to claim 1, It is characterized in that The displaying the information of the second document and the information of the content block in the first document includes: The information of the content block and / or the information of the second document are displayed in a first display mode.
4. The method according to claim 1, It is characterized in that The information of the second document includes one of the following: a title of the second document; a tag of the second document; and information of a content block in the second document.
5. The method according to claim 1, It is characterized in that The method further comprises: In response to a triggering operation on the information of the content block or the information of the second document, the second document is displayed.
6. The method according to claim 5, It is characterized in that The displaying the second document comprises: The content block information or the information of the second document is located and displayed in the second document.
7. The method according to claim 1, It is characterized in that The rendering the information of the second document and the information of the content block into the first document for display includes: In response to selecting the first rendering mode, rendering the information of the second document and the information of the content block in a first display mode, wherein in the first display mode, the information of the second document and the information of the content block are displayed in a different manner from the content in the first document; In response to selecting a second rendering mode, the information of the second document and the information of the content block are rendered in a second display mode, wherein in the second display mode, the information of the second document and the information of the content block are displayed in the same style as the content in the first document.
8. The method according to claim 1, It is characterized in that The document information includes one of the following: document name, document identification.
9. A document processing device, It is characterized in that include: A receiving module, configured to receive an insertion instruction of a content block in a first document, wherein the content block belongs to a second document; A display module, configured to display information of the second document and information of the content block in the first document; The document processing device further includes: a second acquisition module, configured to, after displaying the information of the second document and the information of the content block in the first document, acquire and display the information of the document inserted into the content block in response to a preset component trigger operation associated with the content block; wherein the preset component trigger operation is used to acquire the information of the document associated with the content block, and the information of the document inserted into the content block includes a referenced document of the content block; The document processing device further includes: A first acquisition module, configured to acquire a rendering mode option corresponding to the content block after receiving an insertion instruction of the content block in the first document; A third display module, used for displaying the rendering mode option in the first interaction area; The display module is specifically used to: in response to a selection instruction for rendering the information of the second document and the information of the content block, render the information of the second document and the information of the content block into the first document for display; the selection instruction is a user's operation instruction for the rendering method option, and the selection operation corresponding to the selection instruction includes: a click operation and a switch operation.
10. A document processing device, It is 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 8.
11. A computer storage medium, It is 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 8 is implemented.
Citation Information
Patent Citations
Document content sharing method and device, terminal and storage medium
CN111078655A
Automatic document citations by utilizing copied content for candidate sources
US9703763B1
