![]() |
#16 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,662
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Did you remember the semicologne semicolon at the end? That's my most common error.
EDIT: And obviously remove program. Another common mistake. ![]() Last edited by ownedbycats; 02-05-2023 at 12:52 PM. Reason: What's a semicologne? |
![]() |
![]() |
![]() |
#17 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Yes I did, but it doesn't work
neither this Spoiler:
nor that Spoiler:
![]() Last edited by Wiggo; 02-06-2023 at 02:27 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Use either: Code:
#normal field() if $#annots then icon = add_icon(icon, 'annotations.png') fi; Code:
# raw_field() if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi; |
|
![]() |
![]() |
![]() |
#19 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
It works!
![]() |
![]() |
![]() |
![]() |
#20 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
I can't get it to work again.
![]() I discovered this all the authors for a series and want to show an icon when there is more than one author in my #series_authors column. Help please |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
{fieldname}:#>1
the # on the right side of the : means count (that is in the manual (searching) online |
![]() |
![]() |
![]() |
#22 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Does not work in program
|
![]() |
![]() |
![]() |
#23 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Use an advanced rule, changed to use the icon you like, the right column (#series_authors), and the column where you want to put the icon.
The template is: Code:
program: if list_count($#people, '&') > 1 then 'cry-icon.png' fi |
![]() |
![]() |
![]() |
#25 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
hmmm...
It neither works for a single symbol in #series (here strangely the series name for all series moves nevertheless a bit to the right) Code:
program: if list_count($#series_authors, '&') > 1 then 'series_authors.png' fi Code:
program: def add_icon(icon, val): if icon == '' then icon = val else icon = icon & ':' & val fi; return icon fed; icon = ''; if $languages == 'eng' then icon = add_icon(icon, 'uk.png') fi; icon = add_icon( icon, switch( $$#toread, 'true', 'toread.png', 'false', 'false.png', '')); if $$#formats == 'paper' then icon = add_icon(icon, 'paper.png') fi; if $$#read == 'true' then icon = add_icon(icon, 'ok.png') fi; if $$#source == 'geniallokal' then icon = add_icon(icon, 'geniallokal.png') fi; if $$#source == 'wbg' then icon = add_icon(icon, 'wbg.png') fi; if $$#readinglist != '' then icon = add_icon(icon, 'reading_list.png') fi; if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi; if list_count($#series_authors, '&') > 1 then icon = add_icon(icon, 'series_authors.png') fi; return icon |
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Post a screen capture of the advanced rule. Also be sure that the icon "series_authors.png" has been added to the set of possible icons using the "Add icon" button. If you don't see that file in the dropdown list of possibilities then it cannot work. To be precise, the file "series_authors.png" must be located in the cc_icons folder in your calibre configuration folder. It should be 128x128. Larger might work. Smaller won't. |
|
![]() |
![]() |
![]() |
#27 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
The icon works, because I was able to show it on my #symbols column for all series
![]() The book shown in the setting is part of a multi-author series. |
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If "Contains names" is not checked then the template must use ',' as a separator instead of '&' |
|
![]() |
![]() |
![]() |
#29 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
',' for the world!
![]() btw., it's a column from your post here https://www.mobileread.com/forums/sh...3&postcount=95 |
![]() |
![]() |
![]() |
#30 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Once again I can't get it right.
I bought the ePub for a old paperbook and now I want to have both symbols for #format and #quelle (=source) displayed in the column. Instead, unfortunately, none is displayed at all. Generally asked, how are multiple entries of a column displayed? ![]() Code:
program: def add_icon(icon, val): if icon == '' then icon = val else icon = icon & ':' & val fi; return icon fed; icon = ''; if $languages == 'eng' then icon = add_icon(icon, 'uk.png') fi; icon = add_icon( icon, switch( $$#toread, 'true', 'toread.png', 'false', 'false.png', '')); # $$ ist raw_field() if $$#formats == 'paper' then icon = add_icon(icon, 'paper.png') fi; if $$#formats == 'epub' then icon = add_icon(icon, 'epub.png') fi; if $$#formats == 'pdf' then icon = add_icon(icon, 'pdf.png') fi; if $$#read == 'true' then icon = add_icon(icon, 'ok.png') fi; if $$#quelle == 'geniallokal' then icon = add_icon(icon, 'geniallokal.png') fi; if $$#quelle == 'wbg' then icon = add_icon(icon, 'wbg.png') fi; if $$#quelle == 'RKH' then icon = add_icon(icon, 'rkh.png') fi; if $$#readinglist != '' then icon = add_icon(icon, 'reading_list.png') fi; if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi; return icon |
![]() |
![]() |
![]() |
Tags |
column icons, customize, icons, preferences |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
added custom column icons render larger than original icons | masp | Library Management | 12 | 01-22-2019 04:07 PM |
customized column icons now Micro-icons | Gary_M_Mugford | Calibre | 10 | 09-05-2016 04:05 AM |
View list of custom column settings? | BookJunkieLI | Calibre | 8 | 07-25-2014 09:36 AM |
Multiple icons in a column? | RenoA | Library Management | 2 | 09-09-2013 03:20 AM |
REMOVE multiple files in Book view | wizard2b | Sigil | 1 | 05-09-2011 09:14 PM |