summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-11-21 16:49:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-11-21 16:49:04 +0000
commitf097ab0182cc501fb19ee3251b977183644398b2 (patch)
tree0dc59019fa29fb40f7628657232cefd51f8f1967
parentb475d46730d561f5c4a47d1fbb61f4960a30c3a0 (diff)
downloadpango-f097ab0182cc501fb19ee3251b977183644398b2.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)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-1-107
-rw-r--r--ChangeLog.pre-1-87
-rw-r--r--pango/break.c4
4 files changed, 24 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fe9f5644..13f54715 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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)
+
Sun Nov 21 11:40:03 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-layout.c (pango_layout_get_log_attrs): Return n+1
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index fe9f5644..13f54715 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,10 @@
+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)
+
Sun Nov 21 11:40:03 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-layout.c (pango_layout_get_log_attrs): Return n+1
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index fe9f5644..13f54715 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,10 @@
+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)
+
Sun Nov 21 11:40:03 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-layout.c (pango_layout_get_log_attrs): Return n+1
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 */