CN113360209B - Book data loading method, device, equipment and storage medium - Google Patents

Book data loading method, device, equipment and storage medium Download PDF

Info

Publication number
CN113360209B
CN113360209B CN202110663116.3A CN202110663116A CN113360209B CN 113360209 B CN113360209 B CN 113360209B CN 202110663116 A CN202110663116 A CN 202110663116A CN 113360209 B CN113360209 B CN 113360209B
Authority
CN
China
Prior art keywords
book
data
cover page
displayed
loading
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
CN202110663116.3A
Other languages
Chinese (zh)
Other versions
CN113360209A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202110663116.3A priority Critical patent/CN113360209B/en
Publication of CN113360209A publication Critical patent/CN113360209A/en
Application granted granted Critical
Publication of CN113360209B publication Critical patent/CN113360209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a book data loading method, a device, equipment and a storage medium, wherein the method comprises the following steps: and loading book information data of the book to be displayed, loading cover page data during the process of loading the book information data under the condition that the data preloading condition is met, and drawing the cover page of the book to be displayed according to the book information data and the cover page data. The method can reduce some sequence links of data loading, so that the loading of the cover page data does not depend on the text content of the book, thereby reducing the overall time of data loading, reducing the waiting time of book display, being beneficial to improving user experience and increasing user retention.

Description

Book data loading method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of data processing, and in particular relates to a book data loading method, device and equipment and a storage medium.
Background
With the development of the era, electronic book reading has become a mainstream way for people to read books, and compared with paper reading, electronic books are more convenient to carry, more environment-friendly and cheaper.
For reading an electronic book, a user usually reads the electronic book in a mode of book reading application or web page on line installed on a terminal device, and when the user needs to read, a series of book data is required to be loaded and drawn through the terminal to display the contents such as the front cover and the text of the electronic book, so that the user is provided with the same feeling as paper reading. However, the loading of book data is complicated in process, and the loading processes are executed according to a certain process execution sequence, and the loading processes need to consume more time, so that the loading time of the reader is too long, and the excessive waiting time of a user is occupied.
Disclosure of Invention
The embodiment of the disclosure at least provides a book data loading method, device, equipment and storage medium.
The embodiment of the disclosure provides a book data loading method, which comprises the following steps:
loading book information data of a book to be displayed;
In the case that the data preloading condition is satisfied, loading cover page data during loading the book information data;
and drawing the cover page of the book to be displayed according to the book information data and the cover page data.
In an alternative embodiment, in the case that the data preloading condition is satisfied, before loading the cover page data during loading of the book information data, the method includes:
starting a target application for displaying the book to be displayed when receiving a preset operation aiming at the target application;
And in response to the target application being started, determining that the data preloading condition is met.
In an alternative embodiment, the determining that the data preloading condition is met in response to the target application being launched includes:
Detecting whether the target application is overrun or not before the target application is started;
And if the target application is not operated, determining that the data preloading condition is met.
In an alternative embodiment, the determining that the data preloading condition is met in response to the target application being launched includes:
When the target application is started, detecting whether the book to be displayed is included in a book distribution position in the target application;
And if the book to be displayed is included in the book distribution position, determining that the data preloading condition is met.
In an alternative embodiment, after the drawing of the cover page of the book to be displayed according to the book information data and the cover page data, the method includes:
and setting the cover page and the book to be displayed in an associated mode, and storing the cover page and the book to be displayed in a preset storage position of the target application.
In an optional embodiment, the drawing the cover page of the book to be displayed according to the book information data and the cover page data includes:
After the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is confirmed to be inserted;
and displaying the cover page.
In an optional implementation manner, in the case of determining to insert a cover page, drawing the cover page of the book to be displayed according to the book information data and the cover page data, including:
calling a cover insertion function in the case of determining to insert a cover page;
Calling a cover drawing container through the cover insertion function;
And drawing the cover page of the book to be displayed by using the book information data and the cover page data through the cover drawing container.
In an alternative embodiment, after the drawing of the cover page of the book to be displayed according to the book information data and the cover page data, the method includes:
Loading text content data of the book to be displayed;
And displaying the text of the book to be displayed according to the text content data.
The embodiment of the disclosure also provides a book data loading device, which comprises:
The first data loading module is used for loading book information data of books to be displayed;
the second data loading module is used for loading the cover page data during the process of loading the book information data under the condition that the data preloading condition is met;
and the drawing module is used for drawing the cover page of the book to be displayed according to the book information data and the cover page data.
In an alternative embodiment, the apparatus further comprises a start-up module for:
starting a target application for displaying the book to be displayed when receiving a preset operation aiming at the target application;
And in response to the target application being started, determining that the data preloading condition is met.
In an alternative embodiment, the starting module is specifically configured to, when determining that the data preloading condition is met in response to the target application being started:
Detecting whether the target application is overrun or not before the target application is started;
And if the target application is not operated, determining that the data preloading condition is met.
In an alternative embodiment, the starting module is specifically configured to, when determining that the data preloading condition is met in response to the target application being started:
When the target application is started, detecting whether the book to be displayed is included in a book distribution position in the target application;
And if the book to be displayed is included in the book distribution position, determining that the data preloading condition is met.
In an alternative embodiment, the apparatus further comprises a data storage module for:
and setting the cover page and the book to be displayed in an associated mode, and storing the cover page and the book to be displayed in a preset storage position of the target application.
In an alternative embodiment, the drawing module is specifically configured to:
After the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is confirmed to be inserted;
and displaying the cover page.
In an alternative embodiment, the drawing module is specifically configured to, when determining to insert a cover page, draw the cover page of the book to be displayed according to the book information data and the cover page data:
calling a cover insertion function in the case of determining to insert a cover page;
Calling a cover drawing container through the cover insertion function;
And drawing the cover page of the book to be displayed by using the book information data and the cover page data through the cover drawing container.
In an alternative embodiment, the device further comprises a display module, the display module being configured to:
Loading text content data of the book to be displayed;
And displaying the text of the book to be displayed according to the text content data.
The disclosed embodiments also provide a computer device comprising: the book data loading method comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the computer device runs, the processor and the memory are communicated through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the book data loading method.
The disclosed embodiments also provide a computer storage medium having a computer program stored thereon, which when executed by a processor performs the steps of the book data loading method described above. According to the book data loading method, device, equipment and storage medium, book information data of a book to be displayed are loaded; in the case that the data preloading condition is satisfied, loading cover page data during loading the book information data; and drawing the cover page of the book to be displayed according to the book information data and the cover page data.
Compared with the prior art that the data loading of each link is sequentially carried out, the method has the advantages that under the condition that the data preloading condition is met, the cover page data is loaded simultaneously during the process of loading the book information data, and some sequence links of data loading can be reduced, so that the loading of the cover page data is independent of the text content of the book, the overall time of data loading is reduced, the waiting time of book display is reduced, the user experience is facilitated to be improved, and the user retention is increased.
Further, after the book information data is returned, whether the cover page needs to be inserted or not can be inquired through a preset request, so that the dynamic insertion of the cover page is realized, the insertion time of the cover page is adjusted, the text content of the book is not needed to be relied on, parallel data loading can be realized, and the data loading time is shortened.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments are briefly described below, which are incorporated in and constitute a part of the specification, these drawings showing embodiments consistent with the present disclosure and together with the description serve to illustrate the technical solutions of the present disclosure. It is to be understood that the following drawings illustrate only certain embodiments of the present disclosure and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
Fig. 1 shows a flowchart of a book data loading method provided by an embodiment of the present disclosure;
FIG. 2 shows a flowchart of another book data loading method provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of drawing cover pages in another book data loading method according to an embodiment of the present disclosure;
FIG. 4 is a diagram showing one of the construction of a book data loading device according to an embodiment of the present disclosure;
FIG. 5 is a second block diagram of a book data loading device according to an embodiment of the present disclosure;
Fig. 6 is a schematic diagram of a computer device according to an embodiment of the disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. The components of the embodiments of the present disclosure, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be made by those skilled in the art based on the embodiments of this disclosure without making any inventive effort, are intended to be within the scope of this disclosure.
According to research, for the loading of book data, a series of serial data loading is needed to display cover pages and book contents, for example, book information, text content, typesetting, cover page drawing and cover page data loading are needed to be sequentially loaded, specifically, after text content returns, rich text is analyzed to carry out paging processing, so that a page data set (PAGEDATAARRAY) is generated, then PageData of the generated cover pages is inserted into the head of PAGEDATAARRAY, when the cover pages are drawn, the cover page data loading is triggered, the cover pages can be normally displayed after the data loading is finished, the process is complicated and long, a large amount of time is needed to be consumed, the waiting time of a user is prolonged, and the loss of the user is easy to cause.
Based on the above study, the present disclosure provides a book data loading method, which can reduce some sequence links of data loading, so that loading of cover page data does not depend on text content of a book, thereby reducing overall time of data loading, reducing waiting time of book display, being beneficial to improving user experience and increasing user retention.
The present invention is directed to a method for manufacturing a semiconductor device, and a semiconductor device manufactured by the method.
The following description of the embodiments of the present disclosure will be made clearly and fully with reference to the accompanying drawings in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present disclosure. The components of the present disclosure, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be made by those skilled in the art based on the embodiments of this disclosure without making any inventive effort, are intended to be within the scope of this disclosure.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
For the sake of understanding the present embodiment, first, a detailed description will be given of a book data loading method disclosed in the present embodiment, where an execution body of the book data loading method provided in the present embodiment is generally a computer device with a certain computing capability, and the computer device includes, for example: the terminal device, or server or other processing device, may be a User Equipment (UE), mobile device, user terminal, cellular telephone, cordless telephone, personal digital assistant (Personal DIGITAL ASSISTANT, PDA), handheld device, computing device, vehicle mount device, wearable device, or the like. In some possible implementations, the book data loading method may be implemented by a processor invoking computer readable instructions stored in a memory.
The living body detection method provided by the embodiment of the present disclosure is described below taking an execution subject as a terminal device as an example.
Referring to fig. 1, fig. 1 is a flowchart of a book data loading method according to an embodiment of the disclosure. As shown in fig. 1, a book data loading method provided by an embodiment of the present disclosure includes:
s101: and loading book information data of the book to be displayed.
The book information data of the book to be displayed can comprise book names, code books, press books, books numbers, journals, authors, CIP data and other information.
Accordingly, after the book information data of the book to be displayed is loaded, the needed book information data can be provided for subsequent operations.
The method comprises the steps that when a user wants to read, the user loads book information data of the book to be displayed, the user loads the book data to display the electronic data by operating an application or a webpage which can be used for reading the electronic book and is installed on the terminal device, and accordingly, after detecting the corresponding operation applied by the user, the terminal device can load the book information data when the application or the webpage is started or a sub-interface in the application or the webpage is entered.
S102: in the case where the data preloading condition is satisfied, cover page data is loaded during loading of the book information data.
In this step, when the book data of the book to be displayed is loaded, the loading condition of the cover page data may be detected, and when the condition that the data preloading condition is satisfied is detected, the cover page data may be loaded in parallel during the loading of the book information data.
Thus, the book information data and the cover page data are loaded in parallel, so that the time consumed by loading the cover page data is basically consumed by the time consumed by loading the cover page data as required by the overload of the book information data, the sequence links in the book data loading in the prior art can be reduced, and the data loading time is shortened.
S103: and drawing the cover page of the book to be displayed according to the book information data and the cover page data.
In this step, after the book information data and the cover page data are loaded, the two kinds of data can be used to draw the cover page.
According to the book data loading method, through loading book information data of a book to be displayed, under the condition that the data preloading condition is met, during the process of loading the book information data, cover page data are loaded, and according to the book information data and the cover page data, cover pages of the book to be displayed are drawn. Therefore, the book information data and the cover page data are loaded in parallel, some sequence links of data loading can be reduced, so that the loading of the cover page data is independent of the text content of the book, the overall time of data loading is reduced, the waiting time of book display is reduced, the user experience is improved, and the user retention is increased.
Referring to fig. 2, fig. 2 is a flowchart of another book data loading method according to an embodiment of the disclosure. As shown in fig. 2, another book data loading method provided by an embodiment of the present disclosure includes:
s201: and loading book information data of the book to be displayed.
S202: in the case where the data preloading condition is satisfied, cover page data is loaded during loading of the book information data.
S203: and drawing the cover page of the book to be displayed according to the book information data and the cover page data.
S204: and loading text content data of the book to be displayed.
In this step, after the book information data is loaded, text content data may be loaded in a homeopathic manner, for example, first chapter content information of an article may be loaded preferentially, and according to the text content data of a book to be displayed, the text of the book to be displayed, that is, the first chapter content of the article is displayed.
The user can load the cover page data through the reader and draw the cover page, and then can load the text content of the book, such as the first chapter content of the text directly, so that the subsequent text content can be displayed, the user can conveniently and quickly read the cover page, and then can view the subsequent text content, and the reading experience of the user is improved.
S205: and displaying the text of the book to be displayed according to the text content data.
In this step, after the text content data of the book to be displayed is loaded, the text of the book to be displayed may be drawn according to the text content data, and after receiving the operation for displaying the book by the user, the drawn text of the book to be displayed is displayed.
The descriptions of step S201 to step S203 may refer to the descriptions of step S101 to step S103, and may achieve the same technical effects and solve the same technical problems, which are not described herein.
Next, this embodiment will be further described with reference to specific embodiments.
In some possible embodiments, before step S202, the method includes:
starting a target application for displaying the book to be displayed when receiving a preset operation aiming at the target application;
And in response to the target application being started, determining that the data preloading condition is met.
In this manner, the operation applied to the terminal by the user may be detected in real time during the process of using the terminal by the user, if a preset operation applied to a target application in the terminal is received, the target application may be started in response to the preset operation, and in the case that the target application is started, the user may be considered to want to read, and it is determined that the data preloading condition is satisfied.
The preset operation may be a click, double click, long press, or a preset gesture operation applied to the target application by the user through a touch screen, a key, or the like of the terminal, or a voice operation applied to the target application by the user through a voice component of the terminal, or the like.
In addition, after the target application is started, the information of the book to be displayed can be considered to be needed to be displayed, and the loading of the book information data of the book to be displayed can be started.
Further, the cover page data may be loaded only when the target application is first run.
Specifically, in an alternative embodiment, the determining that the data preloading condition is met when the target application is started includes:
Detecting whether the target application is overrun or not before the target application is started;
And if the target application is not operated, determining that the data preloading condition is met.
In this step, in the case that the target application is started, it may be detected with respect to the historical running condition of the target application, whether the target application has been run before the target application is started this time, that is, whether the target application is run for the first time is determined, and if the target application has not been run, that is, the target application is run for the first time, it may be considered that the loading of the cover page data satisfies the data preloading condition, so that the cover page data may be loaded during the loading of the book information data.
The target application is not run, which may mean that the target application is not run in the background in a preset historical time period before the target application is run, or that the target reference is not started in the preset historical time period.
In addition, in addition to directly displaying the book to be displayed through the target application, for example, the data to be displayed is directly displayed through a main interface referenced by the target application, and the book to be displayed can also be displayed through a certain sub-interface in the target application, and at this time, the target application can also include a sub-interface for displaying a plurality of book information, for example, a bookshelf interface and the like.
Accordingly, in an alternative embodiment, the determining that the data preloading condition is met when the target application is started includes:
When the target application is started, detecting whether the book to be displayed is included in a book distribution position in the target application;
And if the book to be displayed is included in the book distribution position, determining that the data preloading condition is met.
In this step, when the target application is started, it may be detected according to the book information display function of the target application, and whether there is a book distribution position in the target application, and whether the book to be displayed is included in the book distribution position, that is, whether there is brief information of the book to be displayed needs to be displayed in the book distribution position, and if there is the book to be displayed in the book distribution position, it may be considered that the loading of the cover page data satisfies the data preloading condition.
The book distribution position may refer to a sub-interface where the target references brief information for displaying multiple books. For example, in the novel reader, an interface such as a book city, a bookshelf, a search and the like may be provided, and the interface includes a plurality of positions, and each position may display brief information such as a name, a picture and the like of the book, so that a user may learn about the situation of the book, and further select the book and the like.
In an alternative embodiment, after step S203, the method includes:
and setting the cover page and the book to be displayed in an associated mode, and storing the cover page and the book to be displayed in a preset storage position of the target application.
In this step, after the cover page is drawn, in order to reduce the data loading amount when the user reads the book to be displayed through the target application again, the cover page and the book to be displayed may be set in association, and then stored in a storage position preset in the target application.
The association setting may be to bind the drawn cover page with the book to be displayed, and set some information applied to the indication of the book to be displayed in the cover page, so as to implement association.
In an alternative embodiment, referring to fig. 3, fig. 3 is a flow of drawing a cover page in another book data loading method shown in fig. 2, and as shown in fig. 3, step S203 includes:
s2031: after the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request.
In this step, a cover insertion request may be set in advance for the book to be displayed, and after the book information data is returned, that is, after loading is completed, a cover page needs to be inserted through the cover insertion request.
The cover insertion request may be an instruction preset in the target reference, and is used for querying whether to insert a cover page of each book when the book needs to be displayed.
Therefore, by setting the query request, the insertion of the cover page is changed into dynamic insertion, so that the loading and typesetting processes of text content of the book are not needed to be relied on, the book is more flexible and changeable, and the method is beneficial to reducing the loading time of data in the display of the book.
S2032: and drawing the cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is determined to be inserted.
In this step, when it is determined that the cover page needs to be inserted correctly, the cover page of the book to be displayed may be drawn through the loaded book information data and the cover page data.
Specifically, in one possible implementation, step S2032 includes:
calling a cover insertion function in the case of determining to insert a cover page;
Calling a cover drawing container through the cover insertion function;
And drawing the cover page of the book to be displayed by using the book information data and the cover page data through the cover drawing container.
For example, in the case that it is determined that a cover page needs to be inserted, the cover insertion function INSERTDATA may be called, the cover drawing container ViewController may be called through INSERTDATA, and drawing of the cover page of the book to be displayed may be achieved by using the book information data and the cover page data through the ViewController.
S2033: and displaying the cover page.
According to the other book data loading method, through loading book information data of a book to be displayed, under the condition that the data preloading condition is met, cover page data are loaded during the process of loading the book information data, cover pages of the book to be displayed are drawn according to the book information data and the cover page data, text content data of the book to be displayed are loaded, and text of the book to be displayed is displayed according to the text content data.
In this way, the book information data and the cover page data are loaded in parallel, and then text content is loaded, so that some sequence links of data loading can be reduced, the loading of the cover page data is independent of the text content of the book, the overall time of data loading is reduced, the waiting time of book display is reduced, the user experience is improved, and the user retention is increased.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiment of the disclosure further provides a book data loading device corresponding to the book data loading method, and since the principle of solving the problem of the device in the embodiment of the disclosure is similar to that of the book data loading method in the embodiment of the disclosure, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 4 to 5, fig. 4 is a first structural diagram of a book data loading device according to an embodiment of the disclosure, and fig. 5 is a second structural diagram of a book data loading device according to an embodiment of the disclosure. As shown in fig. 4, a book data loading device 400 provided in an embodiment of the present disclosure, the book data loading device 400 includes:
the first data loading module 410 is configured to load book information data of a book to be displayed.
And a second data loading module 420 for loading cover page data during loading of the book information data in case that a data preloading condition is satisfied.
And the drawing module 430 is configured to draw a cover page of the book to be displayed according to the book information data and the cover page data.
In a possible embodiment, as shown in fig. 5, the book data loading device 400 further includes a starting module 440, where the starting module 440 is configured to:
starting a target application for displaying the book to be displayed when receiving a preset operation aiming at the target application;
And in response to the target application being started, determining that the data preloading condition is met.
In a possible implementation manner, the starting module 440 is specifically configured to, when determining that the data preloading condition is met in response to the target application being started:
Detecting whether the target application is overrun or not before the target application is started;
And if the target application is not operated, determining that the data preloading condition is met.
In a possible implementation manner, the starting module 440 is specifically configured to, when determining that the data preloading condition is met in response to the target application being started:
When the target application is started, detecting whether the book to be displayed is included in a book distribution position in the target application;
And if the book to be displayed is included in the book distribution position, determining that the data preloading condition is met.
In a possible embodiment, as shown in fig. 5, the book data loading device 400 further includes a data storage module 450, where the data storage module 450 is configured to:
and setting the cover page and the book to be displayed in an associated mode, and storing the cover page and the book to be displayed in a preset storage position of the target application.
In an alternative embodiment, the drawing module 430 is specifically configured to:
After the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is confirmed to be inserted;
and displaying the cover page.
In an alternative embodiment, the drawing module 430 is specifically configured to, when determining to insert a cover page, draw the cover page of the book to be displayed according to the book information data and the cover page data:
calling a cover insertion function in the case of determining to insert a cover page;
Calling a cover drawing container through the cover insertion function;
And drawing the cover page of the book to be displayed by using the book information data and the cover page data through the cover drawing container.
In an alternative embodiment, as shown in fig. 5, the book data loading apparatus 400 further includes a display module 460, where the display module 460 is configured to:
Loading text content data of the book to be displayed;
And displaying the text of the book to be displayed according to the text content data.
The process flow of each module in the apparatus and the interaction flow between the modules may be described with reference to the related descriptions in the above method embodiments, which are not described in detail herein.
According to the device for loading book data, the cover page data is loaded during the process of loading the book information data under the condition that the data preloading condition is met, and the cover page of the book to be displayed is drawn according to the book information data and the cover page data. The method can reduce some sequence links of data loading, so that the loading of the cover page data does not depend on the text content of the book, thereby reducing the overall time of data loading, reducing the waiting time of book display, being beneficial to improving user experience and increasing user retention.
Based on the same technical conception, the embodiment of the application also provides electronic equipment. The embodiment of the present disclosure further provides an electronic device 600, as shown in fig. 6, which is a schematic structural diagram of the electronic device 600 provided in the embodiment of the present disclosure, including:
A processor 610, a memory 620, and a bus 630; memory 620 is used to store execution instructions, including memory 621 and external memory 622; the memory 621 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 610 and the data exchanged with the external memory 622 such as a hard disk, and the processor 610 exchanges data with the external memory 622 through the memory 621, and when the electronic device 600 is operated, the processor 610 and the memory 620 communicate with each other through the bus 630, so that the processor 610 can perform the steps of the book data loading method shown in the above method embodiment.
The disclosed embodiments also provide a computer storage medium having a computer program stored thereon, which when executed by a processor performs the steps of the book data loading method described in the above method embodiments. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The computer program product of the book data loading method provided in the embodiments of the present disclosure includes a computer storage medium storing program codes, where the instructions included in the program codes may be used to execute the steps of the book data loading method described in the above method embodiments, and specifically, reference may be made to the above method embodiments, which are not described herein.
The disclosed embodiments also provide a computer program which, when executed by a processor, implements any of the methods of the previous embodiments. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the disclosure, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A book data loading method, the method comprising:
loading book information data of a book to be displayed;
In the case that a data preloading condition is satisfied, simultaneously loading cover page data during loading of the book information data, wherein the book information data is different from the cover page data and text content data;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data,
Wherein, according to the book information data and the cover page data, drawing the cover page of the book to be displayed includes:
After the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is confirmed to be inserted;
and displaying the cover page.
2. The method according to claim 1, wherein in the case where the data preloading condition is satisfied, before loading the cover sheet data during loading of the book information data, the method includes:
starting a target application for displaying the book to be displayed when receiving a preset operation aiming at the target application;
And in response to the target application being started, determining that the data preloading condition is met.
3. The method of claim 2, wherein the determining that the data preloading condition is met in response to the target application being launched comprises:
Detecting whether the target application is overrun or not before the target application is started;
And if the target application is not operated, determining that the data preloading condition is met.
4. The method of claim 2, wherein the determining that the data preloading condition is met in response to the target application being launched comprises:
When the target application is started, detecting whether the book to be displayed is included in a book distribution position in the target application;
And if the book to be displayed is included in the book distribution position, determining that the data preloading condition is met.
5. The method according to claim 1, wherein after said drawing of the cover page of the book to be displayed based on the book information data and the cover page data, the method comprises:
And setting the cover page and the book to be displayed in an associated mode, and storing the cover page and the book to be displayed in a preset storage position of a target application of the book to be displayed.
6. The method according to claim 5, wherein the drawing the cover page of the book to be displayed based on the book information data and the cover page data in the case where it is determined to insert the cover page, comprises:
calling a cover insertion function in the case of determining to insert a cover page;
Calling a cover drawing container through the cover insertion function;
And drawing the cover page of the book to be displayed by using the book information data and the cover page data through the cover drawing container.
7. The method according to claim 1, wherein after said drawing of the cover page of the book to be displayed based on the book information data and the cover page data, the method comprises:
Loading the text content data of the book to be displayed;
And displaying the text of the book to be displayed according to the text content data.
8. A book data loading apparatus, the apparatus comprising:
The first data loading module is used for loading book information data of books to be displayed;
A second data loading module for simultaneously loading cover page data during loading of the book information data, wherein the book information data is different from the cover page data and the text content data, in case that a data preloading condition is satisfied;
a drawing module for drawing the cover page of the book to be displayed according to the book information data and the cover page data,
Wherein, the drawing module is further used for:
After the book information data are loaded, inquiring whether to insert a cover page or not through a preset cover insertion request;
Drawing a cover page of the book to be displayed according to the book information data and the cover page data under the condition that the cover page is confirmed to be inserted;
and displaying the cover page.
9. A computer device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating over the bus when the computer device is running, said machine readable instructions when executed by said processor performing the steps of the method of book data loading according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the method of book data loading according to any one of claims 1 to 7.
CN202110663116.3A 2021-06-15 2021-06-15 Book data loading method, device, equipment and storage medium Active CN113360209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110663116.3A CN113360209B (en) 2021-06-15 2021-06-15 Book data loading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110663116.3A CN113360209B (en) 2021-06-15 2021-06-15 Book data loading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113360209A CN113360209A (en) 2021-09-07
CN113360209B true CN113360209B (en) 2024-04-19

Family

ID=77534335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110663116.3A Active CN113360209B (en) 2021-06-15 2021-06-15 Book data loading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113360209B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701307A (en) * 2022-12-20 2023-09-05 荣耀终端有限公司 Interface display method of reading application and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159639A (en) * 2015-08-21 2015-12-16 小米科技有限责任公司 Audio cover displaying method and apparatus
KR20170121932A (en) * 2016-04-26 2017-11-03 주식회사 팬소프트 Electronic book terminal device and method for downloading electronic book data of the electronic book terminal device
CN109324859A (en) * 2018-09-21 2019-02-12 掌阅科技股份有限公司 Book cover replacing options, electronic equipment and computer storage medium
CN109643241A (en) * 2018-05-14 2019-04-16 优视科技新加坡有限公司 Display processing method, device, storage medium and electric terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159639A (en) * 2015-08-21 2015-12-16 小米科技有限责任公司 Audio cover displaying method and apparatus
KR20170121932A (en) * 2016-04-26 2017-11-03 주식회사 팬소프트 Electronic book terminal device and method for downloading electronic book data of the electronic book terminal device
CN109643241A (en) * 2018-05-14 2019-04-16 优视科技新加坡有限公司 Display processing method, device, storage medium and electric terminal
CN109324859A (en) * 2018-09-21 2019-02-12 掌阅科技股份有限公司 Book cover replacing options, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN113360209A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US9904686B2 (en) Method and terminal for creating new folder on touch screen equipment
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN113360209B (en) Book data loading method, device, equipment and storage medium
CN110007986A (en) Function realizing method and device
CN107844728A (en) Identify method and device, computer installation and the computer-readable recording medium of Quick Response Code
US20140045467A1 (en) Method and apparatus for recording information during a call
CN107423012B (en) A kind of data display method, device and electronic equipment
US6271865B1 (en) Cellular phone handset which can display special characters
CN102404242A (en) User information updating device, electric equipment and user information updating method
CN114817726A (en) Topic recommendation method and device, computer equipment and storage medium
CN201259670Y (en) Text message processing apparatus and equipment
CN103369119A (en) Method and terminal for rapidly inputting user information
CN105630342B (en) A kind of method of terminal and terminal display file
US8112070B2 (en) Electronic device and method for searching a merchandise location
CN109857366B (en) Insertion ordering method, system, equipment and storage medium based on external memory
KR20010035423A (en) A letter transmitting and saves method of the mobile computing device
CN110321125B (en) Data configuration method and device for cells and readable storage medium
CN103309878A (en) Method and device used for layout in webpage displaying
KR101368610B1 (en) Method and system for selecting paragraph on electronic book environments
CN108182202B (en) Content update notification method, content update notification device, electronic equipment and storage medium
CN112036132A (en) Document header and footer editing method and device and electronic equipment
CN111339465A (en) Picture processing method and device, computer equipment and storage medium
CN1164137C (en) Mobile telephone hand set capable of displaying special font
CN103888584A (en) Mobile terminal with support of dynamic menu display and method thereof
CN111339125B (en) Data query method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant