Converting Aozora documents to Kindle
This part is based on the blog entry http://ebookyaro.blogspot.jp/2012/10/kindle-paperwhite-epub3.html but adapted for Linux.
Steps to be done:
- get a book you want to read from Aozora, get the ruby variant. For example take Soseki Natsume’s Kokoro, get the file 773_ruby_5968.zip, unzip it you get a file kokoro.txt
- unzip the Aozora EPub3 converter, and run it with
java -jar AozoraEpub3.jar
Here you can also select the output format: In the top right is the button for device setup, and in the middle (where in my case there is now .kepub.epub written) there is the output format: Currently supported output formats are epub (which is epub3), kepub.epub (which is Kobo’s special epub format), and .mobi (Kindle format, but for this you need the kindlegen binary in the same directory as the AozoraEpub3.jar file)
- drag and drop the file kokoro.txt into the lower part of the window. By doing this another window will pop up where you can edit the title, author, see the chapters etc.
Note that you have to decide on the output format before-hand, it cannot be changed in the above windows.
- Convert the document by pressing the button “変換実行” (the one with the green tick mark). It will generate a file [夏目漱石] こころ.epub which is in epub3 format (or any other selected format).
- unzip the KindleGen
kindlegen [夏目漱石] こころ.epub
which will give you a file [夏目漱石] こころ.mobi which you can install onto your documents folder on your kindle.
Be reminded that documents generated in this way will not appear as Books on your kindle, but as personal documents.