View Single Post
Old 05-13-2009, 08:34 PM   #33
LoganK
Groupie
LoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notes
 
Posts: 199
Karma: 24918
Join Date: May 2009
Device: PRS-505,nook,Nook Color,Android
Quote:
Originally Posted by kovidgoyal View Post
The reason you can open an epub file faster is because internally it is split into multiple html files and only one html file is prerendered at a time.
Yes, but the key is that it calculates a page number without having to render the other files. That is a feature that I really like. Even if BBeB books were internally split (they very well could be ... I've never looked), it seems obvious they wouldn't be able to avoid rendering and still have 1 page equal 1 rendered page.

Quote:
Originally Posted by kovidgoyal View Post
It is perfectly possible to calculate page numbers without rendering the entire document, it's what calibre does, for example (though in that case they aren't strictly "page numbers")
Isn't that what we are talking about here: calculating "page numbers" that don't strictly relate to pages? I don't know where in code the "page numbers" are calculated (so I can't look up the algorithm), but it sounds as though Calibre is doing a similar, not-compatible-with-DE trick. Which is to say that Calibre, when not viewing BBeB files, at least, doesn't pre-render the entire document but also doesn't have a strict page-number-to-rendered-page facility as the original thread was calling for.

For people that are interested in one screen of text being one page, is the tradeoff (slower opening of documents and delays when changing fonts or font sizes) worth it for you?
LoganK is offline   Reply With Quote