05-09-2015, 12:48 PM | #1 |
Connoisseur
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
|
Adding Books - Filename Regex Management
I've been experimenting with the Regex to parse book details from filenames under the "Preferences/Adding Books" and have had some success.
However, some of my poorer attempts at Regular Expressions are something I would like to get rid of but Calibre seems to remember them all and there doesn't seem to be any mechanism to remove the ones I no longer need or want. Are these 'manual' ones stored somewhere I can delete them? I know that some expressions are 'built in' to Calibre and obviously I'd like to keep those. Finally, a suggestion if I may for the benefit of the less technical of us...could we have a Expression Name Field so we can name the expressions ourselves as some of them are somewhat hard to parse at a glance for us non-experts at regex. Eg. Code:
(?P<series>[^_0-9]*)(?P<series_index>[0-9]*)\s*-(?P<author>[^_-]+) -?\s*\s*(?P<title>[^_].+) ? |
05-10-2015, 12:50 AM | #2 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Check the configuration directory, in gui.json
You will need to manually edit it, as you noticed calibre doesn't include any GUI-based way to remove old autocomplete data. |
Advert | |
|
05-10-2015, 03:59 AM | #3 |
Connoisseur
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
|
Thanks...managed to do what I wanted.
A GUI way to do that would be nice though. |
05-10-2015, 10:34 AM | #4 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Like many user entered (pattern) things in Calibre, it would be nice to have a (balloon help) Notes field to explain/show sample of the arcane
In this case, There is a 'test' line to auto use as a sample of the Gozina it is looking for Note: Saved the searches balloon shows the actual search term if you hover over the name in the Tag Browser |
05-10-2015, 01:03 PM | #5 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I believe Kovid has been requested in the past for a way to delete the history in this and other boxes, e.g. Searchbar, S&R, etc.
But it is a low-priority thing, since most people don't care, the ones who do are usually comfortable editing the config data manually, and apparently implementing a delete feature is non-trivial (as in, he can't just change a setting, it would have to actually *be implemented*). I'm sure if it were a more common need, it would be added. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding books - filename RegEx author FN (initials) LN | Rob557 | Library Management | 8 | 10-16-2014 04:53 PM |
regex for filename with muliple dots? (adding books) | kite | Library Management | 5 | 09-28-2014 09:09 AM |
Adding books with different filename structures | Sinnott | Library Management | 2 | 11-09-2012 08:12 AM |
Adding books with series in the filename | genright | Library Management | 5 | 06-13-2011 03:20 PM |
A little help adding books and using regex. | Dragonator | Calibre | 7 | 12-17-2010 06:57 PM |