A parser for 青空文庫記法 (Aozora Bunko notation). Reads Shift_JIS or UTF-8; emits HTML, JSON, or canonical source — and, via Pandoc, EPUB, LaTeX, DOCX and the rest.
cargo install aozora-cli --locked # command line
cargo add aozora # Rust library
npm install aozora-wasm # JavaScript
pip install aozora # PythonPre-built CLI binaries are on the
releases page. The Go SDK
ships there as a tarball (aozora-go.tar.gz);
crates/aozora-go covers its
replace-directive install.
aozora check FILE.txt # report diagnostics
aozora render FILE.txt # HTML on stdout
aozora fmt FILE.txt # rewrite to canonical formEvery subcommand reads stdin when given - or no path. Encoding is
detected; -E sjis forces it. aozora --help lists the rest.
use aozora::parse;
let doc = parse("|青梅《おうめ》").expect("source fits parser limits");
let snapshot = doc.snapshot();
let html = snapshot.to_html();
let diagnostics = snapshot.diagnostics();- Playground — try it in the browser
- API reference
- Notation specification — the normative spec this parser is tested against
CONTRIBUTING.md · SECURITY.md ·
CHANGELOG.md
aozora-flavored-markdown
builds a CommonMark + GFM + 青空文庫記法 dialect on top of this parser.
Apache-2.0 OR MIT, at your option. NOTICE lists third-party
attribution.