![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
|
Need Add Book Preference Help
I'm very new to using Calibre but so far it seems fairly straight forward, but for one small issue.
I have a large number of ebooks I'm entering into Calibre, some of which are part of a series. Looking at the Preferences/Add Book I was able to rearrange the default setting to (?P<author>[^_]+)-(?P<title>.+) so that an ebook file in the format John Smith-A Book.pdf will Add Book into Calibre as Author=John Smith and Title=A Book. However, what would be the formula for the first book in John Smith's naval mystery series, i.e. "John Smith - A Book - Naval Mystery 1"? Looking at the preferences that can be set it seems there are quite a few items that could be translated from the file name into Calibre. However, while I was able to figure out "author" and "title", "series" added to the same style of formula didn't work. Advise would be appreciated. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
^((?P<author>([^\_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+) ([-#] ?)?(?P<series_index>[0-9.]+)?\s*-\s*)?(?P<title>.+)
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
|
Thanks, I will go forth and experiment.
What you listed is much more complete than the default that I was getting and the Test function is GREAT advice. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
|
Rats
calibre, version 0.8.6 ERROR: Invalid regular expression: Invalid regular expression: unbalanced parenthesis |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
|
oops fixed
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
|
Thank you so much. That was exactly what I needed to figure out how to set my file names into a format that Calibre can digest just the way I want it to.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
4:3 vs 16:9 aspect ratio - what's your preference? | Wetdogeared | General Discussions | 59 | 02-17-2011 10:48 AM |
view preference | cybmole | Calibre | 2 | 01-25-2011 03:26 PM |
send to device format preference | cybmole | Calibre | 15 | 09-30-2010 03:46 AM |
Metadata fetch publisher preference? | adolson | Calibre | 4 | 05-03-2010 01:07 AM |
Preference for Full Justification, How to? | ascherjim | Calibre | 13 | 06-26-2009 07:43 PM |