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
While working on the half-width support, I noticed that IsKatakana (as well as IsHiragana) are based on golang utf8 tables, and the range being used a probably too wide for what a japanese speaker would consider being a katakana or not.
IsHiragana as fewer kirks, but still funny yet unexpected behavior. For example:
IsHiragana("🈀") = true
IsHiragana("𛁟") = true // \u1b05f
For IsKanji, I also suspect the range to be wider than what would make sense to a human reader, but considering the difficulty to put any kind of boundary to it, I've skipped checking.
The text was updated successfully, but these errors were encountered:
While working on the half-width support, I noticed that IsKatakana (as well as IsHiragana) are based on golang utf8 tables, and the range being used a probably too wide for what a japanese speaker would consider being a katakana or not.
For example, this was slightly unexpected:
This even more:
And I would say this is wrong:
IsHiragana as fewer kirks, but still funny yet unexpected behavior. For example:
For IsKanji, I also suspect the range to be wider than what would make sense to a human reader, but considering the difficulty to put any kind of boundary to it, I've skipped checking.
The text was updated successfully, but these errors were encountered: