How would I automate converting Project Gutenberg books into ebooks for Classics.app on the iPhone?
Or more specifically, I have recently finished reading some classics on the wonderful
Classics program for the iPhone/iTouch and I want to start adding my own favourites for on-the-go reading.
I've figured out that each book in Classics is just a collection of PDF files, one for each chapter, and a simple XML file that acts as a chapters index. The PDF page have a specific size and I have a Pages template and some defined styles that have the right margin, page size, font size, styling and all.
I've done a simple book with a few chapters as a test and they showed up great but it was incredibly tedious. Basically, for each chapter:
- Create a new blank document in Pages and apply the saved page size settings
- Copy and paste the chapter text into the document
- Apply a title style to the chapter heading and a paragraph style to everything else
- Run a quick find-and-replace to convert straight quotes into smart quotes
- Save file with relevant meta info (in case I need to manually touch-up)
- Finally, print as PDF with relevant meta info
Is there any way to automate all this? I'm OK with scripting and am willing to learn Latex if that is the way but I'd rather use Applescript and use the Pages engine to format, hyphenate and style everything.
posted by eccnineten at 8:24 PM on February 2 [1 favorite]