From 9a182f7360adce9ffc258cf259f93bdbf54e5a29 Mon Sep 17 00:00:00 2001 From: Theppitak Karoonboonyanan Date: Sun, 2 Dec 2012 15:47:49 +0700 Subject: Remove Thai/Lao Prepend/Extend properties In UAX#29 revision 19 (reissued for Unicode 6.1.0), Prepend and Extend GCB properties have been dropped for Thai/Lao. So, drop the hard coding accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=576156 --- pango/break.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pango/break.c b/pango/break.c index a3226cdc..ace7b1d7 100644 --- a/pango/break.c +++ b/pango/break.c @@ -671,15 +671,6 @@ pango_default_break (const gchar *text, case G_UNICODE_OTHER_LETTER: if (makes_hangul_syllable) GB_type = GB_InHangulSyllable; - else if ((wc & 0x0E00) == 0x0E00) - { - /* Thai and Lao stuff hardcoded in UAX#29 */ - if ((wc >= 0x0E40 && wc <= 0x0E44) || (wc >= 0x0EC0 && wc <= 0x0EC4)) - GB_type = GB_Prepend; /* Prepend */ - else if (wc == 0x0E30 || wc == 0x0E32 || wc == 0x0E33 || wc == 0x0E45 || - wc == 0x0EB0 || wc == 0x0EB2 || wc == 0x0EB3) - GB_type = GB_Extend; /* Exceptions in the Extend definition */ - } break; case G_UNICODE_MODIFIER_LETTER: -- cgit v1.2.1