aozora4reader

aozora4reader is a tool to parse and convert documents in Aozora Bunko (www.aozora.gr.jp/).

aozora4readerは青空文庫に蓄積された書籍を解析し、ソニーリーダー用のPDFを生成するためのツールです。 現状はPRS-650 Touch Editionをターゲットとしています。 また、PDFの生成にはLaTeX(platex)とdvipdfmxを利用しています。

Usage

You can use a4r command to convert into LaTeX file.

$ a4r <aozora bunko file>

  ex. 'a4r kokoro.txt'

You can get PDF file with platex and dvipdfmx.

$ platex foo.tex
$ dvipdfmx foo.dvi

Sources

You can get source codes in GitHub.

github.com/takahashim/aozora4reader

Special Thanks

aozora4readerのコアの部分と、LaTeX用スタイルシートは、齋藤修三郎さんが作成した青空文庫パッケージが元になっています。

また、そもそも開発の発端は、高山恭介さんが公開されている「青空キンドル」を参考にソニーリーダーに対応させたい、というものでした。高山さんが公開されているaz2tex.rb、aozorakindle.styも参考にしています。

この場を借りて斉藤さん、高山さんに御礼申し上げます。

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Author

Masayoshi Takahashi (@takahashim)

  • The core library and LaTeX style file are based on psitau’s “aozora bunko package”.

  • The idea is based on takayama’s “aozora kindle”.

See LICENSE for details.