05-01-2011, 07:58 AM | #1 |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
Request: more Regex support
Two new ways of regular expression would be appreciated:
1. Regex-support on single books. Looks strange because this is not the purpose of a regex, but it makes sense. I have a subscription on a e-magazine. This magazine is delivered with a default title content. I have a saved regex to convert this the way I would like to have it and to copy the index and series to the right fields. This makes me think of a second nice option 2. Regex-Batch support. I often want to do several things: setting author, setting series, setting index, setting labels, refactoring title. At this moment I do the following: Edit several books a Set Author, labels, publisher, series and regex index from title to index b regex title to desired format It would be great if I could just use one saved regex batch for this Like SUBSCRIPTION1-Regex find .* in author replace with x find .* in series replace with y find .* in labels replace with z run series-regex run title-regex |
05-01-2011, 09:35 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
While your request is rather unclear, I'm guessing you mean store multiple variants of the extract metadata from filename regex.
Kiwidude has already covered this with a plugin: https://www.mobileread.com/forums/sho...d.php?t=118776 Last edited by ldolse; 05-02-2011 at 12:11 AM. |
Advert | |
|
05-01-2011, 11:40 AM | #3 | |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
Quote:
So this solves problem 1. But as far as I can see not problem 2. A great deal of problem 2 is solved. But Say I want to do this, is it possible?: Before: Filename: Donald Duck - 1980 15 Minibook Mickey Mouse Metadata: none After: Filename: (thats Calibre's Job) Metadata: Authors: Walt Disney Series: Donald Duck Weekly Isue Series_index: 1980.15 [Publicationdate: 01-01-1980 - not a regex option] Title: Donald Duck 1980-15 Mini Mickey Mouse Cover: set from file Comment: 1980 week 15 Mikey Mouse Special Isue Can this run all at once? (Note series and authors is not in title, I know this for some series) |
|
05-02-2011, 12:09 AM | #4 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
The file import won't do replacements for you, you need to have the files properly named first.
Use a batch renamer to change all the year/issue text from 1980 15 to 1980.15 (along with any other tweaks you like) before you do the import. Your publication date isn't in your filename, so I'm not sure how you expect Calibre to magically deduce that. All the other special field conversions can be done with the built-in Search and Replace regex functions that are in the bulk edit metadata dialog. File import isn't really the place to try to orchestrate the level of manipulation you're looking at. Just do one series at a time and use the bulk metadata editor to get it the way you want. |
05-02-2011, 01:23 AM | #5 |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
So that is how I do it right now.
But the problem at that point is, I have to do the regex twice. Once for indexnumber once for title I would like to do this in one run. So I could add the info on first tab of metadata-bulk and then go-on to the regex-tab an run 2 (or more) regexes in batch mode. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request to support the wifi Xoom | nickdma | Devices | 11 | 04-30-2011 10:36 AM |
Request for Support for Wexler T7001 | ramon2000 | Devices | 5 | 02-25-2011 04:29 AM |
Request support for Sovos eReader | Ericp | Devices | 5 | 02-20-2011 09:31 PM |
regex request for specific header removal | cellocgw | Calibre | 2 | 04-15-2010 02:42 PM |
feature request: support for iliad on OS X | petteri | Calibre | 1 | 12-30-2009 08:23 AM |