Method, device, electronic device and storage medium for quickly exporting annotations from documents

By identifying annotations and selection copywriting in mobile terminal documents, a long image preview is generated and exported, which solves the inconvenience of mobile users when reading multiple scattered annotations, improves reading efficiency, and enables quick comparison of annotations and selection copywriting. and reading.

CN111832265BActive Publication Date: 2024-08-27ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910324893.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-22
Publication Date
2024-08-27
Estimated Expiration
2039-04-22

AI Technical Summary

Technical Problem

When reading a document on a mobile terminal, multiple scattered annotations are difficult to quickly compare and read, especially due to the small screen and limited field of view, which requires multiple adjustments to the document position, making it inconvenient to use.

Method used

By identifying the document in the mobile terminal, the corresponding relationship between the annotation and the selection copy is obtained, a preview of the long image is generated, and the preview is exported. The user can choose to share or save it, or write the annotation and the selection copy in sequence for export. in the document.

Benefits of technology

It realizes the rapid export of comments and corresponding selection copy in the document, which improves reading efficiency. Especially on the mobile terminal, users can export the document for focused reading and avoid page turning operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111832265B
    Figure CN111832265B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device, an electronic device and a storage medium for quickly exporting annotations in a document. The method comprises: identifying a document in a mobile terminal, obtaining annotations in the document and selected area text marked by the annotations; and correspondingly exporting the annotations and the selected area text according to the corresponding relationship between the annotations and the selected area text. In this way, the embodiment of the present invention can be used to quickly export annotations and selected area text in a document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of managing annotations in documents, and in particular to a method, device, electronic device and storage medium for quickly exporting annotations in documents. Background Art

[0002] At present, in order to help grasp the content of a document, difficult questions, reading insights, comments, etc. are usually marked by inserting annotations into the document content. For example, when students read independently, they mark the content, level, thoughts and feelings, expression methods, language characteristics, wonderful passages, and key sentences of the article with lines, symbols or concise texts based on thinking, analysis, comparison and induction. When reading again or reviewing, annotations can be used to quickly grasp the key points of the reading or understand its ideas, etc., to facilitate the grasp and understanding of the article.

[0003] However, when you need to view the annotations in the document and the corresponding selected text, you can only search and view them in the entire document. For mobile terminals, due to their small screens and limited field of view, if the document is long and multiple annotations are scattered, you need to adjust the document position several times to read all the annotations, which is not conducive to comparing the annotations or focusing on reading, and is not convenient to use. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for quickly exporting annotations from a document, so as to facilitate reading of annotations on a mobile terminal. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for quickly exporting annotations in a document, comprising:

[0006] Recognize the document in the mobile terminal to obtain the annotation in the document and the selected area copy marked by the annotation;

[0007] According to the correspondence between the annotations and the selected area text, the annotations and the selected area text are correspondingly exported.

[0008] Optionally, the exporting the annotation and the selection text according to the correspondence between the annotation and the selection text includes:

[0009] Set the title of the document to be exported;

[0010] According to the correspondence between the annotation and the selected area text, a preview image of the long image of the document to be exported is generated, wherein the preview image of the long image includes the title;

[0011] Export a preview image of the long image.

[0012] Optionally, after exporting the preview image of the long image, the method further includes:

[0013] Choose to share the long picture or save it locally.

[0014] Optionally, the exporting the annotation and the selection text according to the correspondence between the annotation and the selection text includes:

[0015] According to the correspondence between the annotation and the selected area copy, for any annotation, the annotation and the selected area copy corresponding to the annotation are bound as an export item;

[0016] Writing each of the export items into the document to be exported in sequence according to the order of the annotations or selected area texts in the export items in the document;

[0017] Export the document to be exported.

[0018] In a second aspect, the embodiment of the present application further discloses a device for quickly exporting annotations from a document, comprising:

[0019] A document recognition module, used to recognize the document in the mobile terminal, obtain the annotation in the document and the selected area copy marked by the annotation;

[0020] The annotation export module is used to export the annotation and the selected area copy according to the corresponding relationship between the annotation and the selected area copy.

[0021] Optionally, the annotation export module includes:

[0022] The title setting submodule is used to set the title of the document to be exported;

[0023] A preview image generation submodule, used to generate a preview image of the long image of the document to be exported according to the correspondence between the annotation and the selected area text, wherein the preview image of the long image includes the title;

[0024] The long picture export submodule is used to export the preview image of the long picture.

[0025] Optionally, the device for quickly exporting annotations from a document in the embodiment of the present application further includes:

[0026] The long picture sharing module is used to select whether to share the long picture or save it locally.

[0027] Optionally, the annotation export module includes:

[0028] The copy corresponding submodule binds any annotation and the selected area copy corresponding to the annotation into one export item according to the corresponding relationship between the annotation and the selected area copy;

[0029] A sequence submodule, which writes each of the export items into the document to be exported in sequence according to the order of the annotations or selected area texts in the export items in the document;

[0030] The document export submodule exports the document to be exported.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;

[0032] The memory is used to store computer programs;

[0033] The processor is used to implement the method for quickly exporting annotations from a document as described in any one of the first aspects above when executing the program stored in the memory.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for quickly exporting annotations from a document as described in any one of the first aspects above is implemented.

[0035] The method, device, electronic device and storage medium for quickly exporting annotations in a document provided in the embodiments of the present application obtain annotations and corresponding information by searching the document; import the annotations and corresponding information into the corresponding media text in order; export the annotations and corresponding information imported into the media text in a specified format to generate an exported document. In this way, the embodiment of the present invention can be used to quickly export the annotations and corresponding selected area text in the document. By exporting the document, the user can focus on reading the annotations and corresponding content in the document to improve reading efficiency. Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A first flow chart of a method for quickly exporting annotations from a document in an embodiment of the present application;

[0038] Figure 2aA possible example diagram before exporting of the method for quickly exporting annotations in a document in an embodiment of the present application;

[0039] Figure 2b A possible example diagram after exporting the method for quickly exporting annotations in a document in an embodiment of the present application;

[0040] Figure 3 A second flow chart of the method for quickly exporting annotations from a document in an embodiment of the present application;

[0041] Figure 4 A first structural diagram of a device for quickly exporting annotations from a document in an embodiment of the present application;

[0042] Figure 5 A second structural diagram of the device for quickly exporting annotations from a document in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] The embodiments of the present application disclose a method, device, electronic device, and storage medium for quickly exporting annotations from a document, which are described in detail below.

[0046] See also Figure 1 , Figure 1 A flowchart of a method for quickly exporting annotations from a document in an embodiment of the present application includes the following steps:

[0047] Step 101, identifying a document in a mobile terminal, obtaining annotations in the document and selected area text marked by the annotations.

[0048] The method for quickly exporting annotations from a document in an embodiment of the present application is directed to a document file in a mobile smart terminal device, and thus can be executed by a mobile smart terminal device. Specifically, the smart terminal device can be a smart phone.

[0049] Document recognition is to recognize the content part recorded in the document. In practical applications, it can be to recognize all the content recorded in the entire document, or it can be to recognize a specified part of the document, for example, to recognize the area selected by the mouse in the document to obtain the annotations in the selected area and the selected area text corresponding to the annotations, which will not be repeated here.

[0050] Step 102: according to the correspondence between the annotation and the selected area text, the annotation and the selected area text are correspondingly exported.

[0051] In this step, the annotations and the selected area text are exported in any format. In a possible implementation, the annotations and the corresponding selected area text in the document are exported by generating a long picture. Of course, in actual applications, they can also be exported by generating a text document or other formats according to actual conditions, which will not be repeated here.

[0052] The correspondence between the annotation and the selected text is a one-to-one correspondence between the annotation in the document in the mobile terminal and the selected text marked by the annotation. According to the correspondence between the annotation and the selected text, for any annotation, the annotation and the selected text corresponding to the annotation are bound as one export item for export. In a possible implementation manner, the correspondence between the annotation and the corresponding selected text is as follows: Figure 2a As shown in the figure, the annotation uses a metaphor to more vividly express that I was frightened. The corresponding selection text of the annotation is "I seemed to have encountered a thunderbolt, and everyone was shocked." The long picture of the exported document is as follows Figure 2b As shown, the corresponding relationship is derived according to the selection text on the top and the annotation corresponding to the selection text on the bottom. Of course, in actual applications, the selection text can also be replaced with the selection text on the bottom and the annotation corresponding to the selection text on the top, etc. This will not be repeated here.

[0053] By exporting according to the correspondence between the annotations and the selected area text, the user can view the selected area text marked by the annotations when reading the annotations in the exported document, thereby facilitating the understanding of the document.

[0054] It can be seen that by using the embodiment of the present application, the user can quickly export the annotations in the document. At the same time, by exporting the corresponding relationship between the annotations and the selected area copy, it can help the user to compare the annotations with the corresponding selected area copy, especially for mobile users with smaller screens, to read the key content marked in the document.

[0055] See also Figure 3 , Figure 3 Another flow chart of the method for quickly exporting annotations from a document in an embodiment of the present application includes the following steps:

[0056] Step 301, identifying a document in a mobile terminal, obtaining annotations in the document and selected area text marked by the annotations.

[0057] The annotations in the document and the selected text of the annotation marks. The annotations in the document are the annotations inserted by the user when marking the document. They can be characters, symbols or other forms. Among them, the selected text of the annotation mark can be a section of content in the document or a single character or symbol. For example Figure 2a As shown, the annotation is "Use metaphor to more vividly express that I was frightened", and the corresponding selection text of this annotation is "I seemed to have encountered a thunderbolt, and everyone was shocked."

[0058] Step 302, setting the title of the document to be exported.

[0059] The title of the document to be exported can be set in a variety of possible forms according to user needs. In a possible implementation, the user uses characters or symbols to set the title of the document to be exported, such as Figure 2b The title of the exported document is "Study Notes on Dawn Blossoms and Evening Shadows". Of course, you can choose not to set it and use the system default naming method ( Figure 2b The sentence "There is also a garden behind Sanwei Book House... expressing the beauty of childhood and the yearning for the past" is derived from other annotations and selection texts. The above other annotations and selection texts are not included in the Figure 2a ).

[0060] By allowing users to independently set export document titles, users can easily search, classify and manage the generated export documents.

[0061] Step 303: Generate a preview image of the long image of the document to be exported according to the correspondence between the annotation and the selected area text, wherein the preview image of the long image includes the title.

[0062] The preview image is a preview image of the corresponding exported document. In this step, the exported document is in the format of a long picture, and the corresponding preview image is a preview image of the long picture. In actual applications, if the exported document is in text or other formats, it can also correspond to a preview image of text or other formats, which will not be repeated here.

[0063] By generating a preview image, users can have a more intuitive visual impression of the exported document, preview the export effect, and confirm the correspondence and sequence between the annotations and the selected area text in the long image of the document to be exported.

[0064] Step 304: export a preview image of the long image.

[0065] In this step, exporting the preview of the long picture may include multiple forms. In a possible implementation, the user may choose to share the exported preview of the long picture through other programs, or of course, the generated preview of the long picture may be saved locally, or imported into other programs or documents, etc., which will not be described in detail here.

[0066] By exporting a preview of the long image, the user can read the exported annotations and corresponding selected area texts in one document, especially when there are many exported annotations and corresponding selected area texts, all the contents can be read without turning pages.

[0067] It can be seen that by applying the embodiments of the present application, users can quickly export the annotations in the document and the corresponding selected area texts according to the corresponding relationship in the document, and can check the export effect in advance during the export process. And by allowing users to independently set the title of the exported document, it is convenient for users to search, classify and manage the generated exported documents, and it is convenient for mobile users to read the annotations and corresponding selected area texts in the document. In particular, when there are many annotations and corresponding selected area texts, you can view all the contents without turning pages by generating a long picture.

[0068] See also Figure 4 , Figure 4 A structural diagram of a device for quickly exporting annotations from a document in an embodiment of the present application, comprising:

[0069] The document recognition module 401 is used to recognize the document in the mobile terminal and obtain the annotations in the document and the selected area copy marked by the annotations;

[0070] The annotation export module 402 is used to export the annotation and the selected area text according to the corresponding relationship between the annotation and the selected area text.

[0071] It can be seen that by using the embodiment of the present application, the user can quickly export the annotations in the document. At the same time, by exporting the corresponding relationship between the annotations and the selected area copy, it can help the user to compare the annotations with the corresponding selected area copy, especially for mobile users with smaller screens, to read the key content marked in the document.

[0072] See also Figure 5 , Figure 5 Another structural diagram of the device for quickly exporting annotations from a document in an embodiment of the present application includes:

[0073] The document recognition module 401 is used to recognize the document in the mobile terminal and obtain the annotations in the document and the selected area copy marked by the annotations;

[0074] The title setting submodule 502 is used to set the title of the document to be exported;

[0075] A preview image generation submodule 503 is used to generate a preview image of the long image of the document to be exported according to the correspondence between the annotation and the selected area text, wherein the preview image of the long image includes the title;

[0076] The long picture exporting submodule 504 is used to export a preview image of the long picture.

[0077] It can be seen that by applying the embodiments of the present application, users can quickly export the annotations in the document and the corresponding selected area texts according to the corresponding relationship in the document, and can check the export effect in advance during the export process. And by allowing users to independently set the title of the exported document, it is convenient for users to search, classify and manage the generated exported documents, and it is convenient for mobile users to read the annotations and corresponding selected area texts in the document. In particular, when there are many annotations and corresponding selected area texts, you can view all the contents without turning pages by generating a long picture.

[0078] The embodiment of the present application also provides an electronic device, including: a processor and a memory;

[0079] The above-mentioned memory is used to store computer programs.

[0080] When the processor is used to execute the computer program stored in the memory, the following steps are implemented:

[0081] Recognize the document in the mobile terminal to obtain the annotation in the document and the selected area copy marked by the annotation;

[0082] According to the correspondence between the annotations and the selected area text, the annotations and the selected area text are correspondingly exported.

[0083] Optional, see Figure 6 The electronic device of the embodiment of the present application further includes a communication interface 602 and a communication bus 604 , wherein the processor 601 , the communication interface 602 , and the memory 603 communicate with each other via the communication bus 604 .

[0084] Optionally, the exporting the annotation and the selection text according to the correspondence between the annotation and the selection text includes:

[0085] Set the title of the document to be exported;

[0086] According to the correspondence between the annotation and the selected area text, a preview image of the long image of the document to be exported is generated, wherein the preview image of the long image includes the title;

[0087] Export a preview image of the long image.

[0088] Optionally, when the processor is used to execute the computer program stored in the memory, the processor can also implement the following steps:

[0089] Choose to share the long picture or save it locally.

[0090] Optionally, the exporting the annotation and the selection text according to the correspondence between the annotation and the selection text includes:

[0091] According to the correspondence between the annotation and the selected area copy, for any annotation, the annotation and the selected area copy corresponding to the annotation are bound as an export item;

[0092] Writing each of the export items into the document to be exported in sequence according to the order of the annotations or selected area texts in the export items in the document;

[0093] Export the document to be exported.

[0094] It can be seen that by using the embodiment of the present application, the user can quickly export the annotations in the document. At the same time, by exporting the corresponding relationship between the annotations and the selected area copy, it can help the user to compare the annotations with the corresponding selected area copy, especially for mobile users with smaller screens, to read the key content marked in the document.

[0095] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0096] The communication interface is used for communication between the above electronic device and other devices.

[0097] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0098] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0099] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0100] Recognize the document in the mobile terminal to obtain the annotation in the document and the selected area copy marked by the annotation;

[0101] According to the correspondence between the annotations and the selected area text, the annotations and the selected area text are correspondingly exported.

[0102] Optionally, when the above computer program is executed by a processor, it can also implement a method for quickly exporting annotations from any of the above documents.

[0103] It can be seen that by using the embodiment of the present application, the user can quickly export the annotations in the document. At the same time, by exporting the corresponding relationship between the annotations and the selected area copy, it can help the user to compare the annotations with the corresponding selected area copy, especially for mobile users with smaller screens, to read the key content marked in the document.

[0104] It should be noted that, in this article, the technical features in each optional solution can be combined to form a solution as long as there is no contradiction, and these solutions are all within the scope disclosed in this application. Relational terms such as first and second, etc. are only used to distinguish an entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only include those elements, but also include other elements that are not clearly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.

[0105] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic device, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0106] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for quickly exporting annotations from a document, characterized in that: include: Identify the selected area in the document of the mobile terminal, and obtain the annotation in the selected area and the selected area text marked by the annotation; According to the correspondence between the annotation and the selected area copy, for any annotation, the annotation and the selected area copy corresponding to the annotation are bound as an export item, and the annotation and the selected area copy are correspondingly exported; The step of correspondingly exporting the annotation and the selection text according to the correspondence between the annotation and the selection text includes: Set the title of the document to be exported, where the format of the document to be exported is a long picture; Generating a preview image of the long image according to the correspondence between the annotation and the selected area text, wherein the preview image of the long image includes the title; Export a preview image of the long image.

2. The method according to claim 1, characterized in that After exporting the preview image of the long image, the method further includes: Choose to share the long picture or save it locally.

3. The method according to claim 1, characterized in that The corresponding exporting of the annotation and the selected area text includes: Writing each of the export items into the document to be exported in sequence according to the order of the annotations or selected area texts in the export items in the document; Export the document to be exported.

4. A device for quickly exporting annotations from a document, characterized in that: include: A document recognition module, used to recognize a selected area in a document of a mobile terminal, and obtain annotations in the selected area and selected area text marked by the annotations; An annotation export module is used for binding the annotation and the selected area copy corresponding to any annotation into one export item according to the correspondence between the annotation and the selected area copy, and correspondingly exporting the annotation and the selected area copy; The annotation export module includes: A title setting submodule, used to set the title of the document to be exported, wherein the format of the document to be exported is a long picture; A preview image generation submodule, used to generate a preview image of the long image according to the correspondence between the annotation and the selected area text, wherein the preview image of the long image includes the title; The long picture export submodule is used to export the preview image of the long picture.

5. The device according to claim 4, characterized in that The device also includes: The long picture sharing module is used to select whether to share the long picture or save it locally.

6. The device according to claim 4, characterized in that The annotation export module includes: A sequence submodule, which writes each of the export items into the document to be exported in sequence according to the order of the annotations or selected area texts in the export items in the document; The document export submodule exports the document to be exported.

7. An electronic device, characterized in that: including a processor and a memory; The memory is used to store computer programs; The processor is used to implement the method for quickly exporting annotations from a document as described in any one of claims 1-3 when executing the program stored in the memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for quickly exporting annotations from a document described in any one of claims 1 to 3 is implemented.