Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2022, 08:23 PM   #331
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
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.
Can someone tell me where in calibre should i do this?

THank you
Deobulakenyo is offline   Reply With Quote
Old 04-22-2022, 08:25 PM   #332
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,503
Karma: 240526511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Deobulakenyo View Post
Can someone tell me where in calibre should i do this?

THank you
In the Kobo driver (or extended driver) options (Calibre 5.41). But I think it isn't working at the moment. You can try, of course.
Sirtel is offline   Reply With Quote
Advert
Old 04-22-2022, 10:10 PM   #333
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Ok, another noob question, does webkitTextRendering=optimizelegibility etc take the place of the various patches which also relate to enabling kerning, optimization, etc. or can/should they be used in tandem with each other?
MGlitch is offline   Reply With Quote
Old 04-22-2022, 10:39 PM   #334
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
So, just had another thought about the webkitTextRendering, it could potentially be used to perform CSS injection in the body tag.

I mean, the relevant bit is
Code:
text-rendering: %3;
Where %3 is a string.

So, what's stopping something like
Code:
webkitTextRendering=optimizeLegibility;font-family:sans-serif;text-align:center
from working?

Note, I haven't tested anything, but I don't see a reason why it wouldn't work.
sherman is offline   Reply With Quote
Old 04-22-2022, 11:13 PM   #335
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 Terisa de morgan View Post
Does this mean that the 4 entries have to have a value to be set or only that, if you set only one column, then no statistic is sent?
The four templates are independent. You can set just one or all four. Other than testing, I probably won't set the two reading estimates.

But, I have just noticed a change in the firmware since I tested this in the beta. For the reading estimates, if only one of the values are set, they are ignored. Before, if only one was there it was shown without the range.
davidfor is offline   Reply With Quote
Advert
Old 04-22-2022, 11:22 PM   #336
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by davidfor View Post
The four templates are independent. You can set just one or all four. Other than testing, I probably won't set the two reading estimates.

But, I have just noticed a change in the firmware since I tested this in the beta. For the reading estimates, if only one of the values are set, they are ignored. Before, if only one was there it was shown without the range.

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.
Deobulakenyo is offline   Reply With Quote
Old 04-23-2022, 01:51 AM   #337
ZodWallop
Gentleman and scholar
ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.ZodWallop ought to be getting tired of karma fortunes by now.
 
ZodWallop's Avatar
 
Posts: 11,479
Karma: 111164374
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara BW; Nook ST w/Glowlight, Paperwhite 3
Quote:
Originally Posted by MGlitch View Post
Ok, another noob question, does webkitTextRendering=optimizelegibility etc take the place of the various patches which also relate to enabling kerning, optimization, etc. or can/should they be used in tandem with each other?
Maybe down the road it will be another patch that can be retired.
ZodWallop is offline   Reply With Quote
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
Old 04-23-2022, 02:37 AM   #339
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
Calibre and bookstats

In a discussion in the KoboTouchExtended driver thread, I discovered that one of the changes I had expected in firmware 4.32.19501 is not in it. This means that the version of the database I was using for testing is higher than that in the released firmware. I was expecting the database version to be 169, but, it is apparently 168. And that means that the test in the driver to see if the bookstats can be set in the database will fail. And the stats will not be set. Which explains why few people have seen them.

I have fixed this in the code and checked it in. Unfortunately, it will only be available when the next release of calibre is made.

It is possible to update the database version in the database. This will let the function work, but, it could cause issues when the next firmware is released. If you do this, you should undo it before the next release.
davidfor is offline   Reply With Quote
Old 04-23-2022, 02:41 AM   #340
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,615
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
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.
Maybe my image below will help...
Attached Thumbnails
Click image for larger version

Name:	kobo.jpg
Views:	200
Size:	89.3 KB
ID:	193426  
Karellen is offline   Reply With Quote
Old 04-23-2022, 02:45 AM   #341
codychan
Groupie
codychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud of
 
codychan's Avatar
 
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
There is something wrong with the font in this version of firmware, some characters in one of my customized dictionary can not be displayed, it is OK in previous firmware, rollbacked.

And another issue is, I use a font specifically for some part in my ebook(in css), but new firmware won't use it, it uses the default font instead.

Last edited by codychan; 04-23-2022 at 03:06 AM.
codychan is offline   Reply With Quote
Old 04-23-2022, 02:47 AM   #342
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,636
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by compurandom View Post
I don't think there is a "normal" time. Sometimes it updates in a few days, sometimes in a month. If you're anxious about it, change your affiliate.conf and/or update manually.
Sorry, I didn't explain myself right. I was not talking about the time it takes to receive the new firmware, but the time it takes for the device to start after loading the new firmware. But it's already OK, so thank you.
Terisa de morgan is offline   Reply With Quote
Old 04-23-2022, 02:49 AM   #343
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,636
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by davidfor View Post
The four templates are independent. You can set just one or all four. Other than testing, I probably won't set the two reading estimates.

But, I have just noticed a change in the firmware since I tested this in the beta. For the reading estimates, if only one of the values are set, they are ignored. Before, if only one was there it was shown without the range.
Thank you. I'll remove the fields I don't need then and I will wait for the new calibre release to load it.
Terisa de morgan is offline   Reply With Quote
Old 04-23-2022, 02:56 AM   #344
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by davidfor View Post
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.
Thank you. I put the following in the Metada on device and advanced tab of the Kobo Touch extended plugin:

Words: program:$$#words
Pages: program:$$#pages

I left the estimates fileds below them blank.

Clicked okay and apply.

What happens next? Does this automatically calculate the number of pages and words of my sideloaded books on my device when i connect my kobo to calibre? Will my sideloaded books now contain words in View Details of my device?
Deobulakenyo is offline   Reply With Quote
Old 04-23-2022, 03:15 AM   #345
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 Deobulakenyo View Post
Thank you. I put the following in the Metada on device and advanced tab of the Kobo Touch extended plugin:

Words: program:$$#words
Pages: program:$$#pages

I left the estimates fileds below them blank.

Clicked okay and apply.

What happens next? Does this automatically calculate the number of pages and words of my sideloaded books on my device when i connect my kobo to calibre? Will my sideloaded books now contain words in View Details of my device?
The driver will update the metadata on the device when the device is next connected. What is update depends on what has changed in the library. But, as I stated in post immediately under the one you quoted, this will not happen as calibre will need another update.
davidfor is offline   Reply With Quote
Reply

Tags
firmware, firmware release


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware Update Instructions and the latest Firmware Versions mitchwah Ectaco jetBook 113 10-24-2023 09:02 PM
Nouveau firmware firmware 6.5.765 pour la Inkpad 3/PB740 mooms PocketBook 0 11-08-2021 08:23 AM
Firmware Update Kindle firmware 5.12.1 eilon Amazon Kindle 102 09-26-2019 08:38 PM
Firmware glitch - typing text slow on some firmware+device combinations mdp Onyx Boox 11 11-11-2017 12:48 AM
Firmware 2.0.3 Pocketbook IQ - another firmware is release for IQ tvpupsik PocketBook 26 12-13-2010 03:03 PM


All times are GMT -4. The time now is 10:13 AM.


MobileRead.com is a privately owned, operated and funded community.