![]() |
#496 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,063
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yep!
![]() |
![]() |
![]() |
![]() |
#497 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
I have created a custom column to hold status flags for my books. In the Look & Feel settings, I am setting custom icons for this column by using templates.
My template is currently producing a value like: Code:
transparent.png:transparent.png:transparent.png:ok.png:h-ellipsis.png However, the transparent PNG is not spacing out the other icons as intended. It is a 128×128 pixel 8-bit/colour RGBA non-interlaced PNG. This is because I wish for icons not present in the current book to still take up horizontal space. To demonstrate visually using single characters to represent each PNG in the list above (space for transparent.png, O for ok.png, E for h-ellipsis.png), I want this: Code:
OE Code:
OE My current theories are that the transparent PNG, having no content, is being displayed but trimmed down to a smaller size – or that you cannot add the same image to a composed icons column more than once – or both. Any insight is greatly appreciated! ![]() Last edited by isarl; 02-06-2023 at 12:42 PM. |
![]() |
![]() |
![]() |
#498 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The library view showing the icons: The template that produces the icons: The folder containing the icon png files. transparent.png is your file. My guess is that you never added transparent.png to the possible icons (folder cc_icons). |
|
![]() |
![]() |
![]() |
#499 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
ids = book_values('id', '#fanficcat:true AND @Fanfiction.Fandoms:.false', ',', 0) Quote:
The list_remove_duplicates() function also removes empty items. The right fix is to remove the comma at the end with something like Code:
re(v, ',$', '') |
||
![]() |
![]() |
![]() |
#500 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,063
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also, another question related to column icons. In an advanced rule, what is the most correct way to return no icon?
Example: My 'Cleanup' VL also searches for marked:true books. Code:
program: first_non_empty( [lots of entries for specific metadata issues] ## Fallback if is_marked() then ' ' fi, if 'Cleanup' inlist virtual_libraries() then 'polish.png' fi ) |
![]() |
![]() |
![]() |
#501 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The fix is to remove the is_marked() check and add something like Code:
! is_marked() && |
|
![]() |
![]() |
![]() |
#502 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
Quote:
![]() Thank you so much; it's now working just as I had intended. ![]() |
|
![]() |
![]() |
![]() |
#503 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#504 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,063
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks
![]() Also, another question: For the user category question, I wanted specifically to find #fanficcat entries that are not assigned under Fanfiction.Fandoms.[subcategory]. Is what I came up with the best option for that? (If there's multiple entries, having one of them in the category but others not will make it not return a value.) Last edited by ownedbycats; 02-06-2023 at 09:23 PM. |
![]() |
![]() |
![]() |
#505 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
if ! '(^Fanfiction.Fandoms.' & #fanficcat & '$' ) inlist user_categories() then ... |
|
![]() |
![]() |
![]() |
#506 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,063
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks
![]() New question. Code:
program: if list_count($#fanficcat, ',') == 3 && 'Crossover' in $#fanficcat && ('Mass Effect Trilogy' in $#fanficcat && 'Mass Effect: Andromeda' in $#fanficcat) || ('Half-Life' in $#fanficcat && 'Portal' in $#fanficcat) then 'yes' fi 1. There are three items in the taglike #fanficcat. 2. One of them is 'Crossover.' 3. The other two are either "Mass Effect Trilogy, Mass Effect Andromeda" or "Half-Life, Portal." Examples, to make it more clear: Spoiler:
However, I messed up the operators as I'm getting 'yes' on a book where #fanficcat is "Half-Life, Portal" (two items and it does not include crossover). Where did I make the mistake? Last edited by ownedbycats; 02-08-2023 at 12:37 PM. |
![]() |
![]() |
![]() |
#507 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I recommend you always use parentheses to ensure that clauses are grouped how you want. |
|
![]() |
![]() |
![]() |
#508 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2022
Device: Kindle 2007, Android(Huawei)
|
Hello!
I hope this is the right forum to ask this question, I currently have a virtual library from which I select the books to sync with the device, is there any way to make it show only the books that are not synced on the device? |
![]() |
![]() |
![]() |
#509 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,063
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
If the device is not plugged in, no. For 'offline' access to this information, some users like to make a custom column. Boolean (yes/no) for a single device. For multiple, a taglike (comma-separated text like tags) with the device names. (Other options too, but these two are easy to set up.) Last edited by ownedbycats; 02-12-2023 at 09:28 PM. |
|
![]() |
![]() |
![]() |
#510 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2022
Device: Kindle 2007, Android(Huawei)
|
Thanks for the help!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 229 | 08-13-2025 06:41 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 |