View Single Post
Old 02-21-2013, 10:26 PM   #27
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by TechniSol View Post
No offense intended to anyone's desires, but it seems there is no really proper way to do this without things getting rather involved, as has been pointed out by others. Further, there is no true reference as to what is correct, as published editions have differing page numbers depending on format, type style and font size.
And that's why I am reasonably happy with percentage read plus an idea of how big.
Quote:
All that said, an option to display a new page number for each page worth of type displayed may not be the worst option(I get how it can be disconcerting to flip the page several times and still be on the same page number according to the reader), but it further confuses annotations, etc which would still have to be based on a type size independent format to maintain the location. Maybe it'd be less efficient, but if they counted annotation locations based on how many words they are into a chapter, they'd only have to store chapter number plus chapter word count? Could get rather wasteful depending on how long a chapter might be and vary from work to work. My guess is that's why they went with a likely arbitrary, but easy to work with number for computers like 1024.
You almost got the annotations right. They are stored as walk of the tags. The annotation position is unrelated to the page numbers. Effectively, it is a count of how many paragraphs from the beginning of the file and then the number of characters within the paragraph. The complication to it is because of nested tags and non-paragraph tags. Plus if the chapter doesn't start at the beginning of a file.
davidfor is offline   Reply With Quote