03-30-2021, 08:55 AM | #46 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Kovid accepted the changes. They are in calibre source, available to testing/inspection.
|
04-05-2021, 02:13 PM | #47 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Turn the word 'break' into a keyword?
I am considering adding a 'break' statement to the template language to exit for loops. To do so I must make it a reserved word.
By way of a survey, do any of you have template local variables named 'break'? This change would require renaming them. |
Advert | |
|
04-05-2021, 02:22 PM | #48 |
Custom User Title
Posts: 9,486
Karma: 64500001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I do not use it; if I ever felt the need to, I could just use "br" instead.
btw, thanks for the word wrap! |
04-05-2021, 02:49 PM | #49 |
Wizard
Posts: 1,137
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Yes please. I ran into multiple situations that would have been much easier with this feature. Would you also add 'continue' to this?
|
04-05-2021, 08:27 PM | #50 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Are you also adding "continue"? |
|
Advert | |
|
04-06-2021, 11:14 AM | #51 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
06 Apr 2021 (in calibre version 5.15)
Last edited by chaley; 04-18-2021 at 12:58 PM. |
04-12-2021, 12:07 PM | #52 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
12 Apr 2021 (in calibre version 5.15)
Last edited by chaley; 04-18-2021 at 12:58 PM. |
04-15-2021, 11:52 AM | #53 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
14 Apr 2021 (in calibre version 5.15)
Last edited by chaley; 04-18-2021 at 12:58 PM. |
04-18-2021, 01:01 PM | #54 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
18 April 2021 (In calibre version 5.16.1)
Last edited by chaley; 04-19-2021 at 10:29 AM. |
04-18-2021, 01:05 PM | #55 | |
Custom User Title
Posts: 9,486
Karma: 64500001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
04-18-2021, 01:06 PM | #56 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
04-18-2021, 01:49 PM | #57 |
Custom User Title
Posts: 9,486
Karma: 64500001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I meant to implement one for my shared emblem/icon rules, but never got around to it.
|
04-22-2021, 06:06 AM | #58 |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
21 April 2021 (In calibre version 5.17)
Last edited by chaley; 05-01-2021 at 04:57 AM. |
06-03-2021, 11:03 AM | #59 | |
Grand Sorcerer
Posts: 12,014
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
3 June 2021 (In calibre version 5.21)
Last edited by chaley; 06-13-2021 at 09:18 AM. Reason: Fix error in example |
|
06-03-2021, 04:22 PM | #60 |
Custom User Title
Posts: 9,486
Karma: 64500001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That will be helpful.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 03:25 AM |
Template Language | phossler | Calibre | 8 | 01-12-2016 04:37 PM |
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 |