03-30-2021, 09:55 AM | #46 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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, 03:13 PM | #47 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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, 03:22 PM | #48 |
Custom User Title
Posts: 9,532
Karma: 64960939
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, 03:49 PM | #49 |
Wizard
Posts: 1,139
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, 09: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, 12:14 PM | #51 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 01:58 PM. |
04-12-2021, 01:07 PM | #52 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 01:58 PM. |
04-15-2021, 12:52 PM | #53 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 01:58 PM. |
04-18-2021, 02:01 PM | #54 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 11:29 AM. |
04-18-2021, 02:05 PM | #55 | |
Custom User Title
Posts: 9,532
Karma: 64960939
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
04-18-2021, 02:06 PM | #56 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
04-18-2021, 02:49 PM | #57 |
Custom User Title
Posts: 9,532
Karma: 64960939
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, 07:06 AM | #58 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 05:57 AM. |
06-03-2021, 12:03 PM | #59 | |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
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 10:18 AM. Reason: Fix error in example |
|
06-03-2021, 05:22 PM | #60 |
Custom User Title
Posts: 9,532
Karma: 64960939
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 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 |