This reverts commit 67ea8133d3
.
Merged accidentally on https://github.com/harfbuzz/harfbuzz/pull/2726
pull/2820/head
parent
67ea8133d3
commit
3c5b7886eb
17 changed files with 299 additions and 259 deletions
@ -1,89 +0,0 @@ |
||||
/*
|
||||
* Copyright © 2012 Google, Inc. |
||||
* |
||||
* This is part of HarfBuzz, a text shaping library. |
||||
* |
||||
* Permission is hereby granted, without written agreement and without |
||||
* license or royalty fees, to use, copy, modify, and distribute this |
||||
* software and its documentation for any purpose, provided that the |
||||
* above copyright notice and the following two paragraphs appear in |
||||
* all copies of this software. |
||||
* |
||||
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
||||
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
||||
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
||||
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
||||
* DAMAGE. |
||||
* |
||||
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
||||
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
||||
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
||||
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
||||
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
||||
* |
||||
* Google Author(s): Behdad Esfahbod |
||||
*/ |
||||
|
||||
#ifndef HB_OT_SHAPE_COMPLEX_INDIC_CATEGORY_HH |
||||
#define HB_OT_SHAPE_COMPLEX_INDIC_CATEGORY_HH |
||||
|
||||
|
||||
/* Categories used in the OpenType specs:
|
||||
* https://docs.microsoft.com/en-us/typography/script-development/devanagari
|
||||
* https://docs.microsoft.com/en-us/typography/script-development/khmer
|
||||
* https://docs.microsoft.com/en-us/typography/script-development/myanmar
|
||||
*/ |
||||
#define DEFINE_OT(category) OT_##category |
||||
enum indic_category_t { |
||||
DEFINE_OT (X = 0), |
||||
DEFINE_OT (C = 1), |
||||
DEFINE_OT (V = 2), |
||||
DEFINE_OT (N = 3), |
||||
DEFINE_OT (H = 4), |
||||
DEFINE_OT (ZWNJ = 5), |
||||
DEFINE_OT (ZWJ = 6), |
||||
DEFINE_OT (M = 7), |
||||
DEFINE_OT (SM = 8), |
||||
/* DEFINE_OT (VD = 9), UNUSED; we use OT_A instead. */ |
||||
DEFINE_OT (A = 10), |
||||
DEFINE_OT (PLACEHOLDER = 11), |
||||
DEFINE_OT (DOTTEDCIRCLE = 12), |
||||
DEFINE_OT (RS = 13), /* Register Shifter, used in Khmer OT spec. */ |
||||
DEFINE_OT (Coeng = 14), /* Khmer-style Virama. */ |
||||
DEFINE_OT (Repha = 15), /* Atomically-encoded logical or visual repha. */ |
||||
DEFINE_OT (Ra = 16), |
||||
DEFINE_OT (CM = 17), /* Consonant-Medial. */ |
||||
DEFINE_OT (Symbol = 18), /* Avagraha, etc that take marks (SM,A,VD). */ |
||||
DEFINE_OT (CS = 19), |
||||
|
||||
/* Khmer */ |
||||
DEFINE_OT (Robatic = 20), |
||||
DEFINE_OT (Xgroup = 21), |
||||
DEFINE_OT (Ygroup = 22), |
||||
|
||||
/* The following are used by Khmer & Myanmar shapers. */ |
||||
DEFINE_OT (VAbv = 26), |
||||
DEFINE_OT (VBlw = 27), |
||||
DEFINE_OT (VPre = 28), |
||||
DEFINE_OT (VPst = 29), |
||||
|
||||
/* Myanmar */ |
||||
DEFINE_OT (IV = 2), /* Independent vowel */ |
||||
DEFINE_OT (DB = 3), /* Dot below */ |
||||
DEFINE_OT (VST = 8), /* Visarga and Shan tones */ |
||||
DEFINE_OT (GB = 11), /* Generic base */ |
||||
DEFINE_OT (As = 18), /* Asat */ |
||||
DEFINE_OT (D0 = 20), /* Digit zero */ |
||||
DEFINE_OT (MH = 21), /* Various consonant medial types */ |
||||
DEFINE_OT (MR = 22), /* Various consonant medial types */ |
||||
DEFINE_OT (MW = 23), /* Various consonant medial types */ |
||||
DEFINE_OT (MY = 24), /* Various consonant medial types */ |
||||
DEFINE_OT (PT = 25), /* Pwo and other tones */ |
||||
DEFINE_OT (VS = 30), /* Variation selectors */ |
||||
DEFINE_OT (P = 31), /* Punctuation */ |
||||
DEFINE_OT (D = 32), /* Digits except zero */ |
||||
}; |
||||
#undef DEFINE_OT |
||||
|
||||
|
||||
#endif /* HB_OT_SHAPE_COMPLEX_INDIC_CATEGORY_HH */ |
@ -1,87 +0,0 @@ |
||||
/*
|
||||
* Copyright © 2015 Mozilla Foundation. |
||||
* Copyright © 2015 Google, Inc. |
||||
* |
||||
* This is part of HarfBuzz, a text shaping library. |
||||
* |
||||
* Permission is hereby granted, without written agreement and without |
||||
* license or royalty fees, to use, copy, modify, and distribute this |
||||
* software and its documentation for any purpose, provided that the |
||||
* above copyright notice and the following two paragraphs appear in |
||||
* all copies of this software. |
||||
* |
||||
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
||||
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
||||
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
||||
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
||||
* DAMAGE. |
||||
* |
||||
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
||||
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
||||
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
||||
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
||||
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
||||
* |
||||
* Mozilla Author(s): Jonathan Kew |
||||
* Google Author(s): Behdad Esfahbod |
||||
*/ |
||||
|
||||
#ifndef HB_OT_SHAPE_COMPLEX_USE_CATEGORY_HH |
||||
#define HB_OT_SHAPE_COMPLEX_USE_CATEGORY_HH |
||||
|
||||
|
||||
/* Categories used in the Universal Shaping Engine spec:
|
||||
* https://docs.microsoft.com/en-us/typography/script-development/use
|
||||
*/ |
||||
#define DEFINE_USE(category) USE_##category |
||||
enum use_category_t { |
||||
DEFINE_USE (O = 0), /* OTHER */ |
||||
|
||||
DEFINE_USE (B = 1), /* BASE */ |
||||
DEFINE_USE (N = 4), /* BASE_NUM */ |
||||
DEFINE_USE (GB = 5), /* BASE_OTHER */ |
||||
DEFINE_USE (SUB = 11), /* CONS_SUB */ |
||||
DEFINE_USE (H = 12), /* HALANT */ |
||||
|
||||
DEFINE_USE (HN = 13), /* HALANT_NUM */ |
||||
DEFINE_USE (ZWNJ = 14), /* Zero width non-joiner */ |
||||
DEFINE_USE (R = 18), /* REPHA */ |
||||
DEFINE_USE (S = 19), /* SYM */ |
||||
DEFINE_USE (CS = 43), /* CONS_WITH_STACKER */ |
||||
|
||||
/* https://github.com/harfbuzz/harfbuzz/issues/1102 */ |
||||
DEFINE_USE (HVM = 44), /* HALANT_OR_VOWEL_MODIFIER */ |
||||
|
||||
DEFINE_USE (Sk = 48), /* SAKOT */ |
||||
DEFINE_USE (G = 49), /* HIEROGLYPH */ |
||||
DEFINE_USE (J = 50), /* HIEROGLYPH_JOINER */ |
||||
DEFINE_USE (SB = 51), /* HIEROGLYPH_SEGMENT_BEGIN */ |
||||
DEFINE_USE (SE = 52), /* HIEROGLYPH_SEGMENT_END */ |
||||
|
||||
DEFINE_USE (FAbv = 24), /* CONS_FINAL_ABOVE */ |
||||
DEFINE_USE (FBlw = 25), /* CONS_FINAL_BELOW */ |
||||
DEFINE_USE (FPst = 26), /* CONS_FINAL_POST */ |
||||
DEFINE_USE (MAbv = 27), /* CONS_MED_ABOVE */ |
||||
DEFINE_USE (MBlw = 28), /* CONS_MED_BELOW */ |
||||
DEFINE_USE (MPst = 29), /* CONS_MED_POST */ |
||||
DEFINE_USE (MPre = 30), /* CONS_MED_PRE */ |
||||
DEFINE_USE (CMAbv = 31), /* CONS_MOD_ABOVE */ |
||||
DEFINE_USE (CMBlw = 32), /* CONS_MOD_BELOW */ |
||||
DEFINE_USE (VAbv = 33), /* VOWEL_ABOVE / VOWEL_ABOVE_BELOW / VOWEL_ABOVE_BELOW_POST / VOWEL_ABOVE_POST */ |
||||
DEFINE_USE (VBlw = 34), /* VOWEL_BELOW / VOWEL_BELOW_POST */ |
||||
DEFINE_USE (VPst = 35), /* VOWEL_POST UIPC = Right */ |
||||
DEFINE_USE (VPre = 22), /* VOWEL_PRE / VOWEL_PRE_ABOVE / VOWEL_PRE_ABOVE_POST / VOWEL_PRE_POST */ |
||||
DEFINE_USE (VMAbv = 37), /* VOWEL_MOD_ABOVE */ |
||||
DEFINE_USE (VMBlw = 38), /* VOWEL_MOD_BELOW */ |
||||
DEFINE_USE (VMPst = 39), /* VOWEL_MOD_POST */ |
||||
DEFINE_USE (VMPre = 23), /* VOWEL_MOD_PRE */ |
||||
DEFINE_USE (SMAbv = 41), /* SYM_MOD_ABOVE */ |
||||
DEFINE_USE (SMBlw = 42), /* SYM_MOD_BELOW */ |
||||
DEFINE_USE (FMAbv = 45), /* CONS_FINAL_MOD UIPC = Top */ |
||||
DEFINE_USE (FMBlw = 46), /* CONS_FINAL_MOD UIPC = Bottom */ |
||||
DEFINE_USE (FMPst = 47), /* CONS_FINAL_MOD UIPC = Not_Applicable */ |
||||
}; |
||||
#undef DEFINE_USE |
||||
|
||||
|
||||
#endif /* HB_OT_SHAPE_COMPLEX_USE_CATEGORY_HH */ |
Loading…
Reference in new issue