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
LanguageDetector.kt line 412 uses \p{IsLatin}, which definitely ought to work on Android, but doesn't. Using \p{Latin} works, so I suggest you do that. The next two lines probably have the same issue.
Looks great BTW, and I love that you included Latin already.
The text was updated successfully, but these errors were encountered:
Interestingly enough, I get a PatternSyntaxException on my developer machine with the standard JDK 8 using the character classes without the "Is-" prefix. Anyway, now both notation variants are tried in order, so one of them ought to work.
I will close this issue once release 0.4.0 is completed.
Thanks again for your contribution. Very much appreciated.
I looked more thoroughly at the documentation, and it seems that the misunderstanding in the SO question is that "latin" isn't actually a unicode category. One might easily think so, but it's not. Sigh. IMO both the Java documentation and the Android implementation could do with some improvement.
LanguageDetector.kt line 412 uses \p{IsLatin}, which definitely ought to work on Android, but doesn't. Using \p{Latin} works, so I suggest you do that. The next two lines probably have the same issue.
Looks great BTW, and I love that you included Latin already.
The text was updated successfully, but these errors were encountered: