View Single Post
Old 05-07-2022, 01:59 AM   #451
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,030
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Deobulakenyo View Post
I tried to add pages and word count to books so they will appear in the details tab on my Libra 2, but after connecting to calibre, and updating metadata, still no book pages and word counts are in my books on my device.

I attached screenshots. Please tell me where I did wrong.

Thank you
I configured the Count Pages plugin and ran it on a few books. I then added the program$$ entries to the appropriate areas in the KoboTouch driver (I don't use the KoboTouchExtended driver but it shares that code with the KoboTouch driver so should behave the same). After doing this, I connected, let calibre update the metadata and after safely ejecting, when I looked at the details of a book, it shows the pages, total words and hours to read. See the attached images for more information.

Edit2: One other item I was looking at caused me to have some uncertainty about the way the times are calculated. As near as I can tell, using the mod function would return the remainder of dividing the # of words by 12 (lower) and 10 (higher) which might explain some of the odd times I was seeing. I changed the calculation to program:round($$#words/24000) and program:round($$#words/20000). While not nearly accurate, at least the values don't look like I've been choosing random numbers.
Attached Thumbnails
Click image for larger version

Name:	Pages_and_Word_Count_columns_populated.png
Views:	378
Size:	27.6 KB
ID:	193671   Click image for larger version

Name:	KoboTouch_driver_configuration.png
Views:	391
Size:	47.7 KB
ID:	193672   Click image for larger version

Name:	custom_metadata.png
Views:	356
Size:	46.5 KB
ID:	193674   Click image for larger version

Name:	screen_001.png
Views:	412
Size:	292.6 KB
ID:	193676   Click image for larger version

Name:	count_pages_plugin_configuration.png
Views:	346
Size:	44.9 KB
ID:	193677   Click image for larger version

Name:	column_configuration.png
Views:	337
Size:	56.7 KB
ID:	193678  

Last edited by DNSB; 05-07-2022 at 03:36 AM. Reason: added the connect, update, safely eject sequence. Added chnage in reading time calculation.
DNSB is offline   Reply With Quote