Quote:
Originally Posted by Clem2605
Hello!
I also wanted to know, is there somewhere where I search and learn for myself the template language? I know it's a lot of python, but the template functions themselves? I tried to search by myself and I always end up on very specifics pages, and not somewhere general.
|
https://manual.calibre-ebook.com/template_lang.html
Quote:
And my two main problems right now:
I'm using the plugging 'count page' to count the words in my books, and I wanted to know if it was possible to change the format of the numbers to something clearer. For example to display "1000000" like that: "1'000'000" or like that: "1 000 000", currently, my template looks like that:
Which display: "1,000,000"
Since I'm french, it's really weird, we usually use the commas to separate the decimals.
|
Use the format specifier 'n' to get a locale-dependent display. For more information see
https://docs.python.org/3/library/st...-mini-language.
This page might be easier to read.
Alternatively, if you can't get the 'n' specifier to give you what you want then use the template function 're' to change the characters.
Quote:
I think I'm gonna create a custom column for the date last read, it would be nice to know how to make it more useful.
|
Enter whatever date format you want when you create the column.