|  06-03-2011, 09:17 PM | #46 | |
| eBook Junkie            Posts: 1,526 Karma: 1464018 Join Date: May 2010 Location: USA Device: Kindle Fire 2020, Kindle PW2 | Quote: 
 Nyn | |
|   |   | 
|  06-03-2011, 09:17 PM | #47 | 
| Addict            Posts: 288 Karma: 1003542 Join Date: May 2011 Device: Google Nexus 7 16GB | 
			
			Just seen the colouring options - thats real cool. Only changed the titles to "red" if the readbook check list is true, lol well if its a red book its a read book - easy for me to see  Sure I'll do some more things later Thanks Kovidgoyal for a fantastic program,will defiantly be donating to support you | 
|   |   | 
|  06-03-2011, 09:29 PM | #48 | |
| eBook Junkie            Posts: 1,526 Karma: 1464018 Join Date: May 2010 Location: USA Device: Kindle Fire 2020, Kindle PW2 | Quote: 
   | |
|   |   | 
|  06-04-2011, 02:21 AM | #49 | 
| ZCD BombShel            Posts: 4,793 Karma: 8293322 Join Date: Jan 2009 Location: The Frozen North (aka Illinois, USA) Device: iPad, STB Kindle Oasis | 
			
			Wonderful, Kovid, thank you VERY much for the simplified interface.
		 | 
|   |   | 
|  06-04-2011, 02:36 AM | #50 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | |
|   |   | 
|  06-04-2011, 06:21 AM | #51 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			I have a custom column #condition (Rating, shown with stars) that I'd like to include in an rule. Adding a rule that colors the 'title' column based on the value of #condition does not seem to have any effect. Ultimately what I'd like is a rule that colors the title column if #condition == Unrated. Should that be a value of '0'? G | 
|   |   | 
|  06-04-2011, 06:33 AM | #52 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			The standard rating column does not support unrated, but a custom rating column does.  Because you are testing a custom rating column, you have two choices. You can test for equal to zero using a wizard rule, or you can define a template (an advanced rule) that checks for ''. Something like Code: program: test(field('#myrating'), '', 'red') | 
|   |   | 
|  06-04-2011, 06:35 AM | #53 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			I'll try the template, but I'm fairly certain that testing for #condition equal to any numeric value (0-5) does not work. G | 
|   |   | 
|  06-04-2011, 06:37 AM | #54 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | |
|   |   | 
|  06-04-2011, 06:38 AM | #55 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			The template works, thanks. G | 
|   |   | 
|  06-04-2011, 06:38 AM | #56 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | |
|   |   | 
|  06-04-2011, 06:48 AM | #57 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			OK, I pulled current source and created this wizard rule: Code: Set the color of title to crimson if the following conditions are met: 
 Update: Testing for == '0' works properly, but testing for == '1' does not. G Last edited by GRiker; 06-04-2011 at 06:51 AM. | 
|   |   | 
|  06-04-2011, 06:54 AM | #58 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Fixing another problem (formatted numbers) caused the /2 to go away for ratings when using the wizard. For the moment, use 2, 4, 6, etc for 1, 2, 3 Last edited by chaley; 06-04-2011 at 07:10 AM. | |
|   |   | 
|  06-04-2011, 07:00 AM | #59 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			One more minor matter: If you disable a condition by blanking all of its boxes, upon clearing the first field (the column field) the following exception occurs: Code: calibre, version 0.8.4
ERROR: Unhandled exception: <b>KeyError</b>:u''
Traceback (most recent call last):
  File "/Users/griker/Documents/calibredev/source/dev/src/calibre/gui2/preferences/coloring.py", line 162, in init_action_box
    m = self.fm[col]
  File "/Users/griker/Documents/calibredev/source/dev/src/calibre/library/field_metadata.py", line 379, in __getitem__
    return self._tb_cats[key]
KeyError: u'' | 
|   |   | 
|  06-04-2011, 09:19 AM | #60 | 
| Addict            Posts: 272 Karma: 1050426 Join Date: Feb 2010 Location: California Device: iPad Mini w/Retina, Kindle 3, Kindle Fire HDX 8.9, & Asus Transformer | 
			
			I have a composite column that shows 95=date read, Reading: (percent read), Not Read in this column.  This composite column information comes from the comments column, where the fetch annotations information is displayed. I'm trying to color code this column, so far I can get the Not Read to show a color, but can't seem to get the others to change color. I hope I'm making sense. How can I do this? Thanks | 
|   |   | 
|  | 
| Tags | 
| calibre, template | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM | 
| Custom charge? | daoshi | iRex | 3 | 10-06-2008 06:47 PM |