v0.7.5b: fixed chinese punctuation not getting correctly split
This commit is contained in:
parent
eab000266f
commit
99b602126c
|
@ -330,7 +330,8 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||||
"(?<=\\p{InHiragana})|(?=\\p{InHiragana})|" +
|
"(?<=\\p{InHiragana})|(?=\\p{InHiragana})|" +
|
||||||
"(?<=\\p{InKatakana})|(?=\\p{InKatakana})|" +
|
"(?<=\\p{InKatakana})|(?=\\p{InKatakana})|" +
|
||||||
"(?<=\\p{InCJK_Unified_Ideographs})|(?=\\p{InCJK_Unified_Ideographs})|" +
|
"(?<=\\p{InCJK_Unified_Ideographs})|(?=\\p{InCJK_Unified_Ideographs})|" +
|
||||||
"(?<=\\p{InCJK_Symbols_and_Punctuation})|(?=\\p{InCJK_Symbols_and_Punctuation})");
|
"(?<=\\p{InCJK_Symbols_and_Punctuation})|(?=\\p{InCJK_Symbols_and_Punctuation})|" +
|
||||||
|
"(?<=\\p{InHalfwidth_and_Fullwidth_Forms})|(?=\\p{InHalfwidth_and_Fullwidth_Forms})");
|
||||||
|
|
||||||
//additionally splits on words, so that each word can be arranged individually
|
//additionally splits on words, so that each word can be arranged individually
|
||||||
private Pattern regularsplitterMultiline = Pattern.compile(
|
private Pattern regularsplitterMultiline = Pattern.compile(
|
||||||
|
@ -338,7 +339,8 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||||
"(?<=\\p{InHiragana})|(?=\\p{InHiragana})|" +
|
"(?<=\\p{InHiragana})|(?=\\p{InHiragana})|" +
|
||||||
"(?<=\\p{InKatakana})|(?=\\p{InKatakana})|" +
|
"(?<=\\p{InKatakana})|(?=\\p{InKatakana})|" +
|
||||||
"(?<=\\p{InCJK_Unified_Ideographs})|(?=\\p{InCJK_Unified_Ideographs})|" +
|
"(?<=\\p{InCJK_Unified_Ideographs})|(?=\\p{InCJK_Unified_Ideographs})|" +
|
||||||
"(?<=\\p{InCJK_Symbols_and_Punctuation})|(?=\\p{InCJK_Symbols_and_Punctuation})");
|
"(?<=\\p{InCJK_Symbols_and_Punctuation})|(?=\\p{InCJK_Symbols_and_Punctuation})|" +
|
||||||
|
"(?<=\\p{InHalfwidth_and_Fullwidth_Forms})|(?=\\p{InHalfwidth_and_Fullwidth_Forms})");
|
||||||
|
|
||||||
//splits on each group of hangul syllables. Needed for weird android 6.0 font files
|
//splits on each group of hangul syllables. Needed for weird android 6.0 font files
|
||||||
private Pattern android6KRSplitter = Pattern.compile(
|
private Pattern android6KRSplitter = Pattern.compile(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user