From afab01cf7caca79cf6dfabe6827d1703be1a74f7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 17 Nov 2010 14:35:34 -0500 Subject: [PATCH] Add Unicode 6.0 scripts --- src/hb-icu.c | 6 ++++++ src/hb-ot-tag.c | 7 ++++++- src/hb-unicode.c | 7 ++++++- src/hb-unicode.h | 7 ++++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/hb-icu.c b/src/hb-icu.c index 97b2fa07..44709b19 100644 --- a/src/hb-icu.c +++ b/src/hb-icu.c @@ -228,6 +228,12 @@ hb_icu_get_script (hb_codepoint_t unicode) MATCH_SCRIPT2(ORKHON, OLD_TURKIC); /* Orkh */ MATCH_SCRIPT (SAMARITAN); /* Samr */ MATCH_SCRIPT (TAI_VIET); /* Tavt */ + + /* Unicode-6.0 additions */ + MATCH_SCRIPT (BATAK); /* Batk */ + MATCH_SCRIPT (BRAHMI); /* Brah */ + MATCH_SCRIPT2(MANDAEAN, MANDAIC); /* Mand */ + } return HB_SCRIPT_UNKNOWN; } diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c index d774c4fd..8c23ce94 100644 --- a/src/hb-ot-tag.c +++ b/src/hb-ot-tag.c @@ -139,7 +139,12 @@ static const hb_tag_t ot_scripts[][3] = { {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_OLD_TURKIC */ {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_SAMARITAN */ {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_TAI_THAM */ - {HB_TAG('D','F','L','T')} /* HB_SCRIPT_TAI_VIET */ + {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_TAI_VIET */ + + /* Unicode-6.0 additions */ + {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_BATAK */ + {HB_TAG('D','F','L','T')}, /* HB_SCRIPT_BRAHMI */ + {HB_TAG('D','F','L','T')} /* HB_SCRIPT_MANDAIC */ }; const hb_tag_t * diff --git a/src/hb-unicode.c b/src/hb-unicode.c index 280c61f9..2ab308b6 100644 --- a/src/hb-unicode.c +++ b/src/hb-unicode.c @@ -341,7 +341,12 @@ const hb_direction_t horiz_dir[] = RTL, /* Orkh */ RTL, /* Samr */ LTR, /* Lana */ - LTR /* Tavt */ + LTR, /* Tavt */ + + /* Unicode-6.0 additions */ + LTR, /* Batk */ + LTR, /* Brah */ + RTL /* Mand */ }; #undef LTR #undef RTL diff --git a/src/hb-unicode.h b/src/hb-unicode.h index 9fedd274..5fd6dffc 100644 --- a/src/hb-unicode.h +++ b/src/hb-unicode.h @@ -173,7 +173,12 @@ typedef enum 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; -- GitLab