[HarfBuzz] new script codes for unicode 6.0

Jonathan Kew jonathan at jfkew.plus.com
Sun Oct 31 07:00:08 PDT 2010


Hi Behdad,

With the release of Unicode 6.0, it would be good to add codes in hb-unicode.h for some new scripts:

--------------------------------------------------------------------------
diff --git a/gfx/harfbuzz/src/hb-unicode.h b/gfx/harfbuzz/src/hb-unicode.h
--- a/gfx/harfbuzz/src/hb-unicode.h
+++ b/gfx/harfbuzz/src/hb-unicode.h
@@ -167,17 +167,22 @@ typedef enum
   HB_SCRIPT_JAVANESE,               /* Java */
   HB_SCRIPT_KAITHI,                 /* Kthi */
   HB_SCRIPT_LISU,                   /* Lisu */
   HB_SCRIPT_MEITEI_MAYEK,           /* Mtei */
   HB_SCRIPT_OLD_SOUTH_ARABIAN,      /* Sarb */
   HB_SCRIPT_OLD_TURKIC,             /* Orkh */
   HB_SCRIPT_SAMARITAN,              /* Samr */
   HB_SCRIPT_TAI_THAM,               /* Lana */
-  HB_SCRIPT_TAI_VIET                /* Tavt */
+  HB_SCRIPT_TAI_VIET,               /* Tavt */
+
+  /* Unicode-6.0 additions */
+  HB_SCRIPT_BATAK,                  /* Batk */
+  HB_SCRIPT_BRAHMI,                 /* Brah */
+  HB_SCRIPT_MANDAIC                 /* Mand */
 } hb_script_t;
 
 
 /*
  * hb_unicode_funcs_t
  */
 
 typedef struct _hb_unicode_funcs_t hb_unicode_funcs_t;
--------------------------------------------------------------------------

I've also noticed a spelling difference between "HB_SCRIPT_MEITEI_MAYEK" in this file and "Meetei_Mayek" in the UCD Scripts.txt file. Would you consider changing the harfbuzz constant to use the "MEETEI" spelling in order to match Scripts.txt? (No big deal though, it's just a small inconvenience.)

JK




More information about the HarfBuzz mailing list