2019-05-13 23:10:48 +02:00
|
|
|
|
|
|
|
#line 1 "hb-ot-shape-complex-use-machine.rl"
|
2018-02-20 23:34:16 +01:00
|
|
|
/*
|
2019-05-13 23:10:48 +02:00
|
|
|
* Copyright © 2015 Mozilla Foundation.
|
|
|
|
* Copyright © 2015 Google, Inc.
|
|
|
|
*
|
|
|
|
* This is part of HarfBuzz, a text shaping library.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, without written agreement and without
|
|
|
|
* license or royalty fees, to use, copy, modify, and distribute this
|
|
|
|
* software and its documentation for any purpose, provided that the
|
|
|
|
* above copyright notice and the following two paragraphs appear in
|
|
|
|
* all copies of this software.
|
|
|
|
*
|
|
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
|
|
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
|
|
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
|
|
* DAMAGE.
|
|
|
|
*
|
|
|
|
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
|
|
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
*
|
|
|
|
* Mozilla Author(s): Jonathan Kew
|
|
|
|
* Google Author(s): Behdad Esfahbod
|
|
|
|
*/
|
2018-02-20 23:34:16 +01:00
|
|
|
|
|
|
|
#ifndef HB_OT_SHAPE_COMPLEX_USE_MACHINE_HH
|
|
|
|
#define HB_OT_SHAPE_COMPLEX_USE_MACHINE_HH
|
|
|
|
|
2018-08-26 07:36:36 +02:00
|
|
|
#include "hb.hh"
|
2019-05-03 20:16:50 +02:00
|
|
|
#include "hb-ot-shape-complex-machine-index.hh"
|
2018-02-20 23:34:16 +01:00
|
|
|
|
|
|
|
|
2019-05-03 20:16:50 +02:00
|
|
|
#line 39 "hb-ot-shape-complex-use-machine.hh"
|
2019-05-13 23:10:28 +02:00
|
|
|
static const unsigned char _use_syllable_machine_trans_keys[] = {
|
2020-08-15 00:30:20 +02:00
|
|
|
12u, 48u, 1u, 15u, 1u, 1u, 12u, 48u, 1u, 1u, 0u, 51u, 11u, 48u, 11u, 48u,
|
2019-05-03 20:16:50 +02:00
|
|
|
1u, 15u, 1u, 1u, 22u, 48u, 23u, 48u, 24u, 47u, 25u, 47u, 26u, 47u, 45u, 46u,
|
|
|
|
46u, 46u, 24u, 48u, 24u, 48u, 24u, 48u, 1u, 1u, 24u, 48u, 23u, 48u, 23u, 48u,
|
2020-08-13 19:37:45 +02:00
|
|
|
23u, 48u, 22u, 48u, 22u, 48u, 22u, 48u, 11u, 48u, 1u, 48u, 13u, 13u, 4u, 4u,
|
|
|
|
11u, 48u, 41u, 42u, 42u, 42u, 11u, 48u, 22u, 48u, 23u, 48u, 24u, 47u, 25u, 47u,
|
|
|
|
26u, 47u, 45u, 46u, 46u, 46u, 24u, 48u, 24u, 48u, 24u, 48u, 24u, 48u, 23u, 48u,
|
|
|
|
23u, 48u, 23u, 48u, 22u, 48u, 22u, 48u, 22u, 48u, 11u, 48u, 1u, 48u, 1u, 15u,
|
|
|
|
4u, 4u, 13u, 13u, 12u, 48u, 1u, 48u, 11u, 48u, 41u, 42u, 42u, 42u, 1u, 5u,
|
2020-08-15 00:30:20 +02:00
|
|
|
50u, 52u, 49u, 52u, 49u, 51u, 0
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:48 +02:00
|
|
|
static const char _use_syllable_machine_key_spans[] = {
|
2020-08-15 00:30:20 +02:00
|
|
|
37, 15, 1, 37, 1, 52, 38, 38,
|
2019-05-03 20:16:50 +02:00
|
|
|
15, 1, 27, 26, 24, 23, 22, 2,
|
|
|
|
1, 25, 25, 25, 1, 25, 26, 26,
|
2020-08-13 19:37:45 +02:00
|
|
|
26, 27, 27, 27, 38, 48, 1, 1,
|
|
|
|
38, 2, 1, 38, 27, 26, 24, 23,
|
|
|
|
22, 2, 1, 25, 25, 25, 25, 26,
|
|
|
|
26, 26, 27, 27, 27, 38, 48, 15,
|
2020-08-15 00:30:20 +02:00
|
|
|
1, 1, 37, 48, 38, 2, 1, 5,
|
|
|
|
3, 4, 3
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:28 +02:00
|
|
|
static const short _use_syllable_machine_index_offsets[] = {
|
2020-08-15 00:30:20 +02:00
|
|
|
0, 38, 54, 56, 94, 96, 149, 188,
|
|
|
|
227, 243, 245, 273, 300, 325, 349, 372,
|
|
|
|
375, 377, 403, 429, 455, 457, 483, 510,
|
|
|
|
537, 564, 592, 620, 648, 687, 736, 738,
|
|
|
|
740, 779, 782, 784, 823, 851, 878, 903,
|
|
|
|
927, 950, 953, 955, 981, 1007, 1033, 1059,
|
|
|
|
1086, 1113, 1140, 1168, 1196, 1224, 1263, 1312,
|
|
|
|
1328, 1330, 1332, 1370, 1419, 1458, 1461, 1463,
|
|
|
|
1469, 1473, 1478
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:28 +02:00
|
|
|
static const char _use_syllable_machine_indicies[] = {
|
2019-05-13 23:10:48 +02:00
|
|
|
1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
2019-05-26 17:05:54 +02:00
|
|
|
1, 0, 0, 0, 1, 0, 3, 2,
|
2019-05-13 23:10:48 +02:00
|
|
|
2, 2, 2, 2, 2, 2, 2, 2,
|
2019-05-26 17:05:54 +02:00
|
|
|
2, 2, 2, 2, 4, 2, 3, 2,
|
|
|
|
6, 5, 5, 5, 5, 5, 5, 5,
|
2019-05-13 23:10:48 +02:00
|
|
|
5, 5, 5, 5, 5, 5, 5, 5,
|
|
|
|
5, 5, 5, 5, 5, 5, 5, 5,
|
|
|
|
5, 5, 5, 5, 5, 5, 5, 5,
|
2019-05-26 17:05:54 +02:00
|
|
|
6, 5, 5, 5, 6, 5, 7, 5,
|
|
|
|
8, 9, 10, 8, 11, 12, 10, 10,
|
|
|
|
10, 10, 10, 3, 13, 14, 10, 15,
|
|
|
|
8, 8, 16, 17, 10, 10, 18, 19,
|
|
|
|
20, 21, 22, 23, 24, 18, 25, 26,
|
|
|
|
27, 28, 29, 30, 10, 31, 32, 33,
|
|
|
|
10, 34, 35, 36, 37, 38, 39, 40,
|
2020-08-15 00:30:20 +02:00
|
|
|
13, 41, 10, 42, 10, 44, 1, 43,
|
|
|
|
43, 45, 43, 43, 43, 43, 43, 43,
|
|
|
|
46, 47, 48, 49, 50, 51, 52, 46,
|
|
|
|
53, 9, 54, 55, 56, 57, 43, 58,
|
|
|
|
59, 60, 43, 43, 43, 43, 61, 62,
|
|
|
|
63, 64, 1, 43, 44, 1, 43, 43,
|
|
|
|
45, 43, 43, 43, 43, 43, 43, 46,
|
|
|
|
47, 48, 49, 50, 51, 52, 46, 53,
|
|
|
|
54, 54, 55, 56, 57, 43, 58, 59,
|
|
|
|
60, 43, 43, 43, 43, 61, 62, 63,
|
|
|
|
64, 1, 43, 44, 65, 65, 65, 65,
|
|
|
|
65, 65, 65, 65, 65, 65, 65, 65,
|
|
|
|
65, 66, 65, 44, 65, 46, 47, 48,
|
|
|
|
49, 50, 43, 43, 43, 43, 43, 43,
|
|
|
|
55, 56, 57, 43, 58, 59, 60, 43,
|
|
|
|
43, 43, 43, 47, 62, 63, 64, 67,
|
|
|
|
43, 47, 48, 49, 50, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 58,
|
|
|
|
59, 60, 43, 43, 43, 43, 43, 62,
|
|
|
|
63, 64, 67, 43, 48, 49, 50, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 62, 63, 64, 43, 49, 50, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 62, 63, 64, 43, 50, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
62, 63, 64, 43, 62, 63, 43, 63,
|
|
|
|
43, 48, 49, 50, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 58, 59,
|
|
|
|
60, 43, 43, 43, 43, 43, 62, 63,
|
|
|
|
64, 67, 43, 48, 49, 50, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 59, 60, 43, 43, 43, 43, 43,
|
|
|
|
62, 63, 64, 67, 43, 48, 49, 50,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 60, 43, 43, 43,
|
|
|
|
43, 43, 62, 63, 64, 67, 43, 69,
|
|
|
|
68, 48, 49, 50, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 43, 62, 63,
|
|
|
|
64, 67, 43, 47, 48, 49, 50, 43,
|
|
|
|
43, 43, 43, 43, 43, 55, 56, 57,
|
|
|
|
43, 58, 59, 60, 43, 43, 43, 43,
|
|
|
|
47, 62, 63, 64, 67, 43, 47, 48,
|
|
|
|
49, 50, 43, 43, 43, 43, 43, 43,
|
|
|
|
43, 56, 57, 43, 58, 59, 60, 43,
|
|
|
|
43, 43, 43, 47, 62, 63, 64, 67,
|
|
|
|
43, 47, 48, 49, 50, 43, 43, 43,
|
|
|
|
43, 43, 43, 43, 43, 57, 43, 58,
|
|
|
|
59, 60, 43, 43, 43, 43, 47, 62,
|
|
|
|
63, 64, 67, 43, 46, 47, 48, 49,
|
|
|
|
50, 43, 52, 46, 43, 43, 43, 55,
|
|
|
|
56, 57, 43, 58, 59, 60, 43, 43,
|
|
|
|
43, 43, 47, 62, 63, 64, 67, 43,
|
|
|
|
46, 47, 48, 49, 50, 43, 43, 46,
|
|
|
|
43, 43, 43, 55, 56, 57, 43, 58,
|
|
|
|
59, 60, 43, 43, 43, 43, 47, 62,
|
|
|
|
63, 64, 67, 43, 46, 47, 48, 49,
|
|
|
|
50, 51, 52, 46, 43, 43, 43, 55,
|
|
|
|
56, 57, 43, 58, 59, 60, 43, 43,
|
|
|
|
43, 43, 47, 62, 63, 64, 67, 43,
|
|
|
|
44, 1, 43, 43, 45, 43, 43, 43,
|
|
|
|
43, 43, 43, 46, 47, 48, 49, 50,
|
|
|
|
51, 52, 46, 53, 43, 54, 55, 56,
|
|
|
|
57, 43, 58, 59, 60, 43, 43, 43,
|
|
|
|
43, 61, 62, 63, 64, 1, 43, 44,
|
|
|
|
65, 65, 65, 65, 65, 65, 65, 65,
|
|
|
|
65, 65, 65, 65, 65, 66, 65, 65,
|
|
|
|
65, 65, 65, 65, 65, 47, 48, 49,
|
|
|
|
50, 65, 65, 65, 65, 65, 65, 65,
|
|
|
|
65, 65, 65, 58, 59, 60, 65, 65,
|
|
|
|
65, 65, 65, 62, 63, 64, 67, 65,
|
|
|
|
71, 70, 11, 72, 44, 1, 43, 43,
|
|
|
|
45, 43, 43, 43, 43, 43, 43, 46,
|
|
|
|
47, 48, 49, 50, 51, 52, 46, 53,
|
|
|
|
9, 54, 55, 56, 57, 43, 58, 59,
|
|
|
|
60, 43, 17, 73, 43, 61, 62, 63,
|
|
|
|
64, 1, 43, 17, 73, 74, 73, 74,
|
|
|
|
3, 6, 75, 75, 76, 75, 75, 75,
|
|
|
|
75, 75, 75, 18, 19, 20, 21, 22,
|
|
|
|
23, 24, 18, 25, 27, 27, 28, 29,
|
|
|
|
30, 75, 31, 32, 33, 75, 75, 75,
|
|
|
|
75, 37, 38, 39, 40, 6, 75, 18,
|
|
|
|
19, 20, 21, 22, 75, 75, 75, 75,
|
|
|
|
75, 75, 28, 29, 30, 75, 31, 32,
|
|
|
|
33, 75, 75, 75, 75, 19, 38, 39,
|
|
|
|
40, 77, 75, 19, 20, 21, 22, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 31, 32, 33, 75, 75, 75, 75,
|
|
|
|
75, 38, 39, 40, 77, 75, 20, 21,
|
|
|
|
22, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 38, 39, 40, 75, 21,
|
|
|
|
22, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 38, 39, 40, 75, 22,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 38, 39, 40, 75, 38, 39,
|
|
|
|
75, 39, 75, 20, 21, 22, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
31, 32, 33, 75, 75, 75, 75, 75,
|
|
|
|
38, 39, 40, 77, 75, 20, 21, 22,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 32, 33, 75, 75, 75,
|
|
|
|
75, 75, 38, 39, 40, 77, 75, 20,
|
|
|
|
21, 22, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 33, 75,
|
|
|
|
75, 75, 75, 75, 38, 39, 40, 77,
|
|
|
|
75, 20, 21, 22, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 75, 38, 39,
|
|
|
|
40, 77, 75, 19, 20, 21, 22, 75,
|
|
|
|
75, 75, 75, 75, 75, 28, 29, 30,
|
|
|
|
75, 31, 32, 33, 75, 75, 75, 75,
|
|
|
|
19, 38, 39, 40, 77, 75, 19, 20,
|
|
|
|
21, 22, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 29, 30, 75, 31, 32, 33, 75,
|
|
|
|
75, 75, 75, 19, 38, 39, 40, 77,
|
|
|
|
75, 19, 20, 21, 22, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 30, 75, 31,
|
|
|
|
32, 33, 75, 75, 75, 75, 19, 38,
|
|
|
|
39, 40, 77, 75, 18, 19, 20, 21,
|
|
|
|
22, 75, 24, 18, 75, 75, 75, 28,
|
|
|
|
29, 30, 75, 31, 32, 33, 75, 75,
|
|
|
|
75, 75, 19, 38, 39, 40, 77, 75,
|
|
|
|
18, 19, 20, 21, 22, 75, 75, 18,
|
|
|
|
75, 75, 75, 28, 29, 30, 75, 31,
|
|
|
|
32, 33, 75, 75, 75, 75, 19, 38,
|
|
|
|
39, 40, 77, 75, 18, 19, 20, 21,
|
|
|
|
22, 23, 24, 18, 75, 75, 75, 28,
|
|
|
|
29, 30, 75, 31, 32, 33, 75, 75,
|
|
|
|
75, 75, 19, 38, 39, 40, 77, 75,
|
|
|
|
3, 6, 75, 75, 76, 75, 75, 75,
|
|
|
|
75, 75, 75, 18, 19, 20, 21, 22,
|
|
|
|
23, 24, 18, 25, 75, 27, 28, 29,
|
|
|
|
30, 75, 31, 32, 33, 75, 75, 75,
|
|
|
|
75, 37, 38, 39, 40, 6, 75, 3,
|
|
|
|
75, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 4, 75, 75,
|
|
|
|
75, 75, 75, 75, 75, 19, 20, 21,
|
|
|
|
22, 75, 75, 75, 75, 75, 75, 75,
|
|
|
|
75, 75, 75, 31, 32, 33, 75, 75,
|
|
|
|
75, 75, 75, 38, 39, 40, 77, 75,
|
|
|
|
3, 78, 78, 78, 78, 78, 78, 78,
|
|
|
|
78, 78, 78, 78, 78, 78, 4, 78,
|
|
|
|
79, 75, 14, 75, 6, 78, 78, 78,
|
|
|
|
78, 78, 78, 78, 78, 78, 78, 78,
|
|
|
|
78, 78, 78, 78, 78, 78, 78, 78,
|
|
|
|
78, 78, 78, 78, 78, 78, 78, 78,
|
|
|
|
78, 78, 78, 78, 6, 78, 78, 78,
|
|
|
|
6, 78, 9, 75, 75, 75, 9, 75,
|
|
|
|
75, 75, 75, 75, 3, 6, 14, 75,
|
|
|
|
76, 75, 75, 75, 75, 75, 75, 18,
|
|
|
|
19, 20, 21, 22, 23, 24, 18, 25,
|
|
|
|
26, 27, 28, 29, 30, 75, 31, 32,
|
|
|
|
33, 75, 34, 35, 75, 37, 38, 39,
|
|
|
|
40, 6, 75, 3, 6, 75, 75, 76,
|
|
|
|
75, 75, 75, 75, 75, 75, 18, 19,
|
|
|
|
20, 21, 22, 23, 24, 18, 25, 26,
|
|
|
|
27, 28, 29, 30, 75, 31, 32, 33,
|
|
|
|
75, 75, 75, 75, 37, 38, 39, 40,
|
|
|
|
6, 75, 34, 35, 75, 35, 75, 9,
|
|
|
|
78, 78, 78, 9, 78, 81, 80, 41,
|
|
|
|
80, 41, 81, 80, 81, 80, 41, 80,
|
|
|
|
42, 80, 0
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:48 +02:00
|
|
|
static const char _use_syllable_machine_trans_targs[] = {
|
2020-08-13 19:37:45 +02:00
|
|
|
5, 8, 5, 35, 2, 5, 1, 46,
|
|
|
|
5, 6, 5, 30, 32, 55, 56, 58,
|
|
|
|
59, 33, 36, 37, 38, 39, 40, 50,
|
|
|
|
51, 52, 60, 53, 47, 48, 49, 43,
|
|
|
|
44, 45, 61, 62, 63, 54, 41, 42,
|
2020-08-15 00:30:20 +02:00
|
|
|
5, 64, 66, 5, 7, 0, 10, 11,
|
|
|
|
12, 13, 14, 25, 26, 27, 28, 22,
|
|
|
|
23, 24, 17, 18, 19, 29, 15, 16,
|
|
|
|
5, 5, 9, 20, 5, 21, 5, 31,
|
|
|
|
5, 34, 5, 5, 3, 4, 5, 57,
|
|
|
|
5, 65
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:48 +02:00
|
|
|
static const char _use_syllable_machine_trans_actions[] = {
|
2019-05-26 17:05:54 +02:00
|
|
|
1, 0, 2, 3, 0, 4, 0, 5,
|
2019-05-03 20:16:50 +02:00
|
|
|
8, 5, 9, 0, 5, 10, 0, 10,
|
2019-05-26 17:05:54 +02:00
|
|
|
3, 0, 5, 5, 0, 0, 0, 5,
|
|
|
|
5, 5, 3, 3, 5, 5, 5, 5,
|
|
|
|
5, 5, 0, 0, 0, 3, 0, 0,
|
2020-08-15 00:30:20 +02:00
|
|
|
11, 0, 0, 12, 5, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 5, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
13, 14, 0, 0, 15, 0, 16, 0,
|
|
|
|
17, 0, 18, 19, 0, 0, 20, 0,
|
|
|
|
21, 0
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const char _use_syllable_machine_to_state_actions[] = {
|
2019-05-26 17:05:54 +02:00
|
|
|
0, 0, 0, 0, 0, 6, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
2019-05-13 23:10:48 +02:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
2020-08-15 00:30:20 +02:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0
|
2019-05-07 20:39:44 +02:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:48 +02:00
|
|
|
static const char _use_syllable_machine_from_state_actions[] = {
|
2019-05-26 17:05:54 +02:00
|
|
|
0, 0, 0, 0, 0, 7, 0, 0,
|
2019-05-13 23:10:48 +02:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
2020-08-15 00:30:20 +02:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-13 23:10:48 +02:00
|
|
|
static const short _use_syllable_machine_eof_trans[] = {
|
2020-08-15 00:30:20 +02:00
|
|
|
1, 3, 3, 6, 6, 0, 44, 44,
|
|
|
|
66, 66, 44, 44, 44, 44, 44, 44,
|
|
|
|
44, 44, 44, 44, 69, 44, 44, 44,
|
|
|
|
44, 44, 44, 44, 44, 66, 71, 73,
|
|
|
|
44, 75, 75, 76, 76, 76, 76, 76,
|
|
|
|
76, 76, 76, 76, 76, 76, 76, 76,
|
|
|
|
76, 76, 76, 76, 76, 76, 76, 79,
|
|
|
|
76, 76, 79, 76, 76, 76, 76, 79,
|
|
|
|
81, 81, 81
|
2018-02-20 23:34:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-26 17:05:54 +02:00
|
|
|
static const int use_syllable_machine_start = 5;
|
|
|
|
static const int use_syllable_machine_first_final = 5;
|
2018-02-20 23:34:16 +01:00
|
|
|
static const int use_syllable_machine_error = -1;
|
|
|
|
|
2019-05-26 17:05:54 +02:00
|
|
|
static const int use_syllable_machine_en_main = 5;
|
2018-02-20 23:34:16 +01:00
|
|
|
|
|
|
|
|
2019-05-03 20:16:50 +02:00
|
|
|
#line 39 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
|
2018-02-20 23:34:16 +01:00
|
|
|
|
|
|
|
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 166 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
|
2018-02-20 23:34:16 +01:00
|
|
|
|
|
|
|
#define found_syllable(syllable_type) \
|
2019-05-13 23:10:48 +02:00
|
|
|
HB_STMT_START { \
|
2019-05-03 20:16:50 +02:00
|
|
|
if (0) fprintf (stderr, "syllable %d..%d %s\n", (*ts).second.first, (*te).second.first, #syllable_type); \
|
|
|
|
for (unsigned i = (*ts).second.first; i < (*te).second.first; ++i) \
|
2019-07-02 23:42:45 +02:00
|
|
|
info[i].syllable() = (syllable_serial << 4) | use_##syllable_type; \
|
2019-05-13 23:10:48 +02:00
|
|
|
syllable_serial++; \
|
|
|
|
if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
|
|
|
|
} HB_STMT_END
|
2018-02-20 23:34:16 +01:00
|
|
|
|
2019-05-03 20:16:50 +02:00
|
|
|
static bool
|
|
|
|
not_standard_default_ignorable (const hb_glyph_info_t &i)
|
|
|
|
{ return !((i.use_category() == USE_O || i.use_category() == USE_Rsv) && _hb_glyph_info_is_default_ignorable (&i)); }
|
|
|
|
|
2018-02-20 23:34:16 +01:00
|
|
|
static void
|
2019-07-02 23:42:45 +02:00
|
|
|
find_syllables_use (hb_buffer_t *buffer)
|
2018-02-20 23:34:16 +01:00
|
|
|
{
|
2019-05-13 23:10:48 +02:00
|
|
|
hb_glyph_info_t *info = buffer->info;
|
2019-05-03 20:16:50 +02:00
|
|
|
auto p =
|
|
|
|
+ hb_iter (info, buffer->len)
|
|
|
|
| hb_enumerate
|
|
|
|
| hb_filter (not_standard_default_ignorable, hb_second)
|
|
|
|
| hb_filter ([&] (const hb_pair_t<unsigned, const hb_glyph_info_t &> p)
|
|
|
|
{
|
|
|
|
if (p.second.use_category() == USE_ZWNJ)
|
|
|
|
for (unsigned i = p.first + 1; i < buffer->len; ++i)
|
|
|
|
if (not_standard_default_ignorable (info[i]))
|
|
|
|
return !_hb_glyph_info_is_unicode_mark (&info[i]);
|
|
|
|
return true;
|
|
|
|
})
|
|
|
|
| hb_enumerate
|
|
|
|
| machine_index
|
|
|
|
;
|
|
|
|
auto pe = p + p.len ();
|
|
|
|
auto eof = +pe;
|
|
|
|
auto ts = +p;
|
|
|
|
auto te = +p;
|
|
|
|
unsigned int act;
|
|
|
|
int cs;
|
2019-05-13 23:10:48 +02:00
|
|
|
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 382 "hb-ot-shape-complex-use-machine.hh"
|
2018-02-20 23:34:16 +01:00
|
|
|
{
|
2019-05-13 23:10:48 +02:00
|
|
|
cs = use_syllable_machine_start;
|
|
|
|
ts = 0;
|
|
|
|
te = 0;
|
|
|
|
act = 0;
|
|
|
|
}
|
|
|
|
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 209 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
unsigned int syllable_serial = 1;
|
|
|
|
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 395 "hb-ot-shape-complex-use-machine.hh"
|
2019-05-13 23:10:48 +02:00
|
|
|
{
|
|
|
|
int _slen;
|
|
|
|
int _trans;
|
|
|
|
const unsigned char *_keys;
|
|
|
|
const char *_inds;
|
|
|
|
if ( p == pe )
|
|
|
|
goto _test_eof;
|
|
|
|
_resume:
|
|
|
|
switch ( _use_syllable_machine_from_state_actions[cs] ) {
|
2019-05-26 17:05:54 +02:00
|
|
|
case 7:
|
2019-05-13 23:10:48 +02:00
|
|
|
#line 1 "NONE"
|
|
|
|
{ts = p;}
|
|
|
|
break;
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 409 "hb-ot-shape-complex-use-machine.hh"
|
2019-05-13 23:10:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
_keys = _use_syllable_machine_trans_keys + (cs<<1);
|
|
|
|
_inds = _use_syllable_machine_indicies + _use_syllable_machine_index_offsets[cs];
|
|
|
|
|
|
|
|
_slen = _use_syllable_machine_key_spans[cs];
|
2019-05-03 20:16:50 +02:00
|
|
|
_trans = _inds[ _slen > 0 && _keys[0] <=( (*p).second.second.use_category()) &&
|
|
|
|
( (*p).second.second.use_category()) <= _keys[1] ?
|
|
|
|
( (*p).second.second.use_category()) - _keys[0] : _slen ];
|
2019-05-13 23:10:48 +02:00
|
|
|
|
|
|
|
_eof_trans:
|
|
|
|
cs = _use_syllable_machine_trans_targs[_trans];
|
|
|
|
|
|
|
|
if ( _use_syllable_machine_trans_actions[_trans] == 0 )
|
|
|
|
goto _again;
|
|
|
|
|
|
|
|
switch ( _use_syllable_machine_trans_actions[_trans] ) {
|
2019-05-26 17:05:54 +02:00
|
|
|
case 5:
|
2019-05-13 23:10:48 +02:00
|
|
|
#line 1 "NONE"
|
|
|
|
{te = p+1;}
|
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 8:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 153 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{te = p+1;{ found_syllable (independent_cluster); }}
|
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 13:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 156 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{te = p+1;{ found_syllable (standard_cluster); }}
|
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 11:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 161 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{te = p+1;{ found_syllable (broken_cluster); }}
|
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 9:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 162 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{te = p+1;{ found_syllable (non_cluster); }}
|
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 14:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 154 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (virama_terminated_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
|
|
|
case 15:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 155 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (sakot_terminated_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 12:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 156 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (standard_cluster); }}
|
2019-05-26 17:05:54 +02:00
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 17:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 157 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (number_joiner_terminated_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 16:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 158 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (numeral_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 18:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 159 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (symbol_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2020-08-15 00:30:20 +02:00
|
|
|
case 21:
|
|
|
|
#line 160 "hb-ot-shape-complex-use-machine.rl"
|
|
|
|
{te = p;p--;{ found_syllable (hieroglyph_cluster); }}
|
|
|
|
break;
|
2019-05-26 17:05:54 +02:00
|
|
|
case 19:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 161 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-03 20:16:50 +02:00
|
|
|
{te = p;p--;{ found_syllable (broken_cluster); }}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2019-05-26 17:05:54 +02:00
|
|
|
case 20:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 162 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{te = p;p--;{ found_syllable (non_cluster); }}
|
|
|
|
break;
|
|
|
|
case 1:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 156 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{{p = ((te))-1;}{ found_syllable (standard_cluster); }}
|
|
|
|
break;
|
|
|
|
case 4:
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 161 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
{{p = ((te))-1;}{ found_syllable (broken_cluster); }}
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
#line 1 "NONE"
|
|
|
|
{ switch( act ) {
|
2020-08-15 00:30:20 +02:00
|
|
|
case 9:
|
2019-05-13 23:10:48 +02:00
|
|
|
{{p = ((te))-1;} found_syllable (broken_cluster); }
|
|
|
|
break;
|
2020-08-15 00:30:20 +02:00
|
|
|
case 10:
|
2019-05-13 23:10:48 +02:00
|
|
|
{{p = ((te))-1;} found_syllable (non_cluster); }
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
#line 1 "NONE"
|
|
|
|
{te = p+1;}
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 161 "hb-ot-shape-complex-use-machine.rl"
|
|
|
|
{act = 9;}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2019-05-03 20:16:50 +02:00
|
|
|
case 10:
|
2019-05-13 23:10:48 +02:00
|
|
|
#line 1 "NONE"
|
|
|
|
{te = p+1;}
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 162 "hb-ot-shape-complex-use-machine.rl"
|
|
|
|
{act = 10;}
|
2019-05-13 23:10:48 +02:00
|
|
|
break;
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 515 "hb-ot-shape-complex-use-machine.hh"
|
2018-02-20 23:34:16 +01:00
|
|
|
}
|
2019-05-13 23:10:48 +02:00
|
|
|
|
|
|
|
_again:
|
|
|
|
switch ( _use_syllable_machine_to_state_actions[cs] ) {
|
2019-05-26 17:05:54 +02:00
|
|
|
case 6:
|
2019-05-13 23:10:48 +02:00
|
|
|
#line 1 "NONE"
|
|
|
|
{ts = 0;}
|
|
|
|
break;
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 524 "hb-ot-shape-complex-use-machine.hh"
|
2019-05-13 23:10:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( ++p != pe )
|
|
|
|
goto _resume;
|
|
|
|
_test_eof: {}
|
|
|
|
if ( p == eof )
|
2018-02-20 23:34:16 +01:00
|
|
|
{
|
2019-05-13 23:10:48 +02:00
|
|
|
if ( _use_syllable_machine_eof_trans[cs] > 0 ) {
|
|
|
|
_trans = _use_syllable_machine_eof_trans[cs] - 1;
|
|
|
|
goto _eof_trans;
|
2018-02-20 23:34:16 +01:00
|
|
|
}
|
2019-05-13 23:10:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-08-15 00:30:20 +02:00
|
|
|
#line 214 "hb-ot-shape-complex-use-machine.rl"
|
2019-05-13 23:10:48 +02:00
|
|
|
|
2018-02-20 23:34:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#undef found_syllable
|
|
|
|
|
|
|
|
#endif /* HB_OT_SHAPE_COMPLEX_USE_MACHINE_HH */
|