A dead-simple hiragana and katakana romanization library
Project description
A dead-simple hiragana and katakana romanization library for Python 2.7 and 3.4+.
By default, romanization is performed according to ISO 3602 Strict (Nihon-shiki) with long vowels expanded (e.g., ou or oo instead of ô):
>>> from __future__ import unicode_literals >>> import waapuro >>> waapuro.romanize('とおりゃんせ') 'tooryanse'
Passing the hepburnish option replaces some of the individual kana romanizations with more Hepburn-like variants:
>>> waapuro.romanize('あいづち') 'aiduti' >>> waapuro.romanize('あいづち', hepburnish=True) 'aizuchi'
To install, just use:
$ pip install waapuro
Report bugs and make feature requests on Waapuro’s GitHub project page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
waapuro-1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for waapuro-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca0c80321337d7e7f8691066eeac645ff7dc3c64535943445244fe52f893c44 |
|
MD5 | 8fc700c4d290e3688507a1abc95d7a19 |
|
BLAKE2b-256 | f50da471e4bb2e6920cafea697ab5b9e40a7f6484bc91f91e0227902df0be6b9 |