OLD | NEW |
1 | 1 |
2 #line 1 "hb-ot-shape-complex-myanmar-machine.rl" | 2 #line 1 "hb-ot-shape-complex-myanmar-machine.rl" |
3 /* | 3 /* |
4 * Copyright © 2011,2012 Google, Inc. | 4 * Copyright © 2011,2012 Google, Inc. |
5 * | 5 * |
6 * This is part of HarfBuzz, a text shaping library. | 6 * This is part of HarfBuzz, a text shaping library. |
7 * | 7 * |
8 * Permission is hereby granted, without written agreement and without | 8 * Permission is hereby granted, without written agreement and without |
9 * license or royalty fees, to use, copy, modify, and distribute this | 9 * license or royalty fees, to use, copy, modify, and distribute this |
10 * software and its documentation for any purpose, provided that the | 10 * software and its documentation for any purpose, provided that the |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH | 29 #ifndef HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH |
30 #define HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH | 30 #define HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH |
31 | 31 |
32 #include "hb-private.hh" | 32 #include "hb-private.hh" |
33 | 33 |
34 | 34 |
35 #line 36 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 35 #line 36 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
36 static const unsigned char _myanmar_syllable_machine_trans_keys[] = { | 36 static const unsigned char _myanmar_syllable_machine_trans_keys[] = { |
37 » 1u, 30u, 3u, 30u, 5u, 29u, 5u, 8u, 5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, | 37 » 1u, 31u, 3u, 30u, 5u, 29u, 5u, 8u, 5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, |
38 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 1u, 16u, 3u, 29u, 3u, 29u, 3u, 29u, | 38 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 1u, 16u, 3u, 29u, 3u, 29u, 3u, 29u, |
39 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 5u, 29u, 5u, 8u, | 39 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 5u, 29u, 5u, 8u, |
40 5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, | 40 5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, |
41 3u, 30u, 3u, 29u, 1u, 30u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, | 41 3u, 30u, 3u, 29u, 1u, 30u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, |
42 » 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 0 | 42 » 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 8u, 8u, 0 |
43 }; | 43 }; |
44 | 44 |
45 static const char _myanmar_syllable_machine_key_spans[] = { | 45 static const char _myanmar_syllable_machine_key_spans[] = { |
46 » 30, 28, 25, 4, 25, 23, 21, 21, | 46 » 31, 28, 25, 4, 25, 23, 21, 21, |
47 27, 27, 27, 27, 16, 27, 27, 27, | 47 27, 27, 27, 27, 16, 27, 27, 27, |
48 27, 27, 27, 27, 27, 27, 25, 4, | 48 27, 27, 27, 27, 27, 27, 25, 4, |
49 25, 23, 21, 21, 27, 27, 27, 27, | 49 25, 23, 21, 21, 27, 27, 27, 27, |
50 28, 27, 30, 27, 27, 27, 27, 27, | 50 28, 27, 30, 27, 27, 27, 27, 27, |
51 » 27, 27, 27, 27 | 51 » 27, 27, 27, 27, 1 |
52 }; | 52 }; |
53 | 53 |
54 static const short _myanmar_syllable_machine_index_offsets[] = { | 54 static const short _myanmar_syllable_machine_index_offsets[] = { |
55 » 0, 31, 60, 86, 91, 117, 141, 163, | 55 » 0, 32, 61, 87, 92, 118, 142, 164, |
56 » 185, 213, 241, 269, 297, 314, 342, 370, | 56 » 186, 214, 242, 270, 298, 315, 343, 371, |
57 » 398, 426, 454, 482, 510, 538, 566, 592, | 57 » 399, 427, 455, 483, 511, 539, 567, 593, |
58 » 597, 623, 647, 669, 691, 719, 747, 775, | 58 » 598, 624, 648, 670, 692, 720, 748, 776, |
59 » 803, 832, 860, 891, 919, 947, 975, 1003, | 59 » 804, 833, 861, 892, 920, 948, 976, 1004, |
60 » 1031, 1059, 1087, 1115 | 60 » 1032, 1060, 1088, 1116, 1144 |
61 }; | 61 }; |
62 | 62 |
63 static const char _myanmar_syllable_machine_indicies[] = { | 63 static const char _myanmar_syllable_machine_indicies[] = { |
64 1, 1, 2, 3, 4, 4, 0, 5, | 64 1, 1, 2, 3, 4, 4, 0, 5, |
65 0, 6, 0, 1, 0, 0, 0, 7, | 65 0, 6, 0, 1, 0, 0, 0, 7, |
66 0, 8, 1, 0, 9, 10, 11, 12, | 66 0, 8, 1, 0, 9, 10, 11, 12, |
67 » 13, 14, 15, 16, 17, 18, 0, 20, | 67 » 13, 14, 15, 16, 17, 18, 19, 0, |
68 » 21, 22, 22, 19, 23, 19, 24, 19, | 68 » 21, 22, 23, 23, 20, 24, 20, 25, |
69 » 19, 19, 19, 19, 19, 19, 25, 19, | 69 » 20, 20, 20, 20, 20, 20, 20, 26, |
70 » 19, 26, 27, 28, 29, 30, 31, 32, | 70 » 20, 20, 27, 28, 29, 30, 31, 32, |
71 » 33, 34, 35, 19, 22, 22, 19, 23, | 71 » 33, 34, 35, 36, 20, 23, 23, 20, |
72 » 19, 19, 19, 19, 19, 19, 19, 19, | 72 » 24, 20, 20, 20, 20, 20, 20, 20, |
73 » 19, 36, 19, 19, 19, 19, 19, 19, | 73 » 20, 20, 37, 20, 20, 20, 20, 20, |
74 » 30, 19, 19, 19, 34, 19, 22, 22, | 74 » 20, 31, 20, 20, 20, 35, 20, 23, |
75 » 19, 23, 19, 22, 22, 19, 23, 19, | 75 » 23, 20, 24, 20, 23, 23, 20, 24, |
76 » 19, 19, 19, 19, 19, 19, 19, 19, | 76 » 20, 20, 20, 20, 20, 20, 20, 20, |
77 » 19, 19, 19, 19, 19, 19, 19, 30, | 77 » 20, 20, 20, 20, 20, 20, 20, 20, |
78 » 19, 19, 19, 34, 19, 37, 19, 22, | 78 » 31, 20, 20, 20, 35, 20, 38, 20, |
79 » 22, 19, 23, 19, 30, 19, 19, 19, | 79 » 23, 23, 20, 24, 20, 31, 20, 20, |
80 » 19, 19, 19, 19, 19, 19, 19, 19, | 80 » 20, 20, 20, 20, 20, 39, 20, 20, |
81 » 19, 19, 19, 30, 19, 22, 22, 19, | 81 » 20, 20, 20, 20, 31, 20, 23, 23, |
82 » 23, 19, 19, 19, 19, 19, 19, 19, | 82 » 20, 24, 20, 20, 20, 20, 20, 20, |
83 » 19, 19, 38, 19, 19, 19, 19, 19, | 83 » 20, 20, 20, 39, 20, 20, 20, 20, |
84 » 19, 30, 19, 22, 22, 19, 23, 19, | 84 » 20, 20, 31, 20, 23, 23, 20, 24, |
85 » 19, 19, 19, 19, 19, 19, 19, 19, | 85 » 20, 20, 20, 20, 20, 20, 20, 20, |
86 » 19, 19, 19, 19, 19, 19, 19, 30, | 86 » 20, 20, 20, 20, 20, 20, 20, 20, |
87 » 19, 20, 19, 22, 22, 19, 23, 19, | 87 » 31, 20, 21, 20, 23, 23, 20, 24, |
88 » 24, 19, 19, 19, 19, 19, 19, 19, | 88 » 20, 25, 20, 20, 20, 20, 20, 20, |
89 » 39, 19, 19, 39, 19, 19, 19, 30, | 89 » 20, 40, 20, 20, 40, 20, 20, 20, |
90 » 40, 19, 19, 34, 19, 20, 19, 22, | 90 » 31, 41, 20, 20, 35, 20, 21, 20, |
91 » 22, 19, 23, 19, 24, 19, 19, 19, | 91 » 23, 23, 20, 24, 20, 25, 20, 20, |
92 » 19, 19, 19, 19, 19, 19, 19, 19, | 92 » 20, 20, 20, 20, 20, 20, 20, 20, |
93 » 19, 19, 19, 30, 19, 19, 19, 34, | 93 » 20, 20, 20, 20, 31, 20, 20, 20, |
94 » 19, 20, 19, 22, 22, 19, 23, 19, | 94 » 35, 20, 21, 20, 23, 23, 20, 24, |
95 » 24, 19, 19, 19, 19, 19, 19, 19, | 95 » 20, 25, 20, 20, 20, 20, 20, 20, |
96 » 39, 19, 19, 19, 19, 19, 19, 30, | 96 » 20, 40, 20, 20, 20, 20, 20, 20, |
97 » 40, 19, 19, 34, 19, 20, 19, 22, | 97 » 31, 41, 20, 20, 35, 20, 21, 20, |
98 » 22, 19, 23, 19, 24, 19, 19, 19, | 98 » 23, 23, 20, 24, 20, 25, 20, 20, |
99 » 19, 19, 19, 19, 19, 19, 19, 19, | 99 » 20, 20, 20, 20, 20, 20, 20, 20, |
100 » 19, 19, 19, 30, 40, 19, 19, 34, | 100 » 20, 20, 20, 20, 31, 41, 20, 20, |
101 » 19, 1, 1, 19, 19, 19, 19, 19, | 101 » 35, 20, 1, 1, 20, 20, 20, 20, |
102 » 19, 19, 19, 19, 19, 19, 19, 19, | 102 » 20, 20, 20, 20, 20, 20, 20, 20, |
103 » 1, 19, 20, 19, 22, 22, 19, 23, | 103 » 20, 1, 20, 21, 20, 23, 23, 20, |
104 » 19, 24, 19, 19, 19, 19, 19, 19, | 104 » 24, 20, 25, 20, 20, 20, 20, 20, |
105 » 19, 25, 19, 19, 26, 27, 28, 29, | 105 » 20, 20, 26, 20, 20, 27, 28, 29, |
106 » 30, 31, 32, 33, 34, 19, 20, 19, | 106 » 30, 31, 32, 33, 34, 35, 20, 21, |
107 » 22, 22, 19, 23, 19, 24, 19, 19, | 107 » 20, 23, 23, 20, 24, 20, 25, 20, |
108 » 19, 19, 19, 19, 19, 33, 19, 19, | 108 » 20, 20, 20, 20, 20, 20, 34, 20, |
109 » 19, 19, 19, 19, 30, 31, 32, 33, | 109 » 20, 20, 20, 20, 20, 31, 32, 33, |
110 » 34, 19, 20, 19, 22, 22, 19, 23, | 110 » 34, 35, 20, 21, 20, 23, 23, 20, |
111 » 19, 24, 19, 19, 19, 19, 19, 19, | 111 » 24, 20, 25, 20, 20, 20, 20, 20, |
112 » 19, 19, 19, 19, 19, 19, 19, 19, | 112 » 20, 20, 20, 20, 20, 20, 20, 20, |
113 » 30, 31, 32, 33, 34, 19, 20, 19, | 113 » 20, 31, 32, 33, 34, 35, 20, 21, |
114 » 22, 22, 19, 23, 19, 24, 19, 19, | 114 » 20, 23, 23, 20, 24, 20, 25, 20, |
115 » 19, 19, 19, 19, 19, 19, 19, 19, | 115 » 20, 20, 20, 20, 20, 20, 20, 20, |
116 » 19, 19, 19, 19, 30, 31, 32, 19, | 116 » 20, 20, 20, 20, 20, 31, 32, 33, |
117 » 34, 19, 20, 19, 22, 22, 19, 23, | 117 » 20, 35, 20, 21, 20, 23, 23, 20, |
118 » 19, 24, 19, 19, 19, 19, 19, 19, | 118 » 24, 20, 25, 20, 20, 20, 20, 20, |
119 » 19, 19, 19, 19, 19, 19, 19, 19, | 119 » 20, 20, 20, 20, 20, 20, 20, 20, |
120 » 30, 19, 32, 19, 34, 19, 20, 19, | 120 » 20, 31, 20, 33, 20, 35, 20, 21, |
121 » 22, 22, 19, 23, 19, 24, 19, 19, | 121 » 20, 23, 23, 20, 24, 20, 25, 20, |
122 » 19, 19, 19, 19, 19, 19, 19, 19, | 122 » 20, 20, 20, 20, 20, 20, 20, 20, |
123 » 26, 19, 28, 19, 30, 31, 32, 33, | 123 » 20, 27, 20, 29, 20, 31, 32, 33, |
124 » 34, 19, 20, 19, 22, 22, 19, 23, | 124 » 34, 35, 20, 21, 20, 23, 23, 20, |
125 » 19, 24, 19, 19, 19, 19, 19, 19, | 125 » 24, 20, 25, 20, 20, 20, 20, 20, |
126 » 19, 33, 19, 19, 26, 19, 19, 19, | 126 » 20, 20, 34, 20, 20, 27, 20, 20, |
127 » 30, 31, 32, 33, 34, 19, 20, 19, | 127 » 20, 31, 32, 33, 34, 35, 20, 21, |
128 » 22, 22, 19, 23, 19, 24, 19, 19, | 128 » 20, 23, 23, 20, 24, 20, 25, 20, |
129 » 19, 19, 19, 19, 19, 19, 19, 19, | 129 » 20, 20, 20, 20, 20, 20, 20, 20, |
130 » 26, 27, 28, 19, 30, 31, 32, 33, | 130 » 20, 27, 28, 29, 20, 31, 32, 33, |
131 » 34, 19, 20, 21, 22, 22, 19, 23, | 131 » 34, 35, 20, 21, 22, 23, 23, 20, |
132 » 19, 24, 19, 19, 19, 19, 19, 19, | 132 » 24, 20, 25, 20, 20, 20, 20, 20, |
133 » 19, 25, 19, 19, 26, 27, 28, 29, | 133 » 20, 20, 26, 20, 20, 27, 28, 29, |
134 » 30, 31, 32, 33, 34, 19, 3, 3, | 134 » 30, 31, 32, 33, 34, 35, 20, 3, |
135 » 41, 5, 41, 41, 41, 41, 41, 41, | 135 » 3, 42, 5, 42, 42, 42, 42, 42, |
136 » 41, 41, 41, 42, 41, 41, 41, 41, | 136 » 42, 42, 42, 42, 43, 42, 42, 42, |
137 » 41, 41, 13, 41, 41, 41, 17, 41, | 137 » 42, 42, 42, 13, 42, 42, 42, 17, |
138 » 3, 3, 41, 5, 41, 3, 3, 41, | 138 » 42, 3, 3, 42, 5, 42, 3, 3, |
139 » 5, 41, 41, 41, 41, 41, 41, 41, | 139 » 42, 5, 42, 42, 42, 42, 42, 42, |
140 » 41, 41, 41, 41, 41, 41, 41, 41, | 140 » 42, 42, 42, 42, 42, 42, 42, 42, |
141 » 41, 13, 41, 41, 41, 17, 41, 43, | 141 » 42, 42, 13, 42, 42, 42, 17, 42, |
142 » 41, 3, 3, 41, 5, 41, 13, 41, | 142 » 44, 42, 3, 3, 42, 5, 42, 13, |
143 » 41, 41, 41, 41, 41, 41, 41, 41, | 143 » 42, 42, 42, 42, 42, 42, 42, 45, |
144 » 41, 41, 41, 41, 41, 13, 41, 3, | 144 » 42, 42, 42, 42, 42, 42, 13, 42, |
145 » 3, 41, 5, 41, 41, 41, 41, 41, | 145 » 3, 3, 42, 5, 42, 42, 42, 42, |
146 » 41, 41, 41, 41, 44, 41, 41, 41, | 146 » 42, 42, 42, 42, 42, 45, 42, 42, |
147 » 41, 41, 41, 13, 41, 3, 3, 41, | 147 » 42, 42, 42, 42, 13, 42, 3, 3, |
148 » 5, 41, 41, 41, 41, 41, 41, 41, | 148 » 42, 5, 42, 42, 42, 42, 42, 42, |
149 » 41, 41, 41, 41, 41, 41, 41, 41, | 149 » 42, 42, 42, 42, 42, 42, 42, 42, |
150 » 41, 13, 41, 2, 41, 3, 3, 41, | 150 » 42, 42, 13, 42, 2, 42, 3, 3, |
151 » 5, 41, 6, 41, 41, 41, 41, 41, | 151 » 42, 5, 42, 6, 42, 42, 42, 42, |
152 » 41, 41, 45, 41, 41, 45, 41, 41, | 152 » 42, 42, 42, 46, 42, 42, 46, 42, |
153 » 41, 13, 46, 41, 41, 17, 41, 2, | 153 » 42, 42, 13, 47, 42, 42, 17, 42, |
154 » 41, 3, 3, 41, 5, 41, 6, 41, | 154 » 2, 42, 3, 3, 42, 5, 42, 6, |
155 » 41, 41, 41, 41, 41, 41, 41, 41, | 155 » 42, 42, 42, 42, 42, 42, 42, 42, |
156 » 41, 41, 41, 41, 41, 13, 41, 41, | 156 » 42, 42, 42, 42, 42, 42, 13, 42, |
157 » 41, 17, 41, 2, 41, 3, 3, 41, | 157 » 42, 42, 17, 42, 2, 42, 3, 3, |
158 » 5, 41, 6, 41, 41, 41, 41, 41, | 158 » 42, 5, 42, 6, 42, 42, 42, 42, |
159 » 41, 41, 45, 41, 41, 41, 41, 41, | 159 » 42, 42, 42, 46, 42, 42, 42, 42, |
160 » 41, 13, 46, 41, 41, 17, 41, 2, | 160 » 42, 42, 13, 47, 42, 42, 17, 42, |
161 » 41, 3, 3, 41, 5, 41, 6, 41, | 161 » 2, 42, 3, 3, 42, 5, 42, 6, |
162 » 41, 41, 41, 41, 41, 41, 41, 41, | 162 » 42, 42, 42, 42, 42, 42, 42, 42, |
163 » 41, 41, 41, 41, 41, 13, 46, 41, | 163 » 42, 42, 42, 42, 42, 42, 13, 47, |
164 » 41, 17, 41, 20, 21, 22, 22, 19, | 164 » 42, 42, 17, 42, 21, 22, 23, 23, |
165 » 23, 19, 24, 19, 19, 19, 19, 19, | 165 » 20, 24, 20, 25, 20, 20, 20, 20, |
166 » 19, 19, 47, 19, 19, 26, 27, 28, | 166 » 20, 20, 20, 48, 20, 20, 27, 28, |
167 » 29, 30, 31, 32, 33, 34, 35, 19, | 167 » 29, 30, 31, 32, 33, 34, 35, 36, |
168 » 20, 48, 22, 22, 19, 23, 19, 24, | 168 » 20, 21, 49, 23, 23, 20, 24, 20, |
169 » 19, 19, 19, 19, 19, 19, 19, 25, | 169 » 25, 20, 20, 20, 20, 20, 20, 20, |
170 » 19, 19, 26, 27, 28, 29, 30, 31, | 170 » 26, 20, 20, 27, 28, 29, 30, 31, |
171 » 32, 33, 34, 19, 1, 1, 2, 3, | 171 » 32, 33, 34, 35, 20, 1, 1, 2, |
172 » 3, 3, 41, 5, 41, 6, 41, 1, | 172 » 3, 3, 3, 42, 5, 42, 6, 42, |
173 » 41, 41, 41, 1, 41, 8, 1, 41, | 173 » 1, 42, 42, 42, 1, 42, 8, 1, |
174 » 9, 10, 11, 12, 13, 14, 15, 16, | 174 » 42, 9, 10, 11, 12, 13, 14, 15, |
175 » 17, 18, 41, 2, 41, 3, 3, 41, | 175 » 16, 17, 18, 42, 2, 42, 3, 3, |
176 » 5, 41, 6, 41, 41, 41, 41, 41, | 176 » 42, 5, 42, 6, 42, 42, 42, 42, |
177 » 41, 41, 8, 41, 41, 9, 10, 11, | 177 » 42, 42, 42, 8, 42, 42, 9, 10, |
178 » 12, 13, 14, 15, 16, 17, 41, 2, | 178 » 11, 12, 13, 14, 15, 16, 17, 42, |
179 » 41, 3, 3, 41, 5, 41, 6, 41, | 179 » 2, 42, 3, 3, 42, 5, 42, 6, |
180 » 41, 41, 41, 41, 41, 41, 16, 41, | 180 » 42, 42, 42, 42, 42, 42, 42, 16, |
181 » 41, 41, 41, 41, 41, 13, 14, 15, | 181 » 42, 42, 42, 42, 42, 42, 13, 14, |
182 » 16, 17, 41, 2, 41, 3, 3, 41, | 182 » 15, 16, 17, 42, 2, 42, 3, 3, |
183 » 5, 41, 6, 41, 41, 41, 41, 41, | 183 » 42, 5, 42, 6, 42, 42, 42, 42, |
184 » 41, 41, 41, 41, 41, 41, 41, 41, | 184 » 42, 42, 42, 42, 42, 42, 42, 42, |
185 » 41, 13, 14, 15, 16, 17, 41, 2, | 185 » 42, 42, 13, 14, 15, 16, 17, 42, |
186 » 41, 3, 3, 41, 5, 41, 6, 41, | 186 » 2, 42, 3, 3, 42, 5, 42, 6, |
187 » 41, 41, 41, 41, 41, 41, 41, 41, | 187 » 42, 42, 42, 42, 42, 42, 42, 42, |
188 » 41, 41, 41, 41, 41, 13, 14, 15, | 188 » 42, 42, 42, 42, 42, 42, 13, 14, |
189 » 41, 17, 41, 2, 41, 3, 3, 41, | 189 » 15, 42, 17, 42, 2, 42, 3, 3, |
190 » 5, 41, 6, 41, 41, 41, 41, 41, | 190 » 42, 5, 42, 6, 42, 42, 42, 42, |
191 » 41, 41, 41, 41, 41, 41, 41, 41, | 191 » 42, 42, 42, 42, 42, 42, 42, 42, |
192 » 41, 13, 41, 15, 41, 17, 41, 2, | 192 » 42, 42, 13, 42, 15, 42, 17, 42, |
193 » 41, 3, 3, 41, 5, 41, 6, 41, | 193 » 2, 42, 3, 3, 42, 5, 42, 6, |
194 » 41, 41, 41, 41, 41, 41, 41, 41, | 194 » 42, 42, 42, 42, 42, 42, 42, 42, |
195 » 41, 9, 41, 11, 41, 13, 14, 15, | 195 » 42, 42, 9, 42, 11, 42, 13, 14, |
196 » 16, 17, 41, 2, 41, 3, 3, 41, | 196 » 15, 16, 17, 42, 2, 42, 3, 3, |
197 » 5, 41, 6, 41, 41, 41, 41, 41, | 197 » 42, 5, 42, 6, 42, 42, 42, 42, |
198 » 41, 41, 16, 41, 41, 9, 41, 41, | 198 » 42, 42, 42, 16, 42, 42, 9, 42, |
199 » 41, 13, 14, 15, 16, 17, 41, 2, | 199 » 42, 42, 13, 14, 15, 16, 17, 42, |
200 » 41, 3, 3, 41, 5, 41, 6, 41, | 200 » 2, 42, 3, 3, 42, 5, 42, 6, |
201 » 41, 41, 41, 41, 41, 41, 41, 41, | 201 » 42, 42, 42, 42, 42, 42, 42, 42, |
202 » 41, 9, 10, 11, 41, 13, 14, 15, | 202 » 42, 42, 9, 10, 11, 42, 13, 14, |
203 » 16, 17, 41, 2, 3, 3, 3, 41, | 203 » 15, 16, 17, 42, 2, 3, 3, 3, |
204 » 5, 41, 6, 41, 41, 41, 41, 41, | 204 » 42, 5, 42, 6, 42, 42, 42, 42, |
205 » 41, 41, 8, 41, 41, 9, 10, 11, | 205 » 42, 42, 42, 8, 42, 42, 9, 10, |
206 » 12, 13, 14, 15, 16, 17, 41, 0 | 206 » 11, 12, 13, 14, 15, 16, 17, 42, |
| 207 » 51, 50, 0 |
207 }; | 208 }; |
208 | 209 |
209 static const char _myanmar_syllable_machine_trans_targs[] = { | 210 static const char _myanmar_syllable_machine_trans_targs[] = { |
210 0, 1, 22, 0, 0, 23, 29, 32, | 211 0, 1, 22, 0, 0, 23, 29, 32, |
211 35, 36, 40, 41, 42, 25, 38, 39, | 212 35, 36, 40, 41, 42, 25, 38, 39, |
212 » 37, 28, 43, 0, 2, 12, 0, 3, | 213 » 37, 28, 43, 44, 0, 2, 12, 0, |
213 » 9, 13, 14, 18, 19, 20, 5, 16, | 214 » 3, 9, 13, 14, 18, 19, 20, 5, |
214 » 17, 15, 8, 21, 4, 6, 7, 10, | 215 » 16, 17, 15, 8, 21, 4, 6, 7, |
215 » 11, 0, 24, 26, 27, 30, 31, 33, | 216 » 10, 11, 0, 24, 26, 27, 30, 31, |
216 » 34 | 217 » 33, 34, 0, 0 |
217 }; | 218 }; |
218 | 219 |
219 static const char _myanmar_syllable_machine_trans_actions[] = { | 220 static const char _myanmar_syllable_machine_trans_actions[] = { |
220 3, 0, 0, 4, 5, 0, 0, 0, | 221 3, 0, 0, 4, 5, 0, 0, 0, |
221 0, 0, 0, 0, 0, 0, 0, 0, | 222 0, 0, 0, 0, 0, 0, 0, 0, |
222 » 0, 0, 0, 6, 0, 0, 7, 0, | 223 » 0, 0, 0, 0, 6, 0, 0, 7, |
223 0, 0, 0, 0, 0, 0, 0, 0, | 224 0, 0, 0, 0, 0, 0, 0, 0, |
224 0, 0, 0, 0, 0, 0, 0, 0, | 225 0, 0, 0, 0, 0, 0, 0, 0, |
225 » 0, 8, 0, 0, 0, 0, 0, 0, | 226 » 0, 0, 8, 0, 0, 0, 0, 0, |
226 » 0 | 227 » 0, 0, 9, 10 |
227 }; | 228 }; |
228 | 229 |
229 static const char _myanmar_syllable_machine_to_state_actions[] = { | 230 static const char _myanmar_syllable_machine_to_state_actions[] = { |
230 1, 0, 0, 0, 0, 0, 0, 0, | 231 1, 0, 0, 0, 0, 0, 0, 0, |
231 0, 0, 0, 0, 0, 0, 0, 0, | 232 0, 0, 0, 0, 0, 0, 0, 0, |
232 0, 0, 0, 0, 0, 0, 0, 0, | 233 0, 0, 0, 0, 0, 0, 0, 0, |
233 0, 0, 0, 0, 0, 0, 0, 0, | 234 0, 0, 0, 0, 0, 0, 0, 0, |
234 0, 0, 0, 0, 0, 0, 0, 0, | 235 0, 0, 0, 0, 0, 0, 0, 0, |
235 » 0, 0, 0, 0 | 236 » 0, 0, 0, 0, 0 |
236 }; | 237 }; |
237 | 238 |
238 static const char _myanmar_syllable_machine_from_state_actions[] = { | 239 static const char _myanmar_syllable_machine_from_state_actions[] = { |
239 2, 0, 0, 0, 0, 0, 0, 0, | 240 2, 0, 0, 0, 0, 0, 0, 0, |
240 0, 0, 0, 0, 0, 0, 0, 0, | 241 0, 0, 0, 0, 0, 0, 0, 0, |
241 0, 0, 0, 0, 0, 0, 0, 0, | 242 0, 0, 0, 0, 0, 0, 0, 0, |
242 0, 0, 0, 0, 0, 0, 0, 0, | 243 0, 0, 0, 0, 0, 0, 0, 0, |
243 0, 0, 0, 0, 0, 0, 0, 0, | 244 0, 0, 0, 0, 0, 0, 0, 0, |
244 » 0, 0, 0, 0 | 245 » 0, 0, 0, 0, 0 |
245 }; | 246 }; |
246 | 247 |
247 static const short _myanmar_syllable_machine_eof_trans[] = { | 248 static const short _myanmar_syllable_machine_eof_trans[] = { |
248 » 0, 20, 20, 20, 20, 20, 20, 20, | 249 » 0, 21, 21, 21, 21, 21, 21, 21, |
249 » 20, 20, 20, 20, 20, 20, 20, 20, | 250 » 21, 21, 21, 21, 21, 21, 21, 21, |
250 » 20, 20, 20, 20, 20, 20, 42, 42, | 251 » 21, 21, 21, 21, 21, 21, 43, 43, |
251 » 42, 42, 42, 42, 42, 42, 42, 42, | 252 » 43, 43, 43, 43, 43, 43, 43, 43, |
252 » 20, 20, 42, 42, 42, 42, 42, 42, | 253 » 21, 21, 43, 43, 43, 43, 43, 43, |
253 » 42, 42, 42, 42 | 254 » 43, 43, 43, 43, 51 |
254 }; | 255 }; |
255 | 256 |
256 static const int myanmar_syllable_machine_start = 0; | 257 static const int myanmar_syllable_machine_start = 0; |
257 static const int myanmar_syllable_machine_first_final = 0; | 258 static const int myanmar_syllable_machine_first_final = 0; |
258 static const int myanmar_syllable_machine_error = -1; | 259 static const int myanmar_syllable_machine_error = -1; |
259 | 260 |
260 static const int myanmar_syllable_machine_en_main = 0; | 261 static const int myanmar_syllable_machine_en_main = 0; |
261 | 262 |
262 | 263 |
263 #line 36 "hb-ot-shape-complex-myanmar-machine.rl" | 264 #line 36 "hb-ot-shape-complex-myanmar-machine.rl" |
264 | 265 |
265 | 266 |
266 | 267 |
267 #line 90 "hb-ot-shape-complex-myanmar-machine.rl" | 268 #line 93 "hb-ot-shape-complex-myanmar-machine.rl" |
268 | 269 |
269 | 270 |
270 #define found_syllable(syllable_type) \ | 271 #define found_syllable(syllable_type) \ |
271 HB_STMT_START { \ | 272 HB_STMT_START { \ |
272 if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type);
\ | 273 if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type);
\ |
273 for (unsigned int i = last; i < p+1; i++) \ | 274 for (unsigned int i = last; i < p+1; i++) \ |
274 info[i].syllable() = (syllable_serial << 4) | syllable_type; \ | 275 info[i].syllable() = (syllable_serial << 4) | syllable_type; \ |
275 last = p+1; \ | 276 last = p+1; \ |
276 syllable_serial++; \ | 277 syllable_serial++; \ |
277 if (unlikely (syllable_serial == 16)) syllable_serial = 1; \ | 278 if (unlikely (syllable_serial == 16)) syllable_serial = 1; \ |
278 } HB_STMT_END | 279 } HB_STMT_END |
279 | 280 |
280 static void | 281 static void |
281 find_syllables (hb_buffer_t *buffer) | 282 find_syllables (hb_buffer_t *buffer) |
282 { | 283 { |
283 unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED; | 284 unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED; |
284 int cs; | 285 int cs; |
285 hb_glyph_info_t *info = buffer->info; | 286 hb_glyph_info_t *info = buffer->info; |
286 | 287 |
287 #line 288 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 288 #line 289 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
288 { | 289 { |
289 cs = myanmar_syllable_machine_start; | 290 cs = myanmar_syllable_machine_start; |
290 ts = 0; | 291 ts = 0; |
291 te = 0; | 292 te = 0; |
292 act = 0; | 293 act = 0; |
293 } | 294 } |
294 | 295 |
295 #line 111 "hb-ot-shape-complex-myanmar-machine.rl" | 296 #line 114 "hb-ot-shape-complex-myanmar-machine.rl" |
296 | 297 |
297 | 298 |
298 p = 0; | 299 p = 0; |
299 pe = eof = buffer->len; | 300 pe = eof = buffer->len; |
300 | 301 |
301 unsigned int last = 0; | 302 unsigned int last = 0; |
302 unsigned int syllable_serial = 1; | 303 unsigned int syllable_serial = 1; |
303 | 304 |
304 #line 305 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 305 #line 306 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
305 { | 306 { |
306 int _slen; | 307 int _slen; |
307 int _trans; | 308 int _trans; |
308 const unsigned char *_keys; | 309 const unsigned char *_keys; |
309 const char *_inds; | 310 const char *_inds; |
310 if ( p == pe ) | 311 if ( p == pe ) |
311 goto _test_eof; | 312 goto _test_eof; |
312 _resume: | 313 _resume: |
313 switch ( _myanmar_syllable_machine_from_state_actions[cs] ) { | 314 switch ( _myanmar_syllable_machine_from_state_actions[cs] ) { |
314 case 2: | 315 case 2: |
315 #line 1 "NONE" | 316 #line 1 "NONE" |
316 {ts = p;} | 317 {ts = p;} |
317 break; | 318 break; |
318 #line 319 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 319 #line 320 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
319 } | 320 } |
320 | 321 |
321 _keys = _myanmar_syllable_machine_trans_keys + (cs<<1); | 322 _keys = _myanmar_syllable_machine_trans_keys + (cs<<1); |
322 _inds = _myanmar_syllable_machine_indicies + _myanmar_syllable_machine_i
ndex_offsets[cs]; | 323 _inds = _myanmar_syllable_machine_indicies + _myanmar_syllable_machine_i
ndex_offsets[cs]; |
323 | 324 |
324 _slen = _myanmar_syllable_machine_key_spans[cs]; | 325 _slen = _myanmar_syllable_machine_key_spans[cs]; |
325 _trans = _inds[ _slen > 0 && _keys[0] <=( info[p].myanmar_category()) && | 326 _trans = _inds[ _slen > 0 && _keys[0] <=( info[p].myanmar_category()) && |
326 ( info[p].myanmar_category()) <= _keys[1] ? | 327 ( info[p].myanmar_category()) <= _keys[1] ? |
327 ( info[p].myanmar_category()) - _keys[0] : _slen ]; | 328 ( info[p].myanmar_category()) - _keys[0] : _slen ]; |
328 | 329 |
329 _eof_trans: | 330 _eof_trans: |
330 cs = _myanmar_syllable_machine_trans_targs[_trans]; | 331 cs = _myanmar_syllable_machine_trans_targs[_trans]; |
331 | 332 |
332 if ( _myanmar_syllable_machine_trans_actions[_trans] == 0 ) | 333 if ( _myanmar_syllable_machine_trans_actions[_trans] == 0 ) |
333 goto _again; | 334 goto _again; |
334 | 335 |
335 switch ( _myanmar_syllable_machine_trans_actions[_trans] ) { | 336 switch ( _myanmar_syllable_machine_trans_actions[_trans] ) { |
336 case 7: | 337 case 7: |
337 #line 83 "hb-ot-shape-complex-myanmar-machine.rl" | 338 #line 85 "hb-ot-shape-complex-myanmar-machine.rl" |
338 {te = p+1;{ found_syllable (consonant_syllable); }} | 339 {te = p+1;{ found_syllable (consonant_syllable); }} |
339 break; | 340 break; |
340 case 5: | 341 case 5: |
341 #line 84 "hb-ot-shape-complex-myanmar-machine.rl" | 342 #line 86 "hb-ot-shape-complex-myanmar-machine.rl" |
342 {te = p+1;{ found_syllable (non_myanmar_cluster); }} | 343 {te = p+1;{ found_syllable (non_myanmar_cluster); }} |
343 break; | 344 break; |
| 345 case 10: |
| 346 #line 87 "hb-ot-shape-complex-myanmar-machine.rl" |
| 347 {te = p+1;{ found_syllable (punctuation_cluster); }} |
| 348 break; |
344 case 4: | 349 case 4: |
345 #line 85 "hb-ot-shape-complex-myanmar-machine.rl" | 350 #line 88 "hb-ot-shape-complex-myanmar-machine.rl" |
346 {te = p+1;{ found_syllable (broken_cluster); }} | 351 {te = p+1;{ found_syllable (broken_cluster); }} |
347 break; | 352 break; |
348 case 3: | 353 case 3: |
349 #line 86 "hb-ot-shape-complex-myanmar-machine.rl" | 354 #line 89 "hb-ot-shape-complex-myanmar-machine.rl" |
350 {te = p+1;{ found_syllable (non_myanmar_cluster); }} | 355 {te = p+1;{ found_syllable (non_myanmar_cluster); }} |
351 break; | 356 break; |
352 case 6: | 357 case 6: |
353 #line 83 "hb-ot-shape-complex-myanmar-machine.rl" | 358 #line 85 "hb-ot-shape-complex-myanmar-machine.rl" |
354 {te = p;p--;{ found_syllable (consonant_syllable); }} | 359 {te = p;p--;{ found_syllable (consonant_syllable); }} |
355 break; | 360 break; |
356 case 8: | 361 case 8: |
357 #line 85 "hb-ot-shape-complex-myanmar-machine.rl" | 362 #line 88 "hb-ot-shape-complex-myanmar-machine.rl" |
358 {te = p;p--;{ found_syllable (broken_cluster); }} | 363 {te = p;p--;{ found_syllable (broken_cluster); }} |
359 break; | 364 break; |
360 #line 361 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 365 » case 9: |
| 366 #line 89 "hb-ot-shape-complex-myanmar-machine.rl" |
| 367 » {te = p;p--;{ found_syllable (non_myanmar_cluster); }} |
| 368 » break; |
| 369 #line 370 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
361 } | 370 } |
362 | 371 |
363 _again: | 372 _again: |
364 switch ( _myanmar_syllable_machine_to_state_actions[cs] ) { | 373 switch ( _myanmar_syllable_machine_to_state_actions[cs] ) { |
365 case 1: | 374 case 1: |
366 #line 1 "NONE" | 375 #line 1 "NONE" |
367 {ts = 0;} | 376 {ts = 0;} |
368 break; | 377 break; |
369 #line 370 "hb-ot-shape-complex-myanmar-machine.hh.tmp" | 378 #line 379 "hb-ot-shape-complex-myanmar-machine.hh.tmp" |
370 } | 379 } |
371 | 380 |
372 if ( ++p != pe ) | 381 if ( ++p != pe ) |
373 goto _resume; | 382 goto _resume; |
374 _test_eof: {} | 383 _test_eof: {} |
375 if ( p == eof ) | 384 if ( p == eof ) |
376 { | 385 { |
377 if ( _myanmar_syllable_machine_eof_trans[cs] > 0 ) { | 386 if ( _myanmar_syllable_machine_eof_trans[cs] > 0 ) { |
378 _trans = _myanmar_syllable_machine_eof_trans[cs] - 1; | 387 _trans = _myanmar_syllable_machine_eof_trans[cs] - 1; |
379 goto _eof_trans; | 388 goto _eof_trans; |
380 } | 389 } |
381 } | 390 } |
382 | 391 |
383 } | 392 } |
384 | 393 |
385 #line 120 "hb-ot-shape-complex-myanmar-machine.rl" | 394 #line 123 "hb-ot-shape-complex-myanmar-machine.rl" |
386 | 395 |
387 } | 396 } |
388 | 397 |
389 #undef found_syllable | 398 #undef found_syllable |
390 | 399 |
391 #endif /* HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH */ | 400 #endif /* HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH */ |
OLD | NEW |