![]() |
#331 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Those both work.
![]() Also, would I be imagining things, or can splitting up a stored template (before, icons_cleanup was all one big template) be a bit more efficient? I split it mostly for ease of editing. |
![]() |
![]() |
![]() |
#332 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
There is almost no performance gain or loss from splitting stored templates. Do it for the reason you gave, ease of editing and understanding what they do.
|
![]() |
![]() |
Advert | |
|
![]() |
#333 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks.
![]() Is it intended that a single-column colour rule always overrides an all-column rule, regardless of position in the rules list? I think I opened a ticket about this a few days ago but I can't find it now. |
![]() |
![]() |
![]() |
#334 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() The behavior is intended. "Single column" rules are applied first, possibly coloring a column. Next "all column" rules color any remaining uncolored columns. For any given column a "single column" rule always overrides the "all column" rules. |
|
![]() |
![]() |
![]() |
#335 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That makes sense. I just modified my single-column rule then. Now it shows the same colour for the whole row.
![]() Last edited by ownedbycats; 02-06-2022 at 08:41 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#336 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
On the topic of that single-column rule:
Code:
program: if readstatus()=='currentlyreading' then read = $$#lastread; updated = $$#fanficupdated; if fanfic_unreadchaps()==#1 && $$#percentread==#99 then '#00aaff' elif fanfic_unreadchaps()==#1 && days_between (read, updated) <#0 then '#00d400' elif fanfic_unreadchaps()>=#1 && days_between (read, updated) <#0 then '#ffff7f' fi else colours_daysbetween($#lastread, '#00aaff', '#69cfff', '#9bdeff') fi ![]() Last edited by ownedbycats; 02-06-2022 at 09:21 PM. |
![]() |
![]() |
![]() |
#337 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
program: colour = if readstatus()=='currentlyreading' then read = $$#lastread; updated = $$#fanficupdated; if fanfic_unreadchaps()==#1 && $$#percentread==#99 then '#00aaff' elif fanfic_unreadchaps()==#1 && days_between (read, updated) <#0 then '#00d400' elif fanfic_unreadchaps()>=#1 && days_between (read, updated) <#0 then '#ffff7f' fi fi; if !colour then colour = colours_daysbetween($#lastread, '#00aaff', '#69cfff', '#9bdeff') fi; colour |
|
![]() |
![]() |
![]() |
#338 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes, that works.
![]() As for what I'm doing -- the rule's for Last Read column. books 2 - 10 all match the checks. The others are using colours_daysbetween(). Before, either book 1 (currentlyreading) or books 11-17 (not currentlyreading) would be uncoloured, depending on where I had colours_daysbetween() Last edited by ownedbycats; 02-07-2022 at 09:47 AM. |
![]() |
![]() |
![]() |
#339 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Mostly out of curiosity:
The 'Title' placeholder is presumably because I didn't have any books selected when I opened the dialog. In this case, it shows the firstmost available result, but sometimes I've seen it show the last one instead, or sometimes an empty one. What is it based on? Last edited by ownedbycats; 02-10-2022 at 08:05 AM. |
![]() |
![]() |
![]() |
#340 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
That said, there is no reason not to show all the books selected. I will change that. I will also make the dialog remember whether "help" is showing or not. |
|
![]() |
![]() |
![]() |
#341 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#342 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks.
![]() |
![]() |
![]() |
![]() |
#343 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: What does
Duplicate user function name icons_fanfic. Change the name or ensure that the functions are identical mean? It showed up in another templateafter modifying the icons_fanfic() to add some new items, but went away when I restarted Calibre. EDIT: It hasn't recurred since, so I think it might've been a one-time glitch. Last edited by ownedbycats; 02-14-2022 at 07:11 PM. |
![]() |
![]() |
![]() |
#344 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#345 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Could it have been possible there were, via some glitch, two versions of the stored template temporarily in memory? I checked and saw there was only one icons_fanfic(), but restarting Calibre fixed the error.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 225 | 08-04-2025 06:31 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 |