CN116931787B - Electronic document page turning method and device - Google Patents

Electronic document page turning method and device Download PDF

Info

Publication number
CN116931787B
CN116931787B CN202311192077.9A CN202311192077A CN116931787B CN 116931787 B CN116931787 B CN 116931787B CN 202311192077 A CN202311192077 A CN 202311192077A CN 116931787 B CN116931787 B CN 116931787B
Authority
CN
China
Prior art keywords
page number
circle
electronic document
operation position
electronic
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
CN202311192077.9A
Other languages
Chinese (zh)
Other versions
CN116931787A (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.)
Fuxin Kunpeng Beijing Information Technology Co ltd
Original Assignee
Fuxin Kunpeng Beijing Information 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 Fuxin Kunpeng Beijing Information Technology Co ltd filed Critical Fuxin Kunpeng Beijing Information Technology Co ltd
Priority to CN202311192077.9A priority Critical patent/CN116931787B/en
Publication of CN116931787A publication Critical patent/CN116931787A/en
Application granted granted Critical
Publication of CN116931787B publication Critical patent/CN116931787B/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
    • 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/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for turning pages of an electronic document, and relates to the technical field of electronic document processing, wherein the method comprises the following steps: displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas; when detecting a selection operation of a user on an electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on a coordinate system; determining a first angle of a connection line of the first operation position and the dot of the first circle on the first circle according to the first coordinate; determining a first target page number corresponding to a first operation position according to the first angle and the page number of the electronic document; and turning the electronic document to a page corresponding to the first target page number. The invention can improve the page turning precision and the page turning efficiency.

Description

Electronic document page turning method and device
Technical Field
The present invention relates to the field of electronic document processing technologies, and in particular, to a method and an apparatus for turning pages of an electronic document.
Background
In the prior art, when a user turns pages of an electronic document, the user may implement a page turning operation by operating a page turning button on a touch screen, or by sliding a gesture or finger touch on the touch screen.
In the prior art, in order to realize page turning of an electronic document, a user is often required to input page numbers, scroll or drag a slider page by page, and the operations consume a great deal of time and energy, so that the page turning accuracy is poor and the page turning efficiency is low.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a method and a device for turning pages of an electronic document.
The invention provides a page turning method of an electronic document, which comprises the following steps:
displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
when detecting a selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system;
determining a first angle on the first circle of a connecting line of the first operation position and the dot of the first circle according to the first coordinate;
determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
and turning the electronic document to a page corresponding to the first target page number.
According to the electronic document page turning method provided by the invention, the method further comprises the following steps:
creating and starting a second circle on the electronic canvas under the condition that the number of pages is larger than a preset threshold value and the triggering condition is met, wherein a round point of the second circle is an origin of the coordinate system;
determining a page number range and a total page number corresponding to the page number range according to a first ratio of the page number to 360 degrees and the first target page number, and determining a second ratio of the total page number to 360 degrees;
determining a third angle of a connecting line of the second operation position and the dot of the second circle on the second circle according to a third coordinate of the second operation position of the user on the electronic canvas on the coordinate system;
determining a third target page number corresponding to the second operation position according to the third angle, the second ratio and the initial page number of the page number range;
and turning the electronic document to a page corresponding to the third target page number.
According to the method for turning pages of an electronic document provided by the invention, the determining the third target page number corresponding to the second operation position according to the third angle, the second ratio and the initial page number of the page number range includes:
calculating the product of the third angle and the second ratio, and rounding to obtain a first result;
and determining a third target page number corresponding to the second operation position according to the first result and the initial page number of the page number range.
According to the electronic document page turning method provided by the invention, the method further comprises the following steps:
and displaying the third target page number on the display interface.
According to the method for turning pages of an electronic document provided by the invention, the determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document comprises the following steps:
calculating a third ratio of the first angle to 360 degrees;
and determining a first target page number corresponding to the first operation position according to the third ratio and the page number.
According to the electronic document page turning method provided by the invention, the method further comprises the following steps:
after the operation position corresponding to the selection operation is moved from the first operation position to a third operation position, acquiring a second coordinate of the third operation position on the coordinate system;
determining a second angle of a line connecting the third operation position and the dot of the first circle on the first circle according to the second coordinate, and determining a fourth ratio of the second angle to 360 degrees; determining a second target page number corresponding to the third operation position according to the fourth ratio and the page number;
displaying the second target page number on the display interface; and turning the electronic document to a page corresponding to the second target page number.
According to the electronic document page turning method provided by the invention, the method further comprises the following steps:
and displaying the first target page number on the display interface.
The invention also provides an electronic document page turning device, which comprises:
the electronic document processing system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
the acquisition module is used for acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system when the selection operation of a user on the electronic canvas is detected;
a first determining module, configured to determine, according to the first coordinate, a first angle on the first circle of a line connecting the first operation position and a dot of the first circle;
the second determining module is used for determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
and the second processing module is used for turning the electronic document to a page corresponding to the first target page number.
The invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the electronic document page turning method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of turning pages of an electronic document as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of turning pages of an electronic document as described in any one of the above.
According to the electronic document page turning method and device, the electronic canvas is created on the display interface, the coordinate system is established on the electronic canvas, and the first circle is created; when detecting the selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position on a coordinate system; determining a first angle of a connection line of the first operation position and the dot of the first circle on the first circle according to the first coordinate; according to the first angle and the page quantity of the electronic document, a first target page number corresponding to a first operation position is determined, and then the electronic document is turned to a page corresponding to the first target page number, so that a user can quickly and accurately locate a page to be checked, quick and accurate page turning of the electronic document is realized, the page turning accuracy is improved, the electronic document is simple and easy to use when being used, the inefficient operation of inputting page numbers, page-by-page rolling or dragging a sliding block in the prior art is avoided, and the page turning efficiency is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for turning pages of an electronic document according to the present invention;
FIG. 2 is a second flowchart of a method for turning pages of an electronic document according to the present invention;
FIG. 3 is one of the operational schematic diagrams based on the first circle provided by the present invention;
FIG. 4 is a second schematic view of the first circle-based operation provided by the present invention;
FIG. 5 is a schematic diagram of a page turning principle based on circle O2 provided by the invention;
FIG. 6 is a schematic diagram of the page turning principle based on circle O1 and circle O2 provided by the invention;
FIG. 7 is a schematic diagram of a structure of a page turning device for electronic documents according to the present invention;
fig. 8 is a schematic diagram of the physical structure of the electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, 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.
The invention provides a method and a device for turning pages of an electronic document, which are described below with reference to the attached drawings.
Fig. 1 is a schematic flow chart of a method for turning pages of an electronic document according to the present invention, as shown in fig. 1, the method includes steps 101 to 105, in which:
step 101, displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the dot of the first circle are both the center points of the electronic canvas.
It should be noted that, the method for turning pages of electronic documents provided by the invention can be applied to the scene where the electronic documents need to be turned. The execution subject of the method may be a document reader or an electronic document page turning device, such as an electronic device, a server, or a control module in the device for executing the electronic document page turning method, where the electronic device may include, but is not limited to, a mobile phone, a tablet computer, or a desktop computer.
Optionally, the size and the position of a display interface/display area of the electronic device are obtained, the number of pages of the electronic document is obtained, the position and the display size of the electronic document are obtained, and an electronic canvas is created on the display interface.
Alternatively, the first circle may be set to a hidden state for standby.
Step 102, when detecting the selection operation of the user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on a coordinate system.
Optionally, the selecting operation may include at least one of: touch operation, press operation, and slide operation. The first operating position is for example the position touched by the user or the position pressed.
Step 103, determining a first angle of the connection line between the first operation position and the dot of the first circle on the first circle according to the first coordinate.
Alternatively, a first operation position (e.g., point P0) of the user is connected with a dot (e.g., O1) of the first circle with a straight line, and an intersection point (e.g., point P1) of the first circle with the straight line or an extension line of the straight line is obtained. Assuming that the right upper side of the first circle is 0 degrees, the degree of P1O1 relative to the right upper side of the first circle, that is, the first angle can be calculated by the coordinates of P1.
Step 104, determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document.
Optionally, the implementation of determining the first target page number corresponding to the first operation position in the step 104 according to the first angle and the page number of the electronic document may include: firstly, calculating a third ratio of the first angle to 360 degrees; then, according to the third ratio and the number of pages, a first target page number corresponding to the first operation position is determined.
For example, the third ratio is multiplied by the number of pages and then the decimal point is truncated to an integer, resulting in the first target number of pages the user wants to turn.
And 105, turning the electronic document to a page corresponding to the first target page number.
Optionally, the first target page number is displayed on the display interface.
Alternatively, if the user moves the selected location, such as the location of the touch or the location of the press, a repeat of steps 102-105 is performed to update the first target page count.
Optionally, after the operation position corresponding to the selection operation is moved from the first operation position to the third operation position, acquiring a second coordinate of the third operation position on the coordinate system; determining a second angle of a connecting line of the third operation position and the round point of the first circle on the first circle according to the second coordinate, and determining a fourth ratio of the second angle to 360 degrees; determining a second target page number corresponding to the third operation position according to the fourth ratio and the page number; displaying a second target page number on the display interface; and turning the electronic document to a page corresponding to the second target page number.
And stopping updating the first target page number when the user does not move the selected position any more or the user does not touch or press the display area any more, and turning the electronic document to a page corresponding to the updated first target page number.
According to the electronic document page turning method provided by the invention, the electronic canvas is created on the display interface, the coordinate system is established on the electronic canvas, and the first circle is created; when detecting the selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position on a coordinate system; determining a first angle of a connection line of the first operation position and the dot of the first circle on the first circle according to the first coordinate; according to the first angle and the page quantity of the electronic document, a first target page number corresponding to a first operation position is determined, and then the electronic document is turned to a page corresponding to the first target page number, so that a user can quickly and accurately locate a page to be checked, quick and accurate page turning of the electronic document is realized, the page turning accuracy is improved, the electronic document is simple and easy to use when being used, the inefficient operation of inputting page numbers, page-by-page rolling or dragging a sliding block in the prior art is avoided, and the page turning efficiency is improved.
Under the condition that the number of pages of the electronic document is large, the number of pages corresponding to 1 degree on the circular arc of the first circle is also large, and therefore page turning accuracy and user experience can be affected. In order to solve the problem, the invention utilizes the combination of the second circle and the smaller page number range to improve the page turning accuracy. Specifically, the technical scheme provided by the invention can further comprise the following steps a-e on the basis of executing the steps 101-105:
step a, when the number of pages of an electronic document is larger than a preset threshold value and a triggering condition is met, creating and starting a second circle on the electronic canvas, wherein a dot of the second circle is an origin of a coordinate system;
step b, determining a page number range and a total page number corresponding to the page number range according to a first ratio of the page number to 360 degrees and a first target page number, and determining a second ratio of the total page number to 360 degrees;
step c, determining a third angle of a connecting line of the second operation position and the round point of the second circle on the second circle according to a third coordinate of the second operation position of the user on the electronic canvas on the coordinate system;
step d, determining a third target page number corresponding to the second operation position according to the third angle, the second ratio and the initial page number of the page number range;
and e, turning the electronic document to a page corresponding to the third target page number.
Optionally, a third target page number is displayed on the display interface. The trigger condition may be, for example, a user-specific operation or a user voice command.
Optionally, the implementation manner of the step d may include: calculating the product of the third angle and the second ratio, and rounding to obtain a first result; and determining a third target page number corresponding to the second operation position according to the first result and the initial page number of the page number range. For example, the first result and the start page number of the page number range are summed to obtain a third target page number corresponding to the second operation position. Or, since the page numbers corresponding to the page number range are page numbers arranged in sequence, the third target page number can be obtained directly based on the first result.
Compared with the traditional page turning method, the page turning method is simple and easy to use when the user uses the method, and can be used in multiple fields such as software, hardware and the like, so that the application range is wider, the operation experience is consistent, and the training education cost is reduced. Through using two circles (can also promote a plurality of circles) to correspond different page number ranges, first circular support complete page number quick location turn over page, second circular (also can be a plurality of circles) support the accurate turn over page of partial page number, solve the accurate and convenient problem that is difficult to compromise of current turn over page method, promoted efficiency and productivity.
Compared with the traditional page turning mode, the invention solves the problems of small click area, single dragging range and fixed position of the traditional page turning method, increases the area of the display and operation area, reduces the difficulty of page turning operation, improves the user experience and enlarges the application population.
Fig. 2 is a second flowchart of the method for turning pages of an electronic document according to the present invention, as shown in fig. 2, the method includes steps 201 to 208, in which:
in step 201, a canvas and a coordinate system are created.
Specifically, the size and position of an electronic document page are obtained, the equipment parameters of the electronic equipment and the size and position of a display area of the electronic equipment are obtained, a square electronic canvas B with a side length L is created according to the parameters, the electronic canvas B is added to the display area, a coordinate system T is created, and the center of the electronic canvas B is set as an origin of the coordinate system. And acquiring coordinates of the pressed position of the user on the electronic canvas B in real time, and converting the coordinates into a point P0 on a coordinate system T.
Step 202, acquiring the number of pages of the electronic document, and creating a second circle.
Specifically, the page number pageCount of the electronic document is acquired, startpage=1, endpage=pagecount is set, the side length L of the electronic canvas B is used as a second circle, and the circumference C1 is calculated by using the diameter of the circle O1. The circle center of the circle O1 is coincident with the center of the electronic canvas B, the size and the position of the circle O1 are determined, the circle O1 is drawn on the electronic canvas B, and the circle O1 can be temporarily set to be in a hidden state for standby.
Step 203, creating a first circle.
Specifically, one half of the side length L of the electronic canvas B is taken as the diameter of a first circle, such as circle O2. And (3) coinciding the center of the circle O2 with the center of the electronic canvas B, determining the size and the position of the circle O2, drawing the circle O2 on the electronic canvas B, and obtaining 360 degrees of the total circle. Fig. 3 is one of operation diagrams based on a first circle provided by the present invention, and fig. 4 is a second of operation diagrams based on a first circle provided by the present invention, referring to the first circle shown in fig. 3 and 4, a user may perform a selection operation, such as a touch operation, a press operation, or a slide operation, on an electronic canvas. The user may move the selected location multiple times, the direction of movement may be clockwise or counter-clockwise.
And 204, constructing a start-stop page number array ArrayO1.
Specifically, two circles are regarded as line segments having starting points, a point directly above the two circles is regarded as the starting point of the line segment, the points on the line segment correspond to the page numbers of the electronic document, and numbers of page numbers (1 to pageCount) are placed in the start-stop page number array ArrayO1 in a clockwise order from small to large.
Step 205, calculating the corresponding degree according to the coordinates of the operation position of the user, calculating the proportion of the degree to the whole first circle, calculating the page number and displaying.
Specifically, the center of the circle O2 and the point P0 pressed by the user are connected by a straight line, the straight line is extended until the point P1 is obtained by intersecting the circle O1, the straight line is extended until the point P2 is obtained by intersecting the circle O2, the number of GP1 may be displayed near the point P1, and/or the number of GP2 may be displayed near the point P2. And if the number of degrees D2 is 0 degrees right above the circle O2, the number of degrees D2 can be calculated through the coordinates of P0 or P2, the percentage of the current pressing point of the user to the circular arc of the whole circle O2 is obtained after the number of degrees D2 is divided by 360 degrees, the percentage 2 is multiplied by the number of pages (pageCount), the number of pages GP2 which the user wants to turn is obtained by cutting off the number of decimal points to take an integer, the number GP2 is displayed in a display interface, and the page turning of the electronic document is skipped to the page GP2.
Step 206, the user continuously moves the click position P0 and then continuously repeats step 205 to update GP2, and when the user no longer clicks, the number of pages is not updated, the electronic document is jumped to the updated number of pages, and step 207 is selectively executed.
Fig. 5 is a schematic diagram of a page turning principle based on circle O2, referring to fig. 5, assuming that a certain electronic document has 600 pages in total, when the degree corresponding to the operation position of the user is 45 degrees, the target page number=600 pages×45 degrees/360 degrees=75 pages, and the electronic document turns/jumps to the 75 th page; when the user moves the clicked position, assuming that the degree corresponding to the new operation position is 60 degrees, the target page number=600 pages is 60 degrees/360 degrees=100 pages, and the electronic document turns/jumps to page 100.
In the case that the number of pages of the electronic document is large, for more accurate positioning and page turning, whether to execute step 207 may be selected according to whether the number of pages of the electronic document is excessive and a preset trigger condition. For example, when the electronic document having the number of pages of 1800 pages or more is determined to be an electronic document having a large number of pages, and P0 is closer to the circle O1 and farther from the circle O2, the trigger condition is satisfied, and step 207 is executed.
Step 207, precisely locating the page number by using the degree ratio of the second circle and the small-range start-stop page array.
In particular, when the number of pages of a document far exceeds 360 pages, a manner of using only the degree of circle O2 times the total number of pages may not be accurately located to a certain page. At this time, the circle O1 can be displayed, and the range of start and stop page numbers is reduced by using the degree proportion of the circle O1 (namely, the second circle), so that the number of pages can be more accurately positioned by using the degree proportion of the second circle and the start and stop page number array in a small range, and the page turning accuracy is improved. And pausing the jump or displaying the GP2 page according to the trigger condition, and taking over the GP2 by the GP1 corresponding to the circle O1.
The circle O1 is utilized to reduce the page number range and improve the page turning accuracy. Adding and subtracting a number from the target page number calculated by the circle O2 to form an array with a first element and a last element as a start page, wherein the number in the range of the start page is clockwise evenly distributed on the circle O1 from small to large, a plurality of numbers corresponding to each degree are obtained according to 360 degrees and the number of the elements of the array, the number of the point pressed by the user in the circle O1 is multiplied by the number corresponding to each degree to obtain the position of the point in the array, and the position is added with the start page number to obtain the target page number of the user.
For example: the change start page=gp2-5×pd, the change end page=gp2+5×pd, and the value of PD may be equal to the ratio of the number of pages of the electronic document to 360 degrees, and the value of PD may be set based on an empirical value or set by a user. After the array ArrayO1 is emptied, the numbers from startPage to endPage are stored in the array ArrayO1 in a descending order, and the Length of the array ArrayO1 is calculated. Dividing 360 degrees by Length to obtain a number of degrees number occupied by each number in the array ArrayO1 on a circle O1, connecting a pressing site P0 of a user with the circle center of the circle O1, calculating the number D1 of the P0 on the circle O1, dividing the number D1 by the number occupied by each number, rounding to obtain an Index value Index, wherein the Index value represents the position of the number in the number array, calculating to obtain a skip page number GP1=startPage+index, and directly taking elements positioned in the Index position in the array, namely GP1=ArrayO1 [ Index ], and displaying or skipping to GP1 on an interface.
Fig. 6 is a schematic diagram of page turning principle based on circle O1 and circle O2, referring to fig. 6, assuming that a certain electronic document has 3600 pages altogether, when the degree corresponding to the operation position of the user is 45 degrees, the determined GP 2=3600 pages based on circle O2 is 45 degrees/360 degrees=450 pages, pd=3600 pages/360=10, the start page number (startPage) =gp 2-5×pd=400, the end page number (endPage) =gp2+5× pd=500, the intermediate page number (middlePage) = (endPage-startPage)/2=500, index= (500-400+1)/360×45=12.6, and Index is equal to 13 after rounding operation, gp1=400+13-1=412 pages, and the elements located in 13 in the rounding group are gp1=Arrayo1 [13] =412 pages, so that the target page on which the electronic document can be obtained is 412 pages.
Step 208, the user continuously moves the pressed position P0, and then steps 205-207 are continuously repeated, and when the user does not press the point any more, the user jumps to the target page and finishes displaying the target page number, and the page turning action is completed. At this time, simple and accurate circular arc page turning operation based on the circular shape is completed.
In the case of a large number of pages of a document, conventional page turning methods often require a user to input page numbers, scroll or drag a slider page by page, which can take a lot of time and effort. The invention can improve the page turning efficiency and enable the user to quickly locate the page to be checked. The invention can quickly and accurately turn to the target page number, is simpler and easier for a user to use, and avoids the inefficient operation of inputting page numbers, page-by-page turning or dragging the sliding block.
The electronic document page turning device provided by the invention is described below, and the electronic document page turning device described below and the electronic document page turning method described above can be correspondingly referred to each other.
Fig. 7 is a schematic structural diagram of an electronic document page turning device provided by the present invention, as shown in fig. 7, the electronic document page turning device 700 includes: a first processing module 701, an acquisition module 702, a first determination module 703, a second determination module 704, and a second processing module 705; wherein,
a first processing module 701, configured to display an electronic document on a display interface of an electronic device, create an electronic canvas on the display interface, create a coordinate system on the electronic canvas, and create a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
the acquiring module 702 is configured to acquire a first coordinate of a first operation position corresponding to a selection operation on a coordinate system when a selection operation of a user on an electronic canvas is detected;
a first determining module 703, configured to determine, according to the first coordinate, a first angle on the first circle of a line connecting the first operation position and the dot of the first circle;
a second determining module 704, configured to determine, according to the first angle and the number of pages of the electronic document, a first target page number corresponding to the first operation position;
the second processing module 705 is configured to page the electronic document to a page corresponding to the first target page number.
According to the electronic document page turning device, the electronic canvas is created on the display interface, the coordinate system is established on the electronic canvas, and the first circle is created; when detecting the selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position on a coordinate system; determining a first angle of a connection line of the first operation position and the dot of the first circle on the first circle according to the first coordinate; according to the first angle and the page quantity of the electronic document, a first target page number corresponding to a first operation position is determined, and then the electronic document is turned to a page corresponding to the first target page number, so that a user can quickly and accurately locate a page to be checked, quick and accurate page turning of the electronic document is realized, the page turning accuracy is improved, the electronic document is simple and easy to use when being used, the inefficient operation of inputting page numbers, page-by-page rolling or dragging a sliding block in the prior art is avoided, and the page turning efficiency is improved.
Optionally, the electronic document page turning device 700 further includes:
the first display module is used for creating and starting a second circle on the electronic canvas when the number of pages is larger than a preset threshold value and the triggering condition is met, wherein a round point of the second circle is an origin of the coordinate system;
the third determining module is configured to determine a page number range and a total page number corresponding to the page number range according to a first ratio of the page number to 360 degrees and the first target page number, and determine a second ratio of the total page number to 360 degrees;
a fourth determining module, configured to determine, according to a third coordinate of a second operation position of the user on the electronic canvas on the coordinate system, a third angle of a connection line between the second operation position and a dot of the second circle on the second circle;
a fifth determining module, configured to determine a third target page number corresponding to the second operation position according to the third angle, the second ratio, and a start page number of the page number range;
and the third processing module is used for turning the electronic document to a page corresponding to the third target page number.
Optionally, the fifth determining module is specifically configured to:
calculating the product of the third angle and the second ratio, and rounding to obtain a first result;
and determining a third target page number corresponding to the second operation position according to the first result and the initial page number of the page number range.
Optionally, the electronic document page turning device 700 further includes:
and the second display module is used for displaying the third target page number on the display interface.
Optionally, the second determining module 704 is specifically configured to:
calculating a third ratio of the first angle to 360 degrees;
and determining a first target page number corresponding to the first operation position according to the third ratio and the page number.
Optionally, the electronic document page turning device 700 further includes:
the second coordinate acquisition module is used for acquiring a second coordinate of a third operation position on the coordinate system after the operation position corresponding to the selection operation moves from the first operation position to the third operation position;
a sixth determining module, configured to determine, according to the second coordinate, a second angle on the first circle of a line connecting the third operation position and the dot of the first circle, and determine a fourth ratio of the second angle to 360 degrees; determining a second target page number corresponding to the third operation position according to the fourth ratio and the page number;
the fourth processing module is used for displaying the second target page number on the display interface; and turning the electronic document to a page corresponding to the second target page number.
Optionally, the electronic document page turning device 700 further includes:
and the third display module is used for displaying the first target page number on the display interface.
Fig. 8 is a schematic diagram of an entity structure of an electronic device according to the present invention, as shown in fig. 8, the electronic device may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a method of paging an electronic document, the method comprising:
displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
when detecting a selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system;
determining a first angle on the first circle of a connecting line of the first operation position and the dot of the first circle according to the first coordinate;
determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
and turning the electronic document to a page corresponding to the first target page number.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the electronic document page turning method provided by the above methods, and the method includes:
displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
when detecting a selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system;
determining a first angle on the first circle of a connecting line of the first operation position and the dot of the first circle according to the first coordinate;
determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
and turning the electronic document to a page corresponding to the first target page number.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the electronic document page turning method provided by the above methods, the method comprising: displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas; when detecting a selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system; determining a first angle on the first circle of a connecting line of the first operation position and the dot of the first circle according to the first coordinate; determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document; and turning the electronic document to a page corresponding to the first target page number.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for turning pages of an electronic document, comprising:
displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas, and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
when detecting a selection operation of a user on the electronic canvas, acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system;
determining a first angle on the first circle of a connecting line of the first operation position and the dot of the first circle according to the first coordinate;
determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
turning the electronic document to a page corresponding to the first target page number;
the method further comprises the steps of:
creating and starting a second circle on the electronic canvas under the condition that the number of pages is larger than a preset threshold value and the triggering condition is met, wherein a round point of the second circle is an origin of the coordinate system;
determining a page number range and a total page number corresponding to the page number range according to a first ratio of the page number to 360 degrees and the first target page number, and determining a second ratio of the total page number to 360 degrees;
determining a third angle of a connecting line of the second operation position and the dot of the second circle on the second circle according to a third coordinate of the second operation position of the user on the electronic canvas on the coordinate system;
determining a third target page number corresponding to the second operation position according to the third angle, the second ratio and the initial page number of the page number range;
and turning the electronic document to a page corresponding to the third target page number.
2. The method of claim 1, wherein determining a third target page number corresponding to the second operation position according to the third angle, the second ratio, and the start page number of the page number range comprises:
calculating the product of the third angle and the second ratio, and rounding to obtain a first result;
and determining a third target page number corresponding to the second operation position according to the first result and the initial page number of the page number range.
3. The method for turning pages of an electronic document according to claim 2, further comprising:
and displaying the third target page number on the display interface.
4. The method for turning pages of an electronic document according to claim 1, wherein determining a first target page number corresponding to the first operation position according to the first angle and the number of pages of the electronic document comprises:
calculating a third ratio of the first angle to 360 degrees;
and determining a first target page number corresponding to the first operation position according to the third ratio and the page number.
5. The method for turning pages of an electronic document according to claim 1, further comprising:
after the operation position corresponding to the selection operation is moved from the first operation position to a third operation position, acquiring a second coordinate of the third operation position on the coordinate system;
determining a second angle of a line connecting the third operation position and the dot of the first circle on the first circle according to the second coordinate, and determining a fourth ratio of the second angle to 360 degrees; determining a second target page number corresponding to the third operation position according to the fourth ratio and the page number;
displaying the second target page number on the display interface; and turning the electronic document to a page corresponding to the second target page number.
6. The method for turning pages of an electronic document according to claim 1, further comprising:
and displaying the first target page number on the display interface.
7. An electronic document page turning device, comprising:
the electronic document processing system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for displaying an electronic document on a display interface of electronic equipment, creating an electronic canvas on the display interface, creating a coordinate system on the electronic canvas and creating a first circle; the origin of the coordinate system and the round point of the first circle are all the center points of the electronic canvas;
the acquisition module is used for acquiring a first coordinate of a first operation position corresponding to the selection operation on the coordinate system when the selection operation of a user on the electronic canvas is detected;
a first determining module, configured to determine, according to the first coordinate, a first angle on the first circle of a line connecting the first operation position and a dot of the first circle;
the second determining module is used for determining a first target page number corresponding to the first operation position according to the first angle and the page number of the electronic document;
the second processing module is used for turning the electronic document to a page corresponding to the first target page number;
the electronic document page turning device further comprises:
the first display module is used for creating and starting a second circle on the electronic canvas when the number of pages is larger than a preset threshold value and the triggering condition is met, wherein a round point of the second circle is an origin of the coordinate system;
the third determining module is configured to determine a page number range and a total page number corresponding to the page number range according to a first ratio of the page number to 360 degrees and the first target page number, and determine a second ratio of the total page number to 360 degrees;
a fourth determining module, configured to determine, according to a third coordinate of a second operation position of the user on the electronic canvas on the coordinate system, a third angle of a connection line between the second operation position and a dot of the second circle on the second circle;
a fifth determining module, configured to determine a third target page number corresponding to the second operation position according to the third angle, the second ratio, and a start page number of the page number range;
and the third processing module is used for turning the electronic document to a page corresponding to the third target page number.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the electronic document paging method of any one of claims 1 to 6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the electronic document page turning method of any of claims 1 to 6.
CN202311192077.9A 2023-09-15 2023-09-15 Electronic document page turning method and device Active CN116931787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311192077.9A CN116931787B (en) 2023-09-15 2023-09-15 Electronic document page turning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311192077.9A CN116931787B (en) 2023-09-15 2023-09-15 Electronic document page turning method and device

Publications (2)

Publication Number Publication Date
CN116931787A CN116931787A (en) 2023-10-24
CN116931787B true CN116931787B (en) 2023-12-19

Family

ID=88375735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311192077.9A Active CN116931787B (en) 2023-09-15 2023-09-15 Electronic document page turning method and device

Country Status (1)

Country Link
CN (1) CN116931787B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847073A (en) * 2009-03-25 2010-09-29 鸿富锦精密工业(深圳)有限公司 Portable electronic device
CN103823623A (en) * 2014-02-13 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for performing page turning on terminal reading contents
CN105700804A (en) * 2015-12-31 2016-06-22 杭州华为数字技术有限公司 Method for responding operation track and operation track response device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011094855A1 (en) * 2010-02-05 2011-08-11 Smart Technologies Ulc Interactive input system displaying an e-book graphic object and method of manipulating a e-book graphic object

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847073A (en) * 2009-03-25 2010-09-29 鸿富锦精密工业(深圳)有限公司 Portable electronic device
CN103823623A (en) * 2014-02-13 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for performing page turning on terminal reading contents
CN105700804A (en) * 2015-12-31 2016-06-22 杭州华为数字技术有限公司 Method for responding operation track and operation track response device
CN110825302A (en) * 2015-12-31 2020-02-21 杭州华为数字技术有限公司 Method for responding operation track and operation track responding device

Also Published As

Publication number Publication date
CN116931787A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN109771941B (en) Method, device, equipment and medium for selecting virtual object in game
US20130174097A1 (en) Co-located user interface controls
CN107203307B (en) Icon management method and mobile terminal
US8614665B2 (en) Touch screen
CN107665434B (en) Payment method and mobile terminal
EP2750011A1 (en) Page switching method and device in interactive interface, and computer storage medium
KR20150033508A (en) Icon moving method and touch-type portable terminal to which the method is applied
US9623329B2 (en) Operations for selecting and changing a number of selected objects
CN106408289B (en) Payment page switching method and mobile terminal
KR102664318B1 (en) Device and method to control based on voice
CN107592458B (en) Shooting method and mobile terminal
EP2787450A2 (en) Device and method for editing ink text data
CN102117165A (en) Touch input processing method and mobile terminal
CN102830890A (en) Method and device for displaying icons
US10579254B2 (en) Method and apparatus for realizing human-machine interaction
CN106341530B (en) Payment page switching method and mobile terminal
KR101158679B1 (en) Method for directly inputting figure on electronic document, and computer-readable recording medium storing program of directly inputting figure on electronic document
CN104169861A (en) Method and apparatus for combining contact information, and terminal
CN107368249B (en) Touch operation identification method and device and mobile terminal
CN114565701A (en) Line segment drawing method and device, electronic equipment and computer readable storage medium
CN116931787B (en) Electronic document page turning method and device
CN111078069A (en) Interface icon moving method, storage medium and terminal
CN114063841A (en) Text selection method, text selection device and electronic equipment
CN112214156A (en) Touch screen magnifier calling method and device, electronic equipment and storage medium
US20140157118A1 (en) Information processing apparatuses, non-transitory computer readable medium, and information processing method

Legal Events

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