CN111611037A - View object processing method for electronic book, electronic device and storage medium - Google Patents

View object processing method for electronic book, electronic device and storage medium Download PDF

Info

Publication number
CN111611037A
CN111611037A CN202010386388.9A CN202010386388A CN111611037A CN 111611037 A CN111611037 A CN 111611037A CN 202010386388 A CN202010386388 A CN 202010386388A CN 111611037 A CN111611037 A CN 111611037A
Authority
CN
China
Prior art keywords
view object
instruction
layer
book reading
reading page
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.)
Granted
Application number
CN202010386388.9A
Other languages
Chinese (zh)
Other versions
CN111611037B (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.)
Ireader Technology Co Ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN202010386388.9A priority Critical patent/CN111611037B/en
Publication of CN111611037A publication Critical patent/CN111611037A/en
Application granted granted Critical
Publication of CN111611037B publication Critical patent/CN111611037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/451Execution arrangements for user interfaces
    • 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

Abstract

The invention discloses a view object processing method for an electronic book, electronic equipment and a storage medium, wherein the method comprises the following steps: creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object; creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region; monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page. The method realizes that the view object is inserted into the electronic book in a layer overlapping mode, the view object can directly respond to the operation of a user, and the electronic book reading page can still respond to the operation of the user in a transparent transmission instruction mode.

Description

View object processing method for electronic book, electronic device and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a view object processing method for an electronic book, electronic equipment and a storage medium.
Background
E-book formats include EPUB format, which is a streaming typesetting format, and unlike format files such as PDF, EPUB supports client-side content rearrangement, e.g., when a user adjusts font size, EPUB documents can be text rearranged and paginated based on new style parameters. Besides adjusting the text style, the picture can be inserted into the book text, the size, position and other information of the inserted picture can be set, and the picture and text mixed arrangement effect can be realized based on the existing client typesetting engine.
However, the inventor finds out in the process of implementing the invention that: the bottom layer logic of the existing typesetting engine is realized based on C + +, and C + + does not relate to the concept of the view, so that the typesetting engine does not support the object insertion of the view type and cannot realize the insertion of the view object based on the existing typesetting engine.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a view object processing method for an electronic book, an electronic device, and a storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a view object processing method for an electronic book, including:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region;
monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page.
According to still another aspect of the present invention, there is provided an electronic apparatus including: 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:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region;
monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region;
monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page.
According to the view object processing method for the electronic book, the electronic device and the storage medium provided by the invention, the view object is created, the placeholder picture is inserted into the electronic book reading page according to the position of the view object, a layer is additionally arranged on the electronic book reading page and used for displaying the view object, and other areas except the view object in the layer are made transparent. The method realizes that the view object is inserted into the electronic book in a mode of overlapping the layers, the view object and the layers can not shield original contents in the electronic book reading page, the normal reading of the electronic book by a user is guaranteed, the view object can directly respond to the operation of the user, and the electronic book reading page can still respond to the operation of the user in a mode of transmitting the instruction. By the method, the view object can be inserted into the page of the electronic book, and the user can normally read the electronic book and use the related functions of the electronic book.
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 a view object processing method for an electronic book according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a view object processing method for an electronic book according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a view object processing method for an electronic book according to another embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a view object processing method for an electronic book according to an embodiment of the present invention, where as shown in fig. 1, the method includes the following steps:
step S110, a view object is created, and a placeholder picture is inserted into an electronic book reading page according to the size information and the insertion position information of the view object.
A View object, i.e. a resource object in the form of a View, e.g. a video, an image, etc. in the form of a View, is first created. Then, a placeholder picture with the same size is determined according to the size of the view object, the placeholder picture can be transparent, and then the placeholder picture is inserted into the e-book reading page according to the insertion position of the view object, wherein the insertion position can be the form of the e-book reading page of the pages and the line of the reading page. For example, if the insertion position of the view object is set to be the middle position of the page of the electronic book, then a transparent placeholder picture is inserted into the same position of the reading page of the electronic book, and the effect of the reading page during display is as follows: the upper part area and the lower part area of the interface display book characters, and the middle part of the interface is blank.
Step S120, creating a layer on the electronic book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region.
Another layer is arranged on the e-book reading page and used for displaying the view object, the view object is added into the layer according to the inserting position of the view object, the view object area in the layer is overlapped with the placeholder picture in the e-book reading page, and the area except the view object in the layer is a transparent area. Then, the effect when the e-book reading page and the layer are displayed after being overlapped is as follows: the upper part area and the lower part area of the interface display book characters, and the middle part displays view objects.
Therefore, the embodiment adopts a mode of overlapping and displaying top and bottom layers to realize the insertion of the view object, and from the perspective of a user, the view object is directly added in a reading page.
Step S130, monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the e-book reading page.
The instruction generated on the layer is generated by user operation triggering, and different operations correspond to different instructions, for example, a user executes a sliding operation to trigger a page turning operation, a user executes a long-press operation to trigger a selection operation, and the like. Wherein the instructions include one or more of the following instructions: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
This step parses the instructions that are heard for the purpose of determining whether the instructions are directed to view objects or to e-book reading pages.
The view object is positioned at the uppermost layer and can directly respond to the instruction triggered by the user at the view object, so that the monitored instruction is analyzed, and if the instruction is the instruction responding to the view object, the view object is determined to directly respond to the instruction. Because the layer is created on the e-book reading page, in order to ensure that the user can normally use other conventional reading operations for the e-book reading page, such as line drawing operation, selection operation, and page turning operation, the operation instruction for the e-book reading page must be transmitted to the e-book reading page, so that the monitored instruction is analyzed, and if the instruction is for the e-book reading page, the instruction is transmitted to the e-book reading page.
According to the view object processing method for the electronic book provided by the embodiment of the invention, the view object is created, the placeholder picture is inserted into the electronic book reading page according to the position of the view object, another layer is arranged on the electronic book reading page and used for displaying the view object, and other areas except the view object in the layer are made transparent. The method realizes that the view object is inserted into the e-book reading page in a mode of overlapping the layers, the view object and the layers can not shield original contents in the e-book reading page, the user can normally read the e-book, the view object can directly respond to the operation of the user, and the e-book reading page can still respond to the operation of the user in a mode of transmitting the instruction. Based on the mode of the embodiment, the view object can be inserted into the e-book reading page, and the normal reading of the e-book and the use of the related functions of the e-book by the user are ensured.
Fig. 2 is a flowchart illustrating a view object processing method for an electronic book according to another embodiment of the present invention, where as shown in fig. 2, the method includes:
step S210, creating a view object, and defining the window size and the interactive control of the player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
Taking the example of inserting a video in an e-book reading page, creating a view object, including setting the size of the view object and the insertion position in the e-book reading page, and defining the window size and interaction control of a player in the view object, such as: and interactive controls such as a play key, a pause key, a stop key, a close key and the like are established, and the association relation between the video resource to be displayed and the view object is established. Then, the user can control the playing, pausing and stopping of the video resource and the closing of the view object by clicking the interactive control in the interface, and the specific implementation will be described in detail later.
Step S220, determining the placeholder pictures according to the size information of the view objects, transmitting the placeholder pictures and the insertion position information to a typesetting engine, and inserting the placeholder pictures into corresponding electronic book reading pages by the typesetting engine according to the insertion position information.
And determining a placeholder picture with the same size according to the size of the view object, wherein the placeholder picture is transparent. Then, the insertion position information of the placeholder pictures and the view objects is transmitted to a typesetting engine at the client side, and the typesetting engine inserts the placeholder pictures into the corresponding e-book reading pages according to the insertion positions.
Step S230, creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, where an area in the layer other than the view object is a transparent area.
And additionally arranging a layer on the e-book reading page, displaying the view object in the layer according to the inserting position of the view, wherein the area of the view object in the layer is superposed with the area of the placeholder picture in the e-book reading page, and the area except the view object in the layer is transparent. Therefore, original book content in the page of the electronic book is not shielded, normal reading of the user is guaranteed, and from the perspective of the user, the video is equivalently inserted into the reading page of the electronic book.
Step S240, monitoring the instruction generated on the layer, analyzing the touch position information carried by the instruction, and determining whether the touch position is located in the view object area. If not, go to step S250; if yes, go to step S260.
The command is generated by triggering the user to execute the operation, and the command carries the touch position information corresponding to the user operation, for example, the line drawing operation is a long-time pressing operation, and the line drawing command carries the coordinate and the time information of the touch click. In this embodiment, whether the touch position is located in the view object area is determined according to the touch position information carried by the instruction.
Step S250, the instruction is transmitted to the e-book reading page for response.
And if the touch position is not positioned in the view object area, indicating that the instruction is directed to the e-book reading page, transmitting the instruction to the e-book reading page. For example, if a user triggers a scribing instruction by executing a long pressing operation in a region outside a view object region, the layer transmits the scribing instruction to an electronic book reading page, the electronic book reading page responds to the instruction according to an existing mechanism, a scribing start position is determined according to coordinate position information of a touch position carried by the scribing instruction, and a scribing mark is displayed according to the carried long pressing time information.
In step S260, it is determined that the instruction is responded to by the view object.
If the touch location is in the view object area, indicating that the instruction is for a view object, then it is determined that the instruction is to be responded to directly by the view object. For example, if the user triggers a play instruction by clicking a play key of the player, the view object responds to the play instruction to play the video resource; and if the user triggers a pause instruction by clicking a pause key of the player, the view object responds to the pause instruction and pauses the playing of the video resource.
After the video view object is inserted into the e-book reading page, the user does not know that the video played in the interface is the view object, and when some operations on the e-book reading page are performed, such as a page turning operation, the operations are not intentionally performed in the region outside the view object, and then the page turning operation may be performed in the view object region or across the view object region and the non-view object region.
Based on this, in an optional implementation manner, the type of the instruction is analyzed according to the coordinate information and the duration information of the touch click carried by the instruction, and whether the view object responds or is transmitted to the e-book reading page is determined according to the type of the instruction. For example, an instruction is triggered according to a right-to-left sliding operation executed by a user in a view object region, coordinate information and time length information of the sliding track are carried in the instruction, the instruction is analyzed to be a page turning instruction for turning a page downwards, the page turning instruction is specific to an electronic book reading page, and the page turning instruction is transmitted to the electronic book reading page for responding.
According to the view object processing method for the electronic book provided by the embodiment of the invention, a view object is created, the layout engine is utilized to insert the placeholder picture in the electronic book reading page according to the position of the view object, another layer is arranged on the electronic book reading page and used for displaying the view object, and other areas except the view object in the layer are made transparent. The method realizes that the view object is inserted into the electronic book in a mode of overlapping the layers, and the view object and the layers can not shield the original content in the reading page of the electronic book, so that the normal reading of the electronic book by a user is guaranteed; meanwhile, whether the instruction is directed to a view object or an electronic book reading page is judged according to the touch position of the instruction, and the electronic book reading page can also respond to the operation of a user in a transparent transmission mode. Based on the mode of the embodiment of the invention, the view object can be inserted into the page of the electronic book, and the normal reading of the electronic book and the use of the related functions of the electronic book by a user are ensured.
Fig. 3 is a flowchart illustrating a view object processing method for an electronic book according to another embodiment of the present invention, where as shown in fig. 3, the method includes:
step S310, a view object is created, and a placeholder picture is inserted into an electronic book reading page according to the size information and the insertion position information of the view object.
Step S320, creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, where an area of the layer other than the view object is a transparent area.
Step S330, a page turning instruction generated on the layer is monitored, screenshot is carried out on the view object, and the e-book reading page is refreshed so as to update the placeholder picture to the screenshot of the view object.
Step S340, closing the layer, and transmitting the page turning instruction to the e-book reading page.
For the e-book reading page, page turning can be performed based on the existing logic of the layout engine, but the created layer is not controlled by the layout engine and cannot be turned along with the page turning.
However, a transparent placeholder picture is located at a position corresponding to a view object in an e-book reading page, and after the layer is not displayed, a partially blank area exists in an interface, which may affect user experience. Based on this, in the method of this embodiment, before canceling the display of the layer, screenshot is performed on the view object, the e-book reading page is refreshed, the placeholder picture is updated to the screenshot of the view object, and there is no blank area in the interface after the layer is closed.
The method for screenshot of the view object in different systems is different, and specifically comprises the following steps: in the android system, storing the View into a Bitmap, and then storing the Bitmap into a picture; in the iOS system, the View is stored into a picture by using a Graphics method provided by the system.
Step S350, in response to the instruction for returning to the e-book reading page, generating a new layer on the e-book reading page, and displaying the view object in the new layer.
After the above steps S330 to S340, the electronic book turns over, the layer on the electronic book reading page is closed, and the placeholder picture in the electronic book reading page is replaced by the screenshot of the view object, where the screenshot is stored in the electronic book data file in the form of a picture, and when the user turns back to the electronic book reading page, the screenshot of the view object will be presented, and there will not be any response to the user when operating the electronic book reading page.
Based on this, in the embodiment of the present invention, when the user turns back to the e-book reading page, a new layer is generated again, the view object is displayed on the new layer, and the specific implementation of inserting the view object refers to the above description, which is not described herein again. In this way, the e-book reading page into which the view object is inserted can normally respond to the page turning operation, and the view object can still be displayed when the user turns back to the e-book reading page.
The processing mode of the embodiment of the invention is not sensible to the user and has wide application significance, for example, the related video of the book is inserted into the electronic book, so that different reading experiences are provided for the user, the user experience can be improved, and a novel popularization mode is provided, and the popularization effect can be improved if the popularization video is inserted into the electronic book. Of course, the present invention is not limited in application scenarios.
Therefore, according to the view object processing method for the electronic book provided by the embodiment of the invention, on one hand, the view object is inserted into the electronic book by creating the view object, inserting the placeholder picture into the electronic book reading page according to the position of the view object, forming a layer in addition to the electronic book reading page for displaying the view object, and transparentizing other regions except the view object in the layer. On the other hand, when a page turning instruction generated on the layer is monitored, screenshot is firstly carried out on the view object, and the screenshot replaces a placeholder picture in an electronic book reading page, so that a blank area cannot appear in a display interface; when the layer transmits the page turning instruction to the e-book reading page, the display of the layer is cancelled, so that the normal page turning effect can be realized; on the other hand, when the user turns back to the e-book reading page with the cancelled layer, a new layer is generated again, and the view object is displayed in the new layer, so that the view object can still be displayed when the user returns to the e-book reading page.
An embodiment of the present invention 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 view object processing method for an electronic book in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region;
monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page.
In an alternative, the executable instructions cause the processor to:
determining the placeholder pictures according to the size information of the view objects, transmitting the placeholder pictures and the insertion position information to a typesetting engine, and inserting the placeholder pictures into corresponding electronic book reading pages by the typesetting engine according to the insertion position information.
In an alternative, the executable instructions cause the processor to: analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the e-book reading page;
if so, determining that the view object responds to the instruction.
In an alternative form, the instructions include one or more of the following instructions: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
In an alternative, the executable instructions cause the processor to: and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for response.
In an alternative, the executable instructions cause the processor to: and before closing the layer, screenshot is carried out on the view object, and an electronic book reading page is refreshed so as to update the placeholder picture into the screenshot of the view object.
In an alternative, the executable instructions cause the processor to:
and generating a new layer on the electronic book reading page in response to the instruction for returning to the electronic book reading page, and displaying the view object in the new layer.
In an alternative, the executable instructions cause the processor to:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
Fig. 4 is a schematic structural diagram of an embodiment of the electronic device according to 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 perform relevant steps in the above-described embodiment of the view object processing method for an electronic book for an electronic device.
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 an embodiment of the present invention. The electronic device 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:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on an electronic book reading page, and displaying a view object in the layer according to the insertion position information of the view object, wherein the region except the view object in the layer is a transparent region;
monitoring the instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmitting the instruction to the e-book reading page.
In an alternative, the program 410 causes the processor 402 to:
determining the placeholder pictures according to the size information of the view objects, transmitting the placeholder pictures and the insertion position information to a typesetting engine, and inserting the placeholder pictures into corresponding electronic book reading pages by the typesetting engine according to the insertion position information.
In an alternative, the program 410 causes the processor 402 to:
analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the e-book reading page;
if so, determining that the view object responds to the instruction.
In an alternative form, the instructions include one or more of the following instructions: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
In an alternative, the program 410 causes the processor 402 to:
and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for response.
In an alternative, the program 410 causes the processor 402 to:
and before closing the layer, screenshot is carried out on the view object, and an electronic book reading page is refreshed so as to update the placeholder picture into the screenshot of the view object.
In an alternative, the program 410 causes the processor 402 to:
and generating a new layer on the electronic book reading page in response to the instruction for returning to the electronic book reading page, and displaying the view object in the new layer.
In an alternative, the program 410 causes the processor 402 to:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
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 embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention 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 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 following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
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. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a view object processing method for an electronic book, comprising:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
A2. The method of A1, wherein the inserting a placeholder picture in an e-book reading page according to the size information and the insertion position information of the view object further comprises:
determining a placeholder picture according to the size information of the view object, transmitting the placeholder picture and the insertion position information to a typesetting engine, and inserting the placeholder picture into a corresponding electronic book reading page by the typesetting engine according to the insertion position information.
A3. The method of A1 or A2, wherein the parsing the instructions, determining whether to respond to the instructions by the view object or to pass the instructions through to the e-book reading page further comprises:
analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the electronic book reading page;
and if so, determining that the view object responds to the instruction.
A4. The method of any of A1-A3, wherein the instructions include one or more of the following: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
A5. The method of any of a1-a4, wherein the listening for the instructions generated on the layer, parsing the instructions, determining that the instructions are responded to by the view object or passed through to the e-book reading page further comprises:
and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for responding.
A6. The method according to a5, wherein before the closing the layer, the method further comprises:
and screenshot is carried out on the view object, and the e-book reading page is refreshed so as to update the placeholder picture to be the screenshot of the view object.
A7. The method of a5 or a6, wherein, in response to the page flip instruction being passed through to the ebook reading page, the method further comprises:
and responding to an instruction for returning to the e-book reading page, generating a new layer on the e-book reading page, and displaying the view object in the new layer.
A8. The method of any of A1-A7, wherein the creating a view object further comprises:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
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:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
B10. The electronic device of B9, the executable instructions further cause the processor to:
determining a placeholder picture according to the size information of the view object, transmitting the placeholder picture and the insertion position information to a typesetting engine, and inserting the placeholder picture into a corresponding electronic book reading page by the typesetting engine according to the insertion position information.
B11. The electronic device of B9 or B10, the executable instructions further cause the processor to:
analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the electronic book reading page;
and if so, determining that the view object responds to the instruction.
B12. The electronic device of any of B9-B11, wherein the instructions include one or more of the following instructions: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
B13. The electronic device of any of B9-B12, the executable instructions further cause the processor to:
and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for responding.
B14. The electronic device of B13, the executable instructions further cause the processor to:
and before closing the layer, screenshot is carried out on the view object, and the electronic book reading page is refreshed so as to update the placeholder picture to the screenshot of the view object.
B15. The electronic device of B13 or B14, the executable instructions further cause the processor to:
and responding to an instruction for returning to the e-book reading page, generating a new layer on the e-book reading page, and displaying the view object in the new layer.
B16. The electronic device of any of B9-B15, the executable instructions further cause the processor to:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
C17. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
C18. The computer storage medium of C17, the executable instructions further cause the processor to:
determining a placeholder picture according to the size information of the view object, transmitting the placeholder picture and the insertion position information to a typesetting engine, and inserting the placeholder picture into a corresponding electronic book reading page by the typesetting engine according to the insertion position information.
C19. The computer storage medium of C17 or C18, the executable instructions further cause the processor to:
analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the electronic book reading page;
and if so, determining that the view object responds to the instruction.
C20. The computer storage medium of any of C17-C19, the instructions comprising one or more of the following instructions: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
C21. The computer storage medium of any of C17-C20, the executable instructions further cause the processor to:
and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for responding.
C22. The computer storage medium of C21, the executable instructions further cause the processor to:
and before closing the layer, screenshot is carried out on the view object, and the electronic book reading page is refreshed so as to update the placeholder picture to the screenshot of the view object.
C23. The computer storage medium of C21 or C22, the executable instructions further cause the processor to:
and responding to an instruction for returning to the e-book reading page, generating a new layer on the e-book reading page, and displaying the view object in the new layer.
C24. The computer storage medium of any of C17-C23, the executable instructions further cause the processor to:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.

Claims (10)

1. A view object processing method for an electronic book, comprising:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
2. The method of claim 1, wherein the inserting a placeholder picture in an e-book reading page according to the size information and the insertion position information of the view object further comprises:
determining a placeholder picture according to the size information of the view object, transmitting the placeholder picture and the insertion position information to a typesetting engine, and inserting the placeholder picture into a corresponding electronic book reading page by the typesetting engine according to the insertion position information.
3. The method of claim 1 or 2, wherein the parsing the instructions, determining whether to respond to the instructions by the view object or to pass the instructions through to the e-book reading page further comprises:
analyzing the touch position information carried by the instruction, and judging whether the touch position is located in the view object area;
if not, the instruction is transmitted to the electronic book reading page;
and if so, determining that the view object responds to the instruction.
4. The method of any of claims 1-3, wherein the instructions include one or more of: a page turning instruction, a labeling instruction, a selecting instruction and a scribing instruction.
5. The method of any of claims 1-4, wherein the listening for instructions generated on the layer, parsing the instructions, determining that the instructions are responded to by the view object or passed through to the e-book reading page further comprises:
and monitoring a page turning instruction generated on the layer, closing the layer, and transmitting the page turning instruction to the e-book reading page for responding.
6. The method of claim 5, wherein prior to said closing said layer, said method further comprises:
and screenshot is carried out on the view object, and the e-book reading page is refreshed so as to update the placeholder picture to be the screenshot of the view object.
7. The method of claim 5 or 6, wherein, in response to the page flip instruction being passed through to the e-book reading page, the method further comprises:
and responding to an instruction for returning to the e-book reading page, generating a new layer on the e-book reading page, and displaying the view object in the new layer.
8. The method of any of claims 1-7, wherein the creating a view object further comprises:
creating a view object, and defining a window size and an interactive control of a player in the view object; and establishing an incidence relation between the resource to be displayed and the view object.
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:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
creating a view object, and inserting a placeholder picture into an electronic book reading page according to the size information and the inserting position information of the view object;
creating a layer on the e-book reading page, and displaying the view object in the layer according to the insertion position information of the view object, wherein the region of the layer except the view object is a transparent region;
monitoring an instruction generated on the layer, analyzing the instruction, and determining that the view object responds to the instruction or transmits the instruction to the electronic book reading page.
CN202010386388.9A 2020-05-09 2020-05-09 View object processing method for electronic book, electronic device and storage medium Active CN111611037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010386388.9A CN111611037B (en) 2020-05-09 2020-05-09 View object processing method for electronic book, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010386388.9A CN111611037B (en) 2020-05-09 2020-05-09 View object processing method for electronic book, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111611037A true CN111611037A (en) 2020-09-01
CN111611037B CN111611037B (en) 2023-04-07

Family

ID=72196907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010386388.9A Active CN111611037B (en) 2020-05-09 2020-05-09 View object processing method for electronic book, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111611037B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435172A (en) * 2021-07-13 2021-09-24 北京北大方正电子有限公司 Processing method, device and equipment for chart positioning and storage medium
CN113613064A (en) * 2021-07-19 2021-11-05 深圳Tcl新技术有限公司 Video processing method, device, storage medium and terminal
CN113672150A (en) * 2021-09-03 2021-11-19 掌阅科技股份有限公司 Electronic book page display method, electronic equipment and storage medium
CN113672330A (en) * 2021-08-20 2021-11-19 北京得间科技有限公司 E-book-based media resource page display method and computing equipment

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908285A (en) * 2010-06-18 2010-12-08 王家焱 Method and system for inserting multimedia in electronic book
CN102147790A (en) * 2011-04-15 2011-08-10 华为软件技术有限公司 Text type-setting method and type-setting engine
CN102184104A (en) * 2011-05-13 2011-09-14 北京瑞信在线系统技术有限公司 Method and device for realizing simulated page turning effect on display screen
US20120204092A1 (en) * 2011-02-07 2012-08-09 Hooray LLC E-reader generating ancillary content from markup tags
US20120226975A1 (en) * 2011-03-01 2012-09-06 Apple Inc. Object Placeholders in Electronic Documents
US8397153B1 (en) * 2011-10-17 2013-03-12 Google Inc. Systems and methods for rich presentation overlays
CN103425628A (en) * 2012-05-23 2013-12-04 纬创资通股份有限公司 Electronic book note sharing method, electronic reading device and computer readable medium
WO2015047246A1 (en) * 2013-09-25 2015-04-02 Intel Corporation Dynamic product placement in media content
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN107463307A (en) * 2017-07-31 2017-12-12 北京京东尚科信息技术有限公司 Document display method and device
CN107562680A (en) * 2017-08-29 2018-01-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device
US20180061456A1 (en) * 2016-08-30 2018-03-01 International Business Machines Corporation Dynamic image content overlaying
CN107977451A (en) * 2017-12-14 2018-05-01 广州阿里巴巴文学信息技术有限公司 The method, apparatus and terminal device of dynamic content are added in the page is shown
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium
CN109032495A (en) * 2018-08-15 2018-12-18 掌阅科技股份有限公司 Content input method, electronic equipment and computer storage medium
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN110096691A (en) * 2019-04-16 2019-08-06 掌阅科技股份有限公司 Composition method, electronic equipment and computer storage medium based on e-book
CN110210010A (en) * 2019-05-20 2019-09-06 掌阅科技股份有限公司 PSD file editing method, electronic equipment based on demixing technology realization

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908285A (en) * 2010-06-18 2010-12-08 王家焱 Method and system for inserting multimedia in electronic book
US20120204092A1 (en) * 2011-02-07 2012-08-09 Hooray LLC E-reader generating ancillary content from markup tags
US20120226975A1 (en) * 2011-03-01 2012-09-06 Apple Inc. Object Placeholders in Electronic Documents
CN102147790A (en) * 2011-04-15 2011-08-10 华为软件技术有限公司 Text type-setting method and type-setting engine
CN102184104A (en) * 2011-05-13 2011-09-14 北京瑞信在线系统技术有限公司 Method and device for realizing simulated page turning effect on display screen
US8397153B1 (en) * 2011-10-17 2013-03-12 Google Inc. Systems and methods for rich presentation overlays
CN103425628A (en) * 2012-05-23 2013-12-04 纬创资通股份有限公司 Electronic book note sharing method, electronic reading device and computer readable medium
US20160212455A1 (en) * 2013-09-25 2016-07-21 Intel Corporation Dynamic product placement in media content
WO2015047246A1 (en) * 2013-09-25 2015-04-02 Intel Corporation Dynamic product placement in media content
US20180061456A1 (en) * 2016-08-30 2018-03-01 International Business Machines Corporation Dynamic image content overlaying
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN107463307A (en) * 2017-07-31 2017-12-12 北京京东尚科信息技术有限公司 Document display method and device
CN107562680A (en) * 2017-08-29 2018-01-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device
CN107977451A (en) * 2017-12-14 2018-05-01 广州阿里巴巴文学信息技术有限公司 The method, apparatus and terminal device of dynamic content are added in the page is shown
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN109032495A (en) * 2018-08-15 2018-12-18 掌阅科技股份有限公司 Content input method, electronic equipment and computer storage medium
CN110096691A (en) * 2019-04-16 2019-08-06 掌阅科技股份有限公司 Composition method, electronic equipment and computer storage medium based on e-book
CN110210010A (en) * 2019-05-20 2019-09-06 掌阅科技股份有限公司 PSD file editing method, electronic equipment based on demixing technology realization

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SIMONE MARINAI; EMANUELE MARINO; GIOVANNI SODA: "Conversion of PDF Books in ePub Format" *
罗航: "基于Readium的Android电子教材阅读系统的设计与开发" *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435172A (en) * 2021-07-13 2021-09-24 北京北大方正电子有限公司 Processing method, device and equipment for chart positioning and storage medium
CN113435172B (en) * 2021-07-13 2024-04-02 北京北大方正电子有限公司 Processing method, device, equipment and storage medium for chart positioning
CN113613064A (en) * 2021-07-19 2021-11-05 深圳Tcl新技术有限公司 Video processing method, device, storage medium and terminal
CN113672330A (en) * 2021-08-20 2021-11-19 北京得间科技有限公司 E-book-based media resource page display method and computing equipment
CN113672150A (en) * 2021-09-03 2021-11-19 掌阅科技股份有限公司 Electronic book page display method, electronic equipment and storage medium
WO2023029172A1 (en) * 2021-09-03 2023-03-09 掌阅科技股份有限公司 Electronic book page display method, and electronic device and storage medium

Also Published As

Publication number Publication date
CN111611037B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111611037B (en) View object processing method for electronic book, electronic device and storage medium
US11010538B2 (en) Systems and methods for hosted applications
WO2020034747A1 (en) Image generation method, device and apparatus, and storage medium
CN105740364B (en) Page processing method and related device
US9021352B2 (en) Methods and apparatus for predictive document rendering
US10084878B2 (en) Systems and methods for hosted application marketplaces
KR101962980B1 (en) Informed partitioning of data in a markup-based document
CN108959495B (en) page display method, device, equipment and computer storage medium of H5 webpage
CN109154943A (en) Conversion based on server of the automatic broadcasting content to click play content
US20160188558A1 (en) Information processing device, information processing method, and program
US20230117213A1 (en) Page display method and electronic device
KR102574306B1 (en) dynamic typesetting
CN111783015A (en) Display method of shared display elements in page, electronic equipment and storage medium
CN112579187A (en) Optimization method and device for cold start of application program
CN113849096B (en) Desktop display method and device and computing equipment
CN110020279B (en) Page data processing method and device and storage medium
CN115659087B (en) Page rendering method, equipment and storage medium
CN112738562B (en) Method, device and computer storage medium for transparent display of browser page
Kyrnin Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours
US20180090174A1 (en) Video generation of project revision history
CN113722630A (en) Method and equipment for presenting resource data in web page based on client rendering
CN111611038B (en) Method for inserting view objects in electronic book reading page and computing device
CN111459373A (en) Electronic book idea data display method, computing device and computer storage medium
CN106095734B (en) Text display method and device
CN113886738A (en) CEF-based custom protocol extension method

Legal Events

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