CN113672150A - Electronic book page display method, electronic equipment and storage medium - Google Patents

Electronic book page display method, electronic equipment and storage medium Download PDF

Info

Publication number
CN113672150A
CN113672150A CN202111033016.9A CN202111033016A CN113672150A CN 113672150 A CN113672150 A CN 113672150A CN 202111033016 A CN202111033016 A CN 202111033016A CN 113672150 A CN113672150 A CN 113672150A
Authority
CN
China
Prior art keywords
view
sub
native layer
page turning
rendered
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.)
Pending
Application number
CN202111033016.9A
Other languages
Chinese (zh)
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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202111033016.9A priority Critical patent/CN113672150A/en
Priority to PCT/CN2021/125782 priority patent/WO2023029172A1/en
Publication of CN113672150A publication Critical patent/CN113672150A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for displaying pages of an electronic book, electronic equipment and a storage medium, wherein the method is executed in a reader engine, the reader engine comprises a native layer, and the method comprises the following steps: acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of a native layer; determining a designated rendering area of the sub-view according to the data object, and reserving the designated rendering area to place the sub-view when the content of the electronic book is rendered; delivering the rendered e-book content and the sub-view to a native layer for displaying; and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information. The electronic book content and the sub-view are displayed through the native layer, so that the display of the insertion information is realized, and the processing is more efficient. Through screenshot processing, the screenshot picture is rendered, the problem of page turning display of the inserted information is solved, and user experience is improved.

Description

Electronic book page display method, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of electronic books, in particular to a method for displaying pages of an electronic book, electronic equipment and a storage medium.
Background
With the vigorous development of the electronic reading industry, the increasingly intense competition comes. When reading an electronic book, information can be inserted into the electronic book according to more service requirements, and meanwhile, a good reading experience is presented to a user.
In the prior art, when the page turning processing is performed on the inserted information, the original reader rendering engine cannot better meet the requirements of good reading experience and fast reading iteration of new businesses such as commercialization and the like. If some insertion information needs to be added to the page of the electronic book, interaction with an engine is needed, the information to be inserted is transmitted to an original reader rendering engine in a html mode, the original reader rendering engine renders the information onto the layer of the electronic book, or a view containing the information is directly attached to the upper side of the layer of the electronic book rendered by the original reader rendering engine, and the like.
Disclosure of Invention
In view of the above, the present invention is proposed to provide an ebook page presentation method, an electronic device and a storage medium that overcome or at least partially solve the above problems.
According to one aspect of the present invention, there is provided a method for displaying pages of an electronic book, where the method is performed in a reader engine, the reader engine includes a native layer, and the method includes:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of a native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area for placing the sub-view when the content of the electronic book is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of a native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area for placing the sub-view when the content of the electronic book is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
According to another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform an operation corresponding to any one of the methods for displaying pages of an electronic book described above.
According to the electronic book page display method, the electronic equipment and the storage medium, the electronic book content and the sub-view are displayed through the native layer, so that the display of the insertion information is realized, and the processing is more efficient. Through screenshot processing, the screenshot picture is rendered, the problem of page turning display of the inserted information is solved, and user experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating an ebook page presentation method according to an embodiment of the present invention;
FIG. 2a shows an insertion information presentation diagram;
FIG. 2b shows a page turn diagram of insertion information;
FIG. 3 is a flowchart illustrating an ebook page presentation method according to another embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Example one
Fig. 1 is a flowchart illustrating an ebook page displaying method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S101, obtaining the sub-view containing the insertion information and the corresponding data object, and adding the sub-view to the container of the native layer.
In the prior art, insertion information is transmitted to an original reader rendering engine of an electronic book, the original reader rendering engine is arranged on an electronic book layer for displaying the content of the electronic book after rendering the insertion information, interaction, transmission, information rendering and the like with the original reader rendering engine are required, the rendering mode is low in processing efficiency, the rendering of the insertion information can be displayed only in a picture mode, the display effect is poor, and the page turning effect cannot be realized. Based on the above problems, the embodiment is implemented in the reader engine, a native layer is added to the reader engine, the native layer is used to display the content of the electronic book, and information is inserted. The insertion information is packaged by using the child view, the child view comprises layout settings of all controls of the insertion information, processing responding to various interaction events and the like, the child view can independently process display effects of the insertion information, such as animation effects of the insertion information in the child view and the like, a reader engine is not needed to process rendering insertion information, and interaction with the reader engine is reduced.
In a possible implementation manner, the native layer may be a view class UIView provided by the system, and is a UI control.
When the insertion information is displayed, after the sub-view containing the insertion information and the corresponding data object are obtained, the sub-view is directly added into a container of the native layer, the rendering of the insertion information does not need to be processed by a reader engine, and the native layer directly displays the insertion information of the sub-view. The native layer can be created by adapting different terminal devices to show the content of the electronic book and the sub-view containing the insertion information.
Step S102, determining the appointed rendering area of the sub-view according to the data object, so that when the content of the electronic book is rendered, the appointed rendering area is reserved for placing the sub-view.
The data object corresponds to the sub-view and comprises information such as an insertion information type, an insertion information style, an insertion position of the sub-view, a designated rendering area and the like, and the display of the insertion information in the sub-view is conveniently completed according to the data object. Specifically, the designated rendering area of the sub-view may be determined according to the data object, and when the reader engine renders the content of the electronic book, the designated rendering area may be reserved, for example, blank, and is not rendered, so as to place the sub-view and display the insertion information in the sub-view.
Step S103, delivering the rendered electronic book content and the sub-view to a native layer for displaying.
Rendering the electronic book content by the reader engine, displaying the electronic book content rendered by the reader engine by receiving the native layer, and displaying the sub-view according to the sub-view insertion position of the data object, as shown in fig. 2a, completing displaying the insertion information.
And step S104, according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
After receiving a page turning instruction, screenshot processing is performed on the currently displayed sub-view, and the obtained screenshot picture is rendered, so that page turning display of the insertion information is achieved, and the display effect is as shown in fig. 2 b.
According to the method for displaying the pages of the electronic book, the content and the sub-view of the electronic book are displayed through the native layer, the display of the insertion information is realized, and the processing is more efficient. Through screenshot processing, the screenshot picture is rendered, the problem of page turning display of the inserted information is solved, and user experience is improved.
Example two
Fig. 3 is a flowchart illustrating an ebook page displaying method according to another embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step S301, a native layer is created and added to a bottom container of the reader.
Creating a native layer ReadView, wherein the native layer can be created by adapting to different terminal devices, for example, the native layer is created by adopting ZYGLView and inheriting GLKView depending on OpenGLES; or the native layer is created by adopting ZYMTKView, relying on Metal and inheriting MTKView, and the like. The native layer is created based on the terminal device, and can be enabled to have the capabilities of rendering, simulating page turning and the like based on API interfaces provided by various libraries in the terminal device.
And adding the native layer into a bottom container of the reader after creation for receiving and displaying the content of the electronic book rendered by the reader engine, and adding the created native layer into the bottom container in a reader initialization method to replace the electronic book layer in the original reader when the electronic book is opened, so as to realize various functions (such as page turning, clicking, sliding) and the like.
Step S302, acquiring the sub-views and the corresponding data objects based on the specified protocol, and adding the sub-views to the container provided by the native layer.
When the sub-view is acquired, the sub-view and the corresponding data object can be acquired through a specified protocol, a container and a data object structure body are provided by a native layer in the specified protocol, the sub-view containing the insertion information is added into the container provided by the native layer, and the data related to the insertion information is written into the data object structure body to obtain the corresponding data object. Specifically, for example, by using a protocol method- (void) loadadddatawithbaseview, (UIView) baseView adItem, (ocadtem) adItem, the child view is acquired, and the child view is added to the baseView (a container provided by the native layer) according to the adItem.
Step S303, determining the designated rendering area of the sub-view according to the data object, so as to reserve the designated rendering area to place the sub-view when rendering the content of the electronic book.
And determining a designated rendering area of the sub-view according to the data object, namely determining the position of the sub-view, wherein the native layer informs a reader engine of the designated rendering area of the sub-view in the adItem, and the reader engine vacates the area for placing the sub-view when rendering the content of the electronic book.
Step S304, judging whether the position of the electronic book after page turning is the insertion position of the sub-view.
When the position of the electronic book after turning the page is judged to be the insertion position of the sub-view, namely the page is turned to the page needing to display the sub-view, executing the step S305 to display the sub-view; if the position after page turning is not the insertion position of the sub-view, step S306 is executed to normally display the content of the electronic book.
Step S305, the sub-view is set to be in a visible state, and the sub-view is displayed.
And the native layer acquires the corresponding sub-view through a specified protocol, if the insertion information contained in the sub-view is an advertisement, the advertisement is rendered and loaded on the native layer, the sub-view is set to be in a visible state, and the sub-view is displayed. Specifically, the native layer analyzes the data object, determines that the advertisement sub-view needs to be displayed at the page position, adds the advertisement sub-view obtained through a specified protocol to a container of the native layer, obtains the advertisement sub-view from the container, and loads the advertisement sub-view to the native layer for display.
During display, the native layer displays the sub-views in the designated rendering area, and interaction visual experience of the sub-views and reading experience of a reader are guaranteed.
The visible state of the sub-view may be implemented by setting the state value to true, or by setting the state value to a corresponding alpha value, which is not limited herein.
Step S306, the rendered content of the electronic book is delivered to the native layer for displaying.
And if the page position after page turning is not the insertion position of the sub-view, normally displaying the received electronic book content rendered by the reader engine by the native layer.
Step S307, judging whether the page turning page is the inserting position of the sub-view according to the received page turning instruction.
When a page turning instruction is received, whether a page turning page is an insertion position of the sub-view is judged, namely whether the sub-view is turned, if yes, step S308 is executed, and if not, the page turning is processed according to the content of the normal electronic book.
Step S308, screenshot processing is carried out on the displayed sub-views to obtain screenshot pictures; setting the displayed sub-view to be in a hidden state; and rendering the screenshot picture to a designated rendering area so as to realize page turning display of the insertion information.
And when the child view is turned, screenshot processing is carried out on the displayed child view by using a screensaver method, so that a screenshot picture of the child view is obtained. Meanwhile, the sub-view currently being displayed is set to be in a hidden state, the sub-view is not displayed, and only the screenshot picture is displayed. And rendering the screenshot picture to a specified rendering area, and simultaneously rendering and displaying the screenshot picture and the content of the electronic book, so that the effect of turning pages of the electronic book is realized, and the reading interaction experience of a reader is ensured.
The hidden state of the sub-view may be implemented by setting a state value to false, or may be implemented by setting a state value to a corresponding alpha value, for example, a certain alpha value is set to represent the hidden sub-view, which is not limited herein.
Optionally, this embodiment further includes the following steps:
step S309, receiving the behavior event triggered by the user on the child view, and transmitting the behavior event to the child view so that the child view responds to the behavior event.
The interaction and the content layout of the sub-views are controlled by the sub-view creator (namely the sub-views can process the interaction events of the contents of the sub-views), interaction with a reader engine is not needed, the interaction complexity is reduced, and the interaction capacity of reading pages is improved. When receiving a behavior event triggered by a user on the child view, such as a click event, the behavior event is directly transmitted to the child view, and the child view directly responds to the behavior event, so that the animation effect, the display effect and the like in the child view can be completely presented.
According to the electronic book page display method provided by the invention, the sub-views and the corresponding data objects are obtained based on the specified protocol, the sub-views are directly loaded and displayed by the native layer at the insertion positions of the sub-views, the rendering and loading by the reader engine are not needed, the complex interaction between the page and the reader engine is avoided, and the development efficiency of developers is improved. Meanwhile, the inserting information is displayed in a sub-view mode, the animation effect of the inserting information can be presented, the reading interaction experience of a user is greatly improved, and the method is more concise and convenient.
EXAMPLE III
The third embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the electronic book page display method in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to: acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer; determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered; delivering the rendered e-book content and the sub-view to a native layer for displaying; and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
In an alternative embodiment, the executable instructions further cause the processor to:
acquiring the sub-views and the corresponding data objects based on a specified protocol; the data object comprises an insertion information type, an insertion information pattern, an insertion position of the sub-view and/or a designated rendering area;
and adding the sub-view into a container provided by the native layer.
In an alternative embodiment, the executable instructions further cause the processor to:
judging whether the page turning page is the insertion position of the child view or not according to the received page turning instruction;
if so, performing screenshot processing on the displayed sub-view to obtain a screenshot picture; setting the displayed sub-view to be in a hidden state; rendering the screenshot picture to the designated rendering area to realize page turning display of the insertion information.
In an alternative embodiment, the executable instructions further cause the processor to:
judging whether the position of the electronic book after page turning is the insertion position of the sub-view;
and if so, setting the sub-view to be in a visible state, and displaying the sub-view.
In an alternative embodiment, the executable instructions further cause the processor to:
and creating a native layer, and adding the native layer to a bottom container of the reader.
In an optional implementation manner, the native layer is created by adapting to different terminal devices, and is used for displaying the e-book content and the sub-view containing the insertion information.
In an alternative embodiment, the executable instructions further cause the processor to:
and receiving an action event triggered by a user on the child view, and transmitting the action event to the child view so as to respond to the action event by the child view.
In an optional implementation manner, each control layout setting for inserting information is contained in the sub-view, so that an animation effect of the information inserted in the sub-view is autonomously presented.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 4, the electronic device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein:
the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the above-described electronic book page display method embodiment.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations: acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer; determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered; delivering the rendered e-book content and the sub-view to a native layer for displaying; and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
In an alternative embodiment, the program 410 is configured to cause the processor 402 to obtain the sub-views and the corresponding data objects based on a specified protocol; the data object comprises an insertion information type, an insertion information pattern, an insertion position of the sub-view and/or a designated rendering area; and adding the sub-view into a container provided by the native layer.
In an alternative embodiment, the program 410 is configured to enable the processor 402 to determine whether the page-turning page is an insertion position of the sub-view according to the received page-turning instruction; if so, performing screenshot processing on the displayed sub-view to obtain a screenshot picture; setting the displayed sub-view to be in a hidden state; rendering the screenshot picture to the designated rendering area to realize page turning display of the insertion information.
In an alternative embodiment, the program 410 is configured to enable the processor 402 to determine whether the position of the electronic book after page turning is the insertion position of the sub-view; and if so, setting the sub-view to be in a visible state, and displaying the sub-view.
In an alternative embodiment, program 410 is configured to cause processor 402 to create a native layer and add the native layer to the reader's underlying container.
In an optional implementation manner, the native layer is created by adapting to different terminal devices, and is used for displaying the e-book content and the sub-view containing the insertion information.
In an alternative embodiment, the program 410 is configured to enable the processor 402 to receive an action event triggered by a user on the child view, and to pass the action event through to the child view so as to respond to the action event by the child view.
In an optional implementation manner, each control layout setting for inserting information is contained in the sub-view, so that an animation effect of the information inserted in the sub-view is autonomously presented.
For specific implementation of each step in the program 410, reference may be made to the corresponding description in the corresponding step in the above-described electronic book page display embodiment, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
Through the scheme provided by the embodiment, the content and the sub-view of the electronic book are displayed through the native layer, so that the display of the insertion information is realized, and the processing is more efficient. Through screenshot processing, the screenshot picture is rendered, the problem of page turning display of the inserted information is solved, and user experience is improved.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. a method for displaying pages of an electronic book, the method being executed by a reader engine, the reader engine including a native layer, the method comprising:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
A2. The method according to a1, wherein the obtaining a sub-view containing insertion information and a corresponding data object, and adding the sub-view to the container of the native layer specifically includes:
acquiring the sub-views and the corresponding data objects based on a specified protocol; the data object comprises an insertion information type, an insertion information pattern, an insertion position of the sub-view and/or a designated rendering area;
and adding the sub-view into a container provided by the native layer.
A3. The method according to a1, wherein the screenshot processing is performed on the displayed sub-view according to the received page turning instruction, and rendering the screenshot picture to realize page turning display of the insertion information further includes:
judging whether the page turning page is the insertion position of the child view or not according to the received page turning instruction;
if so, performing screenshot processing on the displayed sub-view to obtain a screenshot picture; setting the displayed sub-view to be in a hidden state; rendering the screenshot picture to the designated rendering area to realize page turning display of the insertion information.
A4. The method of A2 or A3, wherein, before the presenting the rendered ebook content and the sub-view by a native layer, the method further comprises:
judging whether the position of the electronic book after page turning is the insertion position of the sub-view;
and if so, setting the sub-view to be in a visible state, and displaying the sub-view.
A5. The method of any one of a1-a4, wherein the method further comprises:
and creating a native layer, and adding the native layer to a bottom container of the reader.
A6. The method according to any one of A1-A5, wherein the native layer is created to adapt to different terminal devices for presenting e-book content and sub-views containing insertion information.
A7. The method of any one of a1-a6, wherein the method further comprises:
and receiving an action event triggered by a user on the child view, and transmitting the action event to the child view so as to respond to the action event by the child view.
A8. The method according to any of A1-A7, wherein the sub-view contains information inserted control layout settings to autonomously present an animation effect of the information inserted in the sub-view.
The invention also discloses: B9. an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
B10. The electronic device of B9, the executable instructions further cause the processor to:
acquiring the sub-views and the corresponding data objects based on a specified protocol; the data object comprises an insertion information type, an insertion information pattern, an insertion position of the sub-view and/or a designated rendering area;
and adding the sub-view into a container provided by the native layer.
B11. The electronic device of B9, the executable instructions further cause the processor to:
judging whether the page turning page is the insertion position of the child view or not according to the received page turning instruction;
if so, performing screenshot processing on the displayed sub-view to obtain a screenshot picture; setting the displayed sub-view to be in a hidden state; rendering the screenshot picture to the designated rendering area to realize page turning display of the insertion information.
B12. The electronic device of B10 or B11, the executable instructions further cause the processor to:
judging whether the position of the electronic book after page turning is the insertion position of the sub-view;
and if so, setting the sub-view to be in a visible state, and displaying the sub-view.
B13. The electronic device of any of B9-B12, the executable instructions further cause the processor to:
and creating a native layer, and adding the native layer to a bottom container of the reader.
B14. According to the electronic device of any one of the B9-B13, the native layer is created by adapting different terminal devices and used for showing electronic book contents and sub-views containing insertion information.
B15. The method of any of B9-B14, the executable instructions further cause the processor to:
and receiving an action event triggered by a user on the child view, and transmitting the action event to the child view so as to respond to the action event by the child view.
B16. According to the electronic equipment in any one of the B9-B15, the sub-view contains control layout settings for inserting information so as to autonomously present an animation effect of the information inserted in the sub-view.
The invention also discloses: C17. a computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute the operation corresponding to the electronic book page display method as described in any one of a 1-A8.

Claims (10)

1. A method for displaying pages of an electronic book, the method being executed by a reader engine, the reader engine including a native layer, the method comprising:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
2. The method according to claim 1, wherein the obtaining of the sub-view including the insertion information and the corresponding data object, and the adding of the sub-view to the container of the native layer specifically includes:
acquiring the sub-views and the corresponding data objects based on a specified protocol; the data object comprises an insertion information type, an insertion information pattern, an insertion position of the sub-view and/or a designated rendering area;
and adding the sub-view into a container provided by the native layer.
3. The method of claim 1, wherein screenshot processing is performed on the presented sub-view according to the received page turning instruction, and rendering the screenshot picture to achieve page turning presentation of the insertion information further comprises:
judging whether the page turning page is the insertion position of the child view or not according to the received page turning instruction;
if so, performing screenshot processing on the displayed sub-view to obtain a screenshot picture; setting the displayed sub-view to be in a hidden state; rendering the screenshot picture to the designated rendering area to realize page turning display of the insertion information.
4. The method of claim 2 or 3, wherein, prior to presenting the rendered ebook content and the sub-view by a native layer, the method further comprises:
judging whether the position of the electronic book after page turning is the insertion position of the sub-view;
and if so, setting the sub-view to be in a visible state, and displaying the sub-view.
5. The method according to any one of claims 1-4, wherein the method further comprises:
and creating a native layer, and adding the native layer to a bottom container of the reader.
6. The method according to any one of claims 1-5, wherein the native layer is adapted to different end device creations for presenting e-book content and sub-views containing insertion information.
7. The method according to any one of claims 1-6, wherein the method further comprises:
and receiving an action event triggered by a user on the child view, and transmitting the action event to the child view so as to respond to the action event by the child view.
8. The method according to any one of claims 1-7, wherein each control layout setting for inserting information is contained in the sub-view, so as to autonomously present an animation effect of the information inserted in the sub-view.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring a sub-view containing insertion information and a corresponding data object, and adding the sub-view to a container of the native layer;
determining a designated rendering area of the sub-view according to the data object so as to reserve the designated rendering area to place the sub-view when the electronic book content is rendered;
delivering the rendered e-book content and the sub-view to a native layer for displaying;
and according to the received page turning instruction, screenshot processing is carried out on the displayed sub-view, and the screenshot picture is rendered to realize page turning display of the insertion information.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the method for presenting pages of an electronic book according to any one of claims 1 to 8.
CN202111033016.9A 2021-09-03 2021-09-03 Electronic book page display method, electronic equipment and storage medium Pending CN113672150A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111033016.9A CN113672150A (en) 2021-09-03 2021-09-03 Electronic book page display method, electronic equipment and storage medium
PCT/CN2021/125782 WO2023029172A1 (en) 2021-09-03 2021-10-22 Electronic book page display method, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033016.9A CN113672150A (en) 2021-09-03 2021-09-03 Electronic book page display method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113672150A true CN113672150A (en) 2021-11-19

Family

ID=78548245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033016.9A Pending CN113672150A (en) 2021-09-03 2021-09-03 Electronic book page display method, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113672150A (en)
WO (1) WO2023029172A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114255084A (en) * 2021-12-21 2022-03-29 北京沃东天骏信息技术有限公司 Advertisement page display method, device and system
CN114967998A (en) * 2022-05-31 2022-08-30 掌阅科技股份有限公司 Operation bar display method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096691A (en) * 2019-04-16 2019-08-06 掌阅科技股份有限公司 Composition method, electronic equipment and computer storage medium based on e-book
CN111611037A (en) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 View object processing method for electronic book, electronic device and storage medium
CN112486398A (en) * 2020-12-18 2021-03-12 掌阅科技股份有限公司 Method for realizing page turning effect of handwriting, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9846682B1 (en) * 2013-11-25 2017-12-19 Amazon Technologies, Inc. Cross-platform presentation of digital content
CN111143725A (en) * 2019-11-15 2020-05-12 北京字节跳动网络技术有限公司 Page generation method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096691A (en) * 2019-04-16 2019-08-06 掌阅科技股份有限公司 Composition method, electronic equipment and computer storage medium based on e-book
CN111611037A (en) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 View object processing method for electronic book, electronic device and storage medium
CN112486398A (en) * 2020-12-18 2021-03-12 掌阅科技股份有限公司 Method for realizing page turning effect of handwriting, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114255084A (en) * 2021-12-21 2022-03-29 北京沃东天骏信息技术有限公司 Advertisement page display method, device and system
CN114967998A (en) * 2022-05-31 2022-08-30 掌阅科技股份有限公司 Operation bar display method, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023029172A1 (en) 2023-03-09

Similar Documents

Publication Publication Date Title
CN102971688B (en) Cross-platform program frame
CN109032722B (en) Method, device, equipment and medium for updating display effect of UI component
CN101910990B (en) Creating and editing dynamic graphics via a web interface
US9021352B2 (en) Methods and apparatus for predictive document rendering
CN113672150A (en) Electronic book page display method, electronic equipment and storage medium
CN111062778A (en) Product browsing method, device, equipment and storage medium
EP2596471B1 (en) Split storage of anti-aliased samples
CN103617191A (en) Browser and method for rendering same by means of hardware acceleration
CN111611037B (en) View object processing method for electronic book, electronic device and storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
US20170169599A1 (en) Methods and electronic devices for displaying picture
CN111240769A (en) Page starting method, device, equipment and storage medium
CN110781425B (en) Display method, device and equipment of mobile terminal H5 page and storage medium
CN113485708A (en) Sketch-based cross-platform interface development method and system, computer device and medium
CN112015482A (en) Page loading method and device and server
CN112307377A (en) Information display method and device and electronic equipment
CN117075894A (en) List display method and device, computing equipment and readable storage medium
US9024957B1 (en) Address independent shader program loading
CN111198731A (en) Interface implementation method and device, electronic equipment and storage medium
CN110458928A (en) AR animation producing method, device, medium based on unity3d
CN109343772A (en) A kind of poster generation method, system, device and storage medium based on the H5 page
CN114217725A (en) Drawing method, device, equipment and medium based on Qt graphic view frame
CN114661370A (en) Resource loading method and device, electronic equipment and computer storage medium
CN115268945A (en) Logic board burning method and device, storage medium and electronic equipment
CN111984278A (en) Method and device for acquiring animation image

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