Page turning method and device

文档序号:1543595 发布日期:2020-01-17 浏览:5次 中文

阅读说明:本技术 一种翻页方法及装置 (Page turning method and device ) 是由 徐以蒙 李琦 刘红 黄涛 张娅 于 2018-07-09 设计创作,主要内容包括:本发明实施例公开一种翻页方法及装置。其中,所述方法包括:接收到翻页的触发操作,显示翻页选择界面,所述翻页选择界面包括可选择页码的显示区域。所述装置用于执行上述方法。本发明实施例提供的翻页方法及装置,由于能够接收到翻页的触发操作,显示包括可选择页码的显示区域的翻页选择界面,能够快速翻动多页,提高了翻页的效率。(The embodiment of the invention discloses a page turning method and a page turning device. Wherein the method comprises the following steps: and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers. The device is used for executing the method. According to the page turning method and device provided by the embodiment of the invention, the page turning selection interface comprising the display area with the selectable page number can be displayed due to the fact that the triggering operation of page turning can be received, multiple pages can be rapidly turned, and the page turning efficiency is improved.)

1. A method of turning pages, comprising:

and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers.

2. The method according to claim 1, wherein the display width of the display area is determined according to a preset rule.

3. The method of claim 2, further comprising:

and receiving selection operation of the page number, and displaying the page corresponding to the page number.

4. The method of claim 2, wherein the preset rules comprise:

acquiring historical reading time and historical reading times of the page corresponding to each page number;

obtaining a display width parameter of a display area where each page is located according to historical reading time and historical reading times;

obtaining a first total width parameter according to the display width parameter;

obtaining a display width coefficient of a display area where each page is located according to a ratio of a display width parameter to the first total width parameter;

and respectively obtaining the display width of the display area where each page number is located according to the height or width of the page turning selection interface and the display width coefficient of the display area where each page number is located.

5. The method according to claim 4, wherein the obtaining of the display width parameter of the display area where each page number is located according to the historical reading time and the historical reading times of the page corresponding to each page number comprises:

and calculating and obtaining a display width parameter w of a display area where the page number is located according to a formula w ═ aT + bR, wherein T represents the historical reading time of the page corresponding to the page number, R represents the historical reading times of the page corresponding to the page number, and a and b are empirical coefficients.

6. The method according to claim 4, wherein the obtaining the display width of the display area in which each page is located according to the height or the width of the page turning selection interface and the display width coefficient of the display area in which each page is located respectively comprises:

according to formula Qi=LPiCalculating and obtaining the display width Q of the display area where the ith page number is positionediWherein L is the height or width of the page turning selection interface, PiAnd the display width coefficient of the display area where the ith page number is located, wherein i is a positive integer.

7. The method of claim 2, wherein the preset rules comprise:

acquiring historical reading time and historical reading times of the page corresponding to each page number;

obtaining a display width parameter of a display area where each page is located according to the historical reading time and the historical reading times of the page corresponding to each page;

sorting the display width parameters of the display areas where the page numbers are located from large to small, and acquiring the display width parameters of the display areas where the preset number of page numbers are located before sorting;

obtaining a second total width parameter according to the display width parameter of the display area where the preset number of the pages are located before sorting;

obtaining a display width coefficient of the display area where each page number in the preset number is located in the preset number before sorting according to the ratio of the display width parameter of the display area where each page number in the preset number before sorting to the second total width parameter;

and respectively obtaining the display width of the display area where each page of the preset number is positioned before the sorting according to the height or the width of the page turning selection page and the display width coefficient of the display area where each page of the preset number is positioned before the sorting.

8. The method of claim 2, wherein the preset rules comprise:

acquiring historical reading time or historical reading times of the page corresponding to each page number;

obtaining total historical reading time according to the historical reading time, or obtaining total historical reading times according to the historical reading times;

obtaining a display width coefficient of a display area where each page is located according to the ratio of historical reading time to the total historical reading time, or obtaining the display width coefficient of the display area where each page is located according to the ratio of historical reading times to the total historical reading times;

and respectively obtaining the display width of the display area where each page number is located according to the height or width of the page turning selection interface and the display width coefficient of the display area where each page number is located.

9. The method according to claim 1, wherein the receiving of the trigger operation for turning pages comprises:

receiving a click operation on a quick page turning button or receiving a shaking operation; wherein the fast page turning button is preset.

10. The method of claim 1, wherein displaying the page flip selection interface comprises:

and the page turning selection interface is displayed on the side surface of the simulated book, and the selectable page codes are displayed according to a preset sequence.

11. The method of any one of claims 1 to 10, further comprising:

and after the page turning selection interface is displayed, receiving an amplification operation on the page turning selection interface, and amplifying and displaying an area corresponding to the amplification operation.

12. A page turning device, comprising:

and the display unit is used for receiving the triggering operation of page turning and displaying a page turning selection interface, and the page turning selection interface comprises a display area capable of selecting page numbers.

13. The apparatus according to claim 12, wherein the display width of the display area is determined according to a preset rule.

14. The apparatus of claim 13, further comprising:

the first acquisition unit is used for acquiring historical reading time and historical reading times of the page corresponding to each page number;

the first obtaining unit is used for obtaining the display width parameter of the display area where each page is located according to historical reading time and historical reading times;

a second obtaining unit, configured to obtain a first total width parameter according to the display width parameter;

a third obtaining unit, configured to obtain a display width coefficient of a display area where each page is located according to a ratio of a display width parameter to the first total width parameter;

and the fourth obtaining unit is used for respectively obtaining the display width of the display area where each page is located according to the height or the width of the page turning selection interface and the display width coefficient of the display area where each page is located.

15. The apparatus of claim 13, further comprising:

the second acquisition unit is used for acquiring historical reading time or historical reading times of the page corresponding to each page number;

a fifth obtaining unit, configured to obtain a total historical reading time according to the historical reading time, or obtain a total historical reading time according to the historical reading time;

a sixth obtaining unit, configured to obtain a display width coefficient of a display area where each page is located according to a ratio of historical reading time to the total historical reading time, or obtain a display width coefficient of a display area where each page is located according to a ratio of historical reading times to the total historical reading times;

and the seventh obtaining unit is used for respectively obtaining the display width of the display area where each page number is located according to the height or the width of the page turning selection interface and the display width coefficient of the display area where each page number is located.

16. An electronic device, comprising: a processor, a memory, and a communication bus, wherein:

the processor and the memory are communicated with each other through the communication bus;

the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 11.

17. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 11.

Technical Field

The embodiment of the invention relates to the technical field of computers, in particular to a page turning method and device.

Background

With the popularization of mobile terminals and the development of mobile networks, electronic reading is more and more favored by people.

During reading, page turning is usually required. In the prior art, a mobile terminal may be triggered to turn pages by clicking or sliding, for example, a screen is slid to the left or right to turn pages forward or backward, but only one page is turned each time, and if multiple pages are to be turned, the page turning operation is repeated multiple times. For some electronic books providing directories, the operation is also cumbersome by clicking back to the directory and then selecting to access the desired page.

Therefore, how to provide a page turning method, which can rapidly turn a plurality of pages to improve the page turning efficiency, is an important issue to be solved in the industry.

Disclosure of Invention

Aiming at the defects in the prior art, the embodiment of the invention provides a page turning method and device.

In one aspect, an embodiment of the present invention provides a page turning method, including:

and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers. In another aspect, an embodiment of the present invention provides a page turning device, including:

and the display unit is used for receiving the triggering operation of page turning and displaying a page turning selection interface, and the page turning selection interface comprises a display area capable of selecting page numbers.

In another aspect, an embodiment of the present invention provides a page turning device, including:

and the display unit is used for receiving the triggering operation of page turning and displaying a page turning selection interface, and the page turning selection interface comprises a display area capable of selecting page numbers.

In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a communication bus, wherein:

the processor and the memory are communicated with each other through the communication bus;

the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the page turning method provided by the embodiments.

In yet another aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the page turning method provided in the above embodiments.

According to the page turning method and device provided by the embodiment of the invention, the page turning selection interface comprising the display area with the selectable page number can be displayed due to the fact that the triggering operation of page turning can be received, multiple pages can be rapidly turned, and the page turning efficiency is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a flowchart illustrating a page turning method according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating a page turning selection interface according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating a page turning method according to another embodiment of the present invention;

FIG. 4 is a flowchart illustrating a page turning method according to another embodiment of the present invention;

FIG. 5 is a flowchart illustrating a page turning method according to another embodiment of the present invention;

FIG. 6 is a diagram illustrating a page turning selection interface according to another embodiment of the present invention;

FIG. 7 is a schematic structural diagram of a page turning device according to an embodiment of the present invention;

FIG. 8 is a schematic structural diagram of a page turning device according to another embodiment of the present invention;

FIG. 9 is a schematic structural diagram of a page turning device according to another embodiment of the present invention;

fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort belong to the protection scope of the embodiments of the present invention.

Fig. 1 is a schematic flow diagram of a page turning method according to an embodiment of the present invention, and as shown in fig. 1, the page turning method according to the embodiment of the present invention includes:

s101, receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers.

Specifically, the page turning method provided by the embodiment of the present invention is applied to an electronic product having a touch screen, and when a user uses the electronic product to read electronic data such as an electronic book and an electronic magazine, if a page turning trigger operation is performed, for example, a fast page turning button preset on the touch screen is clicked, a page turning device may receive the page turning trigger operation, and after receiving the page turning trigger operation, a page turning selection interface is displayed, where the page turning selection interface includes a display area capable of selecting a page number, the user may click the selectable page number in the display area, and after receiving the click operation on the page number, the page turning device displays a page corresponding to the page number. The electronic products include, but are not limited to, smart phones, tablet computers, and the like.

According to the page turning method provided by the embodiment of the invention, the page turning selection interface can be displayed after the triggering operation of page turning is detected, so that a plurality of pages can be rapidly turned, and the page turning efficiency is improved.

On the basis of the above embodiments, further, the display width of the display area is determined according to a preset rule.

Specifically, the display width of the display area where the page number is located is determined according to a preset rule, and the display widths of the display areas where different page numbers are located may be different. The display length of the display area where the page number is located is set according to an actual situation, and the embodiment of the invention is not limited.

On the basis of the foregoing embodiments, further, the page turning method provided in the embodiment of the present invention further includes: and receiving selection operation of the page number, and displaying the page corresponding to the page number.

Specifically, after the page turning device displays the page turning selection interface, the user selects a page number to be read according to his/her will, the selection operation of the user on the page number and/or the display area where the page number is located is regarded as the selection operation on the page number, and the page turning device may receive the selection operation on the page number, for example, the page turning device receives a click operation of the user on the display area where the page number is located, and after receiving the selection operation, acquires data of a page corresponding to the page number, thereby displaying the page corresponding to the page number. It can be understood that the corresponding relationship between the page number and the corresponding page number data is established in advance.

For example, fig. 2 is a schematic diagram of a page turning selection interface according to an embodiment of the present invention, a user a reads an electronic book using an App installed on a smartphone of the user a, after the user a opens the App, a page read last time is displayed while a fast page turning button is displayed, the user a clicks the fast page turning button, the page turning device receives a click operation of the user a on the fast page turning button, the page turning device displays the page turning selection interface shown in fig. 2, including selectable page numbers 1, 2, 3, 4 … … 19, and 20, and display areas where the selectable page numbers are located, and a display width of a display area where the page number 3 is located is significantly greater than a display width of a display area where the page number 1, the page number 2, the page number 4, the page number 19, and the page number 20 are located. The user a clicks the display area where the page number 3 is located, the page turning device may receive a selection operation of the user a on the page number 3, acquire data of a page corresponding to the page number 3, and then display the page corresponding to the page number 3 on the screen.

According to the page turning method provided by the embodiment of the invention, the page turning selection interface comprising the selectable page number can be displayed after the triggering operation of page turning is received, and the page corresponding to the page number is displayed after the selection operation of the page number is received, so that a plurality of pages can be rapidly turned, and the page turning efficiency is improved.

On the basis of the foregoing embodiments, further, the receiving a trigger operation of turning a page includes:

receiving a click operation on a quick page turning button or receiving a shaking operation; wherein the fast page turning button is preset.

Specifically, after the user clicks the fast page turning button on the touch screen, the page turning device may receive the click operation, and then display the page turning selection interface. Or after the user performs a shaking operation on the electronic product, the page turning device may receive the shaking operation and then display the page turning selection interface, where the shaking operation may be continuous shaking of the electronic product, for example, continuous shaking of the electronic product twice. Wherein the fast page turning button is preset.

Fig. 3 is a schematic flow chart of a page turning method according to another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, the preset rule further includes:

s301, obtaining historical reading time and historical reading times of the page corresponding to each page number;

specifically, the page turning device may record reading time and reading times of the page corresponding to the page number each time by the user, where the accumulation of the reading time forms historical reading time of the page corresponding to the page number, and the accumulation of the reading times forms historical reading times of the page corresponding to the page number. The page turning device can locally store the historical reading time and the historical reading times of the page corresponding to each page number and upload the page to a server for storage. Before displaying the page turning selection interface, the page turning device may locally acquire the historical reading time and the historical reading times of the page corresponding to each page number, or may locally acquire the historical reading time and the historical reading times of the page corresponding to each page number from the server. It can be understood that the historical reading time and the historical reading times of the page corresponding to each page number counted most recently are obtained by the page turning device.

S302, obtaining a display width parameter of a display area where each page is located according to historical reading time and historical reading times;

specifically, after obtaining the historical reading time and the historical reading times of the page corresponding to each page, the page turning device may obtain the display width parameter of the display area where each page is located according to the historical reading time and the historical reading times of the page corresponding to each page.

For example, the page flipping device calculates and obtains a display width parameter w of a display area where the page number is located according to a formula w ═ aT + bR, where T represents a historical reading time of a page corresponding to the page number, R represents a historical reading frequency of the page corresponding to the page number, and a and b are empirical coefficients.

S303, obtaining a first total width parameter according to the display width parameter;

specifically, after obtaining the display width parameter of the display area where each page is located, the page flipping unit may sum the display width parameters of the display areas where each page is located, and take the sum result as a first total width parameter.

For example, the page flipping mechanism is based on a formulaCalculating to obtain the first total width parameter M, wherein wiA display width parameter indicating a display area where the ith page number is located, and n indicates the total number of the selectable page numbersI is a positive integer and i is less than or equal to n.

S304, obtaining a display width coefficient of a display area where each page is located according to the ratio of the display width parameter to the first total width parameter;

specifically, after obtaining the first total width parameter, the page flipping device divides the display width parameter of the display area where each page is located by the first total width parameter, and uses the division result as the display width coefficient of the display area where the page is located.

For example, the page flipping mechanism is according to formula Pi=wiCalculating and obtaining a display width coefficient P of a display area where the ith page number is positionediWherein w isiAnd the display width parameter represents a display area where the ith page number is located, M represents the first total width parameter, and i is a positive integer.

S305, respectively obtaining the display width of the display area where each page is located according to the height or the width of the page turning selection interface and the display width coefficient of the display area where each page is located.

Specifically, the page turning device may display each page number on the page turning selection interface in a horizontal direction, and when each page number is displayed in the horizontal direction, the page turning device obtains the display width of the display area where each page number is located according to the width of the page turning selection interface and the display width coefficient of the display area where each page number is located, where the width of the page turning selection interface is the horizontal display size of the page turning selection interface. The page turning device can also display the page numbers on the page turning selection interface in a longitudinal mode, when the page numbers are displayed in the longitudinal mode, the page turning device obtains the display width of the display area where each page number is located according to the height of the page turning selection interface and the display width coefficient of the display area where each page number is located, and the height of the page turning selection interface is the longitudinal display size of the page turning selection interface. The height and the width of the page turning selection interface are set according to actual conditions, and the embodiment of the present invention is not limited thereto, for example, the height of the page turning selection interface may be set to the height of the display screen of the electronic product, and the width of the page turning selection interface may be set to the width of the display screen of the electronic product.

For example, the page flipping mechanism may be according to formula Qi=LPiCalculating and obtaining the display width Q of the display area where the ith page number is positionediWherein L is the width of the page turning selection interface when the page turning selection interface transversely displays each page number, and L is the height of the page turning selection interface when the page turning selection interface longitudinally displays each page number, and P is the height of the page turning selection interfaceiAnd the display width coefficient of the display area where the ith page number is located, wherein i is a positive integer.

On the basis of the foregoing embodiments, further, the obtaining, according to the historical reading time and the historical reading frequency of the page corresponding to each page, the display width parameter of the display area where each page is located includes:

and calculating and obtaining a display width parameter w of a display area where the page number is located according to a formula w ═ aT + bR, wherein T represents the historical reading time of the page corresponding to the page number, R represents the historical reading times of the page corresponding to the page number, and a and b are empirical coefficients.

Specifically, the page turning device may obtain historical reading time T of a page corresponding to the page number, and historical reading times R of the page corresponding to the page number, and then calculate and obtain a display width parameter w of a display area where the page number is located according to a formula w ═ aT + bR, where a and b are empirical coefficients, and are set according to actual experience, which is not limited in the embodiment of the present invention.

On the basis of the foregoing embodiments, further, the obtaining, according to the height or the width of the page turning selection interface and the display width coefficient of the display area where each page is located, the display width of the display area where each page is located respectively includes:

according to formula Qi=LPiCalculating and obtaining the display width Q of the display area where the ith page number is positionediWherein L is the height or width of the page turning selection interface,PiAnd the display width coefficient of the display area where the ith page number is located, wherein i is a positive integer.

Specifically, after obtaining the display width coefficient of the display area where each page number is located, the page turning device may obtain the display width coefficient according to a formula Qi=LPiCalculating and obtaining the display width Q of the display area where the ith page number is positionediWherein L is the height or width of the page turning selection interface, PiAnd the display width coefficient of the display area where the ith page number is located, wherein i is a positive integer.

Fig. 4 is a schematic flowchart of a page turning method according to another embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, the preset rule further includes:

s401, obtaining historical reading time and historical reading times of a page corresponding to each page number;

specifically, the specific process of this step is similar to step S301, and is not described here again.

S402, obtaining a display width parameter of a display area where each page is located according to historical reading time and historical reading times of a page corresponding to each page;

specifically, the specific process of this step is similar to step S302, and is not described here again.

S403, sorting the display width parameters of the display areas where the page numbers are located from large to small, and acquiring the display width parameters of the display areas where the preset number of page numbers are located before sorting;

specifically, due to the limitation of the size of the display screen of the touch screen, when the number of pages of the electronic data is large, the selectable page number is displayed to be small, which is inconvenient for the user to view and select. After obtaining the display width parameters of the display areas where the page numbers are located, the page turning device sorts the display width parameters of the display areas where the page numbers are located according to a descending order, obtains the display width parameters of the display areas where the preset number of page numbers are located in the sorting result, and the page numbers sorted to the front in the sorting result can be understood as the page numbers which are more interested in being read again by the user. The preset number is set according to actual conditions, and the embodiment of the invention is not limited.

S404, obtaining a second total width parameter according to the display width parameter of the display area where the preset number of pages are located before sorting;

specifically, after obtaining the display width parameters of the display areas where the preset number of pages are located before the sorting, the page turning device may sum the display width parameters of the display areas where the preset number of pages are located before the sorting, and take the result of the summation as the second total width parameter.

For example, the page flipping mechanism is based on a formula

Figure BDA0001724674280000091

Calculating to obtain the second total width parameter M', wherein wk' represents a display width parameter of a display area where a preset number of the page numbers before the k-th sorting is located, m represents the preset number, k is a positive integer and is less than or equal to m.

S405, obtaining a display width coefficient of the display area where each page number in the preset number is located in the preset number before sorting according to the ratio of the display width parameter of the display area where each page number in the preset number before sorting is located to the second total width parameter;

specifically, after obtaining the second total width parameter, the page turning device divides the display width parameter of the display area where each page number in the preset number before sorting is located by the second total width parameter, and takes the division result as the display width coefficient of the display area where the page number is located.

For example, the page flipping mechanism is according to formula Pk′=wk'/M', calculating and obtaining the display width coefficient P of the display area where the page number with the preset number before the k-th sorting is positionedk', wherein wk'represents a display width parameter of a display area where a preset number of page numbers before the k-th sorting is located, M' represents the second total width parameter, and k is a positive integer.

S406, respectively obtaining the display width of the display area where each page number in the preset number is located before the sorting according to the height or the width of the page turning selection page and the display width coefficient of the display area where each page number in the preset number is located before the sorting.

Specifically, the page turning device may transversely display, on the page turning selection interface, each page number of a preset number before sorting, and when each page number of the preset number before sorting is transversely displayed, the page turning device obtains the display width of the display area where each page number of the preset number before sorting is located according to the width of the page turning selection interface and the display width coefficient of the display area where each page number of the preset number before sorting is located. The page turning device can longitudinally display each page number in a preset number before the page turning selection interface, and when each page number in the preset number before the page turning selection interface is longitudinally displayed, the page turning device respectively obtains the display width of the display area in which each page number in the preset number before the page turning selection interface is located according to the height of the page turning selection interface and the display width coefficient of the display area in which each page number in the preset number before the page turning selection interface is located.

For example, the page flipping mechanism may be according to formula Qk′=L′Pk', calculating the display width Q of the display area where the preset number of page numbers before the k-th sorting is obtainedk' wherein, when the page turning selection interface transversely displays each page number of the preset number before the sorting, L ' is the width of the page turning selection interface, and when the page turning selection interface longitudinally displays each page number of the preset number before the sorting, L ' is the height of the page turning selection interface, Pk' is a display width coefficient of a display area where the k-th page number is located, and k is a positive integer.

Fig. 5 is a schematic flow chart of a page turning method according to still another embodiment of the present invention, as shown in fig. 5, based on the foregoing embodiments, further, the preset rule includes:

s501, obtaining historical reading time or historical reading times of the page corresponding to each page number;

specifically, the page turning device may record reading time or reading times of the page corresponding to the page number each time by the user, where the accumulation of the reading time forms historical reading time of the page corresponding to the page number, and the accumulation of the reading times forms historical reading times of the page corresponding to the page number. The page turning device can obtain historical reading time or historical reading times of the page corresponding to each page number. It can be understood that the historical reading time or the historical reading times of the page corresponding to each page number counted most recently is obtained by the page turning device.

S502, obtaining total historical reading time according to the historical reading time, or obtaining total historical reading times according to the historical reading times;

specifically, after obtaining the historical reading time of the page corresponding to each page number, the page turning device may sum the historical reading times of the pages corresponding to each page number, and use the sum result as the total historical reading time. Or after obtaining the historical reading times of the pages corresponding to the respective page numbers, the page flipping device may sum the historical reading times of the pages corresponding to the respective page numbers, and use the sum result as the total historical reading time.

For example, the page flipping mechanism is based on a formula

Figure BDA0001724674280000111

Calculating to obtain the total historical reading time T', wherein TiAnd the historical reading time of the page corresponding to the ith page number is represented, n represents the total number of the selectable page numbers, i is a positive integer and is less than or equal to n. Or the page turning device is according to a formula

Figure BDA0001724674280000112

Calculating to obtain the total historical reading times R', wherein RiAnd the historical reading times of the page corresponding to the ith page number are represented, n represents the total number of the selectable page numbers, i is a positive integer and is less than or equal to n.

S503, obtaining a display width coefficient of a display area where each page is located according to the ratio of historical reading time to the total historical reading time, or obtaining the display width coefficient of the display area where each page is located according to the ratio of historical reading times to the total historical reading times;

specifically, after obtaining the total historical reading time, the page flipping device divides the historical reading time of the page corresponding to each page number by the total historical reading time, and uses the division result as the display width coefficient of the display area where the page number is located. Or after obtaining the total historical reading times, the page turning device divides the historical reading times of the page corresponding to each page number by the total historical reading times, and takes the division result as the display width coefficient of the display area where the page number is located.

For example, the page flipping mechanism is according to formula Pi=TiCalculating and obtaining a display width coefficient P of a display area where the ith page number is positionediWherein, TiAnd the historical reading time of the page corresponding to the ith page number is represented, T' represents the total historical reading time, and i is a positive integer. Or the page turning device is according to a formula Ri=PiCalculating and obtaining a display width coefficient P of a display area where the ith page number is positionediWherein R isiAnd representing the historical reading times of the page corresponding to the ith page number, wherein R' represents the total historical reading times, and i is a positive integer.

S504, respectively obtaining the display width of the display area where each page is located according to the height or the width of the page turning selection interface and the display width coefficient of the display area where each page is located.

Specifically, the specific process of this step is similar to step S305, and is not described here again.

Fig. 6 is a schematic diagram of a page turning selection interface according to another embodiment of the present invention, and as shown in fig. 6, on the basis of the foregoing embodiments, the displaying the page turning selection interface further includes:

and the page turning selection interface is displayed on the side surface of the simulated book, and the selectable page codes are displayed according to a preset sequence.

Specifically, when the page turning device displays the page turning selection interface, the page turning display interface is displayed on the side face of the simulated book. The selectable page numbers can be sequentially displayed on the page turning selection interface from left to right and are displayed in the order of the size of the page numbers from small to large; or the page turning selection interface is sequentially displayed from right to left and is displayed according to the order of the page numbers from small to large; or the page turning selection interface is sequentially displayed from top to bottom and is displayed according to the order of the page numbers from small to large; or the page turning selection interface is sequentially displayed from bottom to top and is displayed according to the order of the page numbers from small to large.

For example, as shown in fig. 6, the page flipping device displays the selectable pages 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 laterally, the selectable pages are sequentially displayed from left to right on the page flipping selection interface in a descending order, and when the page flipping device detects a sliding operation on the display area where the page 2 is located, the page flipping device simulates a page of a book and displays a page corresponding to the page 2.

On the basis of the foregoing embodiments, further, the page turning method provided in the embodiment of the present invention further includes:

and after the page turning selection interface is displayed, receiving an amplification operation on the page turning selection interface, and amplifying and displaying an area corresponding to the amplification operation.

Specifically, due to the limitation of the size of the display screen of the touch screen, when the number of pages of the electronic data is large, the selectable page number is displayed very small, and the user can enlarge a local area of the page turning selection interface through the enlargement operation of the page turning selection interface, so that the user can conveniently view and select the page turning selection interface. After the page turning device displays the page turning selection interface, the page turning device receives an amplification operation on the page turning selection interface, and performs amplification display on an area corresponding to the amplification operation, for example, the amplification operation may be a stretching operation on the page turning selection interface, and the area corresponding to the amplification operation is an area between two contacts where the stretching operation and the page turning selection interface are in contact.

Fig. 7 is a schematic structural diagram of a page flipping device according to an embodiment of the present invention, and as shown in fig. 7, the page flipping device according to the embodiment of the present invention includes a first display unit 701, where:

the display unit 701 is configured to receive a page turning trigger operation and display a page turning selection interface, where the page turning selection interface includes a display area capable of selecting a page number.

Specifically, the page turning method provided by the embodiment of the present invention is applied to an electronic product having a touch screen, and when a user uses the electronic product to read electronic data such as an electronic book, an electronic magazine, and the like, if a page turning trigger operation is performed, for example, a fast page turning button preset on the touch screen is clicked, the display unit 701 may receive the page turning trigger operation, and display a page turning selection interface after receiving the page turning trigger operation. The page turning selection interface includes a display area capable of selecting a page number, the user can click the selectable page number in the display area, and the display unit 701 displays a page corresponding to the page number after receiving a click operation on the page number. The electronic products include, but are not limited to, smart phones, tablet computers, and the like. The electronic products include, but are not limited to, smart phones, tablet computers, and the like.

The page turning device provided by the embodiment of the invention can display the page turning selection interface after detecting the triggering operation of page turning, can rapidly turn a plurality of pages, and improves the page turning efficiency. On the basis of the above embodiments, further, the display width of the display area is determined according to a preset rule.

Specifically, the display width of the display area where the page number is located is determined according to a preset rule, and the display widths of the display areas where different page numbers are located may be different. The display length of the display area where the page number is located is set according to an actual situation, and the embodiment of the invention is not limited.

Fig. 8 is a schematic structural diagram of a page turning device according to another embodiment of the present invention, and as shown in fig. 8, on the basis of the foregoing embodiments, further, the page turning device according to the embodiment of the present invention further includes a first obtaining unit 702, a first obtaining unit 703, a second obtaining unit 704, a third obtaining unit 705, and a fourth obtaining unit 706, where:

the first obtaining unit 702 is configured to obtain historical reading time and historical reading times of a page corresponding to each page number; the first obtaining unit 703 is configured to obtain, according to the historical reading time and the historical reading times, a display width parameter of a display area where each page is located; the second obtaining unit 704 is configured to obtain a first total width parameter according to the display width parameter; the third obtaining unit 705 is configured to obtain a display width coefficient of a display area where each page is located according to a ratio of a display width parameter to the first total width parameter; the fourth obtaining unit 706 is configured to obtain the display width of the display area in which each page is located according to the height or width of the page turning selection interface and the display width coefficient of the display area in which each page is located.

Specifically, the first obtaining unit 702 may record reading time and reading times of the page corresponding to the page number each time by the user, where the accumulation of the reading time forms historical reading time of the page corresponding to the page number, and the accumulation of the reading times forms historical reading times of the page corresponding to the page number. The first obtaining unit 702 may locally store the historical reading time and the historical reading times of the page corresponding to each page number, and upload the page to the server for storage. Before displaying the page turning selection interface, the first obtaining unit 702 may obtain, from the local, historical reading time and historical reading times of the page corresponding to each page number, or may obtain, from the server, historical reading time and historical reading times of the page corresponding to each page number. It can be understood that the historical reading time and the historical reading times of the page corresponding to each page number counted most recently are obtained by the page turning device.

After obtaining the historical reading time and the historical reading times of the page corresponding to each page, the first obtaining unit 703 may obtain the display width parameter of the display area where each page is located according to the historical reading time and the historical reading times of the page corresponding to each page.

After obtaining the display width parameters of the display areas where the respective page numbers are located, the second obtaining unit 704 may sum the display width parameters of the display areas where the respective page numbers are located, and take the result of the summation as the first total width parameter.

After obtaining the first total width parameter, the third obtaining unit 705 divides the display width parameter of the display area where each page is located by the first total width parameter, and takes the division result as the display width coefficient of the display area where the page is located.

The page numbers may be displayed on the page turning selection interface in a horizontal direction, and when the page numbers are displayed in the horizontal direction, the fourth obtaining unit 706 obtains the display width of the display area where the page numbers are located according to the width of the page turning selection interface and the display width coefficient of the display area where the page numbers are located, where the width of the page turning selection interface is the horizontal display size of the page turning selection interface. The page number may also be displayed on the page turning selection interface in a longitudinal direction, and when the page number is displayed in the longitudinal direction, the fourth obtaining unit 706 obtains the display width of the display area where each page number is located according to the height of the page turning selection interface and the display width coefficient of the display area where each page number is located, where the height of the page turning selection interface is the longitudinal display size of the page turning selection interface. The height and the width of the page turning selection interface are set according to actual conditions, and the embodiment of the present invention is not limited thereto, for example, the height of the page turning selection interface may be set to the height of the display screen of the electronic product, and the width of the page turning selection interface may be set to the width of the display screen of the electronic product.

Fig. 9 is a schematic structural diagram of a page turning device according to another embodiment of the present invention, and as shown in fig. 9, on the basis of the foregoing embodiments, the page turning device according to the embodiment of the present invention further includes a second obtaining unit 707, a fifth obtaining unit 708, a sixth obtaining unit 709, and a seventh obtaining unit 710, where:

the second obtaining unit 707 is configured to obtain a historical reading time or a historical reading frequency of a page corresponding to each page number; the fifth obtaining unit 708 is configured to obtain a total historical reading time according to the historical reading time, or obtain a total historical reading time according to the historical reading time; a sixth obtaining unit 709 is configured to obtain a display width coefficient of a display area where each page is located according to a ratio of historical reading time to the total historical reading time, or obtain a display width coefficient of a display area where each page is located according to a ratio of historical reading times to the total historical reading times; the seventh obtaining unit 710 is configured to obtain the display width of the display area in which each page is located according to the height or width of the page turning selection interface and the display width coefficient of the display area in which each page is located.

Specifically, the second obtaining unit 707 may record reading time or reading times of the page corresponding to the page number each time by the user, where the accumulation of the reading time forms historical reading time of the page corresponding to the page number, and the accumulation of the reading times forms historical reading times of the page corresponding to the page number. The second obtaining unit 707 may obtain a historical reading time or a historical reading number of pages corresponding to each of the page numbers. It can be understood that the historical reading time or the historical reading times of the page corresponding to each page number counted most recently is obtained by the page turning device.

After obtaining the historical reading time of the page corresponding to each of the page numbers, the fifth obtaining unit 708 may sum the historical reading time of the page corresponding to each of the page numbers, and take the sum result as the total historical reading time. Alternatively, after obtaining the historical reading times of the pages corresponding to the respective page numbers, the fifth obtaining unit 708 may sum the historical reading times of the pages corresponding to the respective page numbers, and use the sum result as the total historical reading time.

After obtaining the total historical reading time, the sixth obtaining unit 709 divides the historical reading time of the page corresponding to each page number by the total historical reading time, and uses the division result as the display width coefficient of the display area where the page number is located. Or after obtaining the total historical reading times, the sixth obtaining unit 709 divides the historical reading times of the page corresponding to each page number by the total historical reading times, and takes the division result as the display width coefficient of the display area where the page number is located.

The page numbers may be displayed on the page turning selection interface in a horizontal direction, and when the page numbers are displayed in the horizontal direction, the seventh obtaining unit 710 obtains the display width of the display area where the page numbers are located according to the width of the page turning selection interface and the display width coefficient of the display area where the page numbers are located, where the width of the page turning selection interface is the horizontal display size of the page turning selection interface. The page number may also be displayed on the page turning selection interface in a longitudinal direction, and when the page number is displayed in the longitudinal direction, the seventh obtaining unit 710 obtains the display width of the display area where each page number is located according to the height of the page turning selection interface and the display width coefficient of the display area where each page number is located, where the height of the page turning selection interface is the longitudinal display size of the page turning selection interface. The height and the width of the page turning selection interface are set according to actual conditions, and the embodiment of the present invention is not limited thereto, for example, the height of the page turning selection interface may be set to the height of the display screen of the electronic product, and the width of the page turning selection interface may be set to the width of the display screen of the electronic product.

The page turning device embodiment provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the page turning device embodiment are not described herein again, and refer to the detailed description of the above method embodiments.

Fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device includes a processor (processor)1001, a memory (memory)1002, and a communication bus 1003;

the processor 1001 and the memory 1002 complete communication with each other through a communication bus 1003;

the processor 1001 is configured to call program instructions in the memory 1002 to perform the methods provided by the above-described method embodiments, including, for example: and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers.

The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers.

The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: and receiving a page turning triggering operation, and displaying a page turning selection interface, wherein the page turning selection interface comprises a display area capable of selecting page numbers.

In addition, the logic instructions in the memory 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 such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an apparatus, or a network device) to execute all or part of the steps of the methods described in 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and not to limit the same; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:剪辑方法、电子设备和计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类