View Single Post
Old 06-02-2012, 04:28 AM   #334
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: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Calibre's viewer uses the number of non whitespace characters (actual text characters not including HTML markup) / 1000 as the number of "pages". This algorithm is a lot better than ADEs, which was implemented purely as the simplest (least resource intensive) way of arriving at a page count on CPU bound devices.

The value of 1000 was chosen to be close to the number of screens per ebook, rather than the number of pages per paperback. For instance, at the font size I prefer, on my Kindle Touch, there are, on average, ~750 non whitespace characters per screen.
kovidgoyal is offline   Reply With Quote