CN111611038B - Method for inserting view objects in electronic book reading page and computing device - Google Patents

Method for inserting view objects in electronic book reading page and computing device Download PDF

Info

Publication number
CN111611038B
CN111611038B CN202010386958.4A CN202010386958A CN111611038B CN 111611038 B CN111611038 B CN 111611038B CN 202010386958 A CN202010386958 A CN 202010386958A CN 111611038 B CN111611038 B CN 111611038B
Authority
CN
China
Prior art keywords
picture
instruction
view object
book 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.)
Active
Application number
CN202010386958.4A
Other languages
Chinese (zh)
Other versions
CN111611038A (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.)
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 CN202010386958.4A priority Critical patent/CN111611038B/en
Publication of CN111611038A publication Critical patent/CN111611038A/en
Application granted granted Critical
Publication of CN111611038B publication Critical patent/CN111611038B/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
    • 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

Abstract

The invention discloses an insertion method of a view object in an electronic book reading page and computing equipment. The method comprises the following steps: creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture; according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page; monitoring a first instruction generated in at least one instruction response area of a first picture, transmitting the first instruction to a view object corresponding to the first picture, inserting a screenshot picture of the view object into an electronic book reading page by using a typesetting engine according to the position of the view object, transmitting the corresponding instruction downwards to the view object corresponding to the screenshot picture when clicking operation is generated on the screenshot picture, executing a corresponding function of the view object, and therefore bypassing the limitation of the bottom layer of the typesetting engine, inserting the view object into the electronic book reading page, and further realizing video calling.

Description

Method for inserting view objects in electronic book reading page and computing device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for inserting a view object in an electronic book reading page, a computing device, and a computer storage medium.
Background
The e-book format includes EPUB format, which is a streaming typesetting format, unlike format files such as PDF, EPUB supports content rearrangement on the client side, for example, when a user adjusts a font size, EPUB documents may perform text rearrangement and paging based on new style parameters. Besides adjusting the text style, pictures can be inserted into the books and the characters, the size, the position and other information of the inserted pictures are set, and the picture-text mixed arrangement effect is realized based on the existing client typesetting engine.
However, the inventors found in the course of implementing the present invention that: the bottom logic of the existing typesetting engine is realized based on C++, and the C++ does not relate to the concept of view, so that the typesetting engine does not support the insertion of view type objects and cannot realize the insertion of view objects based on the existing typesetting engine.
Disclosure of Invention
The present invention has been made in view of the above problems, and provides an insertion method, a computing device, and a computer storage medium for a view object in an electronic book reading page that overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided a method for inserting a view object in an electronic book reading page, including:
Creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
monitoring a first instruction generated in at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
According to another aspect of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other 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:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
monitoring a first instruction generated in at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
According to yet another aspect of the present invention, there is provided a computer storage medium having stored therein at least one executable instruction for causing a processor to:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
monitoring a first instruction generated in at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
According to the scheme for inserting the view objects in the electronic book reading page, provided by the embodiment of the invention, the view objects are created, the screenshot pictures of the view objects are inserted in the electronic book reading page by utilizing the typesetting engine according to the positions of the view objects, when clicking operation is generated on the screenshot pictures, corresponding instructions are downwards transmitted to the view objects corresponding to the screenshot pictures, and corresponding functions of the view objects are executed, so that the limitation of the bottom layer of the typesetting engine is bypassed, the view objects are inserted in the electronic book reading page, and further the video call is realized.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
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 designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow diagram of a method for inserting view objects in an e-book reading page according to one embodiment of the invention;
FIG. 2 is a flow chart illustrating a method of inserting view objects in an e-book reading page according to another embodiment of the present invention;
FIG. 3 illustrates a schematic diagram of a computing device, according to one embodiment of the 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 present invention are shown in the drawings, it should be understood that the present invention may 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 of a method for inserting view objects in an e-book reading page according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step S101, creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture.
When it is desired to insert video in an e-book reading page, this can be achieved by: a view object is created first, wherein the created view object can be considered a video player for playing video assets.
Because the existing typesetting engine does not support the insertion of video, although the view object is created, the created view object cannot be directly inserted into the e-book reading page, so that the video can be inserted into the e-book reading page without changing the existing logic of the typesetting engine, and after the view object is created, the following processing is required: and performing screenshot processing on the created view object to obtain a first picture.
In order to truly restore the scene of the inserted video, and also in order to enable the user to view the video inserted in the e-book reading page, after the first picture is obtained, at least one instruction response area of the first picture needs to be set, wherein the instruction response area is a partial area of the first picture, and after the user triggers the area, a corresponding instruction is generated.
Step S102, according to the insertion position information of the view object, the first picture is inserted into the corresponding electronic book reading page.
The insertion position information of the view object shows which position of the e-book reading page is desired to be inserted with the video, so that after at least one instruction response area of the first picture is set, the first picture can be inserted into the corresponding e-book reading page according to the insertion position information of the view object, thereby realizing the insertion of the first picture.
For example, the insertion position information may be in the form of what number of e-book reading pages and what number of rows in the reading pages, for example, the insertion position information of the view object is the 5 th row of the 5 th page, and then the first picture may be inserted in the same position of the e-book reading pages, and when the user reads the e-book reading pages, the specific display effect is as follows: the upper part area and the lower part area of the reading page of the electronic book show the characters of the book, and the middle part is a first picture.
Step S103, monitoring a first instruction generated by at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
In the process of reading the electronic book reading page, a user may have a requirement of viewing the video, so after the first picture is inserted into the corresponding electronic book reading page, the triggering operation of the user on at least one instruction response area of the first picture needs to be monitored in real time, namely, a first instruction generated by the at least one instruction response area of the first picture is monitored, after the first instruction generated by the at least one instruction response area of the first picture is monitored, the first instruction is transmitted to a view object corresponding to the first picture, and the view object responds to the first instruction, thereby realizing the insertion of the video in the electronic book reading page and meeting the requirement of viewing the video inserted in the electronic book reading page by the user.
According to the method for inserting the view object in the electronic book reading page, the view object is created, the screenshot picture of the view object is inserted into the electronic book reading page by utilizing the typesetting engine according to the position of the view object, when clicking operation is generated on the screenshot picture, a corresponding instruction is downwards transmitted to the view object corresponding to the screenshot picture, and the corresponding function of the view object is executed, so that the limitation of the bottom layer of the typesetting engine is bypassed, the view object is inserted into the electronic book reading page, and further video calling is achieved.
Fig. 2 is a flowchart of a method for inserting view objects in an e-book reading page according to another embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S201, creating a view object, performing screenshot processing on the view object to obtain a first picture, and establishing an association relationship between the first picture and the view object.
When it is desired to insert video in an e-book reading page, this can be achieved by: a view object is created first, wherein the created view object can be considered a video player for playing video assets. Optionally, it is also necessary to define the player window size in the created view object and to set interactive components, such as play key, pause key, close key, etc. The view object is used for playing the video resource, so that after the view object is created, an association relationship between the view object and the video resource needs to be established, so that when the view object is displayed subsequently, it can be determined which video resource is to be played by the view object.
Because the existing typesetting engine does not support the insertion of video, although the view object is created, the created view object cannot be directly inserted into the e-book reading page, so that the video can be inserted into the e-book reading page without changing the existing logic of the typesetting engine, and after the view object is created, the following processing is required: and carrying out screenshot processing on the created view object, preferably, intercepting a screenshot picture consistent with the window size of the player, wherein the screenshot picture is the first picture, and the scene of inserting the video in the reading page of the electronic book can be truly reflected by intercepting the screenshot picture consistent with the window size of the player.
The screenshot mode of the video object is different under different systems, specifically: in the android system, a View object (also called a View) is saved as a Bitmap, and then the Bitmap is saved as a first picture; in the iOS system, the View is saved as a first picture by using a Graphics method provided by the system.
After the first picture is obtained, an association relationship between the first picture and the view object needs to be established, so that after a first instruction is generated on the first picture, it can be determined to which view object the generated first instruction is transmitted.
It should be noted that, in the case where videos are likely to be inserted at different positions of the same electronic book reading page, or in the case where videos are inserted in a plurality of electronic book reading pages of an electronic book, in the above case, by establishing an association relationship between a first picture and a view object, it is possible to accurately determine to which view object the generated first instruction is transmitted.
Step S202, at least one instruction response area of the first picture is set according to the position of at least one interaction component in the view object.
The view object is a video player, and an interaction component is arranged on an interface of the video player and used for controlling video resources, for example, the interaction component can be a play key, a pause key, a close key and the like, so that a user can control the playing, the pausing and the closing of the video resources by clicking the interaction component in the interface. In order to truly restore the scene of the inserted video, and also in order to enable the user to view the video inserted in the e-book reading page, after the first picture is obtained, at least one instruction response area of the first picture can be set according to the position of at least one interaction component in the view object. The instruction response area is a partial area of the first picture, and after the user triggers the area, a corresponding instruction is generated.
For example, a play key is displayed at the center of the interface of the view object, then the center of the first picture (corresponding to the position of the play key in the view object) may be set as an instruction response area, and the instruction triggered by the TOUCH event is set as a play video instruction, where the size of the instruction response area is the same as the size of the area occupied by the play key in the interface of the view object. By way of example only, and without limitation, the location of the command response area in the first picture is closely related to the location of at least one interactive component in the view object, e.g., the play key in the view object is located at the lower left corner of the interface, then the lower left corner of the first picture (corresponding to the location of the play key in the view object) may be set as the command response area.
It should be noted that, although the play key is displayed at the corresponding position in the first picture, it is an element in the first picture and does not have interaction capability similar to the play key in the interface of the view object.
Step S203, the first picture and the inserting position information are transmitted to the typesetting engine, and the typesetting engine inserts the first picture into the corresponding electronic book reading page according to the inserting position information.
After setting at least one instruction response area of the first picture, the first picture and the insertion position information of the view object are transmitted to a typesetting engine, wherein the insertion position information of the view object shows which position of an electronic book reading page is expected to be inserted with video, for example, the insertion position information can be in the form of the electronic book reading page of which page and the line of the reading page, and the insertion position information of the view object is illustrated as the 5 th line of the 5 th page.
After receiving the first picture and the inserting position information, the typesetting engine inserts the first picture into a corresponding electronic book reading page according to the inserting position information, and when a user reads the electronic book reading page, the specific display effect is as follows: the upper part area and the lower part area of the reading page of the electronic book show the characters of the book, and the middle part is a first picture.
In step S204, the touch event response mechanism of the typesetting engine for the first picture is disabled.
In the electronic book reading page with mixed images and texts, the typesetting engine can endow the first picture with some touch event response mechanisms, for example, clicking the first picture to carry out full-screen amplification display. The purpose of this embodiment is to insert a video, so that a user can view the video, but the user does not know that a picture is actually inserted in an e-book reading page instead of a view object, and the user clicks an instruction response area corresponding to a play key in a first picture to play the video instead of displaying the picture in a full screen, so that after the first picture is inserted into a corresponding e-book reading page, a touch event response mechanism of a typesetting engine for the first picture needs to be disabled, so that after a touch event is generated for the first picture, the user does not respond according to the touch event response mechanism of the first picture, for example, the first picture is not displayed in a full screen amplification manner.
In step S205, a first instruction generated on the first picture is monitored.
In the process of reading the e-book reading page, a user may have a requirement of viewing the video, so after the first picture is inserted into the corresponding e-book reading page, the triggering operation of the user on the first picture needs to be monitored in real time, that is, the first instruction generated on the first picture is monitored.
In step S206, the coordinates of the touch point of the first command are obtained.
After the first instruction generated on the first picture is monitored, the touch point coordinate of the first instruction is obtained, for example, the touch position when the user's finger touches the first picture can be determined, and the coordinate information of the touch position is determined as the touch point coordinate of the first instruction.
Step S207, judging whether the coordinates of the touch point fall into at least one instruction response area, if yes, executing step S208; if not, the process goes to step S205.
In the actual reading process, the user may happen to click the first picture to generate the first instruction due to the page turning requirement or the text sliding, and in general, the clicking operation is an optional operation, and the triggered area is not the instruction response area of the first picture, so that whether the first image is the first image or not can be accurately identified
Whether the coordinates of the touch point fall into at least one instruction response area or not needs to be judged, if the coordinates of the touch point fall into the at least one instruction response area, the fact that the user wants to control the video can be determined; if the coordinates of the touch point do not fall into at least one command response area, it may be determined that the user is currently operating by mistake, and step S205 may be skipped.
Step S208, the first instruction is transmitted to the view object corresponding to the first picture.
Under the condition that the coordinates of the touch point fall into at least one instruction response area, the fact that the user wants to control the video can be determined, the first instruction is transmitted to a view object corresponding to the first picture, and the view object responds to the first instruction.
Step S209, creating a layer above the e-book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
In order to make the user feel that the video is directly played in the e-book reading page, the immersion of the user is further improved, in this embodiment, a layer is created on the e-book reading page, and the size of the layer is the same as that of the e-book reading page. And then displaying the view object in the image layer according to the insertion position information and the size information of the view object, wherein the size information of the first picture is the same as the size information of the view object, and performing transparent processing on the area except the view object in the image layer, namely, the area except the view object in the image layer is a transparent area, and performing transparent processing on the area except the view object in the image layer can realize that the image layer does not generate any shielding on the original book content in the electronic book reading page, so that the video can be directly played in the electronic book reading page from the perspective of a user.
Step S210, monitor the second instruction produced on the layer, transmit the second instruction to the reading page of the electronic book.
The user may also have some other conventional reading operation requirements during the process of reading the e-book, such as a page turning operation, a labeling operation, a text selecting operation, or a menu setting operation, where the setting in step S209 makes the user feel that the video is played in the e-book reading page, so that the user' S operation is performed directly on the image layer, and in order to ensure that the user can normally use other conventional reading operations for the e-book reading page, an operation instruction for the e-book reading page must also be transmitted to the e-book reading page, so that a triggering operation performed on the image layer by the user needs to be monitored, that is, a second instruction generated on the image layer is monitored, where the second instruction includes one or more of the following instructions: the method comprises the steps of page turning instructions, marking instructions, selecting instructions and menu calling instructions, and transmitting monitored second instructions to the reading pages of the electronic book. From the user's perspective, the user always considers playing video in the e-book reading page and triggering various operations.
In an alternative embodiment of the present invention, for the page turning instruction, the processing procedure is different from the labeling instruction, the selecting instruction or the menu call instruction, specifically, the following method may be adopted for processing: 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.
The user always considers that the video is played in the e-book reading page and triggers various operations, so that after the page turning instruction generated on the layer is monitored, the layer is required to be closed, the page turning instruction is transmitted to the e-book reading page for response, and corresponding page turning operation is executed.
For the labeling instruction, the selected instruction or the menu call instruction, the specific processing procedure is similar, the labeling instruction is taken as an example for description, the user triggers the labeling instruction by executing long-press operation in the area except the view object area in the image layer, the image layer transmits the labeling instruction to the electronic book reading page, the electronic book reading page responds to the instruction according to the existing mechanism, the labeling initial position is determined according to the coordinate position information of the touch position carried by the labeling instruction, and the labeling mark is displayed according to the carried long-time information.
Step S209-step S210 in this embodiment are optional steps, and in an optional implementation, after the first instruction is transferred to the view object corresponding to the first picture, a page jump may be performed, and the view object is displayed in the page after the jump.
Step S211, when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture.
The view object is used for playing video resources, the content of the video resources can be changed in the playing process, in order to truly restore the dynamic process of viewing the video by a user, when the closing operation of the view object is monitored, screenshot processing is carried out on the current view object again to obtain a second picture, at least one instruction response area of the second picture is set, wherein the mode of setting the at least one instruction response area of the second picture is similar to the mode of setting the at least one instruction response area of the first picture, and the details are omitted.
Step S212, establishing the association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture.
After setting at least one instruction response area of the second picture according to step S211, an association relationship between the view object and the second picture is established, so that after the first instruction is generated on the second picture, it can be determined to which view object the generated first instruction is transmitted, and at the same time, the association relationship between the view object and the first picture needs to be released.
In step S213, after closing the view object, the e-book reading page is refreshed to update the first picture to the second picture.
In step S212, the association relationship between the view object and the second picture is re-established, and the association relationship between the view object and the first picture is released, so that after the view object is closed, the e-book reading page is refreshed to update the first picture to the second picture, and from the perspective of the user, when the user returns to the e-book reading page, the specific display effect is as follows: the upper part area and the lower part area of the reading page of the electronic book show the characters of the book, and the middle part is a second picture.
For example, the first picture inserted into the e-book reading page is a picture obtained by performing screenshot processing on a first frame image of the video; when the user watches the video to half, the view object is closed, at the moment, the image of the current frame can be intercepted again to obtain a second picture, and besides the content of the image, the positions of the partial instruction response areas are different from the first picture.
Step S211-step S213 in this embodiment are optional steps, and in an optional implementation, after closing the view object back to the e-book reading page, the first picture may still be displayed in the e-book reading page.
The processing mode of the embodiment of the invention has wide application significance, for example, related videos of books are inserted into the electronic books, so that different reading experiences are provided for users, the user experience can be improved, and a novel popularization mode is provided and the popularization effect can be improved if popularization videos are inserted into the electronic books. Of course, the present invention is not limited in application scenario.
According to the method for inserting the view object in the electronic book reading page, the view object is created, the screenshot picture of the view object is inserted into the electronic book reading page by utilizing the typesetting engine according to the position of the view object, when clicking operation is generated on the screenshot picture, a corresponding instruction is downwards transmitted to the view object corresponding to the screenshot picture, and the corresponding function of the view object is executed, so that the limitation of the bottom layer of the typesetting engine is bypassed, the view object is inserted into the electronic book reading page, and further video calling is achieved. By transparentizing other areas except the view objects in the image layer, the immersion of the user is further improved, so that the user always considers that the video is played in the e-book reading page and various operations are triggered. After closing the view object, replacing the original first picture by using the second picture obtained by capturing the current view object, thereby truly restoring the scene of playing the video in the reading page of the electronic book.
The embodiment of the invention also provides a nonvolatile computer storage medium, and the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method for inserting the view object in the electronic book reading page in any method embodiment.
The executable instructions may be particularly useful for causing a processor to:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
monitoring a first instruction generated in at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
In an alternative embodiment, the executable instructions further cause the processor to:
after the first picture is obtained, an association relationship between the first picture and the view object is established.
In an alternative embodiment, the executable instructions further cause the processor to:
and setting at least one instruction response area of the first picture according to the position of at least one interaction component in the view object.
In an alternative embodiment, the executable instructions further cause the processor to:
transmitting the first picture and the inserting position information to a typesetting engine, and inserting the first picture into a corresponding electronic book reading page by the typesetting engine according to the inserting position information;
And disabling a touch event response mechanism of the typesetting engine for the first picture.
In an alternative embodiment, the executable instructions further cause the processor to:
monitoring a first instruction generated on a first picture;
acquiring touch point coordinates of a first instruction, and judging whether the touch point coordinates fall into at least one instruction response area;
if yes, the first instruction is transmitted to the view object corresponding to the first picture.
In an alternative embodiment, the executable instructions further cause the processor to:
after a first instruction generated by at least one instruction response area of the first picture is monitored, page skip is executed, and a view object is displayed in the page after skip.
In an alternative embodiment, the executable instructions further cause the processor to:
after a first instruction generated by at least one instruction response area of the first picture is monitored, creating a layer above the electronic book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
In an alternative embodiment, the executable instructions further cause the processor to:
And monitoring a second instruction generated on the layer, and transmitting the second instruction to the e-book reading page.
In an alternative embodiment, the second instruction comprises one or more of the following instructions: page turning instructions, marking instructions, selecting instructions and menu calling instructions.
In an alternative embodiment, 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 response.
In an alternative embodiment, the executable instructions further cause the processor to:
when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture;
establishing an association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture;
after closing the view object, refreshing the e-book reading page to update the first picture to the second picture.
FIG. 3 illustrates a schematic diagram of a computing device, according to one embodiment of the invention, the particular embodiment of the invention not being limited to a particular implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor) 302, a communication interface (Communications Interface) 304, a memory (memory) 306, and a communication bus 308.
Wherein: processor 302, communication interface 304, and memory 306 perform communication with each other via communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the embodiment of the method for inserting a view object in a reading page of an electronic book.
In particular, program 310 may include program code including computer-operating instructions.
The processor 302 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 306 for storing programs 310. Memory 306 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 310 may be specifically operable to cause processor 302 to:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
monitoring a first instruction generated in at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
In an alternative embodiment, program 310 further causes processor 302 to: after the first picture is obtained, an association relationship between the first picture and the view object is established.
In an alternative embodiment, program 310 further causes processor 302 to:
and setting at least one instruction response area of the first picture according to the position of at least one interaction component in the view object.
In an alternative embodiment, program 310 further causes processor 302 to:
transmitting the first picture and the inserting position information to a typesetting engine, and inserting the first picture into a corresponding electronic book reading page by the typesetting engine according to the inserting position information;
And disabling a touch event response mechanism of the typesetting engine for the first picture.
In an alternative embodiment, program 310 further causes processor 302 to:
monitoring a first instruction generated on a first picture;
acquiring touch point coordinates of a first instruction, and judging whether the touch point coordinates fall into at least one instruction response area;
if yes, the first instruction is transmitted to the view object corresponding to the first picture.
In an alternative embodiment, program 310 further causes processor 302 to:
after a first instruction generated by at least one instruction response area of the first picture is monitored, page skip is executed, and a view object is displayed in the page after skip.
In an alternative embodiment, program 310 further causes processor 302 to:
after a first instruction generated by at least one instruction response area of the first picture is monitored, creating a layer above the electronic book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
In an alternative embodiment, program 310 further causes processor 302 to:
And monitoring a second instruction generated on the layer, and transmitting the second instruction to the e-book reading page.
In an alternative embodiment, the second instruction comprises one or more of the following instructions: page turning instructions, marking instructions, selecting instructions and menu calling instructions.
In an alternative embodiment, program 310 further causes processor 302 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 embodiment, program 310 further causes processor 302 to:
when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture;
establishing an association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture;
after closing the view object, refreshing the e-book reading page to update the first picture to the second picture.
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 a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood 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 above 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 disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention 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 apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units 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 but not others included in other embodiments, 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 can be used in any combination.
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 some or all of the functionality of some or all of the components according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided 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 use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (33)

1. An insertion method of a view object in an electronic book reading page, comprising:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture; wherein, the view object is a video player for playing video resources;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
and monitoring a first instruction generated by at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
2. The method of claim 1, wherein after the first picture is obtained, the method further comprises: and establishing an association relationship between the first picture and the view object.
3. The method of claim 1 or 2, wherein the setting at least one instruction response area of the first picture further comprises:
and setting at least one instruction response area of the first picture according to the position of at least one interaction component in the view object.
4. The method of any of claims 1-2, wherein the inserting the first picture into a corresponding e-book reading page according to the insertion location information of the view object further comprises:
Transmitting the first picture and the inserting position information to a typesetting engine, and inserting the first picture into a corresponding electronic book reading page by the typesetting engine according to the inserting position information;
and disabling a touch event response mechanism of the typesetting engine for the first picture.
5. The method of any of claims 1-2, wherein the listening for a first instruction generated by at least one instruction response area of the first picture, the passing the first instruction to a view object corresponding to the first picture further comprises:
monitoring a first instruction generated on the first picture;
acquiring touch point coordinates of the first instruction, and judging whether the touch point coordinates fall into the at least one instruction response area;
if yes, the first instruction is transmitted to the view object corresponding to the first picture.
6. The method of any of claims 1-2, wherein after hearing a first instruction generated by at least one instruction response region of the first picture, the method further comprises:
and executing page skip, and displaying the view object in the page after skip.
7. The method of any of claims 1-2, wherein after hearing a first instruction generated by at least one instruction response region of the first picture, the method further comprises:
Creating a layer above the e-book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
8. The method of claim 7, wherein the method further comprises:
and monitoring a second instruction generated on the layer, and transmitting the second instruction to the electronic book reading page.
9. The method of claim 8, wherein the second instruction comprises one or more of the following instructions: page turning instructions, marking instructions, selecting instructions and menu calling instructions.
10. The method of claim 8, wherein the listening for a second instruction generated on the layer, the passing the second instruction through to the ebook 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 electronic book reading page for response.
11. The method of any of claims 1-2, wherein the method further comprises:
when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture;
Establishing an association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture;
and after the view object is closed, refreshing the electronic book reading page to update the first picture to the second picture.
12. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to hold at least one executable instruction that causes the processor to:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture; wherein, the view object is a video player for playing video resources;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
and monitoring a first instruction generated by at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
13. The computing device of claim 12, wherein the executable instructions further cause the processor to: and after the first picture is obtained, establishing an association relationship between the first picture and the view object.
14. The computing device of claim 12 or 13, wherein the executable instructions further cause the processor to:
and setting at least one instruction response area of the first picture according to the position of at least one interaction component in the view object.
15. The computing device of any of claims 12-13, wherein the executable instructions further cause the processor to:
transmitting the first picture and the inserting position information to a typesetting engine, and inserting the first picture into a corresponding electronic book reading page by the typesetting engine according to the inserting position information;
and disabling a touch event response mechanism of the typesetting engine for the first picture.
16. The computing device of any of claims 12-13, wherein the executable instructions further cause the processor to:
Monitoring a first instruction generated on the first picture;
acquiring touch point coordinates of the first instruction, and judging whether the touch point coordinates fall into the at least one instruction response area;
if yes, the first instruction is transmitted to the view object corresponding to the first picture.
17. The computing device of any of claims 12-13, wherein the executable instructions further cause the processor to:
and after the first instruction generated by at least one instruction response area of the first picture is monitored, executing page skip, and displaying the view object in the page after skip.
18. The computing device of any of claims 12-13, wherein the executable instructions further cause the processor to:
after a first instruction generated in at least one instruction response area of the first picture is monitored, creating a layer above the electronic book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
19. The computing device of claim 18, wherein the executable instructions further cause the processor to:
And monitoring a second instruction generated on the layer, and transmitting the second instruction to the electronic book reading page.
20. The computing device of claim 19, wherein the second instructions comprise one or more of the following instructions: page turning instructions, marking instructions, selecting instructions and menu calling instructions.
21. The computing device of claim 19, wherein 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 electronic book reading page for response.
22. The computing device of any of claims 12-13, wherein the executable instructions further cause the processor to:
when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture;
establishing an association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture;
and after the view object is closed, refreshing the electronic book reading page to update the first picture to the second picture.
23. A computer storage medium having stored therein at least one executable instruction that causes a processor to:
creating a view object, performing screenshot processing on the view object to obtain a first picture, and setting at least one instruction response area of the first picture; wherein, the view object is a video player for playing video resources;
according to the insertion position information of the view object, inserting the first picture into a corresponding electronic book reading page;
and monitoring a first instruction generated by at least one instruction response area of the first picture, and transmitting the first instruction to a view object corresponding to the first picture.
24. The computer storage medium of claim 23, wherein the executable instructions further cause the processor to:
and after the first picture is obtained, establishing an association relationship between the first picture and the view object.
25. The computer storage medium of claim 23 or 24, wherein the executable instructions further cause the processor to:
and setting at least one instruction response area of the first picture according to the position of at least one interaction component in the view object.
26. The computer storage medium of any one of claims 23-24, wherein the executable instructions further cause the processor to:
transmitting the first picture and the inserting position information to a typesetting engine, and inserting the first picture into a corresponding electronic book reading page by the typesetting engine according to the inserting position information;
and disabling a touch event response mechanism of the typesetting engine for the first picture.
27. The computer storage medium of any one of claims 23-24, wherein the executable instructions further cause the processor to:
monitoring a first instruction generated on the first picture;
acquiring touch point coordinates of the first instruction, and judging whether the touch point coordinates fall into the at least one instruction response area;
if yes, the first instruction is transmitted to the view object corresponding to the first picture.
28. The computer storage medium of any one of claims 23-24, wherein the executable instructions further cause the processor to:
and after the first instruction generated by at least one instruction response area of the first picture is monitored, executing page skip, and displaying the view object in the page after skip.
29. The computer storage medium of any one of claims 23-24, wherein the executable instructions further cause the processor to:
after a first instruction generated in at least one instruction response area of the first picture is monitored, creating a layer above the electronic book reading page, and displaying the view object in the layer according to the insertion position information and the size information of the view object; wherein the areas of the layer other than the view objects are transparent areas.
30. The computer storage medium of claim 29, wherein the executable instructions further cause the processor to:
and monitoring a second instruction generated on the layer, and transmitting the second instruction to the electronic book reading page.
31. The computer storage medium of claim 30, wherein the second instructions comprise one or more of the following instructions: page turning instructions, marking instructions, selecting instructions and menu calling instructions.
32. The computer storage medium of claim 30, wherein 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 electronic book reading page for response.
33. The computer storage medium of any one of claims 23-24, wherein the executable instructions further cause the processor to:
when the closing operation of the view object is monitored, performing screenshot processing on the current view object to obtain a second picture, and setting at least one instruction response area of the second picture;
establishing an association relationship between the view object and the second picture, and releasing the association relationship between the view object and the first picture;
and after the view object is closed, refreshing the electronic book reading page to update the first picture to the second picture.
CN202010386958.4A 2020-05-09 2020-05-09 Method for inserting view objects in electronic book reading page and computing device Active CN111611038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010386958.4A CN111611038B (en) 2020-05-09 2020-05-09 Method for inserting view objects in electronic book reading page and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010386958.4A CN111611038B (en) 2020-05-09 2020-05-09 Method for inserting view objects in electronic book reading page and computing device

Publications (2)

Publication Number Publication Date
CN111611038A CN111611038A (en) 2020-09-01
CN111611038B true CN111611038B (en) 2023-06-30

Family

ID=72201955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010386958.4A Active CN111611038B (en) 2020-05-09 2020-05-09 Method for inserting view objects in electronic book reading page and computing device

Country Status (1)

Country Link
CN (1) CN111611038B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493734B1 (en) * 1999-10-15 2002-12-10 Softbook Press, Inc. System and method to efficiently generate and switch page display views on a portable electronic book
WO2012165847A2 (en) * 2011-05-30 2012-12-06 주식회사 내일이비즈 Device for processing user annotations, and system and method for electronic book service therefor
CN103426132A (en) * 2012-05-21 2013-12-04 三星电子株式会社 Method, apparatus and system for interactive class support and education management
CN103593118A (en) * 2013-11-29 2014-02-19 重庆市科学技术研究院 Irregular figure bookmark adding method and system based on Android platform reader
CN109189879A (en) * 2018-09-14 2019-01-11 腾讯科技(深圳)有限公司 E-book display methods and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9665258B2 (en) * 2010-02-05 2017-05-30 Smart Technologies Ulc Interactive input system displaying an e-book graphic object and method of manipulating a e-book graphic object
US20140173441A1 (en) * 2012-12-19 2014-06-19 Hcl Technologies Limited Method and system for inserting immersive contents into eBook
US10310715B2 (en) * 2016-04-13 2019-06-04 Google Llc Transition controlled e-book animations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493734B1 (en) * 1999-10-15 2002-12-10 Softbook Press, Inc. System and method to efficiently generate and switch page display views on a portable electronic book
WO2012165847A2 (en) * 2011-05-30 2012-12-06 주식회사 내일이비즈 Device for processing user annotations, and system and method for electronic book service therefor
CN103426132A (en) * 2012-05-21 2013-12-04 三星电子株式会社 Method, apparatus and system for interactive class support and education management
CN103593118A (en) * 2013-11-29 2014-02-19 重庆市科学技术研究院 Irregular figure bookmark adding method and system based on Android platform reader
CN109189879A (en) * 2018-09-14 2019-01-11 腾讯科技(深圳)有限公司 E-book display methods and device

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
Stepped-line Text Layout with Phrased Segmentation for Readability Improvement of Japanese Electronic Text;Jumpei Kobayashi;《 2015 IEEE International Symposium on Multimedia (ISM)》;553-558 *
Tailoring absorption spectrum by inserting an epsilon-near-zero film into metal-dielectric-metal assembly;HuaiqingLiu;《Solid State Communications》;第289卷;17-21 *
一种基于 Android 平台的定制化 PDF 阅读器;刘志威;《计算机与现代化》(第262期);72-75 *
基于 Android系统的电子书阅读器的设计与实现;修玉娇;《甘肃高师学报》;第21卷(第9期);12-14 *
基于Readium的Android电子教材阅读系统的设计与开发;罗航;《中国优秀硕士学位论文全文数据库》(第02期);H127-240 *
基于学生课程信息的个性化图书馆网站设计;李情;《农业图书情报学刊》;第28卷(第9期);127-130 *

Also Published As

Publication number Publication date
CN111611038A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
US11500513B2 (en) Method for icon display, terminal, and storage medium
US11218739B2 (en) Live video broadcast method, live broadcast device and storage medium
CN113590995B (en) Page display method, device and storage medium
CN106873871B (en) Page screenshot method and apparatus
CN108279966B (en) Webpage screenshot method, device, terminal and storage medium
US9111007B2 (en) Adaptive rendering of a webpage on an electronic display device
CN111611037B (en) View object processing method for electronic book, electronic device and storage medium
CN109154943A (en) Conversion based on server of the automatic broadcasting content to click play content
US10803236B2 (en) Information processing to generate screen based on acquired editing information
CN105528132B (en) Text Entry display methods and device applied to browser
US20170091152A1 (en) Generating grid layouts with mutable columns
CN111432264A (en) Content display method, device and equipment based on media information stream and storage medium
CN111708959A (en) Page display method and device, storage medium and electronic equipment
WO2019047187A1 (en) Navigation bar control method and device
CN106155654B (en) Method and device for shielding webpage operation and electronic equipment
CN114356479B (en) Page rendering method and device
CN111913614B (en) Multi-picture display control method and device, storage medium and display
CN112015309B (en) Display switching method and device and mobile terminal
CN111611038B (en) Method for inserting view objects in electronic book reading page and computing device
CN108415746B (en) Application interface display method and device, storage medium and electronic equipment
CN114895815A (en) Data processing method and electronic equipment
Kyrnin Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours
CN107977451B (en) Method and device for adding dynamic content in display page and terminal equipment
CN111949339B (en) Method, apparatus, device and computer readable storage medium for displaying information
JP2020173763A (en) Content providing system and program

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