Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2011, 12:23 PM   #1
akmatov
Junior Member
akmatov began at the beginning.
 
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.
akmatov is offline   Reply With Quote
Old 06-22-2011, 12:38 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by akmatov View Post
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.
The default gave the clue.
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>.+)
BTW use the 'Test' area to validate the you pattern performs correctly on ALL the files you feed it.
theducks is online now   Reply With Quote
Advert
Old 06-22-2011, 01:05 PM   #3
akmatov
Junior Member
akmatov began at the beginning.
 
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.
akmatov is offline   Reply With Quote
Old 06-22-2011, 01:39 PM   #4
akmatov
Junior Member
akmatov began at the beginning.
 
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
akmatov is offline   Reply With Quote
Old 06-22-2011, 01:41 PM   #5
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 9
Karma: 38
Join Date: Jan 2011
Device: kindle
oops fixed
akmatov is offline   Reply With Quote
Advert
Old 06-22-2011, 01:58 PM   #6
akmatov
Junior Member
akmatov began at the beginning.
 
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.
akmatov is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:24 AM.


MobileRead.com is a privately owned, operated and funded community.