From f32c0012ad794cd2df669dfc7b0438fafbe38b2d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Mar 2012 12:53:34 -0500 Subject: [PATCH] Add Unicode 6.1.0 scripts --- src/hb-common.h | 9 +++++++++ src/hb-glib.cc | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/hb-common.h b/src/hb-common.h index 75ae8997..ca51c1f8 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -285,6 +285,15 @@ typedef enum HB_SCRIPT_BRAHMI = HB_TAG ('B','r','a','h'), HB_SCRIPT_MANDAIC = HB_TAG ('M','a','n','d'), + /* Unicode-6.1 additions */ + HB_SCRIPT_CHAKMA = HB_TAG ('C','a','k','m'), + HB_SCRIPT_MEROITIC_CURSIVE = HB_TAG ('M','e','r','c'), + HB_SCRIPT_MEROITIC_HIEROGLYPHS = HB_TAG ('M','e','r','o'), + HB_SCRIPT_MIAO = HB_TAG ('P','l','r','d'), + HB_SCRIPT_SHARADA = HB_TAG ('S','h','r','d'), + HB_SCRIPT_SORA_SOMPENG = HB_TAG ('S','o','r','a'), + HB_SCRIPT_TAKRI = HB_TAG ('T','a','k','r'), + /* No script set */ HB_SCRIPT_INVALID = HB_TAG_NONE } hb_script_t; diff --git a/src/hb-glib.cc b/src/hb-glib.cc index f9909889..26d40a38 100644 --- a/src/hb-glib.cc +++ b/src/hb-glib.cc @@ -144,7 +144,16 @@ glib_script_to_script[] = /* Unicode-6.0 additions */ HB_SCRIPT_BATAK, HB_SCRIPT_BRAHMI, - HB_SCRIPT_MANDAIC + HB_SCRIPT_MANDAIC, + + /* Unicode-6.1 additions */ + HB_SCRIPT_CHAKMA, + HB_SCRIPT_MEROITIC_CURSIVE, + HB_SCRIPT_MEROITIC_HIEROGLYPHS, + HB_SCRIPT_MIAO, + HB_SCRIPT_SHARADA, + HB_SCRIPT_SORA_SOMPENG, + HB_SCRIPT_TAKRI }; #endif -- GitLab