From b4eb0bdb7027e9618db59d2d55fb2f51478a6d1c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 16 Oct 2019 13:01:21 -0400 Subject: [PATCH] v0.7.5c: fixed hangul chars not always splitting correctly on android 6 --- .../shatteredpixeldungeon/android/AndroidPlatformSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java index 6387cd95a..a91959dea 100644 --- a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java +++ b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java @@ -383,10 +383,10 @@ public class AndroidPlatformSupport extends PlatformSupport { "(?<=\\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 non-hangul character. Needed for weird android 6.0 font files private Pattern android6KRSplitter = Pattern.compile( "(?<= )|(?= )|(?<=\n)|(?=\n)|(?<=_)|(?=_)|" + - "(?!\\p{InHangul_Syllables})"); + "(?!\\p{InHangul_Syllables})|(?