src/hb-unicode-private.hh |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

New commits:
commit 478fd0529b868b22905a9dedf331ac7cc9721723
Author: Behdad Esfahbod <[email protected]>
Date:   Tue Jul 24 17:09:01 2012 -0400

    Minor

diff --git a/src/hb-unicode-private.hh b/src/hb-unicode-private.hh
index fd33387..0ba2fcc 100644
--- a/src/hb-unicode-private.hh
+++ b/src/hb-unicode-private.hh
@@ -111,9 +111,10 @@ _hb_unicode_modified_combining_class (hb_unicode_funcs_t 
*ufuncs,
 static inline hb_bool_t
 _hb_unicode_is_variation_selector (hb_codepoint_t unicode)
 {
-  return unlikely ((unicode >=  0x180B && unicode <=  0x180D) || /* MONGOLIAN 
FREE VARIATION SELECTOR ONE..THREE */
-                  (unicode >=  0xFE00 && unicode <=  0xFE0F) || /* VARIATION 
SELECTOR-1..16 */
-                  (unicode >= 0xE0100 && unicode <= 0xE01EF));  /* VARIATION 
SELECTOR-17..256 */
+  return unlikely (hb_in_ranges<hb_codepoint_t> (unicode,
+                                                0x180B, 0x180D, /* MONGOLIAN 
FREE VARIATION SELECTOR ONE..THREE */
+                                                0xFE00, 0xFE0F, /* VARIATION 
SELECTOR-1..16 */
+                                                0xE0100, 0xE01EF));  /* 
VARIATION SELECTOR-17..256 */
 }
 
 /* Zero-Width invisible characters:
@@ -147,16 +148,16 @@ _hb_unicode_is_variation_selector (hb_codepoint_t unicode)
 static inline hb_bool_t
 _hb_unicode_is_zero_width (hb_codepoint_t ch)
 {
-  return ((ch & ~0x007F) == 0x2000 && (
-         (ch >= 0x200B && ch <= 0x200F) ||
-         (ch >= 0x202A && ch <= 0x202E) ||
-         (ch >= 0x2060 && ch <= 0x2063) ||
-         (ch == 0x2028)
-        )) || unlikely (ch == 0x0009
-                     || ch == 0x00AD
-                     || ch == 0x034F
-                     || ch == 0x180E
-                     || ch == 0xFEFF);
+  return ((ch & ~0x007F) == 0x2000 && (hb_in_ranges<hb_codepoint_t> (ch,
+                                                                    0x200B, 
0x200F,
+                                                                    0x202A, 
0x202E,
+                                                                    0x2060, 
0x2063) ||
+                                      (ch == 0x2028))) ||
+         unlikely (ch == 0x0009 ||
+                   ch == 0x00AD ||
+                   ch == 0x034F ||
+                   ch == 0x180E ||
+                   ch == 0xFEFF);
 }
 
 #endif /* HB_UNICODE_PRIVATE_HH */
commit 8979a7f6f2b44ade4c0198a31ae08561b35ce009
Author: Behdad Esfahbod <[email protected]>
Date:   Tue Jul 24 17:03:55 2012 -0400

    [Mongolian] Remove Mongolian Vowel Separator at the end of shaping
    
    Results match Uniscribe now.

diff --git a/src/hb-unicode-private.hh b/src/hb-unicode-private.hh
index c781035..fd33387 100644
--- a/src/hb-unicode-private.hh
+++ b/src/hb-unicode-private.hh
@@ -121,6 +121,8 @@ _hb_unicode_is_variation_selector (hb_codepoint_t unicode)
  *  00AD  SOFT HYPHEN
  *  034F  COMBINING GRAPHEME JOINER
  *
+ *  180E  MONGOLIAN VOWEL SEPARATOR
+ *
  *  200B  ZERO WIDTH SPACE
  *  200C  ZERO WIDTH NON-JOINER
  *  200D  ZERO WIDTH JOINER
@@ -153,6 +155,7 @@ _hb_unicode_is_zero_width (hb_codepoint_t ch)
         )) || unlikely (ch == 0x0009
                      || ch == 0x00AD
                      || ch == 0x034F
+                     || ch == 0x180E
                      || ch == 0xFEFF);
 }
 
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to