View Single Post
Old 05-21-2011, 11:29 AM   #1
kiwidude
calibre/Sigil 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,588
Karma: 2089838
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
[GUI Plugin] Count Pages

This plugin will determine a number of pages and/or words in a book and store the result in custom column(s). In addition to just general library browsing usage, Kindle users can generate APNX files using the value from a pages custom column. So when you send an ebook to your Kindle device from calibre, you will have page numbering available similar to that when loading Amazon books which offer this feature.

You have two overriding methods of determining page count with this plugin.

The first approach is estimation based on the book content, provided you have an ePub format or a format that is convertible to ePub. The format used if your book has multiple is chosen based on your Preferred Input Format order, that you set in Preferences -> Behavior.

Note that if you use this option it can be an approximation only of a paperback edition due to differences in fonts, images, layouts etc. By default it uses an "accurate" algorithm similar to that created by user_none for generating APNX files for Kindle users. Alternatively in the configuration you can choose to use the page count used by the calibre e-book viewer, or you can use the Aobe algorithm used by their ADE software and some devices like a Nook. However if the format being counted is a PDF, there is now a special optimisation to read the actual page count rather than estimating it using any of the above algorithms.

The second page count option is to download the page count from a web page on the Goodreads.com website for your specific linked edition. This can be used for a book with any formats (or even none). How is a goodreads identifier linked? Either by using the Goodreads metadata download plugin, the Goodreads Sync plugin, or by manually typing a goodreads:xxx id into your identifiers field for the edition of interest. If the edition you have linked to has no page count, you can switch editions using a feature added to the Goodreads Sync plugin.

Word count is optionally calculated independently of page count. As this is unavailable on a website, it is subject to the same limitations as estimating page count above, in that you must have either an ePub or a format convertible to ePub available for it to work.

Finally a variety of readability statistics have been added which you can optionally calculate such as Flesch-Kincaid and Gunning Fog index.

Main Features:
  • Estimate a page count of books to a custom column (except for PDF, which is read directly from the info) using one of four algorithms.
  • Alternatively download a page count from the Goodreads.com website into a custom column
  • Compute a word count to a custom column
  • Compute readability statistics for Flesch Reading level, Flesch-Kincaid Grade level and Gunning Fog index into custom column(s)
  • Configure different column(s)/algorithm per calibre library
  • Configure whether the default for clicking on the toolbar button is to use an estimated page count or a downloaded page count.
  • Optionally configure whether to only overwrite counts if you don't already have one
  • Optional keyboard shortcuts

Special Notes:
Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!
Attached Files
File Type: zip Count Pages.zip (911.6 KB, 1772 views)

Last edited by kiwidude; 02-18-2024 at 12:56 AM. Reason: New version
kiwidude is offline   Reply With Quote