Quote:
Originally Posted by hereticorp
I'm having some difficulty with Calibre.
I'm running version 0.7.19 on Windows XP SP3.
The first issue I'm having is importing existing files into Calibre.
Most of my books are organized thus:
Author Last Name, Author First Name - Series and Number - Title
Cook, Dawn - Truth 01 - First Truth
The rest of the books are:
Author Last Name, Author First Name - Title
Bear, Elizabeth - Undertow
I need a way for Calibre to add books from both formats without my having to mess with the add books metadata pattern every time I switch between formats.
|
This should work for "last, first - title" and "last, first - series NN - title". It's mainly derived from
this thread, plus some research into regular expressions.
Code:
(?P<author>((?!\s-\s).)+)\s-\s(?:(?P<series>.+)\s(?P<series_index>\d+)\s-\s)?(?P<title>.+)
Quote:
Originally Posted by hereticorp
Also, when I add the books without the series in the filename (Because I haven't figured out the RegEX for adding Series to the input filter) the sort is wacky. It seems to sort some of the files but others just end up in random places in the list.
I've attached a screenshot so you can see what I'm talking about.
Any help with either problem would be greatly appreciated, I'm a RegEx noob and I'm very confused.
|
In the left hand side of the Calibre screen, right-click on authors and select manage authors. See what the author_sort field is for each of your authors.
Quote:
Originally Posted by hereticorp
EDITED TO ADD: I got the filter working for series, but the "Test" button is completely non functional in the preferences for Add Books, the pattern works in practice but not when pasting the filename into the Test box.
|
Make sure you add an extension to your test string:
Bear, Elizabeth - Undertow.epub (for example)
(non-intuitive, but required

)