5 ================================================================================
6 Initialization of UTF-8 support and new cvars.
7 ================================================================================
9 // for compatibility this defaults to 0
10 cvar_t utf8_enable = {CVAR_SAVE, "utf8_enable", "0", "Enable UTF-8 support. For compatibility, this is disabled by default in most games."};
14 Cvar_RegisterVariable(&utf8_enable);
18 ================================================================================
19 UTF-8 encoding and decoding functions follow.
20 ================================================================================
23 unsigned char utf8_lengths[256] = { // 0 = invalid
24 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // ascii characters
25 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
26 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
27 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
28 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
29 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
30 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
31 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
32 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x80 - 0xBF are within multibyte sequences
33 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // they could be interpreted as 2-byte starts but
34 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // the codepoint would be < 127
35 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0 and C1 would also result in overlong encodings
37 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
38 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
39 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
40 // with F5 the codepoint is above 0x10FFFF,
41 // F8-FB would start 5-byte sequences
42 // FC-FD would start 6-byte sequences
45 Uchar utf8_range[5] = {
46 1, // invalid - let's not allow the creation of 0-bytes :P
48 0x80, // 2-byte minimum
49 0x800, // 3-byte minimum
50 0x10000, // 4-byte minimum
53 /** Analyze the next character and return various information if requested.
54 * @param _s An utf-8 string.
55 * @param _start Filled with the start byte-offset of the next valid character
56 * @param _len Fileed with the length of the next valid character
57 * @param _ch Filled with the unicode value of the next character
58 * @param _maxlen Maximum number of bytes to read from _s
59 * @return Whether or not another valid character is in the string
61 #define U8_ANALYZE_INFINITY 7
62 static qboolean u8_analyze(const char *_s, size_t *_start, size_t *_len, Uchar *_ch, size_t _maxlen)
64 const unsigned char *s = (const unsigned char*)_s;
71 while (i < _maxlen && s[i] && (bits = utf8_lengths[s[i]]) == 0)
74 if (i >= _maxlen || !s[i]) {
75 if (_start) *_start = i;
80 if (bits == 1) { // ascii
81 if (_start) *_start = i;
83 if (_ch) *_ch = (Uchar)s[i];
87 ch = (s[i] & (0xFF >> bits));
88 for (j = 1; j < bits; ++j)
90 if ( (s[i+j] & 0xC0) != 0x80 )
95 ch = (ch << 6) | (s[i+j] & 0x3F);
97 if (ch < utf8_range[bits] || ch >= 0x10FFFF)
103 // <0xC2 is always an overlong encoding, they're invalid, thus skipped
104 while (i < _maxlen && s[i] && s[i] >= 0x80 && s[i] < 0xC2) {
105 //fprintf(stderr, "skipping\n");
109 // If we hit the end, well, we're out and invalid
110 if(i >= _maxlen || !s[i]) {
111 if (_start) *_start = i;
116 // I'll leave that in - if you remove it, also change the part below
117 // to support 1-byte chars correctly
120 if (_start) *_start = i;
122 if (_ch) *_ch = (Uchar)s[i];
123 //fprintf(stderr, "valid ascii\n");
127 // Figure out the next char's length
130 // count the 1 bits, they're the # of bytes
131 for (bt = 0x40; bt && (bc & bt); bt >>= 1, ++bits);
134 //fprintf(stderr, "superlong\n");
138 if(i + bits > _maxlen) {
140 if (_start) *_start = i;
147 // turn bt into a mask and give ch a starting value
150 // check the byte sequence for invalid bytes
151 for (j = 1; j < bits; ++j)
153 // valid bit value: 10xx xxxx
154 //if (s[i+j] < 0x80 || s[i+j] >= 0xC0)
155 if ( (s[i+j] & 0xC0) != 0x80 )
157 //fprintf(stderr, "sequence of %i f'd at %i by %x\n", bits, j, (unsigned int)s[i+j]);
158 // this byte sequence is invalid, skip it
160 // find a character after it
163 // at the same time, decode the character
164 ch = (ch << 6) | (s[i+j] & 0x3F);
167 // Now check the decoded byte for an overlong encoding
168 if ( (bits >= 2 && ch < 0x80) ||
169 (bits >= 3 && ch < 0x800) ||
170 (bits >= 4 && ch < 0x10000) ||
171 ch >= 0x10FFFF // RFC 3629
175 //fprintf(stderr, "overlong: %i bytes for %x\n", bits, ch);
186 //fprintf(stderr, "valid utf8\n");
190 /** Get the number of characters in an UTF-8 string.
191 * @param _s An utf-8 encoded null-terminated string.
192 * @return The number of unicode characters in the string.
194 size_t u8_strlen(const char *_s)
198 const unsigned char *s = (const unsigned char*)_s;
200 if (!utf8_enable.integer)
205 // ascii char, skip u8_analyze
213 // invalid, skip u8_analyze
220 if (!u8_analyze((const char*)s, &st, &ln, NULL, U8_ANALYZE_INFINITY))
222 // valid character, skip after it
229 /** Get the number of characters in a part of an UTF-8 string.
230 * @param _s An utf-8 encoded null-terminated string.
231 * @param n The maximum number of bytes.
232 * @return The number of unicode characters in the string.
234 size_t u8_strnlen(const char *_s, size_t n)
238 const unsigned char *s = (const unsigned char*)_s;
240 if (!utf8_enable.integer)
243 return (len < n) ? len : n;
248 // ascii char, skip u8_analyze
257 // invalid, skip u8_analyze
265 if (!u8_analyze((const char*)s, &st, &ln, NULL, n))
267 // valid character, see if it's still inside the range specified by n:
277 /** Get the number of bytes used in a string to represent an amount of characters.
278 * @param _s An utf-8 encoded null-terminated string.
279 * @param n The number of characters we want to know the byte-size for.
280 * @return The number of bytes used to represent n characters.
282 size_t u8_bytelen(const char *_s, size_t n)
286 const unsigned char *s = (const unsigned char*)_s;
288 if (!utf8_enable.integer) {
290 return (len < n) ? len : n;
295 // ascii char, skip u8_analyze
304 // invalid, skip u8_analyze
312 if (!u8_analyze((const char*)s, &st, &ln, NULL, U8_ANALYZE_INFINITY))
321 /** Get the byte-index for a character-index.
322 * @param _s An utf-8 encoded string.
323 * @param i The character-index for which you want the byte offset.
324 * @param len If not null, character's length will be stored in there.
325 * @return The byte-index at which the character begins, or -1 if the string is too short.
327 int u8_byteofs(const char *_s, size_t i, size_t *len)
331 const unsigned char *s = (const unsigned char*)_s;
333 if (!utf8_enable.integer)
349 if (!u8_analyze((const char*)s + ofs, &st, &ln, NULL, U8_ANALYZE_INFINITY))
358 /** Get the char-index for a byte-index.
359 * @param _s An utf-8 encoded string.
360 * @param i The byte offset for which you want the character index.
361 * @param len If not null, the offset within the character is stored here.
362 * @return The character-index, or -1 if the string is too short.
364 int u8_charidx(const char *_s, size_t i, size_t *len)
370 const unsigned char *s = (const unsigned char*)_s;
372 if (!utf8_enable.integer)
378 while (ofs < i && s[ofs])
380 // ascii character, skip u8_analyze
389 // invalid, skip u8_analyze
396 if (!u8_analyze((const char*)s+ofs, &st, &ln, NULL, U8_ANALYZE_INFINITY))
398 // see if next char is after the bytemark
408 // see if bytemark is within the char
420 /** Get the byte offset of the previous byte.
422 * prevchar_pos = u8_byteofs(text, u8_charidx(text, thischar_pos, NULL) - 1, NULL)
423 * @param _s An utf-8 encoded string.
424 * @param i The current byte offset.
425 * @return The byte offset of the previous character
427 size_t u8_prevbyte(const char *_s, size_t i)
430 const unsigned char *s = (const unsigned char*)_s;
434 if (!utf8_enable.integer)
441 while (ofs < i && s[ofs])
443 // ascii character, skip u8_analyze
450 // invalid, skip u8_analyze
457 if (!u8_analyze((const char*)s+ofs, &st, &ln, NULL, U8_ANALYZE_INFINITY))
461 if (ofs + st + ln >= i)
470 Uchar u8_quake2utf8map[256] = {
471 0xE000, 0xE001, 0xE002, 0xE003, 0xE004, 0xE005, 0xE006, 0xE007, 0xE008, 0xE009, 0xE00A, 0xE00B, 0xE00C, 0xE00D, 0xE00E, 0xE00F, // specials
472 0xE010, 0xE011, 0xE012, 0xE013, 0xE014, 0xE015, 0xE016, 0xE017, 0xE018, 0xE019, 0xE01A, 0xE01B, 0xE01C, 0xE01D, 0xE01E, 0xE01F, // specials
473 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, // shift+digit line
474 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F, // digits
475 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, // caps
476 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F, // caps
477 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, // small
478 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007A, 0x007B, 0x007C, 0x007D, 0x007E, 0x007F, // small
479 0xE080, 0xE081, 0xE082, 0xE083, 0xE084, 0xE085, 0xE086, 0xE087, 0xE088, 0xE089, 0xE08A, 0xE08B, 0xE08C, 0xE08D, 0xE08E, 0xE08F, // specials
480 0xE090, 0xE091, 0xE092, 0xE093, 0xE094, 0xE095, 0xE096, 0xE097, 0xE098, 0xE099, 0xE09A, 0xE09B, 0xE09C, 0xE09D, 0xE09E, 0xE09F, // faces
481 0xE0A0, 0xE0A1, 0xE0A2, 0xE0A3, 0xE0A4, 0xE0A5, 0xE0A6, 0xE0A7, 0xE0A8, 0xE0A9, 0xE0AA, 0xE0AB, 0xE0AC, 0xE0AD, 0xE0AE, 0xE0AF,
482 0xE0B0, 0xE0B1, 0xE0B2, 0xE0B3, 0xE0B4, 0xE0B5, 0xE0B6, 0xE0B7, 0xE0B8, 0xE0B9, 0xE0BA, 0xE0BB, 0xE0BC, 0xE0BD, 0xE0BE, 0xE0BF,
483 0xE0C0, 0xE0C1, 0xE0C2, 0xE0C3, 0xE0C4, 0xE0C5, 0xE0C6, 0xE0C7, 0xE0C8, 0xE0C9, 0xE0CA, 0xE0CB, 0xE0CC, 0xE0CD, 0xE0CE, 0xE0CF,
484 0xE0D0, 0xE0D1, 0xE0D2, 0xE0D3, 0xE0D4, 0xE0D5, 0xE0D6, 0xE0D7, 0xE0D8, 0xE0D9, 0xE0DA, 0xE0DB, 0xE0DC, 0xE0DD, 0xE0DE, 0xE0DF,
485 0xE0E0, 0xE0E1, 0xE0E2, 0xE0E3, 0xE0E4, 0xE0E5, 0xE0E6, 0xE0E7, 0xE0E8, 0xE0E9, 0xE0EA, 0xE0EB, 0xE0EC, 0xE0ED, 0xE0EE, 0xE0EF,
486 0xE0F0, 0xE0F1, 0xE0F2, 0xE0F3, 0xE0F4, 0xE0F5, 0xE0F6, 0xE0F7, 0xE0F8, 0xE0F9, 0xE0FA, 0xE0FB, 0xE0FC, 0xE0FD, 0xE0FE, 0xE0FF,
489 /** Fetch a character from an utf-8 encoded string.
490 * @param _s The start of an utf-8 encoded multi-byte character.
491 * @param _end Will point to after the first multi-byte character.
492 * @return The 32-bit integer representation of the first multi-byte character or 0 for invalid characters.
494 Uchar u8_getchar_utf8_enabled(const char *_s, const char **_end)
499 if (!u8_analyze(_s, &st, &ln, &ch, U8_ANALYZE_INFINITY))
502 *_end = _s + st + ln;
506 /** Fetch a character from an utf-8 encoded string.
507 * @param _s The start of an utf-8 encoded multi-byte character.
508 * @param _end Will point to after the first multi-byte character.
509 * @return The 32-bit integer representation of the first multi-byte character or 0 for invalid characters.
511 Uchar u8_getnchar_utf8_enabled(const char *_s, const char **_end, size_t _maxlen)
516 if (!u8_analyze(_s, &st, &ln, &ch, _maxlen))
519 *_end = _s + st + ln;
523 /** Encode a wide-character into utf-8.
524 * @param w The wide character to encode.
525 * @param to The target buffer the utf-8 encoded string is stored to.
526 * @param maxlen The maximum number of bytes that fit into the target buffer.
527 * @return Number of bytes written to the buffer not including the terminating null.
528 * Less or equal to 0 if the buffer is too small.
530 int u8_fromchar(Uchar w, char *to, size_t maxlen)
538 if (w >= 0xE000 && !utf8_enable.integer)
541 if (w < 0x80 || !utf8_enable.integer)
549 // for a little speedup
558 to[1] = 0x80 | (w & 0x3F); w >>= 6;
570 to[2] = 0x80 | (w & 0x3F); w >>= 6;
571 to[1] = 0x80 | (w & 0x3F); w >>= 6;
585 to[3] = 0x80 | (w & 0x3F); w >>= 6;
586 to[2] = 0x80 | (w & 0x3F); w >>= 6;
587 to[1] = 0x80 | (w & 0x3F); w >>= 6;
594 /** uses u8_fromchar on a static buffer
595 * @param ch The unicode character to convert to encode
596 * @param l The number of bytes without the terminating null.
597 * @return A statically allocated buffer containing the character's utf8 representation, or NULL if it fails.
599 char *u8_encodech(Uchar ch, size_t *l)
603 len = u8_fromchar(ch, buf, sizeof(buf));
612 /** Convert a utf-8 multibyte string to a wide character string.
613 * @param wcs The target wide-character buffer.
614 * @param mb The utf-8 encoded multibyte string to convert.
615 * @param maxlen The maximum number of wide-characters that fit into the target buffer.
616 * @return The number of characters written to the target buffer.
618 size_t u8_mbstowcs(Uchar *wcs, const char *mb, size_t maxlen)
624 for (i = 0; *mb && i < maxlen-1; ++i)
626 ch = u8_getchar(mb, &mb);
635 /** Convert a wide-character string to a utf-8 multibyte string.
636 * @param mb The target buffer the utf-8 string is written to.
637 * @param wcs The wide-character string to convert.
638 * @param maxlen The number bytes that fit into the multibyte target buffer.
639 * @return The number of bytes written, not including the terminating \0
641 size_t u8_wcstombs(char *mb, const Uchar *wcs, size_t maxlen)
644 const char *start = mb;
647 for (i = 0; wcs[i] && i < maxlen-1; ++i)
651 if ( (len = u8_fromchar(wcs[i], mb, maxlen - i)) < 0)
655 mb += u8_fromchar(wcs[i], mb, maxlen - i);
663 UTF-8 aware COM_StringLengthNoColors
665 calculates the visible width of a color coded string.
667 *valid is filled with TRUE if the string is a valid colored string (that is, if
668 it does not end with an unfinished color code). If it gets filled with FALSE, a
669 fix would be adding a STRING_COLOR_TAG at the end of the string.
671 valid can be set to NULL if the caller doesn't care.
673 For size_s, specify the maximum number of characters from s to use, or 0 to use
674 all characters until the zero terminator.
678 COM_StringLengthNoColors(const char *s, size_t size_s, qboolean *valid);
680 u8_COM_StringLengthNoColors(const char *_s, size_t size_s, qboolean *valid)
682 const unsigned char *s = (const unsigned char*)_s;
683 const unsigned char *end;
687 if (!utf8_enable.integer)
688 return COM_StringLengthNoColors(_s, size_s, valid);
690 end = size_s ? (s + size_s) : NULL;
694 switch((s == end) ? 0 : *s)
700 case STRING_COLOR_TAG:
702 switch((s == end) ? 0 : *s)
704 case STRING_COLOR_RGB_TAG_CHAR:
705 if (s+1 != end && isxdigit(s[1]) &&
706 s+2 != end && isxdigit(s[2]) &&
707 s+3 != end && isxdigit(s[3]) )
712 ++len; // STRING_COLOR_TAG
713 ++len; // STRING_COLOR_RGB_TAG_CHAR
715 case 0: // ends with unfinished color code!
720 case STRING_COLOR_TAG: // escaped ^
723 case '0': case '1': case '2': case '3': case '4':
724 case '5': case '6': case '7': case '8': case '9': // color code
726 default: // not a color code
727 ++len; // STRING_COLOR_TAG
728 ++len; // the character
737 // ascii char, skip u8_analyze
745 // invalid, skip u8_analyze
752 if (!u8_analyze((const char*)s, &st, &ln, NULL, U8_ANALYZE_INFINITY))
754 // we CAN end up here, if an invalid char is between this one and the end of the string
760 if(end && s + st + ln > end)
762 // string length exceeded by new character
768 // valid character, skip after it
775 /** Pads a utf-8 string
776 * @param out The target buffer the utf-8 string is written to.
777 * @param outsize The size of the target buffer, including the final NUL
778 * @param in The input utf-8 buffer
779 * @param leftalign Left align the output string (by default right alignment is done)
780 * @param minwidth The minimum output width
781 * @param maxwidth The maximum output width
782 * @return The number of bytes written, not including the terminating \0
784 size_t u8_strpad(char *out, size_t outsize, const char *in, qboolean leftalign, size_t minwidth, size_t maxwidth)
786 if(!utf8_enable.integer)
788 return dpsnprintf(out, outsize, "%*.*s", leftalign ? -(int) minwidth : (int) minwidth, (int) maxwidth, in);
792 size_t l = u8_bytelen(in, maxwidth);
793 size_t actual_width = u8_strnlen(in, l);
794 int pad = (actual_width >= minwidth) ? 0 : (minwidth - actual_width);
796 int lpad = leftalign ? 0 : pad;
797 int rpad = leftalign ? pad : 0;
798 return dpsnprintf(out, outsize, "%*s%.*s%*s", lpad, "", prec, in, rpad, "");
804 The two following functions (u8_toupper, u8_tolower) are derived from
805 ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt and the following license
808 Copyright © 1991-2011 Unicode, Inc. All rights reserved. Distributed under the
809 Terms of Use in http://www.unicode.org/copyright.html.
811 Permission is hereby granted, free of charge, to any person obtaining a copy of
812 the Unicode data files and any associated documentation (the "Data Files") or
813 Unicode software and any associated documentation (the "Software") to deal in
814 the Data Files or Software without restriction, including without limitation
815 the rights to use, copy, modify, merge, publish, distribute, and/or sell copies
816 of the Data Files or Software, and to permit persons to whom the Data Files or
817 Software are furnished to do so, provided that (a) the above copyright
818 notice(s) and this permission notice appear with all copies of the Data Files
819 or Software, (b) both the above copyright notice(s) and this permission notice
820 appear in associated documentation, and (c) there is clear notice in each
821 modified Data File or in the Software as well as in the documentation
822 associated with the Data File(s) or Software that the data or software has been
825 THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
826 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
827 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD
828 PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
829 THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
830 DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
831 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
832 OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
835 Except as contained in this notice, the name of a copyright holder shall not be
836 used in advertising or otherwise to promote the sale, use or other dealings in
837 these Data Files or Software without prior written authorization of the
841 Uchar u8_toupper(Uchar ch)
845 case 0x0061: return 0x0041;
846 case 0x0062: return 0x0042;
847 case 0x0063: return 0x0043;
848 case 0x0064: return 0x0044;
849 case 0x0065: return 0x0045;
850 case 0x0066: return 0x0046;
851 case 0x0067: return 0x0047;
852 case 0x0068: return 0x0048;
853 case 0x0069: return 0x0049;
854 case 0x006A: return 0x004A;
855 case 0x006B: return 0x004B;
856 case 0x006C: return 0x004C;
857 case 0x006D: return 0x004D;
858 case 0x006E: return 0x004E;
859 case 0x006F: return 0x004F;
860 case 0x0070: return 0x0050;
861 case 0x0071: return 0x0051;
862 case 0x0072: return 0x0052;
863 case 0x0073: return 0x0053;
864 case 0x0074: return 0x0054;
865 case 0x0075: return 0x0055;
866 case 0x0076: return 0x0056;
867 case 0x0077: return 0x0057;
868 case 0x0078: return 0x0058;
869 case 0x0079: return 0x0059;
870 case 0x007A: return 0x005A;
871 case 0x00B5: return 0x039C;
872 case 0x00E0: return 0x00C0;
873 case 0x00E1: return 0x00C1;
874 case 0x00E2: return 0x00C2;
875 case 0x00E3: return 0x00C3;
876 case 0x00E4: return 0x00C4;
877 case 0x00E5: return 0x00C5;
878 case 0x00E6: return 0x00C6;
879 case 0x00E7: return 0x00C7;
880 case 0x00E8: return 0x00C8;
881 case 0x00E9: return 0x00C9;
882 case 0x00EA: return 0x00CA;
883 case 0x00EB: return 0x00CB;
884 case 0x00EC: return 0x00CC;
885 case 0x00ED: return 0x00CD;
886 case 0x00EE: return 0x00CE;
887 case 0x00EF: return 0x00CF;
888 case 0x00F0: return 0x00D0;
889 case 0x00F1: return 0x00D1;
890 case 0x00F2: return 0x00D2;
891 case 0x00F3: return 0x00D3;
892 case 0x00F4: return 0x00D4;
893 case 0x00F5: return 0x00D5;
894 case 0x00F6: return 0x00D6;
895 case 0x00F8: return 0x00D8;
896 case 0x00F9: return 0x00D9;
897 case 0x00FA: return 0x00DA;
898 case 0x00FB: return 0x00DB;
899 case 0x00FC: return 0x00DC;
900 case 0x00FD: return 0x00DD;
901 case 0x00FE: return 0x00DE;
902 case 0x00FF: return 0x0178;
903 case 0x0101: return 0x0100;
904 case 0x0103: return 0x0102;
905 case 0x0105: return 0x0104;
906 case 0x0107: return 0x0106;
907 case 0x0109: return 0x0108;
908 case 0x010B: return 0x010A;
909 case 0x010D: return 0x010C;
910 case 0x010F: return 0x010E;
911 case 0x0111: return 0x0110;
912 case 0x0113: return 0x0112;
913 case 0x0115: return 0x0114;
914 case 0x0117: return 0x0116;
915 case 0x0119: return 0x0118;
916 case 0x011B: return 0x011A;
917 case 0x011D: return 0x011C;
918 case 0x011F: return 0x011E;
919 case 0x0121: return 0x0120;
920 case 0x0123: return 0x0122;
921 case 0x0125: return 0x0124;
922 case 0x0127: return 0x0126;
923 case 0x0129: return 0x0128;
924 case 0x012B: return 0x012A;
925 case 0x012D: return 0x012C;
926 case 0x012F: return 0x012E;
927 case 0x0131: return 0x0049;
928 case 0x0133: return 0x0132;
929 case 0x0135: return 0x0134;
930 case 0x0137: return 0x0136;
931 case 0x013A: return 0x0139;
932 case 0x013C: return 0x013B;
933 case 0x013E: return 0x013D;
934 case 0x0140: return 0x013F;
935 case 0x0142: return 0x0141;
936 case 0x0144: return 0x0143;
937 case 0x0146: return 0x0145;
938 case 0x0148: return 0x0147;
939 case 0x014B: return 0x014A;
940 case 0x014D: return 0x014C;
941 case 0x014F: return 0x014E;
942 case 0x0151: return 0x0150;
943 case 0x0153: return 0x0152;
944 case 0x0155: return 0x0154;
945 case 0x0157: return 0x0156;
946 case 0x0159: return 0x0158;
947 case 0x015B: return 0x015A;
948 case 0x015D: return 0x015C;
949 case 0x015F: return 0x015E;
950 case 0x0161: return 0x0160;
951 case 0x0163: return 0x0162;
952 case 0x0165: return 0x0164;
953 case 0x0167: return 0x0166;
954 case 0x0169: return 0x0168;
955 case 0x016B: return 0x016A;
956 case 0x016D: return 0x016C;
957 case 0x016F: return 0x016E;
958 case 0x0171: return 0x0170;
959 case 0x0173: return 0x0172;
960 case 0x0175: return 0x0174;
961 case 0x0177: return 0x0176;
962 case 0x017A: return 0x0179;
963 case 0x017C: return 0x017B;
964 case 0x017E: return 0x017D;
965 case 0x017F: return 0x0053;
966 case 0x0180: return 0x0243;
967 case 0x0183: return 0x0182;
968 case 0x0185: return 0x0184;
969 case 0x0188: return 0x0187;
970 case 0x018C: return 0x018B;
971 case 0x0192: return 0x0191;
972 case 0x0195: return 0x01F6;
973 case 0x0199: return 0x0198;
974 case 0x019A: return 0x023D;
975 case 0x019E: return 0x0220;
976 case 0x01A1: return 0x01A0;
977 case 0x01A3: return 0x01A2;
978 case 0x01A5: return 0x01A4;
979 case 0x01A8: return 0x01A7;
980 case 0x01AD: return 0x01AC;
981 case 0x01B0: return 0x01AF;
982 case 0x01B4: return 0x01B3;
983 case 0x01B6: return 0x01B5;
984 case 0x01B9: return 0x01B8;
985 case 0x01BD: return 0x01BC;
986 case 0x01BF: return 0x01F7;
987 case 0x01C5: return 0x01C4;
988 case 0x01C6: return 0x01C4;
989 case 0x01C8: return 0x01C7;
990 case 0x01C9: return 0x01C7;
991 case 0x01CB: return 0x01CA;
992 case 0x01CC: return 0x01CA;
993 case 0x01CE: return 0x01CD;
994 case 0x01D0: return 0x01CF;
995 case 0x01D2: return 0x01D1;
996 case 0x01D4: return 0x01D3;
997 case 0x01D6: return 0x01D5;
998 case 0x01D8: return 0x01D7;
999 case 0x01DA: return 0x01D9;
1000 case 0x01DC: return 0x01DB;
1001 case 0x01DD: return 0x018E;
1002 case 0x01DF: return 0x01DE;
1003 case 0x01E1: return 0x01E0;
1004 case 0x01E3: return 0x01E2;
1005 case 0x01E5: return 0x01E4;
1006 case 0x01E7: return 0x01E6;
1007 case 0x01E9: return 0x01E8;
1008 case 0x01EB: return 0x01EA;
1009 case 0x01ED: return 0x01EC;
1010 case 0x01EF: return 0x01EE;
1011 case 0x01F2: return 0x01F1;
1012 case 0x01F3: return 0x01F1;
1013 case 0x01F5: return 0x01F4;
1014 case 0x01F9: return 0x01F8;
1015 case 0x01FB: return 0x01FA;
1016 case 0x01FD: return 0x01FC;
1017 case 0x01FF: return 0x01FE;
1018 case 0x0201: return 0x0200;
1019 case 0x0203: return 0x0202;
1020 case 0x0205: return 0x0204;
1021 case 0x0207: return 0x0206;
1022 case 0x0209: return 0x0208;
1023 case 0x020B: return 0x020A;
1024 case 0x020D: return 0x020C;
1025 case 0x020F: return 0x020E;
1026 case 0x0211: return 0x0210;
1027 case 0x0213: return 0x0212;
1028 case 0x0215: return 0x0214;
1029 case 0x0217: return 0x0216;
1030 case 0x0219: return 0x0218;
1031 case 0x021B: return 0x021A;
1032 case 0x021D: return 0x021C;
1033 case 0x021F: return 0x021E;
1034 case 0x0223: return 0x0222;
1035 case 0x0225: return 0x0224;
1036 case 0x0227: return 0x0226;
1037 case 0x0229: return 0x0228;
1038 case 0x022B: return 0x022A;
1039 case 0x022D: return 0x022C;
1040 case 0x022F: return 0x022E;
1041 case 0x0231: return 0x0230;
1042 case 0x0233: return 0x0232;
1043 case 0x023C: return 0x023B;
1044 case 0x023F: return 0x2C7E;
1045 case 0x0240: return 0x2C7F;
1046 case 0x0242: return 0x0241;
1047 case 0x0247: return 0x0246;
1048 case 0x0249: return 0x0248;
1049 case 0x024B: return 0x024A;
1050 case 0x024D: return 0x024C;
1051 case 0x024F: return 0x024E;
1052 case 0x0250: return 0x2C6F;
1053 case 0x0251: return 0x2C6D;
1054 case 0x0252: return 0x2C70;
1055 case 0x0253: return 0x0181;
1056 case 0x0254: return 0x0186;
1057 case 0x0256: return 0x0189;
1058 case 0x0257: return 0x018A;
1059 case 0x0259: return 0x018F;
1060 case 0x025B: return 0x0190;
1061 case 0x0260: return 0x0193;
1062 case 0x0263: return 0x0194;
1063 case 0x0265: return 0xA78D;
1064 case 0x0268: return 0x0197;
1065 case 0x0269: return 0x0196;
1066 case 0x026B: return 0x2C62;
1067 case 0x026F: return 0x019C;
1068 case 0x0271: return 0x2C6E;
1069 case 0x0272: return 0x019D;
1070 case 0x0275: return 0x019F;
1071 case 0x027D: return 0x2C64;
1072 case 0x0280: return 0x01A6;
1073 case 0x0283: return 0x01A9;
1074 case 0x0288: return 0x01AE;
1075 case 0x0289: return 0x0244;
1076 case 0x028A: return 0x01B1;
1077 case 0x028B: return 0x01B2;
1078 case 0x028C: return 0x0245;
1079 case 0x0292: return 0x01B7;
1080 case 0x0345: return 0x0399;
1081 case 0x0371: return 0x0370;
1082 case 0x0373: return 0x0372;
1083 case 0x0377: return 0x0376;
1084 case 0x037B: return 0x03FD;
1085 case 0x037C: return 0x03FE;
1086 case 0x037D: return 0x03FF;
1087 case 0x03AC: return 0x0386;
1088 case 0x03AD: return 0x0388;
1089 case 0x03AE: return 0x0389;
1090 case 0x03AF: return 0x038A;
1091 case 0x03B1: return 0x0391;
1092 case 0x03B2: return 0x0392;
1093 case 0x03B3: return 0x0393;
1094 case 0x03B4: return 0x0394;
1095 case 0x03B5: return 0x0395;
1096 case 0x03B6: return 0x0396;
1097 case 0x03B7: return 0x0397;
1098 case 0x03B8: return 0x0398;
1099 case 0x03B9: return 0x0399;
1100 case 0x03BA: return 0x039A;
1101 case 0x03BB: return 0x039B;
1102 case 0x03BC: return 0x039C;
1103 case 0x03BD: return 0x039D;
1104 case 0x03BE: return 0x039E;
1105 case 0x03BF: return 0x039F;
1106 case 0x03C0: return 0x03A0;
1107 case 0x03C1: return 0x03A1;
1108 case 0x03C2: return 0x03A3;
1109 case 0x03C3: return 0x03A3;
1110 case 0x03C4: return 0x03A4;
1111 case 0x03C5: return 0x03A5;
1112 case 0x03C6: return 0x03A6;
1113 case 0x03C7: return 0x03A7;
1114 case 0x03C8: return 0x03A8;
1115 case 0x03C9: return 0x03A9;
1116 case 0x03CA: return 0x03AA;
1117 case 0x03CB: return 0x03AB;
1118 case 0x03CC: return 0x038C;
1119 case 0x03CD: return 0x038E;
1120 case 0x03CE: return 0x038F;
1121 case 0x03D0: return 0x0392;
1122 case 0x03D1: return 0x0398;
1123 case 0x03D5: return 0x03A6;
1124 case 0x03D6: return 0x03A0;
1125 case 0x03D7: return 0x03CF;
1126 case 0x03D9: return 0x03D8;
1127 case 0x03DB: return 0x03DA;
1128 case 0x03DD: return 0x03DC;
1129 case 0x03DF: return 0x03DE;
1130 case 0x03E1: return 0x03E0;
1131 case 0x03E3: return 0x03E2;
1132 case 0x03E5: return 0x03E4;
1133 case 0x03E7: return 0x03E6;
1134 case 0x03E9: return 0x03E8;
1135 case 0x03EB: return 0x03EA;
1136 case 0x03ED: return 0x03EC;
1137 case 0x03EF: return 0x03EE;
1138 case 0x03F0: return 0x039A;
1139 case 0x03F1: return 0x03A1;
1140 case 0x03F2: return 0x03F9;
1141 case 0x03F5: return 0x0395;
1142 case 0x03F8: return 0x03F7;
1143 case 0x03FB: return 0x03FA;
1144 case 0x0430: return 0x0410;
1145 case 0x0431: return 0x0411;
1146 case 0x0432: return 0x0412;
1147 case 0x0433: return 0x0413;
1148 case 0x0434: return 0x0414;
1149 case 0x0435: return 0x0415;
1150 case 0x0436: return 0x0416;
1151 case 0x0437: return 0x0417;
1152 case 0x0438: return 0x0418;
1153 case 0x0439: return 0x0419;
1154 case 0x043A: return 0x041A;
1155 case 0x043B: return 0x041B;
1156 case 0x043C: return 0x041C;
1157 case 0x043D: return 0x041D;
1158 case 0x043E: return 0x041E;
1159 case 0x043F: return 0x041F;
1160 case 0x0440: return 0x0420;
1161 case 0x0441: return 0x0421;
1162 case 0x0442: return 0x0422;
1163 case 0x0443: return 0x0423;
1164 case 0x0444: return 0x0424;
1165 case 0x0445: return 0x0425;
1166 case 0x0446: return 0x0426;
1167 case 0x0447: return 0x0427;
1168 case 0x0448: return 0x0428;
1169 case 0x0449: return 0x0429;
1170 case 0x044A: return 0x042A;
1171 case 0x044B: return 0x042B;
1172 case 0x044C: return 0x042C;
1173 case 0x044D: return 0x042D;
1174 case 0x044E: return 0x042E;
1175 case 0x044F: return 0x042F;
1176 case 0x0450: return 0x0400;
1177 case 0x0451: return 0x0401;
1178 case 0x0452: return 0x0402;
1179 case 0x0453: return 0x0403;
1180 case 0x0454: return 0x0404;
1181 case 0x0455: return 0x0405;
1182 case 0x0456: return 0x0406;
1183 case 0x0457: return 0x0407;
1184 case 0x0458: return 0x0408;
1185 case 0x0459: return 0x0409;
1186 case 0x045A: return 0x040A;
1187 case 0x045B: return 0x040B;
1188 case 0x045C: return 0x040C;
1189 case 0x045D: return 0x040D;
1190 case 0x045E: return 0x040E;
1191 case 0x045F: return 0x040F;
1192 case 0x0461: return 0x0460;
1193 case 0x0463: return 0x0462;
1194 case 0x0465: return 0x0464;
1195 case 0x0467: return 0x0466;
1196 case 0x0469: return 0x0468;
1197 case 0x046B: return 0x046A;
1198 case 0x046D: return 0x046C;
1199 case 0x046F: return 0x046E;
1200 case 0x0471: return 0x0470;
1201 case 0x0473: return 0x0472;
1202 case 0x0475: return 0x0474;
1203 case 0x0477: return 0x0476;
1204 case 0x0479: return 0x0478;
1205 case 0x047B: return 0x047A;
1206 case 0x047D: return 0x047C;
1207 case 0x047F: return 0x047E;
1208 case 0x0481: return 0x0480;
1209 case 0x048B: return 0x048A;
1210 case 0x048D: return 0x048C;
1211 case 0x048F: return 0x048E;
1212 case 0x0491: return 0x0490;
1213 case 0x0493: return 0x0492;
1214 case 0x0495: return 0x0494;
1215 case 0x0497: return 0x0496;
1216 case 0x0499: return 0x0498;
1217 case 0x049B: return 0x049A;
1218 case 0x049D: return 0x049C;
1219 case 0x049F: return 0x049E;
1220 case 0x04A1: return 0x04A0;
1221 case 0x04A3: return 0x04A2;
1222 case 0x04A5: return 0x04A4;
1223 case 0x04A7: return 0x04A6;
1224 case 0x04A9: return 0x04A8;
1225 case 0x04AB: return 0x04AA;
1226 case 0x04AD: return 0x04AC;
1227 case 0x04AF: return 0x04AE;
1228 case 0x04B1: return 0x04B0;
1229 case 0x04B3: return 0x04B2;
1230 case 0x04B5: return 0x04B4;
1231 case 0x04B7: return 0x04B6;
1232 case 0x04B9: return 0x04B8;
1233 case 0x04BB: return 0x04BA;
1234 case 0x04BD: return 0x04BC;
1235 case 0x04BF: return 0x04BE;
1236 case 0x04C2: return 0x04C1;
1237 case 0x04C4: return 0x04C3;
1238 case 0x04C6: return 0x04C5;
1239 case 0x04C8: return 0x04C7;
1240 case 0x04CA: return 0x04C9;
1241 case 0x04CC: return 0x04CB;
1242 case 0x04CE: return 0x04CD;
1243 case 0x04CF: return 0x04C0;
1244 case 0x04D1: return 0x04D0;
1245 case 0x04D3: return 0x04D2;
1246 case 0x04D5: return 0x04D4;
1247 case 0x04D7: return 0x04D6;
1248 case 0x04D9: return 0x04D8;
1249 case 0x04DB: return 0x04DA;
1250 case 0x04DD: return 0x04DC;
1251 case 0x04DF: return 0x04DE;
1252 case 0x04E1: return 0x04E0;
1253 case 0x04E3: return 0x04E2;
1254 case 0x04E5: return 0x04E4;
1255 case 0x04E7: return 0x04E6;
1256 case 0x04E9: return 0x04E8;
1257 case 0x04EB: return 0x04EA;
1258 case 0x04ED: return 0x04EC;
1259 case 0x04EF: return 0x04EE;
1260 case 0x04F1: return 0x04F0;
1261 case 0x04F3: return 0x04F2;
1262 case 0x04F5: return 0x04F4;
1263 case 0x04F7: return 0x04F6;
1264 case 0x04F9: return 0x04F8;
1265 case 0x04FB: return 0x04FA;
1266 case 0x04FD: return 0x04FC;
1267 case 0x04FF: return 0x04FE;
1268 case 0x0501: return 0x0500;
1269 case 0x0503: return 0x0502;
1270 case 0x0505: return 0x0504;
1271 case 0x0507: return 0x0506;
1272 case 0x0509: return 0x0508;
1273 case 0x050B: return 0x050A;
1274 case 0x050D: return 0x050C;
1275 case 0x050F: return 0x050E;
1276 case 0x0511: return 0x0510;
1277 case 0x0513: return 0x0512;
1278 case 0x0515: return 0x0514;
1279 case 0x0517: return 0x0516;
1280 case 0x0519: return 0x0518;
1281 case 0x051B: return 0x051A;
1282 case 0x051D: return 0x051C;
1283 case 0x051F: return 0x051E;
1284 case 0x0521: return 0x0520;
1285 case 0x0523: return 0x0522;
1286 case 0x0525: return 0x0524;
1287 case 0x0527: return 0x0526;
1288 case 0x0561: return 0x0531;
1289 case 0x0562: return 0x0532;
1290 case 0x0563: return 0x0533;
1291 case 0x0564: return 0x0534;
1292 case 0x0565: return 0x0535;
1293 case 0x0566: return 0x0536;
1294 case 0x0567: return 0x0537;
1295 case 0x0568: return 0x0538;
1296 case 0x0569: return 0x0539;
1297 case 0x056A: return 0x053A;
1298 case 0x056B: return 0x053B;
1299 case 0x056C: return 0x053C;
1300 case 0x056D: return 0x053D;
1301 case 0x056E: return 0x053E;
1302 case 0x056F: return 0x053F;
1303 case 0x0570: return 0x0540;
1304 case 0x0571: return 0x0541;
1305 case 0x0572: return 0x0542;
1306 case 0x0573: return 0x0543;
1307 case 0x0574: return 0x0544;
1308 case 0x0575: return 0x0545;
1309 case 0x0576: return 0x0546;
1310 case 0x0577: return 0x0547;
1311 case 0x0578: return 0x0548;
1312 case 0x0579: return 0x0549;
1313 case 0x057A: return 0x054A;
1314 case 0x057B: return 0x054B;
1315 case 0x057C: return 0x054C;
1316 case 0x057D: return 0x054D;
1317 case 0x057E: return 0x054E;
1318 case 0x057F: return 0x054F;
1319 case 0x0580: return 0x0550;
1320 case 0x0581: return 0x0551;
1321 case 0x0582: return 0x0552;
1322 case 0x0583: return 0x0553;
1323 case 0x0584: return 0x0554;
1324 case 0x0585: return 0x0555;
1325 case 0x0586: return 0x0556;
1326 case 0x1D79: return 0xA77D;
1327 case 0x1D7D: return 0x2C63;
1328 case 0x1E01: return 0x1E00;
1329 case 0x1E03: return 0x1E02;
1330 case 0x1E05: return 0x1E04;
1331 case 0x1E07: return 0x1E06;
1332 case 0x1E09: return 0x1E08;
1333 case 0x1E0B: return 0x1E0A;
1334 case 0x1E0D: return 0x1E0C;
1335 case 0x1E0F: return 0x1E0E;
1336 case 0x1E11: return 0x1E10;
1337 case 0x1E13: return 0x1E12;
1338 case 0x1E15: return 0x1E14;
1339 case 0x1E17: return 0x1E16;
1340 case 0x1E19: return 0x1E18;
1341 case 0x1E1B: return 0x1E1A;
1342 case 0x1E1D: return 0x1E1C;
1343 case 0x1E1F: return 0x1E1E;
1344 case 0x1E21: return 0x1E20;
1345 case 0x1E23: return 0x1E22;
1346 case 0x1E25: return 0x1E24;
1347 case 0x1E27: return 0x1E26;
1348 case 0x1E29: return 0x1E28;
1349 case 0x1E2B: return 0x1E2A;
1350 case 0x1E2D: return 0x1E2C;
1351 case 0x1E2F: return 0x1E2E;
1352 case 0x1E31: return 0x1E30;
1353 case 0x1E33: return 0x1E32;
1354 case 0x1E35: return 0x1E34;
1355 case 0x1E37: return 0x1E36;
1356 case 0x1E39: return 0x1E38;
1357 case 0x1E3B: return 0x1E3A;
1358 case 0x1E3D: return 0x1E3C;
1359 case 0x1E3F: return 0x1E3E;
1360 case 0x1E41: return 0x1E40;
1361 case 0x1E43: return 0x1E42;
1362 case 0x1E45: return 0x1E44;
1363 case 0x1E47: return 0x1E46;
1364 case 0x1E49: return 0x1E48;
1365 case 0x1E4B: return 0x1E4A;
1366 case 0x1E4D: return 0x1E4C;
1367 case 0x1E4F: return 0x1E4E;
1368 case 0x1E51: return 0x1E50;
1369 case 0x1E53: return 0x1E52;
1370 case 0x1E55: return 0x1E54;
1371 case 0x1E57: return 0x1E56;
1372 case 0x1E59: return 0x1E58;
1373 case 0x1E5B: return 0x1E5A;
1374 case 0x1E5D: return 0x1E5C;
1375 case 0x1E5F: return 0x1E5E;
1376 case 0x1E61: return 0x1E60;
1377 case 0x1E63: return 0x1E62;
1378 case 0x1E65: return 0x1E64;
1379 case 0x1E67: return 0x1E66;
1380 case 0x1E69: return 0x1E68;
1381 case 0x1E6B: return 0x1E6A;
1382 case 0x1E6D: return 0x1E6C;
1383 case 0x1E6F: return 0x1E6E;
1384 case 0x1E71: return 0x1E70;
1385 case 0x1E73: return 0x1E72;
1386 case 0x1E75: return 0x1E74;
1387 case 0x1E77: return 0x1E76;
1388 case 0x1E79: return 0x1E78;
1389 case 0x1E7B: return 0x1E7A;
1390 case 0x1E7D: return 0x1E7C;
1391 case 0x1E7F: return 0x1E7E;
1392 case 0x1E81: return 0x1E80;
1393 case 0x1E83: return 0x1E82;
1394 case 0x1E85: return 0x1E84;
1395 case 0x1E87: return 0x1E86;
1396 case 0x1E89: return 0x1E88;
1397 case 0x1E8B: return 0x1E8A;
1398 case 0x1E8D: return 0x1E8C;
1399 case 0x1E8F: return 0x1E8E;
1400 case 0x1E91: return 0x1E90;
1401 case 0x1E93: return 0x1E92;
1402 case 0x1E95: return 0x1E94;
1403 case 0x1E9B: return 0x1E60;
1404 case 0x1EA1: return 0x1EA0;
1405 case 0x1EA3: return 0x1EA2;
1406 case 0x1EA5: return 0x1EA4;
1407 case 0x1EA7: return 0x1EA6;
1408 case 0x1EA9: return 0x1EA8;
1409 case 0x1EAB: return 0x1EAA;
1410 case 0x1EAD: return 0x1EAC;
1411 case 0x1EAF: return 0x1EAE;
1412 case 0x1EB1: return 0x1EB0;
1413 case 0x1EB3: return 0x1EB2;
1414 case 0x1EB5: return 0x1EB4;
1415 case 0x1EB7: return 0x1EB6;
1416 case 0x1EB9: return 0x1EB8;
1417 case 0x1EBB: return 0x1EBA;
1418 case 0x1EBD: return 0x1EBC;
1419 case 0x1EBF: return 0x1EBE;
1420 case 0x1EC1: return 0x1EC0;
1421 case 0x1EC3: return 0x1EC2;
1422 case 0x1EC5: return 0x1EC4;
1423 case 0x1EC7: return 0x1EC6;
1424 case 0x1EC9: return 0x1EC8;
1425 case 0x1ECB: return 0x1ECA;
1426 case 0x1ECD: return 0x1ECC;
1427 case 0x1ECF: return 0x1ECE;
1428 case 0x1ED1: return 0x1ED0;
1429 case 0x1ED3: return 0x1ED2;
1430 case 0x1ED5: return 0x1ED4;
1431 case 0x1ED7: return 0x1ED6;
1432 case 0x1ED9: return 0x1ED8;
1433 case 0x1EDB: return 0x1EDA;
1434 case 0x1EDD: return 0x1EDC;
1435 case 0x1EDF: return 0x1EDE;
1436 case 0x1EE1: return 0x1EE0;
1437 case 0x1EE3: return 0x1EE2;
1438 case 0x1EE5: return 0x1EE4;
1439 case 0x1EE7: return 0x1EE6;
1440 case 0x1EE9: return 0x1EE8;
1441 case 0x1EEB: return 0x1EEA;
1442 case 0x1EED: return 0x1EEC;
1443 case 0x1EEF: return 0x1EEE;
1444 case 0x1EF1: return 0x1EF0;
1445 case 0x1EF3: return 0x1EF2;
1446 case 0x1EF5: return 0x1EF4;
1447 case 0x1EF7: return 0x1EF6;
1448 case 0x1EF9: return 0x1EF8;
1449 case 0x1EFB: return 0x1EFA;
1450 case 0x1EFD: return 0x1EFC;
1451 case 0x1EFF: return 0x1EFE;
1452 case 0x1F00: return 0x1F08;
1453 case 0x1F01: return 0x1F09;
1454 case 0x1F02: return 0x1F0A;
1455 case 0x1F03: return 0x1F0B;
1456 case 0x1F04: return 0x1F0C;
1457 case 0x1F05: return 0x1F0D;
1458 case 0x1F06: return 0x1F0E;
1459 case 0x1F07: return 0x1F0F;
1460 case 0x1F10: return 0x1F18;
1461 case 0x1F11: return 0x1F19;
1462 case 0x1F12: return 0x1F1A;
1463 case 0x1F13: return 0x1F1B;
1464 case 0x1F14: return 0x1F1C;
1465 case 0x1F15: return 0x1F1D;
1466 case 0x1F20: return 0x1F28;
1467 case 0x1F21: return 0x1F29;
1468 case 0x1F22: return 0x1F2A;
1469 case 0x1F23: return 0x1F2B;
1470 case 0x1F24: return 0x1F2C;
1471 case 0x1F25: return 0x1F2D;
1472 case 0x1F26: return 0x1F2E;
1473 case 0x1F27: return 0x1F2F;
1474 case 0x1F30: return 0x1F38;
1475 case 0x1F31: return 0x1F39;
1476 case 0x1F32: return 0x1F3A;
1477 case 0x1F33: return 0x1F3B;
1478 case 0x1F34: return 0x1F3C;
1479 case 0x1F35: return 0x1F3D;
1480 case 0x1F36: return 0x1F3E;
1481 case 0x1F37: return 0x1F3F;
1482 case 0x1F40: return 0x1F48;
1483 case 0x1F41: return 0x1F49;
1484 case 0x1F42: return 0x1F4A;
1485 case 0x1F43: return 0x1F4B;
1486 case 0x1F44: return 0x1F4C;
1487 case 0x1F45: return 0x1F4D;
1488 case 0x1F51: return 0x1F59;
1489 case 0x1F53: return 0x1F5B;
1490 case 0x1F55: return 0x1F5D;
1491 case 0x1F57: return 0x1F5F;
1492 case 0x1F60: return 0x1F68;
1493 case 0x1F61: return 0x1F69;
1494 case 0x1F62: return 0x1F6A;
1495 case 0x1F63: return 0x1F6B;
1496 case 0x1F64: return 0x1F6C;
1497 case 0x1F65: return 0x1F6D;
1498 case 0x1F66: return 0x1F6E;
1499 case 0x1F67: return 0x1F6F;
1500 case 0x1F70: return 0x1FBA;
1501 case 0x1F71: return 0x1FBB;
1502 case 0x1F72: return 0x1FC8;
1503 case 0x1F73: return 0x1FC9;
1504 case 0x1F74: return 0x1FCA;
1505 case 0x1F75: return 0x1FCB;
1506 case 0x1F76: return 0x1FDA;
1507 case 0x1F77: return 0x1FDB;
1508 case 0x1F78: return 0x1FF8;
1509 case 0x1F79: return 0x1FF9;
1510 case 0x1F7A: return 0x1FEA;
1511 case 0x1F7B: return 0x1FEB;
1512 case 0x1F7C: return 0x1FFA;
1513 case 0x1F7D: return 0x1FFB;
1514 case 0x1F80: return 0x1F88;
1515 case 0x1F81: return 0x1F89;
1516 case 0x1F82: return 0x1F8A;
1517 case 0x1F83: return 0x1F8B;
1518 case 0x1F84: return 0x1F8C;
1519 case 0x1F85: return 0x1F8D;
1520 case 0x1F86: return 0x1F8E;
1521 case 0x1F87: return 0x1F8F;
1522 case 0x1F90: return 0x1F98;
1523 case 0x1F91: return 0x1F99;
1524 case 0x1F92: return 0x1F9A;
1525 case 0x1F93: return 0x1F9B;
1526 case 0x1F94: return 0x1F9C;
1527 case 0x1F95: return 0x1F9D;
1528 case 0x1F96: return 0x1F9E;
1529 case 0x1F97: return 0x1F9F;
1530 case 0x1FA0: return 0x1FA8;
1531 case 0x1FA1: return 0x1FA9;
1532 case 0x1FA2: return 0x1FAA;
1533 case 0x1FA3: return 0x1FAB;
1534 case 0x1FA4: return 0x1FAC;
1535 case 0x1FA5: return 0x1FAD;
1536 case 0x1FA6: return 0x1FAE;
1537 case 0x1FA7: return 0x1FAF;
1538 case 0x1FB0: return 0x1FB8;
1539 case 0x1FB1: return 0x1FB9;
1540 case 0x1FB3: return 0x1FBC;
1541 case 0x1FBE: return 0x0399;
1542 case 0x1FC3: return 0x1FCC;
1543 case 0x1FD0: return 0x1FD8;
1544 case 0x1FD1: return 0x1FD9;
1545 case 0x1FE0: return 0x1FE8;
1546 case 0x1FE1: return 0x1FE9;
1547 case 0x1FE5: return 0x1FEC;
1548 case 0x1FF3: return 0x1FFC;
1549 case 0x214E: return 0x2132;
1550 case 0x2170: return 0x2160;
1551 case 0x2171: return 0x2161;
1552 case 0x2172: return 0x2162;
1553 case 0x2173: return 0x2163;
1554 case 0x2174: return 0x2164;
1555 case 0x2175: return 0x2165;
1556 case 0x2176: return 0x2166;
1557 case 0x2177: return 0x2167;
1558 case 0x2178: return 0x2168;
1559 case 0x2179: return 0x2169;
1560 case 0x217A: return 0x216A;
1561 case 0x217B: return 0x216B;
1562 case 0x217C: return 0x216C;
1563 case 0x217D: return 0x216D;
1564 case 0x217E: return 0x216E;
1565 case 0x217F: return 0x216F;
1566 case 0x2184: return 0x2183;
1567 case 0x24D0: return 0x24B6;
1568 case 0x24D1: return 0x24B7;
1569 case 0x24D2: return 0x24B8;
1570 case 0x24D3: return 0x24B9;
1571 case 0x24D4: return 0x24BA;
1572 case 0x24D5: return 0x24BB;
1573 case 0x24D6: return 0x24BC;
1574 case 0x24D7: return 0x24BD;
1575 case 0x24D8: return 0x24BE;
1576 case 0x24D9: return 0x24BF;
1577 case 0x24DA: return 0x24C0;
1578 case 0x24DB: return 0x24C1;
1579 case 0x24DC: return 0x24C2;
1580 case 0x24DD: return 0x24C3;
1581 case 0x24DE: return 0x24C4;
1582 case 0x24DF: return 0x24C5;
1583 case 0x24E0: return 0x24C6;
1584 case 0x24E1: return 0x24C7;
1585 case 0x24E2: return 0x24C8;
1586 case 0x24E3: return 0x24C9;
1587 case 0x24E4: return 0x24CA;
1588 case 0x24E5: return 0x24CB;
1589 case 0x24E6: return 0x24CC;
1590 case 0x24E7: return 0x24CD;
1591 case 0x24E8: return 0x24CE;
1592 case 0x24E9: return 0x24CF;
1593 case 0x2C30: return 0x2C00;
1594 case 0x2C31: return 0x2C01;
1595 case 0x2C32: return 0x2C02;
1596 case 0x2C33: return 0x2C03;
1597 case 0x2C34: return 0x2C04;
1598 case 0x2C35: return 0x2C05;
1599 case 0x2C36: return 0x2C06;
1600 case 0x2C37: return 0x2C07;
1601 case 0x2C38: return 0x2C08;
1602 case 0x2C39: return 0x2C09;
1603 case 0x2C3A: return 0x2C0A;
1604 case 0x2C3B: return 0x2C0B;
1605 case 0x2C3C: return 0x2C0C;
1606 case 0x2C3D: return 0x2C0D;
1607 case 0x2C3E: return 0x2C0E;
1608 case 0x2C3F: return 0x2C0F;
1609 case 0x2C40: return 0x2C10;
1610 case 0x2C41: return 0x2C11;
1611 case 0x2C42: return 0x2C12;
1612 case 0x2C43: return 0x2C13;
1613 case 0x2C44: return 0x2C14;
1614 case 0x2C45: return 0x2C15;
1615 case 0x2C46: return 0x2C16;
1616 case 0x2C47: return 0x2C17;
1617 case 0x2C48: return 0x2C18;
1618 case 0x2C49: return 0x2C19;
1619 case 0x2C4A: return 0x2C1A;
1620 case 0x2C4B: return 0x2C1B;
1621 case 0x2C4C: return 0x2C1C;
1622 case 0x2C4D: return 0x2C1D;
1623 case 0x2C4E: return 0x2C1E;
1624 case 0x2C4F: return 0x2C1F;
1625 case 0x2C50: return 0x2C20;
1626 case 0x2C51: return 0x2C21;
1627 case 0x2C52: return 0x2C22;
1628 case 0x2C53: return 0x2C23;
1629 case 0x2C54: return 0x2C24;
1630 case 0x2C55: return 0x2C25;
1631 case 0x2C56: return 0x2C26;
1632 case 0x2C57: return 0x2C27;
1633 case 0x2C58: return 0x2C28;
1634 case 0x2C59: return 0x2C29;
1635 case 0x2C5A: return 0x2C2A;
1636 case 0x2C5B: return 0x2C2B;
1637 case 0x2C5C: return 0x2C2C;
1638 case 0x2C5D: return 0x2C2D;
1639 case 0x2C5E: return 0x2C2E;
1640 case 0x2C61: return 0x2C60;
1641 case 0x2C65: return 0x023A;
1642 case 0x2C66: return 0x023E;
1643 case 0x2C68: return 0x2C67;
1644 case 0x2C6A: return 0x2C69;
1645 case 0x2C6C: return 0x2C6B;
1646 case 0x2C73: return 0x2C72;
1647 case 0x2C76: return 0x2C75;
1648 case 0x2C81: return 0x2C80;
1649 case 0x2C83: return 0x2C82;
1650 case 0x2C85: return 0x2C84;
1651 case 0x2C87: return 0x2C86;
1652 case 0x2C89: return 0x2C88;
1653 case 0x2C8B: return 0x2C8A;
1654 case 0x2C8D: return 0x2C8C;
1655 case 0x2C8F: return 0x2C8E;
1656 case 0x2C91: return 0x2C90;
1657 case 0x2C93: return 0x2C92;
1658 case 0x2C95: return 0x2C94;
1659 case 0x2C97: return 0x2C96;
1660 case 0x2C99: return 0x2C98;
1661 case 0x2C9B: return 0x2C9A;
1662 case 0x2C9D: return 0x2C9C;
1663 case 0x2C9F: return 0x2C9E;
1664 case 0x2CA1: return 0x2CA0;
1665 case 0x2CA3: return 0x2CA2;
1666 case 0x2CA5: return 0x2CA4;
1667 case 0x2CA7: return 0x2CA6;
1668 case 0x2CA9: return 0x2CA8;
1669 case 0x2CAB: return 0x2CAA;
1670 case 0x2CAD: return 0x2CAC;
1671 case 0x2CAF: return 0x2CAE;
1672 case 0x2CB1: return 0x2CB0;
1673 case 0x2CB3: return 0x2CB2;
1674 case 0x2CB5: return 0x2CB4;
1675 case 0x2CB7: return 0x2CB6;
1676 case 0x2CB9: return 0x2CB8;
1677 case 0x2CBB: return 0x2CBA;
1678 case 0x2CBD: return 0x2CBC;
1679 case 0x2CBF: return 0x2CBE;
1680 case 0x2CC1: return 0x2CC0;
1681 case 0x2CC3: return 0x2CC2;
1682 case 0x2CC5: return 0x2CC4;
1683 case 0x2CC7: return 0x2CC6;
1684 case 0x2CC9: return 0x2CC8;
1685 case 0x2CCB: return 0x2CCA;
1686 case 0x2CCD: return 0x2CCC;
1687 case 0x2CCF: return 0x2CCE;
1688 case 0x2CD1: return 0x2CD0;
1689 case 0x2CD3: return 0x2CD2;
1690 case 0x2CD5: return 0x2CD4;
1691 case 0x2CD7: return 0x2CD6;
1692 case 0x2CD9: return 0x2CD8;
1693 case 0x2CDB: return 0x2CDA;
1694 case 0x2CDD: return 0x2CDC;
1695 case 0x2CDF: return 0x2CDE;
1696 case 0x2CE1: return 0x2CE0;
1697 case 0x2CE3: return 0x2CE2;
1698 case 0x2CEC: return 0x2CEB;
1699 case 0x2CEE: return 0x2CED;
1700 case 0x2D00: return 0x10A0;
1701 case 0x2D01: return 0x10A1;
1702 case 0x2D02: return 0x10A2;
1703 case 0x2D03: return 0x10A3;
1704 case 0x2D04: return 0x10A4;
1705 case 0x2D05: return 0x10A5;
1706 case 0x2D06: return 0x10A6;
1707 case 0x2D07: return 0x10A7;
1708 case 0x2D08: return 0x10A8;
1709 case 0x2D09: return 0x10A9;
1710 case 0x2D0A: return 0x10AA;
1711 case 0x2D0B: return 0x10AB;
1712 case 0x2D0C: return 0x10AC;
1713 case 0x2D0D: return 0x10AD;
1714 case 0x2D0E: return 0x10AE;
1715 case 0x2D0F: return 0x10AF;
1716 case 0x2D10: return 0x10B0;
1717 case 0x2D11: return 0x10B1;
1718 case 0x2D12: return 0x10B2;
1719 case 0x2D13: return 0x10B3;
1720 case 0x2D14: return 0x10B4;
1721 case 0x2D15: return 0x10B5;
1722 case 0x2D16: return 0x10B6;
1723 case 0x2D17: return 0x10B7;
1724 case 0x2D18: return 0x10B8;
1725 case 0x2D19: return 0x10B9;
1726 case 0x2D1A: return 0x10BA;
1727 case 0x2D1B: return 0x10BB;
1728 case 0x2D1C: return 0x10BC;
1729 case 0x2D1D: return 0x10BD;
1730 case 0x2D1E: return 0x10BE;
1731 case 0x2D1F: return 0x10BF;
1732 case 0x2D20: return 0x10C0;
1733 case 0x2D21: return 0x10C1;
1734 case 0x2D22: return 0x10C2;
1735 case 0x2D23: return 0x10C3;
1736 case 0x2D24: return 0x10C4;
1737 case 0x2D25: return 0x10C5;
1738 case 0xA641: return 0xA640;
1739 case 0xA643: return 0xA642;
1740 case 0xA645: return 0xA644;
1741 case 0xA647: return 0xA646;
1742 case 0xA649: return 0xA648;
1743 case 0xA64B: return 0xA64A;
1744 case 0xA64D: return 0xA64C;
1745 case 0xA64F: return 0xA64E;
1746 case 0xA651: return 0xA650;
1747 case 0xA653: return 0xA652;
1748 case 0xA655: return 0xA654;
1749 case 0xA657: return 0xA656;
1750 case 0xA659: return 0xA658;
1751 case 0xA65B: return 0xA65A;
1752 case 0xA65D: return 0xA65C;
1753 case 0xA65F: return 0xA65E;
1754 case 0xA661: return 0xA660;
1755 case 0xA663: return 0xA662;
1756 case 0xA665: return 0xA664;
1757 case 0xA667: return 0xA666;
1758 case 0xA669: return 0xA668;
1759 case 0xA66B: return 0xA66A;
1760 case 0xA66D: return 0xA66C;
1761 case 0xA681: return 0xA680;
1762 case 0xA683: return 0xA682;
1763 case 0xA685: return 0xA684;
1764 case 0xA687: return 0xA686;
1765 case 0xA689: return 0xA688;
1766 case 0xA68B: return 0xA68A;
1767 case 0xA68D: return 0xA68C;
1768 case 0xA68F: return 0xA68E;
1769 case 0xA691: return 0xA690;
1770 case 0xA693: return 0xA692;
1771 case 0xA695: return 0xA694;
1772 case 0xA697: return 0xA696;
1773 case 0xA723: return 0xA722;
1774 case 0xA725: return 0xA724;
1775 case 0xA727: return 0xA726;
1776 case 0xA729: return 0xA728;
1777 case 0xA72B: return 0xA72A;
1778 case 0xA72D: return 0xA72C;
1779 case 0xA72F: return 0xA72E;
1780 case 0xA733: return 0xA732;
1781 case 0xA735: return 0xA734;
1782 case 0xA737: return 0xA736;
1783 case 0xA739: return 0xA738;
1784 case 0xA73B: return 0xA73A;
1785 case 0xA73D: return 0xA73C;
1786 case 0xA73F: return 0xA73E;
1787 case 0xA741: return 0xA740;
1788 case 0xA743: return 0xA742;
1789 case 0xA745: return 0xA744;
1790 case 0xA747: return 0xA746;
1791 case 0xA749: return 0xA748;
1792 case 0xA74B: return 0xA74A;
1793 case 0xA74D: return 0xA74C;
1794 case 0xA74F: return 0xA74E;
1795 case 0xA751: return 0xA750;
1796 case 0xA753: return 0xA752;
1797 case 0xA755: return 0xA754;
1798 case 0xA757: return 0xA756;
1799 case 0xA759: return 0xA758;
1800 case 0xA75B: return 0xA75A;
1801 case 0xA75D: return 0xA75C;
1802 case 0xA75F: return 0xA75E;
1803 case 0xA761: return 0xA760;
1804 case 0xA763: return 0xA762;
1805 case 0xA765: return 0xA764;
1806 case 0xA767: return 0xA766;
1807 case 0xA769: return 0xA768;
1808 case 0xA76B: return 0xA76A;
1809 case 0xA76D: return 0xA76C;
1810 case 0xA76F: return 0xA76E;
1811 case 0xA77A: return 0xA779;
1812 case 0xA77C: return 0xA77B;
1813 case 0xA77F: return 0xA77E;
1814 case 0xA781: return 0xA780;
1815 case 0xA783: return 0xA782;
1816 case 0xA785: return 0xA784;
1817 case 0xA787: return 0xA786;
1818 case 0xA78C: return 0xA78B;
1819 case 0xA791: return 0xA790;
1820 case 0xA7A1: return 0xA7A0;
1821 case 0xA7A3: return 0xA7A2;
1822 case 0xA7A5: return 0xA7A4;
1823 case 0xA7A7: return 0xA7A6;
1824 case 0xA7A9: return 0xA7A8;
1825 case 0xFF41: return 0xFF21;
1826 case 0xFF42: return 0xFF22;
1827 case 0xFF43: return 0xFF23;
1828 case 0xFF44: return 0xFF24;
1829 case 0xFF45: return 0xFF25;
1830 case 0xFF46: return 0xFF26;
1831 case 0xFF47: return 0xFF27;
1832 case 0xFF48: return 0xFF28;
1833 case 0xFF49: return 0xFF29;
1834 case 0xFF4A: return 0xFF2A;
1835 case 0xFF4B: return 0xFF2B;
1836 case 0xFF4C: return 0xFF2C;
1837 case 0xFF4D: return 0xFF2D;
1838 case 0xFF4E: return 0xFF2E;
1839 case 0xFF4F: return 0xFF2F;
1840 case 0xFF50: return 0xFF30;
1841 case 0xFF51: return 0xFF31;
1842 case 0xFF52: return 0xFF32;
1843 case 0xFF53: return 0xFF33;
1844 case 0xFF54: return 0xFF34;
1845 case 0xFF55: return 0xFF35;
1846 case 0xFF56: return 0xFF36;
1847 case 0xFF57: return 0xFF37;
1848 case 0xFF58: return 0xFF38;
1849 case 0xFF59: return 0xFF39;
1850 case 0xFF5A: return 0xFF3A;
1851 case 0x10428: return 0x10400;
1852 case 0x10429: return 0x10401;
1853 case 0x1042A: return 0x10402;
1854 case 0x1042B: return 0x10403;
1855 case 0x1042C: return 0x10404;
1856 case 0x1042D: return 0x10405;
1857 case 0x1042E: return 0x10406;
1858 case 0x1042F: return 0x10407;
1859 case 0x10430: return 0x10408;
1860 case 0x10431: return 0x10409;
1861 case 0x10432: return 0x1040A;
1862 case 0x10433: return 0x1040B;
1863 case 0x10434: return 0x1040C;
1864 case 0x10435: return 0x1040D;
1865 case 0x10436: return 0x1040E;
1866 case 0x10437: return 0x1040F;
1867 case 0x10438: return 0x10410;
1868 case 0x10439: return 0x10411;
1869 case 0x1043A: return 0x10412;
1870 case 0x1043B: return 0x10413;
1871 case 0x1043C: return 0x10414;
1872 case 0x1043D: return 0x10415;
1873 case 0x1043E: return 0x10416;
1874 case 0x1043F: return 0x10417;
1875 case 0x10440: return 0x10418;
1876 case 0x10441: return 0x10419;
1877 case 0x10442: return 0x1041A;
1878 case 0x10443: return 0x1041B;
1879 case 0x10444: return 0x1041C;
1880 case 0x10445: return 0x1041D;
1881 case 0x10446: return 0x1041E;
1882 case 0x10447: return 0x1041F;
1883 case 0x10448: return 0x10420;
1884 case 0x10449: return 0x10421;
1885 case 0x1044A: return 0x10422;
1886 case 0x1044B: return 0x10423;
1887 case 0x1044C: return 0x10424;
1888 case 0x1044D: return 0x10425;
1889 case 0x1044E: return 0x10426;
1890 case 0x1044F: return 0x10427;
1895 Uchar u8_tolower(Uchar ch)
1899 case 0x0041: return 0x0061;
1900 case 0x0042: return 0x0062;
1901 case 0x0043: return 0x0063;
1902 case 0x0044: return 0x0064;
1903 case 0x0045: return 0x0065;
1904 case 0x0046: return 0x0066;
1905 case 0x0047: return 0x0067;
1906 case 0x0048: return 0x0068;
1907 case 0x0049: return 0x0069;
1908 case 0x004A: return 0x006A;
1909 case 0x004B: return 0x006B;
1910 case 0x004C: return 0x006C;
1911 case 0x004D: return 0x006D;
1912 case 0x004E: return 0x006E;
1913 case 0x004F: return 0x006F;
1914 case 0x0050: return 0x0070;
1915 case 0x0051: return 0x0071;
1916 case 0x0052: return 0x0072;
1917 case 0x0053: return 0x0073;
1918 case 0x0054: return 0x0074;
1919 case 0x0055: return 0x0075;
1920 case 0x0056: return 0x0076;
1921 case 0x0057: return 0x0077;
1922 case 0x0058: return 0x0078;
1923 case 0x0059: return 0x0079;
1924 case 0x005A: return 0x007A;
1925 case 0x00C0: return 0x00E0;
1926 case 0x00C1: return 0x00E1;
1927 case 0x00C2: return 0x00E2;
1928 case 0x00C3: return 0x00E3;
1929 case 0x00C4: return 0x00E4;
1930 case 0x00C5: return 0x00E5;
1931 case 0x00C6: return 0x00E6;
1932 case 0x00C7: return 0x00E7;
1933 case 0x00C8: return 0x00E8;
1934 case 0x00C9: return 0x00E9;
1935 case 0x00CA: return 0x00EA;
1936 case 0x00CB: return 0x00EB;
1937 case 0x00CC: return 0x00EC;
1938 case 0x00CD: return 0x00ED;
1939 case 0x00CE: return 0x00EE;
1940 case 0x00CF: return 0x00EF;
1941 case 0x00D0: return 0x00F0;
1942 case 0x00D1: return 0x00F1;
1943 case 0x00D2: return 0x00F2;
1944 case 0x00D3: return 0x00F3;
1945 case 0x00D4: return 0x00F4;
1946 case 0x00D5: return 0x00F5;
1947 case 0x00D6: return 0x00F6;
1948 case 0x00D8: return 0x00F8;
1949 case 0x00D9: return 0x00F9;
1950 case 0x00DA: return 0x00FA;
1951 case 0x00DB: return 0x00FB;
1952 case 0x00DC: return 0x00FC;
1953 case 0x00DD: return 0x00FD;
1954 case 0x00DE: return 0x00FE;
1955 case 0x0100: return 0x0101;
1956 case 0x0102: return 0x0103;
1957 case 0x0104: return 0x0105;
1958 case 0x0106: return 0x0107;
1959 case 0x0108: return 0x0109;
1960 case 0x010A: return 0x010B;
1961 case 0x010C: return 0x010D;
1962 case 0x010E: return 0x010F;
1963 case 0x0110: return 0x0111;
1964 case 0x0112: return 0x0113;
1965 case 0x0114: return 0x0115;
1966 case 0x0116: return 0x0117;
1967 case 0x0118: return 0x0119;
1968 case 0x011A: return 0x011B;
1969 case 0x011C: return 0x011D;
1970 case 0x011E: return 0x011F;
1971 case 0x0120: return 0x0121;
1972 case 0x0122: return 0x0123;
1973 case 0x0124: return 0x0125;
1974 case 0x0126: return 0x0127;
1975 case 0x0128: return 0x0129;
1976 case 0x012A: return 0x012B;
1977 case 0x012C: return 0x012D;
1978 case 0x012E: return 0x012F;
1979 case 0x0130: return 0x0069;
1980 case 0x0132: return 0x0133;
1981 case 0x0134: return 0x0135;
1982 case 0x0136: return 0x0137;
1983 case 0x0139: return 0x013A;
1984 case 0x013B: return 0x013C;
1985 case 0x013D: return 0x013E;
1986 case 0x013F: return 0x0140;
1987 case 0x0141: return 0x0142;
1988 case 0x0143: return 0x0144;
1989 case 0x0145: return 0x0146;
1990 case 0x0147: return 0x0148;
1991 case 0x014A: return 0x014B;
1992 case 0x014C: return 0x014D;
1993 case 0x014E: return 0x014F;
1994 case 0x0150: return 0x0151;
1995 case 0x0152: return 0x0153;
1996 case 0x0154: return 0x0155;
1997 case 0x0156: return 0x0157;
1998 case 0x0158: return 0x0159;
1999 case 0x015A: return 0x015B;
2000 case 0x015C: return 0x015D;
2001 case 0x015E: return 0x015F;
2002 case 0x0160: return 0x0161;
2003 case 0x0162: return 0x0163;
2004 case 0x0164: return 0x0165;
2005 case 0x0166: return 0x0167;
2006 case 0x0168: return 0x0169;
2007 case 0x016A: return 0x016B;
2008 case 0x016C: return 0x016D;
2009 case 0x016E: return 0x016F;
2010 case 0x0170: return 0x0171;
2011 case 0x0172: return 0x0173;
2012 case 0x0174: return 0x0175;
2013 case 0x0176: return 0x0177;
2014 case 0x0178: return 0x00FF;
2015 case 0x0179: return 0x017A;
2016 case 0x017B: return 0x017C;
2017 case 0x017D: return 0x017E;
2018 case 0x0181: return 0x0253;
2019 case 0x0182: return 0x0183;
2020 case 0x0184: return 0x0185;
2021 case 0x0186: return 0x0254;
2022 case 0x0187: return 0x0188;
2023 case 0x0189: return 0x0256;
2024 case 0x018A: return 0x0257;
2025 case 0x018B: return 0x018C;
2026 case 0x018E: return 0x01DD;
2027 case 0x018F: return 0x0259;
2028 case 0x0190: return 0x025B;
2029 case 0x0191: return 0x0192;
2030 case 0x0193: return 0x0260;
2031 case 0x0194: return 0x0263;
2032 case 0x0196: return 0x0269;
2033 case 0x0197: return 0x0268;
2034 case 0x0198: return 0x0199;
2035 case 0x019C: return 0x026F;
2036 case 0x019D: return 0x0272;
2037 case 0x019F: return 0x0275;
2038 case 0x01A0: return 0x01A1;
2039 case 0x01A2: return 0x01A3;
2040 case 0x01A4: return 0x01A5;
2041 case 0x01A6: return 0x0280;
2042 case 0x01A7: return 0x01A8;
2043 case 0x01A9: return 0x0283;
2044 case 0x01AC: return 0x01AD;
2045 case 0x01AE: return 0x0288;
2046 case 0x01AF: return 0x01B0;
2047 case 0x01B1: return 0x028A;
2048 case 0x01B2: return 0x028B;
2049 case 0x01B3: return 0x01B4;
2050 case 0x01B5: return 0x01B6;
2051 case 0x01B7: return 0x0292;
2052 case 0x01B8: return 0x01B9;
2053 case 0x01BC: return 0x01BD;
2054 case 0x01C4: return 0x01C6;
2055 case 0x01C5: return 0x01C6;
2056 case 0x01C7: return 0x01C9;
2057 case 0x01C8: return 0x01C9;
2058 case 0x01CA: return 0x01CC;
2059 case 0x01CB: return 0x01CC;
2060 case 0x01CD: return 0x01CE;
2061 case 0x01CF: return 0x01D0;
2062 case 0x01D1: return 0x01D2;
2063 case 0x01D3: return 0x01D4;
2064 case 0x01D5: return 0x01D6;
2065 case 0x01D7: return 0x01D8;
2066 case 0x01D9: return 0x01DA;
2067 case 0x01DB: return 0x01DC;
2068 case 0x01DE: return 0x01DF;
2069 case 0x01E0: return 0x01E1;
2070 case 0x01E2: return 0x01E3;
2071 case 0x01E4: return 0x01E5;
2072 case 0x01E6: return 0x01E7;
2073 case 0x01E8: return 0x01E9;
2074 case 0x01EA: return 0x01EB;
2075 case 0x01EC: return 0x01ED;
2076 case 0x01EE: return 0x01EF;
2077 case 0x01F1: return 0x01F3;
2078 case 0x01F2: return 0x01F3;
2079 case 0x01F4: return 0x01F5;
2080 case 0x01F6: return 0x0195;
2081 case 0x01F7: return 0x01BF;
2082 case 0x01F8: return 0x01F9;
2083 case 0x01FA: return 0x01FB;
2084 case 0x01FC: return 0x01FD;
2085 case 0x01FE: return 0x01FF;
2086 case 0x0200: return 0x0201;
2087 case 0x0202: return 0x0203;
2088 case 0x0204: return 0x0205;
2089 case 0x0206: return 0x0207;
2090 case 0x0208: return 0x0209;
2091 case 0x020A: return 0x020B;
2092 case 0x020C: return 0x020D;
2093 case 0x020E: return 0x020F;
2094 case 0x0210: return 0x0211;
2095 case 0x0212: return 0x0213;
2096 case 0x0214: return 0x0215;
2097 case 0x0216: return 0x0217;
2098 case 0x0218: return 0x0219;
2099 case 0x021A: return 0x021B;
2100 case 0x021C: return 0x021D;
2101 case 0x021E: return 0x021F;
2102 case 0x0220: return 0x019E;
2103 case 0x0222: return 0x0223;
2104 case 0x0224: return 0x0225;
2105 case 0x0226: return 0x0227;
2106 case 0x0228: return 0x0229;
2107 case 0x022A: return 0x022B;
2108 case 0x022C: return 0x022D;
2109 case 0x022E: return 0x022F;
2110 case 0x0230: return 0x0231;
2111 case 0x0232: return 0x0233;
2112 case 0x023A: return 0x2C65;
2113 case 0x023B: return 0x023C;
2114 case 0x023D: return 0x019A;
2115 case 0x023E: return 0x2C66;
2116 case 0x0241: return 0x0242;
2117 case 0x0243: return 0x0180;
2118 case 0x0244: return 0x0289;
2119 case 0x0245: return 0x028C;
2120 case 0x0246: return 0x0247;
2121 case 0x0248: return 0x0249;
2122 case 0x024A: return 0x024B;
2123 case 0x024C: return 0x024D;
2124 case 0x024E: return 0x024F;
2125 case 0x0370: return 0x0371;
2126 case 0x0372: return 0x0373;
2127 case 0x0376: return 0x0377;
2128 case 0x0386: return 0x03AC;
2129 case 0x0388: return 0x03AD;
2130 case 0x0389: return 0x03AE;
2131 case 0x038A: return 0x03AF;
2132 case 0x038C: return 0x03CC;
2133 case 0x038E: return 0x03CD;
2134 case 0x038F: return 0x03CE;
2135 case 0x0391: return 0x03B1;
2136 case 0x0392: return 0x03B2;
2137 case 0x0393: return 0x03B3;
2138 case 0x0394: return 0x03B4;
2139 case 0x0395: return 0x03B5;
2140 case 0x0396: return 0x03B6;
2141 case 0x0397: return 0x03B7;
2142 case 0x0398: return 0x03B8;
2143 case 0x0399: return 0x03B9;
2144 case 0x039A: return 0x03BA;
2145 case 0x039B: return 0x03BB;
2146 case 0x039C: return 0x03BC;
2147 case 0x039D: return 0x03BD;
2148 case 0x039E: return 0x03BE;
2149 case 0x039F: return 0x03BF;
2150 case 0x03A0: return 0x03C0;
2151 case 0x03A1: return 0x03C1;
2152 case 0x03A3: return 0x03C3;
2153 case 0x03A4: return 0x03C4;
2154 case 0x03A5: return 0x03C5;
2155 case 0x03A6: return 0x03C6;
2156 case 0x03A7: return 0x03C7;
2157 case 0x03A8: return 0x03C8;
2158 case 0x03A9: return 0x03C9;
2159 case 0x03AA: return 0x03CA;
2160 case 0x03AB: return 0x03CB;
2161 case 0x03CF: return 0x03D7;
2162 case 0x03D8: return 0x03D9;
2163 case 0x03DA: return 0x03DB;
2164 case 0x03DC: return 0x03DD;
2165 case 0x03DE: return 0x03DF;
2166 case 0x03E0: return 0x03E1;
2167 case 0x03E2: return 0x03E3;
2168 case 0x03E4: return 0x03E5;
2169 case 0x03E6: return 0x03E7;
2170 case 0x03E8: return 0x03E9;
2171 case 0x03EA: return 0x03EB;
2172 case 0x03EC: return 0x03ED;
2173 case 0x03EE: return 0x03EF;
2174 case 0x03F4: return 0x03B8;
2175 case 0x03F7: return 0x03F8;
2176 case 0x03F9: return 0x03F2;
2177 case 0x03FA: return 0x03FB;
2178 case 0x03FD: return 0x037B;
2179 case 0x03FE: return 0x037C;
2180 case 0x03FF: return 0x037D;
2181 case 0x0400: return 0x0450;
2182 case 0x0401: return 0x0451;
2183 case 0x0402: return 0x0452;
2184 case 0x0403: return 0x0453;
2185 case 0x0404: return 0x0454;
2186 case 0x0405: return 0x0455;
2187 case 0x0406: return 0x0456;
2188 case 0x0407: return 0x0457;
2189 case 0x0408: return 0x0458;
2190 case 0x0409: return 0x0459;
2191 case 0x040A: return 0x045A;
2192 case 0x040B: return 0x045B;
2193 case 0x040C: return 0x045C;
2194 case 0x040D: return 0x045D;
2195 case 0x040E: return 0x045E;
2196 case 0x040F: return 0x045F;
2197 case 0x0410: return 0x0430;
2198 case 0x0411: return 0x0431;
2199 case 0x0412: return 0x0432;
2200 case 0x0413: return 0x0433;
2201 case 0x0414: return 0x0434;
2202 case 0x0415: return 0x0435;
2203 case 0x0416: return 0x0436;
2204 case 0x0417: return 0x0437;
2205 case 0x0418: return 0x0438;
2206 case 0x0419: return 0x0439;
2207 case 0x041A: return 0x043A;
2208 case 0x041B: return 0x043B;
2209 case 0x041C: return 0x043C;
2210 case 0x041D: return 0x043D;
2211 case 0x041E: return 0x043E;
2212 case 0x041F: return 0x043F;
2213 case 0x0420: return 0x0440;
2214 case 0x0421: return 0x0441;
2215 case 0x0422: return 0x0442;
2216 case 0x0423: return 0x0443;
2217 case 0x0424: return 0x0444;
2218 case 0x0425: return 0x0445;
2219 case 0x0426: return 0x0446;
2220 case 0x0427: return 0x0447;
2221 case 0x0428: return 0x0448;
2222 case 0x0429: return 0x0449;
2223 case 0x042A: return 0x044A;
2224 case 0x042B: return 0x044B;
2225 case 0x042C: return 0x044C;
2226 case 0x042D: return 0x044D;
2227 case 0x042E: return 0x044E;
2228 case 0x042F: return 0x044F;
2229 case 0x0460: return 0x0461;
2230 case 0x0462: return 0x0463;
2231 case 0x0464: return 0x0465;
2232 case 0x0466: return 0x0467;
2233 case 0x0468: return 0x0469;
2234 case 0x046A: return 0x046B;
2235 case 0x046C: return 0x046D;
2236 case 0x046E: return 0x046F;
2237 case 0x0470: return 0x0471;
2238 case 0x0472: return 0x0473;
2239 case 0x0474: return 0x0475;
2240 case 0x0476: return 0x0477;
2241 case 0x0478: return 0x0479;
2242 case 0x047A: return 0x047B;
2243 case 0x047C: return 0x047D;
2244 case 0x047E: return 0x047F;
2245 case 0x0480: return 0x0481;
2246 case 0x048A: return 0x048B;
2247 case 0x048C: return 0x048D;
2248 case 0x048E: return 0x048F;
2249 case 0x0490: return 0x0491;
2250 case 0x0492: return 0x0493;
2251 case 0x0494: return 0x0495;
2252 case 0x0496: return 0x0497;
2253 case 0x0498: return 0x0499;
2254 case 0x049A: return 0x049B;
2255 case 0x049C: return 0x049D;
2256 case 0x049E: return 0x049F;
2257 case 0x04A0: return 0x04A1;
2258 case 0x04A2: return 0x04A3;
2259 case 0x04A4: return 0x04A5;
2260 case 0x04A6: return 0x04A7;
2261 case 0x04A8: return 0x04A9;
2262 case 0x04AA: return 0x04AB;
2263 case 0x04AC: return 0x04AD;
2264 case 0x04AE: return 0x04AF;
2265 case 0x04B0: return 0x04B1;
2266 case 0x04B2: return 0x04B3;
2267 case 0x04B4: return 0x04B5;
2268 case 0x04B6: return 0x04B7;
2269 case 0x04B8: return 0x04B9;
2270 case 0x04BA: return 0x04BB;
2271 case 0x04BC: return 0x04BD;
2272 case 0x04BE: return 0x04BF;
2273 case 0x04C0: return 0x04CF;
2274 case 0x04C1: return 0x04C2;
2275 case 0x04C3: return 0x04C4;
2276 case 0x04C5: return 0x04C6;
2277 case 0x04C7: return 0x04C8;
2278 case 0x04C9: return 0x04CA;
2279 case 0x04CB: return 0x04CC;
2280 case 0x04CD: return 0x04CE;
2281 case 0x04D0: return 0x04D1;
2282 case 0x04D2: return 0x04D3;
2283 case 0x04D4: return 0x04D5;
2284 case 0x04D6: return 0x04D7;
2285 case 0x04D8: return 0x04D9;
2286 case 0x04DA: return 0x04DB;
2287 case 0x04DC: return 0x04DD;
2288 case 0x04DE: return 0x04DF;
2289 case 0x04E0: return 0x04E1;
2290 case 0x04E2: return 0x04E3;
2291 case 0x04E4: return 0x04E5;
2292 case 0x04E6: return 0x04E7;
2293 case 0x04E8: return 0x04E9;
2294 case 0x04EA: return 0x04EB;
2295 case 0x04EC: return 0x04ED;
2296 case 0x04EE: return 0x04EF;
2297 case 0x04F0: return 0x04F1;
2298 case 0x04F2: return 0x04F3;
2299 case 0x04F4: return 0x04F5;
2300 case 0x04F6: return 0x04F7;
2301 case 0x04F8: return 0x04F9;
2302 case 0x04FA: return 0x04FB;
2303 case 0x04FC: return 0x04FD;
2304 case 0x04FE: return 0x04FF;
2305 case 0x0500: return 0x0501;
2306 case 0x0502: return 0x0503;
2307 case 0x0504: return 0x0505;
2308 case 0x0506: return 0x0507;
2309 case 0x0508: return 0x0509;
2310 case 0x050A: return 0x050B;
2311 case 0x050C: return 0x050D;
2312 case 0x050E: return 0x050F;
2313 case 0x0510: return 0x0511;
2314 case 0x0512: return 0x0513;
2315 case 0x0514: return 0x0515;
2316 case 0x0516: return 0x0517;
2317 case 0x0518: return 0x0519;
2318 case 0x051A: return 0x051B;
2319 case 0x051C: return 0x051D;
2320 case 0x051E: return 0x051F;
2321 case 0x0520: return 0x0521;
2322 case 0x0522: return 0x0523;
2323 case 0x0524: return 0x0525;
2324 case 0x0526: return 0x0527;
2325 case 0x0531: return 0x0561;
2326 case 0x0532: return 0x0562;
2327 case 0x0533: return 0x0563;
2328 case 0x0534: return 0x0564;
2329 case 0x0535: return 0x0565;
2330 case 0x0536: return 0x0566;
2331 case 0x0537: return 0x0567;
2332 case 0x0538: return 0x0568;
2333 case 0x0539: return 0x0569;
2334 case 0x053A: return 0x056A;
2335 case 0x053B: return 0x056B;
2336 case 0x053C: return 0x056C;
2337 case 0x053D: return 0x056D;
2338 case 0x053E: return 0x056E;
2339 case 0x053F: return 0x056F;
2340 case 0x0540: return 0x0570;
2341 case 0x0541: return 0x0571;
2342 case 0x0542: return 0x0572;
2343 case 0x0543: return 0x0573;
2344 case 0x0544: return 0x0574;
2345 case 0x0545: return 0x0575;
2346 case 0x0546: return 0x0576;
2347 case 0x0547: return 0x0577;
2348 case 0x0548: return 0x0578;
2349 case 0x0549: return 0x0579;
2350 case 0x054A: return 0x057A;
2351 case 0x054B: return 0x057B;
2352 case 0x054C: return 0x057C;
2353 case 0x054D: return 0x057D;
2354 case 0x054E: return 0x057E;
2355 case 0x054F: return 0x057F;
2356 case 0x0550: return 0x0580;
2357 case 0x0551: return 0x0581;
2358 case 0x0552: return 0x0582;
2359 case 0x0553: return 0x0583;
2360 case 0x0554: return 0x0584;
2361 case 0x0555: return 0x0585;
2362 case 0x0556: return 0x0586;
2363 case 0x10A0: return 0x2D00;
2364 case 0x10A1: return 0x2D01;
2365 case 0x10A2: return 0x2D02;
2366 case 0x10A3: return 0x2D03;
2367 case 0x10A4: return 0x2D04;
2368 case 0x10A5: return 0x2D05;
2369 case 0x10A6: return 0x2D06;
2370 case 0x10A7: return 0x2D07;
2371 case 0x10A8: return 0x2D08;
2372 case 0x10A9: return 0x2D09;
2373 case 0x10AA: return 0x2D0A;
2374 case 0x10AB: return 0x2D0B;
2375 case 0x10AC: return 0x2D0C;
2376 case 0x10AD: return 0x2D0D;
2377 case 0x10AE: return 0x2D0E;
2378 case 0x10AF: return 0x2D0F;
2379 case 0x10B0: return 0x2D10;
2380 case 0x10B1: return 0x2D11;
2381 case 0x10B2: return 0x2D12;
2382 case 0x10B3: return 0x2D13;
2383 case 0x10B4: return 0x2D14;
2384 case 0x10B5: return 0x2D15;
2385 case 0x10B6: return 0x2D16;
2386 case 0x10B7: return 0x2D17;
2387 case 0x10B8: return 0x2D18;
2388 case 0x10B9: return 0x2D19;
2389 case 0x10BA: return 0x2D1A;
2390 case 0x10BB: return 0x2D1B;
2391 case 0x10BC: return 0x2D1C;
2392 case 0x10BD: return 0x2D1D;
2393 case 0x10BE: return 0x2D1E;
2394 case 0x10BF: return 0x2D1F;
2395 case 0x10C0: return 0x2D20;
2396 case 0x10C1: return 0x2D21;
2397 case 0x10C2: return 0x2D22;
2398 case 0x10C3: return 0x2D23;
2399 case 0x10C4: return 0x2D24;
2400 case 0x10C5: return 0x2D25;
2401 case 0x1E00: return 0x1E01;
2402 case 0x1E02: return 0x1E03;
2403 case 0x1E04: return 0x1E05;
2404 case 0x1E06: return 0x1E07;
2405 case 0x1E08: return 0x1E09;
2406 case 0x1E0A: return 0x1E0B;
2407 case 0x1E0C: return 0x1E0D;
2408 case 0x1E0E: return 0x1E0F;
2409 case 0x1E10: return 0x1E11;
2410 case 0x1E12: return 0x1E13;
2411 case 0x1E14: return 0x1E15;
2412 case 0x1E16: return 0x1E17;
2413 case 0x1E18: return 0x1E19;
2414 case 0x1E1A: return 0x1E1B;
2415 case 0x1E1C: return 0x1E1D;
2416 case 0x1E1E: return 0x1E1F;
2417 case 0x1E20: return 0x1E21;
2418 case 0x1E22: return 0x1E23;
2419 case 0x1E24: return 0x1E25;
2420 case 0x1E26: return 0x1E27;
2421 case 0x1E28: return 0x1E29;
2422 case 0x1E2A: return 0x1E2B;
2423 case 0x1E2C: return 0x1E2D;
2424 case 0x1E2E: return 0x1E2F;
2425 case 0x1E30: return 0x1E31;
2426 case 0x1E32: return 0x1E33;
2427 case 0x1E34: return 0x1E35;
2428 case 0x1E36: return 0x1E37;
2429 case 0x1E38: return 0x1E39;
2430 case 0x1E3A: return 0x1E3B;
2431 case 0x1E3C: return 0x1E3D;
2432 case 0x1E3E: return 0x1E3F;
2433 case 0x1E40: return 0x1E41;
2434 case 0x1E42: return 0x1E43;
2435 case 0x1E44: return 0x1E45;
2436 case 0x1E46: return 0x1E47;
2437 case 0x1E48: return 0x1E49;
2438 case 0x1E4A: return 0x1E4B;
2439 case 0x1E4C: return 0x1E4D;
2440 case 0x1E4E: return 0x1E4F;
2441 case 0x1E50: return 0x1E51;
2442 case 0x1E52: return 0x1E53;
2443 case 0x1E54: return 0x1E55;
2444 case 0x1E56: return 0x1E57;
2445 case 0x1E58: return 0x1E59;
2446 case 0x1E5A: return 0x1E5B;
2447 case 0x1E5C: return 0x1E5D;
2448 case 0x1E5E: return 0x1E5F;
2449 case 0x1E60: return 0x1E61;
2450 case 0x1E62: return 0x1E63;
2451 case 0x1E64: return 0x1E65;
2452 case 0x1E66: return 0x1E67;
2453 case 0x1E68: return 0x1E69;
2454 case 0x1E6A: return 0x1E6B;
2455 case 0x1E6C: return 0x1E6D;
2456 case 0x1E6E: return 0x1E6F;
2457 case 0x1E70: return 0x1E71;
2458 case 0x1E72: return 0x1E73;
2459 case 0x1E74: return 0x1E75;
2460 case 0x1E76: return 0x1E77;
2461 case 0x1E78: return 0x1E79;
2462 case 0x1E7A: return 0x1E7B;
2463 case 0x1E7C: return 0x1E7D;
2464 case 0x1E7E: return 0x1E7F;
2465 case 0x1E80: return 0x1E81;
2466 case 0x1E82: return 0x1E83;
2467 case 0x1E84: return 0x1E85;
2468 case 0x1E86: return 0x1E87;
2469 case 0x1E88: return 0x1E89;
2470 case 0x1E8A: return 0x1E8B;
2471 case 0x1E8C: return 0x1E8D;
2472 case 0x1E8E: return 0x1E8F;
2473 case 0x1E90: return 0x1E91;
2474 case 0x1E92: return 0x1E93;
2475 case 0x1E94: return 0x1E95;
2476 case 0x1E9E: return 0x00DF;
2477 case 0x1EA0: return 0x1EA1;
2478 case 0x1EA2: return 0x1EA3;
2479 case 0x1EA4: return 0x1EA5;
2480 case 0x1EA6: return 0x1EA7;
2481 case 0x1EA8: return 0x1EA9;
2482 case 0x1EAA: return 0x1EAB;
2483 case 0x1EAC: return 0x1EAD;
2484 case 0x1EAE: return 0x1EAF;
2485 case 0x1EB0: return 0x1EB1;
2486 case 0x1EB2: return 0x1EB3;
2487 case 0x1EB4: return 0x1EB5;
2488 case 0x1EB6: return 0x1EB7;
2489 case 0x1EB8: return 0x1EB9;
2490 case 0x1EBA: return 0x1EBB;
2491 case 0x1EBC: return 0x1EBD;
2492 case 0x1EBE: return 0x1EBF;
2493 case 0x1EC0: return 0x1EC1;
2494 case 0x1EC2: return 0x1EC3;
2495 case 0x1EC4: return 0x1EC5;
2496 case 0x1EC6: return 0x1EC7;
2497 case 0x1EC8: return 0x1EC9;
2498 case 0x1ECA: return 0x1ECB;
2499 case 0x1ECC: return 0x1ECD;
2500 case 0x1ECE: return 0x1ECF;
2501 case 0x1ED0: return 0x1ED1;
2502 case 0x1ED2: return 0x1ED3;
2503 case 0x1ED4: return 0x1ED5;
2504 case 0x1ED6: return 0x1ED7;
2505 case 0x1ED8: return 0x1ED9;
2506 case 0x1EDA: return 0x1EDB;
2507 case 0x1EDC: return 0x1EDD;
2508 case 0x1EDE: return 0x1EDF;
2509 case 0x1EE0: return 0x1EE1;
2510 case 0x1EE2: return 0x1EE3;
2511 case 0x1EE4: return 0x1EE5;
2512 case 0x1EE6: return 0x1EE7;
2513 case 0x1EE8: return 0x1EE9;
2514 case 0x1EEA: return 0x1EEB;
2515 case 0x1EEC: return 0x1EED;
2516 case 0x1EEE: return 0x1EEF;
2517 case 0x1EF0: return 0x1EF1;
2518 case 0x1EF2: return 0x1EF3;
2519 case 0x1EF4: return 0x1EF5;
2520 case 0x1EF6: return 0x1EF7;
2521 case 0x1EF8: return 0x1EF9;
2522 case 0x1EFA: return 0x1EFB;
2523 case 0x1EFC: return 0x1EFD;
2524 case 0x1EFE: return 0x1EFF;
2525 case 0x1F08: return 0x1F00;
2526 case 0x1F09: return 0x1F01;
2527 case 0x1F0A: return 0x1F02;
2528 case 0x1F0B: return 0x1F03;
2529 case 0x1F0C: return 0x1F04;
2530 case 0x1F0D: return 0x1F05;
2531 case 0x1F0E: return 0x1F06;
2532 case 0x1F0F: return 0x1F07;
2533 case 0x1F18: return 0x1F10;
2534 case 0x1F19: return 0x1F11;
2535 case 0x1F1A: return 0x1F12;
2536 case 0x1F1B: return 0x1F13;
2537 case 0x1F1C: return 0x1F14;
2538 case 0x1F1D: return 0x1F15;
2539 case 0x1F28: return 0x1F20;
2540 case 0x1F29: return 0x1F21;
2541 case 0x1F2A: return 0x1F22;
2542 case 0x1F2B: return 0x1F23;
2543 case 0x1F2C: return 0x1F24;
2544 case 0x1F2D: return 0x1F25;
2545 case 0x1F2E: return 0x1F26;
2546 case 0x1F2F: return 0x1F27;
2547 case 0x1F38: return 0x1F30;
2548 case 0x1F39: return 0x1F31;
2549 case 0x1F3A: return 0x1F32;
2550 case 0x1F3B: return 0x1F33;
2551 case 0x1F3C: return 0x1F34;
2552 case 0x1F3D: return 0x1F35;
2553 case 0x1F3E: return 0x1F36;
2554 case 0x1F3F: return 0x1F37;
2555 case 0x1F48: return 0x1F40;
2556 case 0x1F49: return 0x1F41;
2557 case 0x1F4A: return 0x1F42;
2558 case 0x1F4B: return 0x1F43;
2559 case 0x1F4C: return 0x1F44;
2560 case 0x1F4D: return 0x1F45;
2561 case 0x1F59: return 0x1F51;
2562 case 0x1F5B: return 0x1F53;
2563 case 0x1F5D: return 0x1F55;
2564 case 0x1F5F: return 0x1F57;
2565 case 0x1F68: return 0x1F60;
2566 case 0x1F69: return 0x1F61;
2567 case 0x1F6A: return 0x1F62;
2568 case 0x1F6B: return 0x1F63;
2569 case 0x1F6C: return 0x1F64;
2570 case 0x1F6D: return 0x1F65;
2571 case 0x1F6E: return 0x1F66;
2572 case 0x1F6F: return 0x1F67;
2573 case 0x1F88: return 0x1F80;
2574 case 0x1F89: return 0x1F81;
2575 case 0x1F8A: return 0x1F82;
2576 case 0x1F8B: return 0x1F83;
2577 case 0x1F8C: return 0x1F84;
2578 case 0x1F8D: return 0x1F85;
2579 case 0x1F8E: return 0x1F86;
2580 case 0x1F8F: return 0x1F87;
2581 case 0x1F98: return 0x1F90;
2582 case 0x1F99: return 0x1F91;
2583 case 0x1F9A: return 0x1F92;
2584 case 0x1F9B: return 0x1F93;
2585 case 0x1F9C: return 0x1F94;
2586 case 0x1F9D: return 0x1F95;
2587 case 0x1F9E: return 0x1F96;
2588 case 0x1F9F: return 0x1F97;
2589 case 0x1FA8: return 0x1FA0;
2590 case 0x1FA9: return 0x1FA1;
2591 case 0x1FAA: return 0x1FA2;
2592 case 0x1FAB: return 0x1FA3;
2593 case 0x1FAC: return 0x1FA4;
2594 case 0x1FAD: return 0x1FA5;
2595 case 0x1FAE: return 0x1FA6;
2596 case 0x1FAF: return 0x1FA7;
2597 case 0x1FB8: return 0x1FB0;
2598 case 0x1FB9: return 0x1FB1;
2599 case 0x1FBA: return 0x1F70;
2600 case 0x1FBB: return 0x1F71;
2601 case 0x1FBC: return 0x1FB3;
2602 case 0x1FC8: return 0x1F72;
2603 case 0x1FC9: return 0x1F73;
2604 case 0x1FCA: return 0x1F74;
2605 case 0x1FCB: return 0x1F75;
2606 case 0x1FCC: return 0x1FC3;
2607 case 0x1FD8: return 0x1FD0;
2608 case 0x1FD9: return 0x1FD1;
2609 case 0x1FDA: return 0x1F76;
2610 case 0x1FDB: return 0x1F77;
2611 case 0x1FE8: return 0x1FE0;
2612 case 0x1FE9: return 0x1FE1;
2613 case 0x1FEA: return 0x1F7A;
2614 case 0x1FEB: return 0x1F7B;
2615 case 0x1FEC: return 0x1FE5;
2616 case 0x1FF8: return 0x1F78;
2617 case 0x1FF9: return 0x1F79;
2618 case 0x1FFA: return 0x1F7C;
2619 case 0x1FFB: return 0x1F7D;
2620 case 0x1FFC: return 0x1FF3;
2621 case 0x2126: return 0x03C9;
2622 case 0x212A: return 0x006B;
2623 case 0x212B: return 0x00E5;
2624 case 0x2132: return 0x214E;
2625 case 0x2160: return 0x2170;
2626 case 0x2161: return 0x2171;
2627 case 0x2162: return 0x2172;
2628 case 0x2163: return 0x2173;
2629 case 0x2164: return 0x2174;
2630 case 0x2165: return 0x2175;
2631 case 0x2166: return 0x2176;
2632 case 0x2167: return 0x2177;
2633 case 0x2168: return 0x2178;
2634 case 0x2169: return 0x2179;
2635 case 0x216A: return 0x217A;
2636 case 0x216B: return 0x217B;
2637 case 0x216C: return 0x217C;
2638 case 0x216D: return 0x217D;
2639 case 0x216E: return 0x217E;
2640 case 0x216F: return 0x217F;
2641 case 0x2183: return 0x2184;
2642 case 0x24B6: return 0x24D0;
2643 case 0x24B7: return 0x24D1;
2644 case 0x24B8: return 0x24D2;
2645 case 0x24B9: return 0x24D3;
2646 case 0x24BA: return 0x24D4;
2647 case 0x24BB: return 0x24D5;
2648 case 0x24BC: return 0x24D6;
2649 case 0x24BD: return 0x24D7;
2650 case 0x24BE: return 0x24D8;
2651 case 0x24BF: return 0x24D9;
2652 case 0x24C0: return 0x24DA;
2653 case 0x24C1: return 0x24DB;
2654 case 0x24C2: return 0x24DC;
2655 case 0x24C3: return 0x24DD;
2656 case 0x24C4: return 0x24DE;
2657 case 0x24C5: return 0x24DF;
2658 case 0x24C6: return 0x24E0;
2659 case 0x24C7: return 0x24E1;
2660 case 0x24C8: return 0x24E2;
2661 case 0x24C9: return 0x24E3;
2662 case 0x24CA: return 0x24E4;
2663 case 0x24CB: return 0x24E5;
2664 case 0x24CC: return 0x24E6;
2665 case 0x24CD: return 0x24E7;
2666 case 0x24CE: return 0x24E8;
2667 case 0x24CF: return 0x24E9;
2668 case 0x2C00: return 0x2C30;
2669 case 0x2C01: return 0x2C31;
2670 case 0x2C02: return 0x2C32;
2671 case 0x2C03: return 0x2C33;
2672 case 0x2C04: return 0x2C34;
2673 case 0x2C05: return 0x2C35;
2674 case 0x2C06: return 0x2C36;
2675 case 0x2C07: return 0x2C37;
2676 case 0x2C08: return 0x2C38;
2677 case 0x2C09: return 0x2C39;
2678 case 0x2C0A: return 0x2C3A;
2679 case 0x2C0B: return 0x2C3B;
2680 case 0x2C0C: return 0x2C3C;
2681 case 0x2C0D: return 0x2C3D;
2682 case 0x2C0E: return 0x2C3E;
2683 case 0x2C0F: return 0x2C3F;
2684 case 0x2C10: return 0x2C40;
2685 case 0x2C11: return 0x2C41;
2686 case 0x2C12: return 0x2C42;
2687 case 0x2C13: return 0x2C43;
2688 case 0x2C14: return 0x2C44;
2689 case 0x2C15: return 0x2C45;
2690 case 0x2C16: return 0x2C46;
2691 case 0x2C17: return 0x2C47;
2692 case 0x2C18: return 0x2C48;
2693 case 0x2C19: return 0x2C49;
2694 case 0x2C1A: return 0x2C4A;
2695 case 0x2C1B: return 0x2C4B;
2696 case 0x2C1C: return 0x2C4C;
2697 case 0x2C1D: return 0x2C4D;
2698 case 0x2C1E: return 0x2C4E;
2699 case 0x2C1F: return 0x2C4F;
2700 case 0x2C20: return 0x2C50;
2701 case 0x2C21: return 0x2C51;
2702 case 0x2C22: return 0x2C52;
2703 case 0x2C23: return 0x2C53;
2704 case 0x2C24: return 0x2C54;
2705 case 0x2C25: return 0x2C55;
2706 case 0x2C26: return 0x2C56;
2707 case 0x2C27: return 0x2C57;
2708 case 0x2C28: return 0x2C58;
2709 case 0x2C29: return 0x2C59;
2710 case 0x2C2A: return 0x2C5A;
2711 case 0x2C2B: return 0x2C5B;
2712 case 0x2C2C: return 0x2C5C;
2713 case 0x2C2D: return 0x2C5D;
2714 case 0x2C2E: return 0x2C5E;
2715 case 0x2C60: return 0x2C61;
2716 case 0x2C62: return 0x026B;
2717 case 0x2C63: return 0x1D7D;
2718 case 0x2C64: return 0x027D;
2719 case 0x2C67: return 0x2C68;
2720 case 0x2C69: return 0x2C6A;
2721 case 0x2C6B: return 0x2C6C;
2722 case 0x2C6D: return 0x0251;
2723 case 0x2C6E: return 0x0271;
2724 case 0x2C6F: return 0x0250;
2725 case 0x2C70: return 0x0252;
2726 case 0x2C72: return 0x2C73;
2727 case 0x2C75: return 0x2C76;
2728 case 0x2C7E: return 0x023F;
2729 case 0x2C7F: return 0x0240;
2730 case 0x2C80: return 0x2C81;
2731 case 0x2C82: return 0x2C83;
2732 case 0x2C84: return 0x2C85;
2733 case 0x2C86: return 0x2C87;
2734 case 0x2C88: return 0x2C89;
2735 case 0x2C8A: return 0x2C8B;
2736 case 0x2C8C: return 0x2C8D;
2737 case 0x2C8E: return 0x2C8F;
2738 case 0x2C90: return 0x2C91;
2739 case 0x2C92: return 0x2C93;
2740 case 0x2C94: return 0x2C95;
2741 case 0x2C96: return 0x2C97;
2742 case 0x2C98: return 0x2C99;
2743 case 0x2C9A: return 0x2C9B;
2744 case 0x2C9C: return 0x2C9D;
2745 case 0x2C9E: return 0x2C9F;
2746 case 0x2CA0: return 0x2CA1;
2747 case 0x2CA2: return 0x2CA3;
2748 case 0x2CA4: return 0x2CA5;
2749 case 0x2CA6: return 0x2CA7;
2750 case 0x2CA8: return 0x2CA9;
2751 case 0x2CAA: return 0x2CAB;
2752 case 0x2CAC: return 0x2CAD;
2753 case 0x2CAE: return 0x2CAF;
2754 case 0x2CB0: return 0x2CB1;
2755 case 0x2CB2: return 0x2CB3;
2756 case 0x2CB4: return 0x2CB5;
2757 case 0x2CB6: return 0x2CB7;
2758 case 0x2CB8: return 0x2CB9;
2759 case 0x2CBA: return 0x2CBB;
2760 case 0x2CBC: return 0x2CBD;
2761 case 0x2CBE: return 0x2CBF;
2762 case 0x2CC0: return 0x2CC1;
2763 case 0x2CC2: return 0x2CC3;
2764 case 0x2CC4: return 0x2CC5;
2765 case 0x2CC6: return 0x2CC7;
2766 case 0x2CC8: return 0x2CC9;
2767 case 0x2CCA: return 0x2CCB;
2768 case 0x2CCC: return 0x2CCD;
2769 case 0x2CCE: return 0x2CCF;
2770 case 0x2CD0: return 0x2CD1;
2771 case 0x2CD2: return 0x2CD3;
2772 case 0x2CD4: return 0x2CD5;
2773 case 0x2CD6: return 0x2CD7;
2774 case 0x2CD8: return 0x2CD9;
2775 case 0x2CDA: return 0x2CDB;
2776 case 0x2CDC: return 0x2CDD;
2777 case 0x2CDE: return 0x2CDF;
2778 case 0x2CE0: return 0x2CE1;
2779 case 0x2CE2: return 0x2CE3;
2780 case 0x2CEB: return 0x2CEC;
2781 case 0x2CED: return 0x2CEE;
2782 case 0xA640: return 0xA641;
2783 case 0xA642: return 0xA643;
2784 case 0xA644: return 0xA645;
2785 case 0xA646: return 0xA647;
2786 case 0xA648: return 0xA649;
2787 case 0xA64A: return 0xA64B;
2788 case 0xA64C: return 0xA64D;
2789 case 0xA64E: return 0xA64F;
2790 case 0xA650: return 0xA651;
2791 case 0xA652: return 0xA653;
2792 case 0xA654: return 0xA655;
2793 case 0xA656: return 0xA657;
2794 case 0xA658: return 0xA659;
2795 case 0xA65A: return 0xA65B;
2796 case 0xA65C: return 0xA65D;
2797 case 0xA65E: return 0xA65F;
2798 case 0xA660: return 0xA661;
2799 case 0xA662: return 0xA663;
2800 case 0xA664: return 0xA665;
2801 case 0xA666: return 0xA667;
2802 case 0xA668: return 0xA669;
2803 case 0xA66A: return 0xA66B;
2804 case 0xA66C: return 0xA66D;
2805 case 0xA680: return 0xA681;
2806 case 0xA682: return 0xA683;
2807 case 0xA684: return 0xA685;
2808 case 0xA686: return 0xA687;
2809 case 0xA688: return 0xA689;
2810 case 0xA68A: return 0xA68B;
2811 case 0xA68C: return 0xA68D;
2812 case 0xA68E: return 0xA68F;
2813 case 0xA690: return 0xA691;
2814 case 0xA692: return 0xA693;
2815 case 0xA694: return 0xA695;
2816 case 0xA696: return 0xA697;
2817 case 0xA722: return 0xA723;
2818 case 0xA724: return 0xA725;
2819 case 0xA726: return 0xA727;
2820 case 0xA728: return 0xA729;
2821 case 0xA72A: return 0xA72B;
2822 case 0xA72C: return 0xA72D;
2823 case 0xA72E: return 0xA72F;
2824 case 0xA732: return 0xA733;
2825 case 0xA734: return 0xA735;
2826 case 0xA736: return 0xA737;
2827 case 0xA738: return 0xA739;
2828 case 0xA73A: return 0xA73B;
2829 case 0xA73C: return 0xA73D;
2830 case 0xA73E: return 0xA73F;
2831 case 0xA740: return 0xA741;
2832 case 0xA742: return 0xA743;
2833 case 0xA744: return 0xA745;
2834 case 0xA746: return 0xA747;
2835 case 0xA748: return 0xA749;
2836 case 0xA74A: return 0xA74B;
2837 case 0xA74C: return 0xA74D;
2838 case 0xA74E: return 0xA74F;
2839 case 0xA750: return 0xA751;
2840 case 0xA752: return 0xA753;
2841 case 0xA754: return 0xA755;
2842 case 0xA756: return 0xA757;
2843 case 0xA758: return 0xA759;
2844 case 0xA75A: return 0xA75B;
2845 case 0xA75C: return 0xA75D;
2846 case 0xA75E: return 0xA75F;
2847 case 0xA760: return 0xA761;
2848 case 0xA762: return 0xA763;
2849 case 0xA764: return 0xA765;
2850 case 0xA766: return 0xA767;
2851 case 0xA768: return 0xA769;
2852 case 0xA76A: return 0xA76B;
2853 case 0xA76C: return 0xA76D;
2854 case 0xA76E: return 0xA76F;
2855 case 0xA779: return 0xA77A;
2856 case 0xA77B: return 0xA77C;
2857 case 0xA77D: return 0x1D79;
2858 case 0xA77E: return 0xA77F;
2859 case 0xA780: return 0xA781;
2860 case 0xA782: return 0xA783;
2861 case 0xA784: return 0xA785;
2862 case 0xA786: return 0xA787;
2863 case 0xA78B: return 0xA78C;
2864 case 0xA78D: return 0x0265;
2865 case 0xA790: return 0xA791;
2866 case 0xA7A0: return 0xA7A1;
2867 case 0xA7A2: return 0xA7A3;
2868 case 0xA7A4: return 0xA7A5;
2869 case 0xA7A6: return 0xA7A7;
2870 case 0xA7A8: return 0xA7A9;
2871 case 0xFF21: return 0xFF41;
2872 case 0xFF22: return 0xFF42;
2873 case 0xFF23: return 0xFF43;
2874 case 0xFF24: return 0xFF44;
2875 case 0xFF25: return 0xFF45;
2876 case 0xFF26: return 0xFF46;
2877 case 0xFF27: return 0xFF47;
2878 case 0xFF28: return 0xFF48;
2879 case 0xFF29: return 0xFF49;
2880 case 0xFF2A: return 0xFF4A;
2881 case 0xFF2B: return 0xFF4B;
2882 case 0xFF2C: return 0xFF4C;
2883 case 0xFF2D: return 0xFF4D;
2884 case 0xFF2E: return 0xFF4E;
2885 case 0xFF2F: return 0xFF4F;
2886 case 0xFF30: return 0xFF50;
2887 case 0xFF31: return 0xFF51;
2888 case 0xFF32: return 0xFF52;
2889 case 0xFF33: return 0xFF53;
2890 case 0xFF34: return 0xFF54;
2891 case 0xFF35: return 0xFF55;
2892 case 0xFF36: return 0xFF56;
2893 case 0xFF37: return 0xFF57;
2894 case 0xFF38: return 0xFF58;
2895 case 0xFF39: return 0xFF59;
2896 case 0xFF3A: return 0xFF5A;
2897 case 0x10400: return 0x10428;
2898 case 0x10401: return 0x10429;
2899 case 0x10402: return 0x1042A;
2900 case 0x10403: return 0x1042B;
2901 case 0x10404: return 0x1042C;
2902 case 0x10405: return 0x1042D;
2903 case 0x10406: return 0x1042E;
2904 case 0x10407: return 0x1042F;
2905 case 0x10408: return 0x10430;
2906 case 0x10409: return 0x10431;
2907 case 0x1040A: return 0x10432;
2908 case 0x1040B: return 0x10433;
2909 case 0x1040C: return 0x10434;
2910 case 0x1040D: return 0x10435;
2911 case 0x1040E: return 0x10436;
2912 case 0x1040F: return 0x10437;
2913 case 0x10410: return 0x10438;
2914 case 0x10411: return 0x10439;
2915 case 0x10412: return 0x1043A;
2916 case 0x10413: return 0x1043B;
2917 case 0x10414: return 0x1043C;
2918 case 0x10415: return 0x1043D;
2919 case 0x10416: return 0x1043E;
2920 case 0x10417: return 0x1043F;
2921 case 0x10418: return 0x10440;
2922 case 0x10419: return 0x10441;
2923 case 0x1041A: return 0x10442;
2924 case 0x1041B: return 0x10443;
2925 case 0x1041C: return 0x10444;
2926 case 0x1041D: return 0x10445;
2927 case 0x1041E: return 0x10446;
2928 case 0x1041F: return 0x10447;
2929 case 0x10420: return 0x10448;
2930 case 0x10421: return 0x10449;
2931 case 0x10422: return 0x1044A;
2932 case 0x10423: return 0x1044B;
2933 case 0x10424: return 0x1044C;
2934 case 0x10425: return 0x1044D;
2935 case 0x10426: return 0x1044E;
2936 case 0x10427: return 0x1044F;