04-16-2021, 05:01 AM | #46 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You are missing end-of-statement semicolons on lines 5, 16, 23, and 30.
|
04-16-2021, 03:07 PM | #47 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you That's a silly mistake
|
Advert | |
|
04-17-2021, 02:41 PM | #48 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: is there a way to check for a transient mark with a template? I would like to display a pushpin icon instead of polish.png.
|
04-17-2021, 02:47 PM | #49 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
04-17-2021, 02:50 PM | #50 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
that works! Thank you
|
Advert | |
|
04-17-2021, 07:26 PM | #51 | |
null operator (he/him)
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Also, I've 'acquired' a folder named tb_icons in <config>. I assume its where custom tab browser icons are stored. There is only one file in it: icon_#oncloud.png. However I restored the default icon for the oncloud category shortly after I added the custom icon, should the custom icon have been removed, along with the resultant empty tb_icons folder. I've deleted the folder will no ill effect. BR |
|
04-17-2021, 08:03 PM | #52 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Does the column icons editor have access to anything outside of the cc_icons folder? That would be useful...
|
04-17-2021, 08:27 PM | #53 | |
null operator (he/him)
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
You could try dropping a symlink to the png in <install location>\app\resources\images into the cc_icon folder, it may survive caiibre updates, whereas a hardlink probably wouldn't survive as a hardlink, but as a copy. But if the symlink does survive an update and the icon changes in the update (e.g. to a flat escher-inspired etching), the symlink instance will change too, and that may not be desirable. BR |
|
04-18-2021, 12:24 AM | #54 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
{title_sort:'uppercase(re($, '^\W*(\w).*$','\1'))'} |
04-18-2021, 03:01 AM | #55 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also, is there any particular advantages of an template rule with several if statements vs. several non-composed basic rules? The context is for my Cleanup VL:
I've got a template half-made but I am not sure if it is worth. Last edited by ownedbycats; 04-18-2021 at 03:05 AM. |
04-18-2021, 04:56 AM | #56 | ||
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
04-18-2021, 04:57 AM | #57 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
04-18-2021, 04:59 AM | #58 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
04-18-2021, 05:27 AM | #59 | |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
First, note that all rules are templates. The templates for basic rules are generated by calibre. So ...
Code:
program: if str_in_list($authors, '&', 'Joe Blogs', '1', '') then return 'foo.png' fi; if str_in_list($authors, '&', 'Fred Flintstone', '1', '') then return 'bar.png' fi Code:
program: if '^ondevice$' inlist $tags then return 'foo.png' fi; if '^bar$' inlist $tags then return 'bar.png' fi; |
|
04-18-2021, 02:06 PM | #60 |
Custom User Title
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 176 | Yesterday 07:30 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 03:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 12:37 PM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 10:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 06:07 PM |