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