CN116755595B - Method for dynamically turning page based on distance between passing content and page frame - Google Patents

Method for dynamically turning page based on distance between passing content and page frame Download PDF

Info

Publication number
CN116755595B
CN116755595B CN202311011663.9A CN202311011663A CN116755595B CN 116755595 B CN116755595 B CN 116755595B CN 202311011663 A CN202311011663 A CN 202311011663A CN 116755595 B CN116755595 B CN 116755595B
Authority
CN
China
Prior art keywords
page
turning
page turning
area
content
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
CN202311011663.9A
Other languages
Chinese (zh)
Other versions
CN116755595A (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.)
Jiangsu Zhongwei Technology Software System Co ltd
Original Assignee
Jiangsu Zhongwei Technology Software System 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 Jiangsu Zhongwei Technology Software System Co ltd filed Critical Jiangsu Zhongwei Technology Software System Co ltd
Priority to CN202311011663.9A priority Critical patent/CN116755595B/en
Publication of CN116755595A publication Critical patent/CN116755595A/en
Application granted granted Critical
Publication of CN116755595B publication Critical patent/CN116755595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Abstract

The invention discloses a method for dynamically turning pages based on the distance between a passing content and a page frame, which comprises the following steps: setting a page turning type, wherein the page turning type comprises single page turning and multi-page spread page turning; based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring a page boundary and a content area of the reading page; defining different initial page turning amplitudes of a page turning page based on the distance between the page boundary of the reading page and the boundary of the content area; dividing areas on an electronic file page; a page turning command is sent to the current display page, and a page turning corner area of the page turning page is obtained according to the divided area; different page turning effect types are defined based on the initial page turning amplitude, the page turning number and the page turning corner area, and page turning is performed.

Description

Method for dynamically turning page based on distance between passing content and page frame
Technical Field
The invention relates to the technical field of graphic display, in particular to a method for dynamically turning a page based on the distance between a passing content and a page frame.
Background
With the popularization and development of portable electronic products, more and more electronic books are widely used instead of traditional paper readers, such as electronic books and electronic books, and in the prior art, when the page turning effect is simulated, the electronic books are usually turned according to the boundary and the page turning point of the electronic book, but the page cannot be dynamically turned according to the next page content, and the realized page turning effect is less, so that a user cannot have better simulation experience degree when using the electronic books.
Disclosure of Invention
The present invention is directed to a method for dynamically selecting an effect based on a distance between a passing content and a page frame, so as to solve the above-mentioned problems in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method for dynamically turning a page based on a distance between a passing content and a page frame, comprising the steps of:
setting a page turning type, wherein the page turning type comprises single page-by-page turning and multi-page spread page turning;
based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring a page boundary and a content area of the reading page;
based on the distance between the page boundary of the reading page and the boundary of the content area, different initial page turning amplitudes of the page turning page are defined, and the specific process of defining the page turning amplitudes is as follows: when turning to the reading page, acquiring and analyzing the content of the reading page, calculating the distance between the boundary of the content area of the reading page and the page frame, and according to the distance/w,/>The ratio of y/h, and different page turning lengths are selected based on the x axis and the y axis; said->For the offset distance of the content area from the x-axis direction of the page frame, theThe offset distance between the content area and the y-axis direction of the page frame is the length of the electronic file page, and the h is the width of the electronic file page;
dividing areas on an electronic file page;
a page turning command is sent to the current display page, and a page turning corner area of the page turning page is obtained according to the divided area;
and defining different page turning effect types based on the initial page turning amplitude, the page turning number and page turning corner areas, and turning pages.
Preferably, the reading pages of the current display page are the front N pages and the rear N pages of the current display page of the electronic file, and the front N pages and the rear N pages of the current display page of the electronic file are loaded and stored in the memory of the reader; the single page-by-page turning is that the current display page turns forward page or the next page by page; the multi-page spread page turning is that a plurality of pages including the current display page are turned at the same time; the page boundary of the reading page is the length of the whole page of the electronic file and the width of the whole page; the content of the reading page is all the content which can be displayed on the file bottom plate of the reading page, and the content comprises characters, multimedia, tables, graphics and symbols; and the boundary of the content area of the reading page is a closed area which surrounds and forms any graph by taking the maximum and minimum points of the abscissa or the ordinate in the content as boundaries, and the page number of the page turning page comprises a single page and a plurality of pages.
Preferably, the dividing method of the page area of the electronic file is that the current display page and the reading page of the electronic file are equally divided into 6 parts, namely a first area, a second area, a third area, a fourth area, a fifth area and a sixth area, wherein the first area, the third area and the fifth area are set to turn to a front page of the current display page, and the second area, the fourth area and the sixth area are set to turn to a back page of the current display page.
Preferably, the page turning instruction comprises sliding and clicking on the current page of the electronic file; the page turning corner region comprises an upper left corner page turning, an upper right corner page turning, a lower left corner page turning, a lower right corner page turning and an upper and lower boundary synchronous page turning, wherein the upper and lower boundary synchronous page turning is that the upper and lower boundary is horizontally moved along the x-axis direction according to a certain displacement proportion.
Preferably, the setting method of the page turning corner area further comprises selecting different binding points on the current display page based on different binding modes, and turning page frames deviated from the binding points according to the positions of the binding points.
Preferably, the method for defining the page turning effect type comprises the following steps:
if the page is turned to the back, when the second area is triggered, respectively calculating the space between two sides of the upper right corner of the content area and the parallel page framesThe distance is,/>y, defining a threshold value r1 and r2 by user, wherein the default value of r1 is 0.2, and the default value of r2 is 0.4;
when (when)/w<r1, ->y/h<When r1, taking the upper right corner of the current display page as a page turning point, setting the initial page turning amplitude to be x/y=1, wherein x is the lateral displacement length of the upper right corner of the current display page parallel to the x axis, and y is the lateral displacement length of the upper right corner of the current display page parallel to the y axis;
when (when)/w<r1, ->y/h>r1, the upper right corner of the current display page is taken as a page turning point, and the initial page turning amplitude is set to x/y=0.5;
when (when)/w>r1, ->y/h<r1, the upper right corner of the current display page is taken as a page turning point, and the initial page turning amplitude is set to x/y=2;
when (when)/w>r1, ->y/h>r1, the upper right corner of the current display page is taken as a page turning point, and the initial page turning amplitude is set to x/y=1;
if the page is turned to the back, when the fourth area is triggered, calculating the distance between the coordinates of the right lower corner of the content area and the parallel page frame, namely,/>y,
When (when)y/h>r2, synchronously turning the upper and lower frames of the current display page, wherein the moving distance proportion range of the upper and lower frames is set to be 1/2-3/2, and the upper and lower frames move along the x-axis direction;
when (when)y/h<r2 is based on->y/h<r1 or r1</>y/h<r2, selecting page turning amplitude according to the method, and turning pages;
if the page is turned to the back, when the sixth area is triggered, the distance between the two sides of the right lower corner of the content area and the parallel page frame is calculated respectively to be,/>y,
When (when)/w<r1, ->y/h<r1, taking the lower right corner of the current display page as a page turning point, setting the initial page turning amplitude to x/y=1, wherein x is the lower right corner of the current display pageThe side displacement length of the angle parallel to the x axis is the side displacement length of the right lower angle of the current display page parallel to the y axis;
when (when)/w>r1, ->y/h<r1, taking the lower right corner of the current display page as a page turning point, wherein the initial page turning amplitude is x/y=2;
when (when)/w<r1, ->y/h>r1, taking the lower right corner of the current display page as a page turning point, wherein the initial page turning amplitude is x/y=1/2;
if the previous page of the current display page is turned, the page turning effect and the page turning effect of the next page form symmetrical page turning effects;
if the back N pages/the front N pages are turned, the initial page turning amplitude is selected according to the steps, and the page turning corner area is selected for page turning.
Preferably, the page turning effect further comprises setting the page turning as A, B and C respectively, namely, the area A is the content of the current display page, the area B is the folded part, the area C is the content of the read page, the area B and the area C are the curves connected between the moving points at the two sides of the page turning corner, the curves are displaced, the curves after displacement, the initial curves and the boundary of the electronic file page form shadow surfaces, setting the shadow transparent effect, setting the page turning effect on the boundary of the page turning corner of the area B when the multi-page spread page turning is carried out, the page turning effect comprises the boundary line rendering of the page turning corner, the shadow is thickened, the area B displays the projection content of the last page of the reading page, when the number of pages of a plurality of pages is less than or equal to N, the boundary of the page turning corner of the area B displays a clear page boundary line, when the number of pages of a plurality of pages is more than N, the boundary of the page turning corner of the area B carries out the whole shadow display, the content of the current display page can be projected to the B surface in the page turning process, the projected content is rendered, and the rendering effect is all the effects which appear in the real physical scene, including blurring, if the shadow appears, progressive display, pen breakage, illumination, plaque, convex-concave and shadow of the projection content.
Preferably, in the page turning process, based on the setting of the initial page turning amplitude, the page turning is switched along with the displacement of the gesture to perform the displacement of the page turning boundary, the complete page turning effect is performed along with the gesture, and the surfaces A, B and C are continuously refreshed in the page turning process, so that the complete page turning is realized.
Preferably, the page turning effect method is suitable for electronic files displayed in vertical version and electronic files displayed in horizontal version.
Compared with the prior art, the invention has the beneficial effects that:
(1) Based on different contents of the reading page, different initial page turning amplitudes are determined according to the distance between the contents of the reading page and the page frame, and diversified page turning effects are provided;
(2) The invention simulates not only the next page turning, but also page crossing and page turning, and multi-page turning;
(3) The invention provides different binding methods for page turning, can simulate different binding methods for page turning, can experience different page turning modes, and greatly improves the experience;
(4) According to the invention, the experience of reading the traditional paper file by human is simulated from multiple angles, so that the reading of the electronic file is more similar to the paper file, and the reading experience of the electronic file is greatly improved.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a diagram showing the division of the currently displayed page area in some embodiments of the invention;
FIG. 3 is a diagram showing the effect of turning the page at the upper right corner with an initial page turning width of 1/1 according to some embodiments of the present invention;
FIG. 4 is a diagram showing the effect of turning the page at the upper right corner with an initial page turning amplitude of 2/1 according to some embodiments of the present invention;
FIG. 5 is a diagram of a page turning effect with an initial page turning amplitude of 1/2 for an upper right corner page turning in some embodiments of the present invention;
FIG. 6 is a diagram of a page turning effect with an initial page turning amplitude of 1/1 for a lower right corner page turning in some embodiments of the present invention;
FIG. 7 is a diagram showing the effect of turning a page at the lower right corner with an initial page turning amplitude of 2/1 in some embodiments of the present invention;
FIG. 8 is a diagram of a page turning effect with an initial page turning amplitude of 2/1 for a lower right corner page turning in some embodiments of the present invention;
FIG. 9 is a diagram showing a page turning effect of initial synchronous movement of upper and lower boundaries of a currently displayed page according to some embodiments of the present invention;
fig. 10 is an effect diagram of performing multi-page spread page turning on a currently displayed page according to some embodiments of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, the invention provides a method for dynamically turning a page based on a distance between a passing content and a page frame, which comprises the following steps:
setting a page turning type, wherein the page turning type comprises single page-by-page turning and multi-page spread page turning;
based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring a page boundary and a content area of the reading page;
defining different initial page turning amplitudes of a page turning page based on the distance between the page boundary of the reading page and the boundary of the content area;
dividing areas on an electronic file page;
a page turning command is sent to the current display page, and a page turning corner area of the page turning page is obtained according to the divided area;
and defining different page turning effect types based on the initial page turning amplitude, the page turning number and page turning corner areas, and turning pages.
According to the invention, different initial page turning amplitudes are set according to the content of the reading page, and different page turning effects can be simulated by combining different page turning angle areas, so that the reading experience is improved.
Example two
The invention provides a method for dynamically turning a page based on the distance between a passing content and a page frame, which comprises the following steps:
setting page turning type including single page turning, multi-page crossing turning, the single page-by-page turning is that the current display page is turned forward or backward page by page; the multi-page spread page turning is that a plurality of pages including the current display page are turned at the same time;
based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring a page boundary and a content area of the reading page, wherein the page boundary of the reading page is the length of the whole page of the electronic file and the width of the whole page; the content of the reading page is all the content which can be displayed on the file bottom plate of the reading page, and the displayed content comprises characters, multimedia, tables, graphics, symbols, pictures and the like; the boundary of the content area of the reading page is a closed area which is formed by surrounding the content of the reading page with the maximum and minimum points of the abscissa or the ordinate in the content and surrounding any graph, wherein any graph can be regular or irregular, and the page can be turned only by one page or a plurality of pages together when turned;
defining different initial page turning amplitudes of a page turning page based on the distance between the page boundary of the reading page and the boundary of the content area;
dividing the current display page and the reading page of the electronic file into 6 equal parts, namely a first area, a second area, a third area, a fourth area, a fifth area and a sixth area, wherein the first area, the third area and the fifth area are respectively arranged to turn to the front page of the current display page, namely the front page of the current display page, the front N page of the current display page and the back page of the current display page, the second area and the fourth area are respectively arranged to turn to the back page of the current display page, namely the back page of the current display page and the back N page of the current display page, and the corresponding page turning areas are selected according to the page turning direction when the pages are turned;
a page turning command is sent up and down on a current display page, a page turning corner area of the page turning page is obtained according to the divided area, wherein the page turning corner area can be an upper left corner page turning, a lower left corner page turning, an upper right corner page turning and a lower right corner page turning, the upper boundary and the lower boundary are synchronous page turning, the upper boundary and the lower boundary are simultaneously moved horizontally along the x-axis direction, and the moving distance proportion range of the upper boundary and the lower boundary of the page turning page is set to be 1/2-3/2;
and defining different page turning effect types based on the initial page turning amplitude, the page turning number and page turning corner areas, and turning pages.
When the current display page is turned by a single page or a plurality of pages, the definition method of the initial page turning amplitude is that when the display page is turned, the content of the reading page is acquired and analyzed according to the following steps/w,/>The ratio of y/h, so that the page turning length is selected based on the x axis and the y axis; the page size of the whole electronic file is set to be (w, h), w is the length of the page of the electronic file, h is the width of the page of the electronic file, and according to the selected point position on the content area, the point position of the content area is selected as the point position closest to the page turning angle in the content area, and the distance between the point position of the content area of the reading page and the adjacent page frame is calculated>For the offset distance of the content area from the x-axis direction of the page frame, +.>For the offset distance of the content area from the y-axis direction of the page frame,
according to the page turning amplitude and page turning corner area, the specific process of defining different page turning effects is as follows: when the content area is enclosed by rectangle, the point coordinates of four vertexes of the content area are respectively (x, y) at the left upper corner, (x+w1, h 1) at the right upper corner, (x, y+h1) at the left lower corner, and (x+w1, y+h1) at the right lower corner, when the second area is triggered by turning the back page, the distance between the point (x+w1, h 1) at the right upper corner of the content area and the top frame and the right side frame of the electronic file page is calculated,=w-(x+w1),/>y=h1, a threshold r1, r2 is self-defined, the default value of r1 is set to be 0.2, and the default value of r2 is set to be 0.4;
when (when)/w<r1, ->y/h<r1, taking the upper right corner of the current display page as a page turning point, and setting the initial page turning amplitude to x/y=1, as shown in an effect diagram in fig. 3; x is the side displacement length of the upper right corner of the current display page parallel to the x axis, and y is the side displacement length of the upper right corner of the current display page parallel to the y axis;
when (when)/w<r1, ->y/h>r1, then the upper right corner of the currently displayed page is taken as the page turning point, and the initial page turning amplitude is set to x/y=0.5, as shown in fig. 5Fruit map;
when (when)/w>r1, ->y/h<r1, taking the upper right corner of the current display page as a page turning point, and setting the initial page turning amplitude to x/y=2, as shown in an effect diagram in fig. 4;
when (when)/w>r1, ->y/h>r1, the upper right corner of the current display page is taken as a page turning point, and the initial page turning amplitude is set to x/y=1;
if the page is turned to the back, when the fourth area is triggered, calculating the distance between the point location (x+w1, y+h1) of the right lower corner of the content area and the bottom frame of the electronic file page and the right side frame,=w-(x+w1),/>y=y+h1, x is the lateral displacement length of the lower right corner of the current display page parallel to the x axis, y is the lateral displacement length of the lower right corner of the current display page parallel to the y axis;
when (when)y/h>r2, synchronously turning the upper and lower frames of the current display page, and setting the moving distance proportion range of the upper and lower frames to be 1/2-3/2, and carrying out displacement along the x-axis direction, wherein the effect diagram is shown in FIG. 9;
when (when)y/h<r2 is based on->y/h<r1 or r1</>y/h<r2, selecting page turning amplitude according to the method, and turning pages;
if the page is turned to the back, when the sixth area is triggered, calculating the distance between the point location (x+w1, y+h1) of the right lower corner of the content area and the bottom frame and the right side frame of the electronic file page,=w-(x+w1),/>y=y+h1,
when (when)/w<r1, ->y/h<r1, taking the lower right corner of the currently displayed page as a page turning point, and setting the initial page turning amplitude to x/y=1, as shown in an effect diagram in fig. 6; x is the displacement length of the side edge of the right lower corner of the current display page, which is parallel to the x axis, and y is the displacement length which is parallel to the y axis;
when (when)/w>r1, ->y/h<r1, taking the lower right corner of the currently displayed page as a page turning point, wherein the initial page turning amplitude is x/y=2, as shown in an effect diagram in fig. 7;
when (when)/w<r1, ->y/h>r1, taking the lower right corner of the currently displayed page as a page turning point, wherein the initial page turning amplitude is x/y=1/2, as shown in an effect diagram in fig. 8;
if the page turning effect turns to the previous page of the current display page, the page turning effect and the page turning effect turn to the next page to form a symmetrical page turning effect.
When a single display page is turned, setting turning pages as A, B and C respectively, namely an area A is the content of the current display page, an area B is a folded part, an area C is the content of the reading page, an area B and an area C boundary are curves connected between points moving at two sides of a turning page corner, shifting the curves, forming a shadow surface by the curves after shifting, an initial curve and the boundary of an electronic file page, setting a shadow transparent effect, simultaneously projecting the content of the current display page to the B surface in the page turning process, rendering the projected content, and enabling the projected page to accord with the favorite transparent effect of a reader to the greatest extent through rendering, wherein the effect may be the blurring of the projected content, if the shadow is present, the gradual display, the pen break, the illumination, the plaque, the convex concave and the shadow, and all the effects which can appear in a real physical scene can be shown on the projection page; in the page turning process, based on the setting of the initial page turning amplitude, the page turning is switched along with the displacement of the gesture, namely if the initial page turning amplitude of the page turns according to a preset value when the contact is started to be positioned in the second area, the turned page shows a gradual change process when the finger slides from the second area to the fourth area along with the sliding of the finger on the page, namely when the page turning amplitude of the page exceeds 3/4 of the second area in the page turning process, the displacement of the page frame of the page turning is switched, the switching proportion is similar to the page turning effect of the finger point in the fourth area, so that the page shows a better soft gesture reading effect in the page turning switching process, better reading experience is provided, and the A, B and C faces are continuously refreshed along with the complete page turning effect, namely the complete page turning is realized.
In combination with the effect diagram shown in fig. 10, when a plurality of pages are turned, setting the initial page turning amplitude according to the content of the read page, turning the page before the read page, if the content of the previous N pages of the read page exists, turning the N pages together, and when turning, setting the boundary effect of the page turning corner of the region B, including the boundary line rendering of the page turning corner, shading and thickening, wherein the region B displays the projection content of the previous page of the read page, when the page number of the plurality of pages is less than or equal to N, the boundary of the page turning corner of the region B displays the clear page number boundary line, and when the page number of the plurality of pages is greater than N, the boundary of the page turning corner of the region B performs the whole shadow display for simulating the reading effect when the plurality of pages are read, and the invention is also suitable for electronic files displayed in a vertical mode and electronic files displayed in a horizontal mode.
The invention simulates not only the next page turning, but also the page-crossing page turning and the multi-page turning, thereby greatly improving the reading experience.
Example III
The invention provides a method for dynamically turning a page based on the distance between a passing content and a page frame, which comprises the following steps:
setting a page turning type, wherein the page turning type comprises single page turning and multi-page spread page turning;
based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring a page boundary and a content area of the reading page;
defining different initial page turning amplitudes of a page turning page based on the distance between the page boundary of the reading page and the boundary of the content area;
dividing areas on an electronic file page;
a page turning command is sent up and down on a current display page, page turning corner areas of the page turning page are obtained according to the divided areas, wherein the page turning corner areas comprise upper right corner page turning, lower right corner page turning, upper left corner page turning, lower left corner page turning, upper and lower boundary synchronous page turning, and the upper and lower boundary synchronous page turning is carried out simultaneously but according to different displacement proportions;
based on the initial page turning amplitude, the page turning number and the page turning corner area, defining different page turning effect types, and turning pages;
the setting method of the page turning corner area further comprises the steps of selecting different binding points on the current display page based on different binding modes, turning page edges deviating from the positions of the binding points according to the positions of the binding points, turning a plurality of page edges, and displaying different page turning effects.
The invention provides different binding methods for page turning, can simulate different binding methods for page turning, can experience different page turning modes, greatly improves the experience degree, simulates the experience of human reading by using the traditional paper file from multiple angles, ensures that the reading of the electronic file is more similar to the paper file, and greatly improves the reading experience degree of the electronic file.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. A method for dynamically turning a page based on a distance between a passing content and a page frame, comprising the steps of:
setting a page turning type, wherein the page turning type comprises single page-by-page turning and multi-page spread page turning;
based on the page turning type, analyzing the content of a reading page of a current display page of the electronic file, and acquiring page boundaries and content areas of the reading page, wherein the reading page of the current display page is a front N page and a rear N page of the current display page of the electronic file, and the content of the reading page is all displayable content on a file bottom plate of the reading page, including characters, multimedia, tables, figures and symbols; the boundary of the content area of the reading page is a closed area which surrounds and forms any graph by taking the maximum and minimum points of the abscissa or the ordinate in the content as boundaries;
based on the distance between the page boundary of the reading page and the boundary of the content area, different initial page turning amplitudes of the page turning page are defined, and the specific process of defining the page turning amplitudes is as follows: when turning to the reading page, acquiring and analyzing the content of the reading page, calculating the distance between the boundary of the content area of the reading page and the page frame, and selecting different page turning lengths based on an x axis and a y axis according to the ratio of delta x/w to delta y/h; the delta x is the offset distance between the content area and the x-axis direction of the page frame, the delta y is the offset distance between the content area and the y-axis direction of the page frame, the w is the length of the electronic file page, and the h is the width of the electronic file page;
dividing regions on an electronic file page, and obtaining page turning corner regions of a page turning page according to the divided regions by a page turning command on a current display page;
and defining different page turning effect types based on the initial page turning amplitude, the page turning number and page turning corner areas, and turning pages.
2. The method for dynamically turning a page based on a distance from a frame of a page through content according to claim 1, wherein: the front N pages and the rear N pages of the current display page of the electronic file are loaded and stored in the memory of the reader; the single page-by-page turning is that the current display page turns forward page or the next page by page; the multi-page spread page turning is that a plurality of pages including the current display page are turned at the same time; the page boundary of the reading page is the length of the whole page of the electronic file and the width of the whole page; the page number of the page turning page comprises a single page and a plurality of pages.
3. The method of claim 1, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: the method for dividing the page area of the electronic file comprises the steps of equally dividing the current display page and the reading page of the electronic file into 6 parts, namely a first area, a second area, a third area, a fourth area, a fifth area and a sixth area, wherein the first area, the third area and the fifth area are set to turn to the front page of the current display page, and the second area, the fourth area and the sixth area are set to turn to the back page of the current display page.
4. The method of claim 1, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: the page turning instruction comprises sliding on the current page of the electronic file and clicking; the page turning corner region comprises an upper left corner page turning, an upper right corner page turning, a lower left corner page turning, a lower right corner page turning and an upper and lower boundary synchronous page turning, wherein the upper and lower boundary synchronous page turning is that the upper and lower boundary is horizontally moved along the x-axis direction according to a certain displacement proportion.
5. The method of claim 1, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: the setting method of the page turning corner area further comprises the steps of selecting different binding points on the current display page based on different binding modes, and turning page frames deviating from the binding points according to the positions of the binding points.
6. The method of claim 1, wherein the method for defining the page turning effect type is as follows:
if the page is turned to the back, when the second area is triggered, the distances between the two sides of the right upper corner of the content area and the parallel page frames are respectively calculated to be deltax and deltay, and a threshold value r1 and r2 are defined, wherein the default value of r1 is 0.2, and the default value of r2 is 0.4;
when deltax/w is less than r1 and deltay/h is less than r1, taking the upper right corner of the current display page as a page turning point, setting the initial page turning amplitude to be x/y=1, wherein x is the side displacement length of the upper right corner of the current display page parallel to the x axis, and y is the side displacement length of the upper right corner of the current display page parallel to the y axis;
when Deltax/w < r1, deltay/h > r1, taking the upper right corner of the current display page as a page turning point, and setting the initial page turning amplitude to x/y=0.5;
when deltax/w is larger than r1, deltay/h is smaller than r1, taking the upper right corner of the current display page as a page turning point, and setting the initial page turning amplitude to x/y=2;
when deltax/w > r1 and deltay/h > r1, taking the upper right corner of the current display page as a page turning point, and setting the initial page turning amplitude to x/y=1;
if the page is turned to the back, when the fourth area is triggered, the distance between the coordinates of the right lower corner of the content area and the parallel page frame is calculated, namely deltax, deltay,
when delta y/h is larger than r2, the upper frame and the lower frame of the current display page are synchronously turned over, the moving distance proportion range of the upper frame and the lower frame is set to be 1/2-3/2, and the upper frame and the lower frame are all moved along the x-axis direction;
when delta y/h is less than r2, selecting page turning amplitude based on delta y/h is less than r1 or r1 is less than delta y/h is less than r2, and turning pages according to the method;
if the page is turned to the back, when the sixth area is triggered, the distances between the two sides of the right lower corner of the content area and the parallel page frames are respectively calculated, namely deltax and deltay,
when deltax/w is less than r1 and deltay/h is less than r1, taking the lower right corner of the current display page as a page turning point, setting the initial page turning amplitude to be x/y=1, wherein x is the lateral displacement length of the lower right corner of the current display page parallel to the x axis, and y is the lateral displacement length of the lower right corner of the current display page parallel to the y axis;
when Deltax/w is larger than r1, and Deltay/h is smaller than r1, taking the right lower corner of the current display page as a page turning point, and taking the initial page turning amplitude as x/y=2;
when Deltax/w < r1, deltay/h > r1, taking the right lower corner of the current display page as a page turning point, and taking the initial page turning amplitude as x/y=1/2;
if the previous page of the current display page is turned, the page turning effect and the page turning effect of the next page form symmetrical page turning effects;
if the back N pages/the front N pages are turned, the initial page turning amplitude is selected according to the steps, and the page turning corner area is selected for page turning.
7. The method of claim 1, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: the page turning effect also comprises the steps of setting the page turning to be A, B and C respectively, namely, the area A is the content of the current display page, the area B is the folded part, the area C is the content of the reading page, the boundary of the area B and the area C is a curve connected between the moving points at the two sides of the page turning corner, shifting the curve, forming a shadow surface by the curve after the shifting, the initial curve and the boundary of the electronic file page, setting a shadow transparent effect,
setting page turning effect on the boundary of the page turning corner of the area B when multi-page spread page turning reading is carried out, wherein the page turning effect comprises rendering of boundary lines of the page turning corner, thickening of shadow, the area B displays projection content of the last page of the reading page, when the page number of the multi-page is less than or equal to N, the boundary of the page turning corner of the area B displays clear page number boundary, when the page number of the multi-page is more than N, the boundary of the page turning corner of the area B carries out whole shadow display,
in the process of turning pages, the content of the current display page can be projected to the B surface, the projected content is rendered, and the rendering effect is all effects which appear in a real physical scene, including blurring, if-appear, progressive display, pen breakage, illumination, plaque, convex and concave and shadow of the projected content.
8. The method of claim 7, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: in the page turning process, based on the setting of the initial page turning amplitude, the page turning is switched along with the displacement of the gesture to turn the page boundary, the complete page turning effect is carried out along with the gesture, and the surfaces A, B and C are continuously refreshed in the page turning process, so that the complete page turning is realized.
9. The method of claim 1, wherein the dynamic page turning effect is based on a distance from a frame of the page through the content: the page turning effect method is suitable for electronic files displayed in a vertical mode and electronic files displayed in a horizontal mode.
CN202311011663.9A 2023-08-11 2023-08-11 Method for dynamically turning page based on distance between passing content and page frame Active CN116755595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311011663.9A CN116755595B (en) 2023-08-11 2023-08-11 Method for dynamically turning page based on distance between passing content and page frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311011663.9A CN116755595B (en) 2023-08-11 2023-08-11 Method for dynamically turning page based on distance between passing content and page frame

Publications (2)

Publication Number Publication Date
CN116755595A CN116755595A (en) 2023-09-15
CN116755595B true CN116755595B (en) 2023-10-27

Family

ID=87951689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311011663.9A Active CN116755595B (en) 2023-08-11 2023-08-11 Method for dynamically turning page based on distance between passing content and page frame

Country Status (1)

Country Link
CN (1) CN116755595B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102221980A (en) * 2011-07-29 2011-10-19 深圳芯智汇科技有限公司 Electronic book simulated flipping-over effect realization method and system
CN102272709A (en) * 2009-01-07 2011-12-07 微软公司 Virtual page turn
CN102981718A (en) * 2012-10-11 2013-03-20 北京掌中浩阅科技有限公司 Method for imitating real book page-turning effect of electronic books
CN102999283A (en) * 2011-09-08 2013-03-27 汉王科技股份有限公司 Touch screen terminal unlocking method and touch screen terminal
CN104156144A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Electronic document page-turning effect realizing method and device
CN105378622A (en) * 2013-01-31 2016-03-02 日本电气株式会社 Document browsing device, method for turning over pages of electronic document, and program
CN105955599A (en) * 2016-05-13 2016-09-21 锐达互动科技股份有限公司 Realization method for simulating document reading mode in electronic device
CN106775275A (en) * 2016-11-04 2017-05-31 咪咕数字传媒有限公司 A kind of page guided reading method and device
CN107507469A (en) * 2017-08-27 2017-12-22 广州慈华信息科技有限公司 A kind of children of double screen paint the implementation method of this electronic reading device
CN108664454A (en) * 2017-03-30 2018-10-16 掌阅科技股份有限公司 E-book page display method, device and terminal device
CN109992182A (en) * 2019-03-28 2019-07-09 掌阅科技股份有限公司 E-book batch page turning method, electronic equipment and computer storage medium
CN111860121A (en) * 2020-06-04 2020-10-30 上海翎腾智能科技有限公司 Reading ability auxiliary evaluation method and system based on AI vision
CN115016701A (en) * 2022-07-25 2022-09-06 北京字跳网络技术有限公司 Page turning method and device, computer equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102272709A (en) * 2009-01-07 2011-12-07 微软公司 Virtual page turn
CN102221980A (en) * 2011-07-29 2011-10-19 深圳芯智汇科技有限公司 Electronic book simulated flipping-over effect realization method and system
CN102999283A (en) * 2011-09-08 2013-03-27 汉王科技股份有限公司 Touch screen terminal unlocking method and touch screen terminal
CN102981718A (en) * 2012-10-11 2013-03-20 北京掌中浩阅科技有限公司 Method for imitating real book page-turning effect of electronic books
CN105378622A (en) * 2013-01-31 2016-03-02 日本电气株式会社 Document browsing device, method for turning over pages of electronic document, and program
CN104156144A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Electronic document page-turning effect realizing method and device
CN105955599A (en) * 2016-05-13 2016-09-21 锐达互动科技股份有限公司 Realization method for simulating document reading mode in electronic device
CN106775275A (en) * 2016-11-04 2017-05-31 咪咕数字传媒有限公司 A kind of page guided reading method and device
CN108664454A (en) * 2017-03-30 2018-10-16 掌阅科技股份有限公司 E-book page display method, device and terminal device
CN107507469A (en) * 2017-08-27 2017-12-22 广州慈华信息科技有限公司 A kind of children of double screen paint the implementation method of this electronic reading device
CN109992182A (en) * 2019-03-28 2019-07-09 掌阅科技股份有限公司 E-book batch page turning method, electronic equipment and computer storage medium
CN111860121A (en) * 2020-06-04 2020-10-30 上海翎腾智能科技有限公司 Reading ability auxiliary evaluation method and system based on AI vision
CN115016701A (en) * 2022-07-25 2022-09-06 北京字跳网络技术有限公司 Page turning method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN116755595A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US7577902B2 (en) Systems and methods for annotating pages of a 3D electronic document
US9760179B2 (en) Virtual page turn
US6654020B2 (en) Method of rendering motion blur image and apparatus therefor
US9348938B2 (en) Methods for manipulating web pages
EP1672474A2 (en) Systems and methods for turning pages in a three-dimensional electronic document
KR930013977A (en) System and method for dividing display screen of data processing system into distinct areas
US20010040585A1 (en) Resizing multi-dimensionally rendered graphical images
JP4748980B2 (en) System and method for annotating 3D electronic documents
WO1992020033A1 (en) Digital document magnifier
CN112558951B (en) Foldable screen webpage adaptation method, device and storage device
CN106294501A (en) web animation effect display method and device
WO2022105514A1 (en) Page turning simulation method for electronic book, and electronic device and computer storage medium
CN105930464A (en) Web rich media multi-screen adaptation method and apparatus
JP5028263B2 (en) Presentation display device, computer control method and program
CN116755595B (en) Method for dynamically turning page based on distance between passing content and page frame
JP5893142B2 (en) Image processing apparatus and image processing method
CN113827958B (en) Magma rendering method, device, equipment and storage medium
CN104346046B (en) Three-dimensional artificial page turning method and system
EP4325344A1 (en) Multi-terminal collaborative display update method and apparatus
CN112346633B (en) Input processing method, input processing device, electronic device, and storage medium
JP3579680B2 (en) Image processing apparatus and program
CN116185264A (en) Screen smooth display method, system and device supporting ultra-high magnification
Schmandt Pages without paper
Shreiner et al. An interactive introduction to opengl programming
CN116382552A (en) View display method and device, electronic equipment and storage medium

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