View Single Post
Old 12-30-2015, 03:58 PM   #16
Joanna
Groupie
Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.
 
Posts: 199
Karma: 76476
Join Date: Feb 2012
Location: Poland
Device: none
I guess I have to try replacing the 17 rule icon with one advanced rule/template (although I'm waiting for the end of defragmentation to open Calibre and check how it works with that column hidden).

Here are the rules I use:

a) if the column '#target' is set:

if #target=English, display 'English' icon
if #target=German, display 'German' icon
(...)
if #target=Swedish, display 'Swedish' icon
if #target is none of the above, display 'generic' icon

b) if the column '#target' is not set:

if languages=English, display 'English' icon
if languages=German, display 'German' icon
(...)
if languages=Swedish, display 'Swedish' icon
if languages is set and is none of the above, display 'generic' icon

Do you think it's too complex, or is there a reasonable way to implement such a mechanism?

So far, I've used simple one or two-condition rules for most of the above (which is why there were so many of them). Two rules required more conditions: the 'generic' ones (because the rules went like 'if #target is not German and if #target is not English (...) and if #target is not Swedish') - I guess those two needed most resources.

Any tips and ideas?
Joanna is offline   Reply With Quote