View Single Post
Old 10-10-2013, 09:16 AM   #830
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,951
Karma: 70880793
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by davidfor View Post
John,

The problem is that what you want can't be done without rendering the complete book. Or at least not for all books.

The other David specified how page numbers are calculated for epubs. It is also described in https://wiki.mobileread.com/wiki/Adob...s#Page_numbers.

All that means it is easy to calculate a page number for the start of each file in the epub. And if each file represents a chapter, then it is easy to calculate the page number.

But, if the chapters are not at the file breaks, you need to render all files to work out which page the chapters are on. That is a lot more work. Of course it is possible, but it could take a long time for a big book.

And for what it is worth, I would say that at least 25% of my books are of the latter type.
You still haven't convinced me.

Your "it might take a long time in some cases" is my "I would rather have page numbers and wait than not have them at all.". (i do not, however, want the displaying of the TOC to be delayed; display the TOC first, and than calculate and display the page numbers)
John F is offline   Reply With Quote