Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2020, 05:45 PM   #1
ownedbycats
Wizard
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: 3,178
Karma: 13476454
Join Date: Oct 2018
Device: Kobo 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 06:31 PM.
ownedbycats is offline   Reply With Quote
Old 07-13-2020, 06:35 PM   #2
BetterRed
null operator
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: 17,618
Karma: 20473671
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 offline   Reply With Quote
Advert
Old 07-13-2020, 06:56 PM   #3
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 9,994
Karma: 3559369
Join Date: Jan 2010
Location: UK
Device: Reader
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, 07:06 PM   #4
ownedbycats
Wizard
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: 3,178
Karma: 13476454
Join Date: Oct 2018
Device: Kobo 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:	89
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 07:20 PM.
ownedbycats is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:07 PM
added custom column icons render larger than original icons masp Library Management 12 01-22-2019 05:07 PM
customized column icons now Micro-icons Gary_M_Mugford Calibre 10 09-05-2016 05:05 AM
Rules, templates, and functions for column coloring and composed icons readin Library Management 7 08-11-2016 05:41 PM
Custom Column Icons? tarisea Library Management 90 01-17-2014 07:12 PM


All times are GMT -4. The time now is 04:56 AM.


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