Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions for "kannji" and "kannzi" #6

Open
blagarde opened this issue Jan 12, 2014 · 0 comments
Open

Exceptions for "kannji" and "kannzi" #6

blagarde opened this issue Jan 12, 2014 · 0 comments

Comments

@blagarde
Copy link

Test cases for the following functions currently check the output of "kannji" and "kannzi":

to_katakana(...) - Convert a Romaji (ローマ字) to a Katakana (片仮名).
to_kana(...) - Convert a Romaji (ローマ字) to a Katakana (片仮名). (same as to_katakana)
to_hiragana(...) - Convert a Romaji (ローマ字) to a Hiragana (平仮名).
to_hepburn(...) - Convert a Kana (仮名) or a Kunrei-shiki Romaji (訓令式ローマ字) to a Hepburn Romaji (ヘボン式ローマ字).

These two forms ("kannji" and "kannzi"), are valid in neither Hepburn nor Kunrei romanization schemes therefore they cannot be considered valid "Romaji" input. when When given these inputs, instead of returning values ("カンジ", "かんじ", and "kanji"), the four above functions should raise an exception.

If we wanted to preserve the ability to convert from these forms, support for a third form of romanization should be added - "Wāpuro rōmaji" (word processor romaji):
http://en.wikipedia.org/wiki/W%C4%81puro_r%C5%8Dmaji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant