View Single Post
Old 07-09-2009, 03:44 PM   #141
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by Mnementh View Post
I'm actually quite embarrassed that the thought never occurred to me to do that, thank you for pointing it out.

K+ has been sent their way.
Cool.

Okay, just as an update since I think it's been 4 months since I promised erayd the cleaned-up scripts with my changes. I've been working on them here and there, however, everytime I actually accomplish stuff, there's always some other thing that crops up that I have to change.

Here's a laundry-list of things I'm trying to do related to FanFiction.Net:
  • dynamic catalog creation - For those people with iPhones and iPod Touches, no need to manually check story ids and convert to epub. You can browse new and updated fanfics from favorite categories within Stanza directly. Requires Apache, PHP and Calibre (for command-line conversion functions only).
  • automated cover creation - Currently using PHP GD2. If someone can help me with Imagick on PHP, it would be much appreciated. For the artistically-inclined, cover design ideas would be great, too.
  • switch to utf-8 encoding - The current html.codec.php uses Windows-1252 and apparently, Stanza doesn't like it all that much.
  • revised epub creation - I was getting all these weird characters in the title and summary/description when they contain multi-byte characters. Silly me for not thinking that dos only supports ascii, not utf-8. I'm adding very simple opf creation so Calibre can pull the metadata from opf and not command-line.
  • oebps zip file output format - Similar to the one Calibre creates when you add an html file to the library. epub is pretty okay as a final format, but it's a pain in the neck to edit. This would create a zip file that contains an opf file, a simple (x)html file containing the whole fanfic, and optionally, stylesheets and images (cover, etc). Hopefully, that would make manual edits a bit easier and it should be fairly simple to convert from the oebps zip to a valid epub. Hmm, Calibre might actually have a command-line for this available. I'll have to check. If it does, then that's one less headache for me.
  • semantically correct mark-up - I have a heavily edited html.codec.php because the default conversion settings for Calibre wasn't playing nice with some of the fanfics and wreaking havoc with automatic chapter detection. Unfortunately, that resulted in a not so semantically correct html file that I am now wanting to fix.
  • switch to Calibre 0.6 - Editing and testing affected codec.php files for compatibility with the new conversion structure in Calibre 0.6.
  • And finally, aready-made portable XAMPP environment for Windows users so they can run FLAG locally without needing to know how to set-up Apache and PHP on their computers.

Lol, it looks like I'm trying to accomplish too many things at once, but I'd rather have it done in one go so erayd can add all pertinent changes to the subversion.
ilovejedd is offline   Reply With Quote