A book file management method, system, device and storage medium

By using the IndexedDB database in a desktop application to manage book files by chapter, the problem of inconvenient local book file management is solved, thus improving the reading experience.

CN117453907BActive Publication Date: 2026-07-03JINAN INSPUR DATA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2023-11-10
Publication Date
2026-07-03

Smart Images

  • Figure CN117453907B_ABST
    Figure CN117453907B_ABST
Patent Text Reader

Abstract

The application discloses a kind of management methods, systems, equipment and storage medium of book file, applied to book management technical field, comprising: after the desktop application of pre-determined cross-platform with browser kernel, IndexedDB is used as the database of desktop application;Visual interface provided by desktop application receives adding instruction and obtains source file based on it;Source file is divided according to chapter and processed into the book file of first format;The book file of each chapter is stored in the database supporting first format;When receiving reading instruction, the book file of chapter specified by reading instruction is read from the database, and is displayed in visual interface after conversion to second format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of book management technology, and in particular to a method, system, device and storage medium for managing book documents. Background Technology

[0002] With the continuous development of internet technology and the popularization of electronic devices, more and more people are spending more time on electronic devices, and the time and frequency of reading paper books are gradually decreasing.

[0003] Currently, there are many online book and novel reading platforms, which usually require paid registration and are plagued by pop-up ads during the reading process, affecting the user experience. Therefore, some users choose to download book files to their local devices for offline reading. However, with a large number of local book files, reading and managing them one by one becomes inconvenient.

[0004] In conclusion, how to effectively manage local book files is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to provide a method, system, device, and storage medium for managing book files, so as to effectively manage local book files.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0007] A method for managing book documents, comprising:

[0008] After pre-setting a cross-platform desktop application with a browser kernel, IndexedDB is used as the database of the desktop application.

[0009] Based on the visual interface provided by the desktop application, the system receives an add command and obtains the source file of the book pointed to by the add command.

[0010] By parsing the source file, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in a preset first format;

[0011] All book files for each chapter are stored in the database that supports the first format;

[0012] When a reading instruction for the book is received, the chapter specified by the reading instruction is determined, the book file of the chapter specified by the reading instruction is read from the database, and the read book file is converted into a second format and then displayed in the visualization interface;

[0013] The second format is a format supported by the visual interface provided by the desktop application.

[0014] In one implementation, it further includes:

[0015] By parsing the source file, the basic book information of the book is obtained, as well as the chapter information of each chapter of the book;

[0016] The basic book information of the book, as well as the chapter information of each chapter of the book, are stored in the book table of the database;

[0017] Accordingly, after receiving a reading instruction for the book, the process also includes:

[0018] Retrieve basic book information of the book indicated by the reading instruction and chapter information of each chapter of the book from the book table of the database;

[0019] Accordingly, after converting the read book file into the second format and displaying it in the visualization interface, the process also includes:

[0020] When a user's operation is detected to conform to a preset first operation rule, the chapter information of each chapter of the book obtained from the book table in the database will be displayed in the visualization interface.

[0021] When a user's operation is detected to conform to a preset second operation rule, the basic book information of the book obtained from the book table in the database will be displayed in the visualization interface.

[0022] In one implementation, the first operation rule includes: detecting that the user hovers the mouse over a preset first area for a duration exceeding a preset first duration;

[0023] The second operation rule includes: detecting that the user clicked a preset icon.

[0024] In one implementation, it further includes:

[0025] Receive a deletion command and identify the book to which the deletion command is directed;

[0026] The book files for each chapter of the book pointed to by the deletion command in the database, the basic book information of the book, and the chapter information of each chapter of the book are all deleted.

[0027] In one implementation, when a reading instruction for the book is received, the chapter specified by the reading instruction is determined, and the book file for the chapter specified by the reading instruction is read from the database, including:

[0028] When a reading instruction is received for the book, it is determined whether the reading instruction carries a specified chapter number;

[0029] If so, then based on the chapter number carried in the reading instruction, the book file of the chapter specified by the reading instruction is read from the database;

[0030] If not, the most recently read chapter of the book by the user will be used as the chapter specified by the reading instruction, and the book file of the chapter specified by the reading instruction will be read from the database.

[0031] In one implementation, for each divided chapter, the content of the chapter is processed into a book file in a preset first format, including:

[0032] For each chapter, the image and text content of the chapter are processed into a book file in a preset first format.

[0033] In one implementation, it further includes:

[0034] After storing the book files of each chapter in a database that supports the first format, the parsing of the source file is re-executed, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file of the preset first format. Then, it is determined whether the newly obtained book files of each chapter are consistent with the book files of each chapter stored in the database.

[0035] If so, the book files for each chapter stored in the database are confirmed to have passed the verification, and the source files of the books are automatically deleted.

[0036] A book document management system, comprising:

[0037] A database building module is used to use IndexedDB as the database of a pre-built cross-platform desktop application with a browser kernel.

[0038] An instruction receiving module is used to receive an instruction based on the visual interface provided by the desktop application, and to obtain the source file of the book pointed to by the instruction.

[0039] The format conversion module is used to parse the source file, divide the source file into chapters, and process the content of each chapter into a book file in a preset first format.

[0040] The storage execution module is used to store the book files of each chapter in a database that supports the first format;

[0041] The reading instruction receiving module is used to determine the chapter specified by the reading instruction when it receives a reading instruction pointing to the book, read the book file of the chapter specified by the reading instruction from the database, convert the read book file into a second format, and then display it in the visualization interface.

[0042] The second format is a format supported by the visual interface provided by the desktop application.

[0043] A book document management device, comprising:

[0044] Memory, used to store computer programs;

[0045] A processor for executing the computer program to implement the steps of the book file management method as described above.

[0046] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the book document management method described above.

[0047] By applying the technical solution provided in this invention, unified management of book files is achieved through a pre-defined IndexedDB database, thereby providing users with a comfortable reading experience. Specifically, this application considers that IndexedDB is a database used in browsers to store large data structures, providing complete database functionality. Therefore, a desktop application can be built based on a browser kernel. That is, a cross-platform desktop application with a browser kernel can be pre-defined, and then IndexedDB can be used as the database for this desktop application. Thus, after combining the two, IndexedDB can be applied to the desktop application, and subsequent management of book files can be achieved based on the IndexedDB database. Furthermore, since it is a cross-platform desktop application, the flexibility of this application's solution is improved. When managing book files, the source file of the book pointed to by the addition command can be obtained based on the visual interface provided by the desktop application after receiving the addition command. That is, the source file of the book that the user has downloaded to their local machine and wants to manage uniformly. Since the source file formats are different, this application considers that, for the sake of unified management, the source file can be parsed and divided into chapters. For each chapter, the content of the chapter will be processed into a book file in a pre-defined first format supported by the database. After parsing, the book files for each chapter can be stored in a database that supports the first format. When a reading instruction for a book is received, the book file for the chapter specified by the reading instruction can be read from the database, and the read book file can be converted into the second format and displayed in a preset visual interface. The second format is the format supported by the visual interface provided by the desktop application.

[0048] As can be seen, the solution proposed in this application allows indexedDB to be applied to desktop applications, which can help users manage scattered book documents in a unified manner. That is, by using a pre-set database to achieve unified management of book files, it is beneficial to improve the reading experience and provide a comfortable reading experience. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 This is a flowchart illustrating the implementation of a book document management method according to the present invention.

[0051] Figure 2This is a schematic diagram of the structure of a book document management system according to the present invention;

[0052] Figure 3 This is a schematic diagram of the structure of a book document management device according to the present invention;

[0053] Figure 4 This is a schematic diagram of the structure of a computer-readable storage medium according to the present invention. Detailed Implementation

[0054] The core of this invention is to provide a method for managing book documents, which can help users manage scattered book documents in a unified manner. That is, it achieves unified management of book documents through a preset database, which is conducive to improving the reading experience and providing a comfortable reading effect.

[0055] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0056] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an implementation method for managing book documents according to the present invention. The method may include the following steps:

[0057] Step S101: After pre-setting a cross-platform desktop application with a browser kernel, use IndexedDB as the database of the desktop application.

[0058] This application takes into account that IndexedDB is a database used in browsers to store large data structures and provides indexing functionality for high-performance searching; that is, IndexedDB can provide complete database functionality. Therefore, a desktop application can be built based on the browser kernel—that is, a cross-platform desktop application with a browser kernel can be pre-built, and then IndexedDB can be used as the database for this desktop application. Thus, by combining the two, IndexedDB can be applied to the desktop application, and subsequently, book file management can be implemented based on the IndexedDB database.

[0059] When designing a cross-platform desktop application with a browser engine, considering that Electron, based on Node.js and Chrominum, is a cross-platform desktop application with a browser engine, Electron can be used to build the front-end interface, and IndexedDB can be used as the database. In other words, IndexedDB is used to implement the browser's data storage function, while Electron is used to build the browser-based desktop application. This combination allows the solution in this application to manage book files based on the IndexedDB database.

[0060] Step S102: Based on the visual interface provided by the desktop application, receive the add command and obtain the source file of the book pointed to by the add command.

[0061] As described above, the solution of this application can use Electron to build the front-end interface, that is, it can use the aforementioned desktop application to provide a visual interface, and then receive add instructions based on the visual interface to facilitate user operation. For example, the user can click the add button on the visual interface and then select the file path to specify the source file of the book. After the visual interface detects the user's above operation, it can automatically generate an add instruction and send it to the back-end, so that the back-end can execute the operation of step S102 after receiving the add instruction.

[0062] The add command can include the path to the book, so the source file of the book pointed to by the add command can be obtained based on the add command.

[0063] Step S103: By parsing the source file, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in a preset first format.

[0064] After obtaining the source file of the book pointed to by the add command, considering that the source file formats of different books may differ, and considering that dividing the book content by chapter facilitates management and ensures a better user reading experience, the solution in this application parses the source file, dividing it into chapters, and then processes the content of each chapter into a preset first-format book file. Furthermore, it is understood that the first-format book file needs to be stored in the IndexedDB database; therefore, the first format should be a format supported by the IndexedDB database.

[0065] For example, in one scenario, a node service can be used to add and parse the source file of the book pointed to by the instruction. Furthermore, in practical applications, considering that some books may contain both text and images, both text and images can be processed to ultimately obtain a book file in a preset first format. That is, in a specific embodiment of the present invention, step S103, which describes processing the content of each divided chapter into a book file in a preset first format, can specifically include:

[0066] For each chapter, the image and text content of the chapter are processed into a book file in a preset first format.

[0067] In this implementation, since both the image and text content of the chapters can be processed into a book file in a preset first format, both the image and text content of the chapters are preserved, thus ensuring the user experience.

[0068] Furthermore, it is understandable that, due to the different formats of image and text content, when processing both image and text content of a chapter into a preset first-format book file, especially image content, it can be directly processed into the first-format book file, or it can be converted first and then processed into the first-format book file; neither approach affects the implementation of this invention. For example, in one scenario, the image content of a chapter can be first converted to base64 format, and then combined with the text content of the chapter to process the entire content of the entire chapter into a single JSON data file. That is, in this specific scenario, for each divided chapter, the entire content of the chapter is processed into a JSON data format book file. JSON, or JavaScript Object Notation, is a lightweight text data interchange format, while JavaScript is a lightweight programming language that can be inserted into HTML pages to achieve interactive effects and can be executed by all modern browsers.

[0069] Step S104: Store the book files for each chapter in a database that supports the first format.

[0070] After processing the chapter content into a predefined first-format book file, each chapter's book file can be stored in a database that supports this first format. For example, in one scenario, a book content table can be created in the database, storing the book files by chapter. For instance, the book ID + chapter ID can be used as the primary key of the book content table, and the specific first-format book file for that chapter can be stored as the data content corresponding to that primary key in the book content table.

[0071] After storing the book files for each chapter in the preset IndexedDB database, the book storage process is complete. The specific database type can be set and adjusted as needed, as described above. IndexedDB is a method for storing large amounts of data using a browser, providing complete database functionality. The data it creates can be queried and used offline.

[0072] Step S105: When a reading instruction for a book is received, the chapter specified by the reading instruction is determined, the book file of the chapter specified by the reading instruction is read from the database, and the read book file is converted into a second format and then displayed in a preset visualization interface;

[0073] After the book storage process is completed, when a user needs to read the book later, for example in a practical application, to facilitate the user's operation, the user can click the read button on the visual interface and select the book to be read. Then, after detecting the user's above operation, the visual interface can automatically generate a reading instruction and send it to the backend, so that the backend can execute the operation of step S105 after receiving the reading instruction.

[0074] When a reading instruction is received pointing to a book, it means that the user needs to read the book specified by the instruction. Since the book files were previously stored according to chapters, the chapter specified by the reading instruction can be determined at this point. The book file for that chapter is then read from the database, converted into a second format, and displayed in a preset visual interface. It is understood that the second format should be a format supported by the preset visual interface. For example, in one scenario, the preset visual interface may use HTML (Hypertext Markup Language) format. HTML is a markup language that includes a series of tags. These tags can unify the document format on the network, connecting scattered Internet resources into a logical whole.

[0075] In one specific embodiment of the present invention, step S105, which describes determining the chapter specified by the reading instruction when a reading instruction for a book is received, and reading the book file of the chapter specified by the reading instruction from the database, may specifically include:

[0076] When a reading instruction is received pointing to a book, it is determined whether the reading instruction carries a specified chapter number;

[0077] If so, the book file for the chapter specified in the reading instruction is read from the database based on the chapter number carried in the reading instruction;

[0078] If not, the most recently read chapter of the book by the user will be used as the chapter specified in the reading instruction, and the book file for the chapter specified in the reading instruction will be read from the database.

[0079] This implementation takes into account that, in practical applications, the table of contents of the book selected by the user can be displayed on a visual interface, and the user can click on a chapter to indicate that they want to read that chapter. Therefore, when a reading instruction is received pointing to a book, it can be determined whether the reading instruction carries a specified chapter number. If it carries a chapter number, it means that the user has specified the chapter to read, and the book file of the chapter specified in the reading instruction can be read from the database based on the chapter number carried in the reading instruction.

[0080] In some cases, users may not specify a chapter. For example, if a user clicks on a book but does not select any chapter, and instead clicks the "Continue Reading" icon, it indicates that the user has previously made reading progress. Therefore, the chapter that the user most recently read in the book can be used as the chapter specified in the reading instruction, and the book file for that chapter can be retrieved from the database.

[0081] As can be seen, this implementation allows users to specify a chapter to read or continue reading the most recently read chapter, which is highly flexible and helps to ensure the user's reading experience.

[0082] In one specific embodiment of the present invention, it may further include:

[0083] By parsing the source file, we can obtain the basic book information and the chapter information of each chapter of the book.

[0084] The basic book information and the chapter information of each chapter of the book are stored in the book table of the database;

[0085] Accordingly, after receiving a reading instruction pointing to a book, it may also include:

[0086] Retrieve basic book information and chapter information of the book to which the reading instruction is directed from the book table in the database;

[0087] Accordingly, after converting the read book file to a second format and displaying it in the visualization interface, the process also includes:

[0088] When the user's operation is detected to conform to the preset first operation rule, the chapter information of each chapter of the book obtained from the book table in the database will be displayed in the visualization interface;

[0089] When a user's operation is detected to conform to the preset second operation rule, the basic book information of the book obtained from the book table in the database will be displayed in the visualization interface.

[0090] Specifically, in this implementation, the basic book information and chapter information of each chapter can be obtained by parsing the source file. For example, basic book information may include the book's name, author, total word count, and publication date. Chapter information typically includes the chapter titles; however, in some cases, more chapter information may be available, such as the total word count of each chapter.

[0091] After obtaining the basic book information and the chapter information, both can be stored in the book table of the database. It's understandable that in the previous scenario, a book content table was used to store the content of the specific book file; however, in this implementation, a dedicated book table is set up in the database to store basic book information and chapter information for later use.

[0092] Since this implementation method includes a book table, after receiving a reading instruction for a book, it is necessary to retrieve the basic book information of the book and the chapter information of each chapter from the book table in the database.

[0093] When the read book file is converted into a second format and displayed in a preset visual interface, it indicates that the user is reading the book. At this time, if the user's operation is detected to conform to the preset first operation rule, it means that the user wants to display the chapter information of each chapter of the book. Therefore, the chapter information of each chapter of the book obtained from the book table in the database can be displayed in the visual interface.

[0094] Correspondingly, if the user's operation is detected to conform to the preset second operation rule, it means that the user wants to display the basic book information. Therefore, the basic book information of the book obtained from the book table in the database can be displayed in the visualization interface.

[0095] As can be seen, in this implementation method, when users are reading books, they can easily display chapter information or basic book information of each chapter on the visual interface through simple operations, which helps to further improve the user's reading experience.

[0096] The specific content of the first and second operation rules can be set and adjusted as needed. However, it is understood that the triggering conditions of the first and second operation rules should be relatively simple and conform to the user's operation logic. For example, in a specific embodiment of the present invention, the first operation rule may specifically include: detecting that the user hovers the mouse over a preset first area, and the hovering time exceeds a preset first duration.

[0097] For example, in one scenario, if a user hovers their mouse over the left side of the visualization interface for more than a certain duration, the interface can automatically display the chapter information for each chapter of the book. Of course, in some cases, when there are too many chapters, a scroll bar can be provided so that users can drag the scroll bar to see the chapter information for the corresponding chapter.

[0098] In one specific embodiment of the present invention, the second operation rule may include: detecting that a user has clicked a preset icon. For example, a small icon can be preset in the upper right corner of the visualization interface. As long as the user clicks this preset icon, the visualization interface can automatically display the basic book information of the book.

[0099] In one specific embodiment of the present invention, it may further include:

[0100] Receive a deletion command and identify the book to which the deletion command is directed;

[0101] The system deletes the book files for each chapter of the book specified by the deletion command in the database, as well as the basic book information and chapter information for each chapter.

[0102] In this implementation, considering that in some situations a user may need to delete a book, after receiving the deletion command, the book to which the deletion command points can be determined, and then the corresponding content about the book in the database can be deleted. For example, in the example above, the book files of each chapter of the book in the book content table can be deleted, and the basic book information of the book and the chapter information of each chapter of the book in the book table can be deleted.

[0103] In one specific embodiment of the present invention, it may further include:

[0104] After storing the book files for each chapter in a database that supports the first format, the source file is parsed again, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in the preset first format. Then, it is determined whether the newly obtained book files for each chapter are consistent with the book files for each chapter stored in the database.

[0105] If so, the book files for each chapter stored in the database have passed the verification, and the source files of the books are automatically deleted.

[0106] This implementation takes into account that after the book file management method of this application is executed on a certain book, as described above, the IndexedDB database stores the book files of each chapter of the book. That is, the IndexedDB database set up in this application stores the entire content of the book. Since the source file of the book is still there, this implementation takes into account that the source file can be deleted at this time to avoid wasting storage space.

[0107] Furthermore, this implementation takes into account that the process of converting the source file into book files for each chapter in the IndexedDB database of this application may encounter anomalies. Therefore, verification should be performed before deleting the source file. Since the book files for each chapter in the database have different formats from the source file, a direct comparison between the two cannot be performed for verification. Therefore, in this implementation, the book files for each chapter of the book can be regenerated, that is, the operation of step S103 is re-executed once. The book files for each chapter of the book obtained this time are used as verification files for comparison with the book files for each chapter of the book stored in the database. It is understood that if the verification file is consistent with the book files for each chapter of the book stored in the database, the verification is considered to have passed, which means that the process of obtaining the book files for each chapter of the book by executing step S103 did not encounter any anomalies. Therefore, in this implementation, the source file of the book can be automatically deleted to save storage space.

[0108] Furthermore, in practical applications, if the verification fails, the source file of the book can be retained.

[0109] By applying the technical solution provided in this invention, unified management of book files is achieved through a pre-defined IndexedDB database, thereby providing users with a comfortable reading experience. Specifically, this application considers that IndexedDB is a database used in browsers to store large data structures, providing complete database functionality. Therefore, a desktop application can be built based on a browser kernel. That is, a cross-platform desktop application with a browser kernel can be pre-defined, and then IndexedDB can be used as the database for this desktop application. Thus, after combining the two, IndexedDB can be applied to the desktop application, and subsequent management of book files can be achieved based on the IndexedDB database. Furthermore, since it is a cross-platform desktop application, the flexibility of this application's solution is improved. When managing book files, the source file of the book pointed to by the addition command can be obtained based on the visual interface provided by the desktop application after receiving the addition command. That is, the source file of the book that the user has downloaded to their local machine and wants to manage uniformly. Since the source file formats are different, this application considers that, for the sake of unified management, the source file can be parsed and divided into chapters. For each chapter, the content of the chapter will be processed into a book file in a pre-defined first format supported by the database. After parsing, the book files for each chapter can be stored in a database that supports the first format. When a reading instruction for a book is received, the book file for the chapter specified by the reading instruction can be read from the database, and the read book file can be converted into the second format and displayed in a preset visual interface. The second format is the format supported by the visual interface provided by the desktop application.

[0110] As can be seen, the solution proposed in this application allows indexedDB to be applied to desktop applications, which can help users manage scattered book documents in a unified manner. That is, by using a pre-set database to achieve unified management of book files, it is beneficial to improve the reading experience and provide a comfortable reading experience.

[0111] Corresponding to the above method embodiments, this invention also provides a book document management system, which can be referred to in conjunction with the above.

[0112] See Figure 2 The diagram shown is a structural schematic of a book document management system according to the present invention, comprising:

[0113] Database building module 201 is used to use IndexedDB as the database of a desktop application after a pre-built cross-platform desktop application with a browser kernel.

[0114] The addition instruction receiving module 202 is used to receive addition instructions based on the visual interface provided by the desktop application, and to obtain the source file of the book pointed to by the addition instruction;

[0115] The format conversion module 203 is used to parse the source file, divide the source file into chapters, and process the content of each chapter into a book file in a preset first format.

[0116] The storage execution module 204 is used to store the book files of each chapter in a database that supports the first format;

[0117] The reading instruction receiving module 205 is used to determine the chapter specified by the reading instruction when it receives a reading instruction pointing to a book, read the book file of the chapter specified by the reading instruction from the database, convert the read book file into a second format and then display it in the visualization interface;

[0118] The second format is the format supported by the visual interface provided by the desktop application.

[0119] In one specific embodiment of the present invention, it may further include:

[0120] The book table editing module is used to parse the source file to obtain the basic book information of the book and the chapter information of each chapter of the book; and to store the basic book information and the chapter information of each chapter of the book in the book table of the database.

[0121] Accordingly, after receiving a reading instruction pointing to a book, the following is also included:

[0122] The book table information retrieval module is used to retrieve basic book information and chapter information of each chapter of the book from the book table in the database;

[0123] Accordingly, after converting the read book file to a second format and displaying it in the visualization interface, the process also includes:

[0124] The first display module is used to display the chapter information of each chapter of the book obtained from the book table in the database in the visual interface when the user's operation is detected to conform to the preset first operation rule.

[0125] The second display module is used to display the basic book information of the book obtained from the book table in the database in the visual interface when the user's operation is detected to conform to the preset second operation rule.

[0126] In one specific embodiment of the present invention, the first operation rule includes: detecting that the user hovers the mouse over a preset first area and the hovering time exceeds a preset first duration;

[0127] The second operation rule includes: detecting that the user clicked a preset icon.

[0128] In one specific embodiment of the present invention, it further includes:

[0129] The deletion instruction receiving module is used to receive deletion instructions and determine the book to which the deletion instruction is directed;

[0130] The deletion execution module is used to delete the book files for each chapter of the book pointed to by the deletion command in the database, the basic book information of the book, and the chapter information of each chapter of the book.

[0131] In one specific embodiment of the present invention, the reading instruction receiving module 205 includes:

[0132] The reading instruction receiving unit is used to: when a reading instruction pointing to a book is received, determine whether the reading instruction carries a specified chapter number;

[0133] If so, the first chapter content reading unit is triggered, which is used to read the book file of the chapter specified by the reading instruction from the database based on the chapter number carried in the reading instruction;

[0134] If not, the second chapter content reading unit is triggered, which uses the most recently read chapter of the book by the user as the chapter specified by the reading instruction, and reads the book file of the chapter specified by the reading instruction from the database;

[0135] The content display unit is used to convert the read book file into a second format and then display it in the visualization interface.

[0136] In one specific embodiment of the present invention, the format conversion module 203 processes the content of each divided chapter into a book file in a preset first format, specifically for:

[0137] For each chapter, the image and text content of the chapter are processed into a book file in a preset first format.

[0138] In one specific embodiment of the present invention, a source file deletion module is further included, used for:

[0139] After storing the book files for each chapter in a database that supports the first format, the source file is parsed again, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in the preset first format. It is then determined whether the newly obtained book files for each chapter are consistent with the book files for each chapter stored in the database. If they are consistent, the book files for each chapter stored in the database are confirmed to have passed the verification, and the source files of the books are automatically deleted.

[0140] Corresponding to the above methods and system embodiments, this invention also provides a book document management device and a computer-readable storage medium, which can be referred to in conjunction with the above.

[0141] See also Figure 3 The management equipment for these book documents may include:

[0142] Memory 301 is used to store computer programs;

[0143] Processor 302 is configured to execute a computer program to implement the steps of the book file management method as described in any of the above embodiments.

[0144] See also Figure 4 The computer-readable storage medium 40 stores a computer program 41, which, when executed by a processor, implements the steps of the book file management method as described in any of the above embodiments. The computer-readable storage medium 40 referred to herein includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0145] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0146] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0147] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A method for managing book documents, characterized in that, include: After pre-setting a cross-platform desktop application with a browser kernel, IndexedDB is used as the database of the desktop application. Based on the visual interface provided by the desktop application, the system receives an add command and obtains the source file of the book pointed to by the add command. By parsing the source file, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in a preset first format; All book files for each chapter are stored in the database that supports the first format; When a reading instruction for the book is received, the chapter specified by the reading instruction is determined, the book file of the chapter specified by the reading instruction is read from the database, and the read book file is converted into a second format and then displayed in the visualization interface; Wherein, the second format is a format supported by the visual interface provided by the desktop application; Also includes: After storing the book files of each chapter in a database that supports the first format, the parsing of the source file is re-executed, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file of the preset first format. Then, it is determined whether the newly obtained book files of each chapter are consistent with the book files of each chapter stored in the database. If so, the book files for each chapter stored in the database are confirmed to have passed the verification, and the source files of the books are automatically deleted.

2. The method for managing book documents according to claim 1, characterized in that, Also includes: By parsing the source file, the basic book information of the book is obtained, as well as the chapter information of each chapter of the book; The basic book information of the book, as well as the chapter information of each chapter of the book, are stored in the book table of the database; Accordingly, after receiving a reading instruction for the book, the process also includes: Retrieve basic book information of the book indicated by the reading instruction and chapter information of each chapter of the book from the book table of the database; Accordingly, after converting the read book file into the second format and displaying it in the visualization interface, the process also includes: When a user's operation is detected to conform to a preset first operation rule, the chapter information of each chapter of the book obtained from the book table in the database will be displayed in the visualization interface. When a user's operation is detected to conform to a preset second operation rule, the basic book information of the book obtained from the book table in the database will be displayed in the visualization interface.

3. The method for managing book documents according to claim 2, characterized in that, The first operation rule includes: detecting that the user hovers the mouse over a preset first area for a duration exceeding a preset first duration; The second operation rule includes: detecting that the user clicked a preset icon.

4. The method for managing book documents according to claim 2, characterized in that, Also includes: Receive a deletion command and identify the book to which the deletion command is directed; The book files for each chapter of the book pointed to by the deletion command in the database, the basic book information of the book, and the chapter information of each chapter of the book are all deleted.

5. The method for managing book documents according to claim 1, characterized in that, When a reading instruction for the book is received, the chapter specified by the reading instruction is determined, and the book file for the chapter specified by the reading instruction is read from the database, including: When a reading instruction is received for the book, it is determined whether the reading instruction carries a specified chapter number; If so, then based on the chapter number carried in the reading instruction, the book file of the chapter specified by the reading instruction is read from the database; If not, the most recently read chapter of the book by the user will be used as the chapter specified by the reading instruction, and the book file of the chapter specified by the reading instruction will be read from the database.

6. The method for managing book documents according to claim 1, characterized in that, For each chapter, the content of the chapter is processed into a book file in a preset first format, including: For each chapter, the image and text content of the chapter are processed into a book file in a preset first format.

7. A book document management system, characterized in that, include: A database building module is used to use IndexedDB as the database of a pre-built cross-platform desktop application with a browser kernel. An instruction receiving module is used to receive an instruction based on the visual interface provided by the desktop application, and to obtain the source file of the book pointed to by the instruction. The format conversion module is used to parse the source file, divide the source file into chapters, and process the content of each chapter into a book file in a preset first format. The storage execution module is used to store the book files of each chapter in a database that supports the first format; The reading instruction receiving module is used to determine the chapter specified by the reading instruction when it receives a reading instruction pointing to the book, read the book file of the chapter specified by the reading instruction from the database, convert the read book file into a second format, and then display it in the visualization interface. Wherein, the second format is a format supported by the visual interface provided by the desktop application; It also includes a source file deletion module, used for: After storing the book files for each chapter in a database that supports the first format, the source file is parsed again, the source file is divided into chapters, and for each chapter, the content of the chapter is processed into a book file in the preset first format. It is then determined whether the newly obtained book files for each chapter are consistent with the book files for each chapter stored in the database. If they are consistent, the book files for each chapter stored in the database are confirmed to have passed the verification, and the source files of the books are automatically deleted.

8. A book document management device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the book document management method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the book document management method as described in any one of claims 1 to 6.