CN107045549B - Method and device for acquiring page number of electronic book - Google Patents

Method and device for acquiring page number of electronic book Download PDF

Info

Publication number
CN107045549B
CN107045549B CN201710277834.0A CN201710277834A CN107045549B CN 107045549 B CN107045549 B CN 107045549B CN 201710277834 A CN201710277834 A CN 201710277834A CN 107045549 B CN107045549 B CN 107045549B
Authority
CN
China
Prior art keywords
electronic book
page number
book
number data
configuration information
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.)
Expired - Fee Related
Application number
CN201710277834.0A
Other languages
Chinese (zh)
Other versions
CN107045549A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710277834.0A priority Critical patent/CN107045549B/en
Publication of CN107045549A publication Critical patent/CN107045549A/en
Application granted granted Critical
Publication of CN107045549B publication Critical patent/CN107045549B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

The embodiment of the invention provides an electronic book page number obtaining method. The method for acquiring the number of pages of the electronic book comprises the following steps: receiving an electronic book page number obtaining request sent by a requesting party, wherein the request carries an electronic book identifier and electronic book loading configuration information; and if the corresponding page number data is found, returning the found page number data to the requester. By pre-storing the e-book page number data corresponding to different e-book loading configuration information at the e-book server side, the e-book server can be requested to load the e-book page number data according to the current e-book loading configuration information when the e-book is loaded, so that on one hand, the accuracy of the e-book page number is ensured, and on the other hand, the e-book client does not need to calculate the e-book page number by itself, thereby remarkably reducing the e-book loading time, saving the processing resources of user equipment, and bringing better experience to users. In addition, the embodiment of the invention provides an electronic book page number acquisition device.

Description

Method and device for acquiring page number of electronic book
Technical Field
The embodiment of the invention relates to the technical field of internet communication, in particular to a method and a device for acquiring the number of pages of an electronic book.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
An electronic book, also called an e-book, can be downloaded to a user device through a network connection in the form of an electronic file through a special reading software (reader), for example: a Personal Computer (PC), a notebook computer (Note-book), a smart phone, or any book that can be read on a reader capable of storing a large amount of digital reading data (digital reading material), is a substitute for a conventional paper book.
With the development of mobile internet technology and cloud processing technology, content service providers have realized cloud-based e-book reading services. The electronic book reading service system based on the cloud end is composed of an electronic book client end installed on the terminal device and an electronic book server of the cloud end, wherein the electronic book server is used for storing electronic books, and a user downloads the electronic books from the electronic book server for reading after establishing network connection with the electronic book server through the electronic book client end.
When the electronic book client loads an electronic book, the number of pages of the electronic book is calculated according to the content of the electronic book and by combining the font adopted by the current client, the font size and the display size of the current page. The calculation mode of the number of pages of the electronic book can be accurate calculation and can also be fuzzy calculation. The accurate calculation is generally to acquire accurate page number information by additionally creating a client invisible to the user and performing full book loading. The blur calculation is generally performed by calculating the page number information of the chapter currently read by the user and then multiplying by one chapter number. Both of the above-mentioned two page number calculation methods use a client-side local calculation method.
Disclosure of Invention
Among the two methods for calculating the number of pages of the electronic book, the first calculation method needs to additionally start a simulated client although the calculation result is accurate, which causes additional overhead of user equipment, and if the user wants to obtain an accurate calculation result, the user needs to load all the contents of the electronic book for calculation, which takes a long time; in the second method, the calculation speed is obviously better than that of the first method, but the calculated page number data is not accurate.
Therefore, an improved method for calculating the number of pages of an electronic book is highly needed, so that the calculation speed of the number of pages of the electronic book is increased, the equipment resource overhead is reduced, and the accuracy of the calculation result of the number of pages of the electronic book is ensured.
In this context, embodiments of the present invention are intended to provide a method and an apparatus for acquiring the number of pages of an electronic book.
In a first aspect of an embodiment of the present invention, a method for acquiring the number of pages of an electronic book implemented by an electronic book server is provided, including:
receiving an electronic book page number obtaining request sent by a requesting party, wherein the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information;
and if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information, returning the found page number data to the requester.
Optionally, if the corresponding page number data is not found in the pre-stored data of the page number of the electronic book according to the electronic book identifier and the electronic book loading configuration information, the method further includes:
generating page number data corresponding to the electronic book identification according to the electronic book loading configuration information;
updating stored e-book page number data according to the e-book identification, the e-book loading configuration information and the generated page number data; and are
And returning the generated page number data to the requester.
Preferably, the pre-stored data of the number of pages of the electronic book is obtained as follows:
respectively generating and storing page number data of each electronic book according to different electronic book loading configuration information; or
Receiving and storing page number data corresponding to different electronic book loading configuration information reported by an electronic book client for each electronic book; or
And receiving and storing the page number data provided by the electronic book provider for different electronic book loading configuration information for each electronic book.
Preferably, the e-book loading configuration information includes at least one of: load page size information, load font information, and load font size information.
Preferably, the total number of pages of each chapter included in the electronic book is stored in the electronic book page number data for each electronic book.
In a second aspect of the embodiments of the present invention, there is provided an electronic book page number acquiring apparatus implemented on an electronic book server side, including:
the first receiving unit is used for receiving an electronic book page number obtaining request sent by a requesting party, wherein the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information;
and the response unit is used for returning the found page number data to the requesting party if the corresponding page number data is found in the pre-stored e-book page number data according to the e-book identification and the e-book loading configuration information.
Optionally, the electronic book page number obtaining apparatus implemented on the electronic book server side may further include a first generating unit and an updating unit, where:
the first generating unit is configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if corresponding page number data is not found in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information;
the updating unit is used for updating the stored e-book page number data according to the e-book identification, the e-book loading configuration information and the generated page number data;
the response unit is further configured to return the generated page number data to the requester.
Optionally, the electronic book page number obtaining apparatus implemented by the electronic book server side may further:
the second generating unit is used for respectively generating and storing page number data of each electronic book according to different electronic book loading configuration information; or
The second receiving unit is used for receiving and storing page number data corresponding to different electronic book loading configuration information reported by the electronic book client for each electronic book; or
And the third receiving unit is used for receiving and storing the page number data provided by the electronic book provider aiming at different electronic books and loading the configuration information for each electronic book.
Preferably, the e-book loading configuration information includes at least one of: load page size information, load font information, and load font size information.
Preferably, the total number of pages of each chapter included in the electronic book is stored in the electronic book page number data for each electronic book.
In a third aspect of the embodiments of the present invention, there is provided a method for acquiring the number of pages of an electronic book implemented by a client side, including:
when an electronic book is loaded, sending an electronic book page number obtaining request to an electronic book server, wherein the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information;
and receiving page number data returned by the electronic book server, wherein the page number data is searched in the pre-stored electronic book page number data by the electronic book server according to the electronic book identification and the electronic book loading configuration information.
Preferably, the total number of pages of each chapter included in the electronic book to be loaded is stored in the electronic book page number data; and
the method further comprises the following steps:
determining the total page number of the electronic book to be loaded according to the total page number of each chapter contained in the electronic book to be loaded;
determining page number information of the page to be loaded according to the recorded page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded;
and displaying the total page number of the electronic book to be loaded and/or page number information of the page to be loaded.
Optionally, if a response message that the e-book server does not find the corresponding page number data is received, the method further includes:
generating page number data corresponding to the electronic book identification according to the electronic book loading configuration information;
and sending a page number data reporting request to the electronic server, wherein the page number data reporting request carries the electronic book identifier, the electronic book loading configuration information and the generated page number data.
In a fourth aspect of embodiments of the present invention, there is provided an electronic book page number acquisition apparatus implemented on a client side, including:
the electronic book loading device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending an electronic book page number obtaining request to an electronic book server when an electronic book is loaded, and the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information;
and the receiving unit is used for receiving the page number data returned by the electronic book server, wherein the page number data is searched in the prestored electronic book page number data by the electronic book server according to the electronic book identifier and the electronic book loading configuration information.
Preferably, the total number of pages of each chapter included in the electronic book to be loaded is stored in the electronic book page number data; and
the device, still include:
the first determining unit is used for determining the total page number of the electronic book to be loaded according to the total page number of each chapter contained in the electronic book to be loaded;
the second determining unit is used for determining page number information of the page to be loaded according to the recorded page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded;
and the display unit is used for displaying the total page number of the electronic book to be loaded and/or the page number information of the page to be loaded.
Optionally, the device for acquiring the number of pages of the electronic book implemented by the electronic book client further includes:
a generating unit, configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if a response message that the e-book server does not find corresponding page number data is received;
a second sending unit, configured to send a page number data reporting request to the electronic server, where the page number data reporting request carries the electronic book identifier, the electronic book loading configuration information, and the generated page number data.
Preferably, the e-book loading configuration information includes at least one of: load page size information, load font information, and load font size information.
In a fifth aspect of the embodiments of the present invention, there is provided an electronic book page number acquiring apparatus, for example, which may include a memory and a processor, wherein the processor may be configured to read a program in the memory, and execute the following processes: receiving an electronic book page number obtaining request sent by a requesting party, wherein the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information; and if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information, returning the found page number data to the requester.
In a sixth aspect of embodiments of the present invention, there is provided a program product comprising program code for performing, when the program product is run, the following: receiving an electronic book page number obtaining request sent by a requesting party, wherein the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information; and if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information, returning the found page number data to the requester.
In a seventh aspect of the embodiments of the present invention, there is provided an electronic book page number obtaining apparatus, which may include a memory and a processor, for example, where the processor may be configured to read a program in the memory, and execute the following processes: when an electronic book is loaded, sending an electronic book page number obtaining request to an electronic book server, wherein the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information; and receiving page number data returned by the electronic book server, wherein the page number data is searched in the pre-stored electronic book page number data by the electronic book server according to the electronic book identification and the electronic book loading configuration information.
In an eighth aspect of embodiments of the present invention, there is provided a program product comprising program code for performing, when said program product is run, the following processes: when an electronic book is loaded, sending an electronic book page number obtaining request to an electronic book server, wherein the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information; and receiving page number data returned by the electronic book server, wherein the page number data is searched in the pre-stored electronic book page number data by the electronic book server according to the electronic book identification and the electronic book loading configuration information.
According to the method and the device for acquiring the electronic book, disclosed by the embodiment of the invention, the electronic book page number data corresponding to different electronic book loading configuration information is pre-stored at the electronic book server side, so that the electronic book client can request the electronic book server for the page number data of the electronic book to be loaded according to the current electronic book loading configuration information when the electronic book is loaded, on one hand, the accuracy of the electronic book page number is ensured, and on the other hand, the electronic book client does not need to calculate the electronic book page number by self, so that the electronic book loading time is obviously reduced, the processing resources of user equipment are saved, and better experience is brought to a user.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates an application scenario according to an embodiment of the present invention;
FIG. 2 is a schematic diagram schematically illustrating a possible table of page numbers of electronic books stored by an electronic book server according to an embodiment of the present invention;
FIG. 3 schematically shows an implementation flow chart of an electronic book page number obtaining method according to an embodiment of the invention;
FIG. 4 schematically shows an implementation flow chart of a method for acquiring the number of pages of an electronic book according to another embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an implementation flow of a method for acquiring the number of pages of an electronic book according to another embodiment of the present invention;
FIG. 6a is a schematic diagram illustrating an implementation flow of a method for acquiring the number of pages of an electronic book according to still another embodiment of the present invention;
FIG. 6b is a schematic diagram illustrating an implementation flow of another method for acquiring the number of pages of an electronic book according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic book page number acquiring apparatus applied to an electronic book server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram illustrating an electronic book page number acquiring apparatus applied to an electronic book client according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram illustrating another electronic book page number acquiring apparatus that may be disposed in an electronic book server according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram illustrating another electronic book page number acquiring apparatus that may be disposed in an electronic book client according to an embodiment of the present invention;
FIG. 11 schematically shows a program product for page number acquisition for an electronic book, according to an embodiment of the present invention;
fig. 12 schematically shows another program product for e-book page number acquisition according to an embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, an electronic book page number obtaining method and device are provided.
In this document, it is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for differentiation only and not in any limiting sense.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that when an electronic book client loads an electronic book, the number of pages of the electronic book is required to be calculated by itself, one method for accurately calculating the number of pages of the electronic book is to start another client, load all contents of the electronic book according to the loading configuration of the current electronic book client to obtain accurate data of the number of pages of the electronic book, and when a user reads the electronic book, if the loading configuration of the electronic book is changed, the process is required to be executed again to calculate the data of the number of pages of the electronic book, and the data of the number of pages of the electronic book is calculated in real time, so that the loading delay of the electronic book is increased, and; in another method for calculating the number of pages of the electronic book, the number of pages of the electronic book is obtained by calculating the number of pages of currently read chapters of a user and then multiplying the number by one chapter.
In view of this, in the embodiment of the present invention, for each electronic book, according to different electronic book loading configuration information, the electronic book server stores, in advance, page number data corresponding to different loading configurations, where the page number data may include a total page number of each chapter included in the electronic book and a total page number of the electronic book, and thus, when an electronic book is loaded by an electronic book client, the electronic book client may request the electronic book server for the page number data of the electronic book without performing self-calculation, thereby increasing a loading speed of the electronic book, saving processing resources of a user equipment, and the page number data stored in advance by the server may be accurate electronic book data, thereby increasing accuracy of the page number data of the electronic book.
In specific implementation, the e-book server can simulate the process of loading the e-book by the client according to different e-book loading configurations, so as to obtain accurate e-book data for storage, or the e-book can also receive e-book page number data reported by the client under different e-book loading configurations for storage; or the e-book server may further receive page number data and the like provided by the e-book provider for different e-book loading configuration information, and thus, the e-book server may ensure accuracy of the number of provided e-book pages.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring to fig. 1, an application scenario diagram of the method for acquiring page number data of an electronic book according to the embodiment of the present invention includes a user equipment 11 and an electronic book server 12. The user equipment 11 may be installed with an electronic book client, such as a bean-paste reading client, an internet cloud reading client, a comic client, and the like. The user 10 may request an e-book download request or an online reading e-book request from the e-book server 12 through an e-book client in the user equipment 11, and the e-book server 12 provides an e-book download service or an e-book online reading service in response to the request of the user equipment 11. If the user 10 sends an e-book download request to the e-book server 12, after the e-book download is completed, the user 10 reads by opening the e-book downloaded locally to the user equipment 11. If the request is an online reading request, the electronic book server 12 opens the electronic book or any chapter in the electronic book according to the request sent by the user 10, and provides an online reading service for the user.
The user device 11 and the electronic book server 12 may be communicatively connected through a communication network, which may be a local area network, a wide area network, or the like. The user device 11 may be a mobile phone, a tablet computer, a notebook computer, a personal computer, etc., and the e-book server 12 may be any server device capable of providing an e-book online reading or downloading service.
In the embodiment of the invention, in order to improve the speed of the electronic book client for loading the electronic book and reduce the time required by the electronic book client for accurately calculating the page number data of the electronic book, the electronic book server can pre-store the page number data of the electronic book corresponding to different loading configurations for each electronic book. Generally, the e-book page number data is related to a loaded page size, a loaded font and a loaded font size, where the loaded page size is generally determined by a display screen size of the user equipment, and the e-book server may store the e-book page number data of different fonts and font sizes for a mainstream display screen size, for example, the mainstream display screen size includes 4 inches, 4.7 inches, 5 inches, 5.5 inches, and 6 inches, common fonts include song, microsoft mao, regular script, and the like, the font size also includes multiple configurations such as a small font, a medium font, and a large font, and for each configuration combination, the e-book server may store the corresponding e-book page number data, as shown in fig. 2, which is a possible schematic diagram of the e-book page number data table stored by the e-book server.
The electronic book server may calculate, before the electronic book server provides services such as online reading or downloading for the electronic book, the electronic book server may simulate, for each electronic book and different loading configuration information, a process of loading the electronic book by the client, or may provide, by an electronic book provider, the electronic book server, or receive, after the electronic book server provides the services such as online reading or downloading for the electronic book, accurate data of the number of pages of the electronic book reported by the electronic book client, which is not limited in the embodiment of the present invention.
Exemplary method
An electronic book page number acquisition method according to an exemplary embodiment of the present invention is described below with reference to fig. 2 to 6a and 6b in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Example one
As shown in fig. 3, an implementation flow diagram of the method for implementing the number of pages of the electronic book provided by the embodiment of the present invention for an electronic book server may include the following steps:
and S31, receiving an electronic book page number obtaining request sent by the requester.
In specific implementation, when a user requests to read an electronic book, the electronic book client may request the electronic book server to obtain page number data of the electronic book according to the electronic book selected by the user, where the page number data carries an electronic book identifier and electronic book loading configuration information.
And S32, if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information, returning the found page number data to the requester.
In this step, after receiving the request for obtaining the number of pages of the electronic book, the electronic book server searches corresponding data records from a pre-stored data table of the number of pages of the electronic book according to the electronic book identifier and the electronic book loading configuration information carried in the request. Wherein the e-book loading configuration information may include at least one of: load page size information, load font information, and load font size information. For example, taking the e-book identifier as ID1, the loaded page configuration information as 4.7 inches, the loaded font information as sons, and the loaded font size information as a small size as an example, the e-book server finds the corresponding data record in table 1 as (first chapter: 25 pages; second chapter: 28 pages; third chapter: 32 pages; fourth chapter, 64 pages; … … total pages: 225 pages).
In the embodiment of the present invention, the e-book page number data pre-stored by the e-book server may be acquired according to any one of the following manners:
and in the first mode, for each electronic book, page number data of the electronic book is respectively generated and stored according to different electronic book loading configuration information.
And secondly, receiving and storing page number data corresponding to the loading configuration information of different electronic books reported by the electronic book client for each electronic book.
And thirdly, receiving and storing page number data provided by the electronic book provider aiming at different electronic book loading configuration information aiming at each electronic book.
Example two
If the e-book server does not find the corresponding data record in the stored e-book page number data table according to the received e-book identifier and the e-book loading configuration information, the e-book server may further generate corresponding page number data according to the e-book identifier and the e-book loading configuration information carried in the received e-book page number obtaining request, update the stored e-book page number data, and return the generated page number data to the e-book client.
As shown in fig. 4, which is a schematic flow chart of an implementation of a second method for acquiring the number of pages of an electronic book according to an embodiment of the present invention, the method may include the following steps:
and S41, the electronic book server receives the electronic book page number obtaining request sent by the requester.
The electronic book server receives an electronic book page number obtaining request which carries an electronic book identifier and electronic book loading configuration information.
S42, the electronic book server searches whether corresponding electronic book page number data is stored locally, if yes, step S43 is executed, and if not, step S44 is executed.
In this step, the e-book server searches for a corresponding data record in a pre-stored e-book service data table according to the e-book identifier and the e-book loading configuration information carried in the e-book page number obtaining request.
And S43, the electronic book server sends the found data of the number of pages of the electronic book to the electronic book client, and the process is ended.
And S44, the electronic book server generates corresponding page number data according to the electronic book loading configuration information.
And S45, the electronic book server updates the stored electronic book page data table.
In this step, according to the page number data generated in step S44, an electronic book page number data record corresponding to the electronic book identifier and the electronic book loading configuration information carried in the electronic book page number obtaining request is added to the stored electronic book page number data table.
And S46, the electronic book server returns the generated page number data to the electronic book client.
It should be noted that step S45 and step S46 are not necessarily executed in a sequential order, and step S45 and step S46 may be executed simultaneously, or step S46 may be executed before step S45.
EXAMPLE III
In the third embodiment, if the electronic book server does not find the corresponding data record in the stored electronic book page number data table according to the received electronic book identifier and the electronic book loading configuration information, the electronic book server may further notify the electronic book client, and the electronic book client calculates the accurate data of the number of pages of the electronic book by using the method for accurately calculating the number of pages of the electronic book, and reports the data to the electronic book server.
As shown in fig. 5, which is a schematic implementation flow diagram of a third method for acquiring pages of an electronic book according to an embodiment of the present invention, the method may include the following steps:
and S51, the electronic book server receives the electronic book page number obtaining request sent by the requester.
The electronic book server receives an electronic book page number obtaining request which carries an electronic book identifier and electronic book loading configuration information.
S52, the electronic book server searches whether corresponding electronic book page number data is stored locally, if yes, step S53 is executed, and if not, step S54 is executed.
In this step, the e-book server searches for a corresponding data record in a pre-stored e-book service data table according to the e-book identifier and the e-book loading configuration information carried in the e-book page number obtaining request.
And S53, the electronic book server sends the found data of the number of pages of the electronic book to the electronic book client, and the process is ended.
And S54, the electronic book server returns a response message that the corresponding electronic book page number data is not found to the electronic book client.
And S55, the electronic book client generates corresponding page number data according to the electronic book loading configuration information.
In this step, the e-book client may calculate to obtain the data of the number of pages of the e-book by using a method of accurately calculating the number of pages of the e-book.
And S56, the electronic book client sends a notification message of the generated electronic book page number data to the electronic book server.
And the notification message sent by the e-book client carries an e-book identifier, e-book loading configuration information and generated e-book page number data.
And S57, the electronic book server stores the received electronic book page number data.
In specific implementation, the electronic book server adds the corresponding relationship between the electronic book identifier and the electronic book configuration information and the electronic book page number data in the electronic book page number data table. In this way, when another electronic book client subsequently requests the page number data of the electronic book under the electronic book loading configuration again, the electronic book server may directly return the stored page number data to the electronic book client.
It should be noted that, in a specific implementation, if a user modifies any one of the e-book loading configurations in the process of reading an e-book, the e-book client may send an e-book page number obtaining request to the e-book server according to the modified e-book loading configuration, where the e-book page number obtaining request carries modified e-book loading configuration information, and the e-book server determines the e-book page number data according to the updated e-book loading configuration information by the methods provided in the embodiments and provides the e-book page number data to the e-book client, which are not listed one by one.
Example four,
As shown in fig. 6a, an implementation flow diagram of the method for obtaining the number of pages of an electronic book provided by the embodiment of the present invention for an electronic book client is implemented, and the method may include the following steps:
and S61, when the electronic book is loaded, sending an electronic book page number obtaining request to the electronic book server.
The sent e-book page number obtaining request carries an e-book identifier and e-book loading configuration information corresponding to the e-book to be loaded.
And S62, receiving page number data returned by the electronic book server.
The page number data is found in the prestored e-book page number data by the e-book server according to the e-book identifier and the e-book loading configuration information.
Preferably, the total number of pages of each chapter included in the electronic book to be loaded is stored in the electronic book page number data, so that the electronic book client can calculate the total number of pages of the electronic book according to the total number of pages of each chapter included in the electronic book. Certainly, in specific implementation, the data of the number of pages of the electronic book provided by the electronic book server may also include the total number of pages of the electronic book.
The method comprises the steps that an electronic book client records page number offset of a page to be loaded in a chapter to be loaded according to received electronic book page number data in the process of reading an electronic book by a user, determines page number information of the page to be loaded according to the page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded, and displays the total page number of the electronic book to be loaded and/or the page number information of the page to be loaded.
For example, the e-book data received by the e-book client is (chapter i: 25 pages; chapter ii: 28 pages; chapter iii: 32 pages; chapter iv, 64 pages; … … total pages: 225 pages), and the chapter to be loaded is determined to be chapter iii according to the user's selection, the offset of the number of pages of the page to be loaded in the chapter to be loaded is recorded according to the operation of the user, for example, the page number offset of the page to be loaded in the chapter to be loaded can be determined according to the page turning operation of the user, and if the recorded offset is 3, the e-book client may determine that the page number information corresponding to the page to be loaded is 25+28+ 3-56, the format of the page number information displayed by the e-book client in the page number display area may be 56/225 th page, and preferably, the e-book client may further display the read ratio of the e-book, which is 56/225-25% in this example, and so on.
In specific implementation, if the e-book client receives a response message that the e-book server does not find the corresponding page number data, the e-book client may further generate page number data corresponding to the e-book identifier according to the e-book loading configuration information, and send a page number data reporting request to the e-server, where the page number data reporting request carries the e-book identifier, the e-book loading configuration information, and the generated page number data, and the e-book server stores the page number data according to the received page number data. Likewise, the e-book loading configuration information includes at least one of: load page size information, load font information, and load font size information.
For better understanding of the embodiment of the present invention, the following describes in detail a specific implementation process of the method for acquiring the number of pages of an electronic book provided by the embodiment of the present invention in combination with an interaction flow between an electronic book client and an electronic book server, as shown in fig. 6b, the method may include the following steps:
s601, when the electronic book is loaded, the electronic book client sends an electronic book page number obtaining request to the electronic book server.
The electronic book client carries the electronic book identifier and the electronic book loading configuration information in the electronic book page number obtaining request sent to the electronic book server according to the electronic book identifier corresponding to the electronic book to be loaded, the size information of the display screen of the user equipment, the font loaded by the electronic book and the size information of the loaded font.
S602, the electronic book server judges whether corresponding page number data is found in a pre-stored electronic book page number data table, if so, the step S603 is executed, otherwise, the step S604 is executed.
In this step, the e-book server may search for corresponding page number data in the pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information carried in the received e-book page number obtaining request.
S603, the electronic book server returns the found page number data to the electronic book client, and the process is ended.
S604, the electronic book server generates page number data corresponding to the electronic book identification according to the electronic book loading configuration information.
S605, the electronic book server stores the electronic book identification, the electronic book loading configuration information and the generated electronic book page number data.
In specific implementation, the e-book server adds the corresponding relationship between the e-book identifier, the e-book loading configuration information and the generated e-book page number data in the e-book page number data table.
And S606, the electronic book server returns the generated page number data to the electronic book client.
S607, the e-book client determines the page number information of the page to be loaded according to the received page number data and the offset of the page to be loaded in the chapter to be loaded.
In this step, according to the received page number data, if the received page number data does not include the total page number of the electronic book, the electronic book client determines the total page number of the electronic book according to the total page number of each chapter, and then, according to the price of the page to be loaded in the chapter, the electronic book client determines and displays the page number information of the page to be loaded.
And S608, displaying the determined page number information by the electronic book client.
When the electronic client displays the page number information of the page to be loaded, the electronic client can only display the page number information and the total page number information of the page to be loaded, and can also display the reading ratio, which is not limited in the embodiment of the invention.
Further, if the user changes the e-book loading configuration information in the process of reading the e-book, for example, initially, the e-book ID1 loading configuration information set by the user is (4.7 inches, songhua, small size), the e-book server obtains the e-book page number data (a first chapter: 25 pages, a second chapter: 28 pages, a third chapter: 32 pages, a fourth chapter: 64 pages, and … … total pages: 225 pages) that can be found according to the e-book identifier and the loading configuration information sent by the e-book client, the e-book client calculates the page number information of the to-be-loaded page according to the offset of the current to-be-loaded page in the to-be-loaded chapter, if the user changes the e-book loading configuration information in the process of reading (4.7 inches, songhua, medium size), that is, that the user enlarges the page number display size of the e-book, the e-book client sends an e-book server an, the e-book server searches the corresponding page number data in the stored e-book page number data table according to the received e-book identifier ID1 and the e-book loading configuration information (4.7 inches, sons body, middle), wherein the e-book identifier ID and the changed e-book loading configuration information (4.7 inches, sons body, middle) are carried in the e-book page number data table, the e-book server may find corresponding page count data (chapter i: 32 pages; chapter ii: 36 pages; chapter iii: 40 pages; chapter iv: 72 pages; total page count of … …: 280 pages) in the e-book page count data table shown in fig. 2, and sending the page number information to the e-book client, recalculating the page number information corresponding to the current page by the e-book client according to the received page number data, and similarly, calculating and displaying the page number information corresponding to the current page by the e-book client according to the offset of the current page in the current chapter and the sum of the page numbers of all chapters before the current chapter.
According to the method for acquiring the number of pages of the electronic book, provided by the embodiment of the invention, for each electronic book, the number of page data corresponding to the electronic book under different loading configuration information is stored in advance in the electronic book server, so that when the electronic book is required to be loaded at an electronic book client, the electronic book client can directly request the electronic book server for acquisition, the number of pages data of the electronic book is not required to be calculated, the accuracy of the number of pages data is ensured, the loading speed of the electronic book is increased, and the cost of processing resources of user equipment is saved.
Exemplary device
Having described the method of the exemplary embodiment of the present invention, next, an electronic book page number acquiring apparatus of the exemplary embodiment of the present invention will be described with reference to fig. 7 and 8.
As shown in fig. 7, a schematic structural diagram of an electronic book page number obtaining apparatus implemented on an electronic book server side may include:
a first receiving unit 71, configured to receive an electronic book page number obtaining request sent by a requester, where the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information;
and a response unit 72, configured to, if corresponding page number data is found in the pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information, return the found page number data to the requesting party.
Optionally, the electronic book page number obtaining apparatus implemented on the electronic book server side may further include a first generating unit 73 and an updating unit 74, where:
the first generating unit 73 is configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if corresponding page number data is not found in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information;
the updating unit 74 is configured to update stored e-book page number data according to the e-book identifier, the e-book loading configuration information, and the generated page number data;
the response unit 72 is further configured to return the generated page number data to the requester.
Optionally, the electronic book page number obtaining apparatus implemented by the electronic book server side may further include:
a second generating unit 75, configured to generate and store page number data of each electronic book according to different electronic book loading configuration information; or
A second receiving unit 76, configured to receive and store, for each electronic book, page number data corresponding to different electronic book loading configuration information, which is reported by an electronic book client for the electronic book; or
And a third receiving unit 77, configured to receive and store, for each electronic book, the page number data provided by the electronic book provider for loading configuration information for different electronic books.
Preferably, the total number of pages of each chapter included in the electronic book is stored in the electronic book page number data for each electronic book.
As shown in fig. 8, a schematic structural diagram of an electronic book page number obtaining apparatus implemented by an electronic book client may include:
the first sending unit 81 is configured to send an electronic book page number obtaining request to an electronic book server when an electronic book is loaded, where the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information;
a receiving unit 82, configured to receive page number data returned by the e-book server, where the page number data is found by the e-book server in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information.
Preferably, the total number of pages of each chapter included in the electronic book to be loaded is stored in the electronic book page number data; and
the device for acquiring the number of pages of the electronic book implemented by the electronic book client side further comprises:
a first determining unit 83, configured to determine the total number of pages of the electronic book to be loaded according to the total number of pages of each chapter included in the electronic book to be loaded;
a second determining unit 84, configured to determine page number information of the page to be loaded according to the recorded page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded;
and the display unit 85 is configured to display information of the total number of pages of the electronic book to be loaded and/or the number of pages of the page to be loaded.
Optionally, the electronic book page number obtaining apparatus implemented on the electronic book client side may further include:
a generating unit 86, configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if a response message that the e-book server does not find corresponding page number data is received;
a second sending unit 87, configured to send a page number data reporting request to the electronic server, where the page number data reporting request carries the electronic book identifier, the electronic book loading configuration information, and the generated page number data.
Preferably, the e-book loading configuration information includes at least one of: load page size information, load font information, and load font size information.
Having described the method and apparatus of the exemplary embodiments of the present invention, next, an electronic book page number acquiring apparatus according to another exemplary embodiment of the present invention will be described.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, the electronic book page number acquiring apparatus provided in the electronic book server according to the present invention may include at least one processing unit, and at least one storage unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform various steps in a method implemented on a server side of an electronic book according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this specification. For example, the processing unit may execute step S31 shown in fig. 3, and receive an electronic book page number obtaining request sent by a requester, where the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information; step S32, if the corresponding page number data is found in the pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information, returning the found page number data to the requesting party.
The electronic book page number acquiring apparatus 90 according to this embodiment of the present invention is described below with reference to fig. 9. The device for acquiring the number of pages of an electronic book shown in fig. 9 is only an example, and should not bring any limitation to the functions and the range of use of the embodiment of the present invention.
As shown in fig. 9, the electronic book page number acquiring means 90 may be in the form of a general purpose computing device, which may be a user device, for example. The components of the electronic book page number acquiring apparatus 90 may include, but are not limited to: the at least one processing unit 91, the at least one memory unit 92, and a bus 93 connecting the various system components (including the memory unit 92 and the processing unit 91).
Bus 93 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 92 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and may further include Read Only Memory (ROM) 923.
Storage unit 92 may also include programs/utilities 925 having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic book page number acquisition apparatus 90 may also be in communication with one or more external devices 94 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic book page number acquisition apparatus 90, and/or any device (e.g., router, modem, etc.) that enables the electronic book page number acquisition apparatus 90 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 95. Also, the electronic book page number obtaining apparatus 90 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 96. As shown, the network adapter 96 communicates with the other modules of the electronic book page number obtaining apparatus 90 through the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the e-book page number retrieval device 90, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the electronic book page number acquiring apparatus provided in the electronic book client according to the present invention may include at least one processing unit, and at least one storage unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform various steps in methods implemented at a client side of the electronic book according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of this specification. For example, the processing unit may execute step S61 shown in fig. 6a, and send an electronic book page number obtaining request to the electronic book server when an electronic book is loaded, where the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information corresponding to the electronic book to be loaded; step S62, receiving page number data returned by the e-book server, where the page number data is found by the e-book server in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information.
An electronic book page number acquiring apparatus 100 according to this embodiment of the present invention is described below with reference to fig. 10. The device for acquiring the number of pages of an electronic book shown in fig. 10 is only an example, and should not bring any limitation to the functions and the range of use of the embodiment of the present invention.
As shown in fig. 10, the electronic book page number acquiring apparatus 100 may be embodied in the form of a general-purpose computing device, which may be a server device, for example. The components of the electronic book page number acquiring apparatus 100 may include, but are not limited to: the at least one processing unit 101, the at least one memory unit 102, and a bus 103 connecting various system components (including the memory unit 102 and the processing unit 101).
Bus 103 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 102 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)1021 and/or cache memory 1022, and may further include Read Only Memory (ROM) 1023.
Storage unit 102 may also include a program/utility 1025 having a set (at least one) of program modules 1024, such program modules 1024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic book page number acquisition apparatus 100 may also be in communication with one or more external devices 104 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic book page number acquisition apparatus 100, and/or any device (e.g., router, modem, etc.) that enables the electronic book page number acquisition apparatus 100 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 105. Also, the electronic book page number obtaining apparatus 100 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 106. As shown, the network adapter 106 communicates with other modules of the electronic book page number obtaining apparatus 100 through the bus 103. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic book page number retrieval apparatus 100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Exemplary program product
In some possible embodiments, aspects of the present invention may also be implemented as a program product, which includes program code for causing a server device to execute the steps of the method for acquiring the number of pages of an electronic book applied to the electronic book server according to various exemplary embodiments of the present invention described in the section "exemplary method" above in this specification when the program product runs on the server device, for example, the server device may execute step S31 shown in fig. 3, and receive an electronic book page number acquisition request sent by a requesting party, where the electronic book page number acquisition request carries an electronic book identifier and electronic book loading configuration information; step S32, if the corresponding page number data is found in the pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information, returning the found page number data to the requesting party.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 11, a program product 110 for e-book page number retrieval according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a server device. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
In some possible embodiments, the various aspects of the present invention may also be implemented as a program product, which includes program code for causing a user equipment to execute the steps of the method for acquiring the number of pages of an electronic book applied to an electronic book client according to various exemplary embodiments of the present invention described in the section "exemplary method" above in this specification when the program product runs on the user equipment, for example, the user equipment may execute step S61 shown in fig. 6a, and when an electronic book is loaded, send a request for acquiring the number of pages of the electronic book to an electronic book server, where the request for acquiring the number of pages of the electronic book carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information; step S62, receiving page number data returned by the e-book server, where the page number data is found by the e-book server in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 12, another program product 120 for number of pages retrieval for an e-book is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a user device, in accordance with an embodiment of the present invention. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (12)

1. An electronic book page number obtaining method comprises the following steps:
receiving an electronic book page number obtaining request sent by a requesting party, wherein the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information, and the electronic book loading configuration information comprises at least one of the following items: loading page size information, font information and font size information, wherein the e-book loading configuration information is configured by a user;
if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information, returning the found page number data to the requester;
if the corresponding page number data is not found in the prestored e-book page number data according to the e-book identifier and the e-book loading configuration information, the method further comprises the following steps:
generating page number data corresponding to the electronic book identification according to the electronic book loading configuration information;
updating stored e-book page number data according to the e-book identification, the e-book loading configuration information and the generated page number data; and are
And returning the generated page number data to the requester.
2. The method of claim 1, wherein the pre-stored e-book page number data is obtained as follows:
respectively generating and storing page number data of each electronic book according to different electronic book loading configuration information; or
Receiving and storing page number data corresponding to different electronic book loading configuration information reported by an electronic book client for each electronic book; or
And receiving and storing the page number data provided by the electronic book provider for different electronic book loading configuration information for each electronic book.
3. The method according to claim 1 or 2, wherein the e-book page number data stores, for each e-book, a total number of pages of each chapter included in the e-book.
4. An electronic book page number acquisition apparatus comprising:
a first receiving unit, configured to receive an electronic book page number obtaining request sent by a requester, where the electronic book page number obtaining request carries an electronic book identifier and electronic book loading configuration information, and the electronic book loading configuration information includes at least one of the following: loading page size information, font information and font size information, wherein the e-book loading configuration information is configured by a user;
the response unit is used for returning the found page number data to the requesting party if the corresponding page number data is found in the prestored e-book page number data according to the e-book identification and the e-book loading configuration information;
also include first generation unit and update unit, wherein:
the first generating unit is configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if corresponding page number data is not found in pre-stored e-book page number data according to the e-book identifier and the e-book loading configuration information;
the updating unit is used for updating the stored e-book page number data according to the e-book identification, the e-book loading configuration information and the generated page number data;
the response unit is further configured to return the generated page number data to the requester.
5. The apparatus of claim 4, further comprising:
the second generating unit is used for respectively generating and storing page number data of each electronic book according to different electronic book loading configuration information; or
The second receiving unit is used for receiving and storing page number data corresponding to different electronic book loading configuration information reported by the electronic book client for each electronic book; or
And the third receiving unit is used for receiving and storing the page number data provided by the electronic book provider aiming at different electronic books and loading the configuration information for each electronic book.
6. The apparatus according to claim 4 or 5, wherein the data of the number of pages of the electronic book stores, for each electronic book, a total number of pages of each chapter included in the electronic book.
7. An electronic book page number obtaining method comprises the following steps:
when an electronic book is loaded, sending an electronic book page number obtaining request to an electronic book server, wherein the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information, and the electronic book loading configuration information comprises at least one of the following information: loading page size information, font information and font size information, wherein the e-book loading configuration information is configured by a user;
receiving page number data returned by the electronic book server, wherein the page number data is searched in the pre-stored electronic book page number data by the electronic book server according to the electronic book identification and the electronic book loading configuration information;
the total page number of each chapter contained in the electronic book to be loaded is stored in the electronic book page number data; and
the method further comprises the following steps:
determining the total page number of the electronic book to be loaded according to the total page number of each chapter contained in the electronic book to be loaded;
determining page number information of the page to be loaded according to the recorded page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded;
and displaying the total page number of the electronic book to be loaded and/or page number information of the page to be loaded.
8. The method of claim 7, if a response message is received that the e-book server does not find corresponding page number data, the method further comprising:
generating page number data corresponding to the electronic book identification according to the electronic book loading configuration information;
and sending a page number data reporting request to the electronic book server, wherein the page number data reporting request carries the electronic book identifier, the electronic book loading configuration information and the generated page number data.
9. An electronic book page number acquisition apparatus comprising:
a first sending unit, configured to send an electronic book page number obtaining request to an electronic book server when an electronic book is loaded, where the electronic book page number obtaining request carries an electronic book identifier corresponding to the electronic book to be loaded and electronic book loading configuration information, and the electronic book loading configuration information includes at least one of the following: loading page size information, font information and font size information, wherein the e-book loading configuration information is configured by a user;
a receiving unit, configured to receive page number data returned by the e-book server, where the page number data is found by the e-book server in pre-stored e-book page number data according to the e-book identifier and e-book loading configuration information;
the total page number of each chapter contained in the electronic book to be loaded is stored in the electronic book page number data; and
the device, still include:
the first determining unit is used for determining the total page number of the electronic book to be loaded according to the total page number of each chapter contained in the electronic book to be loaded;
the second determining unit is used for determining page number information of the page to be loaded according to the recorded page number offset of the page to be loaded in the chapter to be loaded and the sum of the total page numbers of all chapters before the chapter to be loaded;
and the display unit is used for displaying the total page number of the electronic book to be loaded and/or the page number information of the page to be loaded.
10. The apparatus of claim 9, further comprising:
a generating unit, configured to generate page number data corresponding to the e-book identifier according to the e-book loading configuration information if a response message that the e-book server does not find corresponding page number data is received;
a second sending unit, configured to send a page number data reporting request to the e-book server, where the page number data reporting request carries the e-book identifier, the e-book loading configuration information, and the generated page number data.
11. A computer electronic book page number acquisition apparatus comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the steps of the method of any one of claims 1 to 3 or 7, 8.
12. A computer storage medium storing a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform the steps of the method of any of claims 1 to 3 or 7, 8.
CN201710277834.0A 2017-04-25 2017-04-25 Method and device for acquiring page number of electronic book Expired - Fee Related CN107045549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710277834.0A CN107045549B (en) 2017-04-25 2017-04-25 Method and device for acquiring page number of electronic book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710277834.0A CN107045549B (en) 2017-04-25 2017-04-25 Method and device for acquiring page number of electronic book

Publications (2)

Publication Number Publication Date
CN107045549A CN107045549A (en) 2017-08-15
CN107045549B true CN107045549B (en) 2020-02-14

Family

ID=59545801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710277834.0A Expired - Fee Related CN107045549B (en) 2017-04-25 2017-04-25 Method and device for acquiring page number of electronic book

Country Status (1)

Country Link
CN (1) CN107045549B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116795475B (en) * 2023-08-22 2023-11-21 腾讯科技(深圳)有限公司 Page number prediction method, page number display method, server and client

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521280A (en) * 2011-11-26 2012-06-27 华为技术有限公司 Loading method and loading device of EPub electronic book
CN103268185A (en) * 2013-04-26 2013-08-28 珠海全志科技股份有限公司 Text display method and text display device for e-book reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521280A (en) * 2011-11-26 2012-06-27 华为技术有限公司 Loading method and loading device of EPub electronic book
CN103268185A (en) * 2013-04-26 2013-08-28 珠海全志科技股份有限公司 Text display method and text display device for e-book reader

Also Published As

Publication number Publication date
CN107045549A (en) 2017-08-15

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN107451162B (en) Network resource access device, hybrid device and method
CN105512294B (en) Multimedia file update prompting method and device
CN110020329B (en) Method, device and system for generating webpage
JP2021103506A (en) Method and device for generating information
US20200356469A1 (en) Test automation systems and methods using logical identifiers
CN110795649A (en) Target page display method, device and system and electronic equipment
US9503551B2 (en) Hybrid native networked applications
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN109902726B (en) Resume information processing method and device
CN107045549B (en) Method and device for acquiring page number of electronic book
US9253279B2 (en) Preemptive caching of data
CN113220381A (en) Click data display method and device
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN113254819B (en) Page rendering method, system, equipment and storage medium
CN115600031A (en) Page generation method, device, terminal, server and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113961298A (en) Page switching method, device, equipment and medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113220297A (en) Webpage style dynamic generation method and device, storage medium and electronic equipment
CN106547847B (en) Electronic reading material tracing and updating method and equipment
US20200097555A1 (en) Changing a language for a user session replay
CN110647327A (en) Method and device for dynamic control of user interface based on card

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200214

CF01 Termination of patent right due to non-payment of annual fee