-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Freeze when passing certain characters to jaconv.kana2alphabet #21
Comments
どうやって訳すでしょうか? |
The small "つ" can be expressed with "ltu". |
That's how you would input it on a keyboard, but it's not really an accurate romaji representation. |
でも仕方ないかな? |
I see. |
I couldn't think of any particular problem caused by converting "ltu" to "っ". |
I found the problem and submitted a pull request that should fix it. The program currently changes 「えっ」 to "extsu", so for your stated error with 「えっっ」I made it so the program would convert to "extsuxtsu". This should also fix any issues such as 「えっっっ」, etc. Ultimately, the code would be safer using a FOR loop instead of a WHILE loop, but I wanted to make as few changes as possible and I couldn't think of any other case where this might create an infinite loop. Hopefully @ikegami-yukino can accept the changes for us. |
Thank you. |
Nice to get started.
Thank you for providing a great library.
In ver.0.3, when I pass "えっっ" to a function as follows, the function freezes.
jaconv.kana2alphabet("えっっ")
The text was updated successfully, but these errors were encountered: