Python/Romkan: ローマ字とひらがなを相互に変換する Python用のライブラリ

[back to top]

What is this?

"Python/Romkan" is the Python ver. of Ruby/Romkan, which can convert a Japanese Romaji string to a Japanese Kana string or vice versa.

Download and Usage

Download the source code from here: romkan.py (Hosted by Google Code) . Ruby/Romkan is a free software with ABSOLUTELY NO WARRANTY under the terms of the Ruby's licence.

% python
>>> import romkan
>>> print romkan.to_kana(u"syatyou")
しゃちょう
>>> print romkan.to_roma(u"しゃちょう")
shachou
>>> print romkan.to_hepburn(u"syatyou")
shachou

Features

History

Acknowledgement

I really thank Mr. Satoru Takabayashi for developing this wonderful library.

[back to top]