blob: 1b2a085a8d7c6819e242f155e8825fd8301b58de [file] [log] [blame]
Behdad Esfahbod98628ca2013-02-11 13:36:23 -05001/*
2 * Copyright © 2011,2012,2013 Google, Inc.
3 *
4 * This is part of HarfBuzz, a text shaping library.
5 *
6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software.
11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16 * DAMAGE.
17 *
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23 *
24 * Google Author(s): Behdad Esfahbod
25 */
26
Behdad Esfahbod7aad5362019-06-26 13:21:03 -070027#include "hb.hh"
28
29#ifndef HB_NO_OT_SHAPE
30
Behdad Esfahbod5bfb0b72022-06-03 02:56:41 -060031#include "hb-ot-shaper-myanmar-machine.hh"
Behdad Esfahbod899ca242022-06-05 01:52:31 -060032#include "hb-ot-shaper-indic.hh"
33#include "hb-ot-layout.hh"
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050034
35
36/*
37 * Myanmar shaper.
38 */
39
Behdad Esfahbodd414fb32022-06-10 00:50:47 -060040
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050041static const hb_tag_t
Behdad Esfahbodd8b53532019-07-02 15:09:26 -070042myanmar_basic_features[] =
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050043{
44 /*
45 * Basic features.
Behdad Esfahbod62a535f2021-08-03 10:11:27 -060046 * These features are applied in order, one at a time, after reordering,
47 * constrained to the syllable.
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050048 */
49 HB_TAG('r','p','h','f'),
50 HB_TAG('p','r','e','f'),
51 HB_TAG('b','l','w','f'),
52 HB_TAG('p','s','t','f'),
Behdad Esfahbodee9c3a12013-02-15 06:22:26 -050053};
54static const hb_tag_t
Behdad Esfahbodd8b53532019-07-02 15:09:26 -070055myanmar_other_features[] =
Behdad Esfahbodee9c3a12013-02-15 06:22:26 -050056{
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050057 /*
58 * Other features.
Behdad Esfahbod982c2f42018-10-26 15:40:12 -070059 * These features are applied all at once, after clearing syllables.
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050060 */
61 HB_TAG('p','r','e','s'),
62 HB_TAG('a','b','v','s'),
63 HB_TAG('b','l','w','s'),
64 HB_TAG('p','s','t','s'),
Behdad Esfahbod3583fb02018-09-23 22:33:38 -040065};
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050066
Behdad Esfahbod899ca242022-06-05 01:52:31 -060067static inline void
68set_myanmar_properties (hb_glyph_info_t &info)
69{
70 hb_codepoint_t u = info.codepoint;
71 unsigned int type = hb_indic_get_categories (u);
Behdad Esfahbod899ca242022-06-05 01:52:31 -060072
Behdad Esfahbod37217fc2022-06-09 16:43:50 -060073 info.myanmar_category() = (myanmar_category_t) (type & 0xFFu);
Behdad Esfahbod899ca242022-06-05 01:52:31 -060074}
75
Behdad Esfahbod10a54852022-06-10 06:34:56 -060076
77static inline bool
78is_one_of_myanmar (const hb_glyph_info_t &info, unsigned int flags)
79{
80 /* If it ligated, all bets are off. */
81 if (_hb_glyph_info_ligated (&info)) return false;
Behdad Esfahbod14049002022-06-11 03:53:47 -060082 return !!(FLAG_UNSAFE (info.myanmar_category()) & flags);
Behdad Esfahbod10a54852022-06-10 06:34:56 -060083}
84
85/* Note:
86 *
87 * We treat Vowels and placeholders as if they were consonants. This is safe because Vowels
88 * cannot happen in a consonant syllable. The plus side however is, we can call the
89 * consonant syllable logic from the vowel syllable function and get it all right!
90 *
91 * Keep in sync with consonant_categories in the generator. */
92#define CONSONANT_FLAGS_MYANMAR (FLAG (M_Cat(C)) | FLAG (M_Cat(CS)) | FLAG (M_Cat(Ra)) | /* FLAG (M_Cat(CM)) | */ FLAG (M_Cat(IV)) | FLAG (M_Cat(GB)) | FLAG (M_Cat(DOTTEDCIRCLE)))
93
94static inline bool
95is_consonant_myanmar (const hb_glyph_info_t &info)
96{
97 return is_one_of_myanmar (info, CONSONANT_FLAGS_MYANMAR);
98}
99
100
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900101static bool
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700102setup_syllables_myanmar (const hb_ot_shape_plan_t *plan,
103 hb_font_t *font,
104 hb_buffer_t *buffer);
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900105static bool
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700106reorder_myanmar (const hb_ot_shape_plan_t *plan,
Behdad Esfahbod982c2f42018-10-26 15:40:12 -0700107 hb_font_t *font,
108 hb_buffer_t *buffer);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500109
110static void
111collect_features_myanmar (hb_ot_shape_planner_t *plan)
112{
113 hb_ot_map_builder_t *map = &plan->map;
114
115 /* Do this before any lookups have been applied. */
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700116 map->add_gsub_pause (setup_syllables_myanmar);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500117
Behdad Esfahbod044d7a02022-03-28 12:38:56 -0600118 map->enable_feature (HB_TAG('l','o','c','l'), F_PER_SYLLABLE);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500119 /* The Indic specs do not require ccmp, but we apply it here since if
120 * there is a use of it, it's typically at the beginning. */
Behdad Esfahbod044d7a02022-03-28 12:38:56 -0600121 map->enable_feature (HB_TAG('c','c','m','p'), F_PER_SYLLABLE);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500122
123
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700124 map->add_gsub_pause (reorder_myanmar);
Behdad Esfahbod3583fb02018-09-23 22:33:38 -0400125
Behdad Esfahbodd8b53532019-07-02 15:09:26 -0700126 for (unsigned int i = 0; i < ARRAY_LENGTH (myanmar_basic_features); i++)
Behdad Esfahbodee9c3a12013-02-15 06:22:26 -0500127 {
Behdad Esfahbod044d7a02022-03-28 12:38:56 -0600128 map->enable_feature (myanmar_basic_features[i], F_MANUAL_ZWJ | F_PER_SYLLABLE);
Behdad Esfahboddbdbfe32017-10-15 12:11:08 +0200129 map->add_gsub_pause (nullptr);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500130 }
Behdad Esfahbod15543f72022-06-04 10:55:50 -0600131 map->add_gsub_pause (hb_syllabic_clear_var); // Don't need syllables anymore, use stop to free buffer var
Behdad Esfahbod3583fb02018-09-23 22:33:38 -0400132
Behdad Esfahbodd8b53532019-07-02 15:09:26 -0700133 for (unsigned int i = 0; i < ARRAY_LENGTH (myanmar_other_features); i++)
134 map->enable_feature (myanmar_other_features[i], F_MANUAL_ZWJ);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500135}
136
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500137static void
138setup_masks_myanmar (const hb_ot_shape_plan_t *plan HB_UNUSED,
Ebrahim Byagowi05584132019-10-01 13:49:55 +0330139 hb_buffer_t *buffer,
140 hb_font_t *font HB_UNUSED)
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500141{
142 HB_BUFFER_ALLOCATE_VAR (buffer, myanmar_category);
143 HB_BUFFER_ALLOCATE_VAR (buffer, myanmar_position);
144
Simon Cozens9e59c402022-04-20 16:56:34 +0100145 /* No masks, we just save information about characters. */
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500146
147 unsigned int count = buffer->len;
Behdad Esfahbod7cd33f22014-07-17 14:22:11 -0400148 hb_glyph_info_t *info = buffer->info;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500149 for (unsigned int i = 0; i < count; i++)
Behdad Esfahbod7cd33f22014-07-17 14:22:11 -0400150 set_myanmar_properties (info[i]);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500151}
152
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900153static bool
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700154setup_syllables_myanmar (const hb_ot_shape_plan_t *plan HB_UNUSED,
155 hb_font_t *font HB_UNUSED,
156 hb_buffer_t *buffer)
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500157{
Behdad Esfahbod15543f72022-06-04 10:55:50 -0600158 HB_BUFFER_ALLOCATE_VAR (buffer, syllable);
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700159 find_syllables_myanmar (buffer);
Behdad Esfahbod9e005c52017-08-10 18:45:33 -0700160 foreach_syllable (buffer, start, end)
161 buffer->unsafe_to_break (start, end);
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900162 return false;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500163}
164
165static int
166compare_myanmar_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
167{
168 int a = pa->myanmar_position();
169 int b = pb->myanmar_position();
170
Behdad Esfahbod39c132a2022-06-10 07:12:39 -0600171 return (int) a - (int) b;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500172}
173
174
175/* Rules from:
Ebrahim Byagowif24b0b92018-04-12 13:40:45 +0430176 * https://docs.microsoft.com/en-us/typography/script-development/myanmar */
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500177
178static void
Behdad Esfahbod56f71ff2015-07-22 11:58:11 +0100179initial_reordering_consonant_syllable (hb_buffer_t *buffer,
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500180 unsigned int start, unsigned int end)
181{
182 hb_glyph_info_t *info = buffer->info;
183
184 unsigned int base = end;
185 bool has_reph = false;
186
187 {
188 unsigned int limit = start;
189 if (start + 3 <= end &&
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600190 info[start ].myanmar_category() == M_Cat(Ra) &&
191 info[start+1].myanmar_category() == M_Cat(As) &&
192 info[start+2].myanmar_category() == M_Cat(H))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500193 {
194 limit += 3;
195 base = start;
196 has_reph = true;
197 }
198
199 {
200 if (!has_reph)
201 base = limit;
202
203 for (unsigned int i = limit; i < end; i++)
Behdad Esfahbod10a54852022-06-10 06:34:56 -0600204 if (is_consonant_myanmar (info[i]))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500205 {
206 base = i;
207 break;
208 }
209 }
210 }
211
212 /* Reorder! */
213 {
214 unsigned int i = start;
215 for (; i < start + (has_reph ? 3 : 0); i++)
216 info[i].myanmar_position() = POS_AFTER_MAIN;
217 for (; i < base; i++)
218 info[i].myanmar_position() = POS_PRE_C;
219 if (i < end)
220 {
221 info[i].myanmar_position() = POS_BASE_C;
222 i++;
223 }
Behdad Esfahbod5d957ff2021-09-20 11:33:01 -0600224 myanmar_position_t pos = POS_AFTER_MAIN;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500225 /* The following loop may be ugly, but it implements all of
226 * Myanmar reordering! */
227 for (; i < end; i++)
228 {
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600229 if (info[i].myanmar_category() == M_Cat(MR)) /* Pre-base reordering */
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500230 {
231 info[i].myanmar_position() = POS_PRE_C;
232 continue;
233 }
Behdad Esfahboda6c82d42022-06-09 13:04:28 -0600234 if (info[i].myanmar_category() == M_Cat(VPre)) /* Left matra */
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500235 {
Behdad Esfahboda6c82d42022-06-09 13:04:28 -0600236 info[i].myanmar_position() = POS_PRE_M;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500237 continue;
238 }
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600239 if (info[i].myanmar_category() == M_Cat(VS))
David Corbettccb03672018-02-02 12:04:04 -0500240 {
241 info[i].myanmar_position() = info[i - 1].myanmar_position();
242 continue;
243 }
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500244
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600245 if (pos == POS_AFTER_MAIN && info[i].myanmar_category() == M_Cat(VBlw))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500246 {
247 pos = POS_BELOW_C;
248 info[i].myanmar_position() = pos;
249 continue;
250 }
251
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600252 if (pos == POS_BELOW_C && info[i].myanmar_category() == M_Cat(A))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500253 {
254 info[i].myanmar_position() = POS_BEFORE_SUB;
255 continue;
256 }
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600257 if (pos == POS_BELOW_C && info[i].myanmar_category() == M_Cat(VBlw))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500258 {
259 info[i].myanmar_position() = pos;
260 continue;
261 }
Behdad Esfahbod899ca242022-06-05 01:52:31 -0600262 if (pos == POS_BELOW_C && info[i].myanmar_category() != M_Cat(A))
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500263 {
Ebrahim Byagowia0b4ac42019-08-24 17:57:14 +0430264 pos = POS_AFTER_SUB;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500265 info[i].myanmar_position() = pos;
266 continue;
267 }
268 info[i].myanmar_position() = pos;
269 }
270 }
271
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500272 /* Sit tight, rock 'n roll! */
Behdad Esfahbodc403d632015-09-01 16:15:25 +0100273 buffer->sort (start, end, compare_myanmar_order);
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900274
275 /* Flip left-matra sequence. */
276 unsigned first_left_matra = end;
277 unsigned last_left_matra = end;
278 for (unsigned int i = start; i < end; i++)
279 {
280 if (info[i].myanmar_position() == POS_PRE_M)
281 {
282 if (first_left_matra == end)
283 first_left_matra = i;
284 last_left_matra = i;
285 }
286 }
287 /* https://github.com/harfbuzz/harfbuzz/issues/3863 */
288 if (first_left_matra < last_left_matra)
289 {
290 /* No need to merge clusters, done already? */
291 buffer->reverse_range (first_left_matra, last_left_matra + 1);
292 /* Reverse back VS, etc. */
293 unsigned i = first_left_matra;
294 for (unsigned j = i; j <= last_left_matra; j++)
295 if (info[j].myanmar_category() == M_Cat(VPre))
296 {
297 buffer->reverse_range (i, j + 1);
298 i = j + 1;
299 }
300 }
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500301}
302
303static void
Behdad Esfahbodd8b53532019-07-02 15:09:26 -0700304reorder_syllable_myanmar (const hb_ot_shape_plan_t *plan HB_UNUSED,
305 hb_face_t *face HB_UNUSED,
306 hb_buffer_t *buffer,
307 unsigned int start, unsigned int end)
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500308{
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700309 myanmar_syllable_type_t syllable_type = (myanmar_syllable_type_t) (buffer->info[start].syllable() & 0x0F);
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500310 switch (syllable_type) {
Behdad Esfahbod56f71ff2015-07-22 11:58:11 +0100311
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700312 case myanmar_broken_cluster: /* We already inserted dotted-circles, so just call the consonant_syllable. */
313 case myanmar_consonant_syllable:
Behdad Esfahbod56f71ff2015-07-22 11:58:11 +0100314 initial_reordering_consonant_syllable (buffer, start, end);
315 break;
316
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700317 case myanmar_non_myanmar_cluster:
Behdad Esfahbod56f71ff2015-07-22 11:58:11 +0100318 break;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500319 }
320}
321
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900322static bool
Behdad Esfahbodd115a9e2019-07-02 14:42:45 -0700323reorder_myanmar (const hb_ot_shape_plan_t *plan,
324 hb_font_t *font,
325 hb_buffer_t *buffer)
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500326{
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900327 bool ret = false;
Behdad Esfahbod0ddade42021-01-15 19:13:47 -0700328 if (buffer->message (font, "start reordering myanmar"))
329 {
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900330 if (hb_syllabic_insert_dotted_circles (font, buffer,
331 myanmar_broken_cluster,
332 M_Cat(DOTTEDCIRCLE)))
333 ret = true;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500334
Simon Cozensb50099b2020-09-17 14:25:30 +0100335 foreach_syllable (buffer, start, end)
336 reorder_syllable_myanmar (plan, font->face, buffer, start, end);
Simon Cozens428c1112020-09-18 16:24:47 +0100337 (void) buffer->message (font, "end reordering myanmar");
Simon Cozensb50099b2020-09-17 14:25:30 +0100338 }
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500339
340 HB_BUFFER_DEALLOCATE_VAR (buffer, myanmar_category);
341 HB_BUFFER_DEALLOCATE_VAR (buffer, myanmar_position);
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900342
343 return ret;
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500344}
345
Behdad Esfahbod71b4c992013-10-28 00:20:59 +0100346
Behdad Esfahbod44a7b3b2022-06-03 02:42:34 -0600347const hb_ot_shaper_t _hb_ot_shaper_myanmar =
Behdad Esfahbod00c5c4a2018-10-11 20:15:31 -0400348{
349 collect_features_myanmar,
Khaled Hosny7d64b092020-09-12 21:17:18 +0200350 nullptr, /* override_features */
Behdad Esfahbod00c5c4a2018-10-11 20:15:31 -0400351 nullptr, /* data_create */
352 nullptr, /* data_destroy */
353 nullptr, /* preprocess_text */
354 nullptr, /* postprocess_glyphs */
Behdad Esfahbod00c5c4a2018-10-11 20:15:31 -0400355 nullptr, /* decompose */
356 nullptr, /* compose */
357 setup_masks_myanmar,
Behdad Esfahbod00c5c4a2018-10-11 20:15:31 -0400358 nullptr, /* reorder_marks */
Behdad Esfahbodc2712ff2022-07-13 13:34:11 -0600359 HB_TAG_NONE, /* gpos_tag */
360 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
Behdad Esfahbod00c5c4a2018-10-11 20:15:31 -0400361 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY,
362 false, /* fallback_position */
363};
364
365
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900366#ifndef HB_NO_OT_SHAPER_MYANMAR_ZAWGYI
Behdad Esfahbodbdb53ca2018-10-11 20:20:00 -0400367/* Ugly Zawgyi encoding.
368 * Disable all auto processing.
369 * https://github.com/harfbuzz/harfbuzz/issues/1162 */
Behdad Esfahbod44a7b3b2022-06-03 02:42:34 -0600370const hb_ot_shaper_t _hb_ot_shaper_myanmar_zawgyi =
Behdad Esfahbodbdb53ca2018-10-11 20:20:00 -0400371{
372 nullptr, /* collect_features */
373 nullptr, /* override_features */
374 nullptr, /* data_create */
375 nullptr, /* data_destroy */
376 nullptr, /* preprocess_text */
377 nullptr, /* postprocess_glyphs */
Behdad Esfahbodbdb53ca2018-10-11 20:20:00 -0400378 nullptr, /* decompose */
379 nullptr, /* compose */
380 nullptr, /* setup_masks */
Behdad Esfahbodbdb53ca2018-10-11 20:20:00 -0400381 nullptr, /* reorder_marks */
Behdad Esfahbodc2712ff2022-07-13 13:34:11 -0600382 HB_TAG_NONE, /* gpos_tag */
383 HB_OT_SHAPE_NORMALIZATION_MODE_NONE,
Behdad Esfahbodbdb53ca2018-10-11 20:20:00 -0400384 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
385 false, /* fallback_position */
386};
Seigo Nonakac62d6f42023-03-01 19:52:57 +0900387#endif
Behdad Esfahbod7aad5362019-06-26 13:21:03 -0700388
389
390#endif