CN106484248B - Electronic book reading processing method and device - Google Patents

Electronic book reading processing method and device Download PDF

Info

Publication number
CN106484248B
CN106484248B CN201610832310.9A CN201610832310A CN106484248B CN 106484248 B CN106484248 B CN 106484248B CN 201610832310 A CN201610832310 A CN 201610832310A CN 106484248 B CN106484248 B CN 106484248B
Authority
CN
China
Prior art keywords
reading
page number
current reading
page
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610832310.9A
Other languages
Chinese (zh)
Other versions
CN106484248A (en
Inventor
莫文
徐宏伟
罗浩源
毕磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610832310.9A priority Critical patent/CN106484248B/en
Publication of CN106484248A publication Critical patent/CN106484248A/en
Application granted granted Critical
Publication of CN106484248B publication Critical patent/CN106484248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a reading processing method of an electronic book, which comprises the following steps: generating appointed reading setting of the electronic book and a screenshot picture of a page corresponding to an appointed reading page number, and storing the screenshot picture; after receiving an instruction of opening a reading electronic book, acquiring current reading setting and current reading page number; searching screen capture pictures corresponding to the current reading setting and the current reading page number; and loading the searched screenshot picture on a screen, and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background. The invention can reduce the waiting time from the opening of the electronic book to the entering of the reading state and improve the efficiency of the reading operation.

Description

Electronic book reading processing method and device
Technical Field
The present disclosure relates to the field of electronic book reading processing, and in particular, to a method and an apparatus for processing electronic book reading.
Background
Mobile reading means reading digitized image and text information, namely an electronic book, on a portable intelligent device by means of a mobile reading application program (APP). The portable intelligent device can be a portable device with data processing capability and information display capability, such as a smart phone, a palm computer and the like.
The demand of mobile reading is more and more important along with the development, and the average service life of the mobile reading application is longer and longer, and occupies a part of the life of people. When the mobile reading is carried out, the content of the electronic book is often read more than that of the common blog, and the size of the screen of the portable intelligent device is smaller than that of the paper book. When reading, just need carry out whole book analysis to the electronic book, then typeset the paging, show for the user on the screen at last, this process often is longer, to the user, needs very long latency after opening reading APP, just can read, and user experience is very poor.
In the prior art, in order to enhance user experience, a loading animation is displayed on a front-end interface of a reading APP, a background program analyzes an electronic book file for typesetting, after typesetting is finished, the content of a reading position of a user is displayed, and then the loading animation is closed.
However, the disadvantages of this prior art are: the animation loading can be changed due to the size of the electronic book file to be analyzed by the background, for the electronic book with a large file, a long animation loading time is needed before the electronic book is opened to enter a reading state, a user still needs to wait for a long time to enter reading, and the reading operation efficiency is low.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for reading an electronic book, so as to reduce the waiting time from opening the electronic book to entering a reading state and improve the efficiency of reading operation.
The technical scheme of the invention is realized as follows:
a reading processing method of an electronic book comprises the following steps:
generating appointed reading setting of the electronic book and a screenshot picture of a page corresponding to an appointed reading page number, and storing the screenshot picture;
after receiving an instruction of opening a reading electronic book, acquiring current reading setting and current reading page number;
searching screen capture pictures corresponding to the current reading setting and the current reading page number;
and loading the searched screenshot picture on a screen, and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background.
Preferably, after loading the found screenshot picture on the screen, the method further includes:
after receiving a page turning instruction, judging whether the analysis typesetting is finished or not, if so, entering a typesetting and reading state, and displaying a page of a page number indicated by the page turning instruction on a screen; otherwise, searching the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction, and loading the searched screen capture picture on the screen.
Preferably, the generating of the screen capture picture of the page corresponding to the designated reading setting and the designated reading page number of the electronic book specifically includes:
after receiving the instruction of reading end, executing the following steps:
if the current reading page number is not the first page or the last page, generating a screen capture picture of a page corresponding to the current reading page number and generating screen capture pictures of pages corresponding to specified page numbers before and after the current reading page number according to the current reading setting;
if the current reading page number is the first page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to a specified page number after the current reading page number according to the current reading setting;
and if the current reading page number is the last page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to the appointed number of pages before the current reading page number according to the current reading setting.
Preferably, the saving the screenshot picture specifically includes:
and generating a corresponding character string according to the reading setting and the reading page number corresponding to the generated screenshot picture and a specified generation strategy, taking the character string as the identifier of the screenshot picture, and correspondingly storing the screenshot picture and the identifier thereof.
Preferably, the searching for the screenshot picture corresponding to the current reading setting and the current reading page number specifically includes:
generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy, and searching a screenshot picture corresponding to the character string from the stored screenshot pictures;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes:
and generating a corresponding character string according to the current reading setting and the page number indicated by the page turning instruction and an appointed generation strategy, and searching the screen capturing picture corresponding to the character string from the stored screen capturing pictures.
Preferably, the generating a corresponding character string according to the specified generation policy specifically includes:
and combining the reading setting with the characters of the reading page number, calculating MD5 summary information of the character combination, and taking the MD5 summary information as the correspondingly generated character string.
Preferably, the saving the screenshot picture specifically includes: saving the screen shot picture on a local and/or server;
the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically comprises:
searching a screen capture picture corresponding to the current reading setting and the current reading page number locally;
or, searching a screenshot picture corresponding to the current reading setting and the current reading page number locally, and searching the screenshot picture corresponding to the current reading setting and the current reading page number on the server if the screenshot picture is not found;
or searching a screen capture picture corresponding to the current reading setting and the current reading page number on the server, downloading the screen capture picture and storing the screen capture picture locally.
Preferably, the saving the screenshot picture specifically includes:
generating a corresponding character string according to a specified generation strategy according to the reading setting and the reading page number corresponding to the generated screenshot picture, taking the character string and the resolution of the local equipment as the identification of the screenshot picture, and correspondingly storing the screenshot picture and the identification thereof on a server.
Preferably, the searching for the screenshot picture corresponding to the current reading setting and the current reading page number specifically includes: generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy, determining the resolution of local equipment, and searching a screenshot picture corresponding to the character string and the resolution from a server;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes: and generating a corresponding character string according to the current reading setting and the page number indicated by the page turning instruction and an appointed generation strategy, determining the resolution of the local equipment, and searching a screenshot picture corresponding to the character string and the resolution from the server.
An electronic book reading processing apparatus, comprising:
the screen capture processing module is used for generating screen capture pictures of pages corresponding to designated reading settings and designated reading page numbers of the electronic book and storing the screen capture pictures;
the triggering module is used for acquiring the current reading setting and the current reading page number after receiving an instruction of opening the reading electronic book;
the screenshot searching module is used for searching for a screenshot picture corresponding to the current reading setting and the current reading page number;
and the loading and analyzing typesetting module is used for loading the searched screenshot picture on the screen and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background.
Compared with the prior art, the method and the device can generate the screen capture pictures of the pages corresponding to the designated reading setting and the designated reading page number of the electronic book, and store the screen capture pictures; after an instruction of opening the reading electronic book is received, the current reading setting and the current reading page number are obtained, the screen capture picture corresponding to the current reading setting and the current reading page number is searched, and the searched screen capture picture is loaded on the screen, so that a user can directly enter a reading state, the waiting time from the opening of the electronic book to the entering of the reading state can be shortened, and the reading operation efficiency is improved. And when the screenshot picture is loaded, analyzing and typesetting the current electronic book according to the current reading setting at the background, generally, after a user finishes reading the page corresponding to the current screenshot picture, the analyzing and typesetting are basically finished, so that after the user turns a page, the page of the page number indicated by the page turning instruction can be displayed on the screen according to the existing typesetting and reading state. Therefore, the problem that the presentation result can be seen only after the electronic book file is analyzed in the prior art can be avoided, and the reading efficiency is improved.
Drawings
Fig. 1 is a flowchart of a reading processing method of an electronic book according to the present invention;
FIG. 2 is a flowchart illustrating a reading processing method of an electronic book according to another embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a reading processing apparatus of an electronic book according to the present invention;
FIG. 4a is a first flow chart of a preferred embodiment of the present invention;
fig. 4b is a second flowchart of the embodiment of fig. 4 a.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a reading processing method of an electronic book according to the present invention. Referring to fig. 1, the main technical solution of the method includes:
step 101, generating a screen capture picture of a page corresponding to the designated reading setting and the designated reading page number of the electronic book, and storing the screen capture picture. The reading setting may be, for example, a font size, a font style, a line spacing, a segment spacing, or the like, default reading setting information may be set in advance, or the reading setting information may be modified according to a user instruction.
And 102, acquiring the current reading setting and the current reading page number after receiving the instruction of opening the reading electronic book.
And 103, searching screen capture pictures corresponding to the current reading setting and the current reading page number.
And 104, loading the found screenshot picture on a screen, and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background.
The searched screenshot picture is loaded on the screen, so that the user can directly enter a reading state, the waiting time from the opening of the electronic book to the entering of the reading state can be shortened, and the reading operation efficiency is improved. If the user finishes reading the current page, a page turning instruction is sent.
In a preferred embodiment of the present invention, after loading the found screenshot picture on the screen, as shown in fig. 2, the method may further include:
step 105, judging whether a page turning instruction is received;
step 106, after receiving a page turning instruction, judging whether the analysis typesetting is finished, if so, entering a typesetting and reading state, and displaying a page of a page number indicated by the page turning instruction on a screen; otherwise, searching the screenshot picture corresponding to the current reading setting and the page number indicated by the page turning instruction, loading the searched screenshot picture on the screen, and returning to the step 105.
Through the processing, after the user turns the pages, if the analysis typesetting is finished, the pages of the page numbers indicated by the page turning instructions can be displayed on the screen according to the existing typesetting reading state. If the analysis typesetting is not finished, screen capture pictures of the page indicated by the page turning instruction are loaded, and the background continues to analyze the typesetting, so that the user can directly enter the reading state of the next page without waiting even if the user turns the page, and the reading efficiency is improved.
In step 101 of the present invention, the generating of the screen capture pictures of the pages corresponding to the designated reading setting and the designated reading page number of the electronic book specifically includes:
firstly, the timing of generating the appointed reading setting of the electronic book and the screenshot picture of the page corresponding to the appointed reading page number is usually the timing when the last reading is finished. Therefore, in one embodiment, after receiving the reading end command, the following steps are performed:
if the current reading page number is not the first page or the last page, generating a screen capture picture of a page corresponding to the current reading page number and generating screen capture pictures of pages corresponding to specified page numbers before and after the current reading page number according to the current reading setting;
if the current reading page number is the first page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to a specified page number after the current reading page number according to the current reading setting;
and if the current reading page number is the last page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to the appointed number of pages before the current reading page number according to the current reading setting.
The generation of the screenshot pictures of the page corresponding to the designated page number before and after the current page number is to load the screenshot picture corresponding to the current page number after the user opens the electronic book, and after a page turning instruction occurs, if the background does not finish the analysis and typesetting process at the same time, the screenshot picture corresponding to the page turning instruction (usually the previous page or the next page of the current page) can be directly obtained and loaded, so that the user can continue to read the content of the page without waiting. The background parsing and typesetting process is usually finished according to the current device processing speed and the user's usual reading speed, the time when the user finishes reading the 3 pages of contents. Therefore, in a preferred embodiment, the screenshot of the page corresponding to the specified number of pages before and after the current reading page is generated, and the specified number of pages is usually set to 3 pages. Of course, other values may be set as desired.
In another preferred embodiment, in order to store the screenshot picture through a unique identifier, the saving the screenshot picture specifically includes:
and generating a corresponding character string according to the reading setting and the reading page number corresponding to the generated screenshot picture and a specified generation strategy, taking the character string as the identifier M of the screenshot picture, and correspondingly storing the screenshot picture and the identifier M thereof.
Correspondingly, the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically includes:
generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy, and searching a screenshot picture corresponding to the character string from the stored screenshot pictures; here, the specified generation policy is the same as the specified generation policy for generating a character string when storing the screenshot picture;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes:
generating a corresponding character string according to the current reading setting and the page number indicated by the page turning instruction and an appointed generating strategy, and searching the screenshot picture corresponding to the character string from the stored screenshot pictures; here, the specified generation policy is the same as the specified generation policy for generating a character string when storing a screenshot picture described above.
In a further preferred embodiment, the generating a corresponding character string according to a specified generation policy may specifically include: and combining the reading setting with the characters of the reading page number, calculating MD5 summary information of the character combination, and taking the MD5 summary information as the correspondingly generated character string. For example, all letters set for reading can be underlined and connected, and finally connected with a page number, and then MD5 message digest information of the character combination is calculated to obtain a cache Key, wherein the cache Key is a character string, the cache Key is used as an identifier of a corresponding screenshot picture, and the cache Key and the screenshot picture are correspondingly stored, so that during subsequent searching, the cache Key is generated by adopting the same generation strategy, and the corresponding screenshot picture can be quickly searched according to the cache Key.
In a preferred embodiment of the present invention, the storing of the screenshot picture may specifically be storing the screenshot picture on a local device and/or a server. The local device refers to a device where a program executing the method of the present invention is located, such as a smart phone, a palm computer, a tablet computer, and the like.
Correspondingly, the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically includes:
and if the screen capture picture is stored locally, searching the screen capture picture corresponding to the current reading setting and the current reading page number locally.
Or if the screen capture picture is stored locally and on the server, searching the screen capture picture corresponding to the current reading setting and the current reading page number locally, and if the screen capture picture is not found, searching the screen capture picture corresponding to the current reading setting and the current reading page number on the server. Further, if the screen capture picture corresponding to the current reading setting and the current reading page number is found on the server, the screen capture picture can be downloaded to the local and stored in the local for the next time to be directly found in the local.
Or if the screen capture picture is stored on the server, searching the screen capture picture corresponding to the current reading setting and the current reading page number on the server, and downloading and storing the screen capture picture locally.
In addition, in another preferred embodiment of the invention, the screen shots can be all stored in the server in a centralized way. In an actual application scenario, because a number of users reading the same electronic book are numerous, and resolutions of reading devices used by different users may also be different, in this embodiment, the saving the screenshot picture in step 101 may specifically be: according to the reading setting and the reading page number corresponding to the generated screenshot picture, a corresponding character string (such as a cache Key generated according to the generation strategy) is generated according to a specified generation strategy, the character string and the resolution of the local equipment are used as the identification of the screenshot picture, and the screenshot picture and the identification thereof are uploaded to a server and are correspondingly stored on the server. The character string and the resolution correspond to a page of the electronic book displayed on a device with a specific resolution according to the specified reading setting (such as word size, font, line spacing, segment spacing and the like) and page number. Therefore, the display pages of the electronic book are distinguished according to the reading setting and the page number, and are also distinguished according to the resolution of the reading equipment, and for different users, if the resolution of the reading equipment used by the user is the same and the set reading setting and the set page number are the same, the corresponding screen capture pictures can be shared.
In this embodiment, when the server stores the screenshot picture, it is further determined whether the screenshot picture corresponding to the screenshot picture identifier is already stored on the server, where the identifier includes the uploaded character string (e.g., the cache Key) and the resolution, and if so, the screenshot picture does not need to be stored repeatedly, and if not, the screenshot picture is stored. Therefore, only one screen shot with the same reading setting, the same resolution and the same page number can be obtained on the server, and waste of storage space is reduced.
In this embodiment, the searching for the screenshot picture corresponding to the current reading setting and the current reading page number specifically includes:
generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy (the same generation strategy as that when the screenshot picture is stored), determining the resolution ratio of the local equipment, and searching the screenshot picture corresponding to the character string and the resolution ratio from the server;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes: and according to the current reading setting and the page number indicated by the page turning instruction, generating a corresponding character string according to an appointed generation strategy (the same generation strategy as that when the screenshot picture is stored), determining the resolution of the local equipment, and searching the screenshot picture corresponding to the character string and the resolution from the server.
Through the processing, if a user opens a certain electronic book on the reading equipment, even if the user does not store the screen capture pictures of the related pages of the electronic book on the server or the local, as long as the server stores the screen capture pictures with the same resolution, the same reading setting and the same page number as the reading equipment of the user, the user can download the screen capture pictures from the server, load and display the screen capture pictures on the local reading equipment, and simultaneously perform analysis and typesetting operation on the background, so that the waiting time for opening the electronic book to enter a reading state is saved.
Corresponding to the above method of the present invention, the present invention also discloses a reading processing apparatus for an electronic book, as shown in fig. 3, including:
the screenshot processing module 301 is configured to generate a screenshot picture of a page corresponding to a designated reading setting and a designated reading page number of an electronic book, and store the screenshot picture;
the triggering module 302 is configured to obtain a current reading setting and a current reading page number after receiving an instruction to open a reading electronic book;
a screenshot searching module 303, configured to search for a screenshot picture corresponding to the current reading setting and the current reading page number;
and the loading and resolving typesetting module 304 is used for loading the found screenshot picture on the screen and simultaneously performing resolving typesetting on the current electronic book according to the current reading setting at the background.
Further, the device may further include a page turning processing module, configured to, after loading the found screenshot picture on the screen, if a page turning instruction is received, determine whether the parsing layout is finished, if so, enter a layout reading state, and display a page of a page number indicated by the page turning instruction on the screen; otherwise, searching the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction, and loading the searched screen capture picture on the screen.
A preferred embodiment of the present invention will be described in detail below with reference to a flowchart illustrating a specific implementation process. Fig. 4a and 4b are flow charts of a preferred embodiment of the present invention. Referring to fig. 4a and 4b, this embodiment specifically includes:
step 401, a reading client on the reading device, i.e. an electronic book reader, is opened.
Step 402, selecting a certain electronic book on the reading client, and opening the electronic book, that is, the reading client receives an instruction to open the certain electronic book.
Step 403, the reading client obtains a local reading page number of the electronic book, where the reading page number is generally a page saved when the user finishes reading last time, and if the local reading page number is not stored, the page number of the first page of the electronic book is obtained by default.
Step 404, the reading client obtains local reading settings, including font size, font style, line spacing, segment spacing, and the like.
Step 405, the reading client side connects the obtained reading setting and reading page number according to all the set letters by underlining, and finally connects the obtained reading setting and reading page number with the page number to form a character group, and then obtains the message abstract of the MD5 from the character group to obtain the cache Key (marked as parameter A).
Step 406, the reading client queries whether the screenshot picture corresponding to the parameter a in the previous step is stored locally, if so, the step 4a1 is executed, otherwise, the step 407 is executed.
Step 407, the reading client determines whether the local device is connected to wireless wifi, if so, the step 408 is performed, otherwise, the step 4b1 is performed. Of course, this step may be omitted, and step 407 may be directly omitted and the process may proceed to step 408 or directly to step 4b 1.
Step 408, the reading client obtains the resolution of the screen of the local device, and initiates a request to the server to obtain the screenshot picture of the current reading page number, where the request carries the resolution parameter and the parameter a.
Step 409, the server inquires whether a screen capture picture corresponding to the parameter A and the resolution exists on the server side according to the parameter A and the resolution in the request. If other users or the current user upload the screenshot picture corresponding to the same parameter A and the same resolution, the screenshot picture is inquired.
Step 410, the server returns the query result to the requesting client. Specifically, if the screenshot exists, the link address of the screenshot is returned.
Step 411, the reading client determines whether the query result returned by the server has a screenshot picture, if yes, the step 412 is turned to, otherwise, the step 4b1 is turned to.
Step 412, the reading client downloads the screenshot picture, and caches the screenshot picture to the local device by using the parameter a for subsequent query, and goes to step 4a 1.
And 4a1, displaying the book opening animation by the reading client. The time for opening the animation of the book is short and can be determined according to actual implementation. The purpose of the display opening animation is to: and in the process of loading the screenshot picture, if the processing time exceeds the processing time of the scheme in the analysis typesetting process, starting loading the animation for transition.
And 4a2, loading the screen capture picture which is inquired from the local or downloaded from the server by the reading client. Meanwhile, an analysis typesetting task is started at the background, the currently opened electronic book is analyzed and typeset according to the current resolution of the local equipment, and the analysis typesetting is to analyze and typeset the content of the electronic book according to the current reading setting such as the font size, the font style, the line spacing, the segment spacing and the like, and to be displayed subsequently.
And 4a3, judging whether a page turning instruction is received by the reading client, and if so, turning to the step 4a 4.
And 4a4, judging whether the current analysis typesetting task is finished or not by the reading client, if so, turning to a step 4a5, and otherwise, turning to a step 4c 1.
Step 4a5, the reading client enters the typesetting and reading state, displays the page of the page number indicated by the page turning instruction on the screen, and goes to step 4d1, as shown in fig. 4 b.
And 4b1, displaying the book opening animation by the reading client.
And step 4b2, the reading client analyzes and copies the currently opened electronic book according to the current resolution of the local equipment.
And 4b3, closing the opening animation after the analysis and typesetting are finished.
Step 4b4, the reading client enters the typesetting and reading state, displays the page of the current reading page number on the screen, and then goes to step 4d1, as shown in fig. 4 b.
And step 4C1, the reading client side fully spells letters according to the acquired reading setting and the reading page number pointed by the page turning instruction, connects the letters with the page number through underlining, and finally connects the letters with the page number to form a character group, and then acquires the message abstract of the MD5 from the character group to obtain a cache Key (marked as parameter C).
And 4C2, the reading client inquires whether the screenshot picture corresponding to the parameter C is stored locally, if so, the step 4C3 is carried out, and if not, the step 4C4 is carried out.
And 4c3, loading the inquired screen capture picture by the reading client, and returning to the step 4a 3.
And 4c4, displaying the book opening animation by the reading client.
And 4c5, the reading client analyzes and copies the currently opened electronic book according to the current resolution of the local equipment.
And 4c6, closing the opening animation after the analysis and typesetting are finished.
And 4c7, the reading client enters the typesetting and reading state, displays the page of the page number indicated by the page turning instruction on the screen, and then turns to the step 4d1, as shown in fig. 4 b.
Step 4d1, the reading client determines whether reading is finished, that is, whether a reading finishing instruction is received, if reading is finished, go to step 4d 2.
And 4d2, the reading client respectively screens the page corresponding to the current reading page number and the pages corresponding to the specified pages before and after the current reading page number to obtain more than one screen shot picture, wherein one page corresponds to one screen shot picture.
Specifically, if the current reading page number is not the first page or the last page, generating a screenshot picture of a page corresponding to the current reading page number and generating screenshot pictures of corresponding pages of specified pages (such as the front page and the back page) before and after the current reading page number according to the current reading setting;
if the current reading page number is the first page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to a specified page number (such as the last three pages) after the current reading page number according to the current reading setting;
and if the current reading page number is the last page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to a specified page number (such as the first three pages) before the current reading page number according to the current reading setting.
And 4d3, aiming at the screenshot picture corresponding to each page obtained by the screenshot, the reading client-side connects the current reading setting and the page number corresponding to the screenshot picture through underlining according to all the set letters, and finally connects the all-spelling and the page number to form a character group, and then obtains an MD5 message abstract from the character group to obtain a cache Key, wherein the cache Key is marked as Bi, and i is the serial number of the screenshot picture.
And 4d4, the reading client stores the screen capture picture locally by using the cache Key, namely Bi, corresponding to the screen capture picture aiming at the screen capture picture corresponding to each page. That is, each cached picture and the corresponding Bi thereof are locally and correspondingly stored, and subsequently, the screenshot picture can be found locally according to Bi.
And 4d5, the reading client judges whether the WiFi is connected at the moment, if so, the step 4d6 is carried out, and if not, the process is ended. Of course, this step may be omitted, that is, this step may be skipped to directly end this flow, or this step may be skipped to directly execute step 4d 6.
Step 4d6, the reading client acquires the resolution of the local device, and sends an upload request to the server, wherein the upload request includes: the screenshot picture obtained by the screenshot, the corresponding Bi and the resolution of the local equipment.
Step 4d7, the server receives the upload request, and according to the Bi and the resolution in the upload request, it is inquired whether the screenshot picture corresponding to the Bi and the resolution exists at the server, if so, it indicates that the user has uploaded the screenshot picture with the same reading setting, the same page number and the same resolution, and the process is ended without repeated storage; if not, go to step 4d8.
And 4d8, the server stores the screenshot picture in the uploading request in the server corresponding to the Bi and the resolution. Then, the present flow is ended.
Finally, it should be noted that, in the above embodiments, the description is only for the scene of the same electronic book.
If the scene of multiple electronic books is considered, the book numbers need to be considered, which is specifically as follows:
(1) in all the steps of generating the designated reading setting of the electronic book and the screen capture pictures of the pages corresponding to the designated reading page numbers, the steps need to be replaced by: and generating a book number of the electronic book, a designated reading setting and a screen capture picture of a page corresponding to the designated reading page number. That is, when calculating the MD5 digest information, the current book number needs to be taken into account, the characters are all spelled according to the book number and the designated reading setting, and are connected by underlining, and finally connected with the page number to form a character group, and then the MD5 digest information is obtained from the character group to obtain a cache Key, and the cache Key is used to store the corresponding screenshot picture.
(2) Corresponding to the step (1), in all the steps of searching for the screenshot picture corresponding to the current reading setting and the current reading page number, it is required to replace: and searching screen capture pictures corresponding to the book number, the current reading setting and the current reading page number of the current electronic book. That is, when calculating the MD5 digest information, the current book number needs to be taken into account, the characters are all spelled according to the book number and the designated reading setting, and are connected by underlining, and finally connected with the page number to form a character group, and then the MD5 digest information is obtained from the character group to obtain a cache Key, and the cache Key is used to search the corresponding screenshot picture.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The functional modules of the embodiments may be located in one terminal or network node, or may be distributed over a plurality of terminals or network nodes.
In addition, each of the embodiments of the present invention can be realized by a data processing program executed by a data processing apparatus such as a computer. It is clear that the data processing program constitutes the invention. Further, the data processing program, which is generally stored in one storage medium, is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or a memory) of the data processing device. Such a storage medium therefore also constitutes the present invention. The storage medium may use any type of recording means, such as a paper storage medium (e.g., paper tape, etc.), a magnetic storage medium (e.g., a flexible disk, a hard disk, a flash memory, etc.), an optical storage medium (e.g., a CD-ROM, etc.), a magneto-optical storage medium (e.g., an MO, etc.), and the like.
The invention therefore also discloses a storage medium in which a data processing program is stored which is designed to carry out any one of the embodiments of the method according to the invention described above.
In addition, the method steps described in the present invention can be implemented by hardware, for example, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, embedded microcontrollers and the like, in addition to data processing programs. Such hardware capable of implementing the methods of the present invention may also constitute the present invention.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A reading processing method of an electronic book is characterized by comprising the following steps:
generating appointed reading setting of the electronic book and a screenshot picture of a page corresponding to an appointed reading page number, and storing the screenshot picture;
after receiving an instruction of opening a reading electronic book, acquiring current reading setting and current reading page number;
searching screen capture pictures corresponding to the current reading setting and the current reading page number;
loading the found screenshot picture on a screen, and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background;
after receiving a page turning instruction, judging whether the analysis typesetting is finished or not, if so, entering a typesetting and reading state, and displaying a page of a page number indicated by the page turning instruction on a screen; otherwise, searching the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction, and loading the searched screen capture picture on the screen.
2. The method of claim 1,
the generating of the screen capture pictures of the pages corresponding to the designated reading setting and the designated reading page number of the electronic book specifically includes:
after receiving the instruction of reading end, executing the following steps:
if the current reading page number is not the first page or the last page, generating a screen capture picture of a page corresponding to the current reading page number and generating screen capture pictures of pages corresponding to specified page numbers before and after the current reading page number according to the current reading setting;
if the current reading page number is the first page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to a specified page number after the current reading page number according to the current reading setting;
and if the current reading page number is the last page, generating a screen shot picture of a page corresponding to the current reading page number and generating a screen shot picture of a page corresponding to the appointed number of pages before the current reading page number according to the current reading setting.
3. The method according to claim 1, wherein the saving the screenshot picture specifically includes:
and generating a corresponding character string according to the reading setting and the reading page number corresponding to the generated screenshot picture and a specified generation strategy, taking the character string as the identifier of the screenshot picture, and correspondingly storing the screenshot picture and the identifier thereof.
4. The method of claim 3,
the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically comprises:
generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy, and searching a screenshot picture corresponding to the character string from the stored screenshot pictures;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes:
and generating a corresponding character string according to the current reading setting and the page number indicated by the page turning instruction and an appointed generation strategy, and searching the screen capturing picture corresponding to the character string from the stored screen capturing pictures.
5. The method according to claim 4, wherein the generating a corresponding character string according to the specified generation policy specifically includes:
and combining the reading setting with the characters of the reading page number, calculating MD5 summary information of the character combination, and taking the MD5 summary information as the correspondingly generated character string.
6. The method of claim 1,
the saving the screenshot picture specifically includes: saving the screen shot picture on a local and/or server;
the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically comprises:
searching a screen capture picture corresponding to the current reading setting and the current reading page number locally;
or, searching a screenshot picture corresponding to the current reading setting and the current reading page number locally, and searching the screenshot picture corresponding to the current reading setting and the current reading page number on the server if the screenshot picture is not found;
or searching a screen capture picture corresponding to the current reading setting and the current reading page number on the server, downloading the screen capture picture and storing the screen capture picture locally.
7. The method according to claim 1, wherein the saving the screenshot picture specifically includes:
generating a corresponding character string according to a specified generation strategy according to the reading setting and the reading page number corresponding to the generated screenshot picture, taking the character string and the resolution of the local equipment as the identification of the screenshot picture, and correspondingly storing the screenshot picture and the identification thereof on a server.
8. The method of claim 7,
the searching for the screen capture picture corresponding to the current reading setting and the current reading page number specifically comprises: generating a corresponding character string according to the current reading setting and the current reading page number and a specified generation strategy, determining the resolution of local equipment, and searching a screenshot picture corresponding to the character string and the resolution from a server;
or, the searching for the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction specifically includes: and generating a corresponding character string according to the current reading setting and the page number indicated by the page turning instruction and an appointed generation strategy, determining the resolution of the local equipment, and searching a screenshot picture corresponding to the character string and the resolution from the server.
9. An electronic book reading processing apparatus, comprising:
the screen capture processing module is used for generating screen capture pictures of pages corresponding to designated reading settings and designated reading page numbers of the electronic book and storing the screen capture pictures;
the triggering module is used for acquiring the current reading setting and the current reading page number after receiving an instruction of opening the reading electronic book;
the screenshot searching module is used for searching for a screenshot picture corresponding to the current reading setting and the current reading page number;
the loading and analyzing typesetting module is used for loading the searched screenshot picture on a screen and simultaneously analyzing and typesetting the current electronic book according to the current reading setting at the background;
the page turning processing module is used for judging whether the analysis typesetting is finished or not after receiving a page turning instruction, entering a typesetting and reading state if the analysis typesetting is finished, and displaying a page of a page number indicated by the page turning instruction on a screen; otherwise, searching the screen capture picture corresponding to the current reading setting and the page number indicated by the page turning instruction, and loading the searched screen capture picture on the screen.
CN201610832310.9A 2016-09-19 2016-09-19 Electronic book reading processing method and device Active CN106484248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610832310.9A CN106484248B (en) 2016-09-19 2016-09-19 Electronic book reading processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610832310.9A CN106484248B (en) 2016-09-19 2016-09-19 Electronic book reading processing method and device

Publications (2)

Publication Number Publication Date
CN106484248A CN106484248A (en) 2017-03-08
CN106484248B true CN106484248B (en) 2019-12-31

Family

ID=58268748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610832310.9A Active CN106484248B (en) 2016-09-19 2016-09-19 Electronic book reading processing method and device

Country Status (1)

Country Link
CN (1) CN106484248B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897475B (en) * 2018-05-31 2020-09-29 维沃移动通信有限公司 Picture processing method and mobile terminal
CN109726166A (en) * 2018-12-20 2019-05-07 百度在线网络技术(北京)有限公司 Display methods, device, computer equipment and the readable storage medium storing program for executing of e-book
CN110764728B (en) * 2019-10-23 2020-07-28 深圳市金版文化发展股份有限公司 Quick browsing system based on data repetition degree identification

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155512A1 (en) * 2011-05-18 2012-11-22 广州市动景计算机科技有限公司 Webpage reading method, webpage reading device based on mobile terminal and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521280B (en) * 2011-11-26 2014-07-09 华为技术有限公司 Loading method and loading device of EPub electronic book
US10095663B2 (en) * 2012-11-14 2018-10-09 Amazon Technologies, Inc. Delivery and display of page previews during page retrieval events
CN103500090B (en) * 2013-09-18 2016-11-02 百度在线网络技术(北京)有限公司 A kind of mobile device, the method and device of display electronic file page

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155512A1 (en) * 2011-05-18 2012-11-22 广州市动景计算机科技有限公司 Webpage reading method, webpage reading device based on mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN106484248A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US10862878B2 (en) Information processing device, information management method, and information processing system
CN106886570B (en) Page processing method and device
WO2017088405A1 (en) Method, device and system for pre-loading advertisement upon startup of application
CN109542382B (en) Display method of handwriting input content, electronic equipment and computer storage medium
US8502887B2 (en) Image processing apparatus and method
CN106484248B (en) Electronic book reading processing method and device
CN110286989B (en) Reading prompting method, electronic equipment and computer storage medium
CN109471587B (en) Java virtual machine-based handwritten content display method and electronic equipment
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
US9141775B2 (en) Mashup service support method and apparatus
CN103620579A (en) Concurrently uploading multimedia objects and associating metadata with the multimedia objects
CN111277761A (en) Video shooting method, device and system, electronic equipment and storage medium
JP2016143158A (en) Information provision system, information provision method, and information acquisition program
JP2007114942A (en) Metadata generation apparatus and metadata generation method
US20140157147A1 (en) Feedback system, feedback method and recording media thereof
US20230297618A1 (en) Information display method and electronic apparatus
CN106557529B (en) Display method and device for jump page in page jump
US9942287B2 (en) Information processing system, terminal device, and method
CN109992326A (en) A kind of data access method and corresponding terminal
US20130325896A1 (en) Suggesting Information to be Associated with Images Based on Metadata Embedded in Images
TW201325674A (en) Method of producing game event effects, tool using the same, and computer readable recording medium
CN110895592B (en) Link starting method, device, equipment and medium on mobile terminal
CN102855262A (en) Method and device for processing flash data
KR102032256B1 (en) Method and apparatus for tagging of multimedia data
CN113239235B (en) Method for processing image-text information of public number article and related device

Legal Events

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