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-15.0.0.txt
10 * # Date: 2022-02-14, 18:50:00 GMT [KW, RP]
11 * # Blocks-15.0.0.txt
12 * # Date: 2022-01-28, 20:58:00 GMT [KW]
13 * UnicodeData.txt does not have a header.
14 */
15
16#ifndef HB_OT_SHAPER_ARABIC_TABLE_HH
17#define HB_OT_SHAPER_ARABIC_TABLE_HH
18
19
20#define A JOINING_GROUP_ALAPH
21#define DR JOINING_GROUP_DALATH_RISH
22#define C JOINING_TYPE_C
23#define D JOINING_TYPE_D
24#define L JOINING_TYPE_L
25#define R JOINING_TYPE_R
26#define T JOINING_TYPE_T
27#define U JOINING_TYPE_U
28#define X JOINING_TYPE_X
29
30static 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,R,R,R,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,
79
80 /* Arabic Extended-B */
81
82 /* 0860 */ R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,
83 /* 0880 */ R,R,R,C,C,C,D,U,U,D,D,D,D,D,R,X,U,U,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
84
85 /* Arabic Extended-A */
86
87 /* 08A0 */ D,D,D,D,D,D,D,D,D,D,R,R,R,U,R,D,D,R,R,D,D,D,D,D,D,R,D,D,D,D,D,D,
88 /* 08C0 */ D,D,D,D,D,D,D,D,D,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
89 /* 08E0 */ X,X,U,
90
91#define joining_offset_0x1806u 739
92
93 /* Mongolian */
94
95 /* 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,
96 /* 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,
97 /* 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,
98 /* 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,
99 /* 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,
100 /* 18A0 */ D,D,D,D,D,D,D,D,D,X,D,
101
102#define joining_offset_0x200cu 904
103
104 /* General Punctuation */
105
106 /* 2000 */ U,C,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
107 /* 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,
108 /* 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,
109 /* 2060 */ X,X,X,X,X,X,U,U,U,U,
110
111#define joining_offset_0xa840u 998
112
113 /* Phags-pa */
114
115 /* 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,
116 /* A860 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,L,U,
117
118#define joining_offset_0x10ac0u 1050
119
120 /* Manichaean */
121
122 /* 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,
123 /* 10AE0 */ D,R,U,U,R,X,X,X,X,X,X,D,D,D,D,R,
124
125#define joining_offset_0x10b80u 1098
126
127 /* Psalter Pahlavi */
128
129 /* 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,
130 /* 10BA0 */ X,X,X,X,X,X,X,X,X,R,R,R,R,D,D,U,
131
132#define joining_offset_0x10d00u 1146
133
134 /* Hanifi Rohingya */
135
136 /* 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,
137 /* 10D20 */ D,D,R,D,
138
139#define joining_offset_0x10f30u 1182
140
141 /* Sogdian */
142
143 /* 10F20 */ D,D,D,R,D,D,D,D,D,D,D,D,D,D,D,D,
144 /* 10F40 */ D,D,D,D,D,U,X,X,X,X,X,X,X,X,X,X,X,D,D,D,R,X,X,X,X,X,X,X,X,X,X,X,
145 /* 10F60 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
146
147 /* Old Uyghur */
148
149 /* 10F60 */ D,D,D,D,R,R,D,D,D,D,D,D,D,D,D,D,
150 /* 10F80 */ D,D,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,
151 /* 10FA0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
152
153 /* Chorasmian */
154
155 /* 10FA0 */ D,U,D,D,R,R,R,U,D,R,R,D,D,R,D,D,
156 /* 10FC0 */ U,D,R,R,D,U,U,U,U,R,D,L,
157
158#define joining_offset_0x110bdu 1338
159
160 /* Kaithi */
161
162 /* 110A0 */ U,X,X,
163 /* 110C0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,U,
164
165#define joining_offset_0x1e900u 1355
166
167 /* Adlam */
168
169 /* 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,
170 /* 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,
171 /* 1E940 */ D,D,D,D,X,X,X,X,X,X,X,T,
172
173}; /* Table items: 1431; occupancy: 57% */
174
175
176static unsigned int
177joining_type (hb_codepoint_t u)
178{
179 switch (u >> 12)
180 {
181 case 0x0u:
182 if (hb_in_range<hb_codepoint_t> (u, 0x0600u, 0x08E2u)) return joining_table[u - 0x0600u + joining_offset_0x0600u];
183 break;
184
185 case 0x1u:
186 if (hb_in_range<hb_codepoint_t> (u, 0x1806u, 0x18AAu)) return joining_table[u - 0x1806u + joining_offset_0x1806u];
187 break;
188
189 case 0x2u:
190 if (hb_in_range<hb_codepoint_t> (u, 0x200Cu, 0x2069u)) return joining_table[u - 0x200Cu + joining_offset_0x200cu];
191 break;
192
193 case 0xAu:
194 if (hb_in_range<hb_codepoint_t> (u, 0xA840u, 0xA873u)) return joining_table[u - 0xA840u + joining_offset_0xa840u];
195 break;
196
197 case 0x10u:
198 if (hb_in_range<hb_codepoint_t> (u, 0x10AC0u, 0x10AEFu)) return joining_table[u - 0x10AC0u + joining_offset_0x10ac0u];
199 if (hb_in_range<hb_codepoint_t> (u, 0x10B80u, 0x10BAFu)) return joining_table[u - 0x10B80u + joining_offset_0x10b80u];
200 if (hb_in_range<hb_codepoint_t> (u, 0x10D00u, 0x10D23u)) return joining_table[u - 0x10D00u + joining_offset_0x10d00u];
201 if (hb_in_range<hb_codepoint_t> (u, 0x10F30u, 0x10FCBu)) return joining_table[u - 0x10F30u + joining_offset_0x10f30u];
202 break;
203
204 case 0x11u:
205 if (hb_in_range<hb_codepoint_t> (u, 0x110BDu, 0x110CDu)) return joining_table[u - 0x110BDu + joining_offset_0x110bdu];
206 break;
207
208 case 0x1Eu:
209 if (hb_in_range<hb_codepoint_t> (u, 0x1E900u, 0x1E94Bu)) return joining_table[u - 0x1E900u + joining_offset_0x1e900u];
210 break;
211
212 default:
213 break;
214 }
215 return X;
216}
217
218#undef A
219#undef DR
220#undef C
221#undef D
222#undef L
223#undef R
224#undef T
225#undef U
226#undef X
227
228
229static const uint16_t shaping_table[][4] =
230{
231 {0x0000u, 0x0000u, 0x0000u, 0xFE80u}, /* U+0621 ARABIC LETTER HAMZA ISOLATED FORM */
232 {0x0000u, 0x0000u, 0xFE82u, 0xFE81u}, /* U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE */
233 {0x0000u, 0x0000u, 0xFE84u, 0xFE83u}, /* U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE */
234 {0x0000u, 0x0000u, 0xFE86u, 0xFE85u}, /* U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE */
235 {0x0000u, 0x0000u, 0xFE88u, 0xFE87u}, /* U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW */
236 {0xFE8Bu, 0xFE8Cu, 0xFE8Au, 0xFE89u}, /* U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE */
237 {0x0000u, 0x0000u, 0xFE8Eu, 0xFE8Du}, /* U+0627 ARABIC LETTER ALEF */
238 {0xFE91u, 0xFE92u, 0xFE90u, 0xFE8Fu}, /* U+0628 ARABIC LETTER BEH */
239 {0x0000u, 0x0000u, 0xFE94u, 0xFE93u}, /* U+0629 ARABIC LETTER TEH MARBUTA */
240 {0xFE97u, 0xFE98u, 0xFE96u, 0xFE95u}, /* U+062A ARABIC LETTER TEH */
241 {0xFE9Bu, 0xFE9Cu, 0xFE9Au, 0xFE99u}, /* U+062B ARABIC LETTER THEH */
242 {0xFE9Fu, 0xFEA0u, 0xFE9Eu, 0xFE9Du}, /* U+062C ARABIC LETTER JEEM */
243 {0xFEA3u, 0xFEA4u, 0xFEA2u, 0xFEA1u}, /* U+062D ARABIC LETTER HAH */
244 {0xFEA7u, 0xFEA8u, 0xFEA6u, 0xFEA5u}, /* U+062E ARABIC LETTER KHAH */
245 {0x0000u, 0x0000u, 0xFEAAu, 0xFEA9u}, /* U+062F ARABIC LETTER DAL */
246 {0x0000u, 0x0000u, 0xFEACu, 0xFEABu}, /* U+0630 ARABIC LETTER THAL */
247 {0x0000u, 0x0000u, 0xFEAEu, 0xFEADu}, /* U+0631 ARABIC LETTER REH */
248 {0x0000u, 0x0000u, 0xFEB0u, 0xFEAFu}, /* U+0632 ARABIC LETTER ZAIN */
249 {0xFEB3u, 0xFEB4u, 0xFEB2u, 0xFEB1u}, /* U+0633 ARABIC LETTER SEEN */
250 {0xFEB7u, 0xFEB8u, 0xFEB6u, 0xFEB5u}, /* U+0634 ARABIC LETTER SHEEN */
251 {0xFEBBu, 0xFEBCu, 0xFEBAu, 0xFEB9u}, /* U+0635 ARABIC LETTER SAD */
252 {0xFEBFu, 0xFEC0u, 0xFEBEu, 0xFEBDu}, /* U+0636 ARABIC LETTER DAD */
253 {0xFEC3u, 0xFEC4u, 0xFEC2u, 0xFEC1u}, /* U+0637 ARABIC LETTER TAH */
254 {0xFEC7u, 0xFEC8u, 0xFEC6u, 0xFEC5u}, /* U+0638 ARABIC LETTER ZAH */
255 {0xFECBu, 0xFECCu, 0xFECAu, 0xFEC9u}, /* U+0639 ARABIC LETTER AIN */
256 {0xFECFu, 0xFED0u, 0xFECEu, 0xFECDu}, /* U+063A ARABIC LETTER GHAIN */
257 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063B */
258 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063C */
259 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063D */
260 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063E */
261 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063F */
262 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0640 */
263 {0xFED3u, 0xFED4u, 0xFED2u, 0xFED1u}, /* U+0641 ARABIC LETTER FEH */
264 {0xFED7u, 0xFED8u, 0xFED6u, 0xFED5u}, /* U+0642 ARABIC LETTER QAF */
265 {0xFEDBu, 0xFEDCu, 0xFEDAu, 0xFED9u}, /* U+0643 ARABIC LETTER KAF */
266 {0xFEDFu, 0xFEE0u, 0xFEDEu, 0xFEDDu}, /* U+0644 ARABIC LETTER LAM */
267 {0xFEE3u, 0xFEE4u, 0xFEE2u, 0xFEE1u}, /* U+0645 ARABIC LETTER MEEM */
268 {0xFEE7u, 0xFEE8u, 0xFEE6u, 0xFEE5u}, /* U+0646 ARABIC LETTER NOON */
269 {0xFEEBu, 0xFEECu, 0xFEEAu, 0xFEE9u}, /* U+0647 ARABIC LETTER HEH */
270 {0x0000u, 0x0000u, 0xFEEEu, 0xFEEDu}, /* U+0648 ARABIC LETTER WAW */
271 {0xFBE8u, 0xFBE9u, 0xFEF0u, 0xFEEFu}, /* U+0649 ARABIC LETTER */
272 {0xFEF3u, 0xFEF4u, 0xFEF2u, 0xFEF1u}, /* U+064A ARABIC LETTER YEH */
273 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064B */
274 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064C */
275 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064D */
276 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064E */
277 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064F */
278 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0650 */
279 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0651 */
280 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0652 */
281 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0653 */
282 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0654 */
283 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0655 */
284 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0656 */
285 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0657 */
286 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0658 */
287 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0659 */
288 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065A */
289 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065B */
290 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065C */
291 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065D */
292 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065E */
293 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065F */
294 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0660 */
295 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0661 */
296 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0662 */
297 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0663 */
298 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0664 */
299 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0665 */
300 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0666 */
301 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0667 */
302 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0668 */
303 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0669 */
304 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066A */
305 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066B */
306 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066C */
307 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066D */
308 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066E */
309 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066F */
310 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0670 */
311 {0x0000u, 0x0000u, 0xFB51u, 0xFB50u}, /* U+0671 ARABIC LETTER ALEF WASLA */
312 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0672 */
313 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0673 */
314 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0674 */
315 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0675 */
316 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0676 */
317 {0x0000u, 0x0000u, 0x0000u, 0xFBDDu}, /* U+0677 ARABIC LETTER U WITH HAMZA ABOVE ISOLATED FORM */
318 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0678 */
319 {0xFB68u, 0xFB69u, 0xFB67u, 0xFB66u}, /* U+0679 ARABIC LETTER TTEH */
320 {0xFB60u, 0xFB61u, 0xFB5Fu, 0xFB5Eu}, /* U+067A ARABIC LETTER TTEHEH */
321 {0xFB54u, 0xFB55u, 0xFB53u, 0xFB52u}, /* U+067B ARABIC LETTER BEEH */
322 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067C */
323 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067D */
324 {0xFB58u, 0xFB59u, 0xFB57u, 0xFB56u}, /* U+067E ARABIC LETTER PEH */
325 {0xFB64u, 0xFB65u, 0xFB63u, 0xFB62u}, /* U+067F ARABIC LETTER TEHEH */
326 {0xFB5Cu, 0xFB5Du, 0xFB5Bu, 0xFB5Au}, /* U+0680 ARABIC LETTER BEHEH */
327 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0681 */
328 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0682 */
329 {0xFB78u, 0xFB79u, 0xFB77u, 0xFB76u}, /* U+0683 ARABIC LETTER NYEH */
330 {0xFB74u, 0xFB75u, 0xFB73u, 0xFB72u}, /* U+0684 ARABIC LETTER DYEH */
331 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0685 */
332 {0xFB7Cu, 0xFB7Du, 0xFB7Bu, 0xFB7Au}, /* U+0686 ARABIC LETTER TCHEH */
333 {0xFB80u, 0xFB81u, 0xFB7Fu, 0xFB7Eu}, /* U+0687 ARABIC LETTER TCHEHEH */
334 {0x0000u, 0x0000u, 0xFB89u, 0xFB88u}, /* U+0688 ARABIC LETTER DDAL */
335 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0689 */
336 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068A */
337 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068B */
338 {0x0000u, 0x0000u, 0xFB85u, 0xFB84u}, /* U+068C ARABIC LETTER DAHAL */
339 {0x0000u, 0x0000u, 0xFB83u, 0xFB82u}, /* U+068D ARABIC LETTER DDAHAL */
340 {0x0000u, 0x0000u, 0xFB87u, 0xFB86u}, /* U+068E ARABIC LETTER DUL */
341 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068F */
342 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0690 */
343 {0x0000u, 0x0000u, 0xFB8Du, 0xFB8Cu}, /* U+0691 ARABIC LETTER RREH */
344 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0692 */
345 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0693 */
346 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0694 */
347 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0695 */
348 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0696 */
349 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0697 */
350 {0x0000u, 0x0000u, 0xFB8Bu, 0xFB8Au}, /* U+0698 ARABIC LETTER JEH */
351 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0699 */
352 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069A */
353 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069B */
354 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069C */
355 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069D */
356 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069E */
357 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069F */
358 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A0 */
359 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A1 */
360 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A2 */
361 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A3 */
362 {0xFB6Cu, 0xFB6Du, 0xFB6Bu, 0xFB6Au}, /* U+06A4 ARABIC LETTER VEH */
363 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A5 */
364 {0xFB70u, 0xFB71u, 0xFB6Fu, 0xFB6Eu}, /* U+06A6 ARABIC LETTER PEHEH */
365 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A7 */
366 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A8 */
367 {0xFB90u, 0xFB91u, 0xFB8Fu, 0xFB8Eu}, /* U+06A9 ARABIC LETTER KEHEH */
368 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AA */
369 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AB */
370 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AC */
371 {0xFBD5u, 0xFBD6u, 0xFBD4u, 0xFBD3u}, /* U+06AD ARABIC LETTER NG */
372 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AE */
373 {0xFB94u, 0xFB95u, 0xFB93u, 0xFB92u}, /* U+06AF ARABIC LETTER GAF */
374 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B0 */
375 {0xFB9Cu, 0xFB9Du, 0xFB9Bu, 0xFB9Au}, /* U+06B1 ARABIC LETTER NGOEH */
376 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B2 */
377 {0xFB98u, 0xFB99u, 0xFB97u, 0xFB96u}, /* U+06B3 ARABIC LETTER GUEH */
378 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B4 */
379 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B5 */
380 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B6 */
381 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B7 */
382 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B8 */
383 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B9 */
384 {0x0000u, 0x0000u, 0xFB9Fu, 0xFB9Eu}, /* U+06BA ARABIC LETTER NOON GHUNNA */
385 {0xFBA2u, 0xFBA3u, 0xFBA1u, 0xFBA0u}, /* U+06BB ARABIC LETTER RNOON */
386 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BC */
387 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BD */
388 {0xFBACu, 0xFBADu, 0xFBABu, 0xFBAAu}, /* U+06BE ARABIC LETTER HEH DOACHASHMEE */
389 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BF */
390 {0x0000u, 0x0000u, 0xFBA5u, 0xFBA4u}, /* U+06C0 ARABIC LETTER HEH WITH YEH ABOVE */
391 {0xFBA8u, 0xFBA9u, 0xFBA7u, 0xFBA6u}, /* U+06C1 ARABIC LETTER HEH GOAL */
392 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C2 */
393 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C3 */
394 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C4 */
395 {0x0000u, 0x0000u, 0xFBE1u, 0xFBE0u}, /* U+06C5 ARABIC LETTER KIRGHIZ OE */
396 {0x0000u, 0x0000u, 0xFBDAu, 0xFBD9u}, /* U+06C6 ARABIC LETTER OE */
397 {0x0000u, 0x0000u, 0xFBD8u, 0xFBD7u}, /* U+06C7 ARABIC LETTER U */
398 {0x0000u, 0x0000u, 0xFBDCu, 0xFBDBu}, /* U+06C8 ARABIC LETTER YU */
399 {0x0000u, 0x0000u, 0xFBE3u, 0xFBE2u}, /* U+06C9 ARABIC LETTER KIRGHIZ YU */
400 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CA */
401 {0x0000u, 0x0000u, 0xFBDFu, 0xFBDEu}, /* U+06CB ARABIC LETTER VE */
402 {0xFBFEu, 0xFBFFu, 0xFBFDu, 0xFBFCu}, /* U+06CC ARABIC LETTER FARSI YEH */
403 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CD */
404 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CE */
405 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CF */
406 {0xFBE6u, 0xFBE7u, 0xFBE5u, 0xFBE4u}, /* U+06D0 ARABIC LETTER E */
407 {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06D1 */
408 {0x0000u, 0x0000u, 0xFBAFu, 0xFBAEu}, /* U+06D2 ARABIC LETTER YEH BARREE */
409 {0x0000u, 0x0000u, 0xFBB1u, 0xFBB0u}, /* U+06D3 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE */
410};
411
412#define SHAPING_TABLE_FIRST 0x0621u
413#define SHAPING_TABLE_LAST 0x06D3u
414
415
416static const struct ligature_set_t {
417 uint16_t first;
418 struct ligature_pairs_t {
419 uint16_t components[1];
420 uint16_t ligature;
421 } ligatures[14];
422} ligature_table[] =
423{
424 { 0xFE91u, {
425 { {0xFEE2u}, 0xFC08u }, /* ARABIC LIGATURE BEH WITH MEEM ISOLATED FORM */
426 { {0xFEE4u}, 0xFC9Fu }, /* ARABIC LIGATURE BEH WITH MEEM INITIAL FORM */
427 { {0xFEA0u}, 0xFC9Cu }, /* ARABIC LIGATURE BEH WITH JEEM INITIAL FORM */
428 { {0xFEA4u}, 0xFC9Du }, /* ARABIC LIGATURE BEH WITH HAH INITIAL FORM */
429 { {0xFEA8u}, 0xFC9Eu }, /* ARABIC LIGATURE BEH WITH KHAH INITIAL FORM */
430 }},
431 { 0xFE92u, {
432 { {0xFEAEu}, 0xFC6Au }, /* ARABIC LIGATURE BEH WITH REH FINAL FORM */
433 { {0xFEE6u}, 0xFC6Du }, /* ARABIC LIGATURE BEH WITH NOON FINAL FORM */
434 { {0xFEF2u}, 0xFC6Fu }, /* ARABIC LIGATURE BEH WITH YEH FINAL FORM */
435 }},
436 { 0xFE97u, {
437 { {0xFEE2u}, 0xFC0Eu }, /* ARABIC LIGATURE TEH WITH MEEM ISOLATED FORM */
438 { {0xFEE4u}, 0xFCA4u }, /* ARABIC LIGATURE TEH WITH MEEM INITIAL FORM */
439 { {0xFEA0u}, 0xFCA1u }, /* ARABIC LIGATURE TEH WITH JEEM INITIAL FORM */
440 { {0xFEA4u}, 0xFCA2u }, /* ARABIC LIGATURE TEH WITH HAH INITIAL FORM */
441 { {0xFEA8u}, 0xFCA3u }, /* ARABIC LIGATURE TEH WITH KHAH INITIAL FORM */
442 }},
443 { 0xFE98u, {
444 { {0xFEAEu}, 0xFC70u }, /* ARABIC LIGATURE TEH WITH REH FINAL FORM */
445 { {0xFEE6u}, 0xFC73u }, /* ARABIC LIGATURE TEH WITH NOON FINAL FORM */
446 { {0xFEF2u}, 0xFC75u }, /* ARABIC LIGATURE TEH WITH YEH FINAL FORM */
447 }},
448 { 0xFE9Bu, {
449 { {0xFEE2u}, 0xFC12u }, /* ARABIC LIGATURE THEH WITH MEEM ISOLATED FORM */
450 }},
451 { 0xFE9Fu, {
452 { {0xFEE4u}, 0xFCA8u }, /* ARABIC LIGATURE JEEM WITH MEEM INITIAL FORM */
453 }},
454 { 0xFEA3u, {
455 { {0xFEE4u}, 0xFCAAu }, /* ARABIC LIGATURE HAH WITH MEEM INITIAL FORM */
456 }},
457 { 0xFEA7u, {
458 { {0xFEE4u}, 0xFCACu }, /* ARABIC LIGATURE KHAH WITH MEEM INITIAL FORM */
459 }},
460 { 0xFEB3u, {
461 { {0xFEE4u}, 0xFCB0u }, /* ARABIC LIGATURE SEEN WITH MEEM INITIAL FORM */
462 }},
463 { 0xFEB7u, {
464 { {0xFEE4u}, 0xFD30u }, /* ARABIC LIGATURE SHEEN WITH MEEM INITIAL FORM */
465 }},
466 { 0xFED3u, {
467 { {0xFEF2u}, 0xFC32u }, /* ARABIC LIGATURE FEH WITH YEH ISOLATED FORM */
468 }},
469 { 0xFEDFu, {
470 { {0xFE9Eu}, 0xFC3Fu }, /* ARABIC LIGATURE LAM WITH JEEM ISOLATED FORM */
471 { {0xFEA0u}, 0xFCC9u }, /* ARABIC LIGATURE LAM WITH JEEM INITIAL FORM */
472 { {0xFEA2u}, 0xFC40u }, /* ARABIC LIGATURE LAM WITH HAH ISOLATED FORM */
473 { {0xFEA4u}, 0xFCCAu }, /* ARABIC LIGATURE LAM WITH HAH INITIAL FORM */
474 { {0xFEA6u}, 0xFC41u }, /* ARABIC LIGATURE LAM WITH KHAH ISOLATED FORM */
475 { {0xFEA8u}, 0xFCCBu }, /* ARABIC LIGATURE LAM WITH KHAH INITIAL FORM */
476 { {0xFEE2u}, 0xFC42u }, /* ARABIC LIGATURE LAM WITH MEEM ISOLATED FORM */
477 { {0xFEE4u}, 0xFCCCu }, /* ARABIC LIGATURE LAM WITH MEEM INITIAL FORM */
478 { {0xFEF2u}, 0xFC44u }, /* ARABIC LIGATURE LAM WITH YEH ISOLATED FORM */
479 { {0xFEECu}, 0xFCCDu }, /* ARABIC LIGATURE LAM WITH HEH INITIAL FORM */
480 { {0xFE82u}, 0xFEF5u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM */
481 { {0xFE84u}, 0xFEF7u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM */
482 { {0xFE88u}, 0xFEF9u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW ISOLATED FORM */
483 { {0xFE8Eu}, 0xFEFBu }, /* ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM */
484 }},
485 { 0xFEE0u, {
486 { {0xFEF0u}, 0xFC86u }, /* ARABIC LIGATURE LAM WITH ALEF MAKSURA FINAL FORM */
487 { {0xFE82u}, 0xFEF6u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM */
488 { {0xFE84u}, 0xFEF8u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM */
489 { {0xFE88u}, 0xFEFAu }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW FINAL FORM */
490 { {0xFE8Eu}, 0xFEFCu }, /* ARABIC LIGATURE LAM WITH ALEF FINAL FORM */
491 }},
492 { 0xFEE3u, {
493 { {0xFEA0u}, 0xFCCEu }, /* ARABIC LIGATURE MEEM WITH JEEM INITIAL FORM */
494 { {0xFEA4u}, 0xFCCFu }, /* ARABIC LIGATURE MEEM WITH HAH INITIAL FORM */
495 { {0xFEA8u}, 0xFCD0u }, /* ARABIC LIGATURE MEEM WITH KHAH INITIAL FORM */
496 { {0xFEE4u}, 0xFCD1u }, /* ARABIC LIGATURE MEEM WITH MEEM INITIAL FORM */
497 }},
498 { 0xFEE7u, {
499 { {0xFEE2u}, 0xFC4Eu }, /* ARABIC LIGATURE NOON WITH MEEM ISOLATED FORM */
500 { {0xFEE4u}, 0xFCD5u }, /* ARABIC LIGATURE NOON WITH MEEM INITIAL FORM */
501 { {0xFEA0u}, 0xFCD2u }, /* ARABIC LIGATURE NOON WITH JEEM INITIAL FORM */
502 { {0xFEA4u}, 0xFCD3u }, /* ARABIC LIGATURE NOON WITH HAH INITIAL FORM */
503 }},
504 { 0xFEE8u, {
505 { {0xFEF2u}, 0xFC8Fu }, /* ARABIC LIGATURE NOON WITH YEH FINAL FORM */
506 }},
507 { 0xFEF3u, {
508 { {0xFEA0u}, 0xFCDAu }, /* ARABIC LIGATURE YEH WITH JEEM INITIAL FORM */
509 { {0xFEA4u}, 0xFCDBu }, /* ARABIC LIGATURE YEH WITH HAH INITIAL FORM */
510 { {0xFEA8u}, 0xFCDCu }, /* ARABIC LIGATURE YEH WITH KHAH INITIAL FORM */
511 { {0xFEE4u}, 0xFCDDu }, /* ARABIC LIGATURE YEH WITH MEEM INITIAL FORM */
512 }},
513 { 0xFEF4u, {
514 { {0xFEAEu}, 0xFC91u }, /* ARABIC LIGATURE YEH WITH REH FINAL FORM */
515 { {0xFEE6u}, 0xFC94u }, /* ARABIC LIGATURE YEH WITH NOON FINAL FORM */
516 }},
517};
518
519
520static const struct ligature_mark_set_t {
521 uint16_t first;
522 struct ligature_pairs_t {
523 uint16_t components[1];
524 uint16_t ligature;
525 } ligatures[5];
526} ligature_mark_table[] =
527{
528 { 0x0651u, {
529 { {0x064Cu}, 0xFC5Eu }, /* ARABIC LIGATURE SHADDA WITH DAMMATAN ISOLATED FORM */
530 { {0x064Eu}, 0xFC60u }, /* ARABIC LIGATURE SHADDA WITH FATHA ISOLATED FORM */
531 { {0x064Fu}, 0xFC61u }, /* ARABIC LIGATURE SHADDA WITH DAMMA ISOLATED FORM */
532 { {0x0650u}, 0xFC62u }, /* ARABIC LIGATURE SHADDA WITH KASRA ISOLATED FORM */
533 { {0x064Bu}, 0xF2EEu }, /* PUA ARABIC LIGATURE SHADDA WITH FATHATAN ISOLATED FORM */
534 }},
535};
536
537
538static const struct ligature_3_set_t {
539 uint16_t first;
540 struct ligature_triplets_t {
541 uint16_t components[2];
542 uint16_t ligature;
543 } ligatures[3];
544} ligature_3_table[] =
545{
546 { 0xFEDFu, {
547 { {0xFEE4u, 0xFEA4u}, 0xFD88u}, /* ARABIC LIGATURE LAM WITH MEEM WITH HAH INITIAL FORM */
548 { {0xFEE0u, 0xFEEAu}, 0xF201u}, /* PUA ARABIC LIGATURE LELLAH ISOLATED FORM */
549 { {0xFEE4u, 0xFEA0u}, 0xF211u}, /* PUA ARABIC LIGATURE LAM WITH MEEM WITH JEEM INITIAL FORM */
550 }},
551};
552
553
554#endif /* HB_OT_SHAPER_ARABIC_TABLE_HH */
555
556/* == End of generated table == */
557