|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196
Karma: 1311963
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch
|
Custom Column Icon Help
I have a custom column which is configured for long text like comments. I use this column to keep track of what i have done with that book, mainly Read of Reading. I am trying to put a custom icons in this column to replace the text. eg an open book for reading and a closed book for Read. The problem i am having is that when i set the icon to match the word read it also picks up on the word Reading. Is there any way to restrict it to just Read and not the word Reading.
__________________
Currently Reading: Department 19 |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,855
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
You should use the "pattern" match with a regular expression. Although it isn't possible to say what regexp to use without knowing all the possible text structures in the column, the general approach is to use a pattern that matches only "read". Perhaps you could match "read" at the end of the string (read$), or "read" not followed by an i (read[^i]), or use two contains conditions to check read and not reading.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196
Karma: 1311963
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch
|
Thanks (read[^i]) worked great.
__________________
Currently Reading: Department 19 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Tag Browser Custom Icon for Languages | MartyTX | Library Management | 1 | 02-03-2013 03:44 AM |
| how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 03:53 AM |
| custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 08:20 AM |
| Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
| Custom Icon Issues | allovertheglobe | iRex | 0 | 10-26-2008 03:40 PM |