aozora4reader(a4r) is a tool to parse and convert documents in Aozora Bunko (
Latest commit dff7c73 Aug 17, 2013 @takahashim update version
Failed to load latest commit information.
bin update permission Aug 17, 2013
lib update version Aug 17, 2013
sty update style by psitau Jan 1, 2011
test fix test Aug 17, 2013
.gitignore use bundle instead of jeweler Aug 16, 2013
ChangeLog Version bump to 1.1.0 Sep 7, 2011
README.rdoc typo Dec 20, 2010
Rakefile fix test Aug 17, 2013
aozora4reader.gemspec use bundle instead of jeweler Aug 16, 2013
memo.txt メモ追加 Sep 7, 2011



aozora4reader is a tool to parse and convert documents in Aozora Bunko (

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


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


You can get source codes in GitHub.

Special Thanks




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.


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.