View Single Post
Old 05-31-2012, 11:06 AM   #320
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@atjnjk - in this release I made a performance optimisation which Kovid had suggested a while ago (his comment was a generalisation to do with using a particular part of calibre he had changed). I applied that to this plugin - but until you made the comment I stupidly didn't realise that using the optimisation directly affected the character counts.

I'll sort out a new version, but first I want to put in an optimisation for pdfs that will read the information directly from the pdf rather than trying to calculate it using any of the algorithms. A pdf is the only book format that truly does have a "page". I think it is desirable that in the situation of only having a pdf format available (and wanting to count pages in it) that this plugin avoids the potentially large performance penalty of converting to epub and estimating counts based on that, and gives you the *actual* page count instead.
kiwidude is offline   Reply With Quote