Document processing method, device, server and storage medium

By generating the current and original mapping relationship tables, the problem of difficulty in determining the mark position after the e-book content is modified is solved, accurate mark display is achieved when the e-book content changes, and the user experience is improved.

CN111753505BActive Publication Date: 2024-10-22BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201910941296.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-30
Publication Date
2024-10-22
Estimated Expiration
2039-09-30

AI Technical Summary

Technical Problem

In the existing technology, when the content of the e-book is modified, the positions of user marks and underlines cannot be accurately determined, resulting in poor user experience.

Method used

After detecting document changes, the current mapping relationship table and the original mapping relationship table are generated to determine the target display position of the target mark in the modified document and ensure that the mark is displayed in the correct position.

Benefits of technology

It realizes the quick and accurate determination of the mark position when the e-book content changes, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111753505B_ABST
    Figure CN111753505B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a document processing method, device, server and storage medium. The method includes: when detecting that the original document is changed, obtaining the changed document as the current document, and determining the current mapping relationship table corresponding to the current document according to the content of the current document; determining the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the original mapping relationship table includes the paragraph content feature values ​​corresponding to each paragraph in the original document, and the original positioning association information of the target mark in the original document. The technical solution of the embodiment of the present invention solves the problem in the prior art that when the content of the document changes, the specific position of the mark in the modified document cannot be determined only according to the paragraph sequence number and character offset to which the mark belongs, and realizes the technical effect of efficiently and conveniently determining the specific position of the mark in the modified document and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a document processing method, device, server and storage medium. Background Art

[0002] In the field of e-books, the mainstream formats are streaming documents (ePub format) and layout documents (PDF). Layout documents cannot be applied to layout formats of various resolutions, so their versatility is poor, while streaming documents can adapt to layout methods of various resolutions, so they have become a more popular e-book format.

[0003] The streaming document is mainly composed of paragraphs. During the use of the electronic book, the user can draw lines and mark the electronic book. The server corresponding to the electronic book can record the paragraphs drawn and the offset characters of the content corresponding to the mark in the paragraph. When the user consults the electronic book, the position and content corresponding to the line and / or mark can be determined according to the paragraph corresponding to the mark and the offset characters.

[0004] However, in the actual application process, although the e-book has been published, some errors are found in the e-book, and the content of the e-book needs to be modified. Optionally, paragraphs may be added and / or deleted, the position of pictures in the document may be modified, typos in the document may be modified, content may be added or deleted in each paragraph, and the above modifications may cause the content underlined and / or marked by the user to shift.

[0005] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0006] In the prior art, the position of the content marked and / or underlined by the user is determined based on the paragraph number of the marked or underlined content in the document and the number of offset characters in the paragraph. Once the paragraph or content of the e-book changes, it is impossible to accurately locate the position of the underline or mark in the modified document based only on the paragraph number and the number of offset characters, causing inconvenience to the user and poor user experience. Summary of the invention

[0007] The present invention provides a document processing method, device, server and storage medium to achieve accurate and efficient determination of the position of a mark in a modified document and display it at the corresponding position, thereby improving the technical effect of user experience.

[0008] In a first aspect, an embodiment of the present invention provides a document processing method, the method comprising:

[0009] When a change in the original document is detected, the changed document is obtained as the current document, and a current mapping relationship table corresponding to the current document is determined according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document;

[0010] Determine a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table;

[0011] Among them, the target mark is a mark made by the user when displaying the original document; the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and the original positioning association information of the target mark in the original document.

[0012] In a second aspect, an embodiment of the present invention further provides a document processing device, the device comprising:

[0013] A current mapping relationship table determination module is used to, when detecting a change in the original document, obtain the changed document as the current document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document;

[0014] A target display position determination module, used to determine a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table;

[0015] Among them, the target mark is a mark made by the user when displaying the original document; the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and the original positioning association information of the target mark in the original document.

[0016] In a third aspect, an embodiment of the present invention further provides a server, the server comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] 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 invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a document processing method as described in any one of the embodiments of the present invention.

[0021] The technical solution of the embodiment of the present invention is to obtain the changed document as the current document when detecting the change of the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; and determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, so as to solve the problem that in the prior art, when the content of the original document is modified, the position of the original mark in the modified document is determined, only by the original paragraph where the mark is located and the number of offset characters of the mark content in the original paragraph, the position of the mark in the modified document cannot be accurately determined, thereby causing the user to be unable to view the mark made when reading, resulting in a poor user experience. The technical problem is realized that when the content of the original document changes, the target position of the original mark in the modified document can be quickly determined, and the mark is displayed at the target position, thereby improving the technical effect of user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A schematic diagram of a document processing method provided in Embodiment 1 of the present invention;

[0024] Figure 2 Another flowchart of a document processing method provided by the second embodiment of the present invention;

[0025] Figure 3 Another flowchart of a document processing method provided by Embodiment 3 of the present invention;

[0026] Figure 4 A schematic diagram of the structure of various functional components corresponding to the document processing method provided in the third embodiment of the present invention;

[0027] Figure 5 A schematic diagram of the structure of a document processing device provided in Embodiment 4 of the present invention;

[0028] Figure 6A schematic diagram of a server structure provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] Embodiment 1

[0031] Figure 1 A flowchart of a document processing method provided in Embodiment 1 of the present invention is provided. This embodiment is applicable to the case where an original document is revised and the target display position of the mark made by the target user in the original document in the revised document is determined. The method can be executed by a document processing device, which can be implemented in the form of software and / or hardware.

[0032] like Figure 1 The method of this embodiment includes:

[0033] S110: When it is detected that the original document is changed, the changed document is obtained as the current document, and a current mapping relationship table corresponding to the current document is determined according to the content of the current document.

[0034] Among them, the original document can be understood as the document initially displayed on the display interface. The user can mark the original document and select the content of interest. If there is an error in the content of the original document, the backstage staff can revise the content of the original document. The original document change refers to the revision of the original document. The revision of the original document may include: adding paragraphs, deleting paragraphs, adding new content to each paragraph, or deleting one or more of the content in the original document. The revised original document is used as the current document, that is, the content of the current document can be different from the content of the original document. Optionally, the current document includes the paragraphs added in the original document, or does not include the paragraphs deleted in the original document. For example, the original document includes ten paragraphs. During the reading process, it is found that the second paragraph is redundant. The second paragraph can be deleted, then the current document only contains nine paragraphs, and the deleted paragraph is the second paragraph. The paragraph content feature value corresponding to the paragraph content can be determined according to the paragraph content of each paragraph in the current document. In other words, when the paragraph content is different, the paragraph content feature value corresponding to the paragraph content is also different, that is, the paragraph content feature value is the unique identifier of each paragraph. The current mapping relationship table includes: the paragraph content feature value corresponding to the paragraph content and the paragraph sequence number where the paragraph content is located. In other words, the mapping relationship is a relationship table including the corresponding relationship between the paragraph content feature value and the paragraph sequence number.

[0035] Specifically, when a modification to the content of the original document is detected, a paragraph is optionally added, and the entire document after the added paragraph is used as the current document. The paragraph content of each paragraph in the current document is obtained, the paragraph content feature value corresponding to the paragraph content is determined, and a mapping relationship table including the corresponding relationship between the paragraph sequence number and the paragraph content feature value is established as the current mapping relationship table.

[0036] In this embodiment, a mapping relationship table corresponding to the current document is determined based on the content of the current document, including: when an operation that triggers the current document is detected, the paragraph content of each paragraph in the current document and the current paragraph serial number corresponding to each paragraph are obtained; based on the paragraph content, the current paragraph content feature value corresponding to each paragraph is determined; and a mapping relationship table containing the correspondence between the current paragraph serial number and the current paragraph content feature value is established as the current mapping relationship table.

[0037] It should be noted that the staff can pre-set the triggering condition for establishing the mapping relationship table corresponding to the current document in the server. Optionally, the triggering condition can be that once the original document is detected to be modified, the current mapping relationship table corresponding to the current document is determined; or after the original document is revised, when it is detected that the user triggers the current document for the first time, that is, when it is detected that the user clicks on the current document, the current mapping relationship table corresponding to the current document is determined.

[0038] The current paragraph number refers to the number of each paragraph in the current document. The paragraph content refers to the text in each paragraph. The current paragraph content feature value is determined based on the current paragraph content. Since the paragraph content in each paragraph in the current document is different, the corresponding paragraph content feature value is also different.

[0039] Specifically, when it is detected that the user triggers the current document, the paragraph content of each paragraph in the current document is obtained, and the paragraph content is processed based on the hash function to obtain the current paragraph content feature value corresponding to each paragraph content. The paragraph content feature value is a unique identifier corresponding to the paragraph content in the current document. After determining the current paragraph content feature value, a mapping relationship table containing the corresponding relationship between the current paragraph sequence number and the current paragraph content feature value can be created, and the mapping relationship table obtained at this time is used as the current mapping relationship table.

[0040] Exemplarily, the content of the second paragraph in the original document is modified, and the modified original document is used as the current document. When it is detected that the user triggers the current document, the serial numbers of each paragraph in the current document and the paragraph content of each paragraph are obtained. The paragraph content is processed using a hash function to obtain a paragraph content feature value corresponding to the paragraph content. A corresponding relationship between the paragraph serial number and the paragraph content feature value in the current document is established as the current mapping relationship table. Since the paragraph content of the second paragraph in the original document is revised, the paragraph content feature value corresponding to the second paragraph in the original document is different from the current paragraph content feature value of the second paragraph in the current document.

[0041] S120: Determine a target display position of a target mark in a current document according to the current mapping relationship table and the original mapping relationship table.

[0042] Among them, the original mapping relationship table includes: paragraph content feature values ​​corresponding to each paragraph in the original document, and the original associated positioning information of the target mark in the original document. The original positioning association information includes the original paragraph corresponding to the target mark in the original document, and the original positioning information of the target mark in the original paragraph. That is to say, before revising the original document, the original mapping relationship table corresponding to the original document is predetermined. After the user makes a mark in the original document, the original positioning association information corresponding to the mark can be added to the original mapping relationship table and bound to the paragraph content feature value of the paragraph. The target mark refers to the mark made by the user when the original document is displayed. For example, when the user reads the original document, he thinks that the description of the fifth to twentieth characters in the second paragraph is more vivid, so he underlines it, and the underline can be used as the target mark. In order to determine the specific position of the mark, the positioning information corresponding to the mark can be determined. The original positioning information corresponding to each target mark includes: the original paragraph sequence number of the target mark in the original document, the original paragraph content feature value corresponding to the original paragraph content, and the offset character amount of the content corresponding to the target mark in the paragraph. The target display position refers to the display position of the mark made in the original document in the current document.

[0043] Specifically, according to the paragraph content feature values ​​in the current mapping relationship table and the paragraph content feature values ​​in the original document, it is possible to determine at which position in the original document a paragraph is added, deleted, or the content of which paragraph is revised, and then the corresponding relationship between each paragraph in the original document and each paragraph in the current document can be determined. Correspondingly, the target paragraph of the target tag in the current document can also be determined according to the original positioning association information in the original mapping relationship table. After determining the target paragraph to which the target tag belongs, the target display position of the target tag in the current document can be determined according to the original positioning information corresponding to the target tag.

[0044] Exemplarily, the original document includes five paragraphs, and the paragraph content feature values ​​corresponding to the content of each paragraph are: 376FS1A6CB, 323A6FS1CB, 123FCBS1A6, 1A6CB376FS, FS1376A6CB; the fifth character to the twelfth character in the second paragraph in the original document are underlined, that is, the content between the fifth character to the twelfth character is selected, then the original mapping relationship table can include: 1-376FS1A6CB-unmarked, 2-323A6FS1CB-original positioning association information, 3-123FCBS1A6-unmarked, 4-1A6CB376FS-unmarked, 5-FS1376A6CB-unmarked. If only the content of the second paragraph has been revised, then the current mapping relationship table can include: 1-376FS1A6CB, 2-FS323A61CB, 3-123FCBS1A6, 4-1A6CB376FS, 5-FS1376A6CB. By comparing the paragraph content feature values ​​in the current mapping relationship table with those in the original mapping relationship table, it can be determined that only the content of the second paragraph in the original document has been revised. Based on the original mapping table, it can also be determined that the target paragraph where the target mark is located in the current document is the second paragraph. According to the original positioning information, the specific display position of the target mark in the target paragraph can be determined. When the user reads the current document, an underline can be displayed at the target display position.

[0045] The technical solution of the embodiment of the present invention is to obtain the changed document as the current document when detecting the change of the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; and determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, so as to solve the problem that in the prior art, when the content of the original document is modified, the position of the original mark in the modified document is determined, only by the original paragraph where the mark is located and the number of offset characters of the mark content in the original paragraph, the position of the mark in the modified document cannot be accurately determined, thereby causing the user to be unable to view the mark made when reading, resulting in a poor user experience. The technical problem is realized that when the content of the original document changes, the target position of the original mark in the modified document can be quickly determined, and the mark is displayed at the target position, thereby improving the technical effect of user experience.

[0046] Embodiment 2

[0047] On the basis of the above technical solution, when determining the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table, it is necessary to determine the current positioning information of the target mark in the current document according to the original positioning information corresponding to the target mark, that is, to accurately determine the target display position of the target mark in the current document. Figure 2 This is another flowchart of a document processing method provided in the second embodiment of the present invention.

[0048] like Figure 2 As shown, the method includes:

[0049] S210: Determine a target paragraph of the target tag in the current document according to the paragraph content feature values ​​in the current mapping relationship table and the original mapping relationship table, and the original paragraph corresponding to the target tag.

[0050] The paragraph where the target mark is located in the current document is taken as the target paragraph.

[0051] Specifically, by comparing the paragraph content feature values ​​corresponding to each paragraph in the current mapping relationship table with the original paragraph content feature values ​​corresponding to each paragraph in the original document, the paragraph serial numbers corresponding to each paragraph in the original document in the current document and the paragraph serial numbers corresponding to each mark in the current document can be determined.

[0052] That is to say, based on the current paragraph content feature value and the original paragraph content feature value, it is possible to determine which paragraphs in the original document correspond to each paragraph in the current document, and based on the original positioning association information bound to the original paragraph content feature value in the original mapping relationship table, determine the target paragraphs corresponding to each target tag in the current document.

[0053] Exemplarily, the original document includes five paragraphs, and the paragraph content feature values ​​corresponding to the content of each paragraph are: 376FS1A6CB, 323A6FS1CB, 123FCBS1A6, 1A6CB376FS, FS1376A6CB; marks are made between the fifth character and the twelfth character of the second paragraph in the original document, that is, the original positioning association information is: the paragraph number is 2, the starting number of characters is 5, the ending number of characters is 20, and the string length of the original content is 7. Accordingly, the original mapping relationship table includes: 1-376FS1A6CB-unmarked, 2-323A6FS1CB-original positioning association information, 3-123FCBS1A6-unmarked, 4-1A6CB376FS-unmarked, 5-FS1376A6CB-unmarked. If the original document is revised, optionally, a paragraph is added between the first paragraph and the second paragraph, then the current mapping table can include: 1-376FS1A6CB, 2-FS323A61CB, 3-323A6FS1CB, 4-123FCBS1A6, 5-1A6CB376FS, 6-FS1376A6CB. By comparing the paragraph content feature values ​​in the current mapping table with those in the original mapping table, it can be determined that a new paragraph is added between the first paragraph and the second paragraph in the original document, and the target paragraph corresponding to the target mark in the current document is the third paragraph.

[0054] S220: Determine the current positioning information of the target mark in the target paragraph according to the original positioning information, bind the current positioning information with the paragraph content feature value of the target paragraph, and determine the target display position of the target mark in the target paragraph according to the current positioning information.

[0055] The original positioning information includes: the original content corresponding to the target tag, the original string length corresponding to the original content, the starting character number of the original content in the original paragraph, and the ending character number between the end position of the original content and the end position of the original paragraph. The starting character number can be understood as: the number of characters from the beginning of the original paragraph to the beginning position of the tag. The ending character number refers to the number of characters corresponding to the content from the end position of the tag to the end position of the paragraph. The current positioning information refers to the starting character number, ending character number, string length, etc. of the target tag in the target paragraph, that is, the positioning information of the target tag in the current document.

[0056] Specifically, the target display position of the original content in the target paragraph can be determined according to the original content, the starting character number and the ending character number corresponding to the target tag in the original positioning information, and the starting character number, the ending character number and the current character string length corresponding to the target display position are used as the current positioning information and bound to the target paragraph content feature value in the current mapping relationship table. When the current document is displayed, the target display position of the target tag can be determined according to the positioning information bound to the target paragraph or the target paragraph content feature value.

[0057] Optionally, the current positioning information of the target mark in the target paragraph is determined based on the original positioning information, including: if the paragraph content feature value of the target paragraph is consistent with the paragraph content feature value of the original paragraph, then the original positioning association information is used as the current positioning information.

[0058] Among them, the paragraph content feature value corresponds to the paragraph content. If the paragraph content does not change, then the paragraph content feature value corresponding to the paragraph content does not change. The target paragraph refers to the paragraph corresponding to the target tag in the current document. The original paragraph refers to the paragraph corresponding to the target tag in the original document.

[0059] Specifically, if the paragraph content feature value of the target paragraph to which the target tag belongs is the same as the paragraph content feature value of the original paragraph to which the target tag belongs, it means that the paragraph content to which the target tag belongs has not changed. Accordingly, the positioning information corresponding to the target tag, that is, the original content corresponding to the target tag, the starting number of characters, the ending number of characters and the original content have not changed. At this time, the original positioning information can be used as the current positioning information. After determining the current positioning information, the current positioning information can be updated to the current mapping relationship table and bound to the paragraph content feature value of the target paragraph.

[0060] In the actual application process, the original paragraph to which the target tag belongs may be revised, that is, the target paragraph content feature value of the target paragraph to which the target tag belongs is inconsistent with the original paragraph feature value of the original paragraph.

[0061] Optionally, if the paragraph content feature value of the target paragraph is inconsistent with the paragraph content feature value of the original paragraph, then the first current content corresponding to the length of the original string is obtained starting from the starting number of characters of the target paragraph, and the first current content is compared with the original content; if the first current content is consistent with the original content, the ending number of characters of the first current content in the target paragraph is re-determined and updated to the original positioning information, and the updated original positioning information is used as the current positioning information; if the first current content is inconsistent with the original content, then the second current content corresponding to the length of the original string is obtained from the ending number of characters forward and compared with the original content; based on the comparison result, the current positioning information is determined.

[0062] The original content refers to the content corresponding to the target tag in the original document. According to the starting character number in the original positioning information and the original character string length corresponding to the original content, the content corresponding to the original character string length is filtered out from the starting character number of the target paragraph as the first current content. According to the ending character number in the original positioning information and the original character string length, the content corresponding to the original character string length is obtained from the ending character number of the target paragraph as the second current content.

[0063] Specifically, if the paragraph content feature value of the target paragraph is inconsistent with the paragraph content feature value of the original paragraph, it means that the target paragraph to which the target mark belongs is a revised paragraph, which may have new content and / or deleted content, etc. The current positioning information of the target mark can be determined by: obtaining the starting number of characters and the original string length in the original positioning information, and obtaining the content corresponding to the original string length from the starting number of characters of the paragraph as the first current content. If the first current content is the same as the original content, it means that the content after the first current content in the target paragraph has been revised, that is, the starting number of characters of the first current content in the target paragraph has not changed, but the ending number of characters may have changed. Therefore, the ending number of characters of the first current content in the target paragraph can be re-determined, and the ending number of characters can be updated to the original positioning information, and the updated original positioning information can be used as the current positioning information.

[0064] If the first current content is inconsistent with the original content, the content before the first current content may be revised, and the second current content corresponding to the length of the original string can be obtained according to the number of ending characters. The current positioning information is determined by comparing the second current content with the original content.

[0065] According to the comparison result, the current positioning information is determined, which can be: if the original content is consistent with the second current content, the starting number of characters of the second current content in the target paragraph is re-determined, and after the starting number of characters is updated to the original positioning information, the updated original positioning information is used as the current positioning information; if the original content is inconsistent with the second current content, the third current content corresponding to the length of the original character string is obtained in sequence starting from the first character of the target paragraph, and the third current content is compared with the original content until the third current content is the same as the original content, or the similarity between the original content and the third current content is within a preset range, the starting number of characters, the current character string length, and the ending number of characters corresponding to the third current content are used as the current positioning information.

[0066] Here, starting from the first character of the target paragraph or starting from the last character of the target paragraph, the content corresponding to the length of the original character string is obtained as the third current content.

[0067] Specifically, if the original content is inconsistent with the second current content, the content after the original content is revised, and the third current content corresponding to the length of the original character string can be obtained in sequence starting from the first character of the target paragraph. If the third current content is the same as the original content, the starting character number and the ending character number of the third current content in the target paragraph are determined, and updated to the original positioning information as the current positioning information.

[0068] In actual application, there may be revised content that is marked by the user, that is, the revised content is the original content. If the positioning information corresponding to the target mark is not determined by the above method, it is also possible to determine whether the third current content is the original content relative to the target mark by comparing the similarity between the third current content and the original content.

[0069] Optionally, when the similarity between the original content and the third current content is within a preset range, a dialog box including the current third content pops up; when a trigger operation on a target control in the dialog box is detected, the current string length, starting number of characters, and ending number of characters corresponding to the third current content are determined as current positioning information.

[0070] It can be understood that if the similarity between the original content and the third current content is within a preset similarity range, optionally, eighty percent, a dialog box including the third current content pops up on the display interface. The dialog box can display the content of a preset number of characters before and after the third current content, as well as the original content. The user can manually select the marked content based on the original content. When the marking is completed, the confirmation button can be triggered. After the server receives the control instruction corresponding to the trigger operation, it can obtain information such as the character string length, the starting number of characters, and the ending number of characters corresponding to the third current content, and the positioning information corresponding to the third current content determined at this time is used as the current positioning information.

[0071] The technical solution of the embodiment of the present invention is to obtain the changed document as the current document when detecting the change of the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; and determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, so as to solve the problem that in the prior art, when the content of the original document is modified, the position of the original mark in the modified document is determined, only by the original paragraph where the mark is located and the number of offset characters of the mark content in the original paragraph, the position of the mark in the modified document cannot be accurately determined, thereby causing the user to be unable to view the mark made when reading, resulting in a poor user experience. The technical problem is realized that when the content of the original document changes, the target position of the original mark in the modified document can be quickly determined, and the mark is displayed at the target position, thereby improving the technical effect of user experience.

[0072] Embodiment 3

[0073] As a preferred embodiment of the above embodiment, Figure 3 This is another flow chart of a document processing method provided by Embodiment 3 of the present invention. Figure 3 As shown, the method includes:

[0074] S310: When it is detected that the user draws a line or marks on the display screen of the reader, start the line note component.

[0075] Before introducing the technical solution of this embodiment, the functional components implementing this solution are briefly introduced. Figure 4 As shown, the functional components include: a line note component 410, a position positioning component 420, a line note adjustment component 430 and a storage component 440.

[0076] Among them, the underline note component 410 is used to monitor the trigger operation on the reader screen, and determine the content corresponding to the mark made by the user on the display interface according to the user's trigger operation. The position positioning component 420 is set in the server, and can process the content of each paragraph in the document to determine the paragraph content feature value corresponding to the paragraph content, that is, the MD5 value. The storage component 440 is used to store a mapping relationship table, which includes the positioning association information corresponding to the target mark made by the user, that is, the paragraph to which the target mark belongs and the specific position in the paragraph. The underline note adjustment component 430 is used to redetermine the positioning association information of the target mark in the current document in a certain way after the background staff revise the content of the e-book.

[0077] Specifically, when it is detected that the force applied by the user to trigger the display screen of the reader is greater than a preset force, or when it is detected that the user triggers a specific operation, the line note component can determine the content corresponding to the mark according to the user's trigger operation. Optionally, the line note component can determine the content selected by the user on the display interface according to the starting point, sliding trajectory and end point of the finger sliding.

[0078] S320. After the line note component determines the content corresponding to the mark, the position positioning component is called to determine the specific position of the content corresponding to the mark in the document.

[0079] That is to say, after determining the content selected by the user on the display interface of the reader, the position positioning component can be called. The position positioning component can determine the paragraph number of the content corresponding to the tag in the document, as well as the specific position in the paragraph. That is, the position positioning component is used to determine the paragraph number of the target tag in the document, the original string length of the original content corresponding to the tag, the starting number of characters, and the ending number of characters, etc.

[0080] The position positioning component can be used not only to determine the specific position of the content corresponding to the tag in the document, but also to determine the paragraph content feature value corresponding to each paragraph.

[0081] For example, when the positioning component is started, it can be detected whether each paragraph in the whole book has been calculated for the paragraph content characteristic value. If not, then the MD5 value corresponding to each paragraph content is determined based on the hash function, that is, the paragraph content characteristic value corresponding to each paragraph sequence number in the original document can be determined. At the same time, a relation table comprising the original positioning association information corresponding to the paragraph sequence number, the paragraph content characteristic value, and the mark is established as the original mapping relation table. If the paragraph content characteristic value corresponding to each paragraph has been determined, then a mapping relation table comprising the original positioning association information corresponding to the paragraph sequence number, the paragraph content characteristic value, and the mark is directly established.

[0082] It should be noted that the mapping relationship table obtained by processing the original document is the original mapping relationship table. When it is detected that the original document is revised, the newly established mapping relationship table is the current mapping relationship table.

[0083] Specifically, determine the paragraph content feature value corresponding to each paragraph content, that is, the MD5 value, and establish an original mapping relationship table based on the content corresponding to the user's underline or note and the paragraph number in the original document. The position positioning component can determine the content corresponding to the underline or note, the original paragraph number corresponding to the original document, and determine the number of starting characters from the start of the paragraph to the start of the underline; record the number of ending characters from the end of the underline to the end of the paragraph, and record the string length of the content corresponding to the underline or note, and bind the original positioning information to the paragraph content feature value corresponding to the paragraph number according to the paragraph number corresponding to the underline or note.

[0084] S330: Call a storage component to store the original mapping relationship table.

[0085] After the original mapping relationship table is determined, the storage component may be called to store the original mapping relationship table in the server.

[0086] S340, the electronic book is reloaded, and the position positioning component and the line note adjustment component are called to determine the target display position of the target mark in the current document.

[0087] E-book reloading can be understood as: after revising the original document, the user triggers the revised document for the first time, and uses the revised original document as the current document. That is, when it is detected that the current document is loaded, the line note adjustment component can be called. The line note adjustment component is a component that adjusts the position of the line or note in a certain way.

[0088] Specifically, when it is detected that the current document is loaded, the position positioning component redetermines the paragraph content feature value corresponding to the current document, that is, the MD5 value corresponding to each paragraph content, and establishes a mapping relationship table of the corresponding relationship between the paragraph content feature value and the paragraph sequence number as the current mapping relationship table. The underline note adjustment component can determine the position of the newly added, deleted, and modified paragraphs based on the original mapping relationship table and the paragraph content feature values ​​in the current mapping relationship table, and redetermine the target paragraph corresponding to the target mark in the current document.

[0089] If the original paragraph content feature value corresponding to the target tag is the same as the current paragraph content feature value, that is, the paragraph content to which the target tag belongs has not changed, then the original positioning information corresponding to the target tag can be updated to be bound to the corresponding paragraph content feature value in the current mapping relationship table. If the original paragraph content feature value corresponding to the target tag is different from the current paragraph content feature value, that is, the paragraph content has changed, then according to the starting character number in the original positioning information, the first current content corresponding to the length of the original content string is obtained from the starting character of the target paragraph. If the first current content is the same as the original content, the ending character number of the first current content is readjusted and updated to the original positioning information. The updated original positioning information is used as the current positioning information and is bound to the target paragraph content feature value in the current mapping relationship table. If the first current content is inconsistent with the original content, the second current content corresponding to the length of the original string is obtained from the end of the target paragraph according to the number of ending characters, and compared with the original content. If they are the same, the starting number of characters corresponding to the second current content is determined, and it is updated to the original positioning information, and the updated original positioning information is bound to the target paragraph feature value; if they are different, the third current content corresponding to the length of the original string is obtained starting from the first character of the target paragraph and compared with the original content until it is determined that the third current content is the same as the original content, or the similarity is within a preset range, then the positioning information of the target mark in the current document is re-determined, and the re-determined positioning information is bound to the target paragraph feature value in the current mapping relationship table.

[0090] When the current document is displayed, it can be displayed at the target location according to the positioning information in the current mapping relationship table.

[0091] The technical solution of the embodiment of the present invention is to obtain the changed document as the current document when detecting the change of the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; and determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, so as to solve the problem that in the prior art, when the content of the original document is modified, the position of the original mark in the modified document is determined, only by the original paragraph where the mark is located and the number of offset characters of the mark content in the original paragraph, the position of the mark in the modified document cannot be accurately determined, thereby causing the user to be unable to view the mark made when reading, resulting in a poor user experience. The technical problem is realized that when the content of the original document changes, the target position of the original mark in the modified document can be quickly determined, and the mark is displayed at the target position, thereby improving the technical effect of user experience.

[0092] Embodiment 4

[0093] Figure 5 This is a schematic diagram of the structure of a document processing device provided in Embodiment 4 of the present invention. The device includes: a current mapping relationship table determination module 510 and a target display position determination module 520.

[0094] Among them, the current mapping relationship table determination module 510 is used to obtain the changed document as the current document when a change is detected in the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; the target display position determination module 520 is used to determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and the original positioning association information of the target mark in the original document.

[0095] On the basis of the above technical solution, the current mapping relationship table determination module includes:

[0096] A paragraph content acquisition unit, used to acquire the paragraph content of each paragraph in the current document and the current paragraph sequence number corresponding to each paragraph when an operation triggering the current document is detected;

[0097] A paragraph content feature value determination unit, used to determine the current paragraph content feature value corresponding to each paragraph according to the paragraph content;

[0098] The current mapping relationship table determining unit is used to establish a mapping relationship table including the correspondence between the current paragraph sequence number and the current paragraph content feature value as the current mapping relationship table.

[0099] On the basis of the above technical solution, the target display position determination module includes:

[0100] a target paragraph determination unit, configured to determine a target paragraph of the target mark in the current document according to the paragraph content feature values ​​in the current mapping relationship table and the original mapping relationship table, and the original paragraph corresponding to the target mark;

[0101] a current positioning information determining unit, configured to determine the current positioning information of the target mark in the target paragraph according to the original positioning association information, and to bind the current positioning information with the paragraph content feature value of the target paragraph to determine the target display position of the target mark in the target paragraph according to the current positioning information;

[0102] The original positioning association information includes: the original paragraph corresponding to the target mark in the original document, and the original positioning association information of the target mark in the original paragraph.

[0103] On the basis of the above technical solutions, the current positioning information determination unit is further used to:

[0104] If the paragraph content feature value of the target paragraph is consistent with the paragraph content feature value of the original paragraph, the original positioning association information is used as the current positioning information.

[0105] On the basis of the above technical solutions, the current positioning information determination unit further includes:

[0106] A first judgment subunit is configured to, if the paragraph content feature value of the target paragraph is inconsistent with the paragraph content feature value of the original paragraph, obtain a first current content corresponding to the length of the original character string from the starting number of characters of the target paragraph, and compare the first current content with the original content;

[0107] The current positioning information determines a first subunit, which is used to re-determine the ending character number of the first current content in the target paragraph if the first current content is consistent with the original content, and update it to the original positioning association information, and use the updated original positioning association information as the current positioning information;

[0108] a marking content comparison unit, configured to obtain, if the first current content is inconsistent with the original content, a second current content corresponding to the length of the original character string from the end character number forward and compare with the original content;

[0109] The comparison result determination unit is used to determine the current positioning information according to the comparison result.

[0110] On the basis of the above technical solutions, the comparison result determination unit is further used to:

[0111] If the original content is consistent with the second current content, re-determine the starting character number of the second current content in the target paragraph, and update the starting character number into the original positioning association information, and use the updated original positioning association information as the current positioning information;

[0112] If the original content is inconsistent with the second current content, the third current content corresponding to the length of the original character string is obtained in sequence starting from the first character of the target paragraph, and the third current content is compared with the original content until the third current content is the same as the original content, or the similarity between the original content and the third current content is within a preset range, and the starting number of characters, current character string length, and ending number of characters corresponding to the third current content are used as current positioning information.

[0113] On the basis of the above technical solutions, the comparison unit is also used for:

[0114] When the third current content is identical to the original content, or the similarity between the original content and the third current content is within a preset range, a dialog box including the current third content is popped up;

[0115] When a trigger operation on a target control in the dialog box is detected, a current character string length, a starting character number, and an ending character number corresponding to the third current content are determined as current positioning information.

[0116] The technical solution of the embodiment of the present invention is to obtain the changed document as the current document when detecting the change of the original document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; and determine the target display position of the target mark in the current document according to the current mapping relationship table and the original mapping relationship table; wherein the target mark is a mark made by the user when displaying the original document; and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, so as to solve the problem that in the prior art, when the content of the original document is modified, the position of the original mark in the modified document is determined, only by the original paragraph where the mark is located and the number of offset characters of the mark content in the original paragraph, the position of the mark in the modified document cannot be accurately determined, thereby causing the user to be unable to view the mark made when reading, resulting in a poor user experience. The technical problem is realized that when the content of the original document changes, the target position of the original mark in the modified document can be quickly determined, and the mark is displayed at the target position, thereby improving the technical effect of user experience.

[0117] The document processing device provided in the embodiment of the present invention can execute the document processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0118] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0119] Embodiment 5

[0120] Figure 6 A schematic diagram of the structure of a server provided in Embodiment 5 of the present invention. Figure 6 A block diagram of an exemplary server 60 suitable for use in implementing exemplary embodiments of the present invention is shown. Figure 6 The server 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0121] like Figure 6 As shown, the server 60 is in the form of a general computing server. The components of the server 60 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601).

[0122] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0123] The server 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 60, including volatile and non-volatile media, removable and non-removable media.

[0124] System memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and / or cache memory 605. Server 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 606 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 603 via one or more data medium interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0125] A program / utility 608 having a set (at least one) of program modules 607 may be stored, for example, in the memory 602, such program modules 607 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 607 generally perform the functions and / or methods of the embodiments described herein.

[0126] The server 60 may also communicate with one or more external devices 609 (e.g., keyboards, pointing servers, displays 610, etc.), may communicate with one or more servers that enable users to interact with the server 60, and / or communicate with any server that enables the server 60 to communicate with one or more other computing servers (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 611. Furthermore, the server 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 612. As shown, the network adapter 612 communicates with other modules of the server 60 via a bus 603. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with server 60, including but not limited to microcode, server drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0127] The processing unit 601 executes various functional applications and data processing by running the programs stored in the system memory 602, such as implementing the document processing method provided by the embodiment of the present invention.

[0128] Embodiment 6

[0129] Embodiment 6 of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a document processing method when executed by a computer processor.

[0130] The method comprises:

[0131] When a change in the original document is detected, the changed document is obtained as the current document, and a current mapping relationship table corresponding to the current document is determined according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document;

[0132] Determine a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table;

[0133] Among them, the target mark is a mark made by the user when displaying the original document; the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and the original positioning association information of the target mark in the original document.

[0134] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can 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 (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0135] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media 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.

[0136] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0137] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including 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 a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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).

[0138] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A document processing method, It is characterized in that include: When a change in the original document is detected, the changed document is obtained as the current document, and a current mapping relationship table corresponding to the current document is determined according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; Determine a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table; Wherein, the target mark is a mark made by a user when displaying the original document, and the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, the original positioning association information includes: the original paragraph corresponding to the target mark in the original document, and the original positioning information of the target mark in the original paragraph, and the original positioning information includes: the original content corresponding to the target mark, the original character string length corresponding to the original content, the starting character number of the original content in the original paragraph, and the ending character number between the ending position of the original content and the ending position of the original paragraph; The step of determining a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table comprises: determining a target paragraph of the target mark in the current document according to paragraph content feature values ​​in the current mapping relationship table and the original mapping relationship table, and an original paragraph corresponding to the target mark; Determine the current positioning information of the target mark in the target paragraph according to the original positioning information, so as to determine the target display position of the target mark in the target paragraph according to the current positioning information; The determining, according to the original positioning information, current positioning information of the target mark in the target paragraph includes: If the paragraph content feature value of the target paragraph is inconsistent with the paragraph content feature value of the original paragraph, obtaining a first current content corresponding to the length of the original character string starting from the starting number of characters of the target paragraph, and comparing the first current content with the original content; If the first current content is consistent with the original content, then re-determine the ending character number of the first current content in the target paragraph and update it into the original positioning information, and use the updated original positioning information as the current positioning information; If the first current content is inconsistent with the original content, obtaining a second current content corresponding to the length of the original character string from the end character number forward and comparing it with the original content; If the original content is consistent with the second current content, re-determine the starting character number of the second current content in the target paragraph, and update the starting character number into the original positioning information, and use the updated original positioning information as the current positioning information; If the original content is inconsistent with the second current content, the third current content corresponding to the length of the original character string is obtained in sequence starting from the first character of the target paragraph, and the third current content is compared with the original content until the third current content is the same as the original content, or the similarity between the original content and the third current content is within a preset range, and the starting number of characters, current character string length, and ending number of characters corresponding to the third current content are used as current positioning information.

2. The method according to claim 1, It is characterized in that The determining, according to the content of the current document, a current mapping relationship table corresponding to the current document comprises: When an operation that triggers the current document is detected, the paragraph contents of each paragraph in the current document and the current paragraph sequence number corresponding to each paragraph are obtained; Determine the current paragraph content feature value corresponding to each paragraph according to the paragraph content; A mapping relationship table including the correspondence between the current paragraph sequence number and the current paragraph content feature value is established as the current mapping relationship table.

3. The method according to claim 1, It is characterized in that The determining, according to the original positioning information, current positioning information of the target mark in the target paragraph includes: If the paragraph content feature value of the target paragraph is consistent with the paragraph content feature value of the original paragraph, the original positioning information is used as the current positioning information.

4. The method according to claim 1, It is characterized in that When the third current content is the same as the original content, or the similarity between the original content and the third current content is within a preset range, the starting character number, the current character string length, and the ending character number corresponding to the third current content are used as the current positioning information, including: When the third current content is identical to the original content, or the similarity between the original content and the third current content is within a preset range, a dialog box including the third current content is popped up; When a trigger operation on a target control in the dialog box is detected, a current character string length, a starting character number, and an ending character number corresponding to the third current content are determined as current positioning information.

5. A document processing device, It is characterized in that include: A current mapping relationship table determination module is used to, when detecting a change in the original document, obtain the changed document as the current document, and determine the current mapping relationship table corresponding to the current document according to the content of the current document; wherein the current mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the current document; A target display position determination module, used to determine a target display position of a target mark in the current document according to the current mapping relationship table and the original mapping relationship table; Wherein, the target mark is a mark made by a user when displaying the original document; the original mapping relationship table includes paragraph content feature values ​​corresponding to each paragraph in the original document, and original positioning association information of the target mark in the original document, the original positioning association information includes: the original paragraph corresponding to the target mark in the original document, and the original positioning information of the target mark in the original paragraph, the original positioning information includes: the original content corresponding to the target mark, the original character string length corresponding to the original content, the starting character number of the original content in the original paragraph, and the ending character number between the ending position of the original content and the ending position of the original paragraph; The target display position determination module includes: a target paragraph determination unit, which is used to determine the target paragraph of the target mark in the current document according to the paragraph content feature values ​​in the current mapping relationship table and the original mapping relationship table, and the original paragraph corresponding to the target mark; a current positioning information determination unit, which is used to determine the current positioning information of the target mark in the target paragraph according to the original positioning association information, so as to determine the target display position of the target mark in the target paragraph according to the current positioning information; The current positioning information determination unit further includes: a first judgment subunit, which is used to obtain the first current content corresponding to the original character string length from the starting character number of the target paragraph if the paragraph content feature value of the target paragraph is inconsistent with the paragraph content feature value of the original paragraph, and compare the first current content with the original content; a current positioning information determination first subunit, which is used to re-determine the ending character number of the first current content in the target paragraph if the first current content is consistent with the original content, and update it to the original positioning association information, and use the updated original positioning association information as the current positioning information; a marking content comparison unit, which is used to obtain the second current content corresponding to the original character string length from the ending character number forward and compare it with the original content if the first current content is inconsistent with the original content; a comparison result determination unit, configured to, if the original content is consistent with the second current content, re-determine the starting character number of the second current content in the target paragraph, and update the starting character number into the original positioning association information, and use the updated original positioning association information as the current positioning information; If the original content is inconsistent with the second current content, the third current content corresponding to the length of the original character string is obtained in sequence starting from the first character of the target paragraph, and the third current content is compared with the original content until the third current content is the same as the original content, or the similarity between the original content and the third current content is within a preset range, and the starting number of characters, current character string length, and ending number of characters corresponding to the third current content are used as current positioning information.

6. A server, It is characterized in that The server comprises: one or more processors; a storage device 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 as described in any one of claims 1 to 4.

7. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the document processing method according to any one of claims 1 to 4 when executed by a computer processor.

Citation Information

Patent Citations

  • Method and apparatus for generating hash mnemonics

    CN102067511A

  • Method for generating and updating unique identifier of encrypted document

    CN102073824A

  • Document detecting method and document detecting device

    CN102915295A

  • Tamper detection method for text documents in cloud storage environment

    CN104239753A

  • Iterative and optimized saving method of document analysis results

    CN107368472A