![]() |
#61 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 436
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Nothing, that'll teach me not to read the whole doc
Spoiler:
Last edited by un_pogaz; 06-04-2021 at 08:46 AM. |
![]() |
![]() |
![]() |
#62 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,060
Karma: 69102175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#64 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#65 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,060
Karma: 69102175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I hope it doesn't break if a date is set to February 29, 2020. I'm testing it myself but still working out how the syntax works.
|
![]() |
![]() |
Advert | |
|
![]() |
#66 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
By not supporting leap year I mean that with the exception of years, no calculation requires knowledge of whether 29 Feb (EDIT: or any other day of the month) matters. That is why there is no "month" calculation specifier, because the calculation can change when going over a leap February (EDIT: or if the current day doesn't exist in the target month). The problem is finessed for "years" by defining a year as 365 days, which given a valid date can never generate an invalid date, but the result might be a day short. The syntax is straightforward: pairs of (numbers followed by a letter). The order is not important. Examples:
Last edited by chaley; 06-04-2021 at 05:39 PM. |
|
![]() |
![]() |
![]() |
#67 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Bug in calibre versions V5.23 - V5.28: Composite column templates that use Template Program Mode and reference other composite columns can sometimes generate list index error exceptions. Using General Program Mode instead of Template Program Mode avoids the error.
EDIT: Fixed in V5.29 Last edited by chaley; 10-08-2021 at 06:06 AM. |
![]() |
![]() |
![]() |
#68 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Bug in calibre versions 5.13 - 5.29: the assign() function wouldn't parse. The fix will be in the next calibre release.
Thanks to David Tardon for finding and fixing this bug. |
![]() |
![]() |
![]() |
#69 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,060
Karma: 69102175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
You have a different kitty!
|
![]() |
![]() |
![]() |
#70 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,671
Karma: 58985420
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#71 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#72 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Bug fix: arithmetic operators fail if a value is undefined
31 October 2021 (In calibre 5.31.1)
Last edited by chaley; 11-05-2021 at 11:12 AM. |
![]() |
![]() |
![]() |
#73 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
New formatter function: current_virtual_library_name()
10 November 2021 (In calibre source)
|
|
![]() |
![]() |
![]() |
#74 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Performance improvements
11 November 2021 (in calibre source)
Last edited by chaley; 11-11-2021 at 08:51 AM. |
![]() |
![]() |
![]() |
#75 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,243
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
New language constructs
27 March 2022 (In calibre version 5.40)
Last edited by chaley; 04-01-2022 at 11:17 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 04:25 AM |
Template Language | phossler | Calibre | 8 | 01-12-2016 05:37 PM |
Help needed with template language | Mamaijee | Devices | 12 | 02-19-2013 02:52 AM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 09:32 AM |
Template language question | BookJunkieLI | Library Management | 7 | 02-02-2012 07:55 PM |