| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2012 Google, Inc. | 2 * Copyright © 2012 Google, Inc. |
| 3 * | 3 * |
| 4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
| 5 * | 5 * |
| 6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
| 7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
| 8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
| 9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
| 10 * all copies of this software. | 10 * all copies of this software. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 OT_SM = 8, | 53 OT_SM = 8, |
| 54 OT_VD = 9, | 54 OT_VD = 9, |
| 55 OT_A = 10, | 55 OT_A = 10, |
| 56 OT_PLACEHOLDER = 11, | 56 OT_PLACEHOLDER = 11, |
| 57 OT_DOTTEDCIRCLE = 12, | 57 OT_DOTTEDCIRCLE = 12, |
| 58 OT_RS = 13, /* Register Shifter, used in Khmer OT spec. */ | 58 OT_RS = 13, /* Register Shifter, used in Khmer OT spec. */ |
| 59 OT_Coeng = 14, /* Khmer-style Virama. */ | 59 OT_Coeng = 14, /* Khmer-style Virama. */ |
| 60 OT_Repha = 15, /* Atomically-encoded logical or visual repha. */ | 60 OT_Repha = 15, /* Atomically-encoded logical or visual repha. */ |
| 61 OT_Ra = 16, | 61 OT_Ra = 16, |
| 62 OT_CM = 17, /* Consonant-Medial. */ | 62 OT_CM = 17, /* Consonant-Medial. */ |
| 63 OT_Symbol = 18, /* Avagraha, etc that take marks (SM,A,VD). */ | 63 OT_Symbol = 18 /* Avagraha, etc that take marks (SM,A,VD). */ |
| 64 OT_CM2 = 31 /* Consonant-Medial, second slot. */ | |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 #define MEDIAL_FLAGS (FLAG (OT_CM) | FLAG (OT_CM2)) | 66 #define MEDIAL_FLAGS (FLAG (OT_CM)) |
| 68 | 67 |
| 69 /* Note: | 68 /* Note: |
| 70 * | 69 * |
| 71 * We treat Vowels and placeholders as if they were consonants. This is safe be
cause Vowels | 70 * We treat Vowels and placeholders as if they were consonants. This is safe be
cause Vowels |
| 72 * cannot happen in a consonant syllable. The plus side however is, we can call
the | 71 * cannot happen in a consonant syllable. The plus side however is, we can call
the |
| 73 * consonant syllable logic from the vowel syllable function and get it all righ
t! */ | 72 * consonant syllable logic from the vowel syllable function and get it all righ
t! */ |
| 74 #define CONSONANT_FLAGS (FLAG (OT_C) | FLAG (OT_Ra) | MEDIAL_FLAGS | FLAG (OT_V)
| FLAG (OT_PLACEHOLDER) | FLAG (OT_DOTTEDCIRCLE)) | 73 #define CONSONANT_FLAGS (FLAG (OT_C) | FLAG (OT_Ra) | MEDIAL_FLAGS | FLAG (OT_V)
| FLAG (OT_PLACEHOLDER) | FLAG (OT_DOTTEDCIRCLE)) |
| 75 #define JOINER_FLAGS (FLAG (OT_ZWJ) | FLAG (OT_ZWNJ)) | 74 #define JOINER_FLAGS (FLAG (OT_ZWJ) | FLAG (OT_ZWNJ)) |
| 76 #define HALANT_OR_COENG_FLAGS (FLAG (OT_H) | FLAG (OT_Coeng)) | 75 #define HALANT_OR_COENG_FLAGS (FLAG (OT_H) | FLAG (OT_Coeng)) |
| 77 | 76 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 ? M : INDIC_MATRA_CATEGORY_NOT_APPLICABLE \ | 180 ? M : INDIC_MATRA_CATEGORY_NOT_APPLICABLE \ |
| 182 ) << 8 \ | 181 ) << 8 \ |
| 183 ) \ | 182 ) \ |
| 184 ) \ | 183 ) \ |
| 185 ) | 184 ) |
| 186 | 185 |
| 187 HB_INTERNAL INDIC_TABLE_ELEMENT_TYPE | 186 HB_INTERNAL INDIC_TABLE_ELEMENT_TYPE |
| 188 hb_indic_get_categories (hb_codepoint_t u); | 187 hb_indic_get_categories (hb_codepoint_t u); |
| 189 | 188 |
| 190 #endif /* HB_OT_SHAPE_COMPLEX_INDIC_PRIVATE_HH */ | 189 #endif /* HB_OT_SHAPE_COMPLEX_INDIC_PRIVATE_HH */ |
| OLD | NEW |