]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Fix clickable spans with Unicode combining marks.
authorThad Hughes <thad.hughes@gmail.com>
Tue, 6 Mar 2012 00:57:52 +0000 (16:57 -0800)
committerThad Hughes <thad.hughes@gmail.com>
Tue, 6 Mar 2012 00:57:52 +0000 (16:57 -0800)
src/com/hughes/android/dictionary/DictionaryActivity.java

index 3827259cde49080d91d01dcf5dd5fc2e9315b86e..eb907f8150ef02bf9ed4af80d4f6209b77af8918 100644 (file)
@@ -1029,7 +1029,7 @@ public class DictionaryActivity extends ListActivity {
     \r
   }\r
 \r
-  static final Pattern CHAR_DASH = Pattern.compile("['\\p{L}0-9]+");\r
+  static final Pattern CHAR_DASH = Pattern.compile("['\\p{L}\\p{M}\\p{N}]+");\r
 \r
   private void createTokenLinkSpans(final TextView textView, final Spannable spannable, final String text) {\r
     // Saw from the source code that LinkMovementMethod sets the selection!\r