A CLI tool to convert Japanese text (kanji, hiragana, katakana) to romaji.
pip install -e .romanize "日本語"
# Output: nihongoecho "東京都渋谷区" | romanize
# Output: toukyoutoshibuyakushibuyakuromanize -f input.txt -o output.txt# Hepburn (default) - most readable
romanize -s heppburn "日本語"
# Output: nihongo
# Kunrei-shiki
romanize -s kunrei "日本語"
# Output: nihongo| Option | Description |
|---|---|
-s, --style |
Romanization style: heppburn (default) or kunrei |
-o, --output |
Output file (default: stdout) |
-f, --file |
Input file |
-h, --help |
Show help |
- Python >= 3.8
- pykakasi >= 2.3.0
- click >= 8.0.0