![]() |
#46 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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.
|
![]() |
![]() |
![]() |
#47 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
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.
|
![]() |
![]() |
![]() |
#49 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#50 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
that works! Thank you
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#51 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,827
Karma: 27620684
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 |
|
![]() |
![]() |
![]() |
#52 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
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...
|
![]() |
![]() |
![]() |
#53 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,827
Karma: 27620684
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 |
|
![]() |
![]() |
![]() |
#54 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
{title_sort:'uppercase(re($, '^\W*(\w).*$','\1'))'} ![]() |
![]() |
![]() |
![]() |
#55 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
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 02:05 AM. |
![]() |
![]() |
![]() |
#56 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#57 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#58 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#59 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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; |
|
![]() |
![]() |
![]() |
#60 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 156 | 07-23-2024 11:45 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |