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