summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-11-21 16:49:14 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-11-21 16:49:14 +0000
commit422236540a62ce8817f9befe4dd981a9b76d8fda (patch)
tree2bd097328a39b48aac5a40edd0dd2741d8f9b200 /pango/break.c
parent145e118d8d071e5836334a3ffacf22cf789e4257 (diff)
downloadpango-422236540a62ce8817f9befe4dd981a9b76d8fda.tar.gz
Turn off backspace-deletes-character behavior for Kana and Hangul. It's
Sun Nov 21 11:43:00 2004 Owen Taylor <otaylor@redhat.com> * pango/break.c: Turn off backspace-deletes-character behavior for Kana and Hangul. It's wrong for Kana, and for Hangul it's theoretically right but interacts badly with current input methods. (#155897, Leon Ho)
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c
index aa5530d8..47bdcc64 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -370,7 +370,9 @@ static int line_break_indexes[] = {
#define LATIN(wc) (((wc) >= 0x0020 && (wc) <= 0x02AF) || ((wc) >= 0x1E00 && (wc) <= 0x1EFF))
#define CYRILLIC(wc) (((wc) >= 0x0400 && (wc) <= 0x052F))
#define GREEK(wc) (((wc) >= 0x0370 && (wc) <= 0x3FF) || ((wc) >= 0x1F00 && (wc) <= 0x1FFF))
-#define BACKSPACE_DELETES_CHARACTER(wc) (!LATIN (wc) && !CYRILLIC (wc) && !GREEK (wc))
+#define KANA(wc) ((wc) >= 0x3040 && (wc) <= 0x30FF)
+#define HANGUL(wc) ((wc) >= 0xAC00 && (wc) <= 0xD7A3)
+#define BACKSPACE_DELETES_CHARACTER(wc) (!LATIN (wc) && !CYRILLIC (wc) && !GREEK (wc) && !KANA(wc) && !HANGUL(wc))
/* p. 132-133 of Unicode spec table 5-6 will help understand this */