soimort / python-romkan

:sa: A Romaji/Kana conversion library for Python
http://www.soimort.org/python-romkan/
Other
112 stars 47 forks source link

Macrons for some long vowels #5

Open blagarde opened 10 years ago

blagarde commented 10 years ago

The Hepburn romaniser seems to follow the Modified Hepburn version. http://en.wikipedia.org/wiki/Hepburn_romanization

e.g. It produces 'shinpai' instead of 'shimpai'.

Modified Hepburn has complex rules for placing macrons to indicate that some vowels are long, which the romaniser does not currently do.

e.g. Expected results

ちゅうい  chūi
みずうみ  mizuumi

Actual results:

ちゅうい  chuui
みずうみ  mizuumi

Another example is with 'tōkyō', which currently gets output as 'toukyou'.