This commit is contained in:
M66B
2023-09-03 19:35:12 +02:00
parent 171aa6a370
commit d71be68c77
2 changed files with 8 additions and 4 deletions

View File

@@ -2528,10 +2528,13 @@ public class Helper {
}
static boolean isEndChar(char c) {
return (isSentenceChar(c) ||
c == ',' || c == ':' || c == ';');
}
static boolean isSentenceChar(char c) {
return (c == '.' /* Latin */ ||
c == '。' /* Chinese */ ||
c == ',' ||
c == ':' || c == ';' ||
c == '?' || c == '!');
}