Skip to content

khanson679/romaji-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

romaji-tools

Python library to convert between different forms of Japanese Kana and romanization via an intermediate representation based on "wapuro" style romaji.

>>> import romajitools as rt
>>> rt.convert(u"はんおう", in_fmt="hiragana", out_fmt="wapuro")
u"han'ou"

Originally based on python-romkan but has already diverged substantially.

Features

When complete, will convert between the following formats to the greatest extent possible:

  • Hiragana
  • Katakana (+ half width)
  • Kunrei romaji
  • Hepburn romaji (traditional, modern, wapuro-style vowels)
  • An extreme form of "wapuro" romaji (keystrokes typically entered into an IME, e.g. "texi" to produce "ティ")

Will also allow the user to specify various options for details like the spelling of long vowels, and will include a command line interface for easy use from a Unix shell.

Mapping rules mostly encoded in plain text tables rather than code for maximum simplicity and clarity.

Status

Pre-alpha. Currently, only the Hiragana format is fully implemented. Only tested on Python 2.7 on Ubuntu (14.04 LTS, 15.10).

About

Fine-grained Kana <-> Romaji conversion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages