-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversion problem with toRomaji function #18
Comments
I created a (hopefully) simple fix. I added a check above line 59 of the conversions.dart.
It now converts 'シークヮーサー' to 'shiikuwaasaa' and 'シマウヮー' to 'shimauwaa' which seems correct to me (and for what it's worth Google Translate's pronunciation also does an extended vowel wa). I tested this on my own and it doesn't seem to mess with any other conversions. Although I wasn't able to run the test suite because pub is having trouble resolving the dependencies. @jeroen-meijer What do you think of this change? If it looks okay I can create a PR. If not, do you have a different solution in mind? |
Hey there, Thanks for opening this issue. Looks great! I'll quickly try it myself later today, and fix the pub CI pipelines and tests in the meantime 👍🏻 |
Just a ping to see if this will make it in. |
Hey @jeroen-meijer how about this? And by the way for those who just simply can't wait for the PR to be merged, just add this to your dependency_overrides:
kana_kit:
git:
url: https://github.com/Moseco/kana_kit.git
ref: master |
Thank you @jeroen-meijer! Sure, I love Japanese :) Thank you for the reply. I was worried this project was abandoned. |
That's so cool! Let me know when it's out or if you have any updates :) |
@HighLiuk I'm almost done preparing the PR with various fixes and updates, including this one. Do you have two or three test cases I can use to add tests for this edge-case? Wanna make sure I get these right. Thx. |
@jeroen-meijer as far as I know, the test cases provided by @Moseco are the only (rare) cases: |
@HighLiuk The PR is submitted (#24), but the fix made by @Moseco doesn't actually perform the translation correctly. I can't work on this for the rest of the day, but feel free to have a look at the PR and propose a fix I can implement instead. (I added two tests for this edge-case so just run the test suite to see if you fixed it. Good luck!) |
@jeroen-meijer I am not sure why it is not working now in your release branch. I will try to investigate today and push a fix. Edit: initial comment was incorrect about the problem. |
@jeroen-meijer I quickly looked at the problem. it seems to correctly convert the rare kana when it is going from katakana to romaji but it does not do it correctly when going from hiragana to romaji. What would the best fix be? To change the hepburn map to account for 'ゎー'? |
This issue should now be fixed in version 2.1.0, which has just released. |
CC @HighLiuk |
@jeroen-meijer I can't update to 2.1.0 because this issue #25 |
When the toRomaji function is given katakana with the pattern "*ヮー" it throws the exception
Null check operator used on a null value
on line 59 of the conversions.dart fileTwo examples I encountered the problem with シークヮーサー and シマウヮー
The text was updated successfully, but these errors were encountered: