Thread: Page Number bug
View Single Post
Old 04-03-2008, 02:34 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93380187
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by tompe View Post
I did a test text document to see if the progress bar was page number or file position. It is fileposition so the progress bar is no indicator of page number. The consequence of that seems to be that if you have a html file with a lot of invisible html code before the start of the text then the progress bar indicator will be very misleading if it is a short story.

My test text document has at least 60 pages. When I go to jump to page the Cybook claims the number of pages is 17. Seems like a bug to me.

My test document was like:
Code:
12345612345678907890
12345612345678907890
12345678901234567890
12345678901234567890
1
2
3
4
5
6
7
8
9
0
Given that it definitely doesn't paginate the book, file position is really the only thing the "page number" has to go on. I'd guess it's probably doing something like:

page_length = file pos of this page - file page of previous page
number_of_pages = total file size / page_length
progress_bar_position_% = (file pos of this page) / (total file size ) * 100

So a file with wildly different amounts of text on each page might well completely throw off the page count.
HarryT is offline   Reply With Quote