neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
text_category_map.hpp
Go to the documentation of this file.
1// text_category_map.hpp
2/*
3 neogfx C++ App/Game Engine
4 Copyright (c) 2015, 2020 Leigh Johnston. All Rights Reserved.
5
6 This program is free software: you can redistribute it and / or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22#include <neogfx/neogfx.hpp>
24#include "i_emoji_atlas.hpp"
25
26namespace neogfx
27{
28 namespace detail
29 {
30 typedef std::pair<uint32_t, text_category> text_category_MAP_VALUE_TYPE;
32 {
33 { 0x00000, text_category::None },
34 { 0x00009, text_category::Whitespace },
35 { 0x0000E, text_category::None },
36 { 0x0001C, text_category::Whitespace },
37 { 0x00021, text_category::None },
38 { 0x00030, text_category::Digit },
39 { 0x0003A, text_category::None },
40 { 0x00041, text_category::LTR },
41 { 0x0005B, text_category::None },
42 { 0x00061, text_category::LTR },
43 { 0x0007B, text_category::None },
44 { 0x00085, text_category::Whitespace },
45 { 0x00086, text_category::None },
46 { 0x000A0, text_category::Whitespace },
47 { 0x000A1, text_category::None },
48 { 0x000AA, text_category::LTR },
49 { 0x000AB, text_category::None },
50 { 0x000B2, text_category::Digit },
51 { 0x000B4, text_category::None },
52 { 0x000B5, text_category::LTR },
53 { 0x000B6, text_category::None },
54 { 0x000B9, text_category::Digit },
55 { 0x000BA, text_category::LTR },
56 { 0x000BB, text_category::None },
57 { 0x000C0, text_category::LTR },
58 { 0x000D7, text_category::None },
59 { 0x000D8, text_category::LTR },
60 { 0x000F7, text_category::None },
61 { 0x000F8, text_category::LTR },
62 { 0x002B9, text_category::None },
63 { 0x002BB, text_category::LTR },
64 { 0x002C2, text_category::None },
65 { 0x002D0, text_category::LTR },
66 { 0x002D2, text_category::None },
67 { 0x002E0, text_category::LTR },
68 { 0x002E5, text_category::None },
69 { 0x002EE, text_category::LTR },
70 { 0x002EF, text_category::None },
71 { 0x00300, text_category::Mark },
72 { 0x00370, text_category::LTR },
73 { 0x00374, text_category::None },
74 { 0x00376, text_category::LTR },
75 { 0x00378, text_category::Unknown },
76 { 0x0037A, text_category::LTR },
77 { 0x0037E, text_category::None },
78 { 0x0037F, text_category::LTR },
79 { 0x00380, text_category::Unknown },
80 { 0x00384, text_category::None },
81 { 0x00386, text_category::LTR },
82 { 0x00387, text_category::None },
83 { 0x00388, text_category::LTR },
84 { 0x0038B, text_category::Unknown },
85 { 0x0038C, text_category::LTR },
86 { 0x0038D, text_category::Unknown },
87 { 0x0038E, text_category::LTR },
88 { 0x003A2, text_category::Unknown },
89 { 0x003A3, text_category::LTR },
90 { 0x003F6, text_category::None },
91 { 0x003F7, text_category::LTR },
92 { 0x00483, text_category::Mark },
93 { 0x0048A, text_category::LTR },
94 { 0x00530, text_category::Unknown },
95 { 0x00531, text_category::LTR },
96 { 0x00557, text_category::Unknown },
97 { 0x00559, text_category::LTR },
98 { 0x00560, text_category::Unknown },
99 { 0x00561, text_category::LTR },
100 { 0x00588, text_category::Unknown },
101 { 0x00589, text_category::LTR },
102 { 0x0058A, text_category::None },
103 { 0x0058B, text_category::Unknown },
104 { 0x0058D, text_category::None },
105 { 0x00590, text_category::Unknown },
106 { 0x00591, text_category::Mark },
107 { 0x005BE, text_category::RTL },
108 { 0x005BF, text_category::Mark },
109 { 0x005C0, text_category::RTL },
110 { 0x005C1, text_category::Mark },
111 { 0x005C3, text_category::RTL },
112 { 0x005C4, text_category::Mark },
113 { 0x005C6, text_category::RTL },
114 { 0x005C7, text_category::Mark },
115 { 0x005C8, text_category::Unknown },
116 { 0x005D0, text_category::RTL },
117 { 0x005EB, text_category::Unknown },
118 { 0x005F0, text_category::RTL },
119 { 0x005F5, text_category::Unknown },
120 { 0x00600, text_category::None },
121 { 0x00608, text_category::RTL },
122 { 0x00609, text_category::None },
123 { 0x0060B, text_category::RTL },
124 { 0x0060C, text_category::None },
125 { 0x0060D, text_category::RTL },
126 { 0x0060E, text_category::None },
127 { 0x00610, text_category::Mark },
128 { 0x0061B, text_category::RTL },
129 { 0x0061D, text_category::Unknown },
130 { 0x0061E, text_category::RTL },
131 { 0x0064B, text_category::Mark },
132 { 0x00660, text_category::None },
133 { 0x0066D, text_category::RTL },
134 { 0x00670, text_category::Mark },
135 { 0x00671, text_category::RTL },
136 { 0x006D6, text_category::Mark },
137 { 0x006DD, text_category::None },
138 { 0x006DF, text_category::Mark },
139 { 0x006E5, text_category::RTL },
140 { 0x006E7, text_category::Mark },
141 { 0x006E9, text_category::None },
142 { 0x006EA, text_category::Mark },
143 { 0x006EE, text_category::RTL },
144 { 0x006F0, text_category::Digit },
145 { 0x006FA, text_category::RTL },
146 { 0x0070E, text_category::Unknown },
147 { 0x0070F, text_category::RTL },
148 { 0x00711, text_category::Mark },
149 { 0x00712, text_category::RTL },
150 { 0x00730, text_category::Mark },
151 { 0x0074B, text_category::Unknown },
152 { 0x0074D, text_category::RTL },
153 { 0x007A6, text_category::Mark },
154 { 0x007B1, text_category::RTL },
155 { 0x007B2, text_category::Unknown },
156 { 0x007C0, text_category::RTL },
157 { 0x007EB, text_category::Mark },
158 { 0x007F4, text_category::RTL },
159 { 0x007F6, text_category::None },
160 { 0x007FA, text_category::RTL },
161 { 0x007FB, text_category::Unknown },
162 { 0x00800, text_category::RTL },
163 { 0x00816, text_category::Mark },
164 { 0x0081A, text_category::RTL },
165 { 0x0081B, text_category::Mark },
166 { 0x00824, text_category::RTL },
167 { 0x00825, text_category::Mark },
168 { 0x00828, text_category::RTL },
169 { 0x00829, text_category::Mark },
170 { 0x0082E, text_category::Unknown },
171 { 0x00830, text_category::RTL },
172 { 0x0083F, text_category::Unknown },
173 { 0x00840, text_category::RTL },
174 { 0x00859, text_category::Mark },
175 { 0x0085C, text_category::Unknown },
176 { 0x0085E, text_category::RTL },
177 { 0x0085F, text_category::Unknown },
178 { 0x00860, text_category::RTL },
179 { 0x0086B, text_category::Unknown },
180 { 0x008A0, text_category::RTL },
181 { 0x008B5, text_category::Unknown },
182 { 0x008B6, text_category::RTL },
183 { 0x008BE, text_category::Unknown },
184 { 0x008D4, text_category::Mark },
185 { 0x008E2, text_category::None },
186 { 0x008E3, text_category::Mark },
187 { 0x00903, text_category::LTR },
188 { 0x0093A, text_category::Mark },
189 { 0x0093B, text_category::LTR },
190 { 0x0093C, text_category::Mark },
191 { 0x0093D, text_category::LTR },
192 { 0x00941, text_category::Mark },
193 { 0x00949, text_category::LTR },
194 { 0x0094D, text_category::Mark },
195 { 0x0094E, text_category::LTR },
196 { 0x00951, text_category::Mark },
197 { 0x00958, text_category::LTR },
198 { 0x00962, text_category::Mark },
199 { 0x00964, text_category::LTR },
200 { 0x00981, text_category::Mark },
201 { 0x00982, text_category::LTR },
202 { 0x00984, text_category::Unknown },
203 { 0x00985, text_category::LTR },
204 { 0x0098D, text_category::Unknown },
205 { 0x0098F, text_category::LTR },
206 { 0x00991, text_category::Unknown },
207 { 0x00993, text_category::LTR },
208 { 0x009A9, text_category::Unknown },
209 { 0x009AA, text_category::LTR },
210 { 0x009B1, text_category::Unknown },
211 { 0x009B2, text_category::LTR },
212 { 0x009B3, text_category::Unknown },
213 { 0x009B6, text_category::LTR },
214 { 0x009BA, text_category::Unknown },
215 { 0x009BC, text_category::Mark },
216 { 0x009BD, text_category::LTR },
217 { 0x009C1, text_category::Mark },
218 { 0x009C5, text_category::Unknown },
219 { 0x009C7, text_category::LTR },
220 { 0x009C9, text_category::Unknown },
221 { 0x009CB, text_category::LTR },
222 { 0x009CD, text_category::Mark },
223 { 0x009CE, text_category::LTR },
224 { 0x009CF, text_category::Unknown },
225 { 0x009D7, text_category::LTR },
226 { 0x009D8, text_category::Unknown },
227 { 0x009DC, text_category::LTR },
228 { 0x009DE, text_category::Unknown },
229 { 0x009DF, text_category::LTR },
230 { 0x009E2, text_category::Mark },
231 { 0x009E4, text_category::Unknown },
232 { 0x009E6, text_category::LTR },
233 { 0x009F2, text_category::None },
234 { 0x009F4, text_category::LTR },
235 { 0x009FB, text_category::None },
236 { 0x009FC, text_category::LTR },
237 { 0x009FE, text_category::Unknown },
238 { 0x00A01, text_category::Mark },
239 { 0x00A03, text_category::LTR },
240 { 0x00A04, text_category::Unknown },
241 { 0x00A05, text_category::LTR },
242 { 0x00A0B, text_category::Unknown },
243 { 0x00A0F, text_category::LTR },
244 { 0x00A11, text_category::Unknown },
245 { 0x00A13, text_category::LTR },
246 { 0x00A29, text_category::Unknown },
247 { 0x00A2A, text_category::LTR },
248 { 0x00A31, text_category::Unknown },
249 { 0x00A32, text_category::LTR },
250 { 0x00A34, text_category::Unknown },
251 { 0x00A35, text_category::LTR },
252 { 0x00A37, text_category::Unknown },
253 { 0x00A38, text_category::LTR },
254 { 0x00A3A, text_category::Unknown },
255 { 0x00A3C, text_category::Mark },
256 { 0x00A3D, text_category::Unknown },
257 { 0x00A3E, text_category::LTR },
258 { 0x00A41, text_category::Mark },
259 { 0x00A43, text_category::Unknown },
260 { 0x00A47, text_category::Mark },
261 { 0x00A49, text_category::Unknown },
262 { 0x00A4B, text_category::Mark },
263 { 0x00A4E, text_category::Unknown },
264 { 0x00A51, text_category::Mark },
265 { 0x00A52, text_category::Unknown },
266 { 0x00A59, text_category::LTR },
267 { 0x00A5D, text_category::Unknown },
268 { 0x00A5E, text_category::LTR },
269 { 0x00A5F, text_category::Unknown },
270 { 0x00A66, text_category::LTR },
271 { 0x00A70, text_category::Mark },
272 { 0x00A72, text_category::LTR },
273 { 0x00A75, text_category::Mark },
274 { 0x00A76, text_category::Unknown },
275 { 0x00A81, text_category::Mark },
276 { 0x00A83, text_category::LTR },
277 { 0x00A84, text_category::Unknown },
278 { 0x00A85, text_category::LTR },
279 { 0x00A8E, text_category::Unknown },
280 { 0x00A8F, text_category::LTR },
281 { 0x00A92, text_category::Unknown },
282 { 0x00A93, text_category::LTR },
283 { 0x00AA9, text_category::Unknown },
284 { 0x00AAA, text_category::LTR },
285 { 0x00AB1, text_category::Unknown },
286 { 0x00AB2, text_category::LTR },
287 { 0x00AB4, text_category::Unknown },
288 { 0x00AB5, text_category::LTR },
289 { 0x00ABA, text_category::Unknown },
290 { 0x00ABC, text_category::Mark },
291 { 0x00ABD, text_category::LTR },
292 { 0x00AC1, text_category::Mark },
293 { 0x00AC6, text_category::Unknown },
294 { 0x00AC7, text_category::Mark },
295 { 0x00AC9, text_category::LTR },
296 { 0x00ACA, text_category::Unknown },
297 { 0x00ACB, text_category::LTR },
298 { 0x00ACD, text_category::Mark },
299 { 0x00ACE, text_category::Unknown },
300 { 0x00AD0, text_category::LTR },
301 { 0x00AD1, text_category::Unknown },
302 { 0x00AE0, text_category::LTR },
303 { 0x00AE2, text_category::Mark },
304 { 0x00AE4, text_category::Unknown },
305 { 0x00AE6, text_category::LTR },
306 { 0x00AF1, text_category::None },
307 { 0x00AF2, text_category::Unknown },
308 { 0x00AF9, text_category::LTR },
309 { 0x00AFA, text_category::Mark },
310 { 0x00B00, text_category::Unknown },
311 { 0x00B01, text_category::Mark },
312 { 0x00B02, text_category::LTR },
313 { 0x00B04, text_category::Unknown },
314 { 0x00B05, text_category::LTR },
315 { 0x00B0D, text_category::Unknown },
316 { 0x00B0F, text_category::LTR },
317 { 0x00B11, text_category::Unknown },
318 { 0x00B13, text_category::LTR },
319 { 0x00B29, text_category::Unknown },
320 { 0x00B2A, text_category::LTR },
321 { 0x00B31, text_category::Unknown },
322 { 0x00B32, text_category::LTR },
323 { 0x00B34, text_category::Unknown },
324 { 0x00B35, text_category::LTR },
325 { 0x00B3A, text_category::Unknown },
326 { 0x00B3C, text_category::Mark },
327 { 0x00B3D, text_category::LTR },
328 { 0x00B3F, text_category::Mark },
329 { 0x00B40, text_category::LTR },
330 { 0x00B41, text_category::Mark },
331 { 0x00B45, text_category::Unknown },
332 { 0x00B47, text_category::LTR },
333 { 0x00B49, text_category::Unknown },
334 { 0x00B4B, text_category::LTR },
335 { 0x00B4D, text_category::Mark },
336 { 0x00B4E, text_category::Unknown },
337 { 0x00B56, text_category::Mark },
338 { 0x00B57, text_category::LTR },
339 { 0x00B58, text_category::Unknown },
340 { 0x00B5C, text_category::LTR },
341 { 0x00B5E, text_category::Unknown },
342 { 0x00B5F, text_category::LTR },
343 { 0x00B62, text_category::Mark },
344 { 0x00B64, text_category::Unknown },
345 { 0x00B66, text_category::LTR },
346 { 0x00B78, text_category::Unknown },
347 { 0x00B82, text_category::Mark },
348 { 0x00B83, text_category::LTR },
349 { 0x00B84, text_category::Unknown },
350 { 0x00B85, text_category::LTR },
351 { 0x00B8B, text_category::Unknown },
352 { 0x00B8E, text_category::LTR },
353 { 0x00B91, text_category::Unknown },
354 { 0x00B92, text_category::LTR },
355 { 0x00B96, text_category::Unknown },
356 { 0x00B99, text_category::LTR },
357 { 0x00B9B, text_category::Unknown },
358 { 0x00B9C, text_category::LTR },
359 { 0x00B9D, text_category::Unknown },
360 { 0x00B9E, text_category::LTR },
361 { 0x00BA0, text_category::Unknown },
362 { 0x00BA3, text_category::LTR },
363 { 0x00BA5, text_category::Unknown },
364 { 0x00BA8, text_category::LTR },
365 { 0x00BAB, text_category::Unknown },
366 { 0x00BAE, text_category::LTR },
367 { 0x00BBA, text_category::Unknown },
368 { 0x00BBE, text_category::LTR },
369 { 0x00BC0, text_category::Mark },
370 { 0x00BC1, text_category::LTR },
371 { 0x00BC3, text_category::Unknown },
372 { 0x00BC6, text_category::LTR },
373 { 0x00BC9, text_category::Unknown },
374 { 0x00BCA, text_category::LTR },
375 { 0x00BCD, text_category::Mark },
376 { 0x00BCE, text_category::Unknown },
377 { 0x00BD0, text_category::LTR },
378 { 0x00BD1, text_category::Unknown },
379 { 0x00BD7, text_category::LTR },
380 { 0x00BD8, text_category::Unknown },
381 { 0x00BE6, text_category::LTR },
382 { 0x00BF3, text_category::None },
383 { 0x00BFB, text_category::Unknown },
384 { 0x00C00, text_category::Mark },
385 { 0x00C01, text_category::LTR },
386 { 0x00C04, text_category::Unknown },
387 { 0x00C05, text_category::LTR },
388 { 0x00C0D, text_category::Unknown },
389 { 0x00C0E, text_category::LTR },
390 { 0x00C11, text_category::Unknown },
391 { 0x00C12, text_category::LTR },
392 { 0x00C29, text_category::Unknown },
393 { 0x00C2A, text_category::LTR },
394 { 0x00C3A, text_category::Unknown },
395 { 0x00C3D, text_category::LTR },
396 { 0x00C3E, text_category::Mark },
397 { 0x00C41, text_category::LTR },
398 { 0x00C45, text_category::Unknown },
399 { 0x00C46, text_category::Mark },
400 { 0x00C49, text_category::Unknown },
401 { 0x00C4A, text_category::Mark },
402 { 0x00C4E, text_category::Unknown },
403 { 0x00C55, text_category::Mark },
404 { 0x00C57, text_category::Unknown },
405 { 0x00C58, text_category::LTR },
406 { 0x00C5B, text_category::Unknown },
407 { 0x00C60, text_category::LTR },
408 { 0x00C62, text_category::Mark },
409 { 0x00C64, text_category::Unknown },
410 { 0x00C66, text_category::LTR },
411 { 0x00C70, text_category::Unknown },
412 { 0x00C78, text_category::None },
413 { 0x00C7F, text_category::LTR },
414 { 0x00C81, text_category::Mark },
415 { 0x00C82, text_category::LTR },
416 { 0x00C84, text_category::Unknown },
417 { 0x00C85, text_category::LTR },
418 { 0x00C8D, text_category::Unknown },
419 { 0x00C8E, text_category::LTR },
420 { 0x00C91, text_category::Unknown },
421 { 0x00C92, text_category::LTR },
422 { 0x00CA9, text_category::Unknown },
423 { 0x00CAA, text_category::LTR },
424 { 0x00CB4, text_category::Unknown },
425 { 0x00CB5, text_category::LTR },
426 { 0x00CBA, text_category::Unknown },
427 { 0x00CBC, text_category::Mark },
428 { 0x00CBD, text_category::LTR },
429 { 0x00CC5, text_category::Unknown },
430 { 0x00CC6, text_category::LTR },
431 { 0x00CC9, text_category::Unknown },
432 { 0x00CCA, text_category::LTR },
433 { 0x00CCC, text_category::Mark },
434 { 0x00CCE, text_category::Unknown },
435 { 0x00CD5, text_category::LTR },
436 { 0x00CD7, text_category::Unknown },
437 { 0x00CDE, text_category::LTR },
438 { 0x00CDF, text_category::Unknown },
439 { 0x00CE0, text_category::LTR },
440 { 0x00CE2, text_category::Mark },
441 { 0x00CE4, text_category::Unknown },
442 { 0x00CE6, text_category::LTR },
443 { 0x00CF0, text_category::Unknown },
444 { 0x00CF1, text_category::LTR },
445 { 0x00CF3, text_category::Unknown },
446 { 0x00D00, text_category::Mark },
447 { 0x00D02, text_category::LTR },
448 { 0x00D04, text_category::Unknown },
449 { 0x00D05, text_category::LTR },
450 { 0x00D0D, text_category::Unknown },
451 { 0x00D0E, text_category::LTR },
452 { 0x00D11, text_category::Unknown },
453 { 0x00D12, text_category::LTR },
454 { 0x00D3B, text_category::Mark },
455 { 0x00D3D, text_category::LTR },
456 { 0x00D41, text_category::Mark },
457 { 0x00D45, text_category::Unknown },
458 { 0x00D46, text_category::LTR },
459 { 0x00D49, text_category::Unknown },
460 { 0x00D4A, text_category::LTR },
461 { 0x00D4D, text_category::Mark },
462 { 0x00D4E, text_category::LTR },
463 { 0x00D50, text_category::Unknown },
464 { 0x00D54, text_category::LTR },
465 { 0x00D62, text_category::Mark },
466 { 0x00D64, text_category::Unknown },
467 { 0x00D66, text_category::LTR },
468 { 0x00D80, text_category::Unknown },
469 { 0x00D82, text_category::LTR },
470 { 0x00D84, text_category::Unknown },
471 { 0x00D85, text_category::LTR },
472 { 0x00D97, text_category::Unknown },
473 { 0x00D9A, text_category::LTR },
474 { 0x00DB2, text_category::Unknown },
475 { 0x00DB3, text_category::LTR },
476 { 0x00DBC, text_category::Unknown },
477 { 0x00DBD, text_category::LTR },
478 { 0x00DBE, text_category::Unknown },
479 { 0x00DC0, text_category::LTR },
480 { 0x00DC7, text_category::Unknown },
481 { 0x00DCA, text_category::Mark },
482 { 0x00DCB, text_category::Unknown },
483 { 0x00DCF, text_category::LTR },
484 { 0x00DD2, text_category::Mark },
485 { 0x00DD5, text_category::Unknown },
486 { 0x00DD6, text_category::Mark },
487 { 0x00DD7, text_category::Unknown },
488 { 0x00DD8, text_category::LTR },
489 { 0x00DE0, text_category::Unknown },
490 { 0x00DE6, text_category::LTR },
491 { 0x00DF0, text_category::Unknown },
492 { 0x00DF2, text_category::LTR },
493 { 0x00DF5, text_category::Unknown },
494 { 0x00E01, text_category::LTR },
495 { 0x00E31, text_category::Mark },
496 { 0x00E32, text_category::LTR },
497 { 0x00E34, text_category::Mark },
498 { 0x00E3B, text_category::Unknown },
499 { 0x00E3F, text_category::None },
500 { 0x00E40, text_category::LTR },
501 { 0x00E47, text_category::Mark },
502 { 0x00E4F, text_category::LTR },
503 { 0x00E5C, text_category::Unknown },
504 { 0x00E81, text_category::LTR },
505 { 0x00E83, text_category::Unknown },
506 { 0x00E84, text_category::LTR },
507 { 0x00E85, text_category::Unknown },
508 { 0x00E87, text_category::LTR },
509 { 0x00E89, text_category::Unknown },
510 { 0x00E8A, text_category::LTR },
511 { 0x00E8B, text_category::Unknown },
512 { 0x00E8D, text_category::LTR },
513 { 0x00E8E, text_category::Unknown },
514 { 0x00E94, text_category::LTR },
515 { 0x00E98, text_category::Unknown },
516 { 0x00E99, text_category::LTR },
517 { 0x00EA0, text_category::Unknown },
518 { 0x00EA1, text_category::LTR },
519 { 0x00EA4, text_category::Unknown },
520 { 0x00EA5, text_category::LTR },
521 { 0x00EA6, text_category::Unknown },
522 { 0x00EA7, text_category::LTR },
523 { 0x00EA8, text_category::Unknown },
524 { 0x00EAA, text_category::LTR },
525 { 0x00EAC, text_category::Unknown },
526 { 0x00EAD, text_category::LTR },
527 { 0x00EB1, text_category::Mark },
528 { 0x00EB2, text_category::LTR },
529 { 0x00EB4, text_category::Mark },
530 { 0x00EBA, text_category::Unknown },
531 { 0x00EBB, text_category::Mark },
532 { 0x00EBD, text_category::LTR },
533 { 0x00EBE, text_category::Unknown },
534 { 0x00EC0, text_category::LTR },
535 { 0x00EC5, text_category::Unknown },
536 { 0x00EC6, text_category::LTR },
537 { 0x00EC7, text_category::Unknown },
538 { 0x00EC8, text_category::Mark },
539 { 0x00ECE, text_category::Unknown },
540 { 0x00ED0, text_category::LTR },
541 { 0x00EDA, text_category::Unknown },
542 { 0x00EDC, text_category::LTR },
543 { 0x00EE0, text_category::Unknown },
544 { 0x00F00, text_category::LTR },
545 { 0x00F18, text_category::Mark },
546 { 0x00F1A, text_category::LTR },
547 { 0x00F35, text_category::Mark },
548 { 0x00F36, text_category::LTR },
549 { 0x00F37, text_category::Mark },
550 { 0x00F38, text_category::LTR },
551 { 0x00F39, text_category::Mark },
552 { 0x00F3A, text_category::None },
553 { 0x00F3E, text_category::LTR },
554 { 0x00F48, text_category::Unknown },
555 { 0x00F49, text_category::LTR },
556 { 0x00F6D, text_category::Unknown },
557 { 0x00F71, text_category::Mark },
558 { 0x00F7F, text_category::LTR },
559 { 0x00F80, text_category::Mark },
560 { 0x00F85, text_category::LTR },
561 { 0x00F86, text_category::Mark },
562 { 0x00F88, text_category::LTR },
563 { 0x00F8D, text_category::Mark },
564 { 0x00F98, text_category::Unknown },
565 { 0x00F99, text_category::Mark },
566 { 0x00FBD, text_category::Unknown },
567 { 0x00FBE, text_category::LTR },
568 { 0x00FC6, text_category::Mark },
569 { 0x00FC7, text_category::LTR },
570 { 0x00FCD, text_category::Unknown },
571 { 0x00FCE, text_category::LTR },
572 { 0x00FDB, text_category::Unknown },
573 { 0x01000, text_category::LTR },
574 { 0x0102D, text_category::Mark },
575 { 0x01031, text_category::LTR },
576 { 0x01032, text_category::Mark },
577 { 0x01038, text_category::LTR },
578 { 0x01039, text_category::Mark },
579 { 0x0103B, text_category::LTR },
580 { 0x0103D, text_category::Mark },
581 { 0x0103F, text_category::LTR },
582 { 0x01058, text_category::Mark },
583 { 0x0105A, text_category::LTR },
584 { 0x0105E, text_category::Mark },
585 { 0x01061, text_category::LTR },
586 { 0x01071, text_category::Mark },
587 { 0x01075, text_category::LTR },
588 { 0x01082, text_category::Mark },
589 { 0x01083, text_category::LTR },
590 { 0x01085, text_category::Mark },
591 { 0x01087, text_category::LTR },
592 { 0x0108D, text_category::Mark },
593 { 0x0108E, text_category::LTR },
594 { 0x0109D, text_category::Mark },
595 { 0x0109E, text_category::LTR },
596 { 0x010C6, text_category::Unknown },
597 { 0x010C7, text_category::LTR },
598 { 0x010C8, text_category::Unknown },
599 { 0x010CD, text_category::LTR },
600 { 0x010CE, text_category::Unknown },
601 { 0x010D0, text_category::LTR },
602 { 0x01249, text_category::Unknown },
603 { 0x0124A, text_category::LTR },
604 { 0x0124E, text_category::Unknown },
605 { 0x01250, text_category::LTR },
606 { 0x01257, text_category::Unknown },
607 { 0x01258, text_category::LTR },
608 { 0x01259, text_category::Unknown },
609 { 0x0125A, text_category::LTR },
610 { 0x0125E, text_category::Unknown },
611 { 0x01260, text_category::LTR },
612 { 0x01289, text_category::Unknown },
613 { 0x0128A, text_category::LTR },
614 { 0x0128E, text_category::Unknown },
615 { 0x01290, text_category::LTR },
616 { 0x012B1, text_category::Unknown },
617 { 0x012B2, text_category::LTR },
618 { 0x012B6, text_category::Unknown },
619 { 0x012B8, text_category::LTR },
620 { 0x012BF, text_category::Unknown },
621 { 0x012C0, text_category::LTR },
622 { 0x012C1, text_category::Unknown },
623 { 0x012C2, text_category::LTR },
624 { 0x012C6, text_category::Unknown },
625 { 0x012C8, text_category::LTR },
626 { 0x012D7, text_category::Unknown },
627 { 0x012D8, text_category::LTR },
628 { 0x01311, text_category::Unknown },
629 { 0x01312, text_category::LTR },
630 { 0x01316, text_category::Unknown },
631 { 0x01318, text_category::LTR },
632 { 0x0135B, text_category::Unknown },
633 { 0x0135D, text_category::Mark },
634 { 0x01360, text_category::LTR },
635 { 0x0137D, text_category::Unknown },
636 { 0x01380, text_category::LTR },
637 { 0x01390, text_category::None },
638 { 0x0139A, text_category::Unknown },
639 { 0x013A0, text_category::LTR },
640 { 0x013F6, text_category::Unknown },
641 { 0x013F8, text_category::LTR },
642 { 0x013FE, text_category::Unknown },
643 { 0x01400, text_category::None },
644 { 0x01401, text_category::LTR },
645 { 0x01680, text_category::Whitespace },
646 { 0x01681, text_category::LTR },
647 { 0x0169B, text_category::None },
648 { 0x0169D, text_category::Unknown },
649 { 0x016A0, text_category::LTR },
650 { 0x016F9, text_category::Unknown },
651 { 0x01700, text_category::LTR },
652 { 0x0170D, text_category::Unknown },
653 { 0x0170E, text_category::LTR },
654 { 0x01712, text_category::Mark },
655 { 0x01715, text_category::Unknown },
656 { 0x01720, text_category::LTR },
657 { 0x01732, text_category::Mark },
658 { 0x01735, text_category::LTR },
659 { 0x01737, text_category::Unknown },
660 { 0x01740, text_category::LTR },
661 { 0x01752, text_category::Mark },
662 { 0x01754, text_category::Unknown },
663 { 0x01760, text_category::LTR },
664 { 0x0176D, text_category::Unknown },
665 { 0x0176E, text_category::LTR },
666 { 0x01771, text_category::Unknown },
667 { 0x01772, text_category::Mark },
668 { 0x01774, text_category::Unknown },
669 { 0x01780, text_category::LTR },
670 { 0x017B4, text_category::Mark },
671 { 0x017B6, text_category::LTR },
672 { 0x017B7, text_category::Mark },
673 { 0x017BE, text_category::LTR },
674 { 0x017C6, text_category::Mark },
675 { 0x017C7, text_category::LTR },
676 { 0x017C9, text_category::Mark },
677 { 0x017D4, text_category::LTR },
678 { 0x017DB, text_category::None },
679 { 0x017DC, text_category::LTR },
680 { 0x017DD, text_category::Mark },
681 { 0x017DE, text_category::Unknown },
682 { 0x017E0, text_category::LTR },
683 { 0x017EA, text_category::Unknown },
684 { 0x017F0, text_category::None },
685 { 0x017FA, text_category::Unknown },
686 { 0x01800, text_category::None },
687 { 0x0180B, text_category::Mark },
688 { 0x0180E, text_category::None },
689 { 0x0180F, text_category::Unknown },
690 { 0x01810, text_category::LTR },
691 { 0x0181A, text_category::Unknown },
692 { 0x01820, text_category::LTR },
693 { 0x01878, text_category::Unknown },
694 { 0x01880, text_category::LTR },
695 { 0x01885, text_category::Mark },
696 { 0x01887, text_category::LTR },
697 { 0x018A9, text_category::Mark },
698 { 0x018AA, text_category::LTR },
699 { 0x018AB, text_category::Unknown },
700 { 0x018B0, text_category::LTR },
701 { 0x018F6, text_category::Unknown },
702 { 0x01900, text_category::LTR },
703 { 0x0191F, text_category::Unknown },
704 { 0x01920, text_category::Mark },
705 { 0x01923, text_category::LTR },
706 { 0x01927, text_category::Mark },
707 { 0x01929, text_category::LTR },
708 { 0x0192C, text_category::Unknown },
709 { 0x01930, text_category::LTR },
710 { 0x01932, text_category::Mark },
711 { 0x01933, text_category::LTR },
712 { 0x01939, text_category::Mark },
713 { 0x0193C, text_category::Unknown },
714 { 0x01940, text_category::None },
715 { 0x01941, text_category::Unknown },
716 { 0x01944, text_category::None },
717 { 0x01946, text_category::LTR },
718 { 0x0196E, text_category::Unknown },
719 { 0x01970, text_category::LTR },
720 { 0x01975, text_category::Unknown },
721 { 0x01980, text_category::LTR },
722 { 0x019AC, text_category::Unknown },
723 { 0x019B0, text_category::LTR },
724 { 0x019CA, text_category::Unknown },
725 { 0x019D0, text_category::LTR },
726 { 0x019DB, text_category::Unknown },
727 { 0x019DE, text_category::None },
728 { 0x01A00, text_category::LTR },
729 { 0x01A17, text_category::Mark },
730 { 0x01A19, text_category::LTR },
731 { 0x01A1B, text_category::Mark },
732 { 0x01A1C, text_category::Unknown },
733 { 0x01A1E, text_category::LTR },
734 { 0x01A56, text_category::Mark },
735 { 0x01A57, text_category::LTR },
736 { 0x01A58, text_category::Mark },
737 { 0x01A5F, text_category::Unknown },
738 { 0x01A60, text_category::Mark },
739 { 0x01A61, text_category::LTR },
740 { 0x01A62, text_category::Mark },
741 { 0x01A63, text_category::LTR },
742 { 0x01A65, text_category::Mark },
743 { 0x01A6D, text_category::LTR },
744 { 0x01A73, text_category::Mark },
745 { 0x01A7D, text_category::Unknown },
746 { 0x01A7F, text_category::Mark },
747 { 0x01A80, text_category::LTR },
748 { 0x01A8A, text_category::Unknown },
749 { 0x01A90, text_category::LTR },
750 { 0x01A9A, text_category::Unknown },
751 { 0x01AA0, text_category::LTR },
752 { 0x01AAE, text_category::Unknown },
753 { 0x01AB0, text_category::Mark },
754 { 0x01ABF, text_category::Unknown },
755 { 0x01B00, text_category::Mark },
756 { 0x01B04, text_category::LTR },
757 { 0x01B34, text_category::Mark },
758 { 0x01B35, text_category::LTR },
759 { 0x01B36, text_category::Mark },
760 { 0x01B3B, text_category::LTR },
761 { 0x01B3C, text_category::Mark },
762 { 0x01B3D, text_category::LTR },
763 { 0x01B42, text_category::Mark },
764 { 0x01B43, text_category::LTR },
765 { 0x01B4C, text_category::Unknown },
766 { 0x01B50, text_category::LTR },
767 { 0x01B6B, text_category::Mark },
768 { 0x01B74, text_category::LTR },
769 { 0x01B7D, text_category::Unknown },
770 { 0x01B80, text_category::Mark },
771 { 0x01B82, text_category::LTR },
772 { 0x01BA2, text_category::Mark },
773 { 0x01BA6, text_category::LTR },
774 { 0x01BA8, text_category::Mark },
775 { 0x01BAA, text_category::LTR },
776 { 0x01BAB, text_category::Mark },
777 { 0x01BAE, text_category::LTR },
778 { 0x01BE6, text_category::Mark },
779 { 0x01BE7, text_category::LTR },
780 { 0x01BE8, text_category::Mark },
781 { 0x01BEA, text_category::LTR },
782 { 0x01BED, text_category::Mark },
783 { 0x01BEE, text_category::LTR },
784 { 0x01BEF, text_category::Mark },
785 { 0x01BF2, text_category::LTR },
786 { 0x01BF4, text_category::Unknown },
787 { 0x01BFC, text_category::LTR },
788 { 0x01C2C, text_category::Mark },
789 { 0x01C34, text_category::LTR },
790 { 0x01C36, text_category::Mark },
791 { 0x01C38, text_category::Unknown },
792 { 0x01C3B, text_category::LTR },
793 { 0x01C4A, text_category::Unknown },
794 { 0x01C4D, text_category::LTR },
795 { 0x01C89, text_category::Unknown },
796 { 0x01CC0, text_category::LTR },
797 { 0x01CC8, text_category::Unknown },
798 { 0x01CD0, text_category::Mark },
799 { 0x01CD3, text_category::LTR },
800 { 0x01CD4, text_category::Mark },
801 { 0x01CE1, text_category::LTR },
802 { 0x01CE2, text_category::Mark },
803 { 0x01CE9, text_category::LTR },
804 { 0x01CED, text_category::Mark },
805 { 0x01CEE, text_category::LTR },
806 { 0x01CF4, text_category::Mark },
807 { 0x01CF5, text_category::LTR },
808 { 0x01CF8, text_category::Mark },
809 { 0x01CFA, text_category::Unknown },
810 { 0x01D00, text_category::LTR },
811 { 0x01DC0, text_category::Mark },
812 { 0x01DFA, text_category::Unknown },
813 { 0x01DFB, text_category::Mark },
814 { 0x01E00, text_category::LTR },
815 { 0x01F16, text_category::Unknown },
816 { 0x01F18, text_category::LTR },
817 { 0x01F1E, text_category::Unknown },
818 { 0x01F20, text_category::LTR },
819 { 0x01F46, text_category::Unknown },
820 { 0x01F48, text_category::LTR },
821 { 0x01F4E, text_category::Unknown },
822 { 0x01F50, text_category::LTR },
823 { 0x01F58, text_category::Unknown },
824 { 0x01F59, text_category::LTR },
825 { 0x01F5A, text_category::Unknown },
826 { 0x01F5B, text_category::LTR },
827 { 0x01F5C, text_category::Unknown },
828 { 0x01F5D, text_category::LTR },
829 { 0x01F5E, text_category::Unknown },
830 { 0x01F5F, text_category::LTR },
831 { 0x01F7E, text_category::Unknown },
832 { 0x01F80, text_category::LTR },
833 { 0x01FB5, text_category::Unknown },
834 { 0x01FB6, text_category::LTR },
835 { 0x01FBD, text_category::None },
836 { 0x01FBE, text_category::LTR },
837 { 0x01FBF, text_category::None },
838 { 0x01FC2, text_category::LTR },
839 { 0x01FC5, text_category::Unknown },
840 { 0x01FC6, text_category::LTR },
841 { 0x01FCD, text_category::None },
842 { 0x01FD0, text_category::LTR },
843 { 0x01FD4, text_category::Unknown },
844 { 0x01FD6, text_category::LTR },
845 { 0x01FDC, text_category::Unknown },
846 { 0x01FDD, text_category::None },
847 { 0x01FE0, text_category::LTR },
848 { 0x01FED, text_category::None },
849 { 0x01FF0, text_category::Unknown },
850 { 0x01FF2, text_category::LTR },
851 { 0x01FF5, text_category::Unknown },
852 { 0x01FF6, text_category::LTR },
853 { 0x01FFD, text_category::None },
854 { 0x01FFF, text_category::Unknown },
855 { 0x02000, text_category::Whitespace },
856 { 0x0200B, text_category::None },
857 { 0x0200E, text_category::LTR },
858 { 0x0200F, text_category::RTL },
859 { 0x02010, text_category::None },
860 { 0x02028, text_category::Whitespace },
861 { 0x0202A, text_category::None },
862 { 0x0205F, text_category::Whitespace },
863 { 0x02060, text_category::None },
864 { 0x02065, text_category::Unknown },
865 { 0x02066, text_category::None },
866 { 0x02070, text_category::Digit },
867 { 0x02071, text_category::LTR },
868 { 0x02072, text_category::Unknown },
869 { 0x02074, text_category::Digit },
870 { 0x0207A, text_category::None },
871 { 0x0207F, text_category::LTR },
872 { 0x02080, text_category::Digit },
873 { 0x0208A, text_category::None },
874 { 0x0208F, text_category::Unknown },
875 { 0x02090, text_category::LTR },
876 { 0x0209D, text_category::Unknown },
877 { 0x020A0, text_category::None },
878 { 0x020C0, text_category::Unknown },
879 { 0x020D0, text_category::Mark },
880 { 0x020F1, text_category::Unknown },
881 { 0x02100, text_category::None },
882 { 0x02102, text_category::LTR },
883 { 0x02103, text_category::None },
884 { 0x02107, text_category::LTR },
885 { 0x02108, text_category::None },
886 { 0x0210A, text_category::LTR },
887 { 0x02114, text_category::None },
888 { 0x02115, text_category::LTR },
889 { 0x02116, text_category::None },
890 { 0x02119, text_category::LTR },
891 { 0x0211E, text_category::None },
892 { 0x02124, text_category::LTR },
893 { 0x02125, text_category::None },
894 { 0x02126, text_category::LTR },
895 { 0x02127, text_category::None },
896 { 0x02128, text_category::LTR },
897 { 0x02129, text_category::None },
898 { 0x0212A, text_category::LTR },
899 { 0x0212E, text_category::None },
900 { 0x0212F, text_category::LTR },
901 { 0x0213A, text_category::None },
902 { 0x0213C, text_category::LTR },
903 { 0x02140, text_category::None },
904 { 0x02145, text_category::LTR },
905 { 0x0214A, text_category::None },
906 { 0x0214E, text_category::LTR },
907 { 0x02150, text_category::None },
908 { 0x02160, text_category::LTR },
909 { 0x02189, text_category::None },
910 { 0x0218C, text_category::Unknown },
911 { 0x02190, text_category::None },
912 { 0x02336, text_category::LTR },
913 { 0x0237B, text_category::None },
914 { 0x02395, text_category::LTR },
915 { 0x02396, text_category::None },
916 { 0x02427, text_category::Unknown },
917 { 0x02440, text_category::None },
918 { 0x0244B, text_category::Unknown },
919 { 0x02460, text_category::None },
920 { 0x02488, text_category::Digit },
921 { 0x0249C, text_category::LTR },
922 { 0x024EA, text_category::None },
923 { 0x026AC, text_category::LTR },
924 { 0x026AD, text_category::None },
925 { 0x02800, text_category::LTR },
926 { 0x02900, text_category::None },
927 { 0x02B74, text_category::Unknown },
928 { 0x02B76, text_category::None },
929 { 0x02B96, text_category::Unknown },
930 { 0x02B98, text_category::None },
931 { 0x02BBA, text_category::Unknown },
932 { 0x02BBD, text_category::None },
933 { 0x02BC9, text_category::Unknown },
934 { 0x02BCA, text_category::None },
935 { 0x02BD3, text_category::Unknown },
936 { 0x02BEC, text_category::None },
937 { 0x02BF0, text_category::Unknown },
938 { 0x02C00, text_category::LTR },
939 { 0x02C2F, text_category::Unknown },
940 { 0x02C30, text_category::LTR },
941 { 0x02C5F, text_category::Unknown },
942 { 0x02C60, text_category::LTR },
943 { 0x02CE5, text_category::None },
944 { 0x02CEB, text_category::LTR },
945 { 0x02CEF, text_category::Mark },
946 { 0x02CF2, text_category::LTR },
947 { 0x02CF4, text_category::Unknown },
948 { 0x02CF9, text_category::None },
949 { 0x02D00, text_category::LTR },
950 { 0x02D26, text_category::Unknown },
951 { 0x02D27, text_category::LTR },
952 { 0x02D28, text_category::Unknown },
953 { 0x02D2D, text_category::LTR },
954 { 0x02D2E, text_category::Unknown },
955 { 0x02D30, text_category::LTR },
956 { 0x02D68, text_category::Unknown },
957 { 0x02D6F, text_category::LTR },
958 { 0x02D71, text_category::Unknown },
959 { 0x02D7F, text_category::Mark },
960 { 0x02D80, text_category::LTR },
961 { 0x02D97, text_category::Unknown },
962 { 0x02DA0, text_category::LTR },
963 { 0x02DA7, text_category::Unknown },
964 { 0x02DA8, text_category::LTR },
965 { 0x02DAF, text_category::Unknown },
966 { 0x02DB0, text_category::LTR },
967 { 0x02DB7, text_category::Unknown },
968 { 0x02DB8, text_category::LTR },
969 { 0x02DBF, text_category::Unknown },
970 { 0x02DC0, text_category::LTR },
971 { 0x02DC7, text_category::Unknown },
972 { 0x02DC8, text_category::LTR },
973 { 0x02DCF, text_category::Unknown },
974 { 0x02DD0, text_category::LTR },
975 { 0x02DD7, text_category::Unknown },
976 { 0x02DD8, text_category::LTR },
977 { 0x02DDF, text_category::Unknown },
978 { 0x02DE0, text_category::Mark },
979 { 0x02E00, text_category::None },
980 { 0x02E4A, text_category::Unknown },
981 { 0x02E80, text_category::None },
982 { 0x02E9A, text_category::Unknown },
983 { 0x02E9B, text_category::None },
984 { 0x02EF4, text_category::Unknown },
985 { 0x02F00, text_category::None },
986 { 0x02FD6, text_category::Unknown },
987 { 0x02FF0, text_category::None },
988 { 0x02FFC, text_category::Unknown },
989 { 0x03000, text_category::Whitespace },
990 { 0x03001, text_category::None },
991 { 0x03005, text_category::LTR },
992 { 0x03008, text_category::None },
993 { 0x03021, text_category::LTR },
994 { 0x0302A, text_category::Mark },
995 { 0x0302E, text_category::LTR },
996 { 0x03030, text_category::None },
997 { 0x03031, text_category::LTR },
998 { 0x03036, text_category::None },
999 { 0x03038, text_category::LTR },
1000 { 0x0303D, text_category::None },
1001 { 0x03040, text_category::Unknown },
1002 { 0x03041, text_category::LTR },
1003 { 0x03097, text_category::Unknown },
1004 { 0x03099, text_category::Mark },
1005 { 0x0309B, text_category::None },
1006 { 0x0309D, text_category::LTR },
1007 { 0x030A0, text_category::None },
1008 { 0x030A1, text_category::LTR },
1009 { 0x030FB, text_category::None },
1010 { 0x030FC, text_category::LTR },
1011 { 0x03100, text_category::Unknown },
1012 { 0x03105, text_category::LTR },
1013 { 0x0312F, text_category::Unknown },
1014 { 0x03131, text_category::LTR },
1015 { 0x0318F, text_category::Unknown },
1016 { 0x03190, text_category::LTR },
1017 { 0x031BB, text_category::Unknown },
1018 { 0x031C0, text_category::None },
1019 { 0x031E4, text_category::Unknown },
1020 { 0x031F0, text_category::LTR },
1021 { 0x0321D, text_category::None },
1022 { 0x0321F, text_category::Unknown },
1023 { 0x03220, text_category::LTR },
1024 { 0x03250, text_category::None },
1025 { 0x03260, text_category::LTR },
1026 { 0x0327C, text_category::None },
1027 { 0x0327F, text_category::LTR },
1028 { 0x032B1, text_category::None },
1029 { 0x032C0, text_category::LTR },
1030 { 0x032CC, text_category::None },
1031 { 0x032D0, text_category::LTR },
1032 { 0x032FF, text_category::Unknown },
1033 { 0x03300, text_category::LTR },
1034 { 0x03377, text_category::None },
1035 { 0x0337B, text_category::LTR },
1036 { 0x033DE, text_category::None },
1037 { 0x033E0, text_category::LTR },
1038 { 0x033FF, text_category::None },
1039 { 0x03400, text_category::LTR },
1040 { 0x04DC0, text_category::None },
1041 { 0x04E00, text_category::LTR },
1042 { 0x0A490, text_category::None },
1043 { 0x0A4C7, text_category::Unknown },
1044 { 0x0A4D0, text_category::LTR },
1045 { 0x0A60D, text_category::None },
1046 { 0x0A610, text_category::LTR },
1047 { 0x0A62C, text_category::Unknown },
1048 { 0x0A640, text_category::LTR },
1049 { 0x0A66F, text_category::Mark },
1050 { 0x0A673, text_category::None },
1051 { 0x0A674, text_category::Mark },
1052 { 0x0A67E, text_category::None },
1053 { 0x0A680, text_category::LTR },
1054 { 0x0A69E, text_category::Mark },
1055 { 0x0A6A0, text_category::LTR },
1056 { 0x0A6F0, text_category::Mark },
1057 { 0x0A6F2, text_category::LTR },
1058 { 0x0A6F8, text_category::Unknown },
1059 { 0x0A700, text_category::None },
1060 { 0x0A722, text_category::LTR },
1061 { 0x0A788, text_category::None },
1062 { 0x0A789, text_category::LTR },
1063 { 0x0A7AF, text_category::Unknown },
1064 { 0x0A7B0, text_category::LTR },
1065 { 0x0A7B8, text_category::Unknown },
1066 { 0x0A7F7, text_category::LTR },
1067 { 0x0A802, text_category::Mark },
1068 { 0x0A803, text_category::LTR },
1069 { 0x0A806, text_category::Mark },
1070 { 0x0A807, text_category::LTR },
1071 { 0x0A80B, text_category::Mark },
1072 { 0x0A80C, text_category::LTR },
1073 { 0x0A825, text_category::Mark },
1074 { 0x0A827, text_category::LTR },
1075 { 0x0A828, text_category::None },
1076 { 0x0A82C, text_category::Unknown },
1077 { 0x0A830, text_category::LTR },
1078 { 0x0A838, text_category::None },
1079 { 0x0A83A, text_category::Unknown },
1080 { 0x0A840, text_category::LTR },
1081 { 0x0A874, text_category::None },
1082 { 0x0A878, text_category::Unknown },
1083 { 0x0A880, text_category::LTR },
1084 { 0x0A8C4, text_category::Mark },
1085 { 0x0A8C6, text_category::Unknown },
1086 { 0x0A8CE, text_category::LTR },
1087 { 0x0A8DA, text_category::Unknown },
1088 { 0x0A8E0, text_category::Mark },
1089 { 0x0A8F2, text_category::LTR },
1090 { 0x0A8FE, text_category::Unknown },
1091 { 0x0A900, text_category::LTR },
1092 { 0x0A926, text_category::Mark },
1093 { 0x0A92E, text_category::LTR },
1094 { 0x0A947, text_category::Mark },
1095 { 0x0A952, text_category::LTR },
1096 { 0x0A954, text_category::Unknown },
1097 { 0x0A95F, text_category::LTR },
1098 { 0x0A97D, text_category::Unknown },
1099 { 0x0A980, text_category::Mark },
1100 { 0x0A983, text_category::LTR },
1101 { 0x0A9B3, text_category::Mark },
1102 { 0x0A9B4, text_category::LTR },
1103 { 0x0A9B6, text_category::Mark },
1104 { 0x0A9BA, text_category::LTR },
1105 { 0x0A9BC, text_category::Mark },
1106 { 0x0A9BD, text_category::LTR },
1107 { 0x0A9CE, text_category::Unknown },
1108 { 0x0A9CF, text_category::LTR },
1109 { 0x0A9DA, text_category::Unknown },
1110 { 0x0A9DE, text_category::LTR },
1111 { 0x0A9E5, text_category::Mark },
1112 { 0x0A9E6, text_category::LTR },
1113 { 0x0A9FF, text_category::Unknown },
1114 { 0x0AA00, text_category::LTR },
1115 { 0x0AA29, text_category::Mark },
1116 { 0x0AA2F, text_category::LTR },
1117 { 0x0AA31, text_category::Mark },
1118 { 0x0AA33, text_category::LTR },
1119 { 0x0AA35, text_category::Mark },
1120 { 0x0AA37, text_category::Unknown },
1121 { 0x0AA40, text_category::LTR },
1122 { 0x0AA43, text_category::Mark },
1123 { 0x0AA44, text_category::LTR },
1124 { 0x0AA4C, text_category::Mark },
1125 { 0x0AA4D, text_category::LTR },
1126 { 0x0AA4E, text_category::Unknown },
1127 { 0x0AA50, text_category::LTR },
1128 { 0x0AA5A, text_category::Unknown },
1129 { 0x0AA5C, text_category::LTR },
1130 { 0x0AA7C, text_category::Mark },
1131 { 0x0AA7D, text_category::LTR },
1132 { 0x0AAB0, text_category::Mark },
1133 { 0x0AAB1, text_category::LTR },
1134 { 0x0AAB2, text_category::Mark },
1135 { 0x0AAB5, text_category::LTR },
1136 { 0x0AAB7, text_category::Mark },
1137 { 0x0AAB9, text_category::LTR },
1138 { 0x0AABE, text_category::Mark },
1139 { 0x0AAC0, text_category::LTR },
1140 { 0x0AAC1, text_category::Mark },
1141 { 0x0AAC2, text_category::LTR },
1142 { 0x0AAC3, text_category::Unknown },
1143 { 0x0AADB, text_category::LTR },
1144 { 0x0AAEC, text_category::Mark },
1145 { 0x0AAEE, text_category::LTR },
1146 { 0x0AAF6, text_category::Mark },
1147 { 0x0AAF7, text_category::Unknown },
1148 { 0x0AB01, text_category::LTR },
1149 { 0x0AB07, text_category::Unknown },
1150 { 0x0AB09, text_category::LTR },
1151 { 0x0AB0F, text_category::Unknown },
1152 { 0x0AB11, text_category::LTR },
1153 { 0x0AB17, text_category::Unknown },
1154 { 0x0AB20, text_category::LTR },
1155 { 0x0AB27, text_category::Unknown },
1156 { 0x0AB28, text_category::LTR },
1157 { 0x0AB2F, text_category::Unknown },
1158 { 0x0AB30, text_category::LTR },
1159 { 0x0AB66, text_category::Unknown },
1160 { 0x0AB70, text_category::LTR },
1161 { 0x0ABE5, text_category::Mark },
1162 { 0x0ABE6, text_category::LTR },
1163 { 0x0ABE8, text_category::Mark },
1164 { 0x0ABE9, text_category::LTR },
1165 { 0x0ABED, text_category::Mark },
1166 { 0x0ABEE, text_category::Unknown },
1167 { 0x0ABF0, text_category::LTR },
1168 { 0x0ABFA, text_category::Unknown },
1169 { 0x0AC00, text_category::LTR },
1170 { 0x0FB1D, text_category::RTL },
1171 { 0x0FB1E, text_category::Mark },
1172 { 0x0FB1F, text_category::RTL },
1173 { 0x0FB29, text_category::None },
1174 { 0x0FB2A, text_category::RTL },
1175 { 0x0FB37, text_category::Unknown },
1176 { 0x0FB38, text_category::RTL },
1177 { 0x0FB3D, text_category::Unknown },
1178 { 0x0FB3E, text_category::RTL },
1179 { 0x0FB3F, text_category::Unknown },
1180 { 0x0FB40, text_category::RTL },
1181 { 0x0FB42, text_category::Unknown },
1182 { 0x0FB43, text_category::RTL },
1183 { 0x0FB45, text_category::Unknown },
1184 { 0x0FB46, text_category::RTL },
1185 { 0x0FBC2, text_category::Unknown },
1186 { 0x0FBD3, text_category::RTL },
1187 { 0x0FD3E, text_category::None },
1188 { 0x0FD40, text_category::Unknown },
1189 { 0x0FD50, text_category::RTL },
1190 { 0x0FD90, text_category::Unknown },
1191 { 0x0FD92, text_category::RTL },
1192 { 0x0FDC8, text_category::Unknown },
1193 { 0x0FDF0, text_category::RTL },
1194 { 0x0FDFD, text_category::None },
1195 { 0x0FDFE, text_category::Unknown },
1196 { 0x0FE00, text_category::Mark },
1197 { 0x0FE10, text_category::None },
1198 { 0x0FE1A, text_category::Unknown },
1199 { 0x0FE20, text_category::Mark },
1200 { 0x0FE30, text_category::None },
1201 { 0x0FE53, text_category::Unknown },
1202 { 0x0FE54, text_category::None },
1203 { 0x0FE67, text_category::Unknown },
1204 { 0x0FE68, text_category::None },
1205 { 0x0FE6C, text_category::Unknown },
1206 { 0x0FE70, text_category::RTL },
1207 { 0x0FE75, text_category::Unknown },
1208 { 0x0FE76, text_category::RTL },
1209 { 0x0FEFD, text_category::Unknown },
1210 { 0x0FEFF, text_category::None },
1211 { 0x0FF00, text_category::Unknown },
1212 { 0x0FF01, text_category::None },
1213 { 0x0FF10, text_category::Digit },
1214 { 0x0FF1A, text_category::None },
1215 { 0x0FF21, text_category::LTR },
1216 { 0x0FF3B, text_category::None },
1217 { 0x0FF41, text_category::LTR },
1218 { 0x0FF5B, text_category::None },
1219 { 0x0FF66, text_category::LTR },
1220 { 0x0FFBF, text_category::Unknown },
1221 { 0x0FFC2, text_category::LTR },
1222 { 0x0FFC8, text_category::Unknown },
1223 { 0x0FFCA, text_category::LTR },
1224 { 0x0FFD0, text_category::Unknown },
1225 { 0x0FFD2, text_category::LTR },
1226 { 0x0FFD8, text_category::Unknown },
1227 { 0x0FFDA, text_category::LTR },
1228 { 0x0FFDD, text_category::Unknown },
1229 { 0x0FFE0, text_category::None },
1230 { 0x0FFE7, text_category::Unknown },
1231 { 0x0FFE8, text_category::None },
1232 { 0x0FFEF, text_category::Unknown },
1233 { 0x0FFF9, text_category::None },
1234 { 0x0FFFE, text_category::Unknown },
1235 { 0x10000, text_category::LTR },
1236 { 0x1000C, text_category::Unknown },
1237 { 0x1000D, text_category::LTR },
1238 { 0x10027, text_category::Unknown },
1239 { 0x10028, text_category::LTR },
1240 { 0x1003B, text_category::Unknown },
1241 { 0x1003C, text_category::LTR },
1242 { 0x1003E, text_category::Unknown },
1243 { 0x1003F, text_category::LTR },
1244 { 0x1004E, text_category::Unknown },
1245 { 0x10050, text_category::LTR },
1246 { 0x1005E, text_category::Unknown },
1247 { 0x10080, text_category::LTR },
1248 { 0x100FB, text_category::Unknown },
1249 { 0x10100, text_category::LTR },
1250 { 0x10101, text_category::None },
1251 { 0x10102, text_category::LTR },
1252 { 0x10103, text_category::Unknown },
1253 { 0x10107, text_category::LTR },
1254 { 0x10134, text_category::Unknown },
1255 { 0x10137, text_category::LTR },
1256 { 0x10140, text_category::None },
1257 { 0x1018D, text_category::LTR },
1258 { 0x1018F, text_category::Unknown },
1259 { 0x10190, text_category::None },
1260 { 0x1019C, text_category::Unknown },
1261 { 0x101A0, text_category::None },
1262 { 0x101A1, text_category::Unknown },
1263 { 0x101D0, text_category::LTR },
1264 { 0x101FD, text_category::Mark },
1265 { 0x101FE, text_category::Unknown },
1266 { 0x10280, text_category::LTR },
1267 { 0x1029D, text_category::Unknown },
1268 { 0x102A0, text_category::LTR },
1269 { 0x102D1, text_category::Unknown },
1270 { 0x102E0, text_category::Mark },
1271 { 0x102E1, text_category::Digit },
1272 { 0x102FC, text_category::Unknown },
1273 { 0x10300, text_category::LTR },
1274 { 0x10324, text_category::Unknown },
1275 { 0x1032D, text_category::LTR },
1276 { 0x1034B, text_category::Unknown },
1277 { 0x10350, text_category::LTR },
1278 { 0x10376, text_category::Mark },
1279 { 0x1037B, text_category::Unknown },
1280 { 0x10380, text_category::LTR },
1281 { 0x1039E, text_category::Unknown },
1282 { 0x1039F, text_category::LTR },
1283 { 0x103C4, text_category::Unknown },
1284 { 0x103C8, text_category::LTR },
1285 { 0x103D6, text_category::Unknown },
1286 { 0x10400, text_category::LTR },
1287 { 0x1049E, text_category::Unknown },
1288 { 0x104A0, text_category::LTR },
1289 { 0x104AA, text_category::Unknown },
1290 { 0x104B0, text_category::LTR },
1291 { 0x104D4, text_category::Unknown },
1292 { 0x104D8, text_category::LTR },
1293 { 0x104FC, text_category::Unknown },
1294 { 0x10500, text_category::LTR },
1295 { 0x10528, text_category::Unknown },
1296 { 0x10530, text_category::LTR },
1297 { 0x10564, text_category::Unknown },
1298 { 0x1056F, text_category::LTR },
1299 { 0x10570, text_category::Unknown },
1300 { 0x10600, text_category::LTR },
1301 { 0x10737, text_category::Unknown },
1302 { 0x10740, text_category::LTR },
1303 { 0x10756, text_category::Unknown },
1304 { 0x10760, text_category::LTR },
1305 { 0x10768, text_category::Unknown },
1306 { 0x10800, text_category::RTL },
1307 { 0x10806, text_category::Unknown },
1308 { 0x10808, text_category::RTL },
1309 { 0x10809, text_category::Unknown },
1310 { 0x1080A, text_category::RTL },
1311 { 0x10836, text_category::Unknown },
1312 { 0x10837, text_category::RTL },
1313 { 0x10839, text_category::Unknown },
1314 { 0x1083C, text_category::RTL },
1315 { 0x1083D, text_category::Unknown },
1316 { 0x1083F, text_category::RTL },
1317 { 0x10856, text_category::Unknown },
1318 { 0x10857, text_category::RTL },
1319 { 0x1089F, text_category::Unknown },
1320 { 0x108A7, text_category::RTL },
1321 { 0x108B0, text_category::Unknown },
1322 { 0x108E0, text_category::RTL },
1323 { 0x108F3, text_category::Unknown },
1324 { 0x108F4, text_category::RTL },
1325 { 0x108F6, text_category::Unknown },
1326 { 0x108FB, text_category::RTL },
1327 { 0x1091C, text_category::Unknown },
1328 { 0x1091F, text_category::None },
1329 { 0x10920, text_category::RTL },
1330 { 0x1093A, text_category::Unknown },
1331 { 0x1093F, text_category::RTL },
1332 { 0x10940, text_category::Unknown },
1333 { 0x10980, text_category::RTL },
1334 { 0x109B8, text_category::Unknown },
1335 { 0x109BC, text_category::RTL },
1336 { 0x109D0, text_category::Unknown },
1337 { 0x109D2, text_category::RTL },
1338 { 0x10A01, text_category::Mark },
1339 { 0x10A04, text_category::Unknown },
1340 { 0x10A05, text_category::Mark },
1341 { 0x10A07, text_category::Unknown },
1342 { 0x10A0C, text_category::Mark },
1343 { 0x10A10, text_category::RTL },
1344 { 0x10A14, text_category::Unknown },
1345 { 0x10A15, text_category::RTL },
1346 { 0x10A18, text_category::Unknown },
1347 { 0x10A19, text_category::RTL },
1348 { 0x10A34, text_category::Unknown },
1349 { 0x10A38, text_category::Mark },
1350 { 0x10A3B, text_category::Unknown },
1351 { 0x10A3F, text_category::Mark },
1352 { 0x10A40, text_category::RTL },
1353 { 0x10A48, text_category::Unknown },
1354 { 0x10A50, text_category::RTL },
1355 { 0x10A59, text_category::Unknown },
1356 { 0x10A60, text_category::RTL },
1357 { 0x10AA0, text_category::Unknown },
1358 { 0x10AC0, text_category::RTL },
1359 { 0x10AE5, text_category::Mark },
1360 { 0x10AE7, text_category::Unknown },
1361 { 0x10AEB, text_category::RTL },
1362 { 0x10AF7, text_category::Unknown },
1363 { 0x10B00, text_category::RTL },
1364 { 0x10B36, text_category::Unknown },
1365 { 0x10B39, text_category::None },
1366 { 0x10B40, text_category::RTL },
1367 { 0x10B56, text_category::Unknown },
1368 { 0x10B58, text_category::RTL },
1369 { 0x10B73, text_category::Unknown },
1370 { 0x10B78, text_category::RTL },
1371 { 0x10B92, text_category::Unknown },
1372 { 0x10B99, text_category::RTL },
1373 { 0x10B9D, text_category::Unknown },
1374 { 0x10BA9, text_category::RTL },
1375 { 0x10BB0, text_category::Unknown },
1376 { 0x10C00, text_category::RTL },
1377 { 0x10C49, text_category::Unknown },
1378 { 0x10C80, text_category::RTL },
1379 { 0x10CB3, text_category::Unknown },
1380 { 0x10CC0, text_category::RTL },
1381 { 0x10CF3, text_category::Unknown },
1382 { 0x10CFA, text_category::RTL },
1383 { 0x10D00, text_category::Unknown },
1384 { 0x10E60, text_category::None },
1385 { 0x10E7F, text_category::Unknown },
1386 { 0x11000, text_category::LTR },
1387 { 0x11001, text_category::Mark },
1388 { 0x11002, text_category::LTR },
1389 { 0x11038, text_category::Mark },
1390 { 0x11047, text_category::LTR },
1391 { 0x1104E, text_category::Unknown },
1392 { 0x11052, text_category::None },
1393 { 0x11066, text_category::LTR },
1394 { 0x11070, text_category::Unknown },
1395 { 0x1107F, text_category::Mark },
1396 { 0x11082, text_category::LTR },
1397 { 0x110B3, text_category::Mark },
1398 { 0x110B7, text_category::LTR },
1399 { 0x110B9, text_category::Mark },
1400 { 0x110BB, text_category::LTR },
1401 { 0x110C2, text_category::Unknown },
1402 { 0x110D0, text_category::LTR },
1403 { 0x110E9, text_category::Unknown },
1404 { 0x110F0, text_category::LTR },
1405 { 0x110FA, text_category::Unknown },
1406 { 0x11100, text_category::Mark },
1407 { 0x11103, text_category::LTR },
1408 { 0x11127, text_category::Mark },
1409 { 0x1112C, text_category::LTR },
1410 { 0x1112D, text_category::Mark },
1411 { 0x11135, text_category::Unknown },
1412 { 0x11136, text_category::LTR },
1413 { 0x11144, text_category::Unknown },
1414 { 0x11150, text_category::LTR },
1415 { 0x11173, text_category::Mark },
1416 { 0x11174, text_category::LTR },
1417 { 0x11177, text_category::Unknown },
1418 { 0x11180, text_category::Mark },
1419 { 0x11182, text_category::LTR },
1420 { 0x111B6, text_category::Mark },
1421 { 0x111BF, text_category::LTR },
1422 { 0x111CA, text_category::Mark },
1423 { 0x111CD, text_category::LTR },
1424 { 0x111CE, text_category::Unknown },
1425 { 0x111D0, text_category::LTR },
1426 { 0x111E0, text_category::Unknown },
1427 { 0x111E1, text_category::LTR },
1428 { 0x111F5, text_category::Unknown },
1429 { 0x11200, text_category::LTR },
1430 { 0x11212, text_category::Unknown },
1431 { 0x11213, text_category::LTR },
1432 { 0x1122F, text_category::Mark },
1433 { 0x11232, text_category::LTR },
1434 { 0x11234, text_category::Mark },
1435 { 0x11235, text_category::LTR },
1436 { 0x11236, text_category::Mark },
1437 { 0x11238, text_category::LTR },
1438 { 0x1123E, text_category::Mark },
1439 { 0x1123F, text_category::Unknown },
1440 { 0x11280, text_category::LTR },
1441 { 0x11287, text_category::Unknown },
1442 { 0x11288, text_category::LTR },
1443 { 0x11289, text_category::Unknown },
1444 { 0x1128A, text_category::LTR },
1445 { 0x1128E, text_category::Unknown },
1446 { 0x1128F, text_category::LTR },
1447 { 0x1129E, text_category::Unknown },
1448 { 0x1129F, text_category::LTR },
1449 { 0x112AA, text_category::Unknown },
1450 { 0x112B0, text_category::LTR },
1451 { 0x112DF, text_category::Mark },
1452 { 0x112E0, text_category::LTR },
1453 { 0x112E3, text_category::Mark },
1454 { 0x112EB, text_category::Unknown },
1455 { 0x112F0, text_category::LTR },
1456 { 0x112FA, text_category::Unknown },
1457 { 0x11300, text_category::Mark },
1458 { 0x11302, text_category::LTR },
1459 { 0x11304, text_category::Unknown },
1460 { 0x11305, text_category::LTR },
1461 { 0x1130D, text_category::Unknown },
1462 { 0x1130F, text_category::LTR },
1463 { 0x11311, text_category::Unknown },
1464 { 0x11313, text_category::LTR },
1465 { 0x11329, text_category::Unknown },
1466 { 0x1132A, text_category::LTR },
1467 { 0x11331, text_category::Unknown },
1468 { 0x11332, text_category::LTR },
1469 { 0x11334, text_category::Unknown },
1470 { 0x11335, text_category::LTR },
1471 { 0x1133A, text_category::Unknown },
1472 { 0x1133C, text_category::Mark },
1473 { 0x1133D, text_category::LTR },
1474 { 0x11340, text_category::Mark },
1475 { 0x11341, text_category::LTR },
1476 { 0x11345, text_category::Unknown },
1477 { 0x11347, text_category::LTR },
1478 { 0x11349, text_category::Unknown },
1479 { 0x1134B, text_category::LTR },
1480 { 0x1134E, text_category::Unknown },
1481 { 0x11350, text_category::LTR },
1482 { 0x11351, text_category::Unknown },
1483 { 0x11357, text_category::LTR },
1484 { 0x11358, text_category::Unknown },
1485 { 0x1135D, text_category::LTR },
1486 { 0x11364, text_category::Unknown },
1487 { 0x11366, text_category::Mark },
1488 { 0x1136D, text_category::Unknown },
1489 { 0x11370, text_category::Mark },
1490 { 0x11375, text_category::Unknown },
1491 { 0x11400, text_category::LTR },
1492 { 0x11438, text_category::Mark },
1493 { 0x11440, text_category::LTR },
1494 { 0x11442, text_category::Mark },
1495 { 0x11445, text_category::LTR },
1496 { 0x11446, text_category::Mark },
1497 { 0x11447, text_category::LTR },
1498 { 0x1145A, text_category::Unknown },
1499 { 0x1145B, text_category::LTR },
1500 { 0x1145C, text_category::Unknown },
1501 { 0x1145D, text_category::LTR },
1502 { 0x1145E, text_category::Unknown },
1503 { 0x11480, text_category::LTR },
1504 { 0x114B3, text_category::Mark },
1505 { 0x114B9, text_category::LTR },
1506 { 0x114BA, text_category::Mark },
1507 { 0x114BB, text_category::LTR },
1508 { 0x114BF, text_category::Mark },
1509 { 0x114C1, text_category::LTR },
1510 { 0x114C2, text_category::Mark },
1511 { 0x114C4, text_category::LTR },
1512 { 0x114C8, text_category::Unknown },
1513 { 0x114D0, text_category::LTR },
1514 { 0x114DA, text_category::Unknown },
1515 { 0x11580, text_category::LTR },
1516 { 0x115B2, text_category::Mark },
1517 { 0x115B6, text_category::Unknown },
1518 { 0x115B8, text_category::LTR },
1519 { 0x115BC, text_category::Mark },
1520 { 0x115BE, text_category::LTR },
1521 { 0x115BF, text_category::Mark },
1522 { 0x115C1, text_category::LTR },
1523 { 0x115DC, text_category::Mark },
1524 { 0x115DE, text_category::Unknown },
1525 { 0x11600, text_category::LTR },
1526 { 0x11633, text_category::Mark },
1527 { 0x1163B, text_category::LTR },
1528 { 0x1163D, text_category::Mark },
1529 { 0x1163E, text_category::LTR },
1530 { 0x1163F, text_category::Mark },
1531 { 0x11641, text_category::LTR },
1532 { 0x11645, text_category::Unknown },
1533 { 0x11650, text_category::LTR },
1534 { 0x1165A, text_category::Unknown },
1535 { 0x11660, text_category::None },
1536 { 0x1166D, text_category::Unknown },
1537 { 0x11680, text_category::LTR },
1538 { 0x116AB, text_category::Mark },
1539 { 0x116AC, text_category::LTR },
1540 { 0x116AD, text_category::Mark },
1541 { 0x116AE, text_category::LTR },
1542 { 0x116B0, text_category::Mark },
1543 { 0x116B6, text_category::LTR },
1544 { 0x116B7, text_category::Mark },
1545 { 0x116B8, text_category::Unknown },
1546 { 0x116C0, text_category::LTR },
1547 { 0x116CA, text_category::Unknown },
1548 { 0x11700, text_category::LTR },
1549 { 0x1171A, text_category::Unknown },
1550 { 0x1171D, text_category::Mark },
1551 { 0x11720, text_category::LTR },
1552 { 0x11722, text_category::Mark },
1553 { 0x11726, text_category::LTR },
1554 { 0x11727, text_category::Mark },
1555 { 0x1172C, text_category::Unknown },
1556 { 0x11730, text_category::LTR },
1557 { 0x11740, text_category::Unknown },
1558 { 0x118A0, text_category::LTR },
1559 { 0x118F3, text_category::Unknown },
1560 { 0x118FF, text_category::LTR },
1561 { 0x11900, text_category::Unknown },
1562 { 0x11A00, text_category::LTR },
1563 { 0x11A01, text_category::Mark },
1564 { 0x11A07, text_category::LTR },
1565 { 0x11A09, text_category::Mark },
1566 { 0x11A0B, text_category::LTR },
1567 { 0x11A33, text_category::Mark },
1568 { 0x11A39, text_category::LTR },
1569 { 0x11A3B, text_category::Mark },
1570 { 0x11A3F, text_category::LTR },
1571 { 0x11A47, text_category::Mark },
1572 { 0x11A48, text_category::Unknown },
1573 { 0x11A50, text_category::LTR },
1574 { 0x11A51, text_category::Mark },
1575 { 0x11A57, text_category::LTR },
1576 { 0x11A59, text_category::Mark },
1577 { 0x11A5C, text_category::LTR },
1578 { 0x11A84, text_category::Unknown },
1579 { 0x11A86, text_category::LTR },
1580 { 0x11A8A, text_category::Mark },
1581 { 0x11A97, text_category::LTR },
1582 { 0x11A98, text_category::Mark },
1583 { 0x11A9A, text_category::LTR },
1584 { 0x11A9D, text_category::Unknown },
1585 { 0x11A9E, text_category::LTR },
1586 { 0x11AA3, text_category::Unknown },
1587 { 0x11AC0, text_category::LTR },
1588 { 0x11AF9, text_category::Unknown },
1589 { 0x11C00, text_category::LTR },
1590 { 0x11C09, text_category::Unknown },
1591 { 0x11C0A, text_category::LTR },
1592 { 0x11C30, text_category::Mark },
1593 { 0x11C37, text_category::Unknown },
1594 { 0x11C38, text_category::Mark },
1595 { 0x11C3E, text_category::LTR },
1596 { 0x11C46, text_category::Unknown },
1597 { 0x11C50, text_category::LTR },
1598 { 0x11C6D, text_category::Unknown },
1599 { 0x11C70, text_category::LTR },
1600 { 0x11C90, text_category::Unknown },
1601 { 0x11C92, text_category::Mark },
1602 { 0x11CA8, text_category::Unknown },
1603 { 0x11CA9, text_category::LTR },
1604 { 0x11CAA, text_category::Mark },
1605 { 0x11CB1, text_category::LTR },
1606 { 0x11CB2, text_category::Mark },
1607 { 0x11CB4, text_category::LTR },
1608 { 0x11CB5, text_category::Mark },
1609 { 0x11CB7, text_category::Unknown },
1610 { 0x11D00, text_category::LTR },
1611 { 0x11D07, text_category::Unknown },
1612 { 0x11D08, text_category::LTR },
1613 { 0x11D0A, text_category::Unknown },
1614 { 0x11D0B, text_category::LTR },
1615 { 0x11D31, text_category::Mark },
1616 { 0x11D37, text_category::Unknown },
1617 { 0x11D3A, text_category::Mark },
1618 { 0x11D3B, text_category::Unknown },
1619 { 0x11D3C, text_category::Mark },
1620 { 0x11D3E, text_category::Unknown },
1621 { 0x11D3F, text_category::Mark },
1622 { 0x11D46, text_category::LTR },
1623 { 0x11D47, text_category::Mark },
1624 { 0x11D48, text_category::Unknown },
1625 { 0x11D50, text_category::LTR },
1626 { 0x11D5A, text_category::Unknown },
1627 { 0x12000, text_category::LTR },
1628 { 0x1239A, text_category::Unknown },
1629 { 0x12400, text_category::LTR },
1630 { 0x1246F, text_category::Unknown },
1631 { 0x12470, text_category::LTR },
1632 { 0x12475, text_category::Unknown },
1633 { 0x12480, text_category::LTR },
1634 { 0x12544, text_category::Unknown },
1635 { 0x13000, text_category::LTR },
1636 { 0x1342F, text_category::Unknown },
1637 { 0x14400, text_category::LTR },
1638 { 0x14647, text_category::Unknown },
1639 { 0x16800, text_category::LTR },
1640 { 0x16A39, text_category::Unknown },
1641 { 0x16A40, text_category::LTR },
1642 { 0x16A5F, text_category::Unknown },
1643 { 0x16A60, text_category::LTR },
1644 { 0x16A6A, text_category::Unknown },
1645 { 0x16A6E, text_category::LTR },
1646 { 0x16A70, text_category::Unknown },
1647 { 0x16AD0, text_category::LTR },
1648 { 0x16AEE, text_category::Unknown },
1649 { 0x16AF0, text_category::Mark },
1650 { 0x16AF5, text_category::LTR },
1651 { 0x16AF6, text_category::Unknown },
1652 { 0x16B00, text_category::LTR },
1653 { 0x16B30, text_category::Mark },
1654 { 0x16B37, text_category::LTR },
1655 { 0x16B46, text_category::Unknown },
1656 { 0x16B50, text_category::LTR },
1657 { 0x16B5A, text_category::Unknown },
1658 { 0x16B5B, text_category::LTR },
1659 { 0x16B62, text_category::Unknown },
1660 { 0x16B63, text_category::LTR },
1661 { 0x16B78, text_category::Unknown },
1662 { 0x16B7D, text_category::LTR },
1663 { 0x16B90, text_category::Unknown },
1664 { 0x16F00, text_category::LTR },
1665 { 0x16F45, text_category::Unknown },
1666 { 0x16F50, text_category::LTR },
1667 { 0x16F7F, text_category::Unknown },
1668 { 0x16F8F, text_category::Mark },
1669 { 0x16F93, text_category::LTR },
1670 { 0x16FA0, text_category::Unknown },
1671 { 0x16FE0, text_category::LTR },
1672 { 0x16FE2, text_category::Unknown },
1673 { 0x17000, text_category::LTR },
1674 { 0x17001, text_category::Unknown },
1675 { 0x187EC, text_category::LTR },
1676 { 0x187ED, text_category::Unknown },
1677 { 0x18800, text_category::LTR },
1678 { 0x18AF3, text_category::Unknown },
1679 { 0x1B000, text_category::LTR },
1680 { 0x1B11F, text_category::Unknown },
1681 { 0x1B170, text_category::LTR },
1682 { 0x1B2FC, text_category::Unknown },
1683 { 0x1BC00, text_category::LTR },
1684 { 0x1BC6B, text_category::Unknown },
1685 { 0x1BC70, text_category::LTR },
1686 { 0x1BC7D, text_category::Unknown },
1687 { 0x1BC80, text_category::LTR },
1688 { 0x1BC89, text_category::Unknown },
1689 { 0x1BC90, text_category::LTR },
1690 { 0x1BC9A, text_category::Unknown },
1691 { 0x1BC9C, text_category::LTR },
1692 { 0x1BC9D, text_category::Mark },
1693 { 0x1BC9F, text_category::LTR },
1694 { 0x1BCA0, text_category::None },
1695 { 0x1BCA4, text_category::Unknown },
1696 { 0x1D000, text_category::LTR },
1697 { 0x1D0F6, text_category::Unknown },
1698 { 0x1D100, text_category::LTR },
1699 { 0x1D127, text_category::Unknown },
1700 { 0x1D129, text_category::LTR },
1701 { 0x1D167, text_category::Mark },
1702 { 0x1D16A, text_category::LTR },
1703 { 0x1D173, text_category::None },
1704 { 0x1D17B, text_category::Mark },
1705 { 0x1D183, text_category::LTR },
1706 { 0x1D185, text_category::Mark },
1707 { 0x1D18C, text_category::LTR },
1708 { 0x1D1AA, text_category::Mark },
1709 { 0x1D1AE, text_category::LTR },
1710 { 0x1D1E9, text_category::Unknown },
1711 { 0x1D200, text_category::None },
1712 { 0x1D242, text_category::Mark },
1713 { 0x1D245, text_category::None },
1714 { 0x1D246, text_category::Unknown },
1715 { 0x1D300, text_category::None },
1716 { 0x1D357, text_category::Unknown },
1717 { 0x1D360, text_category::LTR },
1718 { 0x1D372, text_category::Unknown },
1719 { 0x1D400, text_category::LTR },
1720 { 0x1D455, text_category::Unknown },
1721 { 0x1D456, text_category::LTR },
1722 { 0x1D49D, text_category::Unknown },
1723 { 0x1D49E, text_category::LTR },
1724 { 0x1D4A0, text_category::Unknown },
1725 { 0x1D4A2, text_category::LTR },
1726 { 0x1D4A3, text_category::Unknown },
1727 { 0x1D4A5, text_category::LTR },
1728 { 0x1D4A7, text_category::Unknown },
1729 { 0x1D4A9, text_category::LTR },
1730 { 0x1D4AD, text_category::Unknown },
1731 { 0x1D4AE, text_category::LTR },
1732 { 0x1D4BA, text_category::Unknown },
1733 { 0x1D4BB, text_category::LTR },
1734 { 0x1D4BC, text_category::Unknown },
1735 { 0x1D4BD, text_category::LTR },
1736 { 0x1D4C4, text_category::Unknown },
1737 { 0x1D4C5, text_category::LTR },
1738 { 0x1D506, text_category::Unknown },
1739 { 0x1D507, text_category::LTR },
1740 { 0x1D50B, text_category::Unknown },
1741 { 0x1D50D, text_category::LTR },
1742 { 0x1D515, text_category::Unknown },
1743 { 0x1D516, text_category::LTR },
1744 { 0x1D51D, text_category::Unknown },
1745 { 0x1D51E, text_category::LTR },
1746 { 0x1D53A, text_category::Unknown },
1747 { 0x1D53B, text_category::LTR },
1748 { 0x1D53F, text_category::Unknown },
1749 { 0x1D540, text_category::LTR },
1750 { 0x1D545, text_category::Unknown },
1751 { 0x1D546, text_category::LTR },
1752 { 0x1D547, text_category::Unknown },
1753 { 0x1D54A, text_category::LTR },
1754 { 0x1D551, text_category::Unknown },
1755 { 0x1D552, text_category::LTR },
1756 { 0x1D6A6, text_category::Unknown },
1757 { 0x1D6A8, text_category::LTR },
1758 { 0x1D6DB, text_category::None },
1759 { 0x1D6DC, text_category::LTR },
1760 { 0x1D715, text_category::None },
1761 { 0x1D716, text_category::LTR },
1762 { 0x1D74F, text_category::None },
1763 { 0x1D750, text_category::LTR },
1764 { 0x1D789, text_category::None },
1765 { 0x1D78A, text_category::LTR },
1766 { 0x1D7C3, text_category::None },
1767 { 0x1D7C4, text_category::LTR },
1768 { 0x1D7CC, text_category::Unknown },
1769 { 0x1D7CE, text_category::Digit },
1770 { 0x1D800, text_category::LTR },
1771 { 0x1DA00, text_category::Mark },
1772 { 0x1DA37, text_category::LTR },
1773 { 0x1DA3B, text_category::Mark },
1774 { 0x1DA6D, text_category::LTR },
1775 { 0x1DA75, text_category::Mark },
1776 { 0x1DA76, text_category::LTR },
1777 { 0x1DA84, text_category::Mark },
1778 { 0x1DA85, text_category::LTR },
1779 { 0x1DA8C, text_category::Unknown },
1780 { 0x1DA9B, text_category::Mark },
1781 { 0x1DAA0, text_category::Unknown },
1782 { 0x1DAA1, text_category::Mark },
1783 { 0x1DAB0, text_category::Unknown },
1784 { 0x1E000, text_category::Mark },
1785 { 0x1E007, text_category::Unknown },
1786 { 0x1E008, text_category::Mark },
1787 { 0x1E019, text_category::Unknown },
1788 { 0x1E01B, text_category::Mark },
1789 { 0x1E022, text_category::Unknown },
1790 { 0x1E023, text_category::Mark },
1791 { 0x1E025, text_category::Unknown },
1792 { 0x1E026, text_category::Mark },
1793 { 0x1E02B, text_category::Unknown },
1794 { 0x1E800, text_category::RTL },
1795 { 0x1E8C5, text_category::Unknown },
1796 { 0x1E8C7, text_category::RTL },
1797 { 0x1E8D0, text_category::Mark },
1798 { 0x1E8D7, text_category::Unknown },
1799 { 0x1E900, text_category::RTL },
1800 { 0x1E944, text_category::Mark },
1801 { 0x1E94B, text_category::Unknown },
1802 { 0x1E950, text_category::RTL },
1803 { 0x1E95A, text_category::Unknown },
1804 { 0x1E95E, text_category::RTL },
1805 { 0x1E960, text_category::Unknown },
1806 { 0x1EE00, text_category::RTL },
1807 { 0x1EE04, text_category::Unknown },
1808 { 0x1EE05, text_category::RTL },
1809 { 0x1EE20, text_category::Unknown },
1810 { 0x1EE21, text_category::RTL },
1811 { 0x1EE23, text_category::Unknown },
1812 { 0x1EE24, text_category::RTL },
1813 { 0x1EE25, text_category::Unknown },
1814 { 0x1EE27, text_category::RTL },
1815 { 0x1EE28, text_category::Unknown },
1816 { 0x1EE29, text_category::RTL },
1817 { 0x1EE33, text_category::Unknown },
1818 { 0x1EE34, text_category::RTL },
1819 { 0x1EE38, text_category::Unknown },
1820 { 0x1EE39, text_category::RTL },
1821 { 0x1EE3A, text_category::Unknown },
1822 { 0x1EE3B, text_category::RTL },
1823 { 0x1EE3C, text_category::Unknown },
1824 { 0x1EE42, text_category::RTL },
1825 { 0x1EE43, text_category::Unknown },
1826 { 0x1EE47, text_category::RTL },
1827 { 0x1EE48, text_category::Unknown },
1828 { 0x1EE49, text_category::RTL },
1829 { 0x1EE4A, text_category::Unknown },
1830 { 0x1EE4B, text_category::RTL },
1831 { 0x1EE4C, text_category::Unknown },
1832 { 0x1EE4D, text_category::RTL },
1833 { 0x1EE50, text_category::Unknown },
1834 { 0x1EE51, text_category::RTL },
1835 { 0x1EE53, text_category::Unknown },
1836 { 0x1EE54, text_category::RTL },
1837 { 0x1EE55, text_category::Unknown },
1838 { 0x1EE57, text_category::RTL },
1839 { 0x1EE58, text_category::Unknown },
1840 { 0x1EE59, text_category::RTL },
1841 { 0x1EE5A, text_category::Unknown },
1842 { 0x1EE5B, text_category::RTL },
1843 { 0x1EE5C, text_category::Unknown },
1844 { 0x1EE5D, text_category::RTL },
1845 { 0x1EE5E, text_category::Unknown },
1846 { 0x1EE5F, text_category::RTL },
1847 { 0x1EE60, text_category::Unknown },
1848 { 0x1EE61, text_category::RTL },
1849 { 0x1EE63, text_category::Unknown },
1850 { 0x1EE64, text_category::RTL },
1851 { 0x1EE65, text_category::Unknown },
1852 { 0x1EE67, text_category::RTL },
1853 { 0x1EE6B, text_category::Unknown },
1854 { 0x1EE6C, text_category::RTL },
1855 { 0x1EE73, text_category::Unknown },
1856 { 0x1EE74, text_category::RTL },
1857 { 0x1EE78, text_category::Unknown },
1858 { 0x1EE79, text_category::RTL },
1859 { 0x1EE7D, text_category::Unknown },
1860 { 0x1EE7E, text_category::RTL },
1861 { 0x1EE7F, text_category::Unknown },
1862 { 0x1EE80, text_category::RTL },
1863 { 0x1EE8A, text_category::Unknown },
1864 { 0x1EE8B, text_category::RTL },
1865 { 0x1EE9C, text_category::Unknown },
1866 { 0x1EEA1, text_category::RTL },
1867 { 0x1EEA4, text_category::Unknown },
1868 { 0x1EEA5, text_category::RTL },
1869 { 0x1EEAA, text_category::Unknown },
1870 { 0x1EEAB, text_category::RTL },
1871 { 0x1EEBC, text_category::Unknown },
1872 { 0x1EEF0, text_category::None },
1873 { 0x1EEF2, text_category::Unknown },
1874 { 0x1F000, text_category::None },
1875 { 0x1F02C, text_category::Unknown },
1876 { 0x1F030, text_category::None },
1877 { 0x1F094, text_category::Unknown },
1878 { 0x1F0A0, text_category::None },
1879 { 0x1F0AF, text_category::Unknown },
1880 { 0x1F0B1, text_category::None },
1881 { 0x1F0C0, text_category::Unknown },
1882 { 0x1F0C1, text_category::None },
1883 { 0x1F0D0, text_category::Unknown },
1884 { 0x1F0D1, text_category::None },
1885 { 0x1F0F6, text_category::Unknown },
1886 { 0x1F100, text_category::Digit },
1887 { 0x1F10B, text_category::None },
1888 { 0x1F10D, text_category::Unknown },
1889 { 0x1F110, text_category::LTR },
1890 { 0x1F12F, text_category::Unknown },
1891 { 0x1F130, text_category::LTR },
1892 { 0x1F16A, text_category::None },
1893 { 0x1F16C, text_category::Unknown },
1894 { 0x1F170, text_category::LTR },
1895 { 0x1F1AD, text_category::Unknown },
1896 { 0x1F1E6, text_category::LTR },
1897 { 0x1F203, text_category::Unknown },
1898 { 0x1F210, text_category::LTR },
1899 { 0x1F23C, text_category::Unknown },
1900 { 0x1F240, text_category::LTR },
1901 { 0x1F249, text_category::Unknown },
1902 { 0x1F250, text_category::LTR },
1903 { 0x1F252, text_category::Unknown },
1904 { 0x1F260, text_category::None },
1905 { 0x1F266, text_category::Unknown },
1906 { 0x1F300, text_category::None },
1907 { 0x1F6D5, text_category::Unknown },
1908 { 0x1F6E0, text_category::None },
1909 { 0x1F6ED, text_category::Unknown },
1910 { 0x1F6F0, text_category::None },
1911 { 0x1F6F9, text_category::Unknown },
1912 { 0x1F700, text_category::None },
1913 { 0x1F774, text_category::Unknown },
1914 { 0x1F780, text_category::None },
1915 { 0x1F7D5, text_category::Unknown },
1916 { 0x1F800, text_category::None },
1917 { 0x1F80C, text_category::Unknown },
1918 { 0x1F810, text_category::None },
1919 { 0x1F848, text_category::Unknown },
1920 { 0x1F850, text_category::None },
1921 { 0x1F85A, text_category::Unknown },
1922 { 0x1F860, text_category::None },
1923 { 0x1F888, text_category::Unknown },
1924 { 0x1F890, text_category::None },
1925 { 0x1F8AE, text_category::Unknown },
1926 { 0x1F900, text_category::None },
1927 { 0x1F90C, text_category::Unknown },
1928 { 0x1F910, text_category::None },
1929 { 0x1F93F, text_category::Unknown },
1930 { 0x1F940, text_category::None },
1931 { 0x1F94D, text_category::Unknown },
1932 { 0x1F950, text_category::None },
1933 { 0x1F96C, text_category::Unknown },
1934 { 0x1F980, text_category::None },
1935 { 0x1F998, text_category::Unknown },
1936 { 0x1F9C0, text_category::None },
1937 { 0x1F9C1, text_category::Unknown },
1938 { 0x1F9D0, text_category::None },
1939 { 0x1F9E7, text_category::Unknown },
1940 { 0x20000, text_category::LTR },
1941 { 0x20001, text_category::Unknown },
1942 { 0x2A6D6, text_category::LTR },
1943 { 0x2A6D7, text_category::Unknown },
1944 { 0x2A700, text_category::LTR },
1945 { 0x2A701, text_category::Unknown },
1946 { 0x2B734, text_category::LTR },
1947 { 0x2B735, text_category::Unknown },
1948 { 0x2B740, text_category::LTR },
1949 { 0x2B741, text_category::Unknown },
1950 { 0x2B81D, text_category::LTR },
1951 { 0x2B81E, text_category::Unknown },
1952 { 0x2B820, text_category::LTR },
1953 { 0x2B821, text_category::Unknown },
1954 { 0x2CEA1, text_category::LTR },
1955 { 0x2CEA2, text_category::Unknown },
1956 { 0x2CEB0, text_category::LTR },
1957 { 0x2CEB1, text_category::Unknown },
1958 { 0x2EBE0, text_category::LTR },
1959 { 0x2EBE1, text_category::Unknown },
1960 { 0x2F800, text_category::LTR },
1961 { 0x2FA1E, text_category::Unknown },
1962 { 0xE0001, text_category::None },
1963 { 0xE0002, text_category::Unknown },
1964 { 0xE0020, text_category::None },
1965 { 0xE0080, text_category::Unknown },
1966 { 0xE0100, text_category::Mark },
1967 { 0xE01F0, text_category::Unknown },
1968 { 0xF0000, text_category::LTR },
1969 { 0xF0001, text_category::Unknown },
1970 { 0xFFFFD, text_category::LTR },
1971 { 0xFFFFE, text_category::Unknown },
1972 { 0x100000, text_category::LTR },
1973 { 0x100001, text_category::Unknown },
1974 { 0x10FFFD, text_category::LTR }
1975 };
1976 }
1977
1978 inline text_category get_text_category(const i_emoji_atlas& aEmojiAtlas, const char32_t* aCodePoint, const char32_t* aCodePointEnd)
1979 {
1980 char32_t ch = aCodePoint[0];
1981 if (aEmojiAtlas.is_emoji(ch))
1982 return text_category::Emoji;
1983 else if (ch == 0xFE0F || ch == 0xFE0E)
1985 const detail::text_category_MAP_VALUE_TYPE* rangeStart = std::lower_bound(
1990 {
1991 return lhs.first < rhs.first;
1992 });
1993 if (rangeStart != &detail::text_category_MAP[0] && ch < rangeStart->first)
1994 --rangeStart;
1995 return rangeStart->second;
1996 }
1997
1998 inline text_category get_text_category(const i_emoji_atlas& aEmojiAtlas, char32_t aCodePoint)
1999 {
2000 return get_text_category(aEmojiAtlas, &aCodePoint, &aCodePoint + 1);
2001 }
2002
2003 inline text_direction get_text_direction(const i_emoji_atlas& aEmojiAtlas, const char32_t* aCodePoint, const char32_t* aCodePointEnd, std::optional<text_direction> aLineDirection = std::nullopt, std::optional<text_direction> aCurrentDirection = std::nullopt)
2004 {
2005 if (aCodePoint != aCodePointEnd)
2006 {
2007 if (*aCodePoint != U'\r' && *aCodePoint != U'\n' && aLineDirection && aLineDirection.value() == text_direction::RTL)
2008 return text_direction::RTL;
2009 auto nextCodePoint = aCodePoint;
2010 while (nextCodePoint != aCodePointEnd)
2011 {
2012 switch (get_text_category(aEmojiAtlas, nextCodePoint, aCodePointEnd))
2013 {
2014 case text_category::LTR:
2015 return text_direction::LTR;
2016 case text_category::RTL:
2017 return text_direction::RTL;
2020 if (aCurrentDirection && aCurrentDirection.value() == text_direction::LTR)
2021 return text_direction::LTR;
2022 break;
2023 default:
2024 break;
2025 }
2026 ++nextCodePoint;
2027 }
2028 }
2029 return aCurrentDirection ? aCurrentDirection.value() : text_direction::LTR;
2030 }
2031
2032 inline text_direction get_text_direction(const i_emoji_atlas& aEmojiAtlas, char32_t aCodePoint, std::optional<text_direction> aLineDirection = std::nullopt, std::optional<text_direction> aCurrentDirection = std::nullopt)
2033 {
2034 return get_text_direction(aEmojiAtlas, &aCodePoint, &aCodePoint + 1, aLineDirection, aCurrentDirection);
2035 }
2036}
virtual bool is_emoji(char32_t aCodePoint) const =0
const text_category_MAP_VALUE_TYPE text_category_MAP[]
std::pair< uint32_t, text_category > text_category_MAP_VALUE_TYPE
text_direction get_text_direction(const i_emoji_atlas &aEmojiAtlas, const char32_t *aCodePoint, const char32_t *aCodePointEnd, std::optional< text_direction > aLineDirection=std::nullopt, std::optional< text_direction > aCurrentDirection=std::nullopt)
text_category get_text_category(const i_emoji_atlas &aEmojiAtlas, const char32_t *aCodePoint, const char32_t *aCodePointEnd)