[go: up one dir, main page]

CN110515523B - A method, device, electronic device and storage medium for turning pages of an electronic book - Google Patents

A method, device, electronic device and storage medium for turning pages of an electronic book Download PDF

Info

Publication number
CN110515523B
CN110515523B CN201910791916.6A CN201910791916A CN110515523B CN 110515523 B CN110515523 B CN 110515523B CN 201910791916 A CN201910791916 A CN 201910791916A CN 110515523 B CN110515523 B CN 110515523B
Authority
CN
China
Prior art keywords
page
page turning
touch point
moving distance
chapter
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
CN201910791916.6A
Other languages
Chinese (zh)
Other versions
CN110515523A (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.)
China Mobile Communications Group Co Ltd
MIGU Digital Media Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Digital Media Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Digital Media Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910791916.6A priority Critical patent/CN110515523B/en
Publication of CN110515523A publication Critical patent/CN110515523A/en
Application granted granted Critical
Publication of CN110515523B publication Critical patent/CN110515523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

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

本发明实施例提供一种电子书的翻页方法、装置、电子设备及存储介质。所述方法包括当监听到针对电子书的第一页面的触控操作时,判断触控操作是否满足预设的多页翻页模式触发条件;若满足,则获取触控操作所对应的第一触控点的移动距离;根据第一触控点的移动距离,确定第一触控点的移动距离所对应的翻页量;根据翻页量定位第二页面;执行从电子书的第一页面翻页至第二页面的操作。本发明实施例通过对用户的触控操作进行监控,在满足预设的多页翻页模式触发条件时,触发所述多页翻页模式,根据所述触控操作的第一触控点的移动距离,得到翻页量并执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。

Figure 201910791916

Embodiments of the present invention provide a method, device, electronic device, and storage medium for turning pages of an electronic book. The method includes, when a touch operation on the first page of the e-book is monitored, judging whether the touch operation satisfies a preset trigger condition of a multi-page page turning mode; if so, acquiring the first touch operation corresponding to the touch operation. The movement distance of the touch point; according to the movement distance of the first touch point, determine the page turning amount corresponding to the movement distance of the first touch point; locate the second page according to the page turning amount; The operation of turning pages to the second page. In this embodiment of the present invention, by monitoring the user's touch operation, when a preset trigger condition of the multi-page page turning mode is satisfied, the multi-page page turning mode is triggered, and according to the touch operation of the first touch point of the touch operation, the multi-page page turning mode is triggered. Move the distance, obtain the page turning amount and perform the page turning operation, thereby speeding up the page turning speed of the user when reading the e-book and improving the page turning efficiency.

Figure 201910791916

Description

一种电子书的翻页方法、装置、电子设备及存储介质A kind of electronic book page turning method, device, electronic device and storage medium

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种电子书的翻页方法、装置、电子设备及存储介质。The present invention relates to the field of computer technology, and in particular, to a method, device, electronic device and storage medium for turning pages of an electronic book.

背景技术Background technique

现有技术,电子书中均为单页翻页,即用户通过预订手势(例如滑动等)进行单页翻页。In the prior art, e-books are all single-page page turning, that is, the user performs single-page page turning through a predetermined gesture (eg, sliding, etc.).

但有时用户为了查找书中的信息,比如,需要查找一段精彩内容或一个重要情节,需要快速进行翻页浏览,例如同时翻多页进行浏览,例如同时翻3页或翻5页等。但目前现有技术中尚不存在支持翻多页的浏览方式,因此用户在需要翻页查找所需内容时,影响查找效率。However, sometimes users need to quickly turn pages in order to find information in a book, for example, to find a piece of exciting content or an important plot, such as turning multiple pages at the same time, such as turning 3 pages or 5 pages at the same time. However, at present, there is no browsing mode that supports turning multiple pages in the prior art. Therefore, when a user needs to turn pages to search for desired content, the search efficiency is affected.

可见,现有技术在用户阅读电子书时需要翻页查找内容时效率低下。It can be seen that the prior art is inefficient when a user needs to turn pages to search for content when reading an e-book.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种电子书的翻页方法、装置、电子设备及存储介质,用以解决现有技术中在用户阅读电子书时需要翻页查找内容时效率低下的问题。Embodiments of the present invention provide a method, device, electronic device and storage medium for turning pages of an e-book, so as to solve the problem of low efficiency in the prior art when a user needs to turn pages to find content when reading an e-book.

第一方面,本发明实施例提供了一种电子书的翻页方法,其特征在于,包括:In a first aspect, an embodiment of the present invention provides a method for turning pages of an electronic book, which is characterized by comprising:

当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件;When a touch operation on the first page of the e-book is monitored, determine whether the touch operation satisfies a preset trigger condition of the multi-page page turning mode;

若满足,则获取所述触控操作所对应的第一触控点的移动距离;If satisfied, acquiring the movement distance of the first touch point corresponding to the touch operation;

根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;According to the movement distance of the first touch point, determine the page turning amount corresponding to the movement distance of the first touch point;

根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面;According to the page turning amount, locate the second page from the electronic book as the target page after page turning;

执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。An operation of turning pages from the first page of the e-book to the second page of the e-book is performed.

进一步地,所述根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量,具体包括:Further, determining the page turning amount corresponding to the movement distance of the first touch point according to the movement distance of the first touch point specifically includes:

判断所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件;judging whether the moving distance of the first touch point satisfies a preset trigger condition of the cross-chapter page turning mode;

若满足所述预设的跨章翻页模式触发条件,则确定与所述第一触控点的移动距离对应的章节数量,作为所述翻页量。If the preset trigger condition of the page turning mode across chapters is satisfied, the number of chapters corresponding to the moving distance of the first touch point is determined as the page turning amount.

进一步地,所述若满足所述预设的跨章翻页模式触发条件,则确定与所述第一触控点的移动距离对应的章节数量,作为所述翻页量,具体包括:Further, if the preset trigger condition for the page-turning mode across chapters is satisfied, determining the number of chapters corresponding to the moving distance of the first touch point as the page-turning amount, specifically including:

若满足所述预设的跨章翻页模式触发条件,则获取所述触控操作所对应的第二触控点的移动距离;If the preset trigger condition of the cross-chapter page turning mode is satisfied, acquiring the movement distance of the second touch point corresponding to the touch operation;

根据所述第二触控点的移动距离,确定与所述第二触控点的移动距离对应的章节数量,作为所述翻页量。According to the movement distance of the second touch point, the number of chapters corresponding to the movement distance of the second touch point is determined as the page turning amount.

进一步地,所述判断所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件,具体包括:Further, the judging whether the moving distance of the first touch point satisfies a preset trigger condition of the cross-chapter page turning mode specifically includes:

根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数,得到第一单位长度值;Obtain the first unit length value according to the preset first maximum lateral movement distance and the total number of pages in the first chapter where the first page is located;

根据所述第一页面在所述第一章节的所有页面中的位置和所述第一单位长度值,得到所述第一触控点的第一最大横向移动范围;obtaining a first maximum lateral movement range of the first touch point according to the position of the first page in all pages of the first chapter and the first unit length value;

根据所述触控操作的移动方向判断所述第一触控点的移动距离是否超过所述第一最大横向移动范围;Determine whether the movement distance of the first touch point exceeds the first maximum lateral movement range according to the movement direction of the touch operation;

若超出,则判定所述第一触控点的移动距离满足所述预设的跨章翻页模式触发条件;若未超出,则判定所述第一触控点的移动距离不满足所述预设的跨章翻页模式触发条件。If it exceeds, it is determined that the moving distance of the first touch point satisfies the preset trigger condition of the cross-chapter page turning mode; if it does not exceed, it is determined that the moving distance of the first touch point does not meet the preset trigger condition. Set the trigger condition for the page-turning mode across chapters.

进一步地,所述根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量,还包括:Further, the determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point further includes:

若不满足所述预设的跨章翻页模式触发条件,则根据所述第一触控点的移动距离,以及第一单位长度值,确定所述第一触控点的移动距离所对应的翻页量;其中,所述第一单位长度值是根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数确定的。If the preset triggering condition of the cross-chapter page turning mode is not met, then according to the moving distance of the first touch point and the first unit length value, determine the corresponding value of the moving distance of the first touch point. The page turning amount; wherein, the first unit length value is determined according to the preset first maximum lateral movement distance and the total number of pages in the first chapter where the first page is located.

进一步地,所述根据所述第二触控点的移动距离,确定与所述第二触控点的移动距离对应的章节数量,作为所述翻页量,具体包括:Further, determining the number of chapters corresponding to the movement distance of the second touch point according to the movement distance of the second touch point, as the page turning amount, specifically includes:

根据所述触控操作的移动方向,得到所述第二触控点在所述移动方向上允许滑动的第二最大横向移动距离;obtaining, according to the movement direction of the touch operation, a second maximum lateral movement distance that the second touch point is allowed to slide in the movement direction;

根据所述第二最大横向移动距离,以及所述第一页面所在的第一章节在所述电子书的所有章节中的位置,得到在所述移动方向上对应的第二单位长度值;Obtain a second unit length value corresponding to the moving direction according to the second maximum lateral movement distance and the position of the first chapter where the first page is located in all chapters of the e-book;

根据所述第二触控点在所述移动方向上的移动距离,以及所述第二单位长度值,确定所述第二触控点的移动距离对应的章节数量,作为所述翻页量。According to the moving distance of the second touch point in the moving direction and the second unit length value, the number of chapters corresponding to the moving distance of the second touch point is determined as the page turning amount.

进一步地,所述方法还包括:Further, the method also includes:

若所述电子书的翻页模式为多页翻页模式,则在显示界面上,将所述触控操作的第一触控点位置和所述翻页量的信息进行关联显示;If the page-turning mode of the e-book is a multi-page page-turning mode, displaying the position of the first touch point of the touch operation and the information of the page turning amount in an associated display on the display interface;

若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,将所述触控操作的第二触控点位置和所述翻页量的信息进行关联显示。If the page-turning mode of the e-book is a cross-chapter page-turning mode, on the display interface, the position of the second touch point of the touch operation and the information of the page turning amount are displayed in association.

进一步地,所述方法还包括:Further, the method also includes:

若所述电子书的翻页模式为多页翻页模式,则在显示界面上,所述翻页量的信息的字体随着所述翻页量的变化而改变大小;If the page-turning mode of the e-book is a multi-page page-turning mode, then on the display interface, the font of the page-turning amount information changes in size along with the page-turning amount;

若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,所述翻页量的信息的字体大小固定。If the page turning mode of the e-book is a cross-chapter page turning mode, on the display interface, the font size of the page turning amount information is fixed.

第二方面,本发明实施例还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现第一方面提供的电子书的翻页方法的步骤。In a second aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the first aspect when executing the program Provides the steps of the page turning method of the e-book.

第三方面,本发明实施例还提供了一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现第一方面提供的电子书的翻页方法的步骤。In a third aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method for turning pages of an electronic book provided in the first aspect. step.

本发明实施例提供的电子书的翻页方法、装置、电子设备及存储介质,通过对用户的触控操作进行监控,在满足预设的多页翻页模式触发条件时,触发所述多页翻页模式,根据所述触控操作的第一触控点的移动距离,得到翻页量并执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。The method, device, electronic device, and storage medium for turning pages of an e-book provided by the embodiments of the present invention monitor the user's touch operation, and trigger the multi-page page turning mode triggering conditions when a preset multi-page page turning mode trigger condition is met. In the page turning mode, according to the moving distance of the first touch point of the touch operation, the page turning amount is obtained and the page turning operation is performed, thereby speeding up the page turning speed of the user when reading the e-book and improving the page turning efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明一实施例提供的电子书的翻页方法流程图;1 is a flowchart of a method for turning pages of an electronic book provided by an embodiment of the present invention;

图2为本发明另一实施例提供的电子书的翻页方法流程图;2 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention;

图3为本发明又一实施例提供的电子书的翻页方法流程图;3 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention;

图4为本发明又一实施例提供的电子书的翻页方法流程图;4 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention;

图5为本发明又一实施例提供的电子书的翻页方法流程图;5 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention;

图6为本发明又一实施例提供的翻页方法中界面操作示意图;6 is a schematic diagram of interface operations in a page turning method provided by another embodiment of the present invention;

图7为本发明又一实施例提供的翻页方法中界面操作示意图;7 is a schematic diagram of interface operations in a page turning method provided by another embodiment of the present invention;

图8为本发明实施例提供的电子书的翻页装置结构示意图;8 is a schematic structural diagram of a page-turning device for an electronic book provided by an embodiment of the present invention;

图9为本发明实施例提供的电子设备的实体结构示意图。FIG. 9 is a schematic diagram of a physical structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, 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 and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明各实施例针对现有技术阅读电子书的过程中,阅读终端不支持翻多页的阅读模式而导致阅读效率低下的问题,提供一种基于指划动作判断的翻页方法,通过用户指压滑动的行为变化来判断用户是翻一页还是翻多页的看书意图,实现一次翻多页的效果,不仅在需要翻页查找内容时提高了查找效率,也在一定程度上让用户感受贴近实际的翻页效果,提升了阅读体验。In order to solve the problem of low reading efficiency caused by the fact that the reading terminal does not support the reading mode of turning multiple pages during the process of reading e-books in the prior art, the embodiments of the present invention provide a page turning method based on judgment based on finger swipe actions. The behavior change of pressing and sliding is used to judge whether the user's reading intention is to turn one page or multiple pages, and realize the effect of turning multiple pages at a time, which not only improves the search efficiency when turning pages to find content, but also makes users feel close The actual page turning effect improves the reading experience.

本发明实施例可以在不影响原有电子书阅读体验的基础上,新增翻多页的阅读体验。通过手指在屏幕上滑动操作行为判断是否进入多页翻页状态,并通过左右指划动作来实现查找目标页并进行多页翻页效果,该方法可以应用于任何具有电子书阅读并具有触控屏的电子终端上。The embodiment of the present invention can add a new reading experience of turning multiple pages without affecting the original e-book reading experience. Judging whether to enter the multi-page turning state through the finger sliding operation behavior on the screen, and through the left and right finger swiping actions to find the target page and perform multi-page turning effect, this method can be applied to any e-book reading and touch-sensitive on the electronic terminal of the screen.

图1为本发明一实施例提供的电子书的翻页方法流程图,如图1所示,所述方法包括:FIG. 1 is a flowchart of a method for turning pages of an electronic book provided by an embodiment of the present invention. As shown in FIG. 1 , the method includes:

步骤S01、当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件。Step S01 , when a touch operation on the first page of the e-book is monitored, determine whether the touch operation satisfies a preset trigger condition of a multi-page page turning mode.

终端在显示界面上显示电子书以供用户进行阅读的过程中,所述终端会实时监测是否出现对所述电子书的触控操作。During the process that the terminal displays the e-book on the display interface for the user to read, the terminal will monitor in real time whether a touch operation on the e-book occurs.

可以理解的是终端显示界面为具有触控功能的界面,例如为触控屏,本发明实施例中可以采用各类型的触控屏,例如电阻式、电容感应式、红外线式或表面声波式等,即对触控屏的种类并不做任何限定。It can be understood that the terminal display interface is an interface with a touch function, such as a touch screen, and various types of touch screens can be used in the embodiment of the present invention, such as a resistive type, a capacitive induction type, an infrared type, or a surface acoustic wave type, etc. , that is, there is no restriction on the type of touch screen.

可以理解的是,所述的第一页面为终端监测确定出现对所述电子书的触控操作时,电子书当前所显的页面。It can be understood that the first page is the page currently displayed by the e-book when the terminal monitors and determines that a touch operation on the e-book occurs.

在终端确定出现对所述电子书的触控操作后,需要对该触控操作进行实时的监测,例如可以实时统计本次触控操作在当前时刻ti的触控操作的信息,所述触控操作的信息可以包括本次触控操作的操作时长t1,即当前时刻ti与触控操作出现时刻T0的差值,以及触控操作的当前位置Si,即所述触控操作在当前时刻ti在终端的显示界面对应的触控点的坐标。After the terminal determines that there is a touch operation on the e-book, the touch operation needs to be monitored in real time. For example, the touch operation information of the touch operation at the current moment ti can be counted in real time. The operation information may include the operation duration t1 of the current touch operation, that is, the difference between the current time ti and the time T0 of the touch operation, and the current position Si of the touch operation, that is, the touch operation is at the current time ti at the current time ti. The coordinates of the touch point corresponding to the display interface of the terminal.

基于对该触控操作进行的上述实时监测,可以对该触控操作是否满足预设的多页翻页模式触发条件进行判断。可以理解的是,所述的实时监测包括从触控操作开始直至该触控操作结束的整个操作过程,均进行监测。Based on the above-mentioned real-time monitoring of the touch operation, it can be determined whether the touch operation satisfies the preset trigger condition of the multi-page page turning mode. It can be understood that the real-time monitoring includes monitoring the entire operation process from the start of the touch operation to the end of the touch operation.

其中,所述的多页翻页模式为基于用户的触控操作一次性进行翻多页的翻页模式。可以理解的是,所述的多页翻页模式是区别于单页翻页模式的。在单页翻页模式下,其每次翻页的控制是从当前页翻到临近的前一页或后一页的逐页翻页的形式,例如当前页是P30页,在单页翻页模式下,其翻页的目标页可以为P31或P29页。而多页翻页模式下,其每次翻页的控制是一次性地翻多页,即从当前页翻直接翻到目标页的翻页形式,当前页和目标页之间间隔至少1页,例如当前页是P30页,在多页翻页模式下,其翻页的目标页可以为P40或P20页。Wherein, the multi-page page turning mode is a page turning mode in which multiple pages are turned at one time based on a user's touch operation. It can be understood that the multi-page page turning mode is different from the single-page page turning mode. In the single-page page-turning mode, the control of each page-turning is in the form of page-by-page turning from the current page to the adjacent previous or next page. In the mode, the target page of its page turning can be P31 or P29 page. In the multi-page page turning mode, the control of each page turning is to turn multiple pages at one time, that is, the page turning form of turning from the current page to the target page directly, and the interval between the current page and the target page is at least 1 page. For example, the current page is page P30, and in the multi-page turning mode, the target page for turning pages can be page P40 or page P20.

进一步地,所述的多页翻页模式触发条件可以理解为,监测到的所述触控操作需要满足一定的条件,以使得终端能够根据该触控操作确定用户此次的翻页意图并不是想逐页的翻阅,而是想一次性翻多页的快速翻页。所述的多页翻页模式触发条件的设定可以根据实际需要进行设定,例如根据用户的触控操作的操作时间以及操作轨迹横向宽度来进行判断,关于多页翻页模式触发条件在本发明下面的实施例中有详细的介绍。Further, the trigger condition of the multi-page page turning mode can be understood as that the monitored touch operation needs to meet certain conditions, so that the terminal can determine according to the touch operation that the user's intention to turn the page this time is not. I want to page by page, but I want to quickly turn multiple pages at a time. The setting of the trigger condition of the multi-page page turning mode can be set according to actual needs, for example, it is judged according to the operation time of the user's touch operation and the horizontal width of the operation track. The invention is described in detail in the following examples.

可以理解的是,判断所述触控操作是否满足预设的多页翻页模式触发条件时,若确定所述触控操作满足多页翻页模式触发条件,则进入多页翻页模式以实现同时翻多页的控制。若确定所述触控操作不满足多页翻页模式触发条件,则可以进入单页翻页模式以实现逐页翻页的控制。有关单页翻页模式下逐页翻页的控制,可以采用任何现有技术来实现,本发明实施例不做任何限定,此处也不进行相关内容的赘述。It can be understood that, when judging whether the touch operation satisfies the preset trigger condition of the multi-page turning mode, if it is determined that the touch operation meets the triggering condition of the multi-page turning mode, then entering the multi-page turning mode to realize Control of turning multiple pages at the same time. If it is determined that the touch operation does not meet the triggering condition of the multi-page page turning mode, the single-page page turning mode can be entered to realize the control of page-by-page turning. The control of page-by-page page-turning in the single-page page-turning mode may be implemented by using any existing technology, which is not limited in the embodiment of the present invention, and the related content is not described in detail here.

步骤S02、若满足,则获取所述触控操作所对应的第一触控点的移动距离。Step S02 , obtaining the movement distance of the first touch point corresponding to the touch operation if it is satisfied.

在对用户的触控操作进行监测的整个过程中,若确定所述触控操作满足预设的多页翻页模式触发条件,则进入多页翻页模式。可以理解的是,用户的触控操作是持续进行的,若当触控操作满足多页翻页模式触发条件之前就已经结束,那么此次的触控操作应该是仅满足单页翻页模式触发条件,此时终端在单页翻页模式下对翻页进行控制,即逐页翻页。当触控操作结束之前,已经满足了多页翻页模式触发条件,此时终端应该由之前的单页翻页模式切换为多页翻页模式,即在多页翻页模式下对翻页进行控制,即同时翻多页。可以理解的是,当终端从单页翻页模式切换为多页翻页模式时,该触控操作所对应的终端显示界面上的触控点,本发明各实施例中将该触控点称之为第一触控点。也就是说,用户的触控操作的过程中,触控轨迹在所述第一触控点的位置,终端由单页翻页模式切换为多页翻页模式,后续可以实现同时翻多页的技术效果。During the whole process of monitoring the user's touch operation, if it is determined that the touch operation satisfies the preset trigger condition of the multi-page page turning mode, the multi-page page turning mode is entered. It can be understood that the user's touch operation is continuous. If the touch operation has ended before satisfying the trigger condition of the multi-page page turning mode, the touch operation this time should only satisfy the triggering condition of the single-page page turning mode. condition, at this time, the terminal controls the page turning in the single-page page turning mode, that is, turning pages one by one. Before the touch operation ends, the triggering condition of the multi-page page turning mode has been satisfied. At this time, the terminal should switch from the previous single-page page turning mode to the multi-page page turning mode, that is, the page turning is performed in the multi-page page turning mode. Control, that is, turn multiple pages at the same time. It can be understood that, when the terminal switches from the single-page page-turning mode to the multi-page page-turning mode, the touch point on the terminal display interface corresponding to the touch operation is referred to as the touch point in each embodiment of the present invention. It is the first touch point. That is to say, in the process of the user's touch operation, the touch track is at the position of the first touch point, and the terminal switches from the single-page page-turning mode to the multi-page page-turning mode, and subsequently can realize the simultaneous turning of multiple pages. technical effect.

进一步地,在触控操作满足预设的多页翻页模式触发条件,且确定了所述第一触控点后,需要继续对触控操作进行监测,可以获取在所述第一触控点后触控操作的操作轨迹的移动距离。可以理解的是,所述的触控操作所对应的第一触控点的移动距离,指的就是操作轨迹中从所述第一触控点到当前触控点的距离。Further, after the touch operation satisfies the preset trigger condition of the multi-page page turning mode, and the first touch point is determined, it is necessary to continue to monitor the touch operation, and the first touch point can be obtained. The moving distance of the operation track of the post-touch operation. It can be understood that the moving distance of the first touch point corresponding to the touch operation refers to the distance from the first touch point to the current touch point in the operation track.

为清楚介绍本发明实施例的技术方案,在本发明各实施例中以所述第一触控点到当前触控点之间的横向差值作为移动距离为例进行具体的举例说明。另外,由于终端对于触控操作的灵敏度,与所述终端显示界面的分辨率有关,在下面的实施例中与距离相关的数值均以像素为单位进行举例说明。In order to clearly introduce the technical solutions of the embodiments of the present invention, in each embodiment of the present invention, the lateral difference between the first touch point and the current touch point is taken as the moving distance as an example for specific illustration. In addition, since the sensitivity of the terminal to the touch operation is related to the resolution of the display interface of the terminal, the numerical values related to the distance in the following embodiments are all illustrated in units of pixels.

步骤S03、根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;Step S03, determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point;

根据获取到的所述第一触控点的移动距离,可以进一步得到所述第一触控点的移动距离对应的翻页量。可以理解的,在多页翻页模式下,电子书可以向前同时翻多页,也可以向后同时翻多页。举例说明,例如第一页面是P30页,则所述的向前同时翻多页可以是指同时翻多页至P20页,所述的向后同时翻多页可以是指同时翻多页至P40页,等等。According to the obtained movement distance of the first touch point, the page turning amount corresponding to the movement distance of the first touch point can be further obtained. It can be understood that in the multi-page turning mode, the e-book can turn multiple pages forward at the same time, and can also turn multiple pages backward at the same time. For example, if the first page is page P30, then turning multiple pages forward at the same time may refer to turning multiple pages to P20 at the same time, and turning multiple pages backward at the same time may refer to turning multiple pages to P40 at the same time page, etc.

可以理解的,翻页的翻页量与所述第一触控点的移动距离有关,所述第一触控点的移动距离越长同时翻页的翻页量就越多,所述第一触控点的移动距离越短同时翻页的翻页量就越少。It can be understood that the amount of page-turning is related to the moving distance of the first touch point. The longer the moving distance of the first touch point, the greater the amount of page-turning. The shorter the moving distance of the touch point, the less the amount of page turning at the same time.

步骤S04、根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面。Step S04: According to the page turning amount, locate the second page from the electronic book as the target page after page turning.

确定了所述第一触控点的移动距离所对应的翻页量后,便可以根据翻页量确定出翻页后的目标页面的第二页面了。举例说明,例如第一页面是P30页,所确定的向后同时翻多页为10页,则P40页即为翻页后的目标页面,为了便于理解和论述,本发明实施例中将该目标页面称之为第二页面。After the page turning amount corresponding to the moving distance of the first touch point is determined, the second page of the target page after page turning can be determined according to the page turning amount. For example, for example, the first page is page P30, and the determined number of pages to be turned backwards at the same time is 10 pages, then page P40 is the target page after page turning. In order to facilitate understanding and discussion, in this embodiment of the present invention, this target The page is called the second page.

步骤S05、执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。Step S05 , performing an operation of turning pages from the first page of the e-book to the second page of the e-book.

在多页翻页模式下,所述终端可以对电子书实时根据当前得到的第二页面执行翻页操作,即通过翻多页的方式直接从第一页面翻至第二页面,而不是一页一页的翻页。In the multi-page turning mode, the terminal can perform a page turning operation on the e-book in real time according to the currently obtained second page, that is, directly turning from the first page to the second page by turning multiple pages instead of one page A page turn.

或者在所述终端判定本次触控操作未结束时先根据所述翻页量执行翻页的预览,而当判定触控操作结束时,则根据所述触控操作结束时刻得到的第二页面,对所述电子书执行翻页操作,使电子书从第一页面翻到第二页面。Or when the terminal determines that the current touch operation has not ended, first executes a preview of the page turning according to the page turning amount, and when it is determined that the touch operation ends, the second page obtained at the time when the touch operation ends is performed. , and perform a page turning operation on the e-book, so that the e-book is turned from the first page to the second page.

本发明实施例提供的电子书的翻页方法,通过对用户的触控操作进行监控,在满足预设的多页翻页模式触发条件时,触发所述多页翻页模式,根据所述触控操作的第一触控点的移动距离,得到翻页量并执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。The method for turning pages of an e-book provided by the embodiment of the present invention monitors the touch operation of the user, and when a preset trigger condition of the multi-page page turning mode is satisfied, the multi-page turning mode is triggered, and the multi-page turning mode is triggered according to the touch operation. The moving distance of the first touch point of the control operation is used to obtain the page turning amount and perform the page turning operation, thereby speeding up the page turning speed of the user when reading the e-book and improving the page turning efficiency.

图2为本发明另一实施例提供的电子书的翻页方法流程图,如图2所示,所述步骤S03具体包括:FIG. 2 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention. As shown in FIG. 2 , the step S03 specifically includes:

步骤S031、判断所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件。Step S031 , judging whether the moving distance of the first touch point satisfies a preset triggering condition of the cross-chapter page turning mode.

由于所述的实时监测包括从触控操作开始直至该触控操作结束的整个操作过程,因此在判断确定触控操作满足预设的多页翻页模式触发条件后,该触控操作尚未结束即操作轨迹仍在继续的情况下,本发明实施例需要进一步地对所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件进行判断。其中,所述第一触控点的移动距离与上述实施例中介绍的所述第一触控点的移动距离是一致的。Since the real-time monitoring includes the entire operation process from the start of the touch operation to the end of the touch operation, after it is determined that the touch operation satisfies the preset trigger condition of the multi-page page turning mode, the touch operation has not ended. In the case where the operation trajectory is still continued, the embodiment of the present invention needs to further determine whether the moving distance of the first touch point satisfies the preset trigger condition of the cross-chapter page turning mode. Wherein, the moving distance of the first touch point is consistent with the moving distance of the first touch point introduced in the above embodiment.

为了进一步增加所述电子书的翻页效率,所述电子书还可以增加设置跨章翻页模式,从而使所述电子书在跨章翻页模式下以章节为单位执行翻页操作。其中,所述的跨章翻页模式为基于用户的触控操作一次性进行跨章翻页的翻页模式。可以理解的是,所述的跨章翻页模式是区别于单页翻页模式和多页翻页模式的。在多页翻页模式下,其每次翻页的控制是一次性地翻多页。由于电子书一般包括多个章,每章内包括多页,所述的多页翻页模式是在同一章内实现多页的翻阅,而所述的跨章翻页模式并不是以页为翻页单位,而是以章为翻页单位。在所述的跨章翻页模式下,现实的从第一页面所在的章直接翻页到下一章或下下一章。举例来说,所述的第一页面所在的章为第2章,那么在跨章翻页模式下,可以直接翻页至第3章或第1章,也可以一次性跨多章进行翻页,例如一次性翻页至第5章。可以理解的是,由于电子书中每章是包括多页的,因此跨章翻页模式同样也可以实现翻多页的效果。In order to further increase the page-turning efficiency of the e-book, a cross-chapter page-turning mode may be added to the e-book, so that the e-book performs a page-turning operation in units of chapters in the cross-chapter page turning mode. Wherein, the cross-chapter page-turning mode is a page-turning mode in which cross-chapter page turning is performed at one time based on a user's touch operation. It can be understood that the cross-chapter page turning mode is different from the single-page page turning mode and the multi-page page turning mode. In the multi-page turning mode, the control of each page turning is to turn multiple pages at one time. Since an e-book generally includes multiple chapters, and each chapter includes multiple pages, the multi-page page-turning mode is to realize the page-turning of multiple pages in the same chapter, and the cross-chapter page-turning mode is not based on pages. The page turning unit, but the chapter is the page turning unit. In the described cross-chapter page turning mode, the page is turned directly from the chapter where the first page is located to the next chapter or the next chapter in reality. For example, if the chapter where the first page is located is Chapter 2, then in the cross-chapter page turning mode, you can turn pages directly to Chapter 3 or Chapter 1, or you can turn pages across multiple chapters at one time , such as flipping the page to Chapter 5 at once. It can be understood that, since each chapter in the e-book includes multiple pages, the cross-chapter page turning mode can also achieve the effect of turning multiple pages.

进一步地,所述的跨章翻页模式触发条件可以理解为,监测到的所述触控操作需要满足一定的条件,以使得终端能够根据该触控操作确定用户此次的翻页意图并不是想逐页的翻阅,也不是想在电子书中同一章中一次性翻多页的快速翻页,而是希望能够跨章进行翻页阅读。所述的跨章翻页模式触发条件的设定可以根据实际需要进行设定,例如根据用户的触控操作在满足多页翻页模式触发条件后,根据所述第一触控点的移动距离来进行判断,关于跨章翻页模式触发条件在本发明下面的实施例中有详细的介绍。Further, the trigger condition of the cross-chapter page turning mode can be understood as that the monitored touch operation needs to meet certain conditions, so that the terminal can determine that the user's intention to turn the page this time is not based on the touch operation. If you want to page by page, you don't want to quickly turn multiple pages at a time in the same chapter of the e-book, but you want to be able to read pages across chapters. The setting of the trigger condition of the cross-chapter page turning mode can be set according to actual needs, for example, according to the user's touch operation after satisfying the trigger condition of the multi-page page turning mode, according to the moving distance of the first touch point. The trigger condition of the cross-chapter page turning mode is described in detail in the following embodiments of the present invention.

可以理解的是,判断所述触控操作是否满足预设的跨章翻页模式触发条件时,若确定所述触控操作满足跨章翻页模式触发条件,则从多页翻页模式切换至跨章翻页模式,以实现翻章的控制。若确定所述触控操作不满足跨章翻页模式触发条件,则可以在多页翻页模式下实现翻多页的控制。有关多页翻页模式下翻多页的控制,可以参见上述实施例介绍的内容,此处不在赘述。It can be understood that, when judging whether the touch operation satisfies the preset trigger condition of the page turning mode across chapters, if it is determined that the touch operation satisfies the trigger condition of the page turning mode across chapters, switch from the multi-page page turning mode to Cross-chapter page turning mode to realize the control of turning chapters. If it is determined that the touch operation does not satisfy the trigger condition of the cross-chapter page turning mode, the control of turning multiple pages can be realized in the multi-page page turning mode. For the control of turning multiple pages in the multi-page turning mode, reference may be made to the content introduced in the above embodiment, and details are not described here.

步骤S032、若满足所述预设的跨章翻页模式触发条件,则确定与所述第一触控点的移动距离对应的章节数量,作为所述翻页量。Step S032: If the preset trigger condition of the page-turning mode across chapters is satisfied, determine the number of chapters corresponding to the moving distance of the first touch point as the page-turning amount.

若所述触控操作满足所述预设的跨章翻页模式触发条件,则所述终端将所述电子书的翻页模式切换为跨章翻页模式。再根据所述第一触控点的移动距离确定对应的章节数量。If the touch operation satisfies the preset trigger condition for the page-turning mode across chapters, the terminal switches the page-turning mode of the e-book to the page-turning mode across chapters. Then, the corresponding number of chapters is determined according to the moving distance of the first touch point.

本发明实施例通过监控所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件,若满足,将所述电子书切换为跨章翻页模式,进而确定与第一触控点的移动距离对应的章节数量作为翻页量执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In this embodiment of the present invention, by monitoring whether the moving distance of the first touch point satisfies a preset trigger condition for the page-turning mode across chapters, if so, the e-book is switched to the page-turning mode across chapters, and then it is determined that the The number of chapters corresponding to the moving distance of the touch point is used as the page turning amount to perform the page turning operation, thereby speeding up the page turning speed of the user when reading the e-book and improving the page turning efficiency.

图3为本发明又一实施例提供的电子书的翻页方法流程图,如图3所示,所述上步骤S032具体包括:FIG. 3 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention. As shown in FIG. 3 , the above step S032 specifically includes:

步骤S0321、若满足所述预设的跨章翻页模式触发条件,则获取所述触控操作所对应的第二触控点的移动距离。Step S0321: If the preset triggering condition of the cross-chapter page turning mode is satisfied, obtain the moving distance of the second touch point corresponding to the touch operation.

当所述第一触发点移动距离满足预设的跨章翻页模式触发条件时,所述终端将进入跨章翻页模式,此时,需要先确定与所述跨章翻页模式对应的所述触控操作的第二触控点,并监控所述第二触控点的移动距离。When the moving distance of the first trigger point satisfies the preset trigger condition for the cross-chapter page turning mode, the terminal will enter the cross-chapter page turning mode. The second touch point of the touch operation is monitored, and the moving distance of the second touch point is monitored.

可以理解的是,当终端从多页翻页模式切换为跨章翻页模式时,该触控操作所对应的终端显示界面上的触控点,本发明各实施例中将该触控点称之为第二触控点。也就是说,用户的触控操作的过程中,触控轨迹在所述第二触控点的位置,终端由多页翻页模式切换为跨章翻页模式,后续可以实现跨章翻页的技术效果。It can be understood that, when the terminal switches from the multi-page page turning mode to the cross-chapter page turning mode, the touch point on the terminal display interface corresponding to the touch operation is referred to as the touch point in each embodiment of the present invention. This is the second touch point. That is to say, during the user's touch operation, when the touch track is at the position of the second touch point, the terminal switches from the multi-page page turning mode to the cross-chapter page turning mode, and the subsequent page turning across chapters can be realized. technical effect.

进一步地,在触控操作满足预设的跨章翻页模式触发条件,且确定了所述第二触控点后,需要继续对触控操作进行监测,可以获取在所述第二触控点后触控操作的移动距离。可以理解的是,所述的触控操作所对应的第二触控点的移动距离,指的就是操作轨迹中从所述第二触控点到当前触控点的距离。Further, after the touch operation satisfies the preset trigger condition of the cross-chapter page turning mode, and the second touch point is determined, it is necessary to continue to monitor the touch operation, and the second touch point can be obtained. The movement distance of the back touch operation. It can be understood that the moving distance of the second touch point corresponding to the touch operation refers to the distance from the second touch point to the current touch point in the operation track.

为清楚介绍本发明技术方案,在本发明各实施例中以所述第二触控点到当前触控点之间的横向差值作为移动距离为例进行具体的举例说明。In order to clearly introduce the technical solution of the present invention, in each embodiment of the present invention, the lateral difference between the second touch point and the current touch point is taken as an example for a moving distance for specific illustration.

步骤S0322、根据所述第二触控点的移动距离,确定所述第二触控点的移动距离对应的章节数量,作为所述翻页量。Step S0322 , according to the movement distance of the second touch point, determine the number of chapters corresponding to the movement distance of the second touch point as the page turning amount.

获得所述触控操作所对应的第二触控点的移动距离后,可以根据第二触控点的移动距离确定对应的章节数量,并根据章节数量来进一步确定所述翻页量并进行后续的翻页操作。After obtaining the movement distance of the second touch point corresponding to the touch operation, the corresponding number of chapters may be determined according to the movement distance of the second touch point, and the page turning amount may be further determined according to the number of chapters and follow-up page turning operation.

可以理解的,翻页的翻页量与所述第二触控点的移动距离有关,所述第二触控点的移动距离越长同时翻页的章节数量就越多,所述第二触控点的移动距离越短同时翻页的章节数量就越少。It can be understood that the amount of page turning is related to the moving distance of the second touch point. The shorter the movement distance of the handle, the fewer chapters can be turned simultaneously.

本发明实施例通过在进入跨章翻页模式时监控第二触控点的移动距离,获取与所述第二触控点的移动距离对应的章节数量作为翻页量执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In the embodiment of the present invention, the page turning operation is performed by monitoring the moving distance of the second touch point when entering the cross-chapter page turning mode, and obtaining the number of chapters corresponding to the moving distance of the second touch point as the page turning amount, thereby speeding up the page turning operation. The page-turning speed of the user when reading the e-book is improved, and the page-turning efficiency is improved.

基于上述实施例,进一步地,所述步骤S031具体包括:Based on the above embodiment, further, the step S031 specifically includes:

根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数,得到第一单位长度值;Obtain the first unit length value according to the preset first maximum lateral movement distance and the total number of pages in the first chapter where the first page is located;

根据所述第一页面在所述第一章节的所有页面中的位置和所述第一单位长度值,得到所述第一触控点的第一最大横向移动范围;obtaining a first maximum lateral movement range of the first touch point according to the position of the first page in all pages of the first chapter and the first unit length value;

根据所述触控操作的移动方向判断所述第一触控点的移动距离是否超过所述第一最大横向移动范围;Determine whether the movement distance of the first touch point exceeds the first maximum lateral movement range according to the movement direction of the touch operation;

若超出,则判定所述第一触控点的移动距离满足所述预设的跨章翻页模式触发条件;若未超出,则判定所述第一触控点的移动距离不满足所述预设的跨章翻页模式触发条件。If it exceeds, it is determined that the moving distance of the first touch point satisfies the preset trigger condition of the cross-chapter page turning mode; if it does not exceed, it is determined that the moving distance of the first touch point does not meet the preset trigger condition. Set the trigger condition for the page-turning mode across chapters.

所述多页翻页模式与跨章翻页模式的主要区别在于,可将所述多页翻页模式认为是在章节内的翻页模式,即在多页翻页模块下根据翻页量得到的第二页面与第一页面属于同一章节。The main difference between the multi-page page-turning mode and the cross-chapter page-turning mode is that the multi-page page-turning mode can be considered as a page-turning mode within a chapter, that is, the multi-page page-turning module is obtained according to the page-turning amount. The second page of the page belongs to the same chapter as the first page.

其中,所述的第一最大横向移动距离可以理解为触控操作的操作轨迹从触控操作的起始触控点到第一触控点之间的距离,即终端从单页翻页模式切换至多页翻页模式时,操作轨迹所对应的距离。所述的第一单位长度值为在多页翻页模式下每翻一页所对应的指划位移量,其可以根据第一最大横向移动距离以及所述第一页面所在的章节内的页面总数来确定。The first maximum lateral movement distance can be understood as the distance between the operation track of the touch operation from the initial touch point of the touch operation to the first touch point, that is, the terminal switches from the single-page page turning mode The distance corresponding to the operation track in the multi-page turning mode. The first unit length value is the finger displacement amount corresponding to each page turned in the multi-page page turning mode, which can be based on the first maximum lateral movement distance and the total number of pages in the chapter where the first page is located. to make sure.

确定出在多页翻页模式下每翻一页所对应的指划位移量后,可以结合所述第一页面在所述章节的所有页面中的位置,得到所述第一触控点的第一最大横向移动范围。可以理解的是,由于翻多页可以向前翻多页,也可以向后翻多页,因此所述的第一最大横向移动范围可以包括两个方向上的第一最大横向移动范围。After determining the finger stroke displacement corresponding to each page turned in the multi-page turning mode, the position of the first page in all pages of the chapter can be combined to obtain the first touch point of the first touch point. A maximum lateral movement range. It can be understood that, since turning multiple pages can turn multiple pages forward or backward, the first maximum lateral movement range may include the first maximum lateral movement range in two directions.

再结合所述触控操作的移动方向来判断所述第一触控点的移动距离是否超过所述第一最大横向移动范围。所述触控操作的移动方向也包括两个方向,例如若向左移动,则可以表示向前翻多页,若向右移动,则可以表示向后翻多页。而且由于两个方向上的第一最大横向移动范围有可能不同,因此需要结合触控操作的移动方向来确定是否满足所述预设的跨章翻页模式触发条件。可以理解地,若触控操作的移动方向是向右,则说明用户希望向后翻多页,则判断第一触控点的向右的移动距离是否超过向后翻多页的方向所对应的第一最大横向移动范围,若超过则满足所述预设的跨章翻页模式触发条件,若不超过,则不满足所述预设的跨章翻页模式触发条件。In combination with the movement direction of the touch operation, it is determined whether the movement distance of the first touch point exceeds the first maximum lateral movement range. The moving direction of the touch operation also includes two directions. For example, if it moves to the left, it may mean turning multiple pages forward, and if it moves to the right, it may mean turning multiple pages backward. Moreover, since the first maximum lateral movement ranges in the two directions may be different, it is necessary to combine the movement directions of the touch operation to determine whether the preset trigger condition of the cross-chapter page turning mode is satisfied. Understandably, if the moving direction of the touch operation is to the right, it means that the user wishes to turn back multiple pages, and then it is determined whether the moving distance to the right of the first touch point exceeds the direction corresponding to the direction of turning back multiple pages. If the first maximum lateral movement range exceeds the preset trigger condition for the cross-chapter page turning mode, if it does not exceed the preset trigger condition for the cross-chapter page turning mode.

本发明实施例通过所述第一页面在所述第一章节中的位置以及所述第一章节的页面总数,确定所述第一单位长度值,以及第一最大横向移动范围,从而翻页模式对翻页量的计算更加灵活,加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In this embodiment of the present invention, the first unit length value and the first maximum lateral movement range are determined according to the position of the first page in the first chapter and the total number of pages in the first chapter, so as to scroll the page. The page mode calculates the page turning amount more flexibly, which speeds up the page turning speed of the user when reading the e-book, and improves the page turning efficiency.

图4为本发明又一实施例提供的电子书的翻页方法流程图,如图4所示,所述步骤S03还包括:FIG. 4 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention. As shown in FIG. 4 , the step S03 further includes:

步骤S033、若不满足所述预设的跨章翻页模式触发条件,则根据所述第一触控点的移动距离,以及预设的第一单位长度值,确定所述第一触控点的移动距离所对应的翻页量。Step S033: If the preset trigger condition of the cross-chapter page turning mode is not met, determine the first touch point according to the moving distance of the first touch point and the preset first unit length value The page turning amount corresponding to the moving distance.

有上述实施例可知,所述预设的第一单位长度值的确定与上述实施例介绍的相同,其是根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数确定的。It can be known from the above embodiments that the determination of the preset first unit length value is the same as that described in the above embodiments, which is based on the preset first maximum lateral movement distance and the first chapter where the first page is located. The total number of pages within is determined.

由上述实施例可知,在多页翻页模式下,若所述第一触控点的移动距离未满足所述预设的跨章翻式触发条件,则所述终端依然采用多页翻页模式,并根据第一触控点的移动距离和所述第一单位长度值,确定所述第一触控点的移动距离所对应的翻页量。It can be known from the above embodiment that in the multi-page page turning mode, if the moving distance of the first touch point does not meet the preset trigger condition for flipping across chapters, the terminal still adopts the multi-page page turning mode. , and according to the movement distance of the first touch point and the first unit length value, the page turning amount corresponding to the movement distance of the first touch point is determined.

本发明实施例通过预设的第一单位长度值,来确定与第一触控点的移动距离对应的翻页量用于执行翻页操作,从而快速得到对应的翻页量,加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In this embodiment of the present invention, the preset first unit length value is used to determine the page turning amount corresponding to the moving distance of the first touch point for performing the page turning operation, so as to quickly obtain the corresponding page turning amount and speed up the user's The page-turning speed when reading e-books improves page-turning efficiency.

基于上述实施例,进一步地,所述步骤S0322具体包括:Based on the above embodiment, further, the step S0322 specifically includes:

根据所述触控操作的移动方向,得到所述第二触控点在所述移动方向上允许滑动的第二最大横向移动距离;obtaining, according to the movement direction of the touch operation, a second maximum lateral movement distance that the second touch point is allowed to slide in the movement direction;

根据所述第二最大横向移动距离,以及所述第一页面所在的第一章节在所述电子书的所有章节中的位置,得到在所述移动方向上对应的第二单位长度值;Obtain a second unit length value corresponding to the moving direction according to the second maximum lateral movement distance and the position of the first chapter where the first page is located in all chapters of the e-book;

根据所述第二触控点在所述移动方向上的移动距离,以及所述第二单位长度值,确定所述第二触控点的移动距离对应的章节数量,作为所述翻页量。According to the moving distance of the second touch point in the moving direction and the second unit length value, the number of chapters corresponding to the moving distance of the second touch point is determined as the page turning amount.

具体地,所述的第二最大横向移动距离可以理解为触控操作的操作轨迹从第二触控点到终端显示界面两侧边缘之间的距离。由于触控操作的移动方向包括两个可能的方向,例如若向左移动,则可以表示向前跨章翻页,若向右移动,则可以表示向后跨章翻页。而且由于两个方向上第二触控点在所述移动方向上允许滑动的第二最大横向移动距离有可能不同。Specifically, the second maximum lateral movement distance can be understood as the distance between the operation track of the touch operation from the second touch point to the edges on both sides of the terminal display interface. Since the movement direction of the touch operation includes two possible directions, for example, moving to the left may indicate that the page is turned forward by chapter, and if it is moved to the right, it may indicate that the page is turned backward by the chapter. Moreover, the second maximum lateral movement distances of the second touch point in the moving direction may be different in the two directions.

所述第二单位长度值为在多跨章翻页模式下翻一章所对应的指划位移量,其可以根据第二最大横向移动距离以及所述第一页面所在的第一章节在所述电子书的所有章节中的位置来确定。The second unit length value is the finger-swipe displacement corresponding to turning a chapter in the multi-chapter page turning mode, which can be determined according to the second maximum lateral movement distance and the location of the first chapter where the first page is located. The location of all chapters in the eBook is determined.

在确定了所述第二单位长度值后,可以根据所述第二触控点在所述移动方向上的移动距离,来确定出所述第二触控点的移动距离对应的章节数量,并作为所述翻页量。After the second unit length value is determined, the number of chapters corresponding to the moving distance of the second touch point may be determined according to the moving distance of the second touch point in the moving direction, and as the page turning amount.

本发明实施例通过对在跨章翻页模式下根据不同的移动方向设定对应的第二最大横向移动距离,并根据第一章节所在电子书的位置,得到对应的第二单位长度值,进而得到所述第二触控点的移动距离对应的章节数量,从而快速得到对应的章节数量,加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In the embodiment of the present invention, the corresponding second maximum lateral movement distance is set according to different moving directions in the cross-chapter page turning mode, and the corresponding second unit length value is obtained according to the position of the e-book where the first chapter is located, Further, the number of chapters corresponding to the moving distance of the second touch point is obtained, so that the corresponding number of chapters can be obtained quickly, which speeds up the page turning speed of the user when reading the e-book, and improves the page turning efficiency.

基于上述实施例,进一步地,所述方法还包括:Based on the above embodiment, further, the method further includes:

若所述电子书的翻页模式为多页翻页模式,则在显示界面上,将所述触控操作的第一触控点位置和所述翻页量的信息进行关联显示;If the page-turning mode of the e-book is a multi-page page-turning mode, displaying the position of the first touch point of the touch operation and the information of the page turning amount in an associated display on the display interface;

若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,将所述触控操作的第二触控点位置和所述翻页量的信息进行关联显示。If the page-turning mode of the e-book is a cross-chapter page-turning mode, on the display interface, the position of the second touch point of the touch operation and the information of the page turning amount are displayed in association.

为了让用户在通过触控操作的过程中了解当前的翻页量,从而使用户能够更好得根据自身的需要去调整触控操作,可以在所述终端的显示界面上实时显示所述翻页量的信息,具体地:In order to let the user know the current page turning amount during the touch operation, so that the user can better adjust the touch operation according to their own needs, the page turning can be displayed in real time on the display interface of the terminal amount of information, specifically:

在所述电子书为多页翻页模式时,将实时得到的翻页量的值与所述触控操作的第一触控点的当前的位置进行关联显示,例如,显示在所述第一触控点的当前的位置的上方或者下方等。When the e-book is in the multi-page turning mode, the value of the page turning amount obtained in real time is displayed in association with the current position of the first touch point of the touch operation, for example, displayed on the first touch point. Above or below the current position of the touch point, etc.

而在所述电子书为跨章翻页模式时,则将实时得到的章节数量与所述触控操作的第二触控点的当前的位置进行关联显示。And when the e-book is in the cross-chapter page turning mode, the number of chapters obtained in real time is displayed in association with the current position of the second touch point of the touch operation.

进一步地,所述在显示界面上,本发明实施例提供的方法还包括:Further, on the display interface, the method provided by the embodiment of the present invention further includes:

若所述电子书的翻页模式为多页翻页模式,则在显示界面上,所述翻页量的信息的字体随着所述翻页量的变化而改变大小;If the page-turning mode of the e-book is a multi-page page-turning mode, then on the display interface, the font of the page-turning amount information changes in size along with the page-turning amount;

若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,所述翻页量的信息的字体大小固定。If the page turning mode of the e-book is a cross-chapter page turning mode, on the display interface, the font size of the page turning amount information is fixed.

本发明实施例通过将翻页量信息与触控点进行关联显示,使用户能够灵活得调整触控操作来得到目标页面,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。The embodiment of the present invention associates and displays the page turning amount information with the touch points, so that the user can flexibly adjust the touch operation to obtain the target page, thereby speeding up the page turning speed of the user when reading the e-book, and improving the page turning speed. efficiency.

图5为本发明又一实施例提供的电子书的翻页方法流程图,如图5所示,该方法包括:FIG. 5 is a flowchart of a method for turning pages of an electronic book provided by another embodiment of the present invention. As shown in FIG. 5 , the method includes:

步骤501、获取用户的指划动作;Step 501, acquiring the user's finger-swipe action;

步骤502、判断指划动作是否为翻页动作;若否,则执行其他活动;若是,则执行步骤503;Step 502, determine whether the finger-swipe action is a page turning action; if not, execute other activities; if so, execute step 503;

步骤503、标记用户正执行翻页活动;Step 503, marking that the user is performing a page-turning activity;

步骤504、根据用户翻页行为判断是否翻多页;若否,则释放指划动作进入一下页;若是,则执行步骤505;Step 504: Determine whether to turn multiple pages according to the user's page turning behavior; if not, release the finger-swipe action to enter the next page; if yes, execute step 505;

步骤505、进入翻多页操作状态;Step 505, enter the operation state of turning multiple pages;

步骤506、根据指划间距确定用户是多页翻页模式还是跨章翻页模式;Step 506: Determine whether the user is in a multi-page page turning mode or a cross-chapter page turning mode according to the finger stroke distance;

步骤507、释放指划动作进入目标页。Step 507 , release the swipe action to enter the target page.

如图5所示,用户在进入阅读页后,在终端屏幕上的各种操作行为都会被系统记录并实时预判用户意图。当用户左右划屏时,可以判断用户希望进行阅读翻单页;当用户翻页指划动作在屏幕操作有异于单页翻页且操作时长超过一个统计时间,则判断用户希望进行翻多页操作,并将翻页状态变更为翻多页;在进入翻多页状态后,用户左右指划动作即为书页前翻后翻的偏移量的选择操作;当用户在固定确定目标书页后,手指释放屏幕,则将电子书翻至指定书页。As shown in Figure 5, after the user enters the reading page, various operation behaviors on the terminal screen will be recorded by the system and the user's intention will be predicted in real time. When the user swipes the screen left and right, it can be judged that the user wants to read and turn a single page; when the user's finger swipe action on the screen is different from that of turning a single page and the operation time exceeds a statistical time, it can be judged that the user wants to turn multiple pages. operation, and change the page turning state to multi-page turning; after entering the multi-page turning state, the user's left and right flicking action is the selection operation of the offset of the page turning forward and backward; after the user has fixed the target page, Release your finger from the screen to turn the e-book to the specified page.

以下介绍如何识别用户的翻页意图。The following describes how to identify the user's page turning intent.

由于每个用户手指大小,以及触控操作习惯操作幅度、速度、时长等均有所不同,所以为了能够使电子书的翻页的灵敏度和翻页模式间的切换更好得适应每一个用户的使用操作习惯。Since the size of each user's finger, as well as the operation range, speed, and duration of touch operation habits are different, in order to make the page-turning sensitivity of the e-book and the switching between page-turning modes better adapted to each user's needs Use operating habits.

本发明实施例记录用户的日常翻单页的操作时长、操作轨迹横向宽度和操作结束手指所处屏幕位置,并通过正态分布函数获取用户翻单页的符合指定置信度的操作时长t、操作轨迹横向宽度w的置信区间以及操作结束时手指所处屏幕横向位置x(本实施例所有长度单位均以分辨率px表示),具体如下:The embodiment of the present invention records the operation duration of the user's daily single page turning, the horizontal width of the operation track, and the screen position of the finger at the end of the operation, and obtains the operation duration t, the operation duration t, the operation duration of the user's single page turning, and the specified confidence level through a normal distribution function. The confidence interval of the horizontal width w of the track and the horizontal position x on the screen where the finger is at the end of the operation (all length units in this embodiment are represented by the resolution px), as follows:

记录用户日常翻单页指划操作时长ti,指划操作轨迹横向宽度wi,操作结束时手指所处屏幕位置xi,并分别抽取n次翻页操作时长和操作轨迹横向宽度作为样本。Record the user's daily finger-swipe operation duration t i , the finger-swipe operation track horizontal width wi , and the screen position xi of the finger at the end of the operation, and respectively extract n page turning operation duration and operation track horizontal width as samples.

针对操作时长统计得到的置信区间计算如下:The confidence interval for the operation duration statistics is calculated as follows:

样本的均值

Figure BDA0002179775570000141
sample mean
Figure BDA0002179775570000141

样本方差

Figure BDA0002179775570000142
sample variance
Figure BDA0002179775570000142

假设σ2长期稳定,则σ2≈S2 Assuming that σ 2 is stable in the long run, then σ 2 ≈S 2

则根据正态分布获得双侧1-α置信度的置信区间为

Figure BDA0002179775570000143
Figure BDA0002179775570000144
Then the confidence interval for obtaining the two-sided 1-alpha confidence according to the normal distribution is:
Figure BDA0002179775570000143
Figure BDA0002179775570000144

此公式表示当用户操作时长

Figure BDA0002179775570000145
有1-α的概率为用户在执行翻单页操作。This formula expresses how long the user operates
Figure BDA0002179775570000145
There is a probability of 1-α for the user to perform a single page operation.

同理可得操作轨迹横向宽度区间对应的双侧1-α置信度的置信区间为Similarly, the confidence interval of the bilateral 1-α confidence corresponding to the horizontal width interval of the operation trajectory can be obtained as

Figure BDA0002179775570000151
Figure BDA0002179775570000151

以翻单页指划操作时长置信区间为例,假设要求置信度为95%,且样本为100个操作,操作时长样本均值

Figure BDA0002179775570000152
秒,操作时长样本方差σ2≈S2=0.4,则根据标准正态分布函数可得
Figure BDA0002179775570000153
最终可得操作时长置信区间为[0.48,0.72]秒。Take the confidence interval of the single-page finger-swipe operation as an example, assuming that the required confidence level is 95%, and the sample is 100 operations, the sample mean of the operation duration
Figure BDA0002179775570000152
seconds, the sample variance σ 2 ≈S 2 =0.4 of the operation duration, then according to the standard normal distribution function, we can get
Figure BDA0002179775570000153
The final confidence interval for the operation duration is [0.48, 0.72] seconds.

另为了确定用户翻单页操作结束时手指所处屏幕横向位置,用样本均值

Figure BDA0002179775570000154
表示。In addition, in order to determine the horizontal position of the user's finger on the screen at the end of the single-page operation, the sample mean value is used.
Figure BDA0002179775570000154
express.

在通过统计获取一定置信度的置信区间操作时长和操作轨迹横向宽度后,系统对识别翻单页的准确度能相应提高。根据排他原则,在识别用户翻单页行为以外的行为,则称之为非翻单页行为,针对操作时长的非翻单页行为区间为

Figure BDA0002179775570000155
Figure BDA0002179775570000156
由于翻多页操作的特殊性,本实施例可以只取
Figure BDA0002179775570000157
区间作为翻多页行为的操作时长区间,设置信上限时长
Figure BDA0002179775570000158
当用户操作时长ti>t1-α时,则可判定用户有可能想翻多页。After obtaining a confidence interval with a certain degree of confidence through statistics, the operation duration and the horizontal width of the operation track can be improved accordingly. According to the principle of exclusivity, the behavior other than the user's single-page turning behavior is called non-single-page turning behavior, and the non-single-page turning behavior interval for the operation duration is
Figure BDA0002179775570000155
and
Figure BDA0002179775570000156
Due to the particularity of the operation of turning multiple pages, in this embodiment, only
Figure BDA0002179775570000157
The interval is used as the operation duration interval for the behavior of turning multiple pages, and the upper limit duration of the letter is set.
Figure BDA0002179775570000158
When the user operation duration t i >t 1-α , it can be determined that the user may want to turn multiple pages.

同理可获得置信上限操作轨迹横向宽度

Figure BDA0002179775570000159
当用户操作轨迹横向宽度wi>w1-α时,则可判定用户有可能想翻多页。其中,w1-α即为上述实施例中所述的第一最大横向移动距离。Similarly, the lateral width of the upper confidence limit operation trajectory can be obtained
Figure BDA0002179775570000159
When the horizontal width w i >w 1-α of the user's operation track, it can be determined that the user may want to turn multiple pages. Wherein, w 1-α is the first maximum lateral movement distance described in the above embodiment.

本实施例要求在满足操作时长的同时又满足操作轨迹横向宽度才判定用户想翻多页,因此判断用户为翻多页行为需满足ti>t1-α∩wi>w1-αThis embodiment requires that the user wants to turn multiple pages only when the operation duration and the horizontal width of the operation track are satisfied. Therefore, t i >t 1-α ∩w i >w 1-α is required to determine the user's behavior of turning multiple pages.

图6为本发明又一实施例提供的翻页方法中界面操作示意图,如图6所示,在判定用户是希望翻多页的操作意图后,页面转化为翻多页状态。在翻多页状态下,将有两种翻页模式可以自动切换,一种是多页翻页模式,另一种是跨章翻页模式,两种状态根据用户指定翻页的页数是否超出当前向前、向后的页数决定,当用户指定翻页超出当前章节页数时,则系统自动进入跨章翻页模式,后续的滑动决定翻到指定章节的第一页。在进行翻页和翻章节的同时,翻页页数和章节信息会随着指划操作而变化。FIG. 6 is a schematic diagram of an interface operation in a page turning method provided by another embodiment of the present invention. As shown in FIG. 6 , after it is determined that the user intends to turn multiple pages, the page is converted into a state of turning multiple pages. In the state of turning multiple pages, there will be two page turning modes that can be automatically switched, one is the multi-page turning mode, and the other is the cross-chapter page turning mode. The current number of pages forward and backward is determined. When the number of pages specified by the user exceeds the number of pages in the current chapter, the system automatically enters the page-turning mode across chapters, and subsequent slides determine to turn to the first page of the specified chapter. While turning pages and chapters, the number of pages turned and chapter information will change with the flicking operation.

进一步地,多页翻页模式下每页的指划位移量计算规则设计如下,如图6所示,用户横向操作结束位置记为

Figure BDA0002179775570000161
Figure BDA0002179775570000162
同时为翻多页的初始0页的位置。如果用户当前正阅读第c章的第p页,且第c章共有P页,当用户进入翻多页模式后,用户在
Figure BDA0002179775570000163
的位置每移动一个
Figure BDA0002179775570000164
分辨率的横向距离时则翻一页,因此翻多页模式下每页的指划位移量为
Figure BDA0002179775570000165
(即上述实施例中所述的第一单位长度值),同时用户向后翻
Figure BDA0002179775570000166
或向前翻
Figure BDA0002179775570000167
横向距离内,都为本章内的翻页控制距离。其中,
Figure BDA0002179775570000168
Figure BDA0002179775570000169
即分别为上述实施例中所述的两个方向上的第一最大横向移动范围。Further, the calculation rule of the finger stroke displacement amount of each page in the multi-page page turning mode is designed as follows, as shown in Figure 6, the end position of the user's horizontal operation is denoted as:
Figure BDA0002179775570000161
this
Figure BDA0002179775570000162
At the same time, it is the position of the initial 0 page of turning multiple pages. If the user is currently reading page p of chapter c, and there are p pages in chapter c, when the user enters the multi-page mode, the user is in the
Figure BDA0002179775570000163
position for each move one
Figure BDA0002179775570000164
When the horizontal distance of the resolution is set, one page is turned, so the displacement of each page in the multi-page mode is:
Figure BDA0002179775570000165
(that is, the first unit length value described in the above embodiment), while the user flips back
Figure BDA0002179775570000166
or flip forward
Figure BDA0002179775570000167
Within the horizontal distance, it is the page turning control distance in this chapter. in,
Figure BDA0002179775570000168
and
Figure BDA0002179775570000169
That is, they are the first maximum lateral movement ranges in the two directions described in the above embodiments.

进一步地,翻多页模式下内容显示规则设计如下,在翻多页模式下,翻页页数将显示在操作手指的上方,如图2所示,同时其字体会随着页数的多少变化而变化大小。具体规则如下:Further, the content display rules in the multi-page mode are designed as follows. In the multi-page mode, the number of pages turned will be displayed above the operating finger, as shown in Figure 2, and the font will change with the number of pages. while changing size. The specific rules are as follows:

设固定参数Amax为翻页最大字体,Amin为翻页最小字体,字体最大变化范围为A=Amax-Amin,取字体最大可控页数m=max(P-p,p-1),则每翻一页的最小可控字体变化大小为a=A/m,当a≥1,则取a的整数部分调整每翻一页字体变化程度;当a<1时,则取a=1,此时A=m,即字体最大变化范围只能支撑翻m页,当翻页页数超出m时,则字体大小恒定Amax不变。Set the fixed parameter A max as the maximum font for page turning, A min as the minimum font for page turning, and the maximum font variation range is A=A max -A min , take the maximum number of controllable pages of the font m=max(Pp,p-1), Then the minimum controllable font change size of each page is a=A/m, when a≥1, take the integer part of a to adjust the font change degree of each page; when a<1, then take a=1 , at this time A=m, that is, the maximum change range of the font can only support m pages. When the number of pages to turn exceeds m, the font size is constant and A max is unchanged.

图7为本发明又一实施例提供的翻页方法中界面操作示意图,如图7所示,跨章翻页模式下每章的指划位移量计算规则设计如下,基于上述,当用户向后翻

Figure BDA00021797755700001610
或向前翻
Figure BDA00021797755700001611
横向距离时则进入跨章翻页模式。特殊情况下,当p=P,并向后翻页,则直接进入下一章节,并进入翻章节模式;当p=0,并向前翻页时,则直接进入上一章节第一页,并进入翻章节模式;在进入跨章翻页模式下时,又分为向后翻章节和向前翻章节操作。FIG. 7 is a schematic diagram of an interface operation in a page turning method provided by another embodiment of the present invention. As shown in FIG. 7 , the calculation rule of the finger stroke displacement amount of each chapter in the cross-chapter page turning mode is designed as follows. Based on the above, when the user backwards turn
Figure BDA00021797755700001610
or flip forward
Figure BDA00021797755700001611
When the distance is horizontal, it will enter the cross-chapter page turning mode. In special cases, when p=P and page is turned backward, it will directly enter the next chapter and enter the chapter-turning mode; when p=0, and the page will be turned forward, it will directly enter the first chapter of the previous chapter. page, and enter the chapter-turning mode; when entering the cross-chapter page-turning mode, it is divided into backward chapter and forward chapter operations.

记每向后翻一章的横向分辨率偏移量记为b,设定每向后翻一章横向偏移量最小为bmin,bmin为常量,用户后续可翻章节数Ci,当用户向后翻章节时,翻章节的起始位置为

Figure BDA0002179775570000171
用户最大向后翻页可操作距离
Figure BDA0002179775570000172
(即为上述实施例中所述的第二最大横向移动距离)。 Denote the horizontal resolution offset of each chapter turned backward as b, and set the minimum horizontal offset of each backward chapter to be b min , where b min is a constant. When the user flips a chapter backwards, the starting position of the chapter flipping is
Figure BDA0002179775570000171
User's maximum operable distance for page backwards
Figure BDA0002179775570000172
(that is, the second maximum lateral movement distance described in the above embodiment).

当db/Ci≥bmin时,则b为db/Ci的整数部分。When db /C ib min , then b is the integer part of db /C i .

当db/Ci<bmin时,则b=bmin,此时可翻章节最大值Cmax=db/bmin When db /C i < b min , then b=b min , and the maximum value of chapters that can be flipped at this time is C max =d b /b min

同理,记每向前翻一章的横向分辨率偏移量记为f,设定每向前翻一章横向偏移量最小为fmin=bmin,用户前向可翻章节数Di,当用户向前翻章节时,翻章节的起始位置为

Figure BDA0002179775570000173
假设用户所用设备屏幕横向分辨率为W,用户最大可翻章操作横向距离为
Figure BDA0002179775570000174
(也为所述第二最大横向移动距离)。In the same way, record the horizontal resolution offset of each chapter forward as f, and set the minimum horizontal offset of each chapter forward as f min =b min , and the number of chapters that can be turned forward by the user D i , when the user flips a chapter forward, the starting position of the chapter is
Figure BDA0002179775570000173
Assuming that the horizontal resolution of the screen of the device used by the user is W, the maximum horizontal distance of the user's chapter turning operation is
Figure BDA0002179775570000174
(also the second maximum lateral movement distance).

当df/Di≥fmin时,则f为df/Di的整数部分。When d f /D i ≥ f min , then f is the integer part of d f /D i .

当df/Di<fmin时,则f=fmin,此时可翻章节最大值Dmax=df/fminWhen d f /D i <f min , then f=f min , at this time, the maximum value of the chapters that can be turned over is D max =d f /f min .

图7标识了跨章翻页模式下的指划区间及翻页显示状态Figure 7 identifies the fingering interval and page-turning display state in the cross-chapter page-turning mode

进一步地,翻多章节模式下,本设计的字体大小统一为Amax,在翻章节的过程中,根据章节偏移量显示章节序号和章节名称,便于用户检索。Further, in the mode of flipping multiple chapters, the font size of this design is uniformly A max . During the process of flipping chapters, the chapter number and chapter name are displayed according to the chapter offset, which is convenient for users to search.

本发明实施例提供的电子书的翻页方法,相对于现有技术只能单页翻页的方式,本发明实施例在对原有的翻单页流程不破坏的前提下,实现了一次翻多页的效果,不仅在需要翻页查找内容时提高了查找效率,也在一定程度上提升了阅读体验,使用户在阅读电子书时能体验到贴近实际的翻页感觉。The method for turning pages of an e-book provided by the embodiments of the present invention, compared with the method in which only a single page can be turned in the prior art, the embodiment of the present invention realizes one page turning without destroying the original single page turning process. The multi-page effect not only improves the search efficiency when you need to turn pages to find content, but also improves the reading experience to a certain extent, so that users can experience the actual page-turning feeling when reading e-books.

图8为本发明实施例提供的电子书的翻页装置结构示意图,如图8所示,所述装置包括:模式判断模块10、信息采集模块11、翻页量确定模块12、目标确定模块13和翻页执行模块14,其中:FIG. 8 is a schematic structural diagram of a page turning device for an electronic book provided by an embodiment of the present invention. As shown in FIG. 8 , the device includes: a mode judgment module 10 , an information collection module 11 , a page turning amount determination module 12 , and a target determination module 13 And page turning execution module 14, wherein:

模式判断模块10,用于当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件;The mode judgment module 10 is configured to judge whether the touch operation satisfies a preset multi-page page-turning mode triggering condition when a touch operation on the first page of the e-book is monitored;

信息采集模块11,用于若满足多页翻页模式触发条件,则获取所述触控操作所对应的第一触控点的移动距离;The information collection module 11 is configured to acquire the moving distance of the first touch point corresponding to the touch operation if the trigger condition of the multi-page page turning mode is satisfied;

翻页量确定模块12,用于根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;The page turning amount determining module 12 is configured to determine the page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point;

目标确定模块13,用于根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面;A target determination module 13, configured to locate the second page as the target page after page turning from the electronic book according to the page turning amount;

翻页执行模块14,用于执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。The page turning execution module 14 is configured to perform an operation of turning pages from the first page of the electronic book to the second page of the electronic book.

本发明实施例提供的装置用于执行上述各实施例提供的方法,其功能具体参考上述方法实施例,其具体方法流程在此处不再赘述。The apparatus provided by the embodiments of the present invention is used to execute the methods provided by the foregoing embodiments, and its functions refer to the foregoing method embodiments for details, and the specific method flow is not repeated here.

本发明实施例通过对触控操作信息监控,在满足预设的多页翻页模式触发条件时,触发所述多页翻页模式,根据监控得到的触控操作的第一触发点的移动距离,得到翻页量并执行翻页操作,从而加快了用户在阅读电子书时的翻页速度,提高了翻页效率。In the embodiment of the present invention, by monitoring touch operation information, when a preset trigger condition of the multi-page page turning mode is satisfied, the multi-page page turning mode is triggered, and the moving distance of the first trigger point of the touch operation obtained by monitoring is obtained. , obtain the page turning amount and perform the page turning operation, thereby speeding up the page turning speed of the user when reading the e-book and improving the page turning efficiency.

本实施例提供的电子书的翻页装置中,翻页量确定模块12具体用于判断所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件;In the device for turning pages of an e-book provided in this embodiment, the page turning amount determination module 12 is specifically configured to determine whether the moving distance of the first touch point satisfies a preset trigger condition for the page turning mode across chapters;

若满足所述预设的跨章翻页模式触发条件,则确定与所述第一触控点的移动距离对应的章节数量,作为所述翻页量。If the preset trigger condition of the page turning mode across chapters is satisfied, the number of chapters corresponding to the moving distance of the first touch point is determined as the page turning amount.

其中,所述若满足所述预设的跨章翻页模式触发条件,则确定与所述第一触控点的移动距离对应的章节数量,作为所述翻页量,具体包括:Wherein, if the preset triggering condition of the cross-chapter page turning mode is satisfied, the number of chapters corresponding to the moving distance of the first touch point is determined as the page turning amount, which specifically includes:

若满足所述预设的跨章翻页模式触发条件,则获取所述触控操作所对应的第二触控点的移动距离;If the preset trigger condition of the cross-chapter page turning mode is satisfied, acquiring the movement distance of the second touch point corresponding to the touch operation;

根据所述第二触控点的移动距离,确定与所述第二触控点的移动距离对应的章节数量,作为所述翻页量According to the moving distance of the second touch point, the number of chapters corresponding to the moving distance of the second touch point is determined as the page turning amount

其中,所述判断所述第一触控点的移动距离是否满足预设的跨章翻页模式触发条件,具体包括:Wherein, the judging whether the moving distance of the first touch point satisfies a preset trigger condition of the cross-chapter page turning mode specifically includes:

根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数,得到第一单位长度值;Obtain the first unit length value according to the preset first maximum lateral movement distance and the total number of pages in the first chapter where the first page is located;

根据所述第一页面在所述第一章节的所有页面中的位置和所述第一单位长度值,得到所述第一触控点的第一最大横向移动范围;obtaining a first maximum lateral movement range of the first touch point according to the position of the first page in all pages of the first chapter and the first unit length value;

根据所述触控操作的移动方向判断所述第一触控点的移动距离是否超过所述第一最大横向移动范围;Determine whether the movement distance of the first touch point exceeds the first maximum lateral movement range according to the movement direction of the touch operation;

若超出,则判定所述第一触控点的移动距离满足所述预设的跨章翻页模式触发条件;若未超出,则判定所述第一触控点的移动距离不满足所述预设的跨章翻页模式触发条件。If it exceeds, it is determined that the moving distance of the first touch point satisfies the preset trigger condition of the cross-chapter page turning mode; if it does not exceed, it is determined that the moving distance of the first touch point does not meet the preset trigger condition. Set the trigger condition for the page-turning mode across chapters.

本实施例提供的电子书的翻页装置中,翻页量确定模块12还具体用于若不满足所述预设的跨章翻页模式触发条件,则根据所述第一触控点的移动距离,以及第一单位长度值,确定所述第一触控点的移动距离所对应的翻页量;其中,所述第一单位长度值是根据预设的第一最大横向移动距离和所述第一页面所在的第一章节内的页面总数确定的。In the device for turning pages of an e-book provided in this embodiment, the page turning amount determination module 12 is further specifically configured to, if the preset trigger condition of the page turning mode across chapters is not satisfied, then according to the movement of the first touch point distance, and a first unit length value to determine the page turning amount corresponding to the moving distance of the first touch point; wherein, the first unit length value is based on the preset first maximum lateral movement distance and the The total number of pages in the first chapter where the first page is located is determined.

进一步地,所述根据所述第二触控点的移动距离,确定与所述第二触控点的移动距离对应的章节数量,作为所述翻页量,具体包括:Further, determining the number of chapters corresponding to the movement distance of the second touch point according to the movement distance of the second touch point, as the page turning amount, specifically includes:

根据所述触控操作的移动方向,得到所述第二触控点在所述移动方向上允许滑动的第二最大横向移动距离;obtaining, according to the movement direction of the touch operation, a second maximum lateral movement distance that the second touch point is allowed to slide in the movement direction;

根据所述第二最大横向移动距离,以及所述第一页面所在的第一章节在所述电子书的所有章节中的位置,得到在所述移动方向上对应的第二单位长度值;Obtain a second unit length value corresponding to the moving direction according to the second maximum lateral movement distance and the position of the first chapter where the first page is located in all chapters of the e-book;

根据所述第二触控点在所述移动方向上的移动距离,以及所述第二单位长度值,确定所述第二触控点的移动距离对应的章节数量,作为所述翻页量。According to the moving distance of the second touch point in the moving direction and the second unit length value, the number of chapters corresponding to the moving distance of the second touch point is determined as the page turning amount.

本实施例提供的电子书的翻页装置中,还可以包括显示模块,用于若所述电子书的翻页模式为多页翻页模式,则在显示界面上,将所述触控操作的第一触控点位置和所述翻页量的信息进行关联显示;若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,将所述触控操作的第二触控点位置和所述翻页量的信息进行关联显示。The device for turning pages of an e-book provided in this embodiment may further include a display module for displaying, on the display interface, the page turning mode of the touch operation if the page turning mode of the e-book is a multi-page turning mode. The position of the first touch point and the information of the page turning amount are displayed in association; if the page turning mode of the e-book is the cross-chapter page turning mode, on the display interface, the second touch of the touch operation is displayed. The position of the handle and the information of the page turning amount are displayed in association.

显示模块具体还用于若所述电子书的翻页模式为多页翻页模式,则在显示界面上,所述翻页量的信息的字体随着所述翻页量的变化而改变大小;The display module is specifically further configured to, if the page turning mode of the e-book is a multi-page page turning mode, on the display interface, the font of the information of the page turning amount changes in size with the change of the page turning amount;

若所述电子书的翻页模式为跨章翻页模式,则在显示界面上,所述翻页量的信息的字体大小固定。If the page turning mode of the e-book is a cross-chapter page turning mode, on the display interface, the font size of the page turning amount information is fixed.

本发明实施例提供的基于指划动作判断的翻页装置,具体可以用于执行上述各方法实施例提供的方法,其流程和功能可以参见上述各方法实施例,此处不再赘述。The page turning device based on finger swipe action judgment provided by the embodiments of the present invention can be specifically used to execute the methods provided by the above method embodiments. For the process and functions, refer to the above method embodiments, and details are not repeated here.

本发明实施例提供的基于指划动作判断的翻页装置,通过用户指压滑动的行为变化来判断用户是翻一页还是翻多页的看书意图,实现一次翻多页的效果,不仅在需要翻页查找内容时提高了查找效率,也在一定程度上让用户感受贴近实际的翻页效果,提升了阅读体验。The page-turning device based on finger-swipe action judgment provided by the embodiment of the present invention judges whether the user intends to turn one page or multiple pages of a book through the behavior change of the user's finger-swiping and sliding, so as to realize the effect of turning multiple pages at a time, not only when the user needs Turning pages to find content improves the search efficiency, and to a certain extent allows users to feel the actual page turning effect, which improves the reading experience.

图9为本发明实施例提供的电子设备的实体结构示意图,如图9所示,该服务器可以包括:处理器(processor)910、通信接口(Communications Interface)920、存储器(memory)930和通信总线940,其中,处理器910,通信接口920,存储器930通过通信总线940完成相互间的通信。处理器910可以调用存储器930中的逻辑指令,以执行如下方法:当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件;若满足,则获取所述触控操作所对应的第一触控点的移动距离;根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面;执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。FIG. 9 is a schematic diagram of an entity structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 9 , the server may include: a processor (processor) 910, a communications interface (Communications Interface) 920, a memory (memory) 930, and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 complete the communication with each other through the communication bus 940. The processor 910 can call the logic instructions in the memory 930 to perform the following method: when a touch operation on the first page of the e-book is monitored, determine whether the touch operation satisfies the preset multi-page page turning mode triggering condition; if satisfied, obtain the moving distance of the first touch point corresponding to the touch operation; page turning amount; according to the page turning amount, locate the second page from the e-book as the target page after page turning; perform page turning from the first page of the e-book to the second page of the e-book operations on the page.

进一步地,本发明实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件;若满足,则获取所述触控操作所对应的第一触控点的移动距离;根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面;执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。Further, an embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer When executing, the computer can execute the methods provided by the above method embodiments, for example, including: when a touch operation on the first page of the e-book is monitored, judging whether the touch operation satisfies the preset multi-page turning Mode trigger condition; if satisfied, obtain the movement distance of the first touch point corresponding to the touch operation; determine the movement distance of the first touch point according to the movement distance of the first touch point The corresponding page turning amount; according to the page turning amount, locate the second page from the e-book as the target page after page turning; perform page turning from the first page of the e-book to the e-book Operations on the second page.

进一步地,本发明实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行上述各方法实施例所提供的方法,例如包括:当监听到针对电子书的第一页面的触控操作时,判断所述触控操作是否满足预设的多页翻页模式触发条件;若满足,则获取所述触控操作所对应的第一触控点的移动距离;根据所述第一触控点的移动距离,确定所述第一触控点的移动距离所对应的翻页量;根据所述翻页量,从所述电子书中定位作为翻页后的目标页面的第二页面;执行从所述电子书的第一页面翻页至所述电子书的第二页面的操作。Further, an embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the methods provided by the foregoing method embodiments. The method, for example, includes: when a touch operation on the first page of the e-book is monitored, judging whether the touch operation satisfies a preset multi-page page turning mode trigger condition; if so, acquiring the touch operation the corresponding moving distance of the first touch point; according to the moving distance of the first touch point, determine the page turning amount corresponding to the moving distance of the first touch point; according to the page turning amount, from Positioning the second page in the e-book as a target page after page-turning; performing an operation of turning pages from the first page of the e-book to the second page of the e-book.

本领域普通技术人员可以理解:此外,上述的存储器中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random AccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that: in addition, the above-mentioned logic instructions in the memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various 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 present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for turning pages of an electronic book is characterized by comprising the following steps:
when touch operation aiming at a first page of an electronic book is monitored, judging whether the touch operation meets a preset multi-page turning mode triggering condition;
if yes, obtaining the moving distance of a first touch point corresponding to the touch operation;
determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point;
according to the page turning amount, positioning a second page serving as a turned target page from the electronic book;
performing an operation of turning a page from a first page of the electronic book to a second page of the electronic book;
determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point, specifically including:
judging whether the moving distance of the first touch point meets a preset cross-chapter page-turning mode triggering condition or not;
if the preset cross-chapter page turning mode triggering condition is met, determining the number of chapters corresponding to the moving distance of the first touch point as the page turning amount; wherein,
if the preset cross-chapter page turning mode triggering condition is met, determining the number of chapters corresponding to the moving distance of the first touch point as the page turning amount, specifically including:
if the preset cross-chapter page turning mode triggering condition is met, acquiring the moving distance of a second touch point corresponding to the touch operation;
determining the number of chapters corresponding to the moving distance of the second touch point according to the moving distance of the second touch point, and taking the number of chapters as the page turning amount;
the touch operation is continuously performed, and when the touch operation does not meet the preset multi-page turning mode triggering condition, a single-page turning mode is determined; when the touch operation meets the preset multi-page turning mode triggering condition, confirming that the single-page turning mode is switched to the multi-page turning mode; when the touch operation meets the preset cross-chapter page turning mode triggering condition, confirming that the multi-page turning mode is switched to the cross-chapter page turning mode;
the first touch point is a touch point corresponding to the touch operation when the single-page turning mode is switched to the multi-page turning mode; the second touch point is a touch point corresponding to the touch operation when the multi-page turning mode is switched to the cross-chapter page turning mode; the determining whether the moving distance of the first touch point meets a preset cross-chapter page-turning mode triggering condition specifically includes:
obtaining a first unit length value according to a preset first maximum transverse moving distance and the total number of pages in a first chapter where the first page is located;
obtaining a first maximum transverse moving range of the first touch point according to the positions of the first page in all pages of the first section and the first unit length value;
judging whether the moving distance of the first touch point exceeds the first maximum transverse moving range or not according to the moving direction of the touch operation;
if the current moving distance exceeds the preset cross-chapter page-turning mode triggering condition, judging that the moving distance of the first touch point meets the preset cross-chapter page-turning mode triggering condition; and if not, judging that the moving distance of the first touch point does not meet the preset cross-chapter page turning mode triggering condition.
2. A page turning method for an electronic book according to claim 1, wherein the determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point further comprises:
if the preset cross-chapter page turning mode triggering condition is not met, determining a page turning amount corresponding to the moving distance of the first touch point according to the moving distance of the first touch point and a first unit length value; the first unit length value is determined according to a preset first maximum transverse moving distance and the total number of pages in a first chapter where the first page is located.
3. A page turning method for an electronic book according to claim 1, wherein the determining, according to the moving distance of the second touch point, the number of chapters corresponding to the moving distance of the second touch point as the page turning amount specifically includes:
obtaining a second maximum transverse moving distance of the second touch point allowed to slide in the moving direction according to the moving direction of the touch operation;
obtaining a second unit length value corresponding to the moving direction according to the second maximum transverse moving distance and the positions of the first section where the first page is located in all sections of the electronic book;
and determining the number of chapters corresponding to the moving distance of the second touch point as the page turning amount according to the moving distance of the second touch point in the moving direction and the second unit length value.
4. A page turning method for an electronic book according to claim 1, the method further comprising:
if the page turning mode of the electronic book is a multi-page turning mode, performing associated display on information of a first touch point position and the page turning amount of the touch operation on a display interface;
and if the page turning mode of the electronic book is a cross-chapter page turning mode, performing associated display on the information of the position of the second touch point of the touch operation and the page turning amount on a display interface.
5. A method of turning pages of an electronic book according to claim 4, the method further comprising:
if the page turning mode of the electronic book is a multi-page turning mode, changing the size of the font of the information of the page turning amount along with the change of the page turning amount on a display interface;
and if the page turning mode of the electronic book is the cross-chapter page turning mode, the font size of the information of the page turning amount is fixed on a display interface.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method for turning pages of an electronic book according to any one of claims 1 to 5.
7. A non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the method for turning pages of an electronic book according to any one of claims 1 to 5.
CN201910791916.6A 2019-08-26 2019-08-26 A method, device, electronic device and storage medium for turning pages of an electronic book Active CN110515523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910791916.6A CN110515523B (en) 2019-08-26 2019-08-26 A method, device, electronic device and storage medium for turning pages of an electronic book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910791916.6A CN110515523B (en) 2019-08-26 2019-08-26 A method, device, electronic device and storage medium for turning pages of an electronic book

Publications (2)

Publication Number Publication Date
CN110515523A CN110515523A (en) 2019-11-29
CN110515523B true CN110515523B (en) 2021-07-13

Family

ID=68626915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910791916.6A Active CN110515523B (en) 2019-08-26 2019-08-26 A method, device, electronic device and storage medium for turning pages of an electronic book

Country Status (1)

Country Link
CN (1) CN110515523B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538697B (en) * 2020-04-23 2023-04-18 掌阅科技股份有限公司 Page turning processing method of electronic book, electronic equipment and computer storage medium
CN115035216A (en) * 2022-05-12 2022-09-09 掌阅科技股份有限公司 Content display method, electronic device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630226A (en) * 2009-08-14 2010-01-20 深圳市同洲电子股份有限公司 Rapid positioning method and device of display content of electronic equipment
CN101833416A (en) * 2010-04-14 2010-09-15 鸿富锦精密工业(深圳)有限公司 Electronic reading device and page turning method thereof
CN102262499A (en) * 2010-05-28 2011-11-30 Lg电子株式会社 Mobile terminal and method of controlling operation of the mobile terminal
CN102455877A (en) * 2010-10-25 2012-05-16 三星电子株式会社 Method and apparatus for turning pages in e-book reader
CN104238900A (en) * 2013-06-13 2014-12-24 腾讯科技(深圳)有限公司 Page positioning method and device
CN106201234A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 The inspection method of content of pages and device
CN107643914A (en) * 2017-09-26 2018-01-30 咪咕数字传媒有限公司 A kind of page turning method, device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5984366B2 (en) * 2011-12-01 2016-09-06 キヤノン株式会社 Display device, control method therefor, and program
CN103164136A (en) * 2011-12-14 2013-06-19 联想(北京)有限公司 Electronic book method and electronic book displaying device
CN103226437B (en) * 2013-03-29 2016-05-25 深圳市金立通信设备有限公司 A kind of method of control terminal page turning and terminal
CN106293358B (en) * 2016-08-09 2020-05-08 Tcl移动通信科技(宁波)有限公司 Mobile terminal and electronic book turning control method of mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630226A (en) * 2009-08-14 2010-01-20 深圳市同洲电子股份有限公司 Rapid positioning method and device of display content of electronic equipment
CN101833416A (en) * 2010-04-14 2010-09-15 鸿富锦精密工业(深圳)有限公司 Electronic reading device and page turning method thereof
CN102262499A (en) * 2010-05-28 2011-11-30 Lg电子株式会社 Mobile terminal and method of controlling operation of the mobile terminal
CN102455877A (en) * 2010-10-25 2012-05-16 三星电子株式会社 Method and apparatus for turning pages in e-book reader
CN104238900A (en) * 2013-06-13 2014-12-24 腾讯科技(深圳)有限公司 Page positioning method and device
CN106201234A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 The inspection method of content of pages and device
CN107643914A (en) * 2017-09-26 2018-01-30 咪咕数字传媒有限公司 A kind of page turning method, device and storage medium

Also Published As

Publication number Publication date
CN110515523A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
KR101720849B1 (en) Touch screen hover input handling
CN104820557B (en) A kind of split screen method and mobile terminal
KR101260834B1 (en) Method and device for controlling touch screen using timeline bar, recording medium for program for the same, and user terminal having the same
CN104756060B (en) Cursor control based on gesture
US10203871B2 (en) Method for touch input and device therefore
EP3002664B1 (en) Text processing method and touchscreen device
CN101923425A (en) Method and device for realizing window switching based on sliding terminal screen
EP4268913A1 (en) Position adjustment method and apparatus for operation controls, and terminal, and storage medium
CN110624241A (en) Information processing method and device, electronic equipment and storage medium
CN110286840B (en) Gesture zooming control method and device of touch equipment and related equipment
CN110515523B (en) A method, device, electronic device and storage medium for turning pages of an electronic book
CN109215098B (en) Handwriting erasing method and device
WO2014154055A1 (en) Method, apparatus and terminal for selecting text
CN104346072A (en) Display control apparatus and control method thereof
CN106843735A (en) A kind of terminal control method and mobile terminal
CN109298790A (en) Character deleting method and device
CN105843535B (en) A kind of control method and terminal of control panel
US20170060820A1 (en) Authoring tool including style selector bars for selecting styles for media components
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
US20120017169A1 (en) System and method of dividing a window according to trail
CN111124222B (en) Input switching method and device, electronic equipment and storage medium
CN111597009A (en) Application program display method and device and terminal equipment
CN107340881A (en) A kind of input method and electronic equipment
CN110865751A (en) A content selection method and electronic device
CN113709322B (en) Scanning method and related equipment thereof

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