CN113946774A - Book webpage skipping method, computing device and computer storage medium - Google Patents

Book webpage skipping method, computing device and computer storage medium Download PDF

Info

Publication number
CN113946774A
CN113946774A CN202111248276.8A CN202111248276A CN113946774A CN 113946774 A CN113946774 A CN 113946774A CN 202111248276 A CN202111248276 A CN 202111248276A CN 113946774 A CN113946774 A CN 113946774A
Authority
CN
China
Prior art keywords
book
webpage
anchor point
fragment
resource file
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.)
Granted
Application number
CN202111248276.8A
Other languages
Chinese (zh)
Other versions
CN113946774B (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202111248276.8A priority Critical patent/CN113946774B/en
Publication of CN113946774A publication Critical patent/CN113946774A/en
Application granted granted Critical
Publication of CN113946774B publication Critical patent/CN113946774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a book webpage jumping method, a computing device and a computer storage medium, wherein the method comprises the following steps: receiving a webpage skipping request triggered by a user in a current webpage of a book; judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors; if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point; if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage; and jumping to the next webpage according to the next book fragment anchor point. By the mode, the user can directly display the new webpage without stopping on the webpage when triggering the jump request aiming at the book webpage with the plurality of book fragment anchor points, so that the problem that the new webpage can be checked only by multiple operations can be avoided, the problem that the same page is repeatedly checked before the new webpage is jumped can also be avoided, and the reading experience of the user is optimized.

Description

Book webpage skipping method, computing device and computer storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a book webpage skipping method, a computing device and a computer storage medium.
Background
In order to facilitate people to read books, people can view electronic books in various forms, such as an APP and a webpage, the electronic book can be rendered on the APP by using a client engine, a better display effect is achieved, and a user can read the electronic book by using the webpage, an applet or a webpage loaded in a quick application.
In the related technology, an epub book is composed of a plurality of html files, and meanwhile, each chapter of the book is provided with a corresponding chapter anchor, and the skip of a book webpage is realized through the chapter anchors. Generally, 1 html file contains 1 chapter, but in some special cases, contents of consecutive chapters are placed in the same html file, and if 1 html file contains a plurality of chapters, a plurality of anchors exist on one webpage at the same time.
The inventor discovers that in the process of implementing the invention: under the condition that a plurality of anchor points exist in a webpage at the same time, a user can trigger the next anchor point after triggering the skip operation in the webpage, if the next anchor point is still the anchor point in the webpage, the webpage is still displayed, the user does not really skip to a new webpage, the user needs to operate for skipping the new webpage for many times, and the same webpage can be repeatedly displayed to the user before skipping to the new webpage, so that the reading experience of the user is seriously influenced.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a method for jumping a book page, a computing device and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for jumping a webpage of a book, including:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors;
if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the next book fragment anchor point.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors;
if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the next book fragment anchor point.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors;
if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the next book fragment anchor point.
According to the book webpage skipping method, the computing equipment and the computer storage medium, a webpage skipping request triggered by a user in a current webpage of a book is received; judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors; if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point; if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage; and jumping to the next webpage according to the next book fragment anchor point. By the mode, the user can directly display the new webpage without stopping on the webpage when triggering the jump request aiming at the book webpage with the plurality of book fragment anchor points, so that the problem that the new webpage can be checked only by multiple operations can be avoided, the problem that the same page is repeatedly checked before the new webpage is jumped can also be avoided, and the reading experience of the user is optimized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for skipping a webpage of a book according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for jumping a webpage of a book according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of a method for jumping a book webpage according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S110, receiving a webpage jump request triggered by the user in the current webpage of the book.
The current web page has a web page jump entry, such as a control or button, etc., presented therein, which is displayed as the "next chapter" of the document. The client detects the triggering operation of the user on the webpage jump entry in the current webpage and initiates a webpage jump request.
Step S120, determining whether the web resource file of the current web page includes a plurality of book segment anchors.
If yes, go to step S130; if not, go to step S140.
The webpage resource file is used for rendering and displaying the webpage of the book, and the anchor points of the book fragments are in one-to-one correspondence with the book fragments. That is, if the web resource file includes a plurality of book fragments, the web resource file also includes book fragment anchors corresponding to the plurality of book fragments.
The book segments are obtained by dividing according to a preset dimension, for example, according to a chapter dimension, each book segment is a chapter of the book, and for example, according to an episode dimension, each book segment is a complete episode of the book. The present invention does not limit the dividing method of the book fragments.
Step S130, determining a last book segment anchor point of the plurality of book segment anchor points, and determining a next book segment anchor point according to the last book segment anchor point.
Wherein, the next book segment anchor is the book segment anchor to be triggered.
If the webpage resource file of the current webpage contains a plurality of book segment anchors, identifying the last book segment anchor in the webpage resource file of the current webpage, and determining a book segment anchor behind the last book segment anchor as a book segment anchor to be triggered.
For example, chapter 2, chapter 3, and chapter 4 of a book are integrated into one web resource file. In the related technology, after a user triggers a next chapter button in a webpage of chapter 1, loading a webpage resource file corresponding to the chapter anchor of chapter 2 according to the next chapter anchor, namely the chapter anchor of chapter 2, so as to jump to a next book webpage (hereinafter referred to as book webpage 1), and then presenting the book contents of chapters 2-4; then, the user clicks the next chapter button again in the book webpage 1, and then the webpage resource file corresponding to the chapter anchor of chapter 3 is loaded according to the next chapter anchor, namely the chapter anchor of chapter 3, and the loading result still displays the book webpage 1; similarly, the user triggers the next chapter button in the book page 1 for the second time, and loads the page resource file according to the next chapter anchor, that is, the chapter anchor of chapter 4, and the loading result still shows the same book page 1. If the user wants to view chapter 5, the user needs to perform two triggering operations on the web page containing chapter 2, and before jumping to chapter 5, the web page containing chapter 2 is loaded multiple times. As can be seen, in the related art, for a webpage with multiple book fragment anchors, a user needs to perform multiple jump operations to jump to a next webpage, and before jumping to the next webpage, the user needs to check the same webpage multiple times.
In the method of the embodiment of the application, after a webpage jump request is received, it is first determined whether a webpage resource file of a current webpage contains a plurality of book segment anchors, if yes, a last book segment anchor in the plurality of book segment anchors is identified, a next book segment anchor is determined according to the last book segment anchor, the next book segment anchor is no longer a book segment anchor in the webpage resource file of the current webpage, and a page jumped according to the next book segment anchor is a new page.
Step S140, determining the anchor point of the next book segment according to the anchor point of the book segment of the current webpage.
And if the book of the current webpage does not contain a plurality of book segment anchors, namely only contains one book segment anchor, determining one book segment anchor behind the book segment anchor as the book segment anchor to be triggered.
Step S150, jump to the next web page according to the next book clip anchor point.
And loading the corresponding webpage resource file through the anchor point of the next book fragment, thereby skipping to display the next webpage.
According to the book webpage jumping method provided by the embodiment, a webpage jumping request triggered by a user in a current webpage of a book is received; judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors; if the current webpage triggering the jump request only contains one book segment anchor point, determining a next book segment anchor point according to the book segment anchor point, and jumping to the next webpage of the current webpage according to the next book segment anchor point; and if the current webpage triggering the jump request contains at least two book segment anchors, determining a next book segment anchor according to the last book segment anchor, and jumping to a new webpage according to the next book segment anchor. By the mode, the user can directly display the new webpage without stopping on the webpage when triggering the jump request aiming at the book webpage with the plurality of book fragment anchor points, so that the problem that the new webpage can be checked only by repeated chapter jump operations can be avoided, the problem that the same page is repeatedly checked before the new webpage is jumped can also be avoided, and the reading experience of the user is optimized.
Fig. 2 is a flowchart illustrating a method for jumping a book webpage according to another embodiment of the present invention, where as shown in fig. 2, the method includes the following steps:
step S210, parsing the resource files of the book to obtain a plurality of web page resource files.
The resource files of the books are epub files, and the webpage resource files are HTML files. In the process that a user views an electronic book through a client, generally, the client loads an epub book, decompresses and analyzes the epub book, extracts an HTML file corresponding to a current CHAPTER, starts with a first HTML, writes CHAPTER content into a CHAPTER _ HTML variable in epub.html in a character string manner, identifies dir as "rtl" for a language from right to left, inserts a required style file into an epub.html header, and loads epub.html through an Android built-in browser kernel.
Before step S210, the following steps are also included: and integrating to obtain a webpage resource file according to the content of each book segment of the book, the content of at least two continuous book segments and the book segment anchor points thereof. In the process of processing book resources, a plurality of book segments with less contents can be integrated into one webpage resource file, so that resource waste is avoided, and the visual influence of nonuniform book content typesetting caused by too little display content on a single page to a user is avoided.
In an optional mode, a word number threshold is set, and if the word numbers of at least two consecutive book segments do not reach the word number threshold, a web resource file is obtained by integration according to the contents of the at least two consecutive book segments and the corresponding book segment anchor points thereof. In another optional mode, a word number range is set, and if the sum of the word numbers of the at least two consecutive book segments is within the word number range, a web resource file is obtained by integration according to the contents of the at least two consecutive book segments and the corresponding book segment anchor points thereof. By the method, a plurality of book fragments with small word number are integrated into one webpage, and resources, network resources and computing resources can be stored.
Correspondingly, if the word number of the book fragment exceeds the word number threshold value or the word number of the book fragment is within the word number range, a webpage resource file is generated according to the content of the book fragment and the corresponding book fragment anchor point.
Step S220 is to detect the number of anchor points of the book segment contained in any web resource file of the book.
Specifically, according to the anchor standard format information, the book segment anchors included in the web resource file are identified, and the number of the book segment anchors is obtained. For example, according to the identifier "#" of the anchor point, the book fragment anchor points contained in each web resource file are identified, and then the number of the book fragment anchor points in each web resource file is determined.
In step S230, if the number of the book fragment anchors included in the web resource file reaches 2, a duplicate anchor identifier corresponding to the web resource file is set.
And if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a corresponding repeated anchor mark for the webpage resource file.
Step S240, receiving a webpage jump request triggered by the user in the current webpage of the book.
The client detects the triggering operation of the user on the webpage jump entry in the current webpage and initiates a webpage jump request.
Step S250, determining whether the web resource file of the current web page has a corresponding duplicate anchor identifier.
If so, that is, the web page resource file of the current web page has the corresponding duplicate anchor point identifier, then step 260 is executed; if not, that is, the web page resource file of the current web page does not have the corresponding repeat anchor point identifier, executing step S270;
according to the above, if at least two book segments are integrated into one web resource file, the web resource file will contain at least two book segment anchors, and the web resource file will be set with the repeat anchor identifiers.
If the web resource file has the corresponding repeated anchor point identification, the web resource file is indicated to contain at least two book fragment anchor points, and step S260 is executed; otherwise, if the web resource file does not have the corresponding duplicate anchor identifier, it indicates that the web resource file only contains 1 book segment anchor, and step S270 is executed.
Step S260, determining that the web resource file of the current web page includes the last book segment anchor point of the multiple book segment anchor points, and determining the first book segment anchor point after the last book segment anchor point as the next book segment anchor point according to the sequence between the book segment anchor points.
Each chapter of the book is provided with book segment anchor points, the book chapters are sequentially arranged, and the sequence between the book segment anchor points corresponds to the sequence between the book chapters.
If the webpage resource file of the current webpage contains a plurality of book segment anchor points, firstly, the last book segment anchor point in the plurality of book segment anchor points is identified, and the next book segment anchor point of the last book segment anchor point is determined, so that the next book segment anchor point is the first book segment anchor point in the next page of the current page, and the page jumped according to the next book segment anchor point is the next page of the current page, thereby ensuring the continuity of the page display of the book.
By the mode, the html page with the book fragment anchor points is not stopped on the webpage when a user clicks the next page space for the first time, the new html page can be directly displayed, the problem that the new webpage can be viewed only through multiple operations is avoided, the problem that the same page is repeatedly viewed before the new webpage is skipped can also be avoided, and the reading experience of the user is optimized.
Step S270, according to the sequence between the book segment anchors, determining the first book segment anchor after the book segment anchor of the current webpage as the next book segment anchor.
If the webpage resource file of the current webpage does not have the corresponding repeated anchor mark, the webpage resource file of the current webpage only has one book segment anchor, the next book segment anchor of the book segment anchor is determined according to the sequence of the book segment anchors, the next book segment anchor is the first book segment anchor in the next page of the current page, the page jumped according to the next book segment anchor is the next page of the current page, and therefore the continuity of display of the pages of the books is guaranteed.
Step S280, jump to the next web page according to the anchor of the next book segment.
And loading the corresponding webpage resource file through the anchor point of the next book fragment determined in the step, thereby skipping to display the next webpage of the current webpage.
According to the book webpage skipping method, on one hand, a webpage resource file is obtained according to the content of each book fragment and the integration of a plurality of book fragments, so that storage resources, network resources and computing resources can be saved; on the other hand, the number of the anchor points of the book segments contained in each webpage resource file is detected, and corresponding repeated anchor point identifications are set for the webpage resource files with the number of the anchor points of the book segments exceeding 2, so that the number of the anchor points of the book segments in the webpage resource files of the current webpage can be rapidly judged in the process of page jump processing; on the other hand, aiming at the webpage containing at least 2 book segment anchors, if a skip request is triggered in the webpage, the next webpage of the webpage is skipped to according to the next book segment anchor of the last book segment anchor in the webpage, and by the mode, aiming at the webpage with a plurality of book segment anchors, when a user clicks a next page button, the user does not stop at the webpage but directly displays the next page, so that the problem that the user needs to operate for viewing a new webpage for many times can be avoided, the problem that the user repeatedly views the same page before skipping to the new webpage can be avoided, meanwhile, the continuity of book contents can be guaranteed, and the reading experience of the user is optimized.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the book webpage jumping method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors;
if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the next book fragment anchor point.
In an alternative, the executable instructions cause the processor to:
determining a first book segment anchor point behind a last book segment anchor point as a next book segment anchor point according to the sequence among the book segment anchor points;
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
In an alternative, the executable instructions cause the processor to:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if so, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchors.
In an alternative, the executable instructions cause the processor to:
and identifying the book fragment anchors contained in the webpage resource file according to the anchor standard format information, and determining the number of the book fragment anchors.
In an alternative, the executable instructions cause the processor to:
analyzing the resource files of the books to obtain a plurality of webpage resource files;
the resource files of the books are epub files, and the webpage resource files are HTML files.
In an alternative, the executable instructions cause the processor to:
by the mode, the user can directly display the new webpage without stopping on the webpage when triggering the jump request aiming at the book webpage with the plurality of book fragment anchor points, so that the problem that the new webpage can be checked only by multiple operations can be avoided, the problem that the same page is repeatedly checked before the new webpage is jumped can also be avoided, and the reading experience of the user is optimized.
Fig. 3 is a schematic structural diagram of an embodiment of the computing device of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the foregoing embodiments of the method for jumping a book page of a computing device.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. One or more processors included in the jumping device of the book webpage can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether a webpage resource file of a current webpage contains a plurality of book fragment anchors;
if yes, determining the last book segment anchor point in the plurality of book segment anchor points, and determining the next book segment anchor point according to the last book segment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the next book fragment anchor point.
In an alternative manner, the program 310 causes the processor 302 to:
determining a first book segment anchor point behind a last book segment anchor point as a next book segment anchor point according to the sequence among the book segment anchor points;
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
In an alternative manner, the program 310 causes the processor 302 to:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if so, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchors.
In an alternative manner, the program 310 causes the processor 302 to:
and identifying the book fragment anchors contained in the webpage resource file according to the anchor standard format information, and determining the number of the book fragment anchors.
In an alternative manner, the program 310 causes the processor 302 to:
analyzing the resource files of the books to obtain a plurality of webpage resource files;
the resource files of the books are epub files, and the webpage resource files are HTML files.
In an alternative manner, the program 310 causes the processor 302 to:
and integrating to obtain a webpage resource file according to the content of each book segment of the book, the content of at least two continuous book segments and the book segment anchor points thereof.
By the mode, the user can directly display the new webpage without stopping on the webpage when triggering the jump request aiming at the book webpage with the plurality of book fragment anchor points, so that the problem that the new webpage can be checked only by multiple operations can be avoided, the problem that the same page is repeatedly checked before the new webpage is jumped can also be avoided, and the reading experience of the user is optimized.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a book webpage jumping method comprises the following steps:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether the webpage resource file of the current webpage contains a plurality of book fragment anchor points;
if yes, determining the last book fragment anchor point in the plurality of book fragment anchor points, and determining the next book fragment anchor point according to the last book fragment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the anchor point of the next book fragment.
A2. The method of a1, wherein the determining a next book fragment anchor from the last book fragment anchor further comprises:
determining a first book segment anchor point after the last book segment anchor point as the next book segment anchor point according to the sequence among the book segment anchor points;
the determining a next book fragment anchor according to the book fragment anchor of the current webpage further comprises:
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
A3. The method of a1 or a2, wherein the method further comprises:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
then the determining whether the web resource file of the current web page contains a plurality of book fragment anchors further comprises:
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if yes, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchor points.
A4. The method according to a3, wherein the detecting the number of book fragment anchors included in the web resource file further comprises:
and identifying the book fragment anchors contained in the webpage resource file according to the anchor standard format information, and determining the number of the book fragment anchors.
A5. The method of any one of a1-a4, wherein prior to performing the method, further comprising:
analyzing the resource files of the books to obtain a plurality of webpage resource files;
the resource files of the books are epub files, and the webpage resource files are HTML files.
A6. The method of a5, wherein before the method performs, further comprising:
and integrating to obtain a webpage resource file according to the content of each book segment of the book, the content of at least two continuous book segments and the book segment anchor points thereof.
B7. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether the webpage resource file of the current webpage contains a plurality of book fragment anchor points;
if yes, determining the last book fragment anchor point in the plurality of book fragment anchor points, and determining the next book fragment anchor point according to the last book fragment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the anchor point of the next book fragment.
B8. The computing device of B7, the executable instructions further cause the processor to:
determining a first book segment anchor point after the last book segment anchor point as the next book segment anchor point according to the sequence among the book segment anchor points;
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
B9. The computing device of B7 or B8, the executable instructions further cause the processor to:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if yes, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchor points.
B10. The computing device of B9, the executable instructions further cause the processor to:
and identifying the book fragment anchors contained in the webpage resource file according to the anchor standard format information, and determining the number of the book fragment anchors.
B11. The computing device of any one of B7-B10, the executable instructions further cause the processor to:
analyzing the resource files of the books to obtain a plurality of webpage resource files;
the resource files of the books are epub files, and the webpage resource files are HTML files.
B12. The computing device of B11, the executable instructions further cause the processor to:
and integrating to obtain a webpage resource file according to the content of each book segment of the book, the content of at least two continuous book segments and the book segment anchor points thereof.
C13. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform an operation corresponding to the method for jumping a book page as described in any one of a1-a 6.

Claims (10)

1. A book webpage jumping method comprises the following steps:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether the webpage resource file of the current webpage contains a plurality of book fragment anchor points;
if yes, determining the last book fragment anchor point in the plurality of book fragment anchor points, and determining the next book fragment anchor point according to the last book fragment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the anchor point of the next book fragment.
2. The method of claim 1, wherein said determining a next book segment anchor from the last book segment anchor further comprises:
determining a first book segment anchor point after the last book segment anchor point as the next book segment anchor point according to the sequence among the book segment anchor points;
the determining a next book fragment anchor according to the book fragment anchor of the current webpage further comprises:
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
3. The method according to claim 1 or 2, wherein the method further comprises:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
then the determining whether the web resource file of the current web page contains a plurality of book fragment anchors further comprises:
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if yes, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchor points.
4. The method of claim 3, wherein the detecting the number of book fragment anchors contained in the web resource file further comprises:
and identifying the book fragment anchors contained in the webpage resource file according to the anchor standard format information, and determining the number of the book fragment anchors.
5. The method of any of claims 1-4, wherein prior to performing the method, further comprising:
analyzing the resource files of the books to obtain a plurality of webpage resource files;
the resource files of the books are epub files, and the webpage resource files are HTML files.
6. The method of claim 5, wherein prior to performing the method, further comprising:
and integrating to obtain a webpage resource file according to the content of each book segment of the book, the content of at least two continuous book segments and the book segment anchor points thereof.
7. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
receiving a webpage skipping request triggered by a user in a current webpage of a book;
judging whether the webpage resource file of the current webpage contains a plurality of book fragment anchor points;
if yes, determining the last book fragment anchor point in the plurality of book fragment anchor points, and determining the next book fragment anchor point according to the last book fragment anchor point;
if not, determining a next book segment anchor point according to the book segment anchor point of the current webpage;
and jumping to the next webpage according to the anchor point of the next book fragment.
8. The computing device of claim 7, the executable instructions further cause the processor to:
determining a first book segment anchor point after the last book segment anchor point as the next book segment anchor point according to the sequence among the book segment anchor points;
and determining the first book segment anchor point behind the book segment anchor point of the current webpage as the next book segment anchor point according to the sequence of the book segment anchor points.
9. The computing device of claim 7 or 8, the executable instructions further causing the processor to:
aiming at any webpage resource file of the book, detecting the number of book fragment anchors contained in the webpage resource file;
if the number of the book fragment anchors contained in the webpage resource file reaches 2, setting a repeated anchor mark corresponding to the webpage resource file;
judging whether the webpage resource file of the current webpage has a corresponding repeated anchor point identification;
if yes, determining that the webpage resource file of the current webpage contains a plurality of book fragment anchor points.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform an operation corresponding to the method for jumping a book webpage according to any one of claims 1 to 6.
CN202111248276.8A 2021-10-26 2021-10-26 Book webpage skipping method, computing device and computer storage medium Active CN113946774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111248276.8A CN113946774B (en) 2021-10-26 2021-10-26 Book webpage skipping method, computing device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111248276.8A CN113946774B (en) 2021-10-26 2021-10-26 Book webpage skipping method, computing device and computer storage medium

Publications (2)

Publication Number Publication Date
CN113946774A true CN113946774A (en) 2022-01-18
CN113946774B CN113946774B (en) 2022-04-08

Family

ID=79332397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111248276.8A Active CN113946774B (en) 2021-10-26 2021-10-26 Book webpage skipping method, computing device and computer storage medium

Country Status (1)

Country Link
CN (1) CN113946774B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152236A1 (en) * 2000-10-27 2002-10-17 Fernando Incertis-Carro Method and system for generating hyperlinked physical copies of hyperlinked electronic documents
WO2007000679A2 (en) * 2005-06-28 2007-01-04 Koninklijke Philips Electronics N.V. Presentation of hyperlinks in a document
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN103593333A (en) * 2013-10-16 2014-02-19 小米科技有限责任公司 Electronic book document processing method, terminal and electronic equipment
CN107679214A (en) * 2017-10-16 2018-02-09 深圳视界信息技术有限公司 Link localization method, device, terminal and computer-readable recording medium
CN109976622A (en) * 2019-04-04 2019-07-05 掌阅科技股份有限公司 Books label determines method, electronic equipment and computer storage medium
CN110806822A (en) * 2019-10-25 2020-02-18 掌阅科技股份有限公司 Electronic book interaction method, computing device and computer storage medium
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium
CN111538928A (en) * 2020-04-24 2020-08-14 北京点众科技股份有限公司 Electronic book display method and device and computer readable storage medium
CN112433657A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112486398A (en) * 2020-12-18 2021-03-12 掌阅科技股份有限公司 Method for realizing page turning effect of handwriting, electronic equipment and storage medium
CN112988014A (en) * 2021-03-30 2021-06-18 掌阅科技股份有限公司 Page turning processing method, computing device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152236A1 (en) * 2000-10-27 2002-10-17 Fernando Incertis-Carro Method and system for generating hyperlinked physical copies of hyperlinked electronic documents
WO2007000679A2 (en) * 2005-06-28 2007-01-04 Koninklijke Philips Electronics N.V. Presentation of hyperlinks in a document
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN103593333A (en) * 2013-10-16 2014-02-19 小米科技有限责任公司 Electronic book document processing method, terminal and electronic equipment
CN107679214A (en) * 2017-10-16 2018-02-09 深圳视界信息技术有限公司 Link localization method, device, terminal and computer-readable recording medium
CN109976622A (en) * 2019-04-04 2019-07-05 掌阅科技股份有限公司 Books label determines method, electronic equipment and computer storage medium
CN110806822A (en) * 2019-10-25 2020-02-18 掌阅科技股份有限公司 Electronic book interaction method, computing device and computer storage medium
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium
CN111538928A (en) * 2020-04-24 2020-08-14 北京点众科技股份有限公司 Electronic book display method and device and computer readable storage medium
CN112433657A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112486398A (en) * 2020-12-18 2021-03-12 掌阅科技股份有限公司 Method for realizing page turning effect of handwriting, electronic equipment and storage medium
CN112988014A (en) * 2021-03-30 2021-06-18 掌阅科技股份有限公司 Page turning processing method, computing device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FU-HSIANG WEI 等: "Supporting adaptive mentor by student preference within context of problem-solving learning", 《IEEE INTERNATIONAL CONFERENCE ON ADVANCED LEARNING TECHNOLOGIES, 2004. PROCEEDINGS.》 *
吴硕硕: "基于backbone框架的阅读器的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
覃剑宁: "超媒体电子书应用研究及其系统设计——以暨南大学图书馆为例", 《农业图书情报学刊》 *

Also Published As

Publication number Publication date
CN113946774B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN109254773B (en) Skeleton page generation method, device, equipment and storage medium
CN109614569B (en) Page rendering method and device and intelligent terminal
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN105335404B (en) Page info loading method and device
US9602347B2 (en) Method, system and program for browser to switch IE kernel
CN111143739B (en) Page jump method, computing device and computer storage medium
WO2023273033A1 (en) Method for presenting book prompt information, and computing device and computer storage medium
CN113703893B (en) Page rendering method, device, terminal and storage medium
CN110515631B (en) Method for generating application installation data packet, server and computer storage medium
CN110555179A (en) Dynamic website script evidence obtaining method, terminal equipment and storage medium
CN107040584A (en) The method and device of client downloads picture
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN110750744A (en) Page presentation method and device
CN105354490B (en) Method and equipment for processing hijacked browser
CN106547585B (en) Method and device for guiding user to upgrade application program
CN115017428A (en) Information display method, device, system and storage medium
CN113282209A (en) Electronic book information display method, electronic equipment and computer storage medium
CN113946774B (en) Book webpage skipping method, computing device and computer storage medium
CN107315677B (en) Method and device for judging abnormity of application program
CN111046308A (en) Page loading method and device
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
CN113656549B (en) Content searching method of electronic book, electronic device and computer storage medium
CN113867838A (en) Application program starting method, electronic equipment and computer storage medium
CN111475748B (en) Picture display method and device
CN106095445B (en) Installation method, device and the terminal of driver

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