View Single Post
Old 09-03-2014, 07:01 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jecilop View Post
Next hurdle: Do you know a modification I could make to the Save to Disk "save template" that would force this also? I already having it printing the words using {#words:|(|words)} in case none are generated/exist for the type of entry.
I tested it after the comma 'fix', but it definitely isn't based on the appearance in Calibre - just the hard data.
{#words:,d|| words}
Quote:
Whoops!!! Turns out doing this affects using that column in a math function. Once the comma format is there, the simple math function (generating a custom page count) stopped working and returned an error.... Arrgh..
use "raw_field(#words)" instead of "field(words)" in the template that is doing the calculation.
Quote:
Interestingly, the comma shows in the book metadata jacket as desired when this code is applied. The tags or references are the same so it's curious that one shows commas and not the other.
It is arguably a bug that save-to-disk ignores the format spec. However, I am not going to change it because who knows how many templates that would break and the work around is easy.
chaley is offline   Reply With Quote