You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on an app and I've run into this issue where toHiragana won't convert mixed case.
For example:
アメリカ人
if it is typed as:
アメリカじん
and then when converted:
answer = wanakana.toHiragana("アメリカじん")
the answer comes back as アメリカじん
Not sure if this is intended behaviour or not, and I can write around it, but I feel like it would make sense for toHiragana to convert the convertable parts and ignore the already Hiragana parts.
The text was updated successfully, but these errors were encountered:
I think this may be a (laziness) bug in one of the detection functions like isHiragana(). It's probably not that hard to fix but I unfortunately won't be able to do it for a few weeks since I'm about to have a baby.
Maybe you can try doing a patch and doing a pull request.
Working on an app and I've run into this issue where toHiragana won't convert mixed case.
For example:
アメリカ人
if it is typed as:
アメリカじん
and then when converted:
answer = wanakana.toHiragana("アメリカじん")
the answer comes back as アメリカじん
Not sure if this is intended behaviour or not, and I can write around it, but I feel like it would make sense for toHiragana to convert the convertable parts and ignore the already Hiragana parts.
The text was updated successfully, but these errors were encountered: