lovell / hepburn

Node.js module for converting Japanese Hiragana and Katakana script to, and from, Romaji using Hepburn romanisation
Apache License 2.0
127 stars 23 forks source link

Correct alternative CH/SH spellings #15

Closed risseraka closed 4 years ago

risseraka commented 4 years ago

Hi there,

Browsing Unihan, I've stumbled upon some unusual romajization, as seen here in the kJapaneseKun readings:

http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=501c http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=5794 http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=5794 http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=57F1

This PR attemps to fix that, hoping not to have broken anything. New behavior of cleanRomaji has been added to the tests.

Cheers.

lovell commented 4 years ago

Merci beaucoup!

lovell commented 4 years ago

v1.1.2 now available