1 /* == Start of generated table == */ 2 /* 3 * The following table is generated by running: 4 * 5 * ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt 6 * 7 * on files with these headers: 8 * 9 * # ArabicShaping-8.0.0.txt 10 * # Date: 2015-02-17, 23:33:00 GMT [RP] 11 * # Blocks-8.0.0.txt 12 * # Date: 2014-11-10, 23:04:00 GMT [KW] 13 * UnicodeData.txt does not have a header. 14 */ 15 16 #ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH 17 #define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH 18 19 20 #define X JOINING_TYPE_X 21 #define R JOINING_TYPE_R 22 #define U JOINING_TYPE_U 23 #define A JOINING_GROUP_ALAPH 24 #define DR JOINING_GROUP_DALATH_RISH 25 #define L JOINING_TYPE_L 26 #define C JOINING_TYPE_C 27 #define D JOINING_TYPE_D 28 29 static const uint8_t joining_table[] = 30 { 31 32 #define joining_offset_0x0600u 0 33 34 /* Arabic */ 35 36 /* 0600 */ U,U,U,U,U,U,X,X,U,X,X,U,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 37 /* 0620 */ D,U,R,R,R,R,D,R,D,R,D,D,D,D,D,R,R,R,R,D,D,D,D,D,D,D,D,D,D,D,D,D, 38 /* 0640 */ C,D,D,D,D,D,D,D,R,D,D,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 39 /* 0660 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,D,D,X,R,R,R,U,R,R,R,D,D,D,D,D,D,D,D, 40 /* 0680 */ D,D,D,D,D,D,D,D,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,D,D,D,D,D,D, 41 /* 06A0 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 42 /* 06C0 */ R,D,D,R,R,R,R,R,R,R,R,R,D,R,D,R,D,D,R,R,X,R,X,X,X,X,X,X,X,U,X,X, 43 /* 06E0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,R,R,X,X,X,X,X,X,X,X,X,X,D,D,D,X,X,D, 44 45 /* Syriac */ 46 47 /* 0700 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,A,X,D,D,D,DR,DR,R,R,R,D,D,D,D,R,D, 48 /* 0720 */ D,D,D,D,D,D,D,D,R,D,DR,D,R,D,D,DR,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 49 /* 0740 */ X,X,X,X,X,X,X,X,X,X,X,X,X,R,D,D, 50 51 /* Arabic Supplement */ 52 53 /* 0740 */ D,D,D,D,D,D,D,D,D,R,R,R,D,D,D,D, 54 /* 0760 */ D,D,D,D,D,D,D,D,D,D,D,R,R,D,D,D,D,R,D,R,R,D,D,D,R,R,D,D,D,D,D,D, 55 56 /* FILLER */ 57 58 /* 0780 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 59 /* 07A0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 60 61 /* NKo */ 62 63 /* 07C0 */ X,X,X,X,X,X,X,X,X,X,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 64 /* 07E0 */ D,D,D,D,D,D,D,D,D,D,D,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,C,X,X,X,X,X, 65 66 /* FILLER */ 67 68 /* 0800 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 69 /* 0820 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 70 71 /* Mandaic */ 72 73 /* 0840 */ R,D,D,D,D,D,R,R,D,R,D,D,D,D,D,D,D,D,D,D,R,D,U,U,U,X,X,X,X,X,X,X, 74 /* 0860 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 75 /* 0880 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 76 77 /* Arabic Extended-A */ 78 79 /* 08A0 */ D,D,D,D,D,D,D,D,D,D,R,R,R,U,R,D,D,R,R,D,D, 80 81 #define joining_offset_0x1806u 693 82 83 /* Mongolian */ 84 85 /* 1800 */ U,D,X,X,C,X,X,X,U,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 86 /* 1820 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 87 /* 1840 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 88 /* 1860 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,X,X,X,X,X,X,X,X, 89 /* 1880 */ U,U,U,U,U,U,U,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 90 /* 18A0 */ D,D,D,D,D,D,D,D,D,X,D, 91 92 #define joining_offset_0x200cu 858 93 94 /* General Punctuation */ 95 96 /* 2000 */ U,C, 97 98 #define joining_offset_0x2066u 860 99 100 /* General Punctuation */ 101 102 /* 2060 */ U,U,U,U, 103 104 #define joining_offset_0xa840u 864 105 106 /* Phags-pa */ 107 108 /* A840 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D, 109 /* A860 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,L,U, 110 111 #define joining_offset_0x10ac0u 916 112 113 /* Manichaean */ 114 115 /* 10AC0 */ D,D,D,D,D,R,U,R,U,R,R,U,U,L,R,R,R,R,R,D,D,D,D,L,D,D,D,D,D,R,D,D, 116 /* 10AE0 */ D,R,U,U,R,X,X,X,X,X,X,D,D,D,D,R, 117 118 #define joining_offset_0x10b80u 964 119 120 /* Psalter Pahlavi */ 121 122 /* 10B80 */ D,R,D,R,R,R,D,D,D,R,D,D,R,D,R,R,D,R,X,X,X,X,X,X,X,X,X,X,X,X,X,X, 123 /* 10BA0 */ X,X,X,X,X,X,X,X,X,R,R,R,R,D,D,U, 124 125 }; /* Table items: 1012; occupancy: 57% */ 126 127 128 static unsigned int 129 joining_type (hb_codepoint_t u) 130 { 131 switch (u >> 12) 132 { 133 case 0x0u: 134 if (hb_in_range (u, 0x0600u, 0x08B4u)) return joining_table[u - 0x0600u + joining_offset_0x0600u]; 135 break; 136 137 case 0x1u: 138 if (hb_in_range (u, 0x1806u, 0x18AAu)) return joining_table[u - 0x1806u + joining_offset_0x1806u]; 139 break; 140 141 case 0x2u: 142 if (hb_in_range (u, 0x200Cu, 0x200Du)) return joining_table[u - 0x200Cu + joining_offset_0x200cu]; 143 if (hb_in_range (u, 0x2066u, 0x2069u)) return joining_table[u - 0x2066u + joining_offset_0x2066u]; 144 break; 145 146 case 0xAu: 147 if (hb_in_range (u, 0xA840u, 0xA873u)) return joining_table[u - 0xA840u + joining_offset_0xa840u]; 148 break; 149 150 case 0x10u: 151 if (hb_in_range (u, 0x10AC0u, 0x10AEFu)) return joining_table[u - 0x10AC0u + joining_offset_0x10ac0u]; 152 if (hb_in_range (u, 0x10B80u, 0x10BAFu)) return joining_table[u - 0x10B80u + joining_offset_0x10b80u]; 153 break; 154 155 default: 156 break; 157 } 158 return X; 159 } 160 161 #undef X 162 #undef R 163 #undef U 164 #undef A 165 #undef DR 166 #undef L 167 #undef C 168 #undef D 169 170 171 static const uint16_t shaping_table[][4] = 172 { 173 {0x0000u, 0x0000u, 0x0000u, 0xFE80u}, /* U+0621 ARABIC LETTER HAMZA ISOLATED FORM */ 174 {0x0000u, 0x0000u, 0xFE82u, 0xFE81u}, /* U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE */ 175 {0x0000u, 0x0000u, 0xFE84u, 0xFE83u}, /* U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE */ 176 {0x0000u, 0x0000u, 0xFE86u, 0xFE85u}, /* U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE */ 177 {0x0000u, 0x0000u, 0xFE88u, 0xFE87u}, /* U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW */ 178 {0xFE8Bu, 0xFE8Cu, 0xFE8Au, 0xFE89u}, /* U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE */ 179 {0x0000u, 0x0000u, 0xFE8Eu, 0xFE8Du}, /* U+0627 ARABIC LETTER ALEF */ 180 {0xFE91u, 0xFE92u, 0xFE90u, 0xFE8Fu}, /* U+0628 ARABIC LETTER BEH */ 181 {0x0000u, 0x0000u, 0xFE94u, 0xFE93u}, /* U+0629 ARABIC LETTER TEH MARBUTA */ 182 {0xFE97u, 0xFE98u, 0xFE96u, 0xFE95u}, /* U+062A ARABIC LETTER TEH */ 183 {0xFE9Bu, 0xFE9Cu, 0xFE9Au, 0xFE99u}, /* U+062B ARABIC LETTER THEH */ 184 {0xFE9Fu, 0xFEA0u, 0xFE9Eu, 0xFE9Du}, /* U+062C ARABIC LETTER JEEM */ 185 {0xFEA3u, 0xFEA4u, 0xFEA2u, 0xFEA1u}, /* U+062D ARABIC LETTER HAH */ 186 {0xFEA7u, 0xFEA8u, 0xFEA6u, 0xFEA5u}, /* U+062E ARABIC LETTER KHAH */ 187 {0x0000u, 0x0000u, 0xFEAAu, 0xFEA9u}, /* U+062F ARABIC LETTER DAL */ 188 {0x0000u, 0x0000u, 0xFEACu, 0xFEABu}, /* U+0630 ARABIC LETTER THAL */ 189 {0x0000u, 0x0000u, 0xFEAEu, 0xFEADu}, /* U+0631 ARABIC LETTER REH */ 190 {0x0000u, 0x0000u, 0xFEB0u, 0xFEAFu}, /* U+0632 ARABIC LETTER ZAIN */ 191 {0xFEB3u, 0xFEB4u, 0xFEB2u, 0xFEB1u}, /* U+0633 ARABIC LETTER SEEN */ 192 {0xFEB7u, 0xFEB8u, 0xFEB6u, 0xFEB5u}, /* U+0634 ARABIC LETTER SHEEN */ 193 {0xFEBBu, 0xFEBCu, 0xFEBAu, 0xFEB9u}, /* U+0635 ARABIC LETTER SAD */ 194 {0xFEBFu, 0xFEC0u, 0xFEBEu, 0xFEBDu}, /* U+0636 ARABIC LETTER DAD */ 195 {0xFEC3u, 0xFEC4u, 0xFEC2u, 0xFEC1u}, /* U+0637 ARABIC LETTER TAH */ 196 {0xFEC7u, 0xFEC8u, 0xFEC6u, 0xFEC5u}, /* U+0638 ARABIC LETTER ZAH */ 197 {0xFECBu, 0xFECCu, 0xFECAu, 0xFEC9u}, /* U+0639 ARABIC LETTER AIN */ 198 {0xFECFu, 0xFED0u, 0xFECEu, 0xFECDu}, /* U+063A ARABIC LETTER GHAIN */ 199 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063B */ 200 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063C */ 201 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063D */ 202 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063E */ 203 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063F */ 204 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0640 */ 205 {0xFED3u, 0xFED4u, 0xFED2u, 0xFED1u}, /* U+0641 ARABIC LETTER FEH */ 206 {0xFED7u, 0xFED8u, 0xFED6u, 0xFED5u}, /* U+0642 ARABIC LETTER QAF */ 207 {0xFEDBu, 0xFEDCu, 0xFEDAu, 0xFED9u}, /* U+0643 ARABIC LETTER KAF */ 208 {0xFEDFu, 0xFEE0u, 0xFEDEu, 0xFEDDu}, /* U+0644 ARABIC LETTER LAM */ 209 {0xFEE3u, 0xFEE4u, 0xFEE2u, 0xFEE1u}, /* U+0645 ARABIC LETTER MEEM */ 210 {0xFEE7u, 0xFEE8u, 0xFEE6u, 0xFEE5u}, /* U+0646 ARABIC LETTER NOON */ 211 {0xFEEBu, 0xFEECu, 0xFEEAu, 0xFEE9u}, /* U+0647 ARABIC LETTER HEH */ 212 {0x0000u, 0x0000u, 0xFEEEu, 0xFEEDu}, /* U+0648 ARABIC LETTER WAW */ 213 {0xFBE8u, 0xFBE9u, 0xFEF0u, 0xFEEFu}, /* U+0649 ARABIC LETTER */ 214 {0xFEF3u, 0xFEF4u, 0xFEF2u, 0xFEF1u}, /* U+064A ARABIC LETTER YEH */ 215 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064B */ 216 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064C */ 217 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064D */ 218 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064E */ 219 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064F */ 220 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0650 */ 221 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0651 */ 222 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0652 */ 223 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0653 */ 224 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0654 */ 225 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0655 */ 226 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0656 */ 227 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0657 */ 228 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0658 */ 229 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0659 */ 230 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065A */ 231 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065B */ 232 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065C */ 233 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065D */ 234 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065E */ 235 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065F */ 236 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0660 */ 237 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0661 */ 238 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0662 */ 239 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0663 */ 240 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0664 */ 241 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0665 */ 242 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0666 */ 243 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0667 */ 244 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0668 */ 245 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0669 */ 246 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066A */ 247 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066B */ 248 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066C */ 249 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066D */ 250 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066E */ 251 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066F */ 252 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0670 */ 253 {0x0000u, 0x0000u, 0xFB51u, 0xFB50u}, /* U+0671 ARABIC LETTER ALEF WASLA */ 254 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0672 */ 255 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0673 */ 256 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0674 */ 257 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0675 */ 258 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0676 */ 259 {0x0000u, 0x0000u, 0x0000u, 0xFBDDu}, /* U+0677 ARABIC LETTER U WITH HAMZA ABOVE ISOLATED FORM */ 260 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0678 */ 261 {0xFB68u, 0xFB69u, 0xFB67u, 0xFB66u}, /* U+0679 ARABIC LETTER TTEH */ 262 {0xFB60u, 0xFB61u, 0xFB5Fu, 0xFB5Eu}, /* U+067A ARABIC LETTER TTEHEH */ 263 {0xFB54u, 0xFB55u, 0xFB53u, 0xFB52u}, /* U+067B ARABIC LETTER BEEH */ 264 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067C */ 265 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067D */ 266 {0xFB58u, 0xFB59u, 0xFB57u, 0xFB56u}, /* U+067E ARABIC LETTER PEH */ 267 {0xFB64u, 0xFB65u, 0xFB63u, 0xFB62u}, /* U+067F ARABIC LETTER TEHEH */ 268 {0xFB5Cu, 0xFB5Du, 0xFB5Bu, 0xFB5Au}, /* U+0680 ARABIC LETTER BEHEH */ 269 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0681 */ 270 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0682 */ 271 {0xFB78u, 0xFB79u, 0xFB77u, 0xFB76u}, /* U+0683 ARABIC LETTER NYEH */ 272 {0xFB74u, 0xFB75u, 0xFB73u, 0xFB72u}, /* U+0684 ARABIC LETTER DYEH */ 273 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0685 */ 274 {0xFB7Cu, 0xFB7Du, 0xFB7Bu, 0xFB7Au}, /* U+0686 ARABIC LETTER TCHEH */ 275 {0xFB80u, 0xFB81u, 0xFB7Fu, 0xFB7Eu}, /* U+0687 ARABIC LETTER TCHEHEH */ 276 {0x0000u, 0x0000u, 0xFB89u, 0xFB88u}, /* U+0688 ARABIC LETTER DDAL */ 277 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0689 */ 278 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068A */ 279 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068B */ 280 {0x0000u, 0x0000u, 0xFB85u, 0xFB84u}, /* U+068C ARABIC LETTER DAHAL */ 281 {0x0000u, 0x0000u, 0xFB83u, 0xFB82u}, /* U+068D ARABIC LETTER DDAHAL */ 282 {0x0000u, 0x0000u, 0xFB87u, 0xFB86u}, /* U+068E ARABIC LETTER DUL */ 283 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068F */ 284 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0690 */ 285 {0x0000u, 0x0000u, 0xFB8Du, 0xFB8Cu}, /* U+0691 ARABIC LETTER RREH */ 286 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0692 */ 287 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0693 */ 288 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0694 */ 289 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0695 */ 290 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0696 */ 291 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0697 */ 292 {0x0000u, 0x0000u, 0xFB8Bu, 0xFB8Au}, /* U+0698 ARABIC LETTER JEH */ 293 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0699 */ 294 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069A */ 295 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069B */ 296 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069C */ 297 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069D */ 298 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069E */ 299 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069F */ 300 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A0 */ 301 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A1 */ 302 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A2 */ 303 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A3 */ 304 {0xFB6Cu, 0xFB6Du, 0xFB6Bu, 0xFB6Au}, /* U+06A4 ARABIC LETTER VEH */ 305 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A5 */ 306 {0xFB70u, 0xFB71u, 0xFB6Fu, 0xFB6Eu}, /* U+06A6 ARABIC LETTER PEHEH */ 307 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A7 */ 308 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A8 */ 309 {0xFB90u, 0xFB91u, 0xFB8Fu, 0xFB8Eu}, /* U+06A9 ARABIC LETTER KEHEH */ 310 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AA */ 311 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AB */ 312 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AC */ 313 {0xFBD5u, 0xFBD6u, 0xFBD4u, 0xFBD3u}, /* U+06AD ARABIC LETTER NG */ 314 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AE */ 315 {0xFB94u, 0xFB95u, 0xFB93u, 0xFB92u}, /* U+06AF ARABIC LETTER GAF */ 316 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B0 */ 317 {0xFB9Cu, 0xFB9Du, 0xFB9Bu, 0xFB9Au}, /* U+06B1 ARABIC LETTER NGOEH */ 318 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B2 */ 319 {0xFB98u, 0xFB99u, 0xFB97u, 0xFB96u}, /* U+06B3 ARABIC LETTER GUEH */ 320 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B4 */ 321 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B5 */ 322 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B6 */ 323 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B7 */ 324 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B8 */ 325 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B9 */ 326 {0x0000u, 0x0000u, 0xFB9Fu, 0xFB9Eu}, /* U+06BA ARABIC LETTER NOON GHUNNA */ 327 {0xFBA2u, 0xFBA3u, 0xFBA1u, 0xFBA0u}, /* U+06BB ARABIC LETTER RNOON */ 328 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BC */ 329 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BD */ 330 {0xFBACu, 0xFBADu, 0xFBABu, 0xFBAAu}, /* U+06BE ARABIC LETTER HEH DOACHASHMEE */ 331 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BF */ 332 {0x0000u, 0x0000u, 0xFBA5u, 0xFBA4u}, /* U+06C0 ARABIC LETTER HEH WITH YEH ABOVE */ 333 {0xFBA8u, 0xFBA9u, 0xFBA7u, 0xFBA6u}, /* U+06C1 ARABIC LETTER HEH GOAL */ 334 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C2 */ 335 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C3 */ 336 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C4 */ 337 {0x0000u, 0x0000u, 0xFBE1u, 0xFBE0u}, /* U+06C5 ARABIC LETTER KIRGHIZ OE */ 338 {0x0000u, 0x0000u, 0xFBDAu, 0xFBD9u}, /* U+06C6 ARABIC LETTER OE */ 339 {0x0000u, 0x0000u, 0xFBD8u, 0xFBD7u}, /* U+06C7 ARABIC LETTER U */ 340 {0x0000u, 0x0000u, 0xFBDCu, 0xFBDBu}, /* U+06C8 ARABIC LETTER YU */ 341 {0x0000u, 0x0000u, 0xFBE3u, 0xFBE2u}, /* U+06C9 ARABIC LETTER KIRGHIZ YU */ 342 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CA */ 343 {0x0000u, 0x0000u, 0xFBDFu, 0xFBDEu}, /* U+06CB ARABIC LETTER VE */ 344 {0xFBFEu, 0xFBFFu, 0xFBFDu, 0xFBFCu}, /* U+06CC ARABIC LETTER FARSI YEH */ 345 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CD */ 346 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CE */ 347 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CF */ 348 {0xFBE6u, 0xFBE7u, 0xFBE5u, 0xFBE4u}, /* U+06D0 ARABIC LETTER E */ 349 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06D1 */ 350 {0x0000u, 0x0000u, 0xFBAFu, 0xFBAEu}, /* U+06D2 ARABIC LETTER YEH BARREE */ 351 {0x0000u, 0x0000u, 0xFBB1u, 0xFBB0u}, /* U+06D3 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE */ 352 }; 353 354 #define SHAPING_TABLE_FIRST 0x0621u 355 #define SHAPING_TABLE_LAST 0x06D3u 356 357 358 static const struct ligature_set_t { 359 uint16_t first; 360 struct ligature_pairs_t { 361 uint16_t second; 362 uint16_t ligature; 363 } ligatures[4]; 364 } ligature_table[] = 365 { 366 { 0xFEDFu, { 367 { 0xFE88u, 0xFEF9u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW ISOLATED FORM */ 368 { 0xFE82u, 0xFEF5u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM */ 369 { 0xFE8Eu, 0xFEFBu }, /* ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM */ 370 { 0xFE84u, 0xFEF7u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM */ 371 }}, 372 { 0xFEE0u, { 373 { 0xFE88u, 0xFEFAu }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW FINAL FORM */ 374 { 0xFE82u, 0xFEF6u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM */ 375 { 0xFE8Eu, 0xFEFCu }, /* ARABIC LIGATURE LAM WITH ALEF FINAL FORM */ 376 { 0xFE84u, 0xFEF8u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM */ 377 }}, 378 }; 379 380 381 #endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */ 382 383 /* == End of generated table == */ 384