Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2011, 01:23 PM   #1
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 8
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, 01:38 PM   #2
theducks
Grand Sorcerer
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: 15,287
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
 
Advertisement
Old 06-22-2011, 02:05 PM   #3
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 8
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, 02:39 PM   #4
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 8
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, 02:41 PM   #5
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 8
Karma: 38
Join Date: Jan 2011
Device: kindle
oops fixed
akmatov is offline   Reply With Quote
Old 06-22-2011, 02:58 PM   #6
akmatov
Junior Member
akmatov began at the beginning.
 
Posts: 8
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:48 AM
view preference cybmole Calibre 2 01-25-2011 04:26 PM
send to device format preference cybmole Calibre 15 09-30-2010 04:46 AM
Metadata fetch publisher preference? adolson Calibre 4 05-03-2010 02:07 AM
Preference for Full Justification, How to? ascherjim Calibre 13 06-26-2009 08:43 PM


All times are GMT -4. The time now is 04:40 PM.


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