Or I could take a break for a little bit and play some games.

Been working on this and more boring code for the office since 2:00AM this morning.

I have on the fly editing and fixup of configure.opf and toc.ncx.

Now to generate titlepage.xhtml and the mimetype entry.

Then, the stream to create a zip file.

I will then convert a flat set of Amazon kindle sources to a ePub via a simple command.

Then, I will watch epubcheck puke all over it.

If only people would stop making wheels that suck.

//

It's the grudging use of Java.

You mean like me? When we started out, I was doing all of this by hand. It takes about six to eight hours per book.

With the tools I have now, it still takes about two hours.

I'm down to roughly two seconds with this.

Current Status:

Loading Surrender.html…

Paragraphs found (2315)

  • Formatting 19 chapters.
  • Formatting 12 section breaks
  • Formatting 43 centered paragraphs
  • Formatting 4 unindented paragraphs
  • Setting remaining 2237 paragraphs to indented
  • Removing 2248 span tags
  • Removing 1 div tags
  • Removing embedded styles
  • Linking ebook.css

Saving to output.html…
Thank you for flying WordBleach

That pretty much wraps things the hell up. Now onto the hard stuff.

Well, all good things must come to an end.

Time to drive to the office. Fashionably late.

@kdfrawg Nah. This is my twisted idea of fun.

real 0m0.575s
user 0m1.007s
sys 0m0.060s

Beats the hell out of when I used to do the edits manually. Took six to eight hours then.

A little more work and I will have it identifying and inserting true emdashes and the like as well.

Believe it or not, that's the container Amazon's kindlegen creates (With a buttload of added record types and more than a few fields that had to be reverse engineered)