Question

I am writing a proposal for epub reader project which have ability to display vertical text for Japanese language. Firstly, I want to know the main flow of a book reader to load and read epub then define the key point / main technology need to focus on the proposal.

The requirement of book reader here is to have basic features: read book, display current/total pages, go to any position of the book.

As I understand the main flow as bellow:

  1. The BReader extract the epub to xhtml files
  2. The BReader load all the xhtml files to webview
  3. The BR add the js to rotate text to vertical. The js can be nehan
  4. The BR add the js to separate the pages base on the device screen specification
  5. Render the current page

However, in step (2), if it load all the xhtml files, the performance will be very poor for large epub. I studied some Epub Reader like as "E-bookreader of SONY" and "NeoSoar" and see that the time of open a epub is the same (around 5 seconds) for every epub files so I believe that they only load a part of the book at the first time.

How can they do that? and if they only load a part of the epub how do they calculate the total pages? and how they can go to any page number of the book?

No correct solution

OTHER TIPS

You Probably need to refer this.

Download epublib-core-latest.jar from github Download slf4j-android Add both to your android project

and follow the sample.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top