OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2015 Mozilla Foundation. | 2 * Copyright © 2015 Mozilla Foundation. |
3 * Copyright © 2015 Google, Inc. | 3 * Copyright © 2015 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 /* Cateories used in the Universal Shaping Engine spec: | 40 /* Cateories used in the Universal Shaping Engine spec: |
41 * https://www.microsoft.com/typography/OpenTypeDev/USE/intro.htm | 41 * https://www.microsoft.com/typography/OpenTypeDev/USE/intro.htm |
42 */ | 42 */ |
43 /* Note: This enum is duplicated in the -machine.rl source file. | 43 /* Note: This enum is duplicated in the -machine.rl source file. |
44 * Not sure how to avoid duplication. */ | 44 * Not sure how to avoid duplication. */ |
45 enum use_category_t { | 45 enum use_category_t { |
46 USE_O = 0, /* OTHER */ | 46 USE_O = 0, /* OTHER */ |
47 | 47 |
48 USE_B = 1, /* BASE */ | 48 USE_B = 1, /* BASE */ |
49 USE_IV = 2, /* BASE_VOWEL */ | |
50 USE_IND = 3, /* BASE_IND */ | 49 USE_IND = 3, /* BASE_IND */ |
51 USE_N = 4, /* BASE_NUM */ | 50 USE_N = 4, /* BASE_NUM */ |
52 USE_GB = 5, /* BASE_OTHER */ | 51 USE_GB = 5, /* BASE_OTHER */ |
53 USE_CGJ = 6, /* CGJ */ | 52 USE_CGJ = 6, /* CGJ */ |
54 // USE_F = 7, /* CONS_FINAL */ | 53 // USE_F = 7, /* CONS_FINAL */ |
55 USE_FM = 8, /* CONS_FINAL_MOD */ | 54 USE_FM = 8, /* CONS_FINAL_MOD */ |
56 // USE_M = 9, /* CONS_MED */ | 55 // USE_M = 9, /* CONS_MED */ |
57 // USE_CM = 10, /* CONS_MOD */ | 56 // USE_CM = 10, /* CONS_MOD */ |
58 USE_SUB = 11, /* CONS_SUB */ | 57 USE_SUB = 11, /* CONS_SUB */ |
59 USE_H = 12, /* HALANT */ | 58 USE_H = 12, /* HALANT */ |
(...skipping 28 matching lines...) Expand all Loading... |
88 USE_VMPst = 39, /* VOWEL_MOD_POST */ | 87 USE_VMPst = 39, /* VOWEL_MOD_POST */ |
89 USE_VMPre = 23, /* VOWEL_MOD_PRE */ | 88 USE_VMPre = 23, /* VOWEL_MOD_PRE */ |
90 USE_SMAbv = 41, /* SYM_MOD_ABOVE */ | 89 USE_SMAbv = 41, /* SYM_MOD_ABOVE */ |
91 USE_SMBlw = 42 /* SYM_MOD_BELOW */ | 90 USE_SMBlw = 42 /* SYM_MOD_BELOW */ |
92 }; | 91 }; |
93 | 92 |
94 HB_INTERNAL USE_TABLE_ELEMENT_TYPE | 93 HB_INTERNAL USE_TABLE_ELEMENT_TYPE |
95 hb_use_get_categories (hb_codepoint_t u); | 94 hb_use_get_categories (hb_codepoint_t u); |
96 | 95 |
97 #endif /* HB_OT_SHAPE_COMPLEX_USE_PRIVATE_HH */ | 96 #endif /* HB_OT_SHAPE_COMPLEX_USE_PRIVATE_HH */ |
OLD | NEW |