-
Notifications
You must be signed in to change notification settings - Fork 84
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
Japanese transliteration / romanization #46
Comments
I took a look on the issue -> "This chart shows in full the three main systems for the romanization of Japanese: Hepburn, Nihon-shiki and Kunrei-shiki:" Is this a good choice? -> http://www.translitteration.com/transliteration/en/japanese/iso-3602-kunrei-shiki/ |
I've been experimenting with this, and Hepburn is definitely the way to go, but unfortunately, there's two cases we'd need to detect for here. Hepburn can detect if the string needs to be altered with containsKana. Then, using fromKana, we get the desired Romajii. However, another problem is that not all Japanese is in kana; there's also Kanji. The best solution I can come up with for that is ENAMDICT. With both, we should have good coverage. I might also be prudent to get the hiragana from ENAMDICT first, then pass that to Hepburn. We also want to be careful to provide to SpeakingURL the result of these techniques, in case it throws in any other characters with marks/diacriticals/accents/long-vowels that should be converted to ASCII. |
Also, I have this code written for my own slugifier based on SpeakingURL. It may be of some help. And this is the test, but note, this only works for Kana, not for Kanji. You'll want to get it working for both, and that's the tricky part. slugify-spec.coffee
slugify.coffee
|
+1 on this issue. I'll need this for soundtrack.io. |
Because of lack of time, this issue is still unfinished. |
+1 |
+5 |
Japanese can be transliterated or romanized pretty effectively with software. That would be a killer feature for my future needs, as my company has several sites will include URLs for stores that have Japanese titles.
The text was updated successfully, but these errors were encountered: