Thread: Prepagination
View Single Post
Old 01-06-2009, 08:23 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the media.xml file on your device. It contains the prepagination information (hex encoded IIRC). LRF is a (partially) reflowable format. What the pre pagination does is tell the reader how many screens of text are there at a particular font size and where in the file each screen starts and ends. So to duplicate that, you have to layout the text on an in-memory screen exactly as the reader would. If you are a little off, that will result in missing lines of text, as you see when you replace the fonts on the reader with others that have different metrics and then try to use a pre paginated book
kovidgoyal is offline   Reply With Quote