this thread explains how to digitize a book quickly and easily.
search archive.org for "booksculture00mabiuoft" for the book.

***

here's the latest version of our text, all cleaned and formatted:
>   http://zenmarkuplanguage.com/grapes007.txt

so now we wanna start generating e-books from this "master".

ok, here's code that kicks out an .html file which _kindlegen_
-- amazon's free .mobi generator -- can use to create a .mobi.
(you can download kindlegen from the amazon.com website.)

>   http://zenmarkuplanguage.com/grapes122.py
>   http://zenmarkuplanguage.com/grapes122.txt

the .html file that's generated is here:
>   http://zenmarkuplanguage.com/grapes122.html

that .html file can be input to the kindlegen app, which will
turn it into a .mobi that can be read just fine, but it will _lack_
a few niceties, including a cover, a table of contents, and ncx
(which is another table of contents, because i don't know why).

so, because we don't want to be second-class in any fashion,
here are the other files you'll need in order to be first-class:

>   http://zenmarkuplanguage.com/grapes122.jpg
>   http://zenmarkuplanguage.com/grapes122.opf.txt
>   http://zenmarkuplanguage.com/grapes122.ncx.txt

so download/save all three...  the .jpg is straightforward, but
you'll remove the ".txt" extension from the .ncx and .opf files
-- the ".txt" is so those files will display in a web-browser --
and then move all of them (plus the .html file, of course) into
the folder where your kindlegen program is located, and then
execute the kindlegen program by pointing it to the .opf file...

you should get out a mobi that looks like this:
>   http://zenmarkuplanguage.com/grapes122.mobi

considering the fact that we defined no styles, i think the .mobi
looks astoundingly good, except the headers are not centered.

of course, since you've got the code, "customize as desired..."

and no sir, that code won't extrapolate to anything other than
other books which are dead-simple.  you'll need to harden it,
so it becomes robust to the exceptions which inevitably occur,
and expand it, so that it can handle challenges which pop up...
but that's not my aim here.  i'm just showing you it's possible.

***

our kindle work is done.  in the next lesson, we'll do .epub...

-bowerbird