View Single Post
Old 02-06-2011, 01:41 AM   #8
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,230
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by Synful View Post

1.
When I look at my Preferences-> Adding Books, there is nothing marked but "Swap Author Firstname and Lastname". I have a lot of different ebook formats such as PDF, Lit, MOBI, epub and a couple of HTML. I believe those are the main ones I have. I have tons of books btw. So, you believe it would be easier to just import into Calibre and then change the data in all of the columns for each book. Okay, I can handle that. hahaha
As you say you have a lot of books, if their file naming is consistent like "Author - Series - Title" or "Title - Series - Author" or whatever then it would be worth trying to get a regex to suit. However consistent naming conventions are key. If some books just have the author, others just a title, others with the author and title in different orders etc then quite frankly you have a mess that you have to rename the files on to have any hope of success with regular expressions.

If your filenames are consistent, then first try the ability to test the regular expression(s) included with Calibre on the Preferences->Adding books dialog. Copy a filename in (don't forget the extension) and click the Test button and look below to see what Calibre tried to interpret was the Title/Author etc. If you can give some example names - e.g. those names you gave already on this thread, are they how all your files are named? then someone can help you with a regular expression to suit.

Or plan B is to just try to use metadata stored within the file (only certain formats support this). To enable this you must tick the "Read metadata from file contents rather than filename" option in Preferences->Adding books. It might give you a better starting point than filename if you have no idea on the regular expression to use. As I said above only certain book formats support this to varying extents, and the fallback is to use the filename/regular expression approach where it can't find data inside the file. So you may still be in the situation of having to edit the data yourself (but it might be less "wrong").

There are other ways to add such as if you know the ISBNs for each book but those are your main ones. Check out Kovid's video tutorials, the FAQ and user manual too - this stuff should be well covered in there.
kiwidude is offline   Reply With Quote