mirror of https://github.com/M66B/FairEmail.git
Check words for single script
This commit is contained in:
parent
1c02a00092
commit
e511d64e7b
|
@ -144,8 +144,15 @@ public class TextHelper {
|
|||
codepoint = s.codePointAt(i);
|
||||
i += Character.charCount(codepoint);
|
||||
us = Character.UnicodeScript.of(codepoint);
|
||||
|
||||
if (Character.isSpaceChar(codepoint)) {
|
||||
script = null;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (us.equals(Character.UnicodeScript.COMMON))
|
||||
continue;
|
||||
|
||||
if (script == null)
|
||||
script = us;
|
||||
else if (!us.equals(script))
|
||||
|
|
Loading…
Reference in New Issue