Electronic book page display method, electronic device and computer storage medium
By acquiring and integrating the user's e-book content and annotations, and rendering them directly to the e-book page, the problem of poor user reading experience in the existing technology is solved, and personalized reading needs are met and content coherence is improved.
Patent Information
- Application Number
- CN202111161034.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing e-book platforms cannot meet personalized reading needs when displaying user annotations, resulting in poor user reading experience.
By obtaining the content of the e-book currently being read by the user and the annotations added in history, fusion typesetting is performed, and the e-book page is directly rendered to ensure that the target annotation corresponds to the e-book content to be displayed, thereby improving the user's efficiency in viewing annotations and the reading experience.
The generated e-book page directly displays the annotation content, which improves the convenience of users to view annotations, enhances the coherence and relevance of the content, meets the user's personalized reading needs, and improves the user experience.
Smart Images

Figure CN113885763B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic books, and in particular to an electronic book page display method, an electronic device and a computer storage medium. Background Art
[0002] With the continuous development of science and technology and society, readers' reading habits have also changed. E-books are becoming more and more popular among readers due to their energy-saving, environmental protection, and convenient reading. In order to improve readers' reading experience, some e-book platforms provide readers with the annotation adding function, which supports readers to add corresponding annotations during the e-book reading process.
[0003] In the prior art, the annotation mark is usually displayed on the e-book page, and after the user clicks on the annotation to view the annotation, all the annotations added by the user are displayed. This method cannot meet the personalized reading needs of users, and the user reading experience is poor. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide an electronic book page display method, electronic device and computer storage medium that overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of the present invention, there is provided an e-book page display method, comprising:
[0006] Obtaining the e-book content to be displayed in the target e-book currently being read by the user; and
[0007] Filtering out a target annotation corresponding to the electronic book content to be displayed from the annotations historically added by the user, and acquiring the annotation content of the target annotation;
[0008] Merging and typeset the electronic book content to be displayed with the annotation content;
[0009] According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
[0010] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0011] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0012] Obtaining the e-book content to be displayed in the target e-book currently being read by the user; and
[0013] Filtering out a target annotation corresponding to the electronic book content to be displayed from the annotations historically added by the user, and acquiring the annotation content of the target annotation;
[0014] Merging and typeset the electronic book content to be displayed with the annotation content;
[0015] According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
[0016] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned electronic book page display method.
[0017] By adopting this scheme, the annotation content is directly displayed in the generated e-book page, which improves the efficiency of users viewing annotations; and the target annotation corresponds to the e-book content to be displayed, which is convenient for improving the coherence and relevance of the content displayed in the e-book page; in addition, the target annotation is the annotation added by the current reading user in history, and the e-book page generated thereby can meet the user's personalized reading needs and improve the user experience.
[0018] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0020] Figure 1 A schematic diagram showing a flow chart of an e-book page display method provided by Embodiment 1 of the present invention;
[0021] Figure 2 A schematic diagram showing a flow chart of an e-book page display method provided by Embodiment 2 of the present invention;
[0022] Figure 3 A schematic diagram of a process of adding a target annotation applied in the second embodiment of the present invention is shown;
[0023] Figure 4 A schematic diagram of a target annotation in the annotation adding process provided by the second embodiment of the present invention is shown;
[0024] Figure 5 A schematic diagram of an e-book page provided by the second embodiment of the present invention is shown;
[0025] Figure 6 A schematic diagram showing a flow chart of an e-book page display method provided in Embodiment 3 of the present invention;
[0026] Figure 7 A schematic diagram of a process of adding a target annotation applied in the third embodiment of the present invention is shown;
[0027] Figure 8 A schematic diagram of a second type of annotation adding control provided by Embodiment 3 of the present invention is shown;
[0028] Fig. 9 A schematic diagram showing a content input entry of a second type of annotation provided by a third embodiment of the present invention is shown;
[0029] Fig.10 A schematic diagram of an e-book page provided by Embodiment 3 of the present invention is shown;
[0030] Fig.11 A schematic structural diagram of an electronic device provided in Embodiment 5 of the present invention is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0032] Embodiment 1
[0033] Figure 1 FIG. 1 is a flow chart of a method for displaying an e-book page provided by Embodiment 1 of the present invention. The method for displaying an e-book page provided by the embodiment of the present invention can be executed on the user terminal side. Figure 1 As shown, the method comprises the following steps:
[0034] Step S110, obtaining the e-book content to be displayed in the target e-book currently read by the user.
[0035] The e-book currently read by the user is the target e-book. The embodiment of the present invention is specifically applied to the scenario where the user re-reads the target e-book. That is, when the method is executed, the user has read the target e-book and has added annotations to the target e-book.
[0036] When the user is re-reading the target e-book, it is necessary to obtain the e-book content to be displayed in the target e-book for page rendering for subsequent reading by the user.
[0037] In an optional acquisition method, since the user has read the target e-book when this step is executed, in the process of acquiring the e-book content to be displayed, it is first determined whether the user terminal has the e-book content to be displayed stored locally. If the e-book content to be displayed is stored locally, the e-book content to be displayed is acquired from the user terminal locally first; if the e-book content to be displayed is not stored locally in the user terminal, the e-book content to be displayed is acquired from the server. This acquisition method can improve the efficiency of acquiring the e-book content to be displayed and save the transmission resources consumed by data transmission.
[0038] In another optional acquisition method, a request is directly made to the server to obtain the e-book content to be displayed. This acquisition method can simplify the acquisition logic of the e-book content to be displayed and save the computing resources of the system.
[0039] In another optional acquisition method, in order to facilitate subsequent page rendering, this step can specifically acquire the e-book content to be displayed in chapters. In an actual application scenario, this step acquires the e-book content of the next chapter of the currently read chapter in the target e-book.
[0040] Step S120 , selecting a target annotation corresponding to the electronic book content to be displayed from the annotations added historically by the user, and obtaining the annotation content of the target annotation.
[0041] The target annotation is the annotation added by the current user when he / she read the target e-book content to be displayed in the target e-book in the past. Optionally, if the target annotation corresponding to the e-book content to be displayed cannot be filtered out from the annotations added by the user in the past, only the e-book content to be displayed obtained in step S110 is typeset and page rendered. If the target annotation corresponding to the e-book content to be displayed can be filtered out from the annotations added by the user in the past, the annotation content of the target annotation is obtained, and the subsequent steps S130 and S140 are executed.
[0042] In an optional target annotation screening method, when a user is reading a target e-book, each time an annotation is added, the user records the e-book characters in the target e-book corresponding to the added annotation, as well as the annotation content of the annotation. And based on the recorded information, an annotation information table corresponding to the user and the target e-book is generated. During the execution of this step, the corresponding annotation information table is specifically queried based on the user identifier and the target e-book identifier, and then the target annotation is screened out based on the corresponding annotation information table, and the e-book characters corresponding to the target annotation are located in the e-book content to be displayed. For example, the e-book content to be displayed is Chapter 5 of the target e-book, and the annotation information table records that the e-book characters corresponding to annotation A are the 10th characters of Chapter 5 of the target e-book, indicating that the e-book characters corresponding to annotation A are located in the e-book content to be displayed, thereby filtering out annotation A as the target annotation.
[0043] After the target annotation is filtered out, the annotation content of the target annotation is further obtained. Among them, in the prior art, it is usually determined whether there is an annotation in the page to be rendered before the page corresponding to the e-book content to be displayed is rendered. After the page is rendered successfully and the user performs the annotation viewing operation, the annotation content of all annotations added by users at the current reading position is obtained according to the user's annotation viewing operation. However, the embodiment of the present invention is different from the prior art. The embodiment of the present invention obtains the e-book content to be displayed and the annotation content of the target annotation before the page corresponding to the e-book content to be displayed is rendered, and the target annotation is not the annotation added by all users, but only the annotation added by the current reading user himself.
[0044] The embodiment of the present invention does not limit the execution order of step S110 and step S120, and the two steps may be executed sequentially or concurrently.
[0045] Step S130, integrating and typeset the e-book content to be displayed with the annotation content.
[0046] In the prior art, the layout of the e-book content is independent of the annotation content added by the user. After the user adds the annotation, the display position of each character in the e-book does not change. However, the embodiment of the present invention is different from the prior art. The embodiment of the present invention specifically integrates the e-book content to be displayed obtained in step S110 with the annotation content of the target annotation obtained in step S120, and typesets the e-book content and the annotation content together as the layout object. The addition of the annotation content will change the display position of the e-book characters in the e-book content.
[0047] Step S140 , based on the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
[0048] The annotation content is directly displayed on the rendered e-book page, which improves the convenience for users to view the annotations.
[0049] It can be seen that the embodiment of the present invention obtains the e-book content to be displayed and the annotation content of the target annotation before rendering the e-book page, and integrates the e-book content and the annotation content as typesetting objects for typesetting, so that the annotation content is directly displayed in the final rendered e-book page, thereby improving the convenience of users viewing the annotations; and, in the embodiment of the present invention, the target annotation corresponds to the e-book content to be displayed, thereby improving the coherence and relevance of the content displayed in the e-book page; in addition, in the embodiment of the present invention, the target annotation is the annotation added by the current reading user in history, and the e-book page generated thereby is customizable, meeting the user's personalized reading needs and improving the user experience.
[0050] Embodiment 2
[0051] Figure 2 FIG. 1 is a flow chart of a method for displaying an e-book page provided by Embodiment 2 of the present invention. The method for displaying an e-book page provided by the embodiment of the present invention can be executed on the user terminal side. Figure 2 As shown, the method comprises the following steps:
[0052] Step S210, obtaining the e-book content to be displayed in the target e-book currently read by the user.
[0053] Step S220, filtering out target annotations corresponding to the electronic book content to be displayed from the annotations added by the user in history, and obtaining the annotation content and location information of the target annotation; wherein the target annotation is a first type of annotation.
[0054] When the user reads the target e-book in the past, he can add the first type of annotation through the first type of annotation adding operation, and the first type of annotation can also be called sticky note type annotation. The following is a detailed explanation of the process of adding the first type of annotation by taking the method of adding the target annotation as an example.
[0055] Among them, the target annotation can be Figure 3 Steps S221 to S223 are shown as adding,
[0056] S221: In response to the user's first type of annotation adding operation, create an annotation block.
[0057] The first type of annotation adding operation may be a preset shortcut key operation, a voice control operation, or a corresponding control triggering operation, etc., which is not limited in the embodiment of the present invention. After the first type of annotation adding operation of the user is detected, an annotation block is created. The annotation block may not contain any content in the initial state.
[0058] In an optional implementation, the size, position and / or style of the created annotation block are usually default values. To meet the personalized needs of the user, the user can adjust the created annotation block. Specifically, in response to the adjustment operation on the created annotation block, the annotation block is adjusted.
[0059] As an optional adjustment method, in response to the size adjustment operation on the annotation block, the size of the annotation block is adjusted. For example, the user can enlarge or reduce the size of the annotation block by pulling the border of the annotation block.
[0060] As another optional adjustment method, in response to the position adjustment operation on the annotation block, the position of the annotation block is adjusted. For example, the user can adjust the position of the annotation block by moving the annotation block.
[0061] As another optional adjustment method, in response to the style adjustment operation on the annotation block, the style of the annotation block is adjusted. The style of the annotation block may specifically include: the shape of the annotation block, the background color of the annotation block, and / or the border color of the annotation block.
[0062] S222, obtaining the content data input in the annotation block.
[0063] The content data may be text data, image data, and / or voice data, etc.
[0064] S223, generating a target annotation according to the content data and the annotation block.
[0065] If the user has not made any adjustments to the created annotation block, a target annotation is generated based on the content data and the originally created annotation block; if the user has made any adjustments to the created annotation block, a target annotation is generated based on the content data and the adjusted annotation block.
[0066] After the target annotation is generated, the annotation content of the target annotation is recorded. The target annotation includes content data, annotation block, and location data of the content data in the annotation block, etc. The annotation content of the target annotation consists of two parts: content data and annotation block.
[0067] After generating the target annotation, the position information of the target annotation can also be recorded. Among them, the position information of the target annotation specifically refers to the position information of the annotation block in the target annotation. In an optional manner, the position information of the annotation block can be the absolute position of the annotation block on the page. Adopting this method can quickly record the position information of the annotation block. In another optional manner, the position information of the annotation block is specifically: the relative position coordinates of at least one positioning point in the annotation block with respect to a preset e-book character. Among them, the preset e-book character can be the e-book character adjacent to the positioning point of the annotation block during the addition of the target annotation. By adopting this method, even after format adjustments such as font scaling in the e-book, the position of the annotation block can still be accurately located.
[0068] After generating the target annotation, the e-book character corresponding to the target annotation can also be recorded. Among them, the e-book character corresponding to the target annotation can be the preset e-book character described above. Through the e-book character corresponding to the target annotation, it is convenient to subsequently accurately screen out the target annotation corresponding to the e-book content to be displayed from the annotations added by the user history.
[0069] As Figure 4 shown, the target annotation 41 as shown in Figure 4 can be generated through the above steps S221 - S223. The annotation block of the target annotation 41 is rectangular. The content data of the target annotation 41 includes the text content "AAAAAAAAAAAAAA" and a 47-second voice data. The positioning point of the annotation block in the target annotation 41 is the upper left vertex, and the e-book character adjacent to this positioning point is "一" (the 100th character in Chapter 5). Then the preset e-book character is the 100th character in Chapter 5. Thus, the position information of the target annotation 41 can be the relative position coordinates of this positioning point with respect to the 100th character in Chapter 5.
[0070] During the process of the user re-reading the target e-book, the target annotation corresponding to the e-book content to be displayed is screened out from the annotations added by the user history. Among them, if the e-book character corresponding to the annotation is located in the e-book content to be displayed, then this annotation is determined as the target character.
[0071] Further obtain the annotation content of the target annotation and the position information of the target annotation. Among them, obtaining the position information of the target annotation specifically means obtaining the position information of the annotation block in the target annotation. In an optional manner, the position information of the annotation block is the absolute position information of the annotation block on the page. In another optional manner, the position information of the annotation block is specifically: the relative position coordinates of at least one positioning point in the annotation block with respect to a preset e-book character.
[0072] Step S230: According to the position information of the target annotation, perform integrated typesetting on the e-book content to be displayed and the annotation content.
[0073] During the typesetting process, specifically, the e-book content to be displayed can be typeset in advance according to the set formats such as font and line spacing. Then, on this basis, insert the target annotation into the typesetting position matching the position information of the target annotation according to the position information of the target annotation, and adaptively adjust the positions of other e-book characters.
[0074] In an optional implementation manner, if the position information of the target annotation is the absolute position information of the annotation block on the page, then during the insertion process, specifically, determine the page number corresponding to the absolute position information, and then insert the target annotation at the corresponding position on the e-book page of this page number.
[0075] In another optional manner, if the position information of the target annotation is the relative position coordinates of at least one positioning point in the annotation block relative to the preset e-book characters. Then during the insertion process, specifically, determine the position of the preset e-book characters corresponding to the target annotation, and then determine the position of the positioning point of the annotation block based on the position of the preset e-book characters and the relative position coordinates of the positioning point of the annotation block of the target annotation relative to the preset e-book characters, and then insert the target annotation based on the position of this positioning point.
[0076] As Figure 5 shown, the target annotation 41 is inserted near the preset e-book character "one". And the e-book characters on the next line of the preset e-book character "one" are typeset below the target annotation 41.
[0077] Step S240: According to the result of the integrated typesetting, render the e-book content to be displayed and the annotation content together onto the e-book page.
[0078] It can be seen that the embodiments of the present invention can allow users to add sticky note-style annotations, and such annotations can be input with different types of content by users to meet the personalized needs of users and improve the user experience; and the embodiments of the present invention adopt a matching integrated typesetting method for such annotations. Specifically, according to the position information of the target annotation, perform integrated typesetting on the e-book content to be displayed and the annotation content, further improving the subsequent page display effect and enhancing the user reading experience.
[0079] Embodiment III
[0080] Figure 6 shows a schematic flowchart of an e-book page display method provided by Embodiment III of the present invention. The e-book page display method provided by the embodiments of the present invention can be executed on the user terminal side. As Figure 6 shown, this method includes the following steps:
[0081] Step S610, obtaining the e-book content to be displayed in the target e-book currently read by the user.
[0082] Step S620, select a target annotation corresponding to the electronic book content to be displayed from the annotations added by the user in history, obtain the annotation content of the target annotation, and determine the electronic book characters marked by the target annotation; wherein the target annotation is a second type of annotation.
[0083] During the process of historically reading the target e-book, the user can add the second type of annotations through corresponding operations, and the second type of annotations can also be called mark-type annotations. The following is a detailed explanation of the process of adding the second type of annotations by taking the method of adding target annotations as an example.
[0084] Among them, the target annotation can be Figure 7 Steps S621 to S624 are shown as adding,
[0085] Step S621, in response to the user's marking operation on the electronic book characters, display the second type of annotation adding control.
[0086] like Figure 8 As shown, after the user selects the e-book characters "one two three four", controls such as "share", "ideas" and "underline" are displayed, among which "ideas" is the second type of annotation adding control described in this step.
[0087] Step S622, in response to the triggering operation of adding a control for the second type of annotation, displaying the content input entry of the second type of annotation.
[0088] For example, when a user clicks Figure 8 After the "Ideas" control in Fig. 9 The page shown includes a content input entry 91 , in which the user inputs text data of “Digital City”.
[0089] Step S623, obtaining content data input through the content input entry.
[0090] Step S624: Generate target annotations based on the content data.
[0091] After the target annotation is generated, the annotation content of the target annotation and the electronic book characters marked by the target annotation are recorded. Unlike the first type of annotation, the annotation content of the second type of annotation consists only of content data input through the content input entry. The electronic book characters marked by the target annotation are specifically the electronic book characters corresponding to the marking operation of the target annotation during the adding process.
[0092] During the process of the user re-reading the target e-book, the target annotations corresponding to the content of the e-book to be displayed are filtered out from the annotations added by the user's history. Among them, if the e-book characters marked by the annotation are located in the content of the e-book to be displayed, it is determined that the annotation is the target character. Further, the annotation content of the target annotation and the e-book characters marked by the target annotation are obtained.
[0093] Step S630: Insert the annotation content of the target annotation behind the marked e-book characters, so as to perform integrated typesetting on the content of the e-book to be displayed and the annotation content.
[0094] During the typesetting process, specifically, the content of the e-book to be displayed can be typeset in advance according to the set formats such as font and line spacing. Then, on this basis, the annotation content of the target annotation is inserted behind the marked e-book characters, and the positions of other e-book characters are adjusted accordingly.
[0095] As Fig.10 shown, the annotation content "Digital Capital" of the target annotation 101 is inserted behind the e-book characters "one, two, three, four" it marks.
[0096] Step S640: According to the integrated typesetting result, render the content of the e-book to be displayed and the annotation content to the e-book page together.
[0097] In an alternative embodiment, in order to facilitate the user to distinguish the content of the e-book and the annotation content and facilitate the user's reading, in the rendering process of the embodiment of the present invention, the content of the e-book can be rendered in a first style, and the annotation content can be rendered in a second style. For example, an underline can be added under the annotation content, but not under the content of the e-book; or the content of the e-book can be rendered in a first color, and the annotation content can be rendered in a second color, etc.
[0098] It can be seen that the embodiment of the present invention allows the user to add marked annotations. Such annotations can allow the user to add corresponding ideas for the characters in the e-book, facilitating the user's in-depth reading of this part and improving the user experience; and the embodiment of the present invention adopts a matching integrated typesetting method for such annotations, specifically inserting the target annotation behind the marked e-book characters, thereby facilitating the user's reading and improving the user's reading experience.
[0099] In some embodiments, there are multiple target annotations corresponding to the electronic book content to be displayed, and the multiple target annotations include both the first category annotations and the second category annotations. For this situation, the combination of the above-mentioned embodiment 2 and embodiment 3 can be used to realize the display of the electronic book page. Specifically, the typesetting position of the target annotation belonging to the first category annotation is determined by the method in embodiment 2, and the typesetting position of the target annotation belonging to the second category annotation is determined by the method in embodiment 3. Finally, each target annotation is inserted into the corresponding typesetting position, and the typesetting position of other electronic book characters is adaptively adjusted, thereby generating an electronic book page.
[0100] In some other embodiments, after the e-book content to be displayed and the annotation content are rendered together on the e-book page, the annotation content can be modified in response to the user's modification operation on the annotation content on the e-book page, and the e-book page can be re-rendered according to the modification result. That is, in the e-book page, the annotation content is in an editable state, so that the user can quickly modify the annotation content.
[0101] Embodiment 4
[0102] A fourth embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method in any of the above method embodiments.
[0103] The executable instructions may be used to cause the processor to perform the following operations:
[0104] Obtaining the e-book content to be displayed in the target e-book currently being read by the user; and
[0105] Filtering out a target annotation corresponding to the electronic book content to be displayed from the annotations historically added by the user, and acquiring the annotation content of the target annotation;
[0106] Merging and typeset the electronic book content to be displayed with the annotation content;
[0107] According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
[0108] In an optional implementation, the target annotation is a first-category annotation; then the executable instruction causes the processor to perform the following operations:
[0109] In response to a first type of annotation adding operation by a user, creating an annotation block;
[0110] Acquire content data entered in the annotation block;
[0111] A target annotation is generated according to the content data and the annotation block.
[0112] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0113] In response to an adjustment operation on the annotation block, adjusting the annotation block;
[0114] Then the step of generating a target annotation according to the content data and the annotation block further includes:
[0115] A target annotation is generated according to the content data and the adjusted annotation block.
[0116] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0117] In response to a size adjustment operation on the annotation block, adjusting the size of the annotation block;
[0118] and / or, in response to a position adjustment operation on the annotation block, adjusting the position of the annotation block;
[0119] And / or, in response to a style adjustment operation on the annotation block, adjusting the style of the annotation block.
[0120] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0121] After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user in the history, obtaining the position information of the target annotation;
[0122] According to the position information of the target annotation, the electronic book content to be displayed is integrated with the annotation content for typeset layout.
[0123] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0124] Obtain the position information of the annotation block in the target annotation.
[0125] In an optional implementation manner, the position information of the annotation block is specifically: the relative position coordinates of at least one positioning point in the annotation block relative to a preset electronic book character.
[0126] In an optional implementation, the target annotation is a second type of annotation; and the executable instruction causes the processor to perform the following operations:
[0127] In response to the user's marking operation on the electronic book characters, displaying a second type of annotation adding control;
[0128] In response to a triggering operation of adding a control for the second type of annotation, displaying a content input entry for the second type of annotation;
[0129] Acquire content data input through the content input entry;
[0130] A target annotation is generated according to the content data.
[0131] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0132] After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user history, determining the electronic book characters marked by the target annotation;
[0133] The annotation content of the target annotation is inserted after the marked electronic book character.
[0134] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0135] The electronic book content is rendered in a first style, and the annotation content is rendered in a second style.
[0136] It can be seen that the e-book page generated by the embodiment of the present invention directly displays the annotation content, which improves the convenience for users to view the annotations; and the target annotation corresponds to the e-book content to be displayed, thereby improving the coherence and relevance of the content displayed in the e-book page; in addition, the target annotation is the annotation added by the current reading user in history, and the e-book page generated thereby can meet the user's personalized reading needs and improve the user experience.
[0137] Embodiment 5
[0138] Fig.11 The structure diagram of an electronic device provided by Embodiment 5 of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0139] like Fig.11 As shown, the electronic device may include: a processor (processor) 1102 , a communication interface (Communications Interface) 1104 , a memory (memory) 1106 , and a communication bus 1108 .
[0140] The processor 1102, the communication interface 1104, and the memory 1106 communicate with each other via the communication bus 1108. The communication interface 1104 is used to communicate with other devices such as a client or other server network elements. The processor 1102 is used to execute the program 1110, which can specifically execute the relevant steps in the above method embodiment.
[0141] Specifically, the program 1110 may include program codes, which include computer operation instructions.
[0142] The processor 1102 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0143] The memory 1106 is used to store the program 1110. The memory 1106 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0144] The program 1110 may be specifically used to enable the processor 1102 to perform the following operations:
[0145] Obtaining the e-book content to be displayed in the target e-book currently being read by the user; and
[0146] Filtering out a target annotation corresponding to the electronic book content to be displayed from the annotations historically added by the user, and acquiring the annotation content of the target annotation;
[0147] Merging and typeset the electronic book content to be displayed with the annotation content;
[0148] According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
[0149] In an optional implementation, the target annotation is a first-class annotation; the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0150] In response to a first type of annotation adding operation by a user, creating an annotation block;
[0151] Acquire content data entered in the annotation block;
[0152] A target annotation is generated according to the content data and the annotation block.
[0153] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0154] In response to an adjustment operation on the annotation block, adjusting the annotation block;
[0155] Then the step of generating a target annotation according to the content data and the annotation block further includes:
[0156] A target annotation is generated according to the content data and the adjusted annotation block.
[0157] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0158] In response to a size adjustment operation on the annotation block, adjusting the size of the annotation block;
[0159] and / or, in response to a position adjustment operation on the annotation block, adjusting the position of the annotation block;
[0160] And / or, in response to a style adjustment operation on the annotation block, adjusting the style of the annotation block.
[0161] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0162] After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user in the history, obtaining the position information of the target annotation;
[0163] According to the position information of the target annotation, the electronic book content to be displayed is integrated with the annotation content for typeset layout.
[0164] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0165] Obtain the position information of the annotation block in the target annotation.
[0166] In an optional implementation manner, the position information of the annotation block is specifically: the relative position coordinates of at least one positioning point in the annotation block relative to a preset electronic book character.
[0167] In an optional implementation, the target annotation is a second type of annotation; the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0168] In response to the user's marking operation on the electronic book characters, displaying a second type of annotation adding control;
[0169] In response to a triggering operation of adding a control for the second type of annotation, displaying a content input entry for the second type of annotation;
[0170] Acquire content data input through the content input entry;
[0171] A target annotation is generated according to the content data.
[0172] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0173] After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user history, determining the electronic book characters marked by the target annotation;
[0174] The annotation content of the target annotation is inserted after the marked electronic book character.
[0175] In an optional implementation, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations:
[0176] The electronic book content is rendered in a first style, and the annotation content is rendered in a second style.
[0177] It can be seen that the e-book page generated by the embodiment of the present invention directly displays the annotation content, which improves the convenience for users to view the annotations; and the target annotation corresponds to the e-book content to be displayed, thereby improving the coherence and relevance of the content displayed in the e-book page; in addition, the target annotation is the annotation added by the current reading user in history, and the e-book page generated thereby can meet the user's personalized reading needs and improve the user experience.
[0178] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0179] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0180] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0181] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0182] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0183] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0184] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for displaying an e-book page, comprising: Before the page corresponding to the e-book content to be displayed in the target e-book currently read by the user is rendered, the e-book content to be displayed and the annotation content of the target annotation are obtained together; wherein the target annotation is the annotation corresponding to the e-book content to be displayed selected from the annotations added by the user in the past; The electronic book content to be displayed and the annotation content are used as typesetting objects for integrated typesetting; wherein the electronic book content to be displayed is typesetting in advance according to a set format, and on this basis, the target annotation is inserted into the typesetting position matching the position information of the target annotation according to the position information of the target annotation, and the positions of other electronic book characters are adjusted; According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
2. The method according to claim 1, wherein: The target annotation is a first-category annotation; Then the target annotation is added in the following way: In response to a first type of annotation adding operation by a user, creating an annotation block; Acquire content data entered in the annotation block; A target annotation is generated according to the content data and the annotation block.
3. The method according to claim 2, wherein: After creating the annotation block, the method further includes: In response to an adjustment operation on the annotation block, adjusting the annotation block; Then the step of generating a target annotation according to the content data and the annotation block further includes: A target annotation is generated according to the content data and the adjusted annotation block.
4. The method according to claim 3, wherein: In response to the adjustment operation on the annotation block, adjusting the annotation block further comprises: In response to a size adjustment operation on the annotation block, adjusting the size of the annotation block; and / or, in response to a position adjustment operation on the annotation block, adjusting the position of the annotation block; And / or, in response to a style adjustment operation on the annotation block, adjusting the style of the annotation block.
5. The method according to any one of claims 2 to 4, wherein: After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user in history, the method further includes: acquiring the position information of the target annotation; The step of taking the electronic book content to be displayed and the annotation content as typesetting objects for integrated typesetting further includes: integrating the electronic book content to be displayed and the annotation content for typesetting according to the position information of the target annotation.
6. The method according to claim 5, wherein: The acquiring the position information of the target annotation specifically includes: acquiring the position information of the annotation block in the target annotation.
7. The method according to claim 6, wherein: The position information of the annotation block specifically includes: the relative position coordinates of at least one positioning point in the annotation block relative to the preset electronic book characters.
8. The method according to claim 1, wherein: The target annotation is a second type of annotation; Then the target annotation is added in the following way: In response to the user's marking operation on the electronic book characters, displaying a second type of annotation adding control; In response to a triggering operation of adding a control for the second type of annotation, displaying a content input entry for the second type of annotation; Acquire content data input through the content input entry; A target annotation is generated according to the content data.
9. The method according to claim 8, wherein: After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user history, the method further includes: determining the electronic book characters marked by the target annotation; The step of taking the electronic book content to be displayed and the annotation content as typeset objects for integrated typeset further includes: inserting the annotation content of the target annotation behind the marked electronic book characters.
10. The method according to any one of claims 1 to 4, wherein: The step of rendering the electronic book content to be displayed and the annotation content together to the electronic book page further includes: The electronic book content is rendered in a first style, and the annotation content is rendered in a second style.
11. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: Before the page corresponding to the e-book content to be displayed in the target e-book currently read by the user is rendered, the e-book content to be displayed and the annotation content of the target annotation are obtained together; wherein the target annotation is the annotation corresponding to the e-book content to be displayed selected from the annotations added by the user in the past; The electronic book content to be displayed and the annotation content are used as typesetting objects for integrated typesetting; wherein the electronic book content to be displayed is typesetting in advance according to a set format, and on this basis, the target annotation is inserted into the typesetting position matching the position information of the target annotation according to the position information of the target annotation, and the positions of other electronic book characters are adjusted; According to the fusion typesetting result, the e-book content to be displayed and the annotation content are rendered together to the e-book page.
12. The electronic device according to claim 11, wherein: The target annotation is a first-category annotation; The executable instructions cause the processor to perform the following operations: In response to a first type of annotation adding operation by a user, creating an annotation block; Acquire content data entered in the annotation block; A target annotation is generated according to the content data and the annotation block.
13. The electronic device according to claim 12, wherein: The executable instructions cause the processor to perform the following operations: In response to an adjustment operation on the annotation block, adjusting the annotation block; Then the step of generating a target annotation according to the content data and the annotation block further includes: A target annotation is generated according to the content data and the adjusted annotation block.
14. The electronic device according to claim 13, wherein: The executable instructions cause the processor to perform the following operations: In response to a size adjustment operation on the annotation block, adjusting the size of the annotation block; and / or, in response to a position adjustment operation on the annotation block, adjusting the position of the annotation block; And / or, in response to a style adjustment operation on the annotation block, adjusting the style of the annotation block.
15. The electronic device according to any one of claims 12 to 14, wherein: The executable instructions cause the processor to perform the following operations: After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user in the history, obtaining the position information of the target annotation; According to the position information of the target annotation, the electronic book content to be displayed is integrated with the annotation content for typeset layout.
16. The electronic device according to claim 15, wherein: The executable instructions cause the processor to perform the following operations: Obtain the position information of the annotation block in the target annotation.
17. The electronic device according to claim 16, wherein: The position information of the annotation block specifically includes: the relative position coordinates of at least one positioning point in the annotation block relative to the preset electronic book characters.
18. The electronic device according to claim 11, wherein: The target annotation is a second type of annotation; The executable instructions cause the processor to perform the following operations: In response to the user's marking operation on the electronic book characters, displaying a second type of annotation adding control; In response to a triggering operation of adding a control for the second type of annotation, displaying a content input entry for the second type of annotation; Acquire content data input through the content input entry; A target annotation is generated according to the content data.
19. The electronic device according to claim 18, wherein: The executable instructions cause the processor to perform the following operations: After selecting the target annotation corresponding to the electronic book content to be displayed from the annotations added by the user history, determining the electronic book characters marked by the target annotation; The annotation content of the target annotation is inserted after the marked electronic book character.
20. The electronic device according to any one of claims 11 to 14, wherein: The executable instructions cause the processor to perform the following operations: The electronic book content is rendered in a first style, and the annotation content is rendered in a second style.
21. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute an operation corresponding to the electronic book page display method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Electronic document commenting method as well as method and device for accessing electronic document comment
CN103077160A
Method and apparatus for loading pages
CN104850415A
Text marking method and device, storage medium and computer equipment
CN112580300A
Global annotation method and device for electronic book
CN112966472A
Electronic book information display method, electronic equipment and computer storage medium
CN113282209A
