Comparison reading method, electronic device and computing storage medium
By displaying and comparing book content and other book content on the screen of the electronic device, the problem of cumbersome comparison and reading operation of e-book readers in the prior art is solved, and a paper-like comparison and reading experience is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202210325174.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-03-30
AI Technical Summary
When performing pre- and post-text comparison reading, existing e-book readers require users to perform tedious operations, and cannot display two pages at the same time to facilitate comparison reading, and cannot simulate the comparison reading effect of paper books.
By displaying the content of the book on the screen of the electronic device, the comparison book content is fixedly displayed and compared in the first screen area, and other book contents other than the comparison book contents are displayed in the second screen area, the user can switch contents at will in the second screen area through touch operations.
It realizes comparative reading without complex operations, restores the reading experience of comparative pages in paper books and can be viewed at will, improving the user experience.
Smart Images

Figure CN114647355B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information processing, and particularly to a comparison reading method, an electronic device, and a computing storage medium. Background Art
[0002] At present, e-books have become a common reading mode, and major manufacturers have successively launched e-book readers, e-book reading applications, and so on. When reading a book, users often need to compare the context and read the content of several pages before or after the current page. In the related art, first, bookmarks need to be added to the pages to be compared, then turn to other pages for reading. After that, when the user wants to return to the compared page, the bookmark list needs to be called up first, and then the bookmark corresponding to the compared page is clicked. It can be seen that the related art requires users to perform cumbersome operations, and also cannot display two pages simultaneously for users to perform comparison reading, and cannot simulate the comparison reading effect when reading a paper book. Summary of the Invention
[0003] In view of the above problems, the present invention is proposed to provide a comparison reading method, an electronic device, and a computing storage medium that overcome the above problems or at least partially solve the above problems.
[0004] According to one aspect of the present invention, there is provided a comparison reading method, including:
[0005] Receiving a comparison reading trigger operation performed by a user on a book, and obtaining comparison book content corresponding to the book; fixedly displaying the comparison book content in a first screen area of the screen; receiving a touch operation of the user in a second screen area of the screen, and displaying target book content corresponding to the touch operation in the second screen area; wherein the second screen area is used to display other book content of the book except the comparison book content.
[0006] According to another aspect of the present invention, there is provided an electronic device, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete communication with each other through the communication bus;
[0007] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0008] Receiving a comparison reading trigger operation performed by a user on a book, and obtaining comparison book content corresponding to the book; fixedly displaying the comparison book content in a first screen area of the screen; receiving a touch operation of the user in a second screen area of the screen, and displaying target book content corresponding to the touch operation in the second screen area; wherein the second screen area is used to display other book content of the book except the comparison book content.
[0009] According to another aspect of the present invention, there is provided a computer storage medium storing at least one executable instruction, which causes a processor to perform the following operations:
[0010] Receive a comparison reading trigger operation performed by a user on a book, and obtain comparison book content corresponding to the book; fixedly display the comparison book content in a first screen area of the screen; receive a touch operation of the user in a second screen area of the screen, and display target book content corresponding to the touch operation in the second screen area; wherein, the second screen area is used to display other book content of the book except the comparison book content.
[0011] According to the comparison reading method, electronic device and computing storage medium of the present invention, the method includes: receiving a comparison reading trigger operation performed by a user on a book, and obtaining comparison book content corresponding to the book; fixedly displaying the comparison book content in a first screen area of the screen; receiving a touch operation of the user in a second screen area of the screen, and displaying target book content corresponding to the touch operation in the second screen area; the second screen area is used to display other book content of the book except the comparison book content. By the above method, when the user performs a comparison reading trigger operation, it switches to the comparison reading mode, fixedly displays the comparison book content in the first screen area, and displays other book content of the book except the comparison book content in the second screen area, and the user can switch the displayed book content by performing an operation in the second screen area, so that the user can randomly view other book content of the book except the comparison book content in the second screen area, and the comparison reading can be realized without the user performing complex operations, and the comparison reading effect of fixing the comparison page and allowing random viewing of other pages when reading a paper book is restored, which can improve the user experience.
[0012] The above description is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other objects, features and advantages of the present invention more obvious and understandable, the following specific embodiments of the present invention are specifically exemplified. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0014] Figure 1 The flowchart of the comparison reading method provided by the embodiment of the present invention is shown;
[0015] Figure 2 The flowchart of the comparison reading method provided by another embodiment of the present invention is shown;
[0016] Figure 3 Shows a flowchart of the comparison reading method provided by another embodiment of the present invention;
[0017] Figure 4 Shows a flowchart of the comparison reading method provided by another embodiment of the present invention;
[0018] Figure 5a Shows a schematic diagram of the interface in the single - screen reading mode according to an embodiment of the present invention;
[0019] Figure 5b Shows a schematic diagram of the interface in the comparison reading mode according to an embodiment of the present invention;
[0020] Figure 6 Shows a schematic diagram of the structure of the computing device provided by an embodiment of the present invention. Detailed implementation manners
[0021] 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 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 so that the present invention can be more thoroughly understood and the scope of the present invention can be fully conveyed to those skilled in the art.
[0022] Figure 1 Shows a flowchart of the comparison reading method provided by an embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0023] Step S110, receive the comparison reading trigger operation performed by the user on the book, and obtain the comparison book content corresponding to the book.
[0024] The comparison reading trigger operation is used to switch to the comparison reading mode. The user can perform the comparison reading trigger operation within the book display area during the reading process. The comparison reading trigger operation can be a long - press operation, a double - click operation, a specific gesture operation, a touch operation on a specific button, a stylus trigger operation, etc. The present invention does not limit the specific form of the comparison reading trigger operation.
[0025] The comparison book content corresponding to the book is the book content that needs to be compared and is fixedly displayed. For example, it can be the book content pre - marked by the user, or the book content displayed in the book display area when the user performs the comparison reading trigger operation.
[0026] Step S120, fixedly display the comparison book content in the first - screen area of the screen.
[0027] In the comparison reading mode, the screen includes a first screen area and a second screen area. Among them, the first screen area is used to fixedly display the content of the comparison book, and the second screen area is used to display other book content except the content of the comparison book. The first screen area and the second screen area can be split-screen areas on the left and right, or split-screen areas on the top and bottom. The present invention does not limit this.
[0028] In an optional manner, comparison identification information is also displayed within the first screen area to inform the user that the book content presented within the first screen area is the fixed comparison book content.
[0029] Step S130: Receive a touch operation of the user within the second screen area of the screen, and display the target book content corresponding to the touch operation within the second screen area.
[0030] Among them, the second screen area is used to display other book content except the content of the comparison book, and the target book content corresponding to the touch operation belongs to this other book content. The user can perform a touch operation within the second screen area to switch the book content displayed in the second screen area, so that the user can freely view other book content except the content of the comparison book within the second screen area.
[0031] Among them, the touch operation can be a page-turning operation, a sliding operation, or a page-switching operation. For example, if the first screen area fixedly displays the first page of the book, then all other reading pages of the book except the first page are displayed through the second screen area. When the user performs a downward page-turning operation within the second screen area, the next page of the reading page currently displayed in the second screen area is switched for display; when the user performs an upward swipe operation within the second screen area, the subsequent book content of the currently displayed book content is revealed following the upward swipe operation; when the user performs a page-switching operation within the second screen area, for example, the user selects to switch to the last page of the first chapter through a table of contents list or a progress bar, then the last page of the first chapter is switched for display within the second screen area. It can be seen that the first screen area fixedly displays the book content that needs to be compared, and at the same time, the user can switch the book content displayed in the second screen area by performing an operation within the second screen area, restoring the comparison reading effect and experience when reading a paper book.
[0032] According to the comparison reading method provided by this embodiment, in response to the user performing a comparison reading trigger operation to switch to the comparison reading mode, the comparison book content is fixedly displayed within the first screen area, other book content except the comparison book content is displayed within the second screen area, and the user can switch the book content displayed in the second screen area by performing an operation within the second screen area, so that the user can freely view other book content of the book within the second screen area, realizing comparison reading without the user performing complex operations, and restoring the comparison reading effect where the comparison page is fixed and other pages can be freely viewed when reading a paper book.
[0033] Figure 2 The flowchart of the comparison reading method provided by another embodiment of the present invention is shown. This method is used to switch to the comparison reading mode in the split-screen reading mode. As Figure 2 shown, the method includes the following steps:
[0034] Step S210, according to the resource file of the book, split-screen display the book content of the book through the first screen area and the second screen area of the screen.
[0035] In some large-screen devices (such as tablet computers, e-ink readers, foldable screen devices, etc.), a split-screen reading mode is usually provided. In the split-screen reading mode, the screen contains two book display areas, namely the first screen area and the second screen area. The first screen area and the second screen area display two consecutive book reading pages of the book at the same time.
[0036] The resource file of the book is an EPUB file. The EPUB file is typeset and rendered, and the book content of the book is split-screen displayed through the first screen area and the second screen area of the screen.
[0037] Step S220, receive the comparison reading trigger operation performed by the user in the first screen area, obtain the book content currently presented in the first screen area, and obtain the comparison book content.
[0038] Among them, a switching entry for the comparison reading mode is set in both the first screen area and the second screen area. The user can perform an operation in the first screen area or the second screen area to switch to the comparison reading mode.
[0039] When receiving the comparison reading trigger operation performed by the user in the first screen area, obtain the book content currently presented in the first screen area as the comparison book content. In the method of this embodiment, the resource file of the book is an EPUB file. The EPUB file has the advantages of high flexibility and easy calculation. Through the EPUB file, the book content presented in the first screen area can be quickly determined.
[0040] If the e-book application does not support dual-document opening, then execute step S230-step S240; if the e-book application supports dual-document opening, then execute step S250-step S260.
[0041] Among them, not supporting dual-document opening means that only one e-book display object can be processed, and supporting dual-document opening means that two e-book display objects can be processed simultaneously.
[0042] Step S230, generate a picture according to the comparison book content, and cover the picture on the upper layer of the first screen area.
[0043] To ensure that users can freely view the content of other books within the second screen area, it is necessary to keep the second screen area corresponding to an e-book display object. Since the e-book application only supports processing one e-book display object, it is not possible to rely on the e-book display object to display the comparison book content within the first screen area. In this embodiment, a picture is generated based on the comparison book content, and the picture is overlaid on the upper layer of the first screen area, and the comparison book content is fixedly displayed in the first screen area by covering the layer.
[0044] Specifically, take a screenshot of the first screen area, and the picture obtained by the screenshot is the picture containing the comparison book content, and cover this picture on the upper layer of the first screen area; alternatively, take a screenshot of the entire first screen area and the second screen area, and make the area corresponding to the second screen area in the screenshot obtained transparent, and cover the processed picture on the top layer of the screen. The screenshot method is simple and feasible, and can ensure the accuracy of the comparison book content.
[0045] Step S240: Receive the touch operation of the user within the second screen area of the screen, and perform typesetting and rendering on the e-book display object corresponding to the second screen area, so as to display the target book content corresponding to the touch operation within the second screen area.
[0046] Among them, the second screen area is used to display the content of other books except the comparison book content, and the user can perform touch operations within the second screen area to switch the book content displayed in the second screen area.
[0047] Specifically, when the book content is displayed in split screens, an e-book display object is established according to the EPUB file of the book, and the existing e-book display object is determined as the e-book display object corresponding to the second screen area. The e-book display object corresponds to the complete EPUB file of the book. Calculate the target book content corresponding to the touch operation according to the e-book display object corresponding to the second screen area, and perform typesetting and rendering on the second e-book display object, so that the target book content corresponding to the touch operation is displayed in the second screen area.
[0048] That is to say, if the e-book application does not support dual-document opening, only one e-book display object is processed in the comparison reading mode, and the comparison book content is overlaid on the upper layer of the first screen area in the form of a picture, and the content of other books except the comparison book content is displayed in the second screen area through this e-book display object.
[0049] Further, if a trigger operation for exiting the comparison reading is received from the user, clear the picture covering the upper layer of the first screen area, and display the book content of the book in a split-screen manner through the first screen area and the second screen area. The user can execute an operation in the first screen area or the second screen area to exit the comparison reading mode. In response to the trigger operation for exiting the comparison reading by the user, clear the picture covering the upper layer of the first screen area, and restore to the normal split-screen reading mode, and display the book in a split-screen manner in the first screen area and the second screen area according to the EPUB file of the book.
[0050] In an alternative manner, if the e-book application does not support dual-document opening, the comparison reading effect can also be achieved through the following method. Specifically:
[0051] Before receiving the touch operation of the user in the second screen area of the screen, the comparison book content can be fixedly displayed in the first screen area by not refreshing the page.
[0052] After receiving the touch operation of the user in the second screen area of the screen, re-layout the e-book display object so as to layout the comparison book content and the target book content corresponding to the touch operation as adjacent reading pages; render and display the reading page containing the comparison book content obtained by re-layout in the first screen area; then the specific implementation of displaying the target book content corresponding to the touch operation in the second screen area is: render and display the reading page containing the target book content corresponding to the touch operation obtained by re-layout in the second screen area.
[0053] In this method, in the comparison reading mode, the split-screen display process of an e-book display object is still maintained through the first screen area and the second screen area. It's just that every time the user performs an operation such as turning a page in the second screen area, the book will be re-layout. Specifically, calculate the target book content to be displayed in the second screen area according to the EPUB file of the book, re-layout the comparison book content and the target book content to be displayed as two adjacent reading pages, and perform split-screen display on these two consecutive reading pages. Render and display the reading page containing the comparison book content in the first screen area, and render and display the reading page containing the target book content to be displayed in the second screen area, so as to ensure that the comparison book content is always displayed in the first screen area, and the book content displayed in the second screen area can be switched according to the user's operation, restoring the comparison reading effect of fixed comparison pages and arbitrary viewing of other pages when reading a paper book.
[0054] Step S250, layout and render the e-book display object corresponding to the first screen area, so that the comparison book content is fixedly displayed in the first screen area.
[0055] If the e - book application supports dual - opening of documents, determine the existing e - book display object as the e - book display object corresponding to the first - screen area. This existing e - book display object is the one established based on the EPUB file of the book in the previous split - screen reading mode. Perform typesetting and rendering on the e - book display object corresponding to the first - screen area so that the content of the comparison book is fixedly displayed within the first - screen area.
[0056] Step S260: Establish an e - book display object corresponding to the second - screen area according to the resource file of the book. Receive the touch operation of the user within the second - screen area of the screen, and perform typesetting and rendering on the e - book display object corresponding to the second - screen area to display the target book content corresponding to the touch operation within the second - screen area.
[0057] Establish another e - book display object corresponding to the second - screen area according to the EPUB file of the book. Calculate the target book content corresponding to the touch operation based on the e - book display object corresponding to the second - screen area, and perform typesetting and rendering on the second e - book display object so that the target book content corresponding to the touch operation is displayed in the second - screen area.
[0058] It can be seen that if the e - book application supports dual - opening of documents, then both the first - screen area and the second - screen area correspond to an e - book display object. The e - book display objects in both areas are determined according to the complete EPUB file of the book, and there is only a difference in the content rendered and displayed. The touch operation performed in the second - screen area will not affect the e - book display object corresponding to the first - screen area. Therefore, the content of the comparison book can always be fixedly displayed within the first - screen area, and the user can switch the displayed book content by performing touch operations within the second - screen area.
[0059] Further, if a trigger operation to exit the comparison reading is received, restore to the normal split - screen reading mode, and perform split - screen display of the book content through the first - screen area and the second - screen area, and display two consecutive reading pages of the book within the first - screen area and the second - screen area.
[0060] Figure 5b Shows the interface schematic diagram of the comparison reading mode in the embodiment of the present invention, as Figure 5b As shown, in the comparison reading mode, the screen includes a left split - screen area 52 and a right split - screen area 53. In the split - screen reading mode, assume that the user performs a comparison reading trigger operation within the left split - screen area. Then, fix the comparison book content currently presented within the left split - screen area, and present other book content except the comparison book content within the right split - screen area. The user can perform page - turning operations, sliding operations, page - switching operations, etc. within the right split - screen area to enable the right split - screen area to switch and display the corresponding book content.
[0061] According to the comparison reading method provided by this embodiment, in the split-screen reading mode, the book content of a book is displayed in split screens through a first screen area and a second screen area, and the first screen area and the second screen area display two consecutive reading pages of the book; moreover, implementation methods for comparison reading are provided in both cases where document dual-opening is supported and where document dual-opening is not supported; by adopting the method of this embodiment, it is possible to fixedly display the comparison book content within the first screen area, and moreover, the user can switch the book content displayed in the second screen area by performing operations within the second screen area, and can freely view other book content except the comparison book content within the second screen area, enabling comparison reading without the user having to perform complex operations, and moreover, restoring the comparison reading effect where the comparison page is fixed and other pages can be freely viewed when reading a paper book.
[0062] Figure 3 The flowchart of the comparison reading method provided by another embodiment of the present invention is shown. This method is used to switch to the comparison reading mode in the split-screen reading mode, and this method is applied to a scenario where the e-book application does not support document dual-opening, such as Figure 3 as shown, and this method includes the following steps:
[0063] Step S310, according to the resource file of the book, display the book content of the book in split screens through the first screen area and the second screen area of the screen.
[0064] Step S320, receive the comparison reading trigger operation performed by the user within the first screen area, perform a screenshot process on the first screen area, and cover the obtained screenshot on the upper layer of the first screen area.
[0065] By taking a screenshot of the first screen area, a picture containing the comparison book content is obtained, and the picture is covered on the upper layer of the first screen area, so as to fixedly display the comparison book content within the first screen area.
[0066] Step S330, receive the touch operation of the user within the second screen area of the screen, and perform typesetting and rendering on the e-book display object corresponding to the second screen area, so as to display the target book content corresponding to the touch operation within the second screen area.
[0067] The second screen area is used to display other book content except the comparison book content of the book, and moreover, the book content displayed in the second screen area switches following the touch operation of the user. The user can freely view other book content except the comparison book content of the book within the second screen area. The e-book display object corresponding to the second screen area is an e-book display object established according to the EPUB file of the book during split-screen display processing.
[0068] Step S340: Receive the first note writing operation of the user within the first screen area; determine the first book content corresponding to the first note writing operation according to the screen position information of the first note writing operation and the screen position information of the book content included in the picture; determine the first original offset information of the first book content in the book, and establish a mapping relationship between the note content written by the first note writing operation and the first original offset information.
[0069] In practical applications, users have the need to write notes, and the e-book application associates the note content written by the user with the book content so that the note content written for the book content can be reproduced later.
[0070] In this embodiment, a picture containing the compared book content is overlaid and displayed within the first screen area, and it is impossible to directly know which book content the notes are written for. Therefore, the position of the compared book content in the picture displayed on the screen is pre-recorded, and according to the screen position of the first note writing operation and the screen position of the compared book content included in the picture, the first book content targeted by the first note writing operation is determined. Then, according to the EPUB file of the book, the first original offset information of the first book content in the book (information indicating the specific position of the book content in the book, such as the fifth character position in the third chapter and the second section) is determined, and a mapping relationship between the written note content and the original offset information of the first book content is established. Thus, the note content written by the user in the first screen area in the comparison reading mode can be retained, and the note content written by the user in the comparison reading mode can be associated with the original book.
[0071] Furthermore, when receiving the first note writing operation of the user within the first screen area, the note content written by the first note writing operation is displayed in real time.
[0072] Step S350: Receive the second note writing operation of the user within the second screen area; determine the second book content corresponding to the second note writing operation and the second original offset information of the second book content in the book; establish a mapping relationship between the note content written by the second note writing operation and the second original offset information.
[0073] When the user writes note content within the second screen area, based on the position of the second note writing operation on the screen and the position of the target book content presented in the second screen area on the screen, determine the second book content targeted by the second note writing operation, and establish a mapping relationship between the note content written by the second note writing operation and the second original offset information of the second book content in its book. Similarly, determine the second original offset information of the second book content in the book according to the EPUB file of the book. Through the above method, it is possible to retain the note content written by the user for the book content presented in the second screen area in the comparison reading mode, and associate the note content written by the user in the comparison reading mode with the original book. Among them, since the second screen area is directly displayed according to the EPUB file of the book, it is convenient to quickly obtain the second book content targeted by the second note writing operation and its original offset information.
[0074] Further, when receiving the second note writing operation of the user within the second screen area, the note content written by the second note writing operation is displayed in real time.
[0075] Step S360, receive the trigger operation for the user to exit the comparison reading, clear the picture covering the upper layer of the first screen area, and display the book content of the book in a split screen manner through the first screen area and the second screen area according to the resource file of the book.
[0076] When receiving the trigger operation for the user to exit the comparison reading, clear the picture covering the first screen area, restore to the normal split screen reading mode, perform typesetting and rendering according to the EPUB file of the book, and display two consecutive book reading pages of the book through the first screen area and the second screen area.
[0077] Step S370, according to the original offset information of the book content in the book, superimpose and display the note content mapped by the original offset information on the book content.
[0078] In the normal split screen reading mode, it is necessary to superimpose and display the notes written in the previous comparison reading mode on the book content. If the original offset information of the book content to be displayed maps to note content, the note content is superimposed and displayed on the book content to be displayed.
[0079] According to the comparison reading method of this embodiment, an implementation method for writing notes in the comparison reading mode is provided. By determining the book content targeted by the note writing operation and establishing a mapping relationship between the note content and the original offset position information of the book content, it is possible to associate the note content written in the comparison reading mode with the original book, and the reproduction of the note content can be realized according to the established mapping relationship.
[0080] Figure 4The flowchart of the comparison reading method provided by another embodiment of the present invention is shown. This method is used to realize the switching to the comparison reading mode in the single-screen reading mode, as Figure 4 shown, the method includes the following steps:
[0081] Step S410, display the book content of the book in the single-screen reading area according to the resource file of the book.
[0082] Among them, in the single-screen reading mode, only one reading content display area, that is, the single-screen reading area, is included in the screen; the single-screen reading mode is further divided into a page-turning reading mode and a sliding reading mode. In the page-turning reading mode, each time the user performs a page-turning operation, the next page is switched for display; in the sliding reading mode, the content before or after the currently displayed content is displayed according to the user's sliding operation.
[0083] Step S420, receive the comparison reading trigger operation performed by the user in the single-screen reading area, obtain the book content currently presented in the single-screen reading area, and obtain the comparison book content.
[0084] During the reading process, the user performs a comparison reading trigger operation in the single-screen reading area, and determines the book content currently presented in the single-screen reading area as the comparison book content.
[0085] Step S430, divide the single-screen reading area to obtain a first screen area and a second screen area.
[0086] When switching to the comparison reading mode in the single-screen reading mode, divide the single-screen reading area to obtain a first screen area and a second screen area.
[0087] Figure 5a The interface schematic diagram in the single-screen reading mode in the embodiment of the present invention is shown. In the single-screen reading mode, each reading page of the book is displayed in the single-screen reading area 51. Figure 5b The interface schematic diagram in the comparison reading mode in the embodiment of the present invention is shown. When the user performs a comparison reading trigger operation in the single-screen reading area 51, the single-screen reading area 51 is divided into a left split-screen area 52 and a right split-screen area 53. Of course, the single-screen reading area can also be divided into an upper split-screen area and a lower split-screen area, and the present invention does not limit this.
[0088] Step S440, fixedly display the comparison book content in the first screen area of the screen.
[0089] Among them, if the e-book application does not support document dual opening, a picture containing the comparison book content is generated and overlaid on the upper layer of the first screen area. Optionally, take a screenshot of the single-screen reading area, and reduce the screenshot according to the size of the first screen area to obtain a picture containing the comparison book content.
[0090] Step S450: Receive a touch operation of the user within the second screen area of the screen, and display the target book content corresponding to the touch operation within the second screen area.
[0091] Step S460: Receive a trigger operation for the user to exit the comparison reading, and display the book content of the book through the single-screen reading area according to the resource file of the book.
[0092] The user can perform an operation within the first screen area or the second screen area to exit the comparison reading mode. In response to the trigger operation of the user to exit the comparison reading, it is restored to the single-screen reading mode, and according to the EPUB file of the book, each reading page of the book is displayed within the single-screen reading area.
[0093] According to the comparison reading method provided by this embodiment, an implementation method for switching from the single-screen reading mode to the comparison reading mode is provided. When receiving a comparison reading trigger operation performed by the user within the single-screen reading area, the single-screen reading area is divided to obtain a first screen area and a second screen area, so as to display different book contents through the first screen area and the second screen area for the user to perform comparison reading; at the same time, the book content displayed within the single-screen reading area is determined as the comparison book content, the comparison book content is fixedly displayed within the first screen area, and the other book content of the book except the comparison book content is displayed within the second screen area. Moreover, the user can switch the book content displayed within the second screen area by performing an operation within the second screen area, so that the user can randomly view the other book content of the book except the comparison book content within the second screen area, and the comparison reading can be realized without the user performing complex operations. Furthermore, the comparison reading effect of fixing the comparison page and allowing random viewing of other pages when reading a paper book is restored, which can improve the user experience.
[0094] An embodiment of the present invention provides a non-volatile computer storage medium, and the computer storage medium stores at least one executable instruction, and this computer executable instruction can execute the comparison reading method in any of the above method embodiments.
[0095] The executable instruction can specifically be used to enable the processor to perform the following operations:
[0096] Receive a comparison reading trigger operation performed by the user on the book, and obtain the comparison book content corresponding to the book;
[0097] Fixedly display the comparison book content within the first screen area of the screen;
[0098] Receive a touch operation of the user within the second screen area of the screen, and display the target book content corresponding to the touch operation within the second screen area;
[0099] Among them, the second screen area is used to display other book content of the book except for the content compared with the book content.
[0100] In an alternative manner, the touch operation includes: a page-turning operation, a sliding operation, or a page-switching operation.
[0101] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0102] The book content of the book is split-screen displayed through the first screen area and the second screen area of the screen;
[0103] Receive the comparison reading trigger operation performed by the user in the first screen area, obtain the book content currently presented in the first screen area, and obtain the comparison book content.
[0104] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0105] Receive the comparison reading trigger operation performed by the user in the single-screen reading area;
[0106] Divide the single-screen reading area to obtain a first screen area and a second screen area.
[0107] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0108] Obtain the book content currently presented in the single-screen reading area to obtain the comparison book content.
[0109] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0110] If the e-book application does not support dual-document opening, generate an image according to the comparison book content and cover the image on the upper layer of the first screen area;
[0111] Typeset and render the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation in the second screen area; the e-book display object corresponding to the second screen area is established according to the resource file of the book.
[0112] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0113] If the e-book application does not support document dual-opening, after receiving the touch operation of the user in the second screen area of the screen, re-layout the e-book display object to layout the comparison book content and the target book content corresponding to the touch operation as adjacent reading pages; render and display the reading page containing the comparison book content obtained by re-layout in the first screen area; render and display the reading page containing the target book content corresponding to the touch operation in the second screen area.
[0114] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0115] If the e-book application supports document dual-opening, layout and render the e-book display object corresponding to the first screen area so that the comparison book content is fixedly displayed in the first screen area;
[0116] Layout and render the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation in the second screen area;
[0117] Wherein, the e-book display object corresponding to the first screen area and the e-book display object corresponding to the second screen area are both established according to the resource file of the book.
[0118] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0119] Receive the first note writing operation of the user in the first screen area;
[0120] Determine the first book content corresponding to the first note writing operation according to the screen position information of the first note writing operation and the screen position information of the comparison book content included in the picture;
[0121] Determine the first original offset information of the first book content in the book, and establish a mapping relationship between the note content written by the first note writing operation and the first original offset information.
[0122] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0123] Receive the second note writing operation of the user in the second screen area;
[0124] Determine the second book content targeted by the second note writing operation according to the screen position information of the second note writing operation and the screen position information of the target book content;
[0125] Establish a mapping relationship between the note written by the second note writing operation and the second original offset position of the second book content in the book.
[0126] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0127] Receive a trigger operation for the user to exit the comparison reading, and clear the picture covering the upper layer of the first screen area;
[0128] Perform display processing on the book content according to the resource file of the book.
[0129] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0130] According to the original offset information of the book content in the book, superimpose and display the note content mapped by the original offset information on the book content.
[0131] According to the comparison reading method provided by this embodiment, in response to the user's execution of the comparison reading trigger operation, switch to the comparison reading mode, fixedly display the comparison book content in the first screen area, display other book content except the comparison book content in the second screen area, and the user can switch the book content displayed in the second screen area by performing an operation in the second screen area, so that the user can freely view other book content of the book in the second screen area, realizing comparison reading without the user performing complex operations, and restoring the comparison reading effect of fixed comparison pages and freely viewable other pages when reading a paper book.
[0132] Figure 6 The structural schematic diagram of the embodiment of the electronic device of the present invention is shown, and the specific implementation of the electronic device is not limited in the specific embodiment of the present invention.
[0133] As Figure 6 shown, the electronic device may include: a processor 602, a communication interface 604, a memory 606, and a communication bus 608.
[0134] Among them: The processor 602, the communication interface 604, and the memory 606 complete mutual communication through the communication bus 608. The communication interface 604 is used to communicate with network elements of other devices such as clients or other servers. The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned comparison reading method embodiment for the electronic device.
[0135] Specifically, the program 610 may include program codes, and the program codes include computer operation instructions.
[0136] 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 the embodiments of the present invention. One or more processors included in the electronic device may be of the same type, such as one or more CPUs; or may be of different types, such as one or more CPUs and one or more ASICs.
[0137] A memory 606 for storing a program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0138] The program 610 is specifically configured to cause the processor 602 to perform the following operations:
[0139] Receive a comparison reading trigger operation performed by the user on a book, and obtain comparison book content corresponding to the book;
[0140] Fixedly display the comparison book content within a first screen area of the screen;
[0141] Receive a touch operation of the user within a second screen area of the screen, and display target book content corresponding to the touch operation within the second screen area;
[0142] Wherein, the second screen area is used to display other book content of the book except the comparison book content.
[0143] In an alternative manner, the touch operation includes: a page turning operation, a sliding operation, or a page switching operation.
[0144] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0145] Perform split-screen display of the book content of the book through the first screen area and the second screen area of the screen;
[0146] Receive a comparison reading trigger operation performed by the user within the first screen area, obtain the book content currently presented within the first screen area, and obtain the comparison book content.
[0147] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0148] Receive a comparison reading trigger operation performed by the user within a single-screen reading area;
[0149] Divide the single-screen reading area to obtain a first screen area and a second screen area.
[0150] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0151] Obtain the book content currently presented within the single-screen reading area to obtain the comparison book content.
[0152] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0153] If the e-book application does not support dual-document opening, generate an image based on the comparison book content and overlay the image on the upper layer of the first screen area;
[0154] Perform typesetting and rendering on the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation within the second screen area; the e-book display object corresponding to the second screen area is established based on the resource file of the book.
[0155] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0156] If the e-book application does not support dual-document opening, after receiving the touch operation of the user within the second screen area of the screen, re-typeset the e-book display object to typeset the comparison book content and the target book content corresponding to the touch operation as adjacent reading pages; render and display the reading page containing the comparison book content obtained by re-typesetting within the first screen area; render and display the reading page containing the target book content corresponding to the touch operation obtained by re-typesetting within the second screen area.
[0157] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0158] If the e-book application supports dual-document opening, perform typesetting and rendering on the e-book display object corresponding to the first screen area so that the comparison book content is fixedly displayed within the first screen area;
[0159] Perform typesetting and rendering on the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation within the second screen area;
[0160] Wherein, the e-book display object corresponding to the first screen area and the e-book display object corresponding to the second screen area are both established based on the resource file of the book.
[0161] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0162] Receive the first note writing operation of the user within the first screen area;
[0163] Determine the first book content corresponding to the first note writing operation according to the screen position information of the first note writing operation and the screen position information of the comparison book content included in the picture;
[0164] Determine the first original offset information of the first book content in the book, and establish a mapping relationship between the note content written by the first note writing operation and the first original offset information.
[0165] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0166] Receive a second note writing operation of the user within the second screen area;
[0167] Determine the second book content targeted by the second note writing operation according to the screen position information of the second note writing operation and the screen position information of the target book content;
[0168] Establish a mapping relationship between the note written by the second note writing operation and the second original offset position of the second book content in the book.
[0169] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0170] Receive a trigger operation for the user to exit the comparison reading, and clear the picture covering the upper layer of the first screen area;
[0171] Perform a display process on the book content of the book according to the resource file of the book.
[0172] In an alternative manner, the program 610 causes the processor 602 to perform the following operations:
[0173] Overlay and display the note content mapped by the original offset information on the book content according to the original offset information of the book content in the book.
[0174] According to the comparison reading method provided in this embodiment, in response to the user performing a comparison reading trigger operation to switch to the comparison reading mode, fixedly display the comparison book content in the first screen area, display other book content except the comparison book content in the second screen area, and the user can switch the book content displayed in the second screen area by performing an operation within the second screen area, so that the user can casually view other book content of the book within the second screen area, and the comparison reading can be realized without the user performing complex operations, and the comparison reading effect of fixing the comparison page and allowing casual viewing of other pages when reading a paper book is restored.
[0175] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. A variety of general-purpose systems can also be used in conjunction with the teachings provided herein. The structure required to construct such systems will be apparent from the above description. Additionally, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the teachings of the present invention described herein can be implemented in a variety of programming languages, and the description of a particular language above is for the purpose of disclosing the best mode of the present invention.
[0176] In the specification provided herein, numerous specific details are set forth. However, it can be understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0177] Similarly, it should be understood that, in order to streamline the present invention and assist in understanding one or more of the various inventive aspects, in the above description of the 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, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, the inventive aspects lie in less than all of the features of the single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate embodiment of the present invention.
[0178] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and disposed in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.
[0179] In addition, those skilled in the art can understand that although some embodiments herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
[0180] Each component embodiment of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0181] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art can 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 the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices can be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A comparative reading method, comprising: Receiving a comparative reading trigger operation performed by a user on a book, and obtaining corresponding comparative book content of the book; Fixedly displaying the comparative book content within a first screen area of a screen; Receiving a touch operation of the user within a second screen area of the screen, and displaying corresponding target book content of the touch operation within the second screen area; Wherein, the second screen area is used to display other book content of the book except the comparative book content; in the case where the e-book application does not support dual-document opening, an image generated based on the comparative book content is overlaid on the upper layer of the first screen area, and the second screen area corresponds to an e-book display object; or, in the case where the e-book application does not support dual-document opening, a reading page containing the comparative book content obtained by re-typesetting is rendered and displayed within the first screen area, and a reading page containing the target book content obtained by re-typesetting is rendered and displayed within the second screen area, and after re-typesetting of the e-book display object, the comparative book content and the target book content are typeset into adjacent reading pages; Wherein, in the case where an image generated based on the comparative book content is overlaid on the upper layer of the first screen area, receiving a first note writing operation of the user within the first screen area, and determining, according to the screen position information of the first note writing operation and the screen position information of the comparative book content included in the image, the first book content corresponding to the first note writing operation, determining the first original offset information of the first book content in the book, and establishing a mapping relationship between the note content written by the first note writing operation and the first original offset information.
2. The method according to claim 1, wherein, The touch operation includes: a page turning operation, a sliding operation, or a page switching operation.
3. The method according to claim 1, wherein, Before the method is executed, it further includes: Performing split-screen display of the book content of the book through the first screen area and the second screen area of the screen; The receiving a comparative reading trigger operation performed by a user on a book and obtaining corresponding comparative book content of the book further includes: Receiving a comparative reading trigger operation performed by the user within the first screen area, and obtaining the book content currently presented within the first screen area to obtain the comparative book content.
4. The method according to claim 1, wherein The receiving a comparative reading trigger operation performed by a user on a book further includes: Receiving a comparative reading trigger operation performed by the user within a single-screen reading area; The method further includes: dividing the single-screen reading area to obtain the first screen area and the second screen area.
5. The method according to claim 4, wherein The obtaining corresponding comparative book content of the book further includes: Obtaining the book content currently presented within the single-screen reading area to obtain the comparative book content.
6. The method according to claim 3 or 4, wherein If the e-book application does not support dual-document opening, the fixedly displaying the comparative book content within the first screen area of the screen further includes: Generating an image based on the comparative book content, and overlaying the image on the upper layer of the first screen area; The displaying corresponding target book content of the touch operation within the second screen area further includes: Typeset and render the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation within the second screen area; wherein, the e-book display object corresponding to the second screen area is established according to the resource file of the book.
7. The method according to claim 3 or 4, wherein If the e-book application does not support dual-document opening, after receiving the touch operation of the user within the second screen area of the screen, the method further includes: Redo the typesetting of the e-book display object to typeset the compared book content and the target book content corresponding to the touch operation as adjacent reading pages; render and display in the first screen area the reading page containing the compared book content obtained after the redo typesetting. The step of displaying the target book content corresponding to the touch operation within the second screen area further includes: rendering and displaying in the second screen area the reading page containing the target book content corresponding to the touch operation obtained after the redo typesetting.
8. The method according to claim 3 or 4, wherein, If the e-book application supports dual-document opening, the step of fixedly displaying the compared book content within the first screen area of the screen further includes: Typeset and render the e-book display object corresponding to the first screen area to fixedly display the compared book content within the first screen area. The step of displaying the target book content corresponding to the touch operation within the second screen area further includes: Typeset and render the e-book display object corresponding to the second screen area to display the target book content corresponding to the touch operation within the second screen area. Wherein, the e-book display object corresponding to the first screen area and the e-book display object corresponding to the second screen area are both established according to the resource file of the book.
9. The method according to claim 1, wherein The method further includes: Receiving a second note writing operation of the user within the second screen area. Determining the second book content targeted by the second note writing operation according to the screen position information of the second note writing operation and the screen position information of the target book content. Establishing a mapping relationship between the note written by the second note writing operation and the second original offset position of the second book content in the book.
10. The method according to claim 6, wherein, The method further includes: Receiving a trigger operation for the user to exit the comparison reading, clearing the picture covering the upper layer of the first screen area. Performing a display process on the book content of the book according to the resource file of the book.
11. The method according to claim 10, wherein, The method further includes: Overlaying and displaying the note content mapped by the original offset information on the book content according to the original offset information of the book content in the book.
12. An electronic device, comprising: A processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete mutual communication through the communication bus. The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following operations: Receiving a comparison reading trigger operation performed by the user on the book, and obtaining the compared book content corresponding to the book. Fixedly displaying the compared book content within the first screen area of the screen. Receiving a touch operation of the user within the second screen area of the screen, and displaying the target book content corresponding to the touch operation within the second screen area. Wherein, the second screen area is used to display other book content of the book except the content of the compared book; when the e-book application does not support dual-document opening, a picture generated according to the content of the compared book is covered on the upper layer of the first screen area, and the second screen area corresponds to the e-book display object; or, when the e-book application does not support dual-document opening, a reading page containing the content of the compared book obtained by re-layout is rendered and displayed in the first screen area, and a reading page containing the content of the target book obtained by re-layout is rendered and displayed in the second screen area. After re-layout of the e-book display object, the content of the compared book and the content of the target book are typeset as adjacent reading pages. Wherein, when a picture generated according to the content of the compared book is covered on the upper layer of the first screen area, a first note writing operation of the user in the first screen area is received, and according to the screen position information of the first note writing operation and the screen position information of the content of the compared book included in the picture, the first book content corresponding to the first note writing operation is determined, the first original offset information of the first book content in the book is determined, and a mapping relationship between the note content written by the first note writing operation and the first original offset information is established.
13. The electronic device according to claim 12, wherein, The touch operation includes: a page turning operation, a sliding operation or a page switching operation.
14. The electronic device according to claim 12, wherein the executable instructions further cause the processor to perform the following operations: The book content of the book is split-screen displayed through the first screen area and the second screen area of the screen. A comparison reading trigger operation performed by the user in the first screen area is received, and the book content currently presented in the first screen area is obtained to obtain the content of the compared book.
15. The electronic device according to claim 12, wherein the executable instructions further cause the processor to perform the following operations: A comparison reading trigger operation performed by the user in the single-screen reading area is received. The single-screen reading area is divided to obtain the first screen area and the second screen area.
16. The electronic device according to claim 15, wherein the executable instructions further cause the processor to perform the following operations: The book content currently presented in the single-screen reading area is obtained to obtain the content of the compared book.
17. The electronic device according to claim 14 or 15, wherein the executable instructions further cause the processor to perform the following operations: If the e-book application does not support dual-document opening, a picture is generated according to the content of the compared book and the picture is covered on the upper layer of the first screen area. The e-book display object corresponding to the second screen area is typeset and rendered to display the target book content corresponding to the touch operation in the second screen area. The e-book display object corresponding to the second screen area is established according to the resource file of the book.
18. The electronic device according to claim 14 or 15, wherein the executable instructions further cause the processor to perform the following operations: If the e-book application does not support dual-document opening, after receiving the touch operation of the user in the second screen area of the screen, re-layout the e-book display object to layout the target book content corresponding to the comparison book content and the touch operation as adjacent reading pages; Render and display on the first screen area a reading page obtained by reformatting and containing the content of the compared book. Render and display on the second screen area a reading page obtained by reformatting and containing the content of the target book corresponding to the touch operation.
19. The electronic device according to claim 14 or 15, wherein the executable instructions further cause the processor to perform the following operations: If the e-book application supports dual-document opening, perform typesetting and rendering on the e-book display object corresponding to the first screen area, so that the content of the compared book is fixedly displayed within the first screen area. Perform typesetting and rendering on the e-book display object corresponding to the second screen area to display the content of the target book corresponding to the touch operation within the second screen area. Among them, The e-book display object corresponding to the first screen area and the e-book display object corresponding to the second screen area are both established according to the resource file of the book.
20. The electronic device according to claim 12, wherein the executable instructions further cause the processor to perform the following operations: Receive a second note writing operation of the user within the second screen area. Determine the second book content targeted by the second note writing operation according to the screen position information of the second note writing operation and the screen position information of the content of the target book. Establish a mapping relationship between the note written by the second note writing operation and the second original offset position of the second book content in the book.
21. The electronic device according to claim 17, wherein the executable instructions further cause the processor to perform the following operations: Receive a trigger operation for the user to exit the comparison reading, and clear the picture covering the upper layer of the first screen area. Perform display processing on the book content of the book according to the resource file of the book.
22. The electronic device according to claim 21, wherein the executable instructions further cause the processor to perform the following operations: Overlay and display the note content mapped by the original offset information on the book content according to the original offset information of the book content in the book.
23. A computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes the processor to perform the operations corresponding to the comparison reading method according to any one of claims 1-11.
Citation Information
Patent Citations
Comparison display method, equipment and computer storage medium for electronic data
CN108255390A
Note-taking generation method, electronic device, and computer storage medium
CN109085965A