MauveCloud's Browser Tests: Romaji Conversion

Home: MauveCloud's Browser Tests

Up: Character Set Tests



This uses JavaScript to convert a string into hiragana and katakana. I have created a list of romaji sequences so that it will do something with every letter in the input string (usually by guessing at missing vowels), though the results won't always make sense, and I have added a number of sequences that may not be officially accepted in Japan. This version uses if/elseif constructs, so it should be quite fast.

This is partially inspired by the romaji converter that is built into Jim Breen's WWWJDIC Japanese-English Dictionary Server, and I think anything that converter can handle will be done the same way by this one (such as "x" for small forms, the voiced forms of "ti/chi" and "tu/tsu", and a hyphen for the katakana long vowel mark), but this one is a bit more powerful.

Key features:

If you have any questions or suggestions (esp. additions or corrections), you can e-mail me: mauvecloud at mauvecloud dot net (I won't make this a mailto link, as that would merely encourage spam generators).