OK, I am doing this as we speak.
I have imported six files from an author saved in Fandom > Fic > Individual authors > Author folder. The author tag inside the file is as above. The title tag is <title> Title by Author </title>. The files themselves are named
01 Title.htm
02 Title Coda Subtitle one.htm
03 Title Coda Subtitle two.htm
04 Title Coda Subtitle three.htm
05 Title Coda Subtitle four.htm
06 Title Coda Subtitle five.htm
These files have no author name in the title of the file because they are all saved in their author folder. I have another group of fics which go into Fandom > Fic > Various authors, and contain single stories out of several an author has written (so one story from author a, one from author b etc etc). I haven't imported any of those stories, but they are named Author name - Title.html.
After import, calibre reads the author and title tags and populates the metadata with what it finds there. It also doesn't read the order in which the fics should be read, and alphabetizes the fics, which gives me
Title.htm
Title Coda Subtitle three.htm
Title Coda Subtitle five.htm
Title Coda Subtitle four.htm
Title Coda Subtitle two.htm
Title Coda Subtitle one.htm
I will obviously have to do something about the files themselves (though it will be a massive undertaking - I have thousands of fics, the earliest dating from 2004) before any further importing into calibre, because what I'm trying to do now simply isn't working.
OK, so the files are imported now. I click Convert books, go to search and replace, enter Grzegorz Hordynski into the First expression window, the Search Regular Expression line, and enter the correct author name into Replacement text lin. I hit OK. calibre converts the files into epub. Author is still Grzegorz Hordynski. A simple Search for "Grzegorz Hordynski" and Replace with "Author Name" is not working.
What am I doing wrong???
This is what I have in the html coding of the file (details changed but you should get the picture):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name='author' content='Grzegorz Hordynski' />
<title> Title by author </title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
<div> Title by author </div>
<div> Summary of the story. Disclamer. Author notes/thankyous. </div>
<div> Story word count: 33355 </div>
<div> <a href="http://www.site.com/">Original link to the story</a> </div>
<br />
<br />
<div>
<hr />
<div> Content of the story. </div>
</body>
</html>
So, first: what is the file naming scheme I will have to apply to the files in order for calibre to correctly interpret individual authors who may have up to 60 fics saved in their respective folders (Fandom > Fic > Individual authors > Author > saved fics.html), and authors for whom I have saved only a single story out of several they have written (Fandom > Fic > Various authors > saved fics.html)? Should I apply Author name - Title.html to all the fics I have saved? Will it correctly recognize files named Author name - Title 01.html, Author name - Title 02.html files?
What about those with a more complicated naming scheme, like those saved in
Fandom > Fic > Individual authors > Author folder > Series
Book 1 - Title - Part 1 - Subtitle.txt
Book 1 - Title - Part 2 - Subtitle.txt etc
Book 2 - Title.txt
Book 3 - Title - Part 1 - Subtitle.txt
Book 3 - Title - Part 2 - Subtitle.txt etc
Book 4 - Title - Part 1 - Subtitle.txt
Book 4 - Title - Part 2 - Subtitle.txt etc
Will I need to add author name to all these files, even those in author folders?
I also need to change the incorrect tags inside the fics themselves. Is there a program that will do this for me? Yes, this will not affect calibre, but like I said I don't intend to manage anything with it, just convert and transfer the result to my reader.
Frankly, at this point I don't even care about any additional features, I just want the conversion to work, and I want to find a way to change the content of the converted file, the way others are changing headers and footers left in their files after converting them from lit or whatever. I want the metadata to be saved inside the file, so that a reader I uploaded the fics to can read the metadata and present it correctly on the screen.
I'm going to try connecting calibre to my device and transferring the converted files to see how CoolReaer will read the files.
|