valiha: watercolor painting of my cat Lola (Default)
valiha ([personal profile] valiha) wrote in [community profile] ebooks2011-07-03 12:17 pm
Entry tags:

Need advice - Calibre for converting and managing fanfiction

I need some advice on how to use Calibre to convert and manage my vast fanfiction library. I have tried using this program in the past, installing and uninstalling several times. I cannot stand the fact that it creates a copy of every file I add to it. I understand the reasons for it now though I didn't in the past, but just knowing that it leaves a mess of folders and subfolders and files on my computer drives me batty. It says it is "designed around the concept of the logical book, i.e., a single entry in your library that may correspond to actual e-book files in several formats", but I only keep multiple formats for fanfic, so that seems reduntant to me. I have tried to find answers on the Calibre forum over at MobileRead, but most of the conversations are too technical for me. I hope some of you can at least give me some starting points.

So, I've been saving fanfiction for years, in various fandoms, because when I first started reading it, I didn't have internet at home, and net cafes charged ridiculous amounts for sitting there reading. I would bring a bunch of floppies and save favorites as txt files because they would take up the least amount of space and I could cram a lot of them on a single floppy. Those fics are still on my computer, in folders according to fandom and author. I don't bother with genres, because of the popularity of AUs in my main fandom. An author may write stories set in an Old West setting, WWII, present time, SF AU etc.; they all get saved in that author's folder. I number the series, and leave stand-alones with just the titles. I also don't bother with pairings because I'm mostly a gen reader.

I now save most of my favorites as htmls or download as epubs from AO3 to "My Fandoms > Fandom > Author" folders on my computer, and copy to my e-reader. I've been thinking about converting the old fics to htmls too, but it would be a time consuming process to do it one by one (I'm talking thousands of files, which often wrap after 65 characters). I know Calibre can do a batch convert of files from one format to another, but like I said I have issues with the way it behaves. I am wondering if I can set it up so that I convert the files I need, add tags and covers, move them to the location of my choice and then have Calibre delete the files and folders in its library created in the process.

Or if this is not possible with Calibre, could you recommend an alternative program that could do a batch convert from txt to clean, bare bones html/epub, and allow me to add tags to the resulting files? I'd really appreciate any help you can give me.
jumpuphigh: Pigeon with text "jumpuphigh" (Default)

[personal profile] jumpuphigh 2011-07-03 11:38 am (UTC)(link)
I am wondering if I can set it up so that I convert the files I need, add tags and covers, move them to the location of my choice and then have Calibre delete the files and folders in its library created in the process.

I don't see why you couldn't do that. You'd have to manually copy the converted files to the location that you wanted one-by-one though as Calibre sets up a new file for each book. Deleting from Calibre afterwards would be as easy as selecting the books and clicking the delete button in Calibre.
jumpuphigh: Pigeon with text "jumpuphigh" (Default)

[personal profile] jumpuphigh 2011-07-03 01:55 pm (UTC)(link)
[personal profile] elf can talk better about the formatting of files than I can. I like how my epub files turn out from Calibre although I did go in and futz about with the default settings in order to make them work for me. Since I didn't know what I was doing, it was all trial and error.

Once you've started Calibre, plug in your device and an option will pop up to send files to the device itself in place of the heart on the toolbar.
nonniemous: (repeating books)

[personal profile] nonniemous 2011-07-03 03:14 pm (UTC)(link)
Calibre does better with RTF than TXT files, so I started saving all my fic that way and then converting it. I don't worry about stuff that I've converted, though; the epub files stay in my calibre folders and the fics stay in my fandom stuff, because sometimes I read on my computer and sometimes on my nook. Everything else just gets dumped into the calibre library. Older fics I've opened as whatever they were, resaved as rtf, and then pulled into Caliber for an epub conversion. It's worked pretty well--though not well enough that if the fic turns up on AO3 I don't run over and download their epub version to replace my homemade one.

The latest versions of Calibre are pretty spiffy, though not quite yet "Point and play" for formatting, but I seem to remember that you have some control over whether or not Calibre creates that second copy or where it puts it. It would definitely be worth trying again.
trouble: Sketch of Hermoine from Harry Potter with "Bookworms will rule the world (after we finish the background reading)" on it (Default)

[personal profile] trouble 2011-07-03 04:01 pm (UTC)(link)
One of my friends wrote a guide to using Calibre for a class she took. She's away right now so I'm not sure if she'll see this post, but when she gets back I'll ask her if she has any suggestions that would be helpful.
kaiz: barcode via pne (http://pne.mizinamo.org/dwbarcode) (barcode)

[personal profile] kaiz 2011-07-03 04:21 pm (UTC)(link)
I really like Calibre a lot and use it to manage my fanfic collection to read on my Kindle. In fact, besides converted academic PDFs, fanfic is pretty much the only thing I read on my Kindle.

Like you, I had a big stash of old fanfic on my hard drive from decades gone by; mostly in HTML format, but some PDF, RTF, and TXT. I used Calibre to batch convert them all to MOBI for the Kindle. Calibre's batch metadata editing feature came in handy as well, since I batch converted old fic by fandom and then updated the tags in a big batch. (I agree with [personal profile] nonniemous that TXT isn't the best format to convert from, but it works well enough...you just lose some formatting like italics and bold.) I also like the Kindle collections plug-in that's available so I can group fanfic into specific fantoms and genres (e.g. Crossovers) on my Kindle so I don't have to sort though the fic alphabetically by title or author which is a huge win.

Anyway, yeah, you're right, Calibre maintains its library in directories/sub directories on a per author/story basis. But I guess this doesn't bother me because:
1) even binary format fic files are small in comparison to other media types (e.g. video files) and I have multiple huge hard drives so I won't ever run out of space, and
2) I keep backups of the old files and any new files in my original directory layout anyway. That way, if I ever stop using Calibre, I'll still have all my files stored in my original directory hierarchy and I'll be able to just delete the Calibre library. Additionally, since I use Calibre to upload stuff to my Kindle, the Calibre library and its files have to stay as they are for that functionality to work.

If you only want to use Calibre to convert files and not manage your e-library, then unless you have the skill to write a script in Python/Java/Perl/awk/whatever, I'm not sure there is any way to batch-copy the files out of the Calibre directory structure and move them to the directory you want.

Writing shell scripts isn't really difficult, though, so you might want to try that anyway just for fun. Simply type "writing shell scripts in [Python/Perl/bash/etc.]" into google and you'll find a lot of good suggestions and tutorials.

Two last points: Calibre does allow you to move your library to a different location than its default. And you can export subsets of your library collection to your hard drive in a user-defined directory hierarchy (which might be a way to do what you want without writing scripts). Information about those features and others that might be useful are located here and here


Hope this helps!
kaiz: (defy gravity)

[personal profile] kaiz 2011-07-03 05:17 pm (UTC)(link)
I on the other hand have such an intense dislike of this program.

Hee, I totally hear you. My antipathy toward Microsoft Office knows no bounds! Also, it just occurred to me...if iTunes drives you (the generic you) nuts, then there's a fair bet Calibre will too, since they've got such a similar user interface and directory layout for files.

I would eventually like to give it a hand, but right now I'd just like to convert the files I have and transfer them to my reader.

Maybe give Calibre's "export library subsets" feature a shot, then; that might work for you. I just tried it out on my library and I was able to save a selection of titles (that I selected using the mouse it the user interface) to an arbitrary directory on my computer.

So...

If you were to use: Add books -> Add books from a single directory to import a bunch of your fic files.

Followed up by: Convert books -> Bulk convert and Save to disk -> Save to disk in a single directory that might just do the trick! Then, you could point your ereader at the directory you've chosen and upload those converted files. Worth a shot at least.

I'm no expert with the program, but I'm happy to try things out on my own library if you have questions and would rather not dive into the Mobileforums groups!

kaiz: (dark sky)

[personal profile] kaiz 2011-07-03 05:44 pm (UTC)(link)
I'd get an author folder and 40 subfolders, correct?

Yes, that's correct. *g*

Would I then be able to remove/delete those books/folders from Calibre's GUI because I wouldn't need them any more?

I don't think that you can delete the book listings from the user interface without also deleting them from Calibre's folder/subfolder hierarchy. From what I can tell, Calibre reads the contents of its directory structure to build the book listings in the user interface.

However, you can easily delete bunches of books from the library, and Calibre gives you a bunch of options for doing so, including:

Remove selected books
Remove files of a specific format
Remove all formats from selected books except…
Remove all formats from selected books
Remove covers from all selected books
Remove books from selected device

So you can select the books you want to delete by clicking on them in the user interface, convert them in a big batch, then export the converted files to your chosen directory, then choose one of those deletion options to get rid of the book files.

Edited (fixed wonky formatting) 2011-07-03 17:45 (UTC)
kaiz: (divas)

[personal profile] kaiz 2011-07-03 05:47 pm (UTC)(link)
But txt has no formatting so I wouldn't be losing anything

Oh yeah, but what I meant was that it doesn't seem to convert asterisks like *text* to actual italics or bold during the conversion process (at least not in MOBI); so you lose that aspect of formatting even those the *text* remains in the converted file. Maybe EPUB translates that correctly?
kaiz: (Default)

[personal profile] kaiz 2011-07-03 06:09 pm (UTC)(link)
Okay, just tried this out. Using the Remove selected books option will also delete the directory from your computer. So win! :-)
kaiz: (parallax)

[personal profile] kaiz 2011-07-03 06:36 pm (UTC)(link)
I'm pretty sure that I used the basic install options, so I think you'll be fine. Good luck on the experiments. I'll be around off and on all day so if you run into something weird, I can test things out on my library, too, and eventually I think we can figure it out so you get some useful results! :-)
nonniemous: (read)

[personal profile] nonniemous 2011-07-03 06:48 pm (UTC)(link)
You could also try Sigil; there's a lot more user control as to where your files go and how they're stored, and a good tutorial for conversion here: http://code.google.com/p/sigil/wiki/BasicTutorial

I just used it to combine a series of shorts from one of my favorite AUs into one epub book for my nook.
nonniemous: (berserker)

[personal profile] nonniemous 2011-07-03 07:13 pm (UTC)(link)
Yeah, the number does get daunting. I've been slowly converting things over, and I nearly danced in glee when I found ereader versions of just a few favorite fics from decades back. Sigil honestly scares me, and I'm just starting to play around with it. But as I work my way back into the older files, I may very well have to get more familiar with it.
elf: Quote: She is too fond of books, and it has turned her brain (Fond of Books)

[personal profile] elf 2011-07-03 08:20 pm (UTC)(link)
This is why I don't use Calibre.

It's supposed to be a "black-box" arrangement--you set a folder marked CALIBRE DO NOT TOUCH, and don't look inside. Makes me twitchy, but I could handle that. But it doesn't do that--it makes ugly little author folders ALL OVER MY DOCUMENTS FOLDER AAARGH. (Can't stand iTunes either.)

I gather there's a way to change this, a way to make the imports all go into one folder (which I'd then remember to just never look inside), but I haven't teased out the settings for it. Plus the constant upgrades drive me bonkers; I regularly swap between 3 different computers and can't be bothered to keep up.

I want to learn how to make ePubs manually and design (or pester nice code-speaking friends to design) a simple program to batch-convert txt or rtf files.

There's Sigil, but I don't know if it does batch conversions.
kaiz: (Default)

[personal profile] kaiz 2011-07-03 08:21 pm (UTC)(link)
I'm pretty sure Calibre guesses at the title of the book based upon the name of the file. So if you've got file named "Fic1001020.txt" you're going to end up with a title of either "Fic1001020", or for PDF files or cases where I have a filename with odd characters I noticed that I sometimes get a title that is the first sentence in the document.

the interface was a strange mix of one of our local languages and English

You might want to send them a bug report on that. I didn't experience that problem with the Mac version 0.8.8; if you're using the Windows version, perhaps it's a bug that is Windows only.
elf: Quote: She is too fond of books, and it has turned her brain (Fond of Books)

[personal profile] elf 2011-07-03 08:23 pm (UTC)(link)
It does not convert *text* and _text_ to text and text; I don't think any program does that with imported text. (Word does it while you're typing but I haven't found a way to make it do so to copy/pasted text.)

Page 1 of 3