CN105760354B - Method and device for relocating note data in electronic book - Google Patents

Method and device for relocating note data in electronic book Download PDF

Info

Publication number
CN105760354B
CN105760354B CN201610116755.7A CN201610116755A CN105760354B CN 105760354 B CN105760354 B CN 105760354B CN 201610116755 A CN201610116755 A CN 201610116755A CN 105760354 B CN105760354 B CN 105760354B
Authority
CN
China
Prior art keywords
version
user
electronic book
updated
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610116755.7A
Other languages
Chinese (zh)
Other versions
CN105760354A (en
Inventor
丁力
童征宇
王亚卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dangdangwang Information Technology Co Ltd
BEIJING DANGDANG KEWEN ELECTRONIC COMMERCE Co Ltd
Original Assignee
Beijing Dangdangwang Information Technology Co Ltd
BEIJING DANGDANG KEWEN ELECTRONIC COMMERCE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dangdangwang Information Technology Co Ltd, BEIJING DANGDANG KEWEN ELECTRONIC COMMERCE Co Ltd filed Critical Beijing Dangdangwang Information Technology Co Ltd
Priority to CN201610116755.7A priority Critical patent/CN105760354B/en
Publication of CN105760354A publication Critical patent/CN105760354A/en
Application granted granted Critical
Publication of CN105760354B publication Critical patent/CN105760354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method and a device for relocating user marked data in an electronic book. One embodiment of the method comprises: responding to an updating instruction of a user, and acquiring version information of a version to be updated of the electronic book and version information of a current version of the electronic book; generating an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version, wherein the update chain comprises position update data of any at least two adjacent versions between the version to be updated and the current version; acquiring user marking data of a current version; and updating the user annotation data of the current version based on the location updating file, and obtaining the user annotation data corresponding to the version to be updated. The embodiment can enable the annotation data added by the user on the earlier version to correspond to the corresponding position of the new version after the version of the electronic book is updated.

Description

Method and device for relocating note data in electronic book
Technical Field
The application relates to the technical field of computers, in particular to the field of electronic books, and particularly relates to a method and a device for relocating note data in an electronic book.
Background
In recent years, with the rapid development of mobile internet and the rapid popularization of smart phones and tablets, reading electronic books on smart devices has become a main reading mode for people.
The ePub (electronic publication) format is known by its free open property, has rich expressive ability, can support various typesetting styles, multimedia elements such as video and audio, can perform streaming rearrangement according to the size of reading equipment, and provides a good reading experience for users. Because of the advantages of ePub format, ePub format is popular with publishers and readers, and is the most dominant e-book format in the current digital reading trend.
Errors in electronic books in the Epub format are difficult to avoid, wrongly written characters may occur during editing and processing, mistakes may be overlooked during writing by authors, and mistakes are corrected and updated as needed. The specific modification mode includes deleting partial error paragraph/character, adding partial new revised paragraph/character, and modifying found error character corresponding to DELETE, ADD and UPDATE conditions. The modification to Epub is mainly performed in an xhtml file describing the book contents in the zip package of Epub, and other files are not substantially involved.
When a user reads an electronic book, the document content is scribed, notes are added to the selected content, a bookmark is added to the selected page, the user data need to record the position of the selected document content for long-term storage, and the user data are displayed at the current position when epub is opened for reading next time.
However, when the user downloads the epub file which is corrected by mistake, the user data such as the line drawing highlight, the note, the bookmark and the like added by the user at the moment can cause the problem of inaccurate positioning due to the change of the position in the epub text. It is therefore desirable to be able to convert user data from a location in the original epub to a corresponding location in the new epub after updating the epub text.
Disclosure of Invention
The present application aims to provide an improved method and apparatus for relocating note data in an electronic book, so as to solve the technical problems mentioned in the above background section.
In a first aspect, the present application provides a method for relocating user annotation data in an electronic book, comprising: responding to an updating instruction of a user, and acquiring version information of a version to be updated of the electronic book and version information of a current version of the electronic book; generating an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version to obtain a location update file from the current version of the electronic book to the version to be updated, wherein the update chain comprises location update data of any at least two adjacent versions between the version to be updated and the current version; acquiring user marking data of a current version; updating the user annotation data of the current version based on the position updating file, and obtaining the user annotation data corresponding to the version to be updated;
wherein the version of the electronic book to be updated is the latest version of the electronic book, and the current version of the electronic book is an earlier version stored locally.
In some embodiments, the location update data comprises: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name; the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions, wherein the position change information is a mapping relation of elements to be displayed with the same file name in any at least two adjacent versions, and the elements to be displayed of any at least two adjacent versions are respectively stored in a list mode.
In some embodiments, the location change information is obtained by: analyzing the content of each file contained in any at least two adjacent versions to respectively obtain the elements to be displayed in any at least two adjacent versions; acquiring the longest common substring of the elements to be displayed with the same file name in any at least two adjacent versions; and acquiring the mapping relation of the elements to be displayed with the same file name in any at least two adjacent versions as position change information based on the longest common substring.
In some embodiments, updating the user annotation data of the current version based on the location update file, and obtaining the user annotation data corresponding to the version to be updated includes: acquiring user marking data of a current version; analyzing the position information of each user label in the user label data of the current version; and updating the position information of each user label in the user label data of the current version based on the position updating file.
In some embodiments, the method for relocating user annotation data in an electronic book further comprises: and responding to an input instruction of a user, and presenting the content information of the version to be updated and the user annotation data corresponding to the content information.
In a second aspect, the present application further provides a relocation apparatus for user mark data in an electronic book, including: the version information acquisition module is configured to respond to an update instruction of a user and acquire version information of a version to be updated of the electronic book and version information of a current version of the electronic book; the updating chain generating module is configured to generate an updating chain of the electronic book based on the version information of the version to be updated and the version information of the current version, wherein the updating chain comprises position updating data of any at least two adjacent versions between the version to be updated and the current version; the user annotation data acquisition module is configured for acquiring user annotation data of the current version; the updating module is configured to update the user marking data of the current version based on the position updating file and obtain the user marking data corresponding to the version to be updated;
wherein the version of the electronic book to be updated is the latest version of the electronic book, and the current version of the electronic book is an earlier version stored locally.
In some embodiments, the location update data comprises: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name; the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions, wherein the position change information is a mapping relation of elements to be displayed with the same file name in any at least two adjacent versions, and the elements to be displayed of any at least two adjacent versions are respectively stored in a list mode.
In some embodiments, the location change information is obtained by: analyzing the content of each file contained in any at least two adjacent versions to respectively obtain the elements to be displayed in any at least two adjacent versions; acquiring the longest common substring of the elements to be displayed with the same file name in any at least two adjacent versions; and acquiring the mapping relation of the elements to be displayed with the same file name in any at least two adjacent versions as position change information based on the longest common substring.
In some embodiments, the update module is further configured to: acquiring user marking data of a current version; analyzing the position information of each user label in the user label data of the current version; and updating the position information of each user label in the user label data of the current version based on the position updating file.
In some embodiments, the user annotation data relocating device in the electronic book further comprises: and the presentation module is configured to respond to an input instruction of a user and present the content information of the version to be updated and the user annotation data corresponding to the content information.
According to the method and the device for relocating the user marking data in the electronic book, the user marking data in the current version is updated and relocated through the updating chain between the version to be updated and the current version, so that after the version of the electronic book is updated, the marking data added to the earlier version by a user can correspond to the corresponding position of the new version.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a user annotation data relocation method in an electronic book according to the present application;
FIG. 3 is a schematic flow chart diagram of an alternative implementation of location change information in a user annotation data relocation method in an electronic book according to the present application;
FIG. 4 is a schematic diagram of an embodiment of a user annotation data relocation apparatus in an electronic book according to the present application;
fig. 5 is a schematic structural diagram of a computer system suitable for implementing the terminal device or the server according to the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which an embodiment of the user annotation data relocation method in an electronic book or user annotation data relocation apparatus in an electronic book of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various client applications, such as e-book applications, web browser applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting electronic book viewing, including but not limited to smart phones, tablet computers, electronic book readers, MP3 players (Moving picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as an electronic reading server that provides support for electronic books displayed on the terminal devices 101, 102, 103. The electronic reading server may analyze and otherwise process the received data such as the electronic book reading request, and transmit the processing result (e.g., the electronic book corresponding to the electronic book reading request) to the terminal device.
It should be noted that the relocation method for user mark data in an electronic book provided in the embodiment of the present application may be executed by the server 105, or may be executed by the terminal devices 101, 102, and 103, or may be executed by a part of the server 105 and another part of the terminal devices 101, 102, and 103. Accordingly, the user annotation data relocation means in the electronic book may be provided in the server 105, or in the terminal devices 101, 102, 103, or in part in the server 105 and in part in the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram 200 of one embodiment of a method for relocation of user annotation data in an electronic book is shown, in accordance with the present application. The user marked data repositioning method in the electronic book comprises the following steps:
step 210, in response to the update instruction of the user, obtaining version information of the version of the electronic book to be updated and version information of the current version of the electronic book.
In some alternative implementations, the to-be-updated version of the electronic book may be a latest version of the electronic book, and the current version of the electronic book may be an earlier version stored locally (e.g., the terminal device shown in fig. 1).
And step 220, generating an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version to obtain a location update file from the current version to the version to be updated of the electronic book, wherein the update chain comprises location update data of any at least two adjacent versions between the version to be updated and the current version.
In some alternative implementations, the versions of the electronic book may be stored in a server. Each version may include, for example, version information for that version and content information for the version of the electronic book.
Here, the version information may be understood as identity information corresponding to content information of a certain version of the electronic book one by one, for example, a unique version number may be adopted as the version information of a certain version of the electronic book.
In addition, the location update data may be understood as differences of the contents of the two adjacent versions, including but not limited to different locations of the same content in the two adjacent versions, locations of contents added by a newer version in the two adjacent versions, and the like.
In some application scenarios, assuming that an electronic book includes A, B, C versions according to the chronological order of update time, the update chain of the electronic book may include location update data from version a to version B, and location update data from version B to version C, for example.
After getting the location update data in the update chain, the location update data may be merged to get a location update file from the current version of the electronic book to the version to be updated.
Step 230, obtaining the user annotation data of the current version.
Here, the user annotation data may be any mark made to the electronic book by a reader reading the electronic book, including but not limited to an annotation, a mark (e.g., an underline, a wavy line, an accent mark marked on a text of a part of the electronic book) and the like made by the reader at a certain position of the electronic book.
And 240, updating the user annotation data of the current version based on the location updating file, and obtaining the user annotation data corresponding to the version to be updated.
In some embodiments, the location update data may include, for example: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name; the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions.
In some embodiments, the location change information may be obtained via a process 300 as shown in FIG. 3.
Specifically, in step 310, the contents of each file included in any at least two adjacent versions are parsed to obtain the elements to be displayed in any at least two adjacent versions respectively.
Here, the file content may include, for example, the content of each chapter of the electronic book, and the element to be displayed may be understood as any content that may be presented on a screen (e.g., the screen of the terminal device shown in fig. 1) in the electronic book, such as text, pictures, audio, video, graphics, and forms (e.g., control elements) that may be operated by a user in the electronic book.
In some alternative implementations, the adjacent two versions of the element to be displayed may be separately saved in a list manner.
In step 320, the Longest Common Substring (LCS) of the elements to be displayed having the same file name in any at least two adjacent versions is obtained. Here, LCS is understood to be the longest identical part of the adjacent two versions. In some optional implementations, the sections of each version may be stored in different lists, and in these optional implementations, LCS of each section in two adjacent versions may be obtained respectively.
In step 330, based on the longest common substring, the mapping relationship of the to-be-displayed elements with the same file name in any at least two adjacent versions is obtained as position change information.
Here, the same file name may be used to characterize the same chapter in any at least two adjacent versions of an electronic book, for example.
In some optional implementations, the updating the current version of the user annotation data based on the location update file in step 240, and obtaining the user annotation data corresponding to the version to be updated may further include: acquiring user marking data of a current version; analyzing the position information of each user label in the user label data of the current version; and updating the position information of each user label in the user label data of the current version based on the position updating file.
In some optional implementation manners, the method for relocating user annotation data in an electronic book according to this embodiment may further include:
and step 250, responding to an input instruction of a user, and presenting the content information of the version to be updated and the user annotation data corresponding to the content information. In this way, the updated user annotation data can be correspondingly presented at a corresponding position in the latest version (i.e., the version to be updated) of the electronic book.
In the method for relocating user annotation data in an electronic book according to this embodiment, the user annotation data in the current version is updated and relocated by updating the file at the location between the version to be updated and the current version, so that after the version of the electronic book is updated, the annotation data added by the user in the earlier version (i.e., the current version) can correspond to the corresponding location of the new version (i.e., the version to be updated).
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of a relocation apparatus for user mark data in an electronic book, where the embodiment of the relocation apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 4, the user annotation data relocation apparatus 400 in the electronic book according to this embodiment may include a version information obtaining module 410, an update chain generating module 420, a user annotation data obtaining module 430, and an updating module 440.
The version information obtaining module 410 may be configured to, in response to an update instruction of a user, obtain version information of a version of the electronic book to be updated and version information of a current version of the electronic book.
The update chain generation module 420 may be configured to generate an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version to obtain a location update file from the current version of the electronic book to the version to be updated, where the update chain includes location update data of any at least two adjacent versions between the version to be updated and the current version.
The user annotation data acquisition module 430 may be configured to acquire the user annotation data of the current version.
The updating module 440 may be configured to update the user annotation data of the current version based on the location update file, and obtain the user annotation data corresponding to the version to be updated.
In some alternative implementations, the location update data may include: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name; the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions.
In some alternative implementations, the location change information may be obtained by: analyzing the content of each file contained in any at least two adjacent versions to respectively obtain the elements to be displayed in any at least two adjacent versions; acquiring the longest common substring of the elements to be displayed with the same file name in any at least two adjacent versions; and acquiring the mapping relation of the elements to be displayed with the same file name in any at least two adjacent versions as position change information based on the longest common substring.
In some alternative implementations, the update module 440 may be further configured to: acquiring user marking data of a current version; analyzing the position information of each user label in the user label data of the current version; and updating the position information of each user label in the user label data of the current version based on the position updating file.
In some optional implementations, the user annotation data relocation apparatus in the electronic book of the present embodiment may further include a presentation module 450.
The presentation module 450 may be configured to present the content information of the version to be updated and the user annotation data corresponding to the content information in response to an input instruction of the user.
It will be appreciated by those skilled in the art that the user-tagged data relocation apparatus 400 in the electronic book described above also includes some other well-known structures, such as a processor, memory, etc., which are not shown in fig. 4 in order to not unnecessarily obscure embodiments of the present disclosure.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use in implementing a terminal device or server of an embodiment of the present application is shown.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the system 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 501.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a version information acquisition module, an update chain generation module, a user labeling data acquisition module and an update module. The names of these modules do not constitute a limitation to the module itself in some cases, for example, the version information acquiring module may also be described as "a module that acquires version information of a version to be updated of an electronic book and version information of a current version of the electronic book in response to an update instruction of a user".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-transitory computer storage medium stores one or more programs that, when executed by a device, cause the device to: responding to an updating instruction of a user, and acquiring version information of a version to be updated of the electronic book and version information of a current version of the electronic book; generating an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version, wherein the update chain comprises position update data of any at least two adjacent versions between the version to be updated and the current version; acquiring user marking data of a current version; and updating the user annotation data of the current version based on the location updating file, and obtaining the user annotation data corresponding to the version to be updated.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (6)

1. A user marking data relocation method in an electronic book is characterized by comprising the following steps:
responding to an updating instruction of a user, and acquiring version information of a version to be updated of the electronic book and version information of a current version of the electronic book;
generating an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version to obtain a location update file from the current version to the version to be updated of the electronic book, wherein the update chain comprises location update data of any at least two adjacent versions between the version to be updated and the current version;
acquiring the user marking data of the current version; and
updating the user marking data of the current version based on the position updating file, and obtaining the user marking data corresponding to the version to be updated;
the location update data includes: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name;
the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions, wherein the position change information is a mapping relation of elements to be displayed with the same file name in any at least two adjacent versions, and the elements to be displayed in any at least two adjacent versions are respectively stored in a list manner;
the updating the user annotation data of the current version based on the location update file, and obtaining the user annotation data corresponding to the version to be updated includes:
acquiring the user marking data of the current version;
analyzing the position information of each user label in the user label data of the current version; and
updating the position information of each user label in the user label data of the current version based on the position updating file;
wherein the version of the electronic book to be updated is a latest version of the electronic book, and the current version of the electronic book is an earlier version stored locally.
2. The method of claim 1, wherein the location change information is obtained by:
analyzing the content of each file contained in any at least two adjacent versions to respectively obtain the elements to be displayed in any at least two adjacent versions;
acquiring the longest common substring of the elements to be displayed with the same file name in any at least two adjacent versions;
and acquiring the mapping relation of the to-be-displayed elements with the same file name in any at least two adjacent versions as the position change information based on the longest common substring.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and responding to an input instruction of a user, and presenting the content information of the version to be updated and the user annotation data corresponding to the content information.
4. A relocation apparatus for user mark data in an electronic book, comprising:
the version information acquisition module is configured to respond to an update instruction of a user and acquire version information of a version to be updated of the electronic book and version information of a current version of the electronic book;
an update chain generation module configured to generate an update chain of the electronic book based on the version information of the version to be updated and the version information of the current version to obtain a location update file from the current version to the version to be updated of the electronic book, wherein the update chain includes location update data of any at least two adjacent versions between the version to be updated and the current version;
the user annotation data acquisition module is configured to acquire the user annotation data of the current version; and
the updating module is configured to update the user annotation data of the current version based on the location updating file and obtain the user annotation data corresponding to the version to be updated;
the location update data includes: the version number of any at least two adjacent versions, the file name of each file content contained in any at least two adjacent versions and mapping data corresponding to the file name;
the mapping data comprises position change information of file contents with the same file name in any at least two adjacent versions, wherein the position change information is a mapping relation of elements to be displayed with the same file name in any at least two adjacent versions, and the elements to be displayed in any at least two adjacent versions are respectively stored in a list manner;
acquiring user marking data of a current version;
analyzing the position information of each user label in the user label data of the current version;
updating the position information of each user label in the user label data of the current version based on the position updating file;
wherein the version to be updated of the electronic book is the latest version of the electronic book, and the current version of the electronic book is an earlier version stored locally;
wherein the version of the electronic book to be updated is a latest version of the electronic book, and the current version of the electronic book is an earlier version stored locally.
5. The apparatus of claim 4, wherein the position change information is obtained by:
analyzing the content of each file contained in any at least two adjacent versions to respectively obtain the elements to be displayed in any at least two adjacent versions;
acquiring the longest common substring of the elements to be displayed with the same file name in any at least two adjacent versions;
and acquiring the mapping relation of the elements to be displayed with the same file name in any at least two adjacent versions as position change information based on the longest common substring.
6. The apparatus of claim 4 or 5, further comprising:
and the presentation module is configured to respond to an input instruction of a user and present the content information of the version to be updated and the user annotation data corresponding to the content information.
CN201610116755.7A 2016-03-01 2016-03-01 Method and device for relocating note data in electronic book Active CN105760354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610116755.7A CN105760354B (en) 2016-03-01 2016-03-01 Method and device for relocating note data in electronic book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610116755.7A CN105760354B (en) 2016-03-01 2016-03-01 Method and device for relocating note data in electronic book

Publications (2)

Publication Number Publication Date
CN105760354A CN105760354A (en) 2016-07-13
CN105760354B true CN105760354B (en) 2020-01-21

Family

ID=56332409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610116755.7A Active CN105760354B (en) 2016-03-01 2016-03-01 Method and device for relocating note data in electronic book

Country Status (1)

Country Link
CN (1) CN105760354B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188337B (en) * 2019-06-05 2023-08-18 中国联合网络通信集团有限公司 Revision labeling method, device, equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101063971A (en) * 2006-04-26 2007-10-31 英福达科技股份有限公司 Method for manufacturing shareable note and content correcting difference update electronic book
CN101441644A (en) * 2007-11-19 2009-05-27 英福达科技股份有限公司 Web page annotation system and method
JP2009205248A (en) * 2008-02-26 2009-09-10 Fuji Xerox Co Ltd Document management device, document management system, and document management program
CN101739415A (en) * 2008-11-25 2010-06-16 华中师范大学 Browser-oriented webpage labeling system
CN101996161A (en) * 2009-08-28 2011-03-30 北大方正集团有限公司 Method and device for processing revision data of electronic file
CN102332010A (en) * 2011-09-07 2012-01-25 上海果壳电子有限公司 Digital book updating and distributing method and system
CN104541264A (en) * 2012-06-01 2015-04-22 谷歌公司 Integrating collaboratively proposed changes and publishing

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8201079B2 (en) * 2004-01-15 2012-06-12 International Business Machines Corporation Maintaining annotations for distributed and versioned files
US7343552B2 (en) * 2004-02-12 2008-03-11 Fuji Xerox Co., Ltd. Systems and methods for freeform annotations
US8181103B2 (en) * 2005-12-29 2012-05-15 Microsoft Corporation Annotation detection and anchoring on ink notes
US9542484B2 (en) * 2009-09-29 2017-01-10 Sap Se Updating ontology while maintaining document annotations
CN102446176A (en) * 2010-10-09 2012-05-09 上海博路信息技术有限公司 Multimedia user data recording and loading method used in electronic reading
CN102682127B (en) * 2012-05-16 2014-12-03 北京像素软件科技股份有限公司 Data version control method
CN102799573B (en) * 2012-06-27 2015-07-01 北京经舆典网络科技有限公司 Method and system for annotating webpage
US10210149B2 (en) * 2014-07-28 2019-02-19 Ca, Inc. Personalized wiki-book annotation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063971A (en) * 2006-04-26 2007-10-31 英福达科技股份有限公司 Method for manufacturing shareable note and content correcting difference update electronic book
CN1858786A (en) * 2006-06-09 2006-11-08 宋丽娟 Electronic file formatting annotate and comment system and method
CN101441644A (en) * 2007-11-19 2009-05-27 英福达科技股份有限公司 Web page annotation system and method
JP2009205248A (en) * 2008-02-26 2009-09-10 Fuji Xerox Co Ltd Document management device, document management system, and document management program
CN101739415A (en) * 2008-11-25 2010-06-16 华中师范大学 Browser-oriented webpage labeling system
CN101996161A (en) * 2009-08-28 2011-03-30 北大方正集团有限公司 Method and device for processing revision data of electronic file
CN102332010A (en) * 2011-09-07 2012-01-25 上海果壳电子有限公司 Digital book updating and distributing method and system
CN104541264A (en) * 2012-06-01 2015-04-22 谷歌公司 Integrating collaboratively proposed changes and publishing

Also Published As

Publication number Publication date
CN105760354A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN109597617B (en) Method and device for quickly generating service page based on template
US9922004B2 (en) Dynamic highlighting of repetitions in electronic documents
US9936022B2 (en) Computer device for reading e-book and server for being connected with the same
US10565293B2 (en) Synchronizing DOM element references
US11758088B2 (en) Method and apparatus for aligning paragraph and video
CN110020329B (en) Method, device and system for generating webpage
CN103353878A (en) Method for displaying files of different file formats in webpage
CN105512294B (en) Multimedia file update prompting method and device
US9588952B2 (en) Collaboratively reconstituting tables
CN110780874B (en) Method and device for generating information
CN111061860A (en) Abstract generation method and device
US20130024766A1 (en) System and method of context aware adaption of content for a mobile device
CN109753644B (en) Rich text editing method and device, mobile terminal and storage medium
CN115495417A (en) Content loading method, device, equipment, medium and program product
CN107451163B (en) Animation display method and device
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN107330087B (en) Page file generation method and device
CN109684570A (en) Web information processing method and device
CN111400581B (en) System, method and apparatus for labeling samples
CN105760354B (en) Method and device for relocating note data in electronic book
CN113784194A (en) Embedding method and device of video player
CN107423271B (en) Document generation method and device
CN114239501A (en) Contract generation method, apparatus, device and medium
CN112307723B (en) Method and device for generating code document and electronic equipment
CN110196803B (en) Software defect training method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant