![]() |
#1 |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
|
A few questions... (template language, mainly)
Hello!
I have a few questions about Calibre interface and I thought that it would be better to ask everything at the same time... So first, I've already looked for it in the parameters, and I'm pretty sure that it doesn't exist, but is it possible to disable the author_sort for one of my libraries? I have one library for my originals books, for which the author sort is very useful, but I have another one where I put all my fanfictions. It's weird to see pseudos like "magical blue cat" at "cat" and not "magical". I currently undo everything by copy/pasting in the "manage authors" browser, and it's time-consuming... Otherwise, speaking about having two libraries, I was asking myself: Are they totally separated? And if not, where's the limit, especially in the parameters? I mean, every time I change something I'm telling myself: "Is it only for this one? Or am I deleting something the other one?" 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. 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: Code:
{0:,.0f} Since I'm french, it's really weird, we usually use the commas to separate the decimals. I also have 3 columns displaying some kind of date, and none of them display it the same way: The timestamp column, the pubdate column, and a custom column "#update". I tried to change them in the tweaks under: Control how dates are displayed and it worked, but I don't know how to change for the custom column. Mine looks like that right now: Code:
gui_pubdate_display_format = 'dd MM yyyy' gui_timestamp_display_format = 'dd MM yyyy' gui_last_modified_display_format = 'dd MM yyyy' Thanks in advance for any help!! |
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,565
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,302
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
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:
|
|||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template Language | phossler | Calibre | 8 | 01-12-2016 04:37 PM |
Template language uses title_sort instead of title | eMole | Calibre | 2 | 03-11-2014 07:22 AM |
Help needed with template language | Mamaijee | Devices | 12 | 02-19-2013 01:52 AM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 08:32 AM |
Template language question | BookJunkieLI | Library Management | 7 | 02-02-2012 06:55 PM |