Thread: Page Number bug
View Single Post
Old 04-03-2008, 03:52 AM   #3
JohnnyD
Connoisseur
JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.JohnnyD did not drink the Kool Aid.
 
Posts: 95
Karma: 72819
Join Date: Oct 2006
Location: Drenthe, The Netherlands
Device: Cybook Gen3 (cracked screen)/Bebook/Nokia E60/Nokia 5800/Kobo Aura HD
Quote:
Originally Posted by HarryT View Post
Given that it definitely doesn't paginate the book, file position is really the only thing the "page number" has to go on.
another way to solve this problem, is to "index" the book: the book should be "rendered" in memory page-by-page when it's first opened and each time when the font is changed by the user. Of course the Gen3 should do this automatically and in the background, it shouldn't be visible to the user.

The index could be really simple: just a coupling between file position and page number.

Shouldn't take more than an afternoon to program it (for a decent software engineer)
JohnnyD is offline   Reply With Quote