WO2018121618A1 - 滚动翻页的显示方法和装置、计算设备及存储介质 - Google Patents

滚动翻页的显示方法和装置、计算设备及存储介质 Download PDF

Info

Publication number
WO2018121618A1
WO2018121618A1 PCT/CN2017/119044 CN2017119044W WO2018121618A1 WO 2018121618 A1 WO2018121618 A1 WO 2018121618A1 CN 2017119044 W CN2017119044 W CN 2017119044W WO 2018121618 A1 WO2018121618 A1 WO 2018121618A1
Authority
WO
WIPO (PCT)
Prior art keywords
scrolling
book
page
displaying
display
Prior art date
Application number
PCT/CN2017/119044
Other languages
English (en)
French (fr)
Inventor
李晨希
Original Assignee
广州阿里巴巴文学信息技术有限公司
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 广州阿里巴巴文学信息技术有限公司 filed Critical 广州阿里巴巴文学信息技术有限公司
Publication of WO2018121618A1 publication Critical patent/WO2018121618A1/zh

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Definitions

  • the present invention relates to the field of information display, and in particular to a display method and apparatus for scrolling pages for electronic book reading, a computing device and a storage medium.
  • Reading products are subdivided into news, novels, comics, and so on.
  • the page turning mode has a slow page turning speed, and cannot be quickly flipped or skipped.
  • the scrolling page is turned, especially the vertical scrolling page turning method is used for the purpose of fast flipping or skipping reading, the above-mentioned scrolling paging speed is not fast enough and the stuck phenomenon caused by the waiting time may cause the user's experience. Poor.
  • the user is reading online, when the network signal is poor or no signal, the subsequent content will not be downloaded. When returning to the strong signal environment, it is necessary to re-operate to continue reading, which is also a poor experience. .
  • a display method for scrolling a page for e-book reading comprising:
  • the step of loading the e-book data may include loading the local e-book data using an e-book reader or loading e-book data on the network through a network.
  • the client when loading the e-book data on the network through the network, the client sends the parameter of the display content, the display area size and the scroll distance to the server end during the execution of the scrolling page, and the server performs the paging work according to the received
  • the data information obtains the paging information, and sends the corresponding e-book data to the client when receiving the request to display the current page content.
  • the placeholder After receiving the request for displaying the current page content, querying whether the corresponding data exists according to the obtained paging information, performing the typesetting and displaying the current page content in the presence of the corresponding data; in the absence of the corresponding data In the case of the first place, the placeholder is first displayed and the corresponding data and the data of the N pages of the current page are cached, and then typesetting and display are performed, wherein the N is a natural number.
  • the paging information includes at least one of the following: the number of pages of the electronic book, the position information of each page in the electronic book, the number of characters in each page, and the starting and ending position of the text in the electronic book.
  • the placeholder map is a picture of a page replacing an e-book in scrolling.
  • a display device for scrolling a page for e-book reading comprising:
  • a scrolling unit for performing screen scrolling control
  • a requesting unit configured to send a request for displaying the content of the current page when the scrolling stops
  • a paging unit configured to perform paging work and obtain paging information of the e-book
  • a display unit configured to display content, including displaying a placeholder map and formatting and displaying the current page content according to the paging information.
  • the loading the e-book data includes: loading the local e-book data by using an e-book reader or loading e-book data on the network through a network.
  • the display device when loading the e-book data on the network through the network, the display device sends the parameter, the display area size and the scroll distance of the display content to the server end during the execution of the scrolling page, and the server performs the paging work according to
  • the received data information obtains paging information, and the corresponding electronic book data is transmitted to the display device upon receiving the request to display the current page content.
  • the display unit After the display unit receives the request for displaying the current page content, it queries whether the corresponding data exists according to the obtained paging information, and if the corresponding data exists, performs layout and displays the current page content; In the case of corresponding data, the placeholder map is first displayed and the corresponding data and the data of the N pages before and after the current page are requested and cached, and then typesetting and display are performed, wherein the N is a natural number.
  • the paging information includes at least one of the following: the number of pages of the electronic book, the position information of each page in the electronic book, the number of characters in each page, and the starting and ending position of the text in the electronic book.
  • the placeholder map is a picture of a page replacing an e-book in scrolling.
  • a computing device comprising: a display screen; a processor; and a memory.
  • the memory has stored thereon executable code that, when executed by the processor, causes the processor to perform the display method described above.
  • a non-transitory machine readable storage medium having stored thereon executable code that, when executed by a processor of an electronic device, causes the processor Perform the display method described above.
  • the display method and apparatus for scrolling pages for e-book reading since the placeholder technology is used, it is possible to realize a scrolling page that is faster and flips more pages than the prior art; When scrolling through the next chapter, scrolling and scrolling is smoother. In addition, when reading online, you can automatically display the current page content without re-operation after networking.
  • FIG. 1 is a flow chart showing a method of displaying a scrolling page for e-book reading according to an embodiment of the present invention
  • FIG. 2 is a schematic block diagram of a display device for scrolling a page for e-book reading, in accordance with one embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a computing device in accordance with one embodiment of the present invention.
  • FIG. 1 is a flow chart of a method of displaying a scrolling page for e-book reading in accordance with one embodiment of the present invention.
  • step S1 the electronic book data is loaded and the page information of the electronic book is acquired.
  • the step of loading the e-book data and obtaining the pagination information can be accomplished using any technique known in the art.
  • the step of loading the e-book data may include loading the local e-book data using an e-book reader, or may also include loading e-book data on the network through the network.
  • the e-book reader may include, but is not limited to, a smart phone, a tablet, an e-book reader having a hardware structure, and the like.
  • the e-book reader can be, for example, a hardware product having an electronic ink screen or an LCD screen or an LED screen and capable of opening and displaying an e-book.
  • the loading of the local electronic book data is to use an electronic book reader to open the electronic book text stored therein or the electronic book text stored on the storage medium inserted into the electronic book reader.
  • the loading of the e-book data on the network through the network means that the e-book reader provided with the Internet access function is used to open the e-book text provided on the website by using a browser to log in to the website that provides the e-book reading (for example, Shuqiu novel network).
  • the format of the e-book may include, but is not limited to, txt, epub, umd, pdf, html, chm, and the like.
  • the obtaining paging information can also be implemented using any technique known in the art.
  • a smartphone or tablet equipped with an electronic reading APP product, or an e-book reader specially used for reading an e-book will be paged when the e-book is opened, and can be determined in the subsequent reading process.
  • the paging information may include at least one of the following: the number of pages of the electronic book, the position information or page number of each page in the electronic book, the number of characters in each page, and the starting and ending position of the text in the electronic book.
  • the paging unit in the typesetting engine can page the e-book according to the display parameters and font parameters of the set e-reader, for example, calculate the number of pages of the opened e-book, and mark the position information of each page in the e-book. Or page number, made into a list, the number of words in each page, the start and end position of the text displayed on each page in the e-book, for example, the text displayed on the first page includes from 1 character to 128 characters, and the text displayed on the second page includes 129 characters to 300 characters... until the last page.
  • the display parameters set include the width and height of the screen, the border width of the text display area, the text line spacing, etc.; the font parameters include font, font size, and the like.
  • step S2 the place chart is displayed during the execution of the scrolling page.
  • the scrolling page includes a horizontal scrolling page and a vertical scrolling page.
  • Scrolling page flipping uses screen scrolling display technology, where scrolling page turning can be achieved using any screen scrolling display technique known in the art.
  • the terminal screen adopts a touch screen, and the system control that can make the screen display scroll through the sliding of the contact on the screen, for example, the TableView which provides the vertical sliding control, requests the content of the nth screen when the screen display slides vertically to the nth screen and Show it.
  • the existing electronic reading APP displays the text image by scrolling and flipping the page while displaying the text image.
  • the text information of each page can be displayed during the scrolling process, the scrolling speed is not very fast because the time for typesetting and rendering takes time. And the number of scrolling pages is not a lot; there will be rolling jams when you flip through the next chapter.
  • the inventors found that when the reader uses scrolling to read pages, the purpose is to omit the intermediate content and quickly flip to the content that he wants to see. For example, for a novel, the reader wants to skip the protagonist's growth and read the protagonist's experience. It is very appropriate to use the fast scrolling method. Although many novels have chapters, you can choose a chapter to start reading, but many online novel chapters have no title, only the first chapter, the second chapter, etc., so you can't know what to say in Chapter N.
  • the inventor designed a new display mode in the process of performing scrolling, that is, when the reader performs scrolling and flipping operations, the e-book reader, more specifically
  • the e-reading APP product does not type, render and display the content of the e-book in the scrolling, but uses the placeholder map instead of the page of the e-book in the scrolling to display, which saves the time required for typesetting and rendering, and Use a placeholder chart to record the number of pages scrolled.
  • the content of an e-book is displayed on the screen in the form of a page image, so it is feasible to use a place-holder map instead of the page image of the e-book for display.
  • a placeholder is a picture that replaces the page of an e-book in scrolling.
  • the bitmap can use any picture that can be displayed by the e-book reader terminal itself, preferably a picture with a small amount of data and a low pixel, and more preferably a picture without actual content.
  • the picture format that the e-book reader can display includes an e-reading APP.
  • the product can open any image format displayed, such as jpg, bmp, gif, etc.
  • step S3 the current page content is requested to be displayed when the scrolling is stopped.
  • the scrolling stop may include two ways: 1 is to stop the scrolling by clicking the touch screen; 2 is to let the scrolling stop naturally.
  • the conventional screen scrolling display technology can scroll the screen by the user sliding the touch screen, such as scrolling the displayed e-book page, scrolling the webpage, and scrolling when the user clicks instead of sliding the touchscreen. Stop; or, when the user slides the touch screen to scroll the screen, the scrolling stops naturally after scrolling for a distance, and the technical details are not repeated here.
  • a request to display the current page content is sent when a scrolling stop is detected to request display of the current page content. For example, when the screen displays the vertical scroll stop, the control TableView requests the preloaded thread to display the contents of the current Xth page.
  • step S4 typesetting and displaying the current page content according to the paging information.
  • the preloading thread When the preloading thread receives the request, it queries whether there is corresponding data according to the obtained paging information, and if so, directly displays; if not, displays the placeholder graph first and requests the current page from the preloading thread with a clock of 0.1 second interval.
  • the layout engine synthesizes the contents of the current Xth page and the XNth page to the X+N page, and caches them. If the user has started to turn pages after the user has not finished loading, cancel the current page query clock Timer to ensure that there can always be only one query clock.
  • the current page content is typeset and displayed; in the case where there is no corresponding data, the placeholder map is first displayed and the corresponding data and the N pages of the current page are cached, and then typesetting and display.
  • N is a natural number, and in a preferred embodiment, N is a predetermined natural number.
  • the client when the e-book data on the network is loaded over the network, the client (e-book reader) displays the placeholder graph during the execution of the scrolling page and will need to display the parameters of the content, the size of the display area, and The scrolling distance is sent to the server side, and the server side performs the paging work and obtains the paging information according to the received data information, and sends the corresponding e-book data to the client when receiving the request for displaying the current page content.
  • the advantage of this method is that when the reader reads the e-book online, especially under the condition of constant movement, such as sitting in a bus in the bus to read the e-book online, or walking while watching the e-book on the network, after passing
  • constant movement such as sitting in a bus in the bus to read the e-book online, or walking while watching the e-book on the network
  • the e-book reader in his hand will need to display the parameters of the content, the display area size and the scroll distance to the server, and the server prepares the relevant data and
  • the client displays the place chart during the page turning process, and one of the functions of the place chart is to temporarily replace the page text image, which makes The client can turn pages even if it does not receive the e-book data sent from the server, especially scrolling the page, and then displaying the required text content of the current page after receiving the data sent by the server.
  • the display method of the scrolling page for e-book reading since the placeholder technology is used, it is possible to realize a scrolling page that is faster than the prior art and has more scrolling pages; In the first chapter, the scrolling is stuck; in addition, when reading online, it is possible to automatically display the current page content without re-operation after being disconnected from the network.
  • the display device for scrolling for e-book reading of the present invention includes:
  • a scrolling unit for performing screen scrolling control
  • a requesting unit configured to send a request for displaying the content of the current page when the scrolling stops
  • a paging unit configured to perform paging work and obtain paging information of the e-book
  • a display unit configured to display content, including displaying a placeholder map and formatting and displaying the current page content according to the paging information.
  • the loading of the e-book data includes loading the local e-book data using an e-book reader or loading e-book data on the network through a network.
  • the paging information includes at least one of the following: the number of pages of the electronic book, the position information of each page in the electronic book, the number of words in each page, and the starting and ending position of the text in the electronic book.
  • the display unit After the display unit receives the request for displaying the current page content, it queries whether the corresponding data exists according to the obtained paging information, and if the corresponding data exists, performs layout and displays the current page content; In the case of corresponding data, the placeholder map is first displayed and the corresponding data and the data of the N pages before and after the current page are requested and cached, and then typesetting and display are performed, wherein the N is a natural number, in a preferred embodiment Medium, N is the predetermined natural number.
  • a placeholder is a picture that replaces the page of an e-book in scrolling.
  • the display device when the e-book data on the network is loaded through the network, the display device transmits the parameter, the display area size and the scroll distance of the display content to the server end during the execution of the scrolling page, and the server side performs the pagination. Working and obtaining the paging information according to the received data information, and transmitting the corresponding electronic book data to the display device upon receiving the request for displaying the current page content.
  • the scroll display device for e-book reading since the place chart technology is used, it is possible to realize a scrolling page that is faster than the prior art and has a larger number of pages to be flipped; In the first chapter, the scrolling is stuck; in addition, when reading online, it is possible to automatically display the current page content without re-operation after being disconnected from the network.
  • FIG. 3 is a schematic block diagram of a computing device in accordance with one embodiment of the present invention.
  • computing device 300 of the present invention can include display screen 310, processor 320, and memory 330.
  • a computer program product for displaying a scrolling page for e-book reading comprising a computer readable storage medium storing program code, the program code comprising instructions for executing the front
  • program code comprising instructions for executing the front
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

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)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种用于电子书阅读的滚动翻页的显示方法和装置、计算设备以及存储介质。该用于电子书阅读的滚动翻页的显示方法包括:加载电子书数据并获取所述电子书的分页信息(S1);在执行滚动翻页过程中显示占位图(S2);当滚动翻页停止时请求显示当前页面内容(S3);根据所述分页信息进行排版和显示当前页面内容(S4)。

Description

滚动翻页的显示方法和装置、计算设备及存储介质 技术领域
本发明涉及信息显示领域,具体而言涉及一种用于电子书阅读的滚动翻页的显示方法和装置、计算设备及存储介质。
背景技术
当前智能移动终端已经非常普及,伴随的移动应用产品也是琳琅满目、层出不穷,而阅读类APP是其中很重要的一类。阅读类产品又细分有新闻类、小说类、漫画类等等。
现在大多数使用在智能移动终端上的小说和漫画类阅读产品,例如书旗小说APP、iReader阅读器APP等,基本上都能提供多种翻页方式供用户选择,基本上默认方式为横向翻页。用户打开阅读页,通过类似翻书或覆盖的方式横向滑动翻看下一页,这种观看方式因为模仿书本横向翻页的模式受到了广大书友的认可,也是经常使用的翻页方式。
但是,在阅读产品提供滚动式的翻页功能时,尤其是类似于浏览器的网页上下滚动的纵向滚动翻页方式,当滚动翻阅到下一章节时,会有等待现象,如果是在线阅读,等待时间会更长,而且使用漫画类产品比小说类产品的体验感更差。另外,滚动翻页的速度也不是很快。发生这种现象的原因是:对于下载到移动终端上的电子书,如chm,epub,umd,html,txt等格式,当使用电子阅读APP打开电子书时,由于屏幕上显示的文字是以页面图像形式显示,渲染1幅页面图像需要多达几M内存空间,而一本书在移动终端上显示可能达到上千页甚至上万页,因此不会对整本书内容进行一次性排版和渲染,一般是预先渲染几页,边翻页边渲染,所以滚动翻页速度不是很快;当要翻阅下一章时需要先读取下一章的数据进行排版和渲染,所以速度会更慢些。当使用电子阅读APP在线阅读电子书时,因为需要先通 过网络下载阅读内容,再进行排版渲染等,所以需要等待时间更长,速度更慢些。
当用户想要进行快速翻阅或者进行跳跃式阅读,使用上面介绍的模仿式或覆盖式的横向翻页方式的话,这种翻页方式的翻页速度较慢,无法实现快速翻阅或跳跃式阅读;而采用滚动式翻页,尤其纵向滚动式翻页方式来达到快速翻阅或跳跃式阅读的目的时,上述的滚动翻页速度不够快和等待时间所带来的卡顿现象会造成用户的体验感较差。另外,如果用户正处于在线阅读,当进入到网络信号差或无信号的环境中将无法下载后续内容,在回到信号强的环境里时需要重新操作来继续阅读,这样的体验感也较差。
发明内容
本发明的目的在于提供一种用于电子书阅读的滚动翻页的显示方法和装置,以改善上述的至少一个问题。
根据本发明的一个方面,提供了一种用于电子书阅读的滚动翻页的显示方法,该方法包括:
加载电子书数据并获取所述电子书的分页信息;
在执行滚动翻页过程中显示占位图;
当滚动翻页停止时请求显示当前页面内容;
根据所述分页信息进行排版和显示当前页面内容。
其中,所述加载电子书数据步骤可以包括使用电子书阅读器加载本地电子书数据,或者通过网络加载网络上的电子书数据。
其中,当通过网络加载网络上的电子书数据时,在执行滚动翻页过程中客户端将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,服务器端执行分页工作并根据接收的数据信息获得分页信息,在接收到显示当前页面内容的请求时将相应的电子书数据发送给客户端。
其中,当接收到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,在存在所述相应数据的情况下,进行排版和显示 当前页面内容;在不存在所述相应数据的情况下,先显示占位图并请求所述相应数据以及所述当前页面前后N页的数据并缓存,然后进行排版和显示,其中,所述N是自然数。
其中,所述分页信息包括如下的至少一项:所述电子书的页数、每页在电子书中的位置信息、每页中的文字数量以及文字在所述电子书中的起止位置。
其中,所述占位图是替代滚动中的电子书的页面的图片。
根据本发明的另一个方面,还提供了一种用于电子书阅读的滚动翻页的显示装置,该装置可以包括:
读取单元,用于加载电子书数据;
滚动单元,用于执行屏幕滚动控制;
请求单元,用于当滚动翻页停止时发送显示当前页面内容的请求;
分页单元,用于执行分页工作和获取所述电子书的分页信息;
显示单元,用于显示内容,包括显示占位图和根据所述分页信息进行排版和显示当前页面内容。
其中,所述加载电子书数据包括:使用电子书阅读器加载本地电子书数据或者通过网络加载网络上的电子书数据。
其中,当通过网络加载网络上的电子书数据时,在执行滚动翻页过程中所述显示装置将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,服务器端执行分页工作并根据接收的数据信息获得分页信息,在接收到显示当前页面内容的请求时将相应的电子书数据发送给显示装置。
其中,当显示单元接收到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,在存在所述相应数据的情况下,进行排版和显示当前页面内容;在不存在所述相应数据的情况下,先显示占位图并请求所述相应数据以及所述当前页面前后N页的数据并缓存,然后进行 排版和显示,其中,所述N是自然数。
其中,所述分页信息包括如下的至少一项:所述电子书的页数、每页在电子书中的位置信息、每页中的文字数量以及文字在所述电子书中的起止位置。
其中,所述占位图是替代滚动中的电子书的页面的图片。
根据本发明的又一方面,还提供了一种计算设备,包括:显示屏幕;处理器;以及存储器。存储器其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行上文述及的显示方法。
根据本发明的又一方面,还提供了一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行上文述及的显示方法。
根据本发明的用于电子书阅读的滚动翻页的显示方法和装置,由于使用了占位图技术,可以实现比现有技术更快速、翻动页数更多的滚动翻页;也不会发生翻阅下一章时的滚动卡顿,快速滚动翻页更流畅;再者,在线阅读时,可以实现在经过断网后再联网时无需重新操作而自动显示当前页面内容。
附图说明
图1是根据本发明一个实施例的用于电子书阅读的滚动翻页的显示方法的流程图;
图2是根据本发明一个实施例的用于电子书阅读的滚动翻页的显示装置的示意性框图。
图3是根据本发明一个实施例的计算设备的示意性框图。
具体实施方式
下面将结合本发明实施例和附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而 不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
下面将结合本发明的附图和具体实施例,对本发明的技术方案进行清楚、完整地描述。
图1是根据本发明一个实施例的用于电子书阅读的滚动翻页的显示方法的流程图。
如图1所示,根据本发明滚动翻页的显示方法,在步骤S1:加载电子书数据并获取所述电子书的分页信息。
所述加载电子书数据并获取分页信息步骤可以采用本领域公知的任何技术来实现。而所述加载电子书数据步骤可以包括使用电子书阅读器加载本地电子书数据,或者也可以包括通过网络加载网络上的电子书数据。
电子书阅读器可以包括但不限于:智能手机、平板电脑、具有硬件结构的电子书阅读器等终端。所述电子书阅读器例如可以是具有电子墨水屏或LCD屏或LED屏并且可以打开和显示电子书的硬件产品。所述加载本地电子书数据就是使用电子书阅读器打开其内部所存储的电子书文本或者在插入到该电子书阅读器的存储介质上存储的电子书文本。所述通过网络加载网络上的电子书数据就是使用具有上网功能的电子书阅读器使用浏览器登录提供电子书阅读的网站(例如书旗小说网等)来打开该网站上提供的电子书文本。电子书的格式可以包括但不限于txt,epub,umd,pdf,html,chm等。
所述获取分页信息也可以采用本领域公知的任何技术来实现。一般来说,装有电子阅读APP产品的智能手机或平板电脑,或者专门用来阅读电子书的电子书阅读器,在打开电子书时就会对其进行分页处理,可以在后 续阅读过程中确定页面的页数以及每页中的文字数量。所述分页信息可以包括如下的至少一项:电子书的页数、每页在电子书中的位置信息或页码、每页中的文字数量和文字在电子书中的起止位置等。简单举例说明:排版引擎里的分页单元可以根据设置的电子阅读器的显示参数和字体参数来对电子书进行分页,例如计算所打开电子书的页数,标记每页在电子书中的位置信息或页码,做成列表,每页中的文字数量,每页所显示文字在电子书中的起止位置,例如第1页所显示文字包括从1字符到128字符、第2页所显示文字包括从129字符到300字符…直到最后一页。设置的显示参数包括屏幕的宽度、高度、文字显示区域的边框宽度、文字行距等;字体参数包括字体、字号等。
在步骤S2:在执行滚动翻页过程中显示占位图。
所述滚动翻页包括横向滚动翻页和纵向滚动翻页。滚动翻页使用了屏幕滚动显示技术,这里可以采用本领域公知的任意屏幕滚动显示技术来实现滚动翻页。以纵向滚动为例进行简要说明。终端屏幕采用触摸屏,通过触点在屏幕上的滑动,调用可以使屏幕显示滚动的系统控件,例如提供纵向滑动的控件TableView,当屏幕显示纵向滑到第n屏时,请求第n屏的内容并进行展示。
现有的电子阅读APP采用一边滚动翻页一边排版渲染的方式显示文字图像,虽然在滚动翻页过程中能显示每页文字信息,但因为排版和渲染需要时间,所以滚动翻页速度不是很快,而且滚动页数也不是很多;遇到翻阅下一章时还会有滚动卡顿发生。
为了解决这个问题,实现快速滚动翻页并且一次性滚动页数更多,发明人发现读者在采用滚动翻页来阅读时,其目的是省略掉中间内容,快速翻到想要看的内容。例如对于长篇小说,读者想略过主人公的成长篇幅,直接阅读主人公打拼闯荡经历,采用快速滚动翻页方式阅读是非常合适的。虽然很多小说都有章节,可以选择某一章节开始阅读,但很多网络小说的章节没有标题,只有标有第1章、第2章……等,所以无法知道第N章要 讲什么内容。
基于读者采用滚动翻页方式是想省略阅读中间内容,发明人设计出一种在执行滚动翻页过程中新的显示方式,即当读者执行滚动翻页操作,电子书阅读器,更具体的说电子阅读APP产品不对滚动中的电子书的页面进行排版、渲染和显示内容,而采用占位图来替代滚动中的电子书的页面进行显示,这样节省了排版和渲染所需要的时间,还能使用占位图记录滚动过的页数。众所周知,电子书的内容是以页面图像的形式显示在屏幕上,所以采用占位图来替代电子书的页面图像进行显示的方法是可行的。
占位图是替代滚动中的电子书的页面的图片。
占位图可以使用电子书阅读器终端自身存储的能够显示的任意图片,优选数据量小、像素低的图片,更优选无实际内容的图片,电子书阅读器能够显示的图片格式包括电子阅读APP产品能够打开显示的任意图片格式,例如jpg、bmp、gif等。
在步骤S3:当滚动翻页停止时请求显示当前页面内容。
在所述当滚动翻页停止时请求显示当前页面内容步骤中,滚动翻页停止可以包括两种方式:1是通过点击触摸屏幕来使得滚动翻页停止;2是让滚动翻页自然停止。本领域技术人员都明白,现有公知的屏幕滚动显示技术可以通过用户滑动触摸屏来使屏幕滚动,如显示的电子书的页面滚动,浏览的网页滚动,在用户点击而非滑动触摸屏时,滚动会停止;或者,当用户滑动触摸屏来使屏幕滚动,在滚动一段距离后自然停止滚动,这里不再赘述技术细节。当检测到滚动翻页停止时发送显示当前页面内容的请求,以便请求显示当前页面内容。例如上述,当屏幕显示纵向滚动停止时控件TableView向预加载线程请求显示当前第X页的内容。
在步骤S4:根据所述分页信息进行排版和显示当前页面内容。
当预加载线程接到请求后,根据所获得的分页信息查询是否存在相应数据,如果有则直接显示;如果没有则先显示占位图并以0.1秒间隔的时钟 向预加载线程请求当前页面的内容,排版引擎合成当前第X页和第X-N页~X+N页的内容,并进行缓存。如果还未加载完用户又开始翻页,则取消当前页查询时钟Timer,以保证始终只能存在一个查询时钟。
即,当接收到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,在存在相应数据(例如阅读的是本地电子书或者位于网络上的电子书的相应内容数据已经下载且缓存)的情况下,则进行排版和显示当前页面内容;在不存在相应数据的情况下,则先显示占位图并请求相应数据以及当前页面前后N页的数据并缓存,然后进行排版和显示。其中,N是自然数,在一个优选实施例中,N是预定自然数。通过使用占位图显示当前页面,能够避免出现白屏而页面显示不连贯的现象。
在一个优选实施例中,当通过网络加载网络上的电子书数据时,在执行滚动翻页过程中客户端(电子书阅读器)显示占位图并且将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,服务器端执行分页工作并根据接收的数据信息获得分页信息,在收到显示当前页面内容的请求时将相应的电子书数据发送给客户端。该方法的优点在于:当读者在线阅读电子书时,尤其是处在不断移动的条件下,例如坐在行驶中的公共汽车里在线阅读电子书,或者边走边看网络上的电子书,在经过网络信号差或无信号的区域后回到信号强的区域(即经过断网后再联网)时,不需要重新操作来继续阅读,而是可以自动显示当前页面内容。这是因为读者翻动下一页或者滚动翻页时,其手里的电子书阅读器(客户端)将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,由服务器准备相关数据并且在网络信号强(联网)时将相应的电子书数据发送给客户端,而客户端由于在翻页过程中显示占位图,而占位图的作用之一是临时替代页面文字图像,这使得客户端即使没有接收到服务器端发来的电子书数据也能够进行翻页,尤其是滚动翻页,继而在接收到服务器端发送的数据后显示所需要的当前页的文字内容。
根据本发明的用于电子书阅读的滚动翻页的显示方法,由于使用了占 位图技术,可以实现比现有技术更快速、翻动页数更多的滚动翻页;也不会发生翻阅下一章时的滚动卡顿;再者,在线阅读时,可以实现在经过断网后再联网时无需重新操作而自动显示当前页面内容。
图2是根据本发明一个实施例的用于电子书阅读的滚动翻页的显示装置的示意性框图。如图2所示,本发明的用于电子书阅读的滚动翻页的显示装置包括:
读取单元,用于加载电子书数据;
滚动单元,用于执行屏幕滚动控制;
请求单元,用于当滚动翻页停止时发送显示当前页面内容的请求;
分页单元,用于执行分页工作和获取所述电子书的分页信息;
显示单元,用于显示内容,包括显示占位图和根据所述分页信息进行排版和显示当前页面内容。
其中所述加载电子书数据包括:使用电子书阅读器加载本地电子书数据或者通过网络加载网络上的电子书数据。
其中所述分页信息包括如下的至少一项:所述电子书的页数、每页在电子书中的位置信息、每页中的文字数量和文字在所述电子书中的起止位置。
其中当显示单元接到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,在存在所述相应数据的情况下,则进行排版和显示当前页面内容;在不存在所述相应数据的情况下,则先显示占位图并请求所述相应数据以及所述当前页面前后N页的数据并缓存,然后进行排版和显示,其中,所述N是自然数,在一个优选实施例中,N是预定自然数。
占位图是替代滚动中的电子书的页面的图片。
在一个优选实施例中,当通过网络加载网络上的电子书数据时,在执行滚动翻页过程中显示装置将需要显示内容的参数、显示区域大小和滚动 距离发送给服务器端,服务器端执行分页工作并根据接收的数据信息获得分页信息,在接收到显示当前页面内容的请求时将相应的电子书数据发送给显示装置。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
根据本发明的用于电子书阅读的滚动翻页的显示装置,由于使用了占位图技术,可以实现比现有技术更快速、翻动页数更多的滚动翻页;也不会发生翻阅下一章时的滚动卡顿;再者,在线阅读时,可以实现在经过断网后再联网时无需重新操作而自动显示当前页面内容。
另外,本发明的用于电子书阅读的滚动翻页的显示方案还可以由一种计算设备实现。图3是根据本发明一个实施例的计算设备的示意性框图。
如图3所示,本发明的计算设备300可以包括显示屏幕310、处理器320和存储器330。显示屏幕310上用于显示电子书的页面或页面内容,存储器330上存储有可执行代码,当所述可执行代码被所述处理器320执行时,使所述处理器320执行上文述及的用于电子书阅读的滚动翻页的显示方法。
本发明实施例所提供的一种用于电子书阅读的滚动式翻页的显示方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服 务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种用于电子书阅读的滚动翻页的显示方法,包括:
    加载电子书数据并获取所述电子书的分页信息;
    在执行滚动翻页过程中显示占位图;
    当滚动翻页停止时请求显示当前页面内容;以及
    根据所述分页信息进行排版和显示当前页面内容。
  2. 根据权利要求1所述的滚动翻页的显示方法,其特征在于,所述加载电子书数据的步骤包括:
    使用电子书阅读器加载本地电子书数据;或者
    通过网络加载网络上的电子书数据。
  3. 根据权利要求2所述的滚动翻页的显示方法,其特征在于,当加载网络上的电子书数据时,
    在执行滚动翻页过程中客户端将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,
    所述服务器端执行分页工作并根据接收的数据信息获得分页信息,在接收到显示当前页面内容的请求时将相应的电子书数据发送给所述客户端。
  4. 根据权利要求1所述的滚动翻页的显示方法,其特征在于,当接收到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,
    在存在所述相应数据的情况下,进行排版和显示当前页面内容;以及/或者
    在不存在所述相应数据的情况下,先显示所述占位图并请求所述相应数据以及所述当前页面前后N页的数据并缓存,然后进行排版和显示,
    其中,所述N是自然数。
  5. 根据权利要求1所述的滚动翻页的显示方法,其特征在于,所述分页信息包括如下的至少一项:
    所述电子书的页数;
    每页在电子书中的位置信息;
    每页中的文字数量;以及
    文字在所述电子书中的起止位置。
  6. 根据权利要求1-5中任何一项所述的滚动翻页的显示方法,其特征在于,所述占位图是替代滚动中的电子书的页面的图片。
  7. 一种用于电子书阅读的滚动翻页的显示装置,包括:
    读取单元,用于加载电子书数据;
    滚动单元,用于执行屏幕滚动控制;
    请求单元,用于当滚动翻页停止时发送显示当前页面内容的请求;
    分页单元,用于执行分页工作和获取所述电子书的分页信息;
    显示单元,用于显示内容,包括显示占位图和根据所述分页信息进行排版和显示当前页面内容。
  8. 根据权利要求7所述的滚动翻页的显示装置,其特征在于,所述加载电子书数据包括:
    使用电子书阅读器加载本地电子书数据,或者
    通过网络加载网络上的电子书数据。
  9. 根据权利要求8所述的滚动翻页的显示装置,其特征在于,当加载网络上的电子书数据时,
    在执行滚动翻页过程中该显示装置将需要显示内容的参数、显示区域大小和滚动距离发送给服务器端,
    所述服务器端执行分页工作并根据接收的数据信息获得分页信息,在接收到显示当前页面内容的请求时将相应的电子书数据发送给该显示装置。
  10. 根据权利要求7所述的滚动翻页的显示装置,其特征在于,当所述显示单元接收到显示当前页面内容的请求后,根据所获得的分页信息查询是否存在相应数据,
    在存在所述相应数据的情况下,进行排版和显示当前页面内容;以及/或者
    在不存在所述相应数据的情况下,先显示所述占位图并请求所述相应数据以及所述当前页面前后N页的数据并缓存,然后进行排版和显示,
    其中,所述N是自然数。
  11. 根据权利要求7所述的滚动翻页的显示装置,其特征在于,所述分页信息包括如下的至少一项:
    所述电子书的页数;
    每页在电子书中的位置信息;
    每页中的文字数量;以及
    文字在所述电子书中的起止位置。
  12. 根据权利要求7-11中任何一项所述的滚动翻页的显示装置,其特征在于,所述占位图是替代滚动中的电子书的页面的图片。
  13. 一种计算设备,包括:
    显示屏幕;
    处理器;以及
    存储器,其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行如权利要求1-6中任何一项所述的显示方法。
  14. 一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行如权利要求1至6中任一项所述的显示方法。
PCT/CN2017/119044 2016-12-29 2017-12-27 滚动翻页的显示方法和装置、计算设备及存储介质 WO2018121618A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611242505.4A CN106648343A (zh) 2016-12-29 2016-12-29 一种用于电子书阅读的滚动翻页的显示方法和装置
CN201611242505.4 2016-12-29

Publications (1)

Publication Number Publication Date
WO2018121618A1 true WO2018121618A1 (zh) 2018-07-05

Family

ID=58835814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119044 WO2018121618A1 (zh) 2016-12-29 2017-12-27 滚动翻页的显示方法和装置、计算设备及存储介质

Country Status (2)

Country Link
CN (1) CN106648343A (zh)
WO (1) WO2018121618A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410849A (zh) * 2018-12-21 2019-03-01 上海墨案智能科技有限公司 刷新控制方法、装置及存储介质
CN110266526A (zh) * 2019-06-10 2019-09-20 浙江大华技术股份有限公司 一种设备树的加载方法及设备
CN110765380A (zh) * 2019-09-29 2020-02-07 五八有限公司 一种列表页的数据加载方法以及终端
CN110807162A (zh) * 2018-07-20 2020-02-18 北京京东尚科信息技术有限公司 加载占位图的方法和装置
CN111611037A (zh) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 用于电子书的视图对象处理方法、电子设备及存储介质
CN111989668A (zh) * 2019-02-26 2020-11-24 西安诺瓦星云科技股份有限公司 数据项显示方法、装置及系统和计算机可读存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829077B (zh) * 2017-08-29 2023-10-24 阿里巴巴集团控股有限公司 一种页面显示方法、装置和设备
CN107728988B (zh) * 2017-10-12 2020-11-06 青岛海信移动通信技术股份有限公司 用于墨水屏的内容显示方法及装置
CN108255952B (zh) * 2017-12-19 2020-11-03 东软集团股份有限公司 数据加载方法、装置、存储介质及电子设备
CN110751930B (zh) * 2018-01-22 2021-05-18 青岛海信移动通信技术股份有限公司 用于墨水屏的页面刷新方法及装置
CN108874486B (zh) * 2018-06-11 2022-04-12 江苏中威科技软件系统有限公司 页面加载的方法、终端及具有存储功能的装置
CN109917989A (zh) * 2019-03-06 2019-06-21 珠海金山网络游戏科技有限公司 一种实现虚拟翻页的方法及装置、计算设备和存储介质
CN110489682B (zh) * 2019-07-08 2022-04-15 北京三快在线科技有限公司 一种页面加载方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963888A (zh) * 2010-09-30 2011-02-02 宇龙计算机通信科技(深圳)有限公司 一种电子终端及其控制页面滚动条的方法
CN102646008A (zh) * 2011-02-16 2012-08-22 汉王科技股份有限公司 电子阅读器文档多显示页面的显示方法和装置
US20130227408A1 (en) * 2012-02-29 2013-08-29 Anusha Shanmugarajah Page Turning in Electronic Document Readers
CN104102419A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 页面显示方法、装置和终端设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216606B (zh) * 2013-06-05 2018-04-03 北京齐尔布莱特科技有限公司 基于安卓操作系统的WebView翻页特效方法
CN105278797A (zh) * 2014-06-27 2016-01-27 中兴通讯股份有限公司 页面切换的显示方法及装置
CN105786352B (zh) * 2014-12-26 2019-08-06 阿里巴巴集团控股有限公司 快速定位页面内容的方法、装置及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963888A (zh) * 2010-09-30 2011-02-02 宇龙计算机通信科技(深圳)有限公司 一种电子终端及其控制页面滚动条的方法
CN102646008A (zh) * 2011-02-16 2012-08-22 汉王科技股份有限公司 电子阅读器文档多显示页面的显示方法和装置
US20130227408A1 (en) * 2012-02-29 2013-08-29 Anusha Shanmugarajah Page Turning in Electronic Document Readers
CN104102419A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 页面显示方法、装置和终端设备

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807162A (zh) * 2018-07-20 2020-02-18 北京京东尚科信息技术有限公司 加载占位图的方法和装置
CN109410849A (zh) * 2018-12-21 2019-03-01 上海墨案智能科技有限公司 刷新控制方法、装置及存储介质
CN111989668A (zh) * 2019-02-26 2020-11-24 西安诺瓦星云科技股份有限公司 数据项显示方法、装置及系统和计算机可读存储介质
CN111989668B (zh) * 2019-02-26 2024-05-14 西安诺瓦星云科技股份有限公司 数据项显示方法、装置及系统和计算机可读存储介质
CN110266526A (zh) * 2019-06-10 2019-09-20 浙江大华技术股份有限公司 一种设备树的加载方法及设备
CN110266526B (zh) * 2019-06-10 2022-12-06 浙江大华技术股份有限公司 一种设备树的加载方法及设备
CN110765380A (zh) * 2019-09-29 2020-02-07 五八有限公司 一种列表页的数据加载方法以及终端
CN110765380B (zh) * 2019-09-29 2023-12-05 五八有限公司 一种列表页的数据加载方法以及终端
CN111611037A (zh) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 用于电子书的视图对象处理方法、电子设备及存储介质
CN111611037B (zh) * 2020-05-09 2023-04-07 掌阅科技股份有限公司 用于电子书的视图对象处理方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN106648343A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2018121618A1 (zh) 滚动翻页的显示方法和装置、计算设备及存储介质
US9826052B2 (en) Web page content loading control method and device
US9984045B2 (en) Dynamic adjustment of rendering parameters to optimize reading speed
US20140006934A1 (en) Method for rearranging web page
WO2017173914A1 (zh) 信息展示界面的变更方法和装置
US20140229820A1 (en) Method and device for displaying picture on browser of user equipment as required
US20140136973A1 (en) Segmented delivery of preview content
US20150193386A1 (en) System and Method of Facilitating Font Selection and Manipulation of Fonts
US20120331373A1 (en) Asynchronous Redrawing in Online Document Processors
JP2011128204A (ja) 広告配信装置、方法及びプログラム
CN107533568B (zh) 确定应用缩放等级的系统和方法
CN111581473B (zh) 一种网页处理方法
CN109740081A (zh) 页面加载方法及装置
JP5918427B2 (ja) 配信装置、表示制御装置、表示制御方法および表示制御プログラム
JP2016177811A (ja) 配信装置、表示制御装置、表示制御方法およびプログラム
US20130262445A1 (en) Browsing real-time search results reliably on a mobile computing device
TWI530868B (zh) 網頁服務系統、網頁伺服器及網頁提供方法
JP5563703B2 (ja) コンテンツ配信装置、コンテンツ配信方法、コンテンツ配信プログラム及び端末用プログラム
US20140223291A1 (en) System and method for restructuring content on reorientation of a mobile device
JP2015210510A (ja) 配信装置、表示制御装置、表示制御方法および表示制御プログラム
US20160085728A1 (en) Information display device, delivery device, information display method, and non-transitory computer readable storage medium
CN106874387B (zh) 一种自适应html滚屏展示实时信息的方法
JP7366528B2 (ja) 出力内容生成装置、出力内容生成方法及びプログラム
WO2016019874A1 (zh) 页面资源加载方法和装置
JP2019086931A (ja) 情報処理装置およびコンピュータプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17886081

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17886081

Country of ref document: EP

Kind code of ref document: A1