View Single Post
Old 04-23-2022, 02:12 AM   #338
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by davidfor View Post
Book statistics
As mentioned above, Kobo is now displaying some statistics for the books. These are page and word counts, and estimates for reading. The latter can have a lower and upper estimate. For purchased books these statistics are the same as displayed in the store.

For sideloaded books, the update in the driver will add support for these statistics. In the "Update metadata on the device" section of the driver configuration, options for setting the book statistics have been added. This is optional and must be turned on. All four mentioned above can be set. For each, there is a template field for setting the value for statistic for each book. The result must be an integer. If any templates are empty, or do not return an integer the statistic will not be set for that book. The templates can be simple columns, or calculations based on column values. For example, I currently have:
Code:
Words: program:$$#words
Pages: program:$$#pages
Reading estimate Lower: program:mod($$#words, 12)
Reading estimate Higher: program:mod($$#words, 10)
The above are only examples and if you want to do something similar, you will need to adjust them too use the columns you have in calibre library. And @ownedbycats, I hope you enjoy having four more templates to break play with.

There is no attempt to make sure the values are sensible (the 12 and 10 are just numbers that I tested with). And there is no control over the formatting of the statistics on the device. That is done by the device.
Quote:
Originally Posted by Deobulakenyo View Post
Is there a tutorial for non techies for this? Where do we put the template? Do we have to put the manual word count? I really do not get what needs to be done. To be clear i am not blaming anyone other than myself for not understanding this. Just asking others to hold my hand for me to understand this.
There is no explicit tutorial for this, and I was pretty explicit with where it went in my first post (highlighted above). There are tutorials, help and lots of discussions about calibre templates. The tutorial and help are available from the template editor which can be used from the configuration.
davidfor is offline   Reply With Quote