valiha: watercolor painting of my cat Lola (Default)
valiha ([personal profile] valiha) wrote in [community profile] ebooks2011-10-05 10:13 pm
Entry tags:

Another calibre question

HI, I have a calibre conversion question fandom people might understand better than MobileRead forumers.

I had the fanfiction downloader program called Graffer installed on my comp. I was happy with it because it would download fics from multiple sources and produced clean html files. Unfortunately it's creator gave up on the program and it is no longer updated, and it has stopped working for several major archives.

My work on converting my fics via calibre is slow, ad I often want to chuck my comp out the window, that's how frustrated calibre makes me feel. I was expecting import and conversion to be fairly straightforward, but calibre kept messing up the authors. I finally loked at the html coding and discovered that Graffer added a line in the metadata section which calibre would read as author name, but was actually the name of the programmer: <meta name='author' content='Grzegorz Hordynski' />

I wet to MobileRead to see if I can find a way to change this line in the html file automatically through bulk convert, but couldn't figure out the instructions or the regexes. I've been having a back and forth conversation with a member who doesn't understand what I'm after, so does anyone here know how to set up calibre so that it changes the programmer's name into the correct author name for selected ebooks in the actual html file, not just in the metadata?
aithine: (Default)

[personal profile] aithine 2011-10-06 10:23 pm (UTC)(link)
Just trying to clarify what you're trying to do. There are usually better tools that do just one job than expecting one program to do them. :) (I don't use calibre, so can't really comment on what it will or won't do well.)

To remove the programmer's name from the Graffer-grabbed files: grab a good text editor (like NoteTab) and use it to do a multi-file search and replace on the meta tag. That'll clear that out so you don't have to deal with it when you find a library program you do like to use and want to import your files.

To mass rename batch files without having to figure out the regexes, use AF5 Rename your files. It's a fairly logical interface for doing just one thing: renaming files using patterns. :)
aithine: (Default)

[personal profile] aithine 2011-10-08 06:20 am (UTC)(link)
I ♥ Keen Eddie (Obviously, since Eddie's been my default icon for eight years. *g*)

It's pretty easy to open multiple files at once in NoteTab and do the search and replace. Depending on how old or new your machine is, you can open files in bunches so it doesn't overwhelm computer's memory, but really, that's the fastest way to do that sort of thing without having to learn or deal with any of the scripting languages that would do what you need. And honestly, even though you have to open all the files, it doesn't take any longer. :) Plus, it sounds like it's much more your speed, and would cause the least amount of headache for you. :)

With the file renaming, sure, I know exactly what you mean. Download the program I gave you the link to (AF5 Rename your files) and read the help files--it easily does that sort of thing without making it complicated. (I've used that program for years--it's a very straightforward tool.)
Edited 2011-10-08 08:09 (UTC)