CN113987106A - Electronic book bookmark adding method, electronic equipment and storage medium - Google Patents

Electronic book bookmark adding method, electronic equipment and storage medium Download PDF

Info

Publication number
CN113987106A
CN113987106A CN202111274755.7A CN202111274755A CN113987106A CN 113987106 A CN113987106 A CN 113987106A CN 202111274755 A CN202111274755 A CN 202111274755A CN 113987106 A CN113987106 A CN 113987106A
Authority
CN
China
Prior art keywords
electronic book
bookmark
text
bookmarks
book
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.)
Pending
Application number
CN202111274755.7A
Other languages
Chinese (zh)
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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202111274755.7A priority Critical patent/CN113987106A/en
Publication of CN113987106A publication Critical patent/CN113987106A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Abstract

The invention discloses an electronic book bookmark adding method, electronic equipment and a storage medium, wherein the method comprises the following steps: carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted; carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles; sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks; and displaying the generated electronic book bookmark. The invention realizes batch generation of the e-book bookmarks, does not need to generate the e-book bookmarks by a user manually, and improves the generation efficiency of the e-book bookmarks.

Description

Electronic book bookmark adding method, electronic equipment and storage medium
Technical Field
The invention relates to the field of electronic books, in particular to an electronic book bookmark adding method, electronic equipment and a storage medium.
Background
The electronic book bookmark has a marking function, can be used for helping a user to find the content corresponding to the electronic book bookmark quickly, is convenient for the user to know the book chapter structure quickly based on the electronic book bookmark, and improves browsing efficiency. The e-book bookmark can provide convenient reading experience for a user, if the e-book bookmark is not set in the e-book, the user needs to manually add the e-book bookmark, and the information such as the content of the e-book bookmark and the corresponding page number needs to be manually added, so that the workload of the user is increased, the user experience is poor, and the generation efficiency of the e-book bookmark is low.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide an electronic book bookmark adding method, an electronic device, and a storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided an electronic book bookmark adding method, including:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
According to another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, where the executable instruction causes a processor to perform an operation corresponding to any one of the electronic book bookmark adding methods described above.
According to the electronic book bookmark adding method, the electronic equipment and the storage medium, paragraph identification and style clustering processing are carried out on text contents of the electronic book, electronic book bookmarks are generated in batches based on the electronic book, the generation efficiency of the electronic book bookmarks is improved, and user experience is better.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of an electronic book bookmark adding method according to an embodiment of the invention;
FIG. 2 illustrates an electronic book bookmark presentation page schematic;
FIG. 3 is a flow chart illustrating an electronic book bookmark adding method according to another embodiment of the present invention;
FIG. 4 shows a flow diagram of an electronic book bookmark adding method according to yet another embodiment of the present invention;
FIG. 5 shows a flowchart of an electronic book bookmark adding method according to still another embodiment of the present invention;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Example one
Fig. 1 is a flowchart illustrating an electronic book bookmark adding method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S101, paragraph identification is carried out on text contents of the electronic book, and paragraph contents of bookmarks of the electronic book to be extracted are obtained.
The embodiment generates the bookmark of the electronic book based on the text content of the electronic book. Specifically, all text contents in the electronic book are obtained first, paragraph recognition is performed on the text contents, and paragraph recognition can be performed based on the font size, font style, paragraph identification, and the like of the text, from which paragraph contents that can be used for generating the electronic book bookmark, that is, the paragraph contents of the electronic book bookmark to be extracted, such as paragraph contents 1, paragraph contents 2, paragraph contents 3, and the like corresponding to a chapter title, a secondary title, a tertiary title, and the like, are determined.
Step S102, carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles.
According to the obtained paragraph contents, carrying out character style clustering processing on each paragraph content, clustering the paragraphs with the same character style together to obtain a text style set containing a plurality of different character styles, wherein the text style set comprises a 36-size font, a 24-size font, a 20-size font and the like. The characters in different paragraph contents correspond to a character style, for example, paragraph content 1 corresponds to font number 36, paragraph content 2 corresponds to font number 24, and paragraph content 3 corresponds to font number 20.
And S103, sequencing the text style sets, and determining the hierarchical relation of the electronic book bookmarks according to the sequenced text style sets to generate the electronic book bookmarks.
And sequencing the obtained text style set, for example, sequencing the font sizes in the text style set from large to small, or sequencing the font styles in the text style set according to a specified sequence, and the like, to obtain a sequenced text style set. Each text style corresponds to one of the sequences, such as font No. 36, font No. 24, font No. 2, and font No. 20, and so on.
According to the ordering of the text style set, the hierarchical relationship between the text styles can be determined, such as 36 font for the first layer, 24 font for the second layer, 20 font for the third layer, and so on. According to the hierarchical relationship of the text styles, the hierarchical relationship of the electronic book bookmarks is correspondingly determined, and the paragraph contents corresponding to the text styles are set to be corresponding hierarchical levels, for example, the text in the paragraph content 1 is set to be a first hierarchical level of the electronic book bookmarks, the text in the paragraph content 2 is set to be a second hierarchical level of the electronic book bookmarks, and the text in the paragraph content 3 is set to be a third hierarchical level of the electronic book bookmarks. Further, the paragraph contents are associated with the page numbers of the paragraph contents in the electronic book, and electronic book bookmarks of various levels are generated, so as to obtain the electronic book bookmark shown in fig. 2.
And step S104, displaying the generated electronic book bookmark.
The generated electronic book bookmark can be inserted into the electronic book for displaying, for example, before being inserted into the text content of the electronic book for displaying. The user can check the e-book bookmarks, click any e-book bookmark, and directly jump to the corresponding page position in the e-book according to the page corresponding to the e-book bookmark, so that the user can conveniently and directly browse the corresponding e-book content.
Furthermore, the electronic book bookmarks can be set to be displayed in a tree structure according to the hierarchical relationship of the electronic book bookmarks, only the electronic book bookmarks of the first hierarchy can be displayed during displaying, and the electronic book bookmarks of the first hierarchy are set to be as "+" before the electronic book bookmarks of the first hierarchy, which means that the electronic book bookmarks also include lower electronic book bookmarks. And when the user clicks the '+' position in front of the bookmark of the first-level electronic book, the included lower-level electronic book bookmarks are unfolded one by one and displayed to the user. When a user selects a certain electronic book bookmark, the display style of the electronic book bookmark can be changed, and the selected state of the electronic book bookmark is marked. During display, if the number of the characters contained in the bookmark of the electronic book is more than the display range of one line of the display page, the characters can be displayed in a line-changing manner automatically. The display styles of the e-book bookmark, such as characters, page numbers, and the like, may be displayed according to a preset style, or may be designated by a user as a display style, and the like, which is not limited herein.
According to the method for adding the e-book bookmarks, provided by the invention, paragraph identification and style clustering processing are carried out on the text content of the e-book, so that the e-book bookmarks are generated in batch based on the e-book, the generation efficiency of the e-book bookmarks is improved, and the user experience is better.
Example two
Fig. 3 is a flowchart illustrating an electronic book bookmark adding method according to another embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
step S301, according to text fonts and/or paragraph marks in the electronic book, paragraph recognition is carried out on text contents of the electronic book, and text paragraphs and annotation paragraphs are checked to obtain paragraph contents of bookmarks of the electronic book to be extracted.
Paragraph contents of the electronic book bookmark to be extracted include paragraph contents such as a text title, a paragraph title and the like in the electronic book, and each paragraph in the electronic book is identified through different paragraph marks, or paragraphs such as an annotation paragraph and the like with the font size smaller than that of a text font in a text paragraph can be identified according to text fonts in the electronic book, so that the text paragraph, the annotation paragraph and the like can be searched out, and the paragraph contents except the text paragraph and the annotation paragraph are obtained as the paragraph contents of the electronic book bookmark to be extracted.
Step S302, carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles.
And performing character style clustering processing on characters in the paragraph contents of the bookmark of the electronic book to be extracted, clustering according to different character styles, namely clustering different paragraph contents according to respective character styles, and dividing the paragraph contents with the same character style into the same type to obtain a text style set containing a plurality of different character styles.
Step S303, sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks according to the sequenced text style sets to generate the electronic book bookmarks.
The sequencing processing can directly sequence the text style set from large to small according to the text fonts of the text styles, and the hierarchical relation of the electronic book bookmarks is determined according to the sequence of the sequenced text fonts; or, according to the ordered text style set, setting a designated level for each text style, for example, designating 36 # font as a first layer, 20 # font as a second layer, and 18 # font as a third layer, determining the level relationship of the electronic book bookmarks according to the designated level, and the like, so that the level relationship of the electronic book bookmarks can be flexibly set, and paragraph contents and corresponding page numbers of corresponding levels can be conveniently extracted from the electronic book according to the designated level to generate the electronic book bookmarks containing different levels. The designated levels can be set according to implementation conditions, each text style in the text style set can be set to the designated levels, some text styles in the text style set can be selected to set the designated levels, and the required levels can be flexibly set according to requirements, for example, the designated levels can include 2-level levels, 3-level levels, 4-level levels and the like, so that electronic book bookmarks of corresponding levels can be conveniently generated.
And step S304, displaying the generated electronic book bookmark.
Displaying the generated electronic book bookmarks of all levels in the electronic book, and skipping to the corresponding page number in the electronic book by clicking any electronic book bookmark by a user to browse the content of the electronic book.
Step S305, responding to an editing request for the displayed electronic book bookmark triggered by the user, and jumping to an electronic book bookmark editing page.
If the user needs to modify the generated electronic book bookmark, an editing request can be triggered in the display page of the electronic book bookmark, the editing request triggered by the user is responded, and the electronic book bookmark editing page is skipped to. The user may trigger the edit request by, for example, clicking an "edit bookmark" button, where the "edit bookmark" may be set in a bookmark page of the electronic book, or may be set in the page of the electronic book, which is not limited herein. Or, the user can also trigger an editing request of the electronic book bookmark by double-clicking characters, page numbers and the like in the electronic book bookmark, and correspondingly convert the page displaying the electronic book bookmark into an electronic book bookmark editing page, so that the user can conveniently edit the double-clicked electronic book bookmark.
And S306, responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
In the electronic book bookmark editing page, responding to any editing operation of the electronic book bookmark triggered by a user, and editing the electronic book bookmark according to the specific editing operation. Specifically, for example, in an electronic book bookmark editing page, a user triggers the character and/or page number editing operation on any selected electronic book bookmark by double clicking characters, page numbers and the like in the electronic book bookmark, responds to the triggering of the character and/or page number editing operation by the user, provides an editing entry, and facilitates the user to directly edit the characters, the page numbers and the like of the electronic book bookmark. Or, the user may select any electronic book bookmark, select to perform an operation such as deleting a current electronic book bookmark by selecting a delete menu, right clicking to call out the delete menu, and the like, respond to the deletion operation of any electronic book bookmark triggered by the user, delete the current electronic book bookmark, and delete each electronic book bookmark of a next stage when the current electronic book bookmark also contains a next stage electronic book bookmark. Or, the user selects a certain position, selects to add a certain electronic book bookmark by selecting an add menu, right clicking to call out the add menu and other operations, such as adding a peer electronic book bookmark at the current position, adding a superior electronic book bookmark at the current position, adding a subordinate electronic book bookmark at the current position and the like, responds to the adding operation of the electronic book bookmark triggered by the user, adds the electronic book bookmark at the selected position, edits the added electronic book bookmark, and edits characters, page numbers and the like of the electronic book bookmark. Further, after the editing operation, the user makes the editing operation effective after confirming the operation, and the edited bookmark of the electronic book is obtained. And if the user clicks a confirmation button, obtaining the edited e-book bookmark. In the modification process of the electronic book bookmark, if the user is not satisfied with the edited electronic book bookmark, the edited electronic book can be restored to the electronic book bookmark before editing by selecting to restore the electronic book bookmark operation before confirming the operation.
Further, if the electronic book itself has the electronic book bookmark, the electronic book bookmark can be directly obtained for displaying, editing, etc. without adopting the generation in the above steps S301 to S303.
The above is an example, and the specific editing operation may be set according to the implementation, and is not limited herein.
According to the method for adding the e-book bookmarks, provided by the invention, paragraph identification and style clustering processing are carried out on the text content of the e-book, text paragraphs and annotation paragraphs are searched out, and the hierarchical relationship of the e-book bookmarks is set based on the specified hierarchy, so that the e-book bookmarks can be accurately and conveniently extracted and generated in batch from the e-book. Furthermore, through the electronic book bookmark editing page, the user can add, delete, edit and modify the electronic book bookmark and the like, and the user is provided with an inlet for flexibly setting the electronic book bookmark.
EXAMPLE III
Fig. 4 is a flowchart illustrating an electronic book bookmark adding method according to another embodiment of the present invention, as shown in fig. 4, the method includes the following steps:
step S401 detects whether the electronic book has electronic book directory information.
In the embodiment, in consideration of the situation that the e-book directory information already exists in the e-book, the existing e-book directory information can be directly utilized to obtain the e-book bookmark.
Specifically, the electronic book is detected, whether the electronic book has the electronic book directory information is judged, for example, whether the electronic book has the electronic book directory information is judged by detecting whether the text of the electronic book has the directory page, and the like, if so, the step S402 is executed; if not, according to the description of the first embodiment and the second embodiment, paragraph contents are extracted from the electronic book to generate electronic book bookmarks in batch.
Step S402, extracting the directory information of the electronic book.
And extracting the e-book directory information according to the directory hierarchy to obtain directory characters, page numbers and other information of all levels of directories in the e-book directory information.
Step S403, generating an electronic book bookmark according to the electronic book directory information.
Determining the hierarchical relationship of the e-book bookmarks according to the directories at different levels in the e-book directory information, and generating the e-book bookmarks according to the determined hierarchical relationship, the directory characters and the page numbers. According to the directory characters 'first chapter xxx' and page number '1' of the first directory level in the electronic book directory, the characters 'first chapter xx' and the page number '1' of the first directory level of the electronic book bookmark are generated.
Further, if the e-book directory information exists in the e-book and the e-book bookmark also exists, the e-book bookmark can be directly used according to the implementation condition, or the e-book bookmark can be generated according to the e-book directory information, the generated e-book bookmark and the original e-book bookmark are combined, the e-book bookmarks with the same hierarchy and different contents are mutually fused to obtain a new e-book bookmark and the like, so that the bookmark information can be extracted more completely and accurately.
Further, the present embodiment may further include the following steps:
and S404, responding to an editing request for the displayed electronic book bookmark triggered by the user, and jumping to an electronic book bookmark editing page.
Step S405, responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
When the electronic book directory information only contains chapter characters and does not contain page numbers, or the electronic book directory information only contains characters of each roll in the electronic book and does not contain chapter characters and the like is less, the generated electronic book bookmark also contains less content, and the electronic book bookmark can be further edited through an electronic book bookmark editing page.
The details of steps S404 and S405 are described in steps S305 and S306 in embodiment two, and are not described herein again.
According to the method for adding the e-book bookmark provided by the invention, the e-book bookmark is directly generated by using the e-book directory information existing in the e-book, so that the generation efficiency of the e-book bookmark is improved. Furthermore, through the electronic book bookmark editing page, the user can add, delete, edit and modify the electronic book bookmark and the like, and the user is provided with an inlet for flexibly setting the electronic book bookmark.
Example four
Fig. 5 is a flowchart illustrating an electronic book bookmark adding method according to still another embodiment of the present invention, as shown in fig. 5, the method includes the following steps:
step S501, splitting the electronic book into a plurality of single chapter files according to page numbers in the bookmark of the electronic book.
After the electronic book bookmarks are generated by using the above embodiments, the electronic book may be further split into a plurality of single-chapter files according to page numbers in the electronic book bookmarks and based on page number intervals, and each file includes one chapter or one piece of electronic book content. The file may be, for example, a pdf file, or the file obtained by splitting may be converted into other types of files, such as a txt file, and the format of the conversion may be set to be the same file format for each file, or different file formats may be set for different files.
The electronic book is split according to the electronic book bookmarks to obtain a plurality of files, so that the files based on different contents can conveniently display part of the contents of the electronic book, and a user can conveniently recommend the files, and the like.
According to the method for adding the electronic book bookmark, the electronic book can be split according to the page number in the electronic book bookmark, and the split file can be conveniently recommended, displayed and the like.
EXAMPLE five
An embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the electronic book bookmark adding method in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted; carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles; sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks; and displaying the generated electronic book bookmark.
In an alternative embodiment, the executable instructions further cause the processor to: sequencing the text style set from large to small according to the text fonts of the text styles, and determining the hierarchical relation of the bookmarks of the electronic book according to the sequenced text fonts; and generating the bookmark of the electronic book according to the determined hierarchical relation, the paragraph content and the page number corresponding to the text font.
In an alternative embodiment, the executable instructions further cause the processor to: and sequencing the text style set, and determining the hierarchical relation of the electronic book bookmarks according to the designated hierarchy set for the texts in the sequenced text style set so as to generate the electronic book bookmarks.
In an alternative embodiment, the executable instructions further cause the processor to: and carrying out paragraph identification on the text content of the electronic book according to the text font and/or paragraph identification in the electronic book, and checking the text paragraphs and the annotation paragraphs to obtain the paragraph content of the bookmark of the electronic book to be extracted.
In an alternative embodiment, the executable instructions further cause the processor to: responding to an editing request for the displayed electronic book bookmark triggered by a user, and jumping to an electronic book bookmark editing page; and responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
In an alternative embodiment, the executable instructions further cause the processor to: responding to character and/or page number editing operation of any electronic book bookmark triggered by a user, and providing an editing entry for the user to edit the electronic book bookmark; and/or deleting the current electronic book bookmark and/or each electronic book bookmark at the lower level of the current electronic book bookmark in response to the deletion operation of any electronic book bookmark triggered by the user; and/or responding to the addition operation of the electronic book bookmark triggered by the user, adding the electronic book bookmark at the selected position, and editing the added electronic book bookmark.
In an alternative embodiment, the executable instructions further cause the processor to: detecting whether the electronic book has electronic book directory information or not; if yes, extracting to obtain the e-book directory information; and generating an electronic book bookmark corresponding to the electronic book directory information.
In an alternative embodiment, the executable instructions further cause the processor to: determining the hierarchical relation of the e-book bookmarks according to all levels of directories in the e-book directory information; and generating the bookmark of the electronic book according to the determined hierarchical relationship, the directory characters and the page number.
In an alternative embodiment, the executable instructions further cause the processor to: and splitting the electronic book into a plurality of single chapter files according to page numbers in the bookmark of the electronic book.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 6, the electronic device may include: a processor (processor)602, a communication Interface 604, a memory 606, and a communication bus 608.
Wherein:
the processor 602, communication interface 604, and memory 606 communicate with one another via a communication bus 608.
A communication interface 604 for communicating with network elements of other devices, such as clients or other servers.
The processor 602 is configured to execute the program 610, and may specifically perform relevant steps in the above-described embodiment of the electronic book bookmark adding method.
In particular, program 610 may include program code comprising computer operating instructions.
The processor 602 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 606 for storing a program 610. Memory 606 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted; carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles; sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks; and displaying the generated electronic book bookmark.
In an alternative embodiment, the program 610 is configured to enable the processor 602 to perform an ordering process on the text style set according to the text fonts of the text styles from large to small, and determine the hierarchical relationship of the e-book bookmarks according to the ordered text fonts; and generating the bookmark of the electronic book according to the determined hierarchical relation, the paragraph content and the page number corresponding to the text font.
In an alternative embodiment, the program 610 is configured to enable the processor 602 to perform an ordering process on the text style set, and determine a hierarchical relationship of the electronic book bookmarks according to a specified hierarchy set for texts in the ordered text style set, so as to generate the electronic book bookmarks.
In an alternative embodiment, the program 610 is configured to enable the processor 602 to perform paragraph recognition on text content of the electronic book according to text fonts and/or paragraph identifications in the electronic book, and to search text paragraphs and annotation paragraphs to obtain paragraph content of bookmarks of the electronic book to be extracted.
In an alternative embodiment, program 610 is configured to cause processor 602 to jump to an electronic book bookmark editing page in response to a user-triggered edit request for a presented electronic book bookmark; and responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
In an alternative embodiment, program 610 is configured to cause processor 602 to provide an editing entry for a user to edit an electronic book bookmark in response to a user-triggered text and/or page number editing operation on any electronic book bookmark; and/or deleting the current electronic book bookmark and/or each electronic book bookmark at the lower level of the current electronic book bookmark in response to the deletion operation of any electronic book bookmark triggered by the user; and/or responding to the addition operation of the electronic book bookmark triggered by the user, adding the electronic book bookmark at the selected position, and editing the added electronic book bookmark.
In an alternative embodiment, program 610 is configured to cause processor 602 to detect whether ebook directory information exists in the ebook; if yes, extracting to obtain the e-book directory information; and generating an electronic book bookmark corresponding to the electronic book directory information.
In an alternative embodiment, the program 610 is configured to enable the processor 602 to determine a hierarchical relationship of ebook bookmarks according to directories at different levels in the ebook directory information; and generating the bookmark of the electronic book according to the determined hierarchical relationship, the directory characters and the page number.
In an alternative embodiment, program 610 is configured to cause processor 602 to split an electronic book into a plurality of single-chapter files according to page numbers in bookmarks of the electronic book.
For specific implementation of each step in the program 610, reference may be made to the corresponding description in the corresponding step in the above-described electronic book bookmark adding embodiment, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
By the scheme provided by the embodiment, paragraph identification and style clustering processing are performed on the text content of the electronic book, batch generation of electronic book bookmarks based on the electronic book is realized, generation efficiency of the electronic book bookmarks is improved, and user experience is better.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. an electronic book bookmark adding method, comprising:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
A2. The method according to a1, wherein the ordering the text style set, and the generating the electronic book bookmark according to the hierarchical relationship of the electronic book bookmark determined corresponding to the ordered text style set specifically includes:
sequencing the text style set from large to small according to the text fonts of the text styles, and determining the hierarchical relation of the bookmarks of the electronic book according to the sequenced text fonts;
and generating the bookmark of the electronic book according to the determined hierarchical relation, the paragraph content and the page number corresponding to the text font.
A3. The method according to a1, wherein the ordering the text style set, and the generating the electronic book bookmark according to the hierarchical relationship of the electronic book bookmark determined corresponding to the ordered text style set specifically includes:
and sequencing the text style set, and determining the hierarchical relation of the electronic book bookmarks according to the designated hierarchy set for the texts in the sequenced text style set so as to generate the electronic book bookmarks.
A4. The method according to a1, wherein the paragraph recognition on the text content of the electronic book and the obtaining of the paragraph content of the bookmark of the electronic book to be extracted further includes:
and carrying out paragraph identification on the text content of the electronic book according to the text font and/or paragraph identification in the electronic book, and checking the text paragraphs and the annotation paragraphs to obtain the paragraph content of the bookmark of the electronic book to be extracted.
A5. The method of any one of a1-a4, wherein the method further comprises:
responding to an editing request for the displayed electronic book bookmark triggered by a user, and jumping to an electronic book bookmark editing page;
and responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
A6. The method of A5, wherein, in response to a user-triggered editing operation on an electronic book bookmark, the correspondingly editing the electronic book bookmark further includes:
responding to character and/or page number editing operation of any electronic book bookmark triggered by a user, and providing an editing entry for the user to edit the electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the deletion operation of any electronic book bookmark triggered by a user, and deleting the current electronic book bookmark and/or each electronic book bookmark at the lower level of the current electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the adding operation of the electronic book bookmark triggered by the user, adding the electronic book bookmark at the selected position, and editing the added electronic book bookmark.
A7. The method of any one of a1-a6, wherein the method further comprises:
detecting whether electronic book directory information exists in the electronic book;
if yes, extracting to obtain the e-book directory information;
and generating an electronic book bookmark corresponding to the electronic book directory information.
A8. The method according to a7, wherein the generating an e-book bookmark according to the e-book directory information further includes:
determining the hierarchical relationship of the electronic book bookmarks according to all levels of directories in the electronic book directory information;
and generating the bookmark of the electronic book according to the determined hierarchical relationship, the directory characters and the page number.
A9. The method of any one of a1-A8, wherein the method further comprises:
splitting the electronic book into a plurality of single chapter files according to page numbers in the electronic book bookmarks.
The invention also discloses: B10. an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
B11. The electronic device of B10, the executable instructions further cause the processor to:
sequencing the text style set from large to small according to the text fonts of the text styles, and determining the hierarchical relation of the bookmarks of the electronic book according to the sequenced text fonts;
and generating the bookmark of the electronic book according to the determined hierarchical relation, the paragraph content and the page number corresponding to the text font.
B12. The electronic device of B10, the executable instructions further cause the processor to:
and sequencing the text style set, and determining the hierarchical relation of the electronic book bookmarks according to the designated hierarchy set for the texts in the sequenced text style set so as to generate the electronic book bookmarks.
B13. The electronic device of B10, the executable instructions further cause the processor to:
and carrying out paragraph identification on the text content of the electronic book according to the text font and/or paragraph identification in the electronic book, and checking the text paragraphs and the annotation paragraphs to obtain the paragraph content of the bookmark of the electronic book to be extracted.
B14. The electronic device of any of B10-B13, the executable instructions further cause the processor to:
responding to an editing request for the displayed electronic book bookmark triggered by a user, and jumping to an electronic book bookmark editing page;
and responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
B15. The electronic device of B14, the executable instructions further cause the processor to:
responding to character and/or page number editing operation of any electronic book bookmark triggered by a user, and providing an editing entry for the user to edit the electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the deletion operation of any electronic book bookmark triggered by a user, and deleting the current electronic book bookmark and/or each electronic book bookmark at the lower level of the current electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the adding operation of the electronic book bookmark triggered by the user, adding the electronic book bookmark at the selected position, and editing the added electronic book bookmark.
B16. The electronic device of any of B10-B15, the executable instructions further cause the processor to:
detecting whether electronic book directory information exists in the electronic book;
if yes, extracting to obtain the e-book directory information;
and generating an electronic book bookmark corresponding to the electronic book directory information.
B17. The electronic device of B16, the executable instructions further cause the processor to:
determining the hierarchical relationship of the electronic book bookmarks according to all levels of directories in the electronic book directory information;
and generating the bookmark of the electronic book according to the determined hierarchical relationship, the directory characters and the page number.
B18. The electronic device of any of B10-B17, the executable instructions further cause the processor to:
splitting the electronic book into a plurality of single chapter files according to page numbers in the electronic book bookmarks.
The invention also discloses: C19. a computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the electronic book bookmark adding method of any one of a1-a 9.

Claims (10)

1. An electronic book bookmark adding method, comprising:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
2. The method according to claim 1, wherein the ordering the text style set, and the generating the e-book bookmark according to the hierarchical relationship of the e-book bookmark determined corresponding to the ordered text style set specifically includes:
sequencing the text style set from large to small according to the text fonts of the text styles, and determining the hierarchical relation of the bookmarks of the electronic book according to the sequenced text fonts;
and generating the bookmark of the electronic book according to the determined hierarchical relation, the paragraph content and the page number corresponding to the text font.
3. The method according to claim 1, wherein the ordering the text style set, and the generating the e-book bookmark according to the hierarchical relationship of the e-book bookmark determined corresponding to the ordered text style set specifically includes:
and sequencing the text style set, and determining the hierarchical relation of the electronic book bookmarks according to the designated hierarchy set for the texts in the sequenced text style set so as to generate the electronic book bookmarks.
4. The method of claim 1, wherein the paragraph recognition is performed on the text content of the electronic book, and the obtaining of the paragraph content of the bookmark of the electronic book to be extracted further comprises:
and carrying out paragraph identification on the text content of the electronic book according to the text font and/or paragraph identification in the electronic book, and checking the text paragraphs and the annotation paragraphs to obtain the paragraph content of the bookmark of the electronic book to be extracted.
5. The method according to any one of claims 1-4, wherein the method further comprises:
responding to an editing request for the displayed electronic book bookmark triggered by a user, and jumping to an electronic book bookmark editing page;
and responding to the editing operation of the electronic book bookmark triggered by the user, and correspondingly editing the electronic book bookmark.
6. The method of claim 5, wherein, in response to a user-triggered editing operation on an electronic book bookmark, correspondingly editing the electronic book bookmark further comprises:
responding to character and/or page number editing operation of any electronic book bookmark triggered by a user, and providing an editing entry for the user to edit the electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the deletion operation of any electronic book bookmark triggered by a user, and deleting the current electronic book bookmark and/or each electronic book bookmark at the lower level of the current electronic book bookmark;
and/or the presence of a gas in the gas,
responding to the adding operation of the electronic book bookmark triggered by the user, adding the electronic book bookmark at the selected position, and editing the added electronic book bookmark.
7. The method according to any one of claims 1-6, wherein the method further comprises:
detecting whether electronic book directory information exists in the electronic book;
if yes, extracting to obtain the e-book directory information;
and generating an electronic book bookmark corresponding to the electronic book directory information.
8. The method of claim 7, wherein the generating of the e-book bookmark according to the e-book directory information further comprises:
determining the hierarchical relationship of the electronic book bookmarks according to all levels of directories in the electronic book directory information;
and generating the bookmark of the electronic book according to the determined hierarchical relationship, the directory characters and the page number.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
carrying out paragraph identification on text contents of the electronic book to obtain paragraph contents of bookmarks of the electronic book to be extracted;
carrying out character style clustering processing on the paragraph contents to obtain a text style set containing a plurality of different character styles;
sequencing the text style sets, and determining the hierarchical relationship of the electronic book bookmarks corresponding to the sequenced text style sets to generate the electronic book bookmarks;
and displaying the generated electronic book bookmark.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the electronic book bookmark adding method of any of claims 1-8.
CN202111274755.7A 2021-10-29 2021-10-29 Electronic book bookmark adding method, electronic equipment and storage medium Pending CN113987106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111274755.7A CN113987106A (en) 2021-10-29 2021-10-29 Electronic book bookmark adding method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111274755.7A CN113987106A (en) 2021-10-29 2021-10-29 Electronic book bookmark adding method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113987106A true CN113987106A (en) 2022-01-28

Family

ID=79744671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111274755.7A Pending CN113987106A (en) 2021-10-29 2021-10-29 Electronic book bookmark adding method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113987106A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328361A (en) * 2022-08-09 2022-11-11 北京字跳网络技术有限公司 Book information display method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328361A (en) * 2022-08-09 2022-11-11 北京字跳网络技术有限公司 Book information display method, device, equipment and storage medium
CN115328361B (en) * 2022-08-09 2024-04-23 北京字跳网络技术有限公司 Book information display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7373606B2 (en) Method for visualizing weblog social network communities
WO2016202279A1 (en) Interface interaction method and apparatus
CN106095917B (en) Bookmark storage and display method and device and browser
CN109241003B (en) File management method and device
CA3061623C (en) File sending in instant messaging applications
CN110515896B (en) Model resource management method, model file manufacturing method, device and system
JP2019520625A (en) Human computer interaction method and device thereof
CN111400998B (en) Text display method and device, electronic equipment and readable storage medium
US20160328110A1 (en) Method, system, equipment and device for identifying image based on image
CN113987106A (en) Electronic book bookmark adding method, electronic equipment and storage medium
JP2015076064A (en) Information processing device, information processing method, program, and storage medium
CN113010814A (en) Webpage content processing method, computing device and computer storage medium
CN111460765B (en) Electronic book labeling processing method, electronic equipment and storage medium
JP5829330B2 (en) Method and apparatus for identifying fonts
JP2019101889A (en) Test execution device and program
CN108920610B (en) Novel indexing method and device
JP2020123321A (en) Method and apparatus for search processing based on clipboard data
CN113177391B (en) Method for redirecting operation cursor in streaming interface, computing equipment and storage medium
JP2006065467A (en) Device for creating data extraction definition information and method for creating data extraction definition information
CN113177392B (en) Method for synchronizing row segment information in proofreading interface, computing device and storage medium
JP2016018279A (en) Document file search program, document file search device, document file search method, document information output program, document information output device, and document information output method
US9990444B2 (en) Apparatus and method for supporting visualization of connection relationship
CN112069236A (en) Associated file display method, device, equipment and storage medium
JP5428316B2 (en) Identifier shortening display program, identifier shortening display device, and identifier shortening display method
US20140122660A1 (en) Web Navigation Using Web Navigation Pattern Histories

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination