Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2020, 04:45 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,036
Karma: 62040591
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Composed column icons: Is there a way to make it appear after non-composed icons?

I have a composed icon ruleset. If I move it to the top of the list, it appears in the column alongside any other icons the book matches. If I move it down the list, it disappears if there's other icons.

I'd rather not make the other icons composed ones. Is there a way to make it appear after those ones without disappearing?


Last edited by ownedbycats; 07-13-2020 at 05:31 PM.
ownedbycats is online now   Reply With Quote
Old 07-13-2020, 05:35 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,775
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ownedbycats View Post
I have a composed icon. If I move it to the top of the list, it appears in the column alongside any other icons the book matches. If I move it down the list, it disappears if there's other icons.

I'd rather not make the other icons composed ones. Is there a way to make it appear after those ones without disappearing?
Not sure I fully understand your problem, but based on trial and error the following practices work for me:
  1. never attach composed and a regular icons to the same column.
  2. only attach an icon to a real column if the icon rules pertain specifically to that column,
  3. use a transparent image as the default icon - i.e. never have no icon, instead have a blank one,
  4. attach sets of composed icons to a place holder Integer column. In this case the use of transparent icons is crucial - vertical misalignment throws me off kilter

BR
BetterRed is online now   Reply With Quote
Advert
Old 07-13-2020, 05:56 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,862
Karma: 7036057
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Like BR I am not sure I understand what your problem is. Perhaps some definitions will help.

A "composed" icon rule means that subsequent rules are evaluated even if the rule generates an icon. Rules that are not "composed" stop evaluation at the first rule that generates a a displayable icon.

These rules mean that all composed icon rules for a column *must* come before a non-composed rule, assuming you want the rules always to be evaluated. It could be that you do not want that. For example, you might want a rule set that sets the icon to "foo.png" under some condition. If that condition is false then you want to evaluate several rules to add one or more other icons. In this case the first rule would not be "composed" while the remaining rules might or might not be.
chaley is offline   Reply With Quote
Old 07-13-2020, 06:06 PM   #4
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,036
Karma: 62040591
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This screenshot is what I was trying to do:

Click image for larger version

Name:	2020-07-13 19_04_23-calibre - Preferences - Look & feel.png
Views:	157
Size:	67.7 KB
ID:	180579

I was hoping for the bookmark icon to always appear alongside any other matching rules (mainly the reading list one, because the others indicate errors or metadata that needs changing). It doesn't appear though.

I understand how composed icons work now though. I kind of got my desired results by setting both bookmark and readinglist to composed and moving them to the start. Once I figure out the template language I might be able to do something with the advanced rules.


Last edited by ownedbycats; 07-13-2020 at 06:20 PM.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tip for those using emblems/column colouring/column icons ownedbycats Library Management 0 07-05-2020 07:07 PM
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
Rules, templates, and functions for column coloring and composed icons readin Library Management 7 08-11-2016 04:41 PM
Custom Column Icons? tarisea Library Management 90 01-17-2014 06:12 PM


All times are GMT -4. The time now is 02:28 AM.


MobileRead.com is a privately owned, operated and funded community.