1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tcvtest1.tab,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 /* ======================================================================= */
33 /* This file contain the tables for all 1 byte charsets, for the */
34 /* following scripts: easteurope, cyrillic, greek, turkish */
36 /* ======================================================================= */
39 /* Dos Standard CharSet for Greek */
40 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
41 /* Convert-Tables: mappings/vendors/micsft/pc/cp737.txt from 04/24/96 Version 2.00 */
42 /* Last-Changes from us: */
44 /* ----------------------------------------------------------------------- */
46 #define IBM737UNI_START 0x80
47 #define IBM737UNI_END 0xFF
48 static sal_uInt16 const aImplIBM737ToUniTab[IBM737UNI_END - IBM737UNI_START + 1] =
52 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, /* 0x80 */
53 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, 0x03A0, /* 0x80 */
54 0x03A1, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7, 0x03A8, 0x03A9, /* 0x90 */
55 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, /* 0x90 */
56 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, 0x03C0, /* 0xA0 */
57 0x03C1, 0x03C3, 0x03C2, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, /* 0xA0 */
58 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, /* 0xB0 */
59 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, /* 0xB0 */
60 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, /* 0xC0 */
61 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, /* 0xC0 */
62 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, /* 0xD0 */
63 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, /* 0xD0 */
64 0x03C9, 0x03AC, 0x03AD, 0x03AE, 0x03CA, 0x03AF, 0x03CC, 0x03CD, /* 0xE0 */
65 0x03CB, 0x03CE, 0x0386, 0x0388, 0x0389, 0x038A, 0x038C, 0x038E, /* 0xE0 */
66 0x038F, 0x00B1, 0x2265, 0x2264, 0x03AA, 0x03AB, 0x00F7, 0x2248, /* 0xF0 */
67 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 /* 0xF0 */
70 /* ----------------------------------------------------------------------- */
72 #define IBM737CHAR_START 0x0386
73 #define IBM737CHAR_END 0x03CE
74 static sal_uChar const aImplIBM737ToCharTab[IBM737CHAR_END - IBM737CHAR_START + 1] =
79 0xEB, 0xEC, 0xED, 0, 0xEE, 0, 0xEF, 0xF0, /* 0x0380 */
80 0, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, /* 0x0390 */
81 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, /* 0x0390 */
82 0x8F, 0x90, 0, 0x91, 0x92, 0x93, 0x94, 0x95, /* 0x03A0 */
83 0x96, 0x97, 0xF4, 0xF5, 0xE1, 0xE2, 0xE3, 0xE5, /* 0x03A0 */
84 0, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, /* 0x03B0 */
85 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, /* 0x03B0 */
86 0xA7, 0xA8, 0xAA, 0xA9, 0xAB, 0xAC, 0xAD, 0xAE, /* 0x03C0 */
87 0xAF, 0xE0, 0xE4, 0xE8, 0xE6, 0xE7, 0xE9 /* 0x03C0 */
90 /* ----------------------------------------------------------------------- */
92 #define IBM737TOCHARTABEX_COUNT 61
93 static ImplUniCharTabData const aImplIBM737ToCharTabEx[IBM737TOCHARTABEX_COUNT] =
158 /* ----------------------------------------------------------------------- */
160 static ImplByteConvertData const aImplIBM737ByteCvtData =
164 IBM737UNI_START, IBM737UNI_END,
165 NOTABUNI_START, NOTABUNI_END,
166 aImplIBM737ToCharTab,
168 aImplIBM737ToCharTabEx,
169 IBM737CHAR_START, IBM737CHAR_END,
170 NOTABCHAR_START, NOTABCHAR_END,
171 IBM737TOCHARTABEX_COUNT
174 /* ----------------------------------------------------------------------- */
176 static ImplTextEncodingData const aImplIBM737TextEncodingData
177 = { { &aImplIBM737ByteCvtData,
192 RTL_TEXTENCODING_INFO_ASCII };
193 /* DOS/OS2, SCRIPT_GREEK, pc code page 737, mac encoding 6 */
195 /* ======================================================================= */
198 /* Dos Standard CharSet for BalticRim */
199 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
200 /* Convert-Tables: mappings/vendors/micsft/pc/cp775.txt from 04/24/96 Version 2.00 */
201 /* Last-Changes from us: */
203 /* ----------------------------------------------------------------------- */
205 #define IBM775UNI_START 0x80
206 #define IBM775UNI_END 0xFF
207 static sal_uInt16 const aImplIBM775ToUniTab[IBM775UNI_END - IBM775UNI_START + 1] =
209 /* 0 1 2 3 4 5 6 7 */
210 /* 8 9 A B C D E F */
211 0x0106, 0x00FC, 0x00E9, 0x0101, 0x00E4, 0x0123, 0x00E5, 0x0107, /* 0x80 */
212 0x0142, 0x0113, 0x0156, 0x0157, 0x012B, 0x0179, 0x00C4, 0x00C5, /* 0x80 */
213 0x00C9, 0x00E6, 0x00C6, 0x014D, 0x00F6, 0x0122, 0x00A2, 0x015A, /* 0x90 */
214 0x015B, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x00D7, 0x00A4, /* 0x90 */
215 0x0100, 0x012A, 0x00F3, 0x017B, 0x017C, 0x017A, 0x201D, 0x00A6, /* 0xA0 */
216 0x00A9, 0x00AE, 0x00AC, 0x00BD, 0x00BC, 0x0141, 0x00AB, 0x00BB, /* 0xA0 */
217 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x0104, 0x010C, 0x0118, /* 0xB0 */
218 0x0116, 0x2563, 0x2551, 0x2557, 0x255D, 0x012E, 0x0160, 0x2510, /* 0xB0 */
219 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x0172, 0x016A, /* 0xC0 */
220 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x017D, /* 0xC0 */
221 0x0105, 0x010D, 0x0119, 0x0117, 0x012F, 0x0161, 0x0173, 0x016B, /* 0xD0 */
222 0x017E, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, /* 0xD0 */
223 0x00D3, 0x00DF, 0x014C, 0x0143, 0x00F5, 0x00D5, 0x00B5, 0x0144, /* 0xE0 */
224 0x0136, 0x0137, 0x013B, 0x013C, 0x0146, 0x0112, 0x0145, 0x2019, /* 0xE0 */
225 0x00AD, 0x00B1, 0x201C, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x201E, /* 0xF0 */
226 0x00B0, 0x2219, 0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0 /* 0xF0 */
229 /* ----------------------------------------------------------------------- */
231 #define IBM775TOCHARTABEX_COUNT 128
232 static ImplUniCharTabData const aImplIBM775ToCharTabEx[IBM775TOCHARTABEX_COUNT] =
364 /* ----------------------------------------------------------------------- */
366 static ImplByteConvertData const aImplIBM775ByteCvtData =
370 IBM775UNI_START, IBM775UNI_END,
371 NOTABUNI_START, NOTABUNI_END,
374 aImplIBM775ToCharTabEx,
375 NOTABCHAR_START, NOTABCHAR_END,
376 NOTABCHAR_START, NOTABCHAR_END,
377 IBM775TOCHARTABEX_COUNT
380 /* ----------------------------------------------------------------------- */
382 static ImplTextEncodingData const aImplIBM775TextEncodingData
383 = { { &aImplIBM775ByteCvtData,
398 RTL_TEXTENCODING_INFO_ASCII };
399 /* DOS/OS2, SCRIPT_BALTIC, pc code page 775, mac encoding 29 (?) */
401 /* ======================================================================= */
404 /* Dos Standard CharSet for Central Europa (Jug., Pol., Tsch., Ung., ...) */
405 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
406 /* Convert-Tables: mappings/vendors/micsft/pc/cp852.txt from 04/24/96 Version 2.00 */
407 /* Last-Changes from us: */
409 /* ----------------------------------------------------------------------- */
411 #define IBM852UNI_START 0x80
412 #define IBM852UNI_END 0xFF
413 static sal_uInt16 const aImplIBM852ToUniTab[IBM852UNI_END - IBM852UNI_START + 1] =
415 /* 0 1 2 3 4 5 6 7 */
416 /* 8 9 A B C D E F */
417 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x016F, 0x0107, 0x00E7, /* 0x80 */
418 0x0142, 0x00EB, 0x0150, 0x0151, 0x00EE, 0x0179, 0x00C4, 0x0106, /* 0x80 */
419 0x00C9, 0x0139, 0x013A, 0x00F4, 0x00F6, 0x013D, 0x013E, 0x015A, /* 0x90 */
420 0x015B, 0x00D6, 0x00DC, 0x0164, 0x0165, 0x0141, 0x00D7, 0x010D, /* 0x90 */
421 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x0104, 0x0105, 0x017D, 0x017E, /* 0xA0 */
422 0x0118, 0x0119, 0x00AC, 0x017A, 0x010C, 0x015F, 0x00AB, 0x00BB, /* 0xA0 */
423 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00C1, 0x00C2, 0x011A, /* 0xB0 */
424 0x015E, 0x2563, 0x2551, 0x2557, 0x255D, 0x017B, 0x017C, 0x2510, /* 0xB0 */
425 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x0102, 0x0103, /* 0xC0 */
426 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, /* 0xC0 */
427 0x0111, 0x0110, 0x010E, 0x00CB, 0x010F, 0x0147, 0x00CD, 0x00CE, /* 0xD0 */
428 0x011B, 0x2518, 0x250C, 0x2588, 0x2584, 0x0162, 0x016E, 0x2580, /* 0xD0 */
429 0x00D3, 0x00DF, 0x00D4, 0x0143, 0x0144, 0x0148, 0x0160, 0x0161, /* 0xE0 */
430 0x0154, 0x00DA, 0x0155, 0x0170, 0x00FD, 0x00DD, 0x0163, 0x00B4, /* 0xE0 */
431 0x00AD, 0x02DD, 0x02DB, 0x02C7, 0x02D8, 0x00A7, 0x00F7, 0x00B8, /* 0xF0 */
432 0x00B0, 0x00A8, 0x02D9, 0x0171, 0x0158, 0x0159, 0x25A0, 0x00A0 /* 0xF0 */
435 /* ----------------------------------------------------------------------- */
437 #define IBM852TOCHARTABEX_COUNT 128
438 static ImplUniCharTabData const aImplIBM852ToCharTabEx[IBM852TOCHARTABEX_COUNT] =
570 /* ----------------------------------------------------------------------- */
572 static ImplByteConvertData const aImplIBM852ByteCvtData =
576 IBM852UNI_START, IBM852UNI_END,
577 NOTABUNI_START, NOTABUNI_END,
580 aImplIBM852ToCharTabEx,
581 NOTABCHAR_START, NOTABCHAR_END,
582 NOTABCHAR_START, NOTABCHAR_END,
583 IBM852TOCHARTABEX_COUNT
586 /* ----------------------------------------------------------------------- */
588 static ImplTextEncodingData const aImplIBM852TextEncodingData
589 = { { &aImplIBM852ByteCvtData,
604 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
605 /* DOS/OS2, SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
607 /* ======================================================================= */
610 /* Dos Standard CharSet for Cyrillic */
611 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
612 /* Convert-Tables: mappings/vendors/micsft/pc/cp855.txt from 04/24/96 Version 2.00 */
613 /* Last-Changes from us: */
615 /* ----------------------------------------------------------------------- */
617 #define IBM855UNI_START 0x80
618 #define IBM855UNI_END 0xFF
619 static sal_uInt16 const aImplIBM855ToUniTab[IBM855UNI_END - IBM855UNI_START + 1] =
621 /* 0 1 2 3 4 5 6 7 */
622 /* 8 9 A B C D E F */
623 0x0452, 0x0402, 0x0453, 0x0403, 0x0451, 0x0401, 0x0454, 0x0404, /* 0x80 */
624 0x0455, 0x0405, 0x0456, 0x0406, 0x0457, 0x0407, 0x0458, 0x0408, /* 0x80 */
625 0x0459, 0x0409, 0x045A, 0x040A, 0x045B, 0x040B, 0x045C, 0x040C, /* 0x90 */
626 0x045E, 0x040E, 0x045F, 0x040F, 0x044E, 0x042E, 0x044A, 0x042A, /* 0x90 */
627 0x0430, 0x0410, 0x0431, 0x0411, 0x0446, 0x0426, 0x0434, 0x0414, /* 0xA0 */
628 0x0435, 0x0415, 0x0444, 0x0424, 0x0433, 0x0413, 0x00AB, 0x00BB, /* 0xA0 */
629 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x0445, 0x0425, 0x0438, /* 0xB0 */
630 0x0418, 0x2563, 0x2551, 0x2557, 0x255D, 0x0439, 0x0419, 0x2510, /* 0xB0 */
631 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x043A, 0x041A, /* 0xC0 */
632 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, /* 0xC0 */
633 0x043B, 0x041B, 0x043C, 0x041C, 0x043D, 0x041D, 0x043E, 0x041E, /* 0xD0 */
634 0x043F, 0x2518, 0x250C, 0x2588, 0x2584, 0x041F, 0x044F, 0x2580, /* 0xD0 */
635 0x042F, 0x0440, 0x0420, 0x0441, 0x0421, 0x0442, 0x0422, 0x0443, /* 0xE0 */
636 0x0423, 0x0436, 0x0416, 0x0432, 0x0412, 0x044C, 0x042C, 0x2116, /* 0xE0 */
637 0x00AD, 0x044B, 0x042B, 0x0437, 0x0417, 0x0448, 0x0428, 0x044D, /* 0xF0 */
638 0x042D, 0x0449, 0x0429, 0x0447, 0x0427, 0x00A7, 0x25A0, 0x00A0 /* 0xF0 */
641 /* ----------------------------------------------------------------------- */
643 #define IBM855CHAR_START 0x0401
644 #define IBM855CHAR_END 0x045F
645 static sal_uChar const aImplIBM855ToCharTab[IBM855CHAR_END - IBM855CHAR_START + 1] =
647 /* 0 1 2 3 4 5 6 7 */
648 /* 8 9 A B C D E F */
649 0x85, 0x81, 0x83, 0x87, 0x89, 0x8B, 0x8D, /* 0x0400 */
650 0x8F, 0x91, 0x93, 0x95, 0x97, 0, 0x99, 0x9B, /* 0x0400 */
651 0xA1, 0xA3, 0xEC, 0xAD, 0xA7, 0xA9, 0xEA, 0xF4, /* 0x0410 */
652 0xB8, 0xBE, 0xC7, 0xD1, 0xD3, 0xD5, 0xD7, 0xDD, /* 0x0410 */
653 0xE2, 0xE4, 0xE6, 0xE8, 0xAB, 0xB6, 0xA5, 0xFC, /* 0x0420 */
654 0xF6, 0xFA, 0x9F, 0xF2, 0xEE, 0xF8, 0x9D, 0xE0, /* 0x0420 */
655 0xA0, 0xA2, 0xEB, 0xAC, 0xA6, 0xA8, 0xE9, 0xF3, /* 0x0430 */
656 0xB7, 0xBD, 0xC6, 0xD0, 0xD2, 0xD4, 0xD6, 0xD8, /* 0x0430 */
657 0xE1, 0xE3, 0xE5, 0xE7, 0xAA, 0xB5, 0xA4, 0xFB, /* 0x0440 */
658 0xF5, 0xF9, 0x9E, 0xF1, 0xED, 0xF7, 0x9C, 0xDE, /* 0x0440 */
659 0, 0x84, 0x80, 0x82, 0x86, 0x88, 0x8A, 0x8C, /* 0x0450 */
660 0x8E, 0x90, 0x92, 0x94, 0x96, 0, 0x98, 0x9A, /* 0x0450 */
663 /* ----------------------------------------------------------------------- */
665 #define IBM855TOCHARTABEX_COUNT 36
666 static ImplUniCharTabData const aImplIBM855ToCharTabEx[IBM855TOCHARTABEX_COUNT] =
706 /* ----------------------------------------------------------------------- */
708 static ImplByteConvertData const aImplIBM855ByteCvtData =
712 IBM855UNI_START, IBM855UNI_END,
713 NOTABUNI_START, NOTABUNI_END,
714 aImplIBM855ToCharTab,
716 aImplIBM855ToCharTabEx,
717 IBM855CHAR_START, IBM855CHAR_END,
718 NOTABCHAR_START, NOTABCHAR_END,
719 IBM855TOCHARTABEX_COUNT
722 /* ----------------------------------------------------------------------- */
724 static ImplTextEncodingData const aImplIBM855TextEncodingData
725 = { { &aImplIBM855ByteCvtData,
740 RTL_TEXTENCODING_INFO_ASCII };
741 /* DOS/OS2, SCRIPT_CYRILLIC, pc code page 855, mac encoding 7 */
743 /* ======================================================================= */
746 /* Dos Standard CharSet for Turkish */
747 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
748 /* Convert-Tables: mappings/vendors/micsft/pc/cp857.txt from 04/24/96 Version 2.00 */
749 /* Last-Changes from us: */
751 /* ----------------------------------------------------------------------- */
753 #define IBM857UNI_START 0x80
754 #define IBM857UNI_END 0xFF
755 static sal_uInt16 const aImplIBM857ToUniTab[IBM857UNI_END - IBM857UNI_START + 1] =
757 /* 0 1 2 3 4 5 6 7 */
758 /* 8 9 A B C D E F */
759 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E5, 0x00E7, /* 0x80 */
760 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x0131, 0x00C4, 0x00C5, /* 0x80 */
761 0x00C9, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00F2, 0x00FB, 0x00F9, /* 0x90 */
762 0x0130, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x015E, 0x015F, /* 0x90 */
763 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x011E, 0x011F, /* 0xA0 */
764 0x00BF, 0x00AE, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, /* 0xA0 */
765 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00C1, 0x00C2, 0x00C0, /* 0xB0 */
766 0x00A9, 0x2563, 0x2551, 0x2557, 0x255D, 0x00A2, 0x00A5, 0x2510, /* 0xB0 */
767 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x00E3, 0x00C3, /* 0xC0 */
768 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, /* 0xC0 */
769 0x00BA, 0x00AA, 0x00CA, 0x00CB, 0x00C8, 0, 0x00CD, 0x00CE, /* 0xD0 */
770 0x00CF, 0x2518, 0x250C, 0x2588, 0x2584, 0x00A6, 0x00CC, 0x2580, /* 0xD0 */
771 0x00D3, 0x00DF, 0x00D4, 0x00D2, 0x00F5, 0x00D5, 0x00B5, 0, /* 0xE0 */
772 0x00D7, 0x00DA, 0x00DB, 0x00D9, 0x00EC, 0x00FF, 0x00AF, 0x00B4, /* 0xE0 */
773 0x00AD, 0x00B1, 0, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x00B8, /* 0xF0 */
774 0x00B0, 0x00A8, 0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0 /* 0xF0 */
777 /* ----------------------------------------------------------------------- */
779 #define IBM857CHAR_START 0x00A0
780 #define IBM857CHAR_END 0x00FF
781 static sal_uChar const aImplIBM857ToCharTab[IBM857CHAR_END - IBM857CHAR_START + 1] =
783 /* 0 1 2 3 4 5 6 7 */
784 /* 8 9 A B C D E F */
785 0xFF, 0xAD, 0xBD, 0x9C, 0xCF, 0xBE, 0xDD, 0xF5, /* 0x00A0 */
786 0xF9, 0xB8, 0xD1, 0xAE, 0xAA, 0xF0, 0xA9, 0xEE, /* 0x00A0 */
787 0xF8, 0xF1, 0xFD, 0xFC, 0xEF, 0xE6, 0xF4, 0xFA, /* 0x00B0 */
788 0xF7, 0xFB, 0xD0, 0xAF, 0xAC, 0xAB, 0xF3, 0xA8, /* 0x00B0 */
789 0xB7, 0xB5, 0xB6, 0xC7, 0x8E, 0x8F, 0x92, 0x80, /* 0x00C0 */
790 0xD4, 0x90, 0xD2, 0xD3, 0xDE, 0xD6, 0xD7, 0xD8, /* 0x00C0 */
791 0, 0xA5, 0xE3, 0xE0, 0xE2, 0xE5, 0x99, 0xE8, /* 0x00D0 */
792 0x9D, 0xEB, 0xE9, 0xEA, 0x9A, 0, 0, 0xE1, /* 0x00D0 */
793 0x85, 0xA0, 0x83, 0xC6, 0x84, 0x86, 0x91, 0x87, /* 0x00E0 */
794 0x8A, 0x82, 0x88, 0x89, 0xEC, 0xA1, 0x8C, 0x8B, /* 0x00E0 */
795 0, 0xA4, 0x95, 0xA2, 0x93, 0xE4, 0x94, 0xF6, /* 0x00F0 */
796 0x9B, 0x97, 0xA3, 0x96, 0x81, 0, 0, 0xED /* 0x00F0 */
799 /* ----------------------------------------------------------------------- */
801 #define IBM857TOCHARTABEX_COUNT 35
802 static ImplUniCharTabData const aImplIBM857ToCharTabEx[IBM857TOCHARTABEX_COUNT] =
841 /* ----------------------------------------------------------------------- */
843 static ImplByteConvertData const aImplIBM857ByteCvtData =
847 IBM857UNI_START, IBM857UNI_END,
848 NOTABUNI_START, NOTABUNI_END,
849 aImplIBM857ToCharTab,
851 aImplIBM857ToCharTabEx,
852 IBM857CHAR_START, IBM857CHAR_END,
853 NOTABCHAR_START, NOTABCHAR_END,
854 IBM857TOCHARTABEX_COUNT
857 /* ----------------------------------------------------------------------- */
859 static ImplTextEncodingData const aImplIBM857TextEncodingData
860 = { { &aImplIBM857ByteCvtData,
875 RTL_TEXTENCODING_INFO_ASCII };
876 /* DOS/OS2, SCRIPT_TURKISH, pc code page 857, mac encoding 35 */
878 /* ======================================================================= */
881 /* Dos Standard CharSet for CyrillicRussian */
882 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
883 /* Convert-Tables: mappings/vendors/micsft/pc/cp866.txt from 04/24/96 Version 2.00 */
884 /* Last-Changes from us: */
886 /* ----------------------------------------------------------------------- */
888 #define IBM866UNI_START 0x80
889 #define IBM866UNI_END 0xFF
890 static sal_uInt16 const aImplIBM866ToUniTab[IBM866UNI_END - IBM866UNI_START + 1] =
892 /* 0 1 2 3 4 5 6 7 */
893 /* 8 9 A B C D E F */
894 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0x80 */
895 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0x80 */
896 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0x90 */
897 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0x90 */
898 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xA0 */
899 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xA0 */
900 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, /* 0xB0 */
901 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, /* 0xB0 */
902 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, /* 0xC0 */
903 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, /* 0xC0 */
904 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, /* 0xD0 */
905 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, /* 0xD0 */
906 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xE0 */
907 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F, /* 0xE0 */
908 0x0401, 0x0451, 0x0404, 0x0454, 0x0407, 0x0457, 0x040E, 0x045E, /* 0xF0 */
909 0x00B0, 0x2219, 0x00B7, 0x221A, 0x2116, 0x00A4, 0x25A0, 0x00A0 /* 0xF0 */
912 /* ----------------------------------------------------------------------- */
914 #define IBM866CHAR_START 0x0401
915 #define IBM866CHAR_END 0x045E
916 static sal_uChar const aImplIBM866ToCharTab[IBM866CHAR_END - IBM866CHAR_START + 1] =
918 /* 0 1 2 3 4 5 6 7 */
919 /* 8 9 A B C D E F */
920 0xF0, 0, 0, 0xF2, 0, 0, 0xF4, /* 0x0400 */
921 0, 0, 0, 0, 0, 0, 0xF6, 0, /* 0x0400 */
922 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x0410 */
923 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, /* 0x0410 */
924 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x0420 */
925 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, /* 0x0420 */
926 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, /* 0x0430 */
927 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, /* 0x0430 */
928 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0440 */
929 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0440 */
930 0, 0xF1, 0, 0, 0xF3, 0, 0, 0xF5, /* 0x0450 */
931 0, 0, 0, 0, 0, 0, 0xF7 /* 0x0450 */
934 /* ----------------------------------------------------------------------- */
936 #define IBM866TOCHARTABEX_COUNT 56
937 static ImplUniCharTabData const aImplIBM866ToCharTabEx[IBM866TOCHARTABEX_COUNT] =
997 /* ----------------------------------------------------------------------- */
999 static ImplByteConvertData const aImplIBM866ByteCvtData =
1001 aImplIBM866ToUniTab,
1003 IBM866UNI_START, IBM866UNI_END,
1004 NOTABUNI_START, NOTABUNI_END,
1005 aImplIBM866ToCharTab,
1007 aImplIBM866ToCharTabEx,
1008 IBM866CHAR_START, IBM866CHAR_END,
1009 NOTABCHAR_START, NOTABCHAR_END,
1010 IBM866TOCHARTABEX_COUNT
1013 /* ----------------------------------------------------------------------- */
1015 static ImplTextEncodingData const aImplIBM866TextEncodingData
1016 = { { &aImplIBM866ByteCvtData,
1031 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1032 /* DOS/OS2, SCRIPT_LATIN, pc code page 866, mac encoding 7 */
1034 /* ======================================================================= */
1037 /* Dos Standard CharSet for Greek2 */
1038 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1039 /* Convert-Tables: mappings/vendors/micsft/pc/cp869.txt from 04/24/96 Version 2.00 */
1040 /* Last-Changes from us: */
1042 /* ----------------------------------------------------------------------- */
1044 #define IBM869UNI_START 0x86
1045 #define IBM869UNI_END 0xFF
1046 static sal_uInt16 const aImplIBM869ToUniTab[IBM869UNI_END - IBM869UNI_START + 1] =
1048 /* 0 1 2 3 4 5 6 7 */
1049 /* 8 9 A B C D E F */
1050 0x0386, 0, /* 0x80 */
1051 0x00B7, 0x00AC, 0x00A6, 0x2018, 0x2019, 0x0388, 0x2015, 0x0389, /* 0x80 */
1052 0x038A, 0x03AA, 0x038C, 0, 0, 0x038E, 0x03AB, 0x00A9, /* 0x90 */
1053 0x038F, 0x00B2, 0x00B3, 0x03AC, 0x00A3, 0x03AD, 0x03AE, 0x03AF, /* 0x90 */
1054 0x03CA, 0x0390, 0x03CC, 0x03CD, 0x0391, 0x0392, 0x0393, 0x0394, /* 0xA0 */
1055 0x0395, 0x0396, 0x0397, 0x00BD, 0x0398, 0x0399, 0x00AB, 0x00BB, /* 0xA0 */
1056 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x039A, 0x039B, 0x039C, /* 0xB0 */
1057 0x039D, 0x2563, 0x2551, 0x2557, 0x255D, 0x039E, 0x039F, 0x2510, /* 0xB0 */
1058 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x03A0, 0x03A1, /* 0xC0 */
1059 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x03A3, /* 0xC0 */
1060 0x03A4, 0x03A5, 0x03A6, 0x03A7, 0x03A8, 0x03A9, 0x03B1, 0x03B2, /* 0xD0 */
1061 0x03B3, 0x2518, 0x250C, 0x2588, 0x2584, 0x03B4, 0x03B5, 0x2580, /* 0xD0 */
1062 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, /* 0xE0 */
1063 0x03BE, 0x03BF, 0x03C0, 0x03C1, 0x03C3, 0x03C2, 0x03C4, 0x0384, /* 0xE0 */
1064 0x00AD, 0x00B1, 0x03C5, 0x03C6, 0x03C7, 0x00A7, 0x03C8, 0x0385, /* 0xF0 */
1065 0x00B0, 0x00A8, 0x03C9, 0x03CB, 0x03B0, 0x03CE, 0x25A0, 0x00A0 /* 0xF0 */
1068 /* ----------------------------------------------------------------------- */
1070 #define IBM869CHAR_START 0x0384
1071 #define IBM869CHAR_END 0x03CE
1072 static sal_uChar const aImplIBM869ToCharTab[IBM869CHAR_END - IBM869CHAR_START + 1] =
1074 /* 0 1 2 3 4 5 6 7 */
1075 /* 8 9 A B C D E F */
1076 0xEF, 0xF7, 0x86, 0, /* 0x0380 */
1077 0x8D, 0x8F, 0x90, 0, 0x92, 0, 0x95, 0x98, /* 0x0380 */
1078 0xA1, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, /* 0x0390 */
1079 0xAC, 0xAD, 0xB5, 0xB6, 0xB7, 0xB8, 0xBD, 0xBE, /* 0x0390 */
1080 0xC6, 0xC7, 0, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, /* 0x03A0 */
1081 0xD4, 0xD5, 0x91, 0x96, 0x9B, 0x9D, 0x9E, 0x9F, /* 0x03A0 */
1082 0xFC, 0xD6, 0xD7, 0xD8, 0xDD, 0xDE, 0xE0, 0xE1, /* 0x03B0 */
1083 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, /* 0x03B0 */
1084 0xEA, 0xEB, 0xED, 0xEC, 0xEE, 0xF2, 0xF3, 0xF4, /* 0x03C0 */
1085 0xF6, 0xFA, 0xA0, 0xFB, 0xA2, 0xA3, 0xFD /* 0x03C0 */
1088 /* ----------------------------------------------------------------------- */
1090 #define IBM869TOCHARTABEX_COUNT 48
1091 static ImplUniCharTabData const aImplIBM869ToCharTabEx[IBM869TOCHARTABEX_COUNT] =
1093 { 0x00A0, 0xFF, 0 },
1094 { 0x00A3, 0x9C, 0 },
1095 { 0x00A6, 0x8A, 0 },
1096 { 0x00A7, 0xF5, 0 },
1097 { 0x00A8, 0xF9, 0 },
1098 { 0x00A9, 0x97, 0 },
1099 { 0x00AB, 0xAE, 0 },
1100 { 0x00AC, 0x89, 0 },
1101 { 0x00AD, 0xF0, 0 },
1102 { 0x00B0, 0xF8, 0 },
1103 { 0x00B1, 0xF1, 0 },
1104 { 0x00B2, 0x99, 0 },
1105 { 0x00B3, 0x9A, 0 },
1106 { 0x00B7, 0x88, 0 },
1107 { 0x00BB, 0xAF, 0 },
1108 { 0x00BD, 0xAB, 0 },
1109 { 0x2015, 0x8E, 0 },
1110 { 0x2018, 0x8B, 0 },
1111 { 0x2019, 0x8C, 0 },
1112 { 0x2500, 0xC4, 0 },
1113 { 0x2502, 0xB3, 0 },
1114 { 0x250C, 0xDA, 0 },
1115 { 0x2510, 0xBF, 0 },
1116 { 0x2514, 0xC0, 0 },
1117 { 0x2518, 0xD9, 0 },
1118 { 0x251C, 0xC3, 0 },
1119 { 0x2524, 0xB4, 0 },
1120 { 0x252C, 0xC2, 0 },
1121 { 0x2534, 0xC1, 0 },
1122 { 0x253C, 0xC5, 0 },
1123 { 0x2550, 0xCD, 0 },
1124 { 0x2551, 0xBA, 0 },
1125 { 0x2554, 0xC9, 0 },
1126 { 0x2557, 0xBB, 0 },
1127 { 0x255A, 0xC8, 0 },
1128 { 0x255D, 0xBC, 0 },
1129 { 0x2560, 0xCC, 0 },
1130 { 0x2563, 0xB9, 0 },
1131 { 0x2566, 0xCB, 0 },
1132 { 0x2569, 0xCA, 0 },
1133 { 0x256C, 0xCE, 0 },
1134 { 0x2580, 0xDF, 0 },
1135 { 0x2584, 0xDC, 0 },
1136 { 0x2588, 0xDB, 0 },
1137 { 0x2591, 0xB0, 0 },
1138 { 0x2592, 0xB1, 0 },
1139 { 0x2593, 0xB2, 0 },
1143 /* ----------------------------------------------------------------------- */
1145 static ImplByteConvertData const aImplIBM869ByteCvtData =
1147 aImplIBM869ToUniTab,
1149 IBM869UNI_START, IBM869UNI_END,
1150 NOTABUNI_START, NOTABUNI_END,
1151 aImplIBM869ToCharTab,
1153 aImplIBM869ToCharTabEx,
1154 IBM869CHAR_START, IBM869CHAR_END,
1155 NOTABCHAR_START, NOTABCHAR_END,
1156 IBM869TOCHARTABEX_COUNT
1159 /* ----------------------------------------------------------------------- */
1161 static ImplTextEncodingData const aImplIBM869TextEncodingData
1162 = { { &aImplIBM869ByteCvtData,
1177 RTL_TEXTENCODING_INFO_ASCII };
1178 /* DOS/OS2, SCRIPT_LATIN, pc code page 869, mac encoding 6 */
1180 /* ======================================================================= */
1183 /* Windows CodePage for Eastern European (WinLatin2) */
1184 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1185 /* Convert-Tables: mappings/vendors/micsft/windows/cp1250.txt from 04/15/98 Version 2.01 */
1186 /* Last-Changes from us: */
1188 /* ----------------------------------------------------------------------- */
1190 #define MS1250UNI_START 0x80
1191 #define MS1250UNI_END 0xFF
1192 static sal_uInt16 const aImplMS1250ToUniTab[MS1250UNI_END - MS1250UNI_START + 1] =
1194 /* 0 1 2 3 4 5 6 7 */
1195 /* 8 9 A B C D E F */
1196 0x20AC, 0, 0x201A, 0, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
1197 0, 0x2030, 0x0160, 0x2039, 0x015A, 0x0164, 0x017D, 0x0179, /* 0x80 */
1198 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
1199 0, 0x2122, 0x0161, 0x203A, 0x015B, 0x0165, 0x017E, 0x017A, /* 0x90 */
1200 0x00A0, 0x02C7, 0x02D8, 0x0141, 0x00A4, 0x0104, 0x00A6, 0x00A7, /* 0xA0 */
1201 0x00A8, 0x00A9, 0x015E, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x017B, /* 0xA0 */
1202 0x00B0, 0x00B1, 0x02DB, 0x0142, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
1203 0x00B8, 0x0105, 0x015F, 0x00BB, 0x013D, 0x02DD, 0x013E, 0x017C, /* 0xB0 */
1204 0x0154, 0x00C1, 0x00C2, 0x0102, 0x00C4, 0x0139, 0x0106, 0x00C7, /* 0xC0 */
1205 0x010C, 0x00C9, 0x0118, 0x00CB, 0x011A, 0x00CD, 0x00CE, 0x010E, /* 0xC0 */
1206 0x0110, 0x0143, 0x0147, 0x00D3, 0x00D4, 0x0150, 0x00D6, 0x00D7, /* 0xD0 */
1207 0x0158, 0x016E, 0x00DA, 0x0170, 0x00DC, 0x00DD, 0x0162, 0x00DF, /* 0xD0 */
1208 0x0155, 0x00E1, 0x00E2, 0x0103, 0x00E4, 0x013A, 0x0107, 0x00E7, /* 0xE0 */
1209 0x010D, 0x00E9, 0x0119, 0x00EB, 0x011B, 0x00ED, 0x00EE, 0x010F, /* 0xE0 */
1210 0x0111, 0x0144, 0x0148, 0x00F3, 0x00F4, 0x0151, 0x00F6, 0x00F7, /* 0xF0 */
1211 0x0159, 0x016F, 0x00FA, 0x0171, 0x00FC, 0x00FD, 0x0163, 0x02D9 /* 0xF0 */
1214 /* ----------------------------------------------------------------------- */
1216 #define MS1250TOCHARTABEX_COUNT 123
1217 static ImplUniCharTabData const aImplMS1250ToCharTabEx[MS1250TOCHARTABEX_COUNT] =
1219 { 0x00A0, 0xA0, 0 },
1220 { 0x00A4, 0xA4, 0 },
1221 { 0x00A6, 0xA6, 0 },
1222 { 0x00A7, 0xA7, 0 },
1223 { 0x00A8, 0xA8, 0 },
1224 { 0x00A9, 0xA9, 0 },
1225 { 0x00AB, 0xAB, 0 },
1226 { 0x00AC, 0xAC, 0 },
1227 { 0x00AD, 0xAD, 0 },
1228 { 0x00AE, 0xAE, 0 },
1229 { 0x00B0, 0xB0, 0 },
1230 { 0x00B1, 0xB1, 0 },
1231 { 0x00B4, 0xB4, 0 },
1232 { 0x00B5, 0xB5, 0 },
1233 { 0x00B6, 0xB6, 0 },
1234 { 0x00B7, 0xB7, 0 },
1235 { 0x00B8, 0xB8, 0 },
1236 { 0x00BB, 0xBB, 0 },
1237 { 0x00C1, 0xC1, 0 },
1238 { 0x00C2, 0xC2, 0 },
1239 { 0x00C4, 0xC4, 0 },
1240 { 0x00C7, 0xC7, 0 },
1241 { 0x00C9, 0xC9, 0 },
1242 { 0x00CB, 0xCB, 0 },
1243 { 0x00CD, 0xCD, 0 },
1244 { 0x00CE, 0xCE, 0 },
1245 { 0x00D3, 0xD3, 0 },
1246 { 0x00D4, 0xD4, 0 },
1247 { 0x00D6, 0xD6, 0 },
1248 { 0x00D7, 0xD7, 0 },
1249 { 0x00DA, 0xDA, 0 },
1250 { 0x00DC, 0xDC, 0 },
1251 { 0x00DD, 0xDD, 0 },
1252 { 0x00DF, 0xDF, 0 },
1253 { 0x00E1, 0xE1, 0 },
1254 { 0x00E2, 0xE2, 0 },
1255 { 0x00E4, 0xE4, 0 },
1256 { 0x00E7, 0xE7, 0 },
1257 { 0x00E9, 0xE9, 0 },
1258 { 0x00EB, 0xEB, 0 },
1259 { 0x00ED, 0xED, 0 },
1260 { 0x00EE, 0xEE, 0 },
1261 { 0x00F3, 0xF3, 0 },
1262 { 0x00F4, 0xF4, 0 },
1263 { 0x00F6, 0xF6, 0 },
1264 { 0x00F7, 0xF7, 0 },
1265 { 0x00FA, 0xFA, 0 },
1266 { 0x00FC, 0xFC, 0 },
1267 { 0x00FD, 0xFD, 0 },
1268 { 0x0102, 0xC3, 0 },
1269 { 0x0103, 0xE3, 0 },
1270 { 0x0104, 0xA5, 0 },
1271 { 0x0105, 0xB9, 0 },
1272 { 0x0106, 0xC6, 0 },
1273 { 0x0107, 0xE6, 0 },
1274 { 0x010C, 0xC8, 0 },
1275 { 0x010D, 0xE8, 0 },
1276 { 0x010E, 0xCF, 0 },
1277 { 0x010F, 0xEF, 0 },
1278 { 0x0110, 0xD0, 0 },
1279 { 0x0111, 0xF0, 0 },
1280 { 0x0118, 0xCA, 0 },
1281 { 0x0119, 0xEA, 0 },
1282 { 0x011A, 0xCC, 0 },
1283 { 0x011B, 0xEC, 0 },
1284 { 0x0139, 0xC5, 0 },
1285 { 0x013A, 0xE5, 0 },
1286 { 0x013D, 0xBC, 0 },
1287 { 0x013E, 0xBE, 0 },
1288 { 0x0141, 0xA3, 0 },
1289 { 0x0142, 0xB3, 0 },
1290 { 0x0143, 0xD1, 0 },
1291 { 0x0144, 0xF1, 0 },
1292 { 0x0147, 0xD2, 0 },
1293 { 0x0148, 0xF2, 0 },
1294 { 0x0150, 0xD5, 0 },
1295 { 0x0151, 0xF5, 0 },
1296 { 0x0154, 0xC0, 0 },
1297 { 0x0155, 0xE0, 0 },
1298 { 0x0158, 0xD8, 0 },
1299 { 0x0159, 0xF8, 0 },
1300 { 0x015A, 0x8C, 0 },
1301 { 0x015B, 0x9C, 0 },
1302 { 0x015E, 0xAA, 0 },
1303 { 0x015F, 0xBA, 0 },
1304 { 0x0160, 0x8A, 0 },
1305 { 0x0161, 0x9A, 0 },
1306 { 0x0162, 0xDE, 0 },
1307 { 0x0163, 0xFE, 0 },
1308 { 0x0164, 0x8D, 0 },
1309 { 0x0165, 0x9D, 0 },
1310 { 0x016E, 0xD9, 0 },
1311 { 0x016F, 0xF9, 0 },
1312 { 0x0170, 0xDB, 0 },
1313 { 0x0171, 0xFB, 0 },
1314 { 0x0179, 0x8F, 0 },
1315 { 0x017A, 0x9F, 0 },
1316 { 0x017B, 0xAF, 0 },
1317 { 0x017C, 0xBF, 0 },
1318 { 0x017D, 0x8E, 0 },
1319 { 0x017E, 0x9E, 0 },
1320 { 0x02C7, 0xA1, 0 },
1321 { 0x02D8, 0xA2, 0 },
1322 { 0x02D9, 0xFF, 0 },
1323 { 0x02DB, 0xB2, 0 },
1324 { 0x02DD, 0xBD, 0 },
1325 { 0x2013, 0x96, 0 },
1326 { 0x2014, 0x97, 0 },
1327 { 0x2018, 0x91, 0 },
1328 { 0x2019, 0x92, 0 },
1329 { 0x201A, 0x82, 0 },
1330 { 0x201C, 0x93, 0 },
1331 { 0x201D, 0x94, 0 },
1332 { 0x201E, 0x84, 0 },
1333 { 0x2020, 0x86, 0 },
1334 { 0x2021, 0x87, 0 },
1335 { 0x2022, 0x95, 0 },
1336 { 0x2026, 0x85, 0 },
1337 { 0x2030, 0x89, 0 },
1338 { 0x2039, 0x8B, 0 },
1339 { 0x203A, 0x9B, 0 },
1340 { 0x20AC, 0x80, 0 },
1344 /* ----------------------------------------------------------------------- */
1346 static ImplByteConvertData const aImplMS1250ByteCvtData =
1348 aImplMS1250ToUniTab,
1350 MS1250UNI_START, MS1250UNI_END,
1351 NOTABUNI_START, NOTABUNI_END,
1354 aImplMS1250ToCharTabEx,
1355 NOTABCHAR_START, NOTABCHAR_END,
1356 NOTABCHAR_START, NOTABCHAR_END,
1357 MS1250TOCHARTABEX_COUNT
1360 /* ----------------------------------------------------------------------- */
1362 static ImplTextEncodingData const aImplMS1250TextEncodingData
1363 = { { &aImplMS1250ByteCvtData,
1378 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1379 /* WIN, SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
1381 /* ======================================================================= */
1384 /* Windows CodePage for Cyrillic */
1385 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1386 /* Convert-Tables: mappings/vendors/micsft/windows/cp1251.txt from 04/15/98 Version 2.01 */
1387 /* Last-Changes from us: */
1389 /* ----------------------------------------------------------------------- */
1391 #define MS1251UNI_START 0x80
1392 #define MS1251UNI_END 0xFF
1393 static sal_uInt16 const aImplMS1251ToUniTab[MS1251UNI_END - MS1251UNI_START + 1] =
1395 /* 0 1 2 3 4 5 6 7 */
1396 /* 8 9 A B C D E F */
1397 0x0402, 0x0403, 0x201A, 0x0453, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
1398 0x20AC, 0x2030, 0x0409, 0x2039, 0x040A, 0x040C, 0x040B, 0x040F, /* 0x80 */
1399 0x0452, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
1400 0, 0x2122, 0x0459, 0x203A, 0x045A, 0x045C, 0x045B, 0x045F, /* 0x90 */
1401 0x00A0, 0x040E, 0x045E, 0x0408, 0x00A4, 0x0490, 0x00A6, 0x00A7, /* 0xA0 */
1402 0x0401, 0x00A9, 0x0404, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x0407, /* 0xA0 */
1403 0x00B0, 0x00B1, 0x0406, 0x0456, 0x0491, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
1404 0x0451, 0x2116, 0x0454, 0x00BB, 0x0458, 0x0405, 0x0455, 0x0457, /* 0xB0 */
1405 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0xC0 */
1406 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0xC0 */
1407 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0xD0 */
1408 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0xD0 */
1409 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xE0 */
1410 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xE0 */
1411 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xF0 */
1412 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F /* 0xF0 */
1415 /* ----------------------------------------------------------------------- */
1417 #define MS1251CHAR_START 0x0401
1418 #define MS1251CHAR_END 0x045F
1419 static sal_uChar const aImplMS1251ToCharTab[MS1251CHAR_END - MS1251CHAR_START + 1] =
1421 /* 0 1 2 3 4 5 6 7 */
1422 /* 8 9 A B C D E F */
1423 0xA8, 0x80, 0x81, 0xAA, 0xBD, 0xB2, 0xAF, /* 0x0400 */
1424 0xA3, 0x8A, 0x8C, 0x8E, 0x8D, 0, 0xA1, 0x8F, /* 0x0400 */
1425 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0410 */
1426 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0410 */
1427 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x0420 */
1428 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, /* 0x0420 */
1429 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0430 */
1430 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0430 */
1431 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x0440 */
1432 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, /* 0x0440 */
1433 0, 0xB8, 0x90, 0x83, 0xBA, 0xBE, 0xB3, 0xBF, /* 0x0450 */
1434 0xBC, 0x9A, 0x9C, 0x9E, 0x9D, 0, 0xA2, 0x9F /* 0x0450 */
1437 /* ----------------------------------------------------------------------- */
1439 #define MS1251TOCHARTABEX_COUNT 35
1440 static ImplUniCharTabData const aImplMS1251ToCharTabEx[MS1251TOCHARTABEX_COUNT] =
1442 { 0x00A0, 0xA0, 0 },
1443 { 0x00A4, 0xA4, 0 },
1444 { 0x00A6, 0xA6, 0 },
1445 { 0x00A7, 0xA7, 0 },
1446 { 0x00A9, 0xA9, 0 },
1447 { 0x00AB, 0xAB, 0 },
1448 { 0x00AC, 0xAC, 0 },
1449 { 0x00AD, 0xAD, 0 },
1450 { 0x00AE, 0xAE, 0 },
1451 { 0x00B0, 0xB0, 0 },
1452 { 0x00B1, 0xB1, 0 },
1453 { 0x00B5, 0xB5, 0 },
1454 { 0x00B6, 0xB6, 0 },
1455 { 0x00B7, 0xB7, 0 },
1456 { 0x00BB, 0xBB, 0 },
1457 { 0x0490, 0xA5, 0 },
1458 { 0x0491, 0xB4, 0 },
1459 { 0x2013, 0x96, 0 },
1460 { 0x2014, 0x97, 0 },
1461 { 0x2018, 0x91, 0 },
1462 { 0x2019, 0x92, 0 },
1463 { 0x201A, 0x82, 0 },
1464 { 0x201C, 0x93, 0 },
1465 { 0x201D, 0x94, 0 },
1466 { 0x201E, 0x84, 0 },
1467 { 0x2020, 0x86, 0 },
1468 { 0x2021, 0x87, 0 },
1469 { 0x2022, 0x95, 0 },
1470 { 0x2026, 0x85, 0 },
1471 { 0x2030, 0x89, 0 },
1472 { 0x2039, 0x8B, 0 },
1473 { 0x203A, 0x9B, 0 },
1474 { 0x20AC, 0x88, 0 },
1475 { 0x2116, 0xB9, 0 },
1479 /* ----------------------------------------------------------------------- */
1481 static ImplByteConvertData const aImplMS1251ByteCvtData =
1483 aImplMS1251ToUniTab,
1485 MS1251UNI_START, MS1251UNI_END,
1486 NOTABUNI_START, NOTABUNI_END,
1487 aImplMS1251ToCharTab,
1489 aImplMS1251ToCharTabEx,
1490 MS1251CHAR_START, MS1251CHAR_END,
1491 NOTABCHAR_START, NOTABCHAR_END,
1492 MS1251TOCHARTABEX_COUNT
1495 /* ----------------------------------------------------------------------- */
1497 static ImplTextEncodingData const aImplMS1251TextEncodingData
1498 = { { &aImplMS1251ByteCvtData,
1513 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1514 /* WIN, SCRIPT_CYRILLIC, pc code page 866 (855?), mac encoding 7 */
1516 /* ======================================================================= */
1519 /* Windows Standard CharSet for Greek */
1520 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1521 /* Convert-Tables: mappings/vendors/micsft/windows/cp1253.txt from 04/15/98 Version 2.01 */
1522 /* Last-Changes from us: */
1524 /* ----------------------------------------------------------------------- */
1526 #define MS1253UNI_START 0x80
1527 #define MS1253UNI_END 0xFF
1528 static sal_uInt16 const aImplMS1253ToUniTab[MS1253UNI_END - MS1253UNI_START + 1] =
1530 /* 0 1 2 3 4 5 6 7 */
1531 /* 8 9 A B C D E F */
1532 0x20AC, 0, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
1533 0, 0x2030, 0, 0x2039, 0, 0, 0, 0, /* 0x80 */
1534 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
1535 0, 0x2122, 0, 0x203A, 0, 0, 0, 0, /* 0x90 */
1536 0x00A0, 0x0385, 0x0386, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
1537 0x00A8, 0x00A9, 0, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x2015, /* 0xA0 */
1538 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x0384, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
1539 0x0388, 0x0389, 0x038A, 0x00BB, 0x038C, 0x00BD, 0x038E, 0x038F, /* 0xB0 */
1540 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, /* 0xC0 */
1541 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, /* 0xC0 */
1542 0x03A0, 0x03A1, 0, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7, /* 0xD0 */
1543 0x03A8, 0x03A9, 0x03AA, 0x03AB, 0x03AC, 0x03AD, 0x03AE, 0x03AF, /* 0xD0 */
1544 0x03B0, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, /* 0xE0 */
1545 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, /* 0xE0 */
1546 0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, /* 0xF0 */
1547 0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03CC, 0x03CD, 0x03CE, 0 /* 0xF0 */
1550 /* ----------------------------------------------------------------------- */
1552 #define MS1253CHAR_START 0x0384
1553 #define MS1253CHAR_END 0x03CE
1554 static sal_uChar const aImplMS1253ToCharTab[MS1253CHAR_END - MS1253CHAR_START + 1] =
1556 /* 0 1 2 3 4 5 6 7 */
1557 /* 8 9 A B C D E F */
1558 0xB4, 0xA1, 0xA2, 0, /* 0x0380 */
1559 0xB8, 0xB9, 0xBA, 0, 0xBC, 0, 0xBE, 0xBF, /* 0x0380 */
1560 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0390 */
1561 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0390 */
1562 0xD0, 0xD1, 0, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x03A0 */
1563 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, /* 0x03A0 */
1564 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x03B0 */
1565 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x03B0 */
1566 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x03C0 */
1567 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE /* 0x03C0 */
1570 /* ----------------------------------------------------------------------- */
1572 #define MS1253TOCHARTABEX_COUNT 40
1573 static ImplUniCharTabData const aImplMS1253ToCharTabEx[MS1253TOCHARTABEX_COUNT] =
1575 { 0x00A0, 0xA0, 0 },
1576 { 0x00A3, 0xA3, 0 },
1577 { 0x00A4, 0xA4, 0 },
1578 { 0x00A5, 0xA5, 0 },
1579 { 0x00A6, 0xA6, 0 },
1580 { 0x00A7, 0xA7, 0 },
1581 { 0x00A8, 0xA8, 0 },
1582 { 0x00A9, 0xA9, 0 },
1583 { 0x00AB, 0xAB, 0 },
1584 { 0x00AC, 0xAC, 0 },
1585 { 0x00AD, 0xAD, 0 },
1586 { 0x00AE, 0xAE, 0 },
1587 { 0x00B0, 0xB0, 0 },
1588 { 0x00B1, 0xB1, 0 },
1589 { 0x00B2, 0xB2, 0 },
1590 { 0x00B3, 0xB3, 0 },
1591 { 0x00B5, 0xB5, 0 },
1592 { 0x00B6, 0xB6, 0 },
1593 { 0x00B7, 0xB7, 0 },
1594 { 0x00BB, 0xBB, 0 },
1595 { 0x00BD, 0xBD, 0 },
1596 { 0x0192, 0x83, 0 },
1597 { 0x2013, 0x96, 0 },
1598 { 0x2014, 0x97, 0 },
1599 { 0x2015, 0xAF, 0 },
1600 { 0x2018, 0x91, 0 },
1601 { 0x2019, 0x92, 0 },
1602 { 0x201A, 0x82, 0 },
1603 { 0x201C, 0x93, 0 },
1604 { 0x201D, 0x94, 0 },
1605 { 0x201E, 0x84, 0 },
1606 { 0x2020, 0x86, 0 },
1607 { 0x2021, 0x87, 0 },
1608 { 0x2022, 0x95, 0 },
1609 { 0x2026, 0x85, 0 },
1610 { 0x2030, 0x89, 0 },
1611 { 0x2039, 0x8B, 0 },
1612 { 0x203A, 0x9B, 0 },
1613 { 0x20AC, 0x80, 0 },
1617 /* ----------------------------------------------------------------------- */
1619 static ImplByteConvertData const aImplMS1253ByteCvtData =
1621 aImplMS1253ToUniTab,
1623 MS1253UNI_START, MS1253UNI_END,
1624 NOTABUNI_START, NOTABUNI_END,
1625 aImplMS1253ToCharTab,
1627 aImplMS1253ToCharTabEx,
1628 MS1253CHAR_START, MS1253CHAR_END,
1629 NOTABCHAR_START, NOTABCHAR_END,
1630 MS1253TOCHARTABEX_COUNT
1633 /* ----------------------------------------------------------------------- */
1635 static ImplTextEncodingData const aImplMS1253TextEncodingData
1636 = { { &aImplMS1253ByteCvtData,
1651 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1652 /* WIN, SCRIPT_GREEK, pc code page 869, mac encoding 6 */
1654 /* ======================================================================= */
1657 /* Windows Standard CharSet for Turkish */
1658 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1659 /* Convert-Tables: mappings/vendors/micsft/windows/cp1254.txt from 04/15/98 Version 2.01 */
1660 /* Last-Changes from us: */
1662 /* ----------------------------------------------------------------------- */
1664 #define MS1254UNI_START 0x80
1665 #define MS1254UNI_END 0xFF
1666 static sal_uInt16 const aImplMS1254ToUniTab[MS1254UNI_END - MS1254UNI_START + 1] =
1668 /* 0 1 2 3 4 5 6 7 */
1669 /* 8 9 A B C D E F */
1670 0x20AC, 0, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
1671 0x02C6, 0x2030, 0x0160, 0x2039, 0x0152, 0, 0, 0, /* 0x80 */
1672 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
1673 0x02DC, 0x2122, 0x0161, 0x203A, 0x0153, 0, 0, 0x0178, /* 0x90 */
1674 0x00A0, 0x00A1, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
1675 0x00A8, 0x00A9, 0x00AA, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */
1676 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
1677 0x00B8, 0x00B9, 0x00BA, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00BF, /* 0xB0 */
1678 0x00C0, 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x00C7, /* 0xC0 */
1679 0x00C8, 0x00C9, 0x00CA, 0x00CB, 0x00CC, 0x00CD, 0x00CE, 0x00CF, /* 0xC0 */
1680 0x011E, 0x00D1, 0x00D2, 0x00D3, 0x00D4, 0x00D5, 0x00D6, 0x00D7, /* 0xD0 */
1681 0x00D8, 0x00D9, 0x00DA, 0x00DB, 0x00DC, 0x0130, 0x015E, 0x00DF, /* 0xD0 */
1682 0x00E0, 0x00E1, 0x00E2, 0x00E3, 0x00E4, 0x00E5, 0x00E6, 0x00E7, /* 0xE0 */
1683 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x00EC, 0x00ED, 0x00EE, 0x00EF, /* 0xE0 */
1684 0x011F, 0x00F1, 0x00F2, 0x00F3, 0x00F4, 0x00F5, 0x00F6, 0x00F7, /* 0xF0 */
1685 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x0131, 0x015F, 0x00FF /* 0xF0 */
1688 /* ----------------------------------------------------------------------- */
1690 #define MS1254CHAR_START 0x00A0
1691 #define MS1254CHAR_END 0x00FF
1692 static sal_uChar const aImplMS1254ToCharTab[MS1254CHAR_END - MS1254CHAR_START + 1] =
1694 /* 0 1 2 3 4 5 6 7 */
1695 /* 8 9 A B C D E F */
1696 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, /* 0x00A0 */
1697 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, /* 0x00A0 */
1698 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, /* 0x00B0 */
1699 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, /* 0x00B0 */
1700 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x00C0 */
1701 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x00C0 */
1702 0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x00D0 */
1703 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0, 0, 0xDF, /* 0x00D0 */
1704 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x00E0 */
1705 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x00E0 */
1706 0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x00F0 */
1707 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0, 0, 0xFF /* 0x00F0 */
1710 /* ----------------------------------------------------------------------- */
1712 #define MS1254TOCHARTABEX_COUNT 31
1713 static ImplUniCharTabData const aImplMS1254ToCharTabEx[MS1254TOCHARTABEX_COUNT] =
1715 { 0x011E, 0xD0, 0 },
1716 { 0x011F, 0xF0, 0 },
1717 { 0x0130, 0xDD, 0 },
1718 { 0x0131, 0xFD, 0 },
1719 { 0x0152, 0x8C, 0 },
1720 { 0x0153, 0x9C, 0 },
1721 { 0x015E, 0xDE, 0 },
1722 { 0x015F, 0xFE, 0 },
1723 { 0x0160, 0x8A, 0 },
1724 { 0x0161, 0x9A, 0 },
1725 { 0x0178, 0x9F, 0 },
1726 { 0x0192, 0x83, 0 },
1727 { 0x02C6, 0x88, 0 },
1728 { 0x02DC, 0x98, 0 },
1729 { 0x2013, 0x96, 0 },
1730 { 0x2014, 0x97, 0 },
1731 { 0x2018, 0x91, 0 },
1732 { 0x2019, 0x92, 0 },
1733 { 0x201A, 0x82, 0 },
1734 { 0x201C, 0x93, 0 },
1735 { 0x201D, 0x94, 0 },
1736 { 0x201E, 0x84, 0 },
1737 { 0x2020, 0x86, 0 },
1738 { 0x2021, 0x87, 0 },
1739 { 0x2022, 0x95, 0 },
1740 { 0x2026, 0x85, 0 },
1741 { 0x2030, 0x89, 0 },
1742 { 0x2039, 0x8B, 0 },
1743 { 0x203A, 0x9B, 0 },
1744 { 0x20AC, 0x80, 0 },
1748 /* ----------------------------------------------------------------------- */
1750 static ImplByteConvertData const aImplMS1254ByteCvtData =
1752 aImplMS1254ToUniTab,
1754 MS1254UNI_START, MS1254UNI_END,
1755 NOTABUNI_START, NOTABUNI_END,
1756 aImplMS1254ToCharTab,
1758 aImplMS1254ToCharTabEx,
1759 MS1254CHAR_START, MS1254CHAR_END,
1760 NOTABCHAR_START, NOTABCHAR_END,
1761 MS1254TOCHARTABEX_COUNT,
1764 /* ----------------------------------------------------------------------- */
1766 static ImplTextEncodingData const aImplMS1254TextEncodingData
1767 = { { &aImplMS1254ByteCvtData,
1782 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1783 /* WIN, SCRIPT_TURKISH, pc code page 857, mac encoding 35 */
1785 /* ======================================================================= */
1788 /* Windows Standard CharSet for Baltic */
1789 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
1790 /* Convert-Tables: mappings/vendors/micsft/windows/cp1257.txt from 04/15/98 Version 2.01 */
1791 /* Last-Changes from us: */
1793 /* ----------------------------------------------------------------------- */
1795 #define MS1257UNI_START 0x80
1796 #define MS1257UNI_END 0xFF
1797 static sal_uInt16 const aImplMS1257ToUniTab[MS1257UNI_END - MS1257UNI_START + 1] =
1799 /* 0 1 2 3 4 5 6 7 */
1800 /* 8 9 A B C D E F */
1801 0x20AC, 0, 0x201A, 0, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
1802 0, 0x2030, 0, 0x2039, 0, 0x00A8, 0x02C7, 0x00B8, /* 0x80 */
1803 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
1804 0, 0x2122, 0, 0x203A, 0, 0x00AF, 0x02DB, 0, /* 0x90 */
1805 0x00A0, 0, 0x00A2, 0x00A3, 0x00A4, 0, 0x00A6, 0x00A7, /* 0xA0 */
1806 0x00D8, 0x00A9, 0x0156, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00C6, /* 0xA0 */
1807 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
1808 0x00F8, 0x00B9, 0x0157, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00E6, /* 0xB0 */
1809 0x0104, 0x012E, 0x0100, 0x0106, 0x00C4, 0x00C5, 0x0118, 0x0112, /* 0xC0 */
1810 0x010C, 0x00C9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012A, 0x013B, /* 0xC0 */
1811 0x0160, 0x0143, 0x0145, 0x00D3, 0x014C, 0x00D5, 0x00D6, 0x00D7, /* 0xD0 */
1812 0x0172, 0x0141, 0x015A, 0x016A, 0x00DC, 0x017B, 0x017D, 0x00DF, /* 0xD0 */
1813 0x0105, 0x012F, 0x0101, 0x0107, 0x00E4, 0x00E5, 0x0119, 0x0113, /* 0xE0 */
1814 0x010D, 0x00E9, 0x017A, 0x0117, 0x0123, 0x0137, 0x012B, 0x013C, /* 0xE0 */
1815 0x0161, 0x0144, 0x0146, 0x00F3, 0x014D, 0x00F5, 0x00F6, 0x00F7, /* 0xF0 */
1816 0x0173, 0x0142, 0x015B, 0x016B, 0x00FC, 0x017C, 0x017E, 0x02D9 /* 0xF0 */
1819 /* ----------------------------------------------------------------------- */
1821 #define MS1257CHAR_START 0x00A0
1822 #define MS1257CHAR_END 0x017E
1823 static sal_uChar const aImplMS1257ToCharTab[MS1257CHAR_END - MS1257CHAR_START + 1] =
1825 /* 0 1 2 3 4 5 6 7 */
1826 /* 8 9 A B C D E F */
1827 0xA0, 0, 0xA2, 0xA3, 0xA4, 0, 0xA6, 0xA7, /* 0x00A0 */
1828 0x8D, 0xA9, 0, 0xAB, 0xAC, 0xAD, 0xAE, 0x9D, /* 0x00A0 */
1829 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, /* 0x00B0 */
1830 0x8F, 0xB9, 0, 0xBB, 0xBC, 0xBD, 0xBE, 0, /* 0x00B0 */
1831 0, 0, 0, 0, 0xC4, 0xC5, 0xAF, 0, /* 0x00C0 */
1832 0, 0xC9, 0, 0, 0, 0, 0, 0, /* 0x00C0 */
1833 0, 0, 0, 0xD3, 0, 0xD5, 0xD6, 0xD7, /* 0x00D0 */
1834 0xA8, 0, 0, 0, 0xDC, 0, 0, 0xDF, /* 0x00D0 */
1835 0, 0, 0, 0, 0xE4, 0xE5, 0xBF, 0, /* 0x00E0 */
1836 0, 0xE9, 0, 0, 0, 0, 0, 0, /* 0x00E0 */
1837 0, 0, 0, 0xF3, 0, 0xF5, 0xF6, 0xF7, /* 0x00F0 */
1838 0xB8, 0, 0, 0, 0xFC, 0, 0, 0, /* 0x00F0 */
1839 0xC2, 0xE2, 0, 0, 0xC0, 0xE0, 0xC3, 0xE3, /* 0x0100 */
1840 0, 0, 0, 0, 0xC8, 0xE8, 0, 0, /* 0x0100 */
1841 0, 0, 0xC7, 0xE7, 0, 0, 0xCB, 0xEB, /* 0x0110 */
1842 0xC6, 0xE6, 0, 0, 0, 0, 0, 0, /* 0x0110 */
1843 0, 0, 0xCC, 0xEC, 0, 0, 0, 0, /* 0x0120 */
1844 0, 0, 0xCE, 0xEE, 0, 0, 0xC1, 0xE1, /* 0x0120 */
1845 0, 0, 0, 0, 0, 0, 0xCD, 0xED, /* 0x0130 */
1846 0, 0, 0, 0xCF, 0xEF, 0, 0, 0, /* 0x0130 */
1847 0, 0xD9, 0xF9, 0xD1, 0xF1, 0xD2, 0xF2, 0, /* 0x0140 */
1848 0, 0, 0, 0, 0xD4, 0xF4, 0, 0, /* 0x0140 */
1849 0, 0, 0, 0, 0, 0, 0xAA, 0xBA, /* 0x0150 */
1850 0, 0, 0xDA, 0xFA, 0, 0, 0, 0, /* 0x0150 */
1851 0xD0, 0xF0, 0, 0, 0, 0, 0, 0, /* 0x0160 */
1852 0, 0, 0xDB, 0xFB, 0, 0, 0, 0, /* 0x0160 */
1853 0, 0, 0xD8, 0xF8, 0, 0, 0, 0, /* 0x0170 */
1854 0, 0xCA, 0xEA, 0xDD, 0xFD, 0xDE, 0xFE /* 0x0170 */
1857 /* ----------------------------------------------------------------------- */
1859 #define MS1257TOCHARTABEX_COUNT 20
1860 static ImplUniCharTabData const aImplMS1257ToCharTabEx[MS1257TOCHARTABEX_COUNT] =
1862 { 0x02C7, 0x8E, 0 },
1863 { 0x02D9, 0xFF, 0 },
1864 { 0x02DB, 0x9E, 0 },
1865 { 0x2013, 0x96, 0 },
1866 { 0x2014, 0x97, 0 },
1867 { 0x2018, 0x91, 0 },
1868 { 0x2019, 0x92, 0 },
1869 { 0x201A, 0x82, 0 },
1870 { 0x201C, 0x93, 0 },
1871 { 0x201D, 0x94, 0 },
1872 { 0x201E, 0x84, 0 },
1873 { 0x2020, 0x86, 0 },
1874 { 0x2021, 0x87, 0 },
1875 { 0x2022, 0x95, 0 },
1876 { 0x2026, 0x85, 0 },
1877 { 0x2030, 0x89, 0 },
1878 { 0x2039, 0x8B, 0 },
1879 { 0x203A, 0x9B, 0 },
1880 { 0x20AC, 0x80, 0 },
1884 /* ----------------------------------------------------------------------- */
1886 static ImplByteConvertData const aImplMS1257ByteCvtData =
1888 aImplMS1257ToUniTab,
1890 MS1257UNI_START, MS1257UNI_END,
1891 NOTABUNI_START, NOTABUNI_END,
1892 aImplMS1257ToCharTab,
1894 aImplMS1257ToCharTabEx,
1895 MS1257CHAR_START, MS1257CHAR_END,
1896 NOTABCHAR_START, NOTABCHAR_END,
1897 MS1257TOCHARTABEX_COUNT,
1900 /* ----------------------------------------------------------------------- */
1902 static ImplTextEncodingData const aImplMS1257TextEncodingData
1903 = { { &aImplMS1257ByteCvtData,
1918 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
1919 /* WIN, SCRIPT_BALTIC, pc code page 775, mac encoding 29 */
1921 /* ======================================================================= */
1924 /* Unix Standard for Eastern European (Latin2) */
1925 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
1926 /* Convert-Tables: mappings/iso8859/8859-2.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
1927 /* Last-Changes from us: */
1929 #define ISO88592UNI_START 0xA0
1930 #define ISO88592UNI_END 0xFF
1931 static sal_uInt16 const aImplISO88592ToUniTab[ISO88592UNI_END - ISO88592UNI_START + 1] =
1933 /* 0 1 2 3 4 5 6 7 */
1934 /* 8 9 A B C D E F */
1935 0x00A0, 0x0104, 0x02D8, 0x0141, 0x00A4, 0x013D, 0x015A, 0x00A7, /* 0xA0 */
1936 0x00A8, 0x0160, 0x015E, 0x0164, 0x0179, 0x00AD, 0x017D, 0x017B, /* 0xA0 */
1937 0x00B0, 0x0105, 0x02DB, 0x0142, 0x00B4, 0x013E, 0x015B, 0x02C7, /* 0xB0 */
1938 0x00B8, 0x0161, 0x015F, 0x0165, 0x017A, 0x02DD, 0x017E, 0x017C, /* 0xB0 */
1939 0x0154, 0x00C1, 0x00C2, 0x0102, 0x00C4, 0x0139, 0x0106, 0x00C7, /* 0xC0 */
1940 0x010C, 0x00C9, 0x0118, 0x00CB, 0x011A, 0x00CD, 0x00CE, 0x010E, /* 0xC0 */
1941 0x0110, 0x0143, 0x0147, 0x00D3, 0x00D4, 0x0150, 0x00D6, 0x00D7, /* 0xD0 */
1942 0x0158, 0x016E, 0x00DA, 0x0170, 0x00DC, 0x00DD, 0x0162, 0x00DF, /* 0xD0 */
1943 0x0155, 0x00E1, 0x00E2, 0x0103, 0x00E4, 0x013A, 0x0107, 0x00E7, /* 0xE0 */
1944 0x010D, 0x00E9, 0x0119, 0x00EB, 0x011B, 0x00ED, 0x00EE, 0x010F, /* 0xE0 */
1945 0x0111, 0x0144, 0x0148, 0x00F3, 0x00F4, 0x0151, 0x00F6, 0x00F7, /* 0xF0 */
1946 0x0159, 0x016F, 0x00FA, 0x0171, 0x00FC, 0x00FD, 0x0163, 0x02D9 /* 0xF0 */
1949 /* ----------------------------------------------------------------------- */
1951 #define ISO88592TOCHARTABEX_COUNT 96
1952 static ImplUniCharTabData const aImplISO88592ToCharTabEx[ISO88592TOCHARTABEX_COUNT] =
1954 { 0x00A0, 0xA0, 0 },
1955 { 0x00A4, 0xA4, 0 },
1956 { 0x00A7, 0xA7, 0 },
1957 { 0x00A8, 0xA8, 0 },
1958 { 0x00AD, 0xAD, 0 },
1959 { 0x00B0, 0xB0, 0 },
1960 { 0x00B4, 0xB4, 0 },
1961 { 0x00B8, 0xB8, 0 },
1962 { 0x00C1, 0xC1, 0 },
1963 { 0x00C2, 0xC2, 0 },
1964 { 0x00C4, 0xC4, 0 },
1965 { 0x00C7, 0xC7, 0 },
1966 { 0x00C9, 0xC9, 0 },
1967 { 0x00CB, 0xCB, 0 },
1968 { 0x00CD, 0xCD, 0 },
1969 { 0x00CE, 0xCE, 0 },
1970 { 0x00D3, 0xD3, 0 },
1971 { 0x00D4, 0xD4, 0 },
1972 { 0x00D6, 0xD6, 0 },
1973 { 0x00D7, 0xD7, 0 },
1974 { 0x00DA, 0xDA, 0 },
1975 { 0x00DC, 0xDC, 0 },
1976 { 0x00DD, 0xDD, 0 },
1977 { 0x00DF, 0xDF, 0 },
1978 { 0x00E1, 0xE1, 0 },
1979 { 0x00E2, 0xE2, 0 },
1980 { 0x00E4, 0xE4, 0 },
1981 { 0x00E7, 0xE7, 0 },
1982 { 0x00E9, 0xE9, 0 },
1983 { 0x00EB, 0xEB, 0 },
1984 { 0x00ED, 0xED, 0 },
1985 { 0x00EE, 0xEE, 0 },
1986 { 0x00F3, 0xF3, 0 },
1987 { 0x00F4, 0xF4, 0 },
1988 { 0x00F6, 0xF6, 0 },
1989 { 0x00F7, 0xF7, 0 },
1990 { 0x00FA, 0xFA, 0 },
1991 { 0x00FC, 0xFC, 0 },
1992 { 0x00FD, 0xFD, 0 },
1993 { 0x0102, 0xC3, 0 },
1994 { 0x0103, 0xE3, 0 },
1995 { 0x0104, 0xA1, 0 },
1996 { 0x0105, 0xB1, 0 },
1997 { 0x0106, 0xC6, 0 },
1998 { 0x0107, 0xE6, 0 },
1999 { 0x010C, 0xC8, 0 },
2000 { 0x010D, 0xE8, 0 },
2001 { 0x010E, 0xCF, 0 },
2002 { 0x010F, 0xEF, 0 },
2003 { 0x0110, 0xD0, 0 },
2004 { 0x0111, 0xF0, 0 },
2005 { 0x0118, 0xCA, 0 },
2006 { 0x0119, 0xEA, 0 },
2007 { 0x011A, 0xCC, 0 },
2008 { 0x011B, 0xEC, 0 },
2009 { 0x0139, 0xC5, 0 },
2010 { 0x013A, 0xE5, 0 },
2011 { 0x013D, 0xA5, 0 },
2012 { 0x013E, 0xB5, 0 },
2013 { 0x0141, 0xA3, 0 },
2014 { 0x0142, 0xB3, 0 },
2015 { 0x0143, 0xD1, 0 },
2016 { 0x0144, 0xF1, 0 },
2017 { 0x0147, 0xD2, 0 },
2018 { 0x0148, 0xF2, 0 },
2019 { 0x0150, 0xD5, 0 },
2020 { 0x0151, 0xF5, 0 },
2021 { 0x0154, 0xC0, 0 },
2022 { 0x0155, 0xE0, 0 },
2023 { 0x0158, 0xD8, 0 },
2024 { 0x0159, 0xF8, 0 },
2025 { 0x015A, 0xA6, 0 },
2026 { 0x015B, 0xB6, 0 },
2027 { 0x015E, 0xAA, 0 },
2028 { 0x015F, 0xBA, 0 },
2029 { 0x0160, 0xA9, 0 },
2030 { 0x0161, 0xB9, 0 },
2031 { 0x0162, 0xDE, 0 },
2032 { 0x0163, 0xFE, 0 },
2033 { 0x0164, 0xAB, 0 },
2034 { 0x0165, 0xBB, 0 },
2035 { 0x016E, 0xD9, 0 },
2036 { 0x016F, 0xF9, 0 },
2037 { 0x0170, 0xDB, 0 },
2038 { 0x0171, 0xFB, 0 },
2039 { 0x0179, 0xAC, 0 },
2040 { 0x017A, 0xBC, 0 },
2041 { 0x017B, 0xAF, 0 },
2042 { 0x017C, 0xBF, 0 },
2043 { 0x017D, 0xAE, 0 },
2044 { 0x017E, 0xBE, 0 },
2045 { 0x02C7, 0xB7, 0 },
2046 { 0x02D8, 0xA2, 0 },
2047 { 0x02D9, 0xFF, 0 },
2048 { 0x02DB, 0xB2, 0 },
2052 /* ----------------------------------------------------------------------- */
2054 static ImplByteConvertData const aImplISO88592ByteCvtData =
2056 aImplISO88592ToUniTab,
2057 aImpl8090SameToUniTab,
2058 ISO88592UNI_START, ISO88592UNI_END,
2059 SAME8090UNI_START, SAME8090UNI_END,
2060 aImpl8090SameToCharTab,
2062 aImplISO88592ToCharTabEx,
2063 SAME8090CHAR_START, SAME8090CHAR_END,
2064 NOTABCHAR_START, NOTABCHAR_END,
2065 ISO88592TOCHARTABEX_COUNT
2068 /* ----------------------------------------------------------------------- */
2070 static ImplTextEncodingData const aImplISO88592TextEncodingData
2071 = { { &aImplISO88592ByteCvtData,
2086 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2087 /* SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
2089 /* ======================================================================= */
2092 /* Latin3 (Esperanto, Maltese, Turkish) */
2093 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2094 /* Convert-Tables: mappings/iso8859/8859-3.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2095 /* Last-Changes from us: */
2097 #define ISO88593UNI_START 0xA0
2098 #define ISO88593UNI_END 0xFF
2099 static sal_uInt16 const aImplISO88593ToUniTab[ISO88593UNI_END - ISO88593UNI_START + 1] =
2101 /* 0 1 2 3 4 5 6 7 */
2102 /* 8 9 A B C D E F */
2103 0x00A0, 0x0126, 0x02D8, 0x00A3, 0x00A4, 0, 0x0124, 0x00A7, /* 0xA0 */
2104 0x00A8, 0x0130, 0x015E, 0x011E, 0x0134, 0x00AD, 0, 0x017B, /* 0xA0 */
2105 0x00B0, 0x0127, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x0125, 0x00B7, /* 0xB0 */
2106 0x00B8, 0x0131, 0x015F, 0x011F, 0x0135, 0x00BD, 0, 0x017C, /* 0xB0 */
2107 0x00C0, 0x00C1, 0x00C2, 0, 0x00C4, 0x010A, 0x0108, 0x00C7, /* 0xC0 */
2108 0x00C8, 0x00C9, 0x00CA, 0x00CB, 0x00CC, 0x00CD, 0x00CE, 0x00CF, /* 0xC0 */
2109 0, 0x00D1, 0x00D2, 0x00D3, 0x00D4, 0x0120, 0x00D6, 0x00D7, /* 0xD0 */
2110 0x011C, 0x00D9, 0x00DA, 0x00DB, 0x00DC, 0x016C, 0x015C, 0x00DF, /* 0xD0 */
2111 0x00E0, 0x00E1, 0x00E2, 0, 0x00E4, 0x010B, 0x0109, 0x00E7, /* 0xE0 */
2112 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x00EC, 0x00ED, 0x00EE, 0x00EF, /* 0xE0 */
2113 0, 0x00F1, 0x00F2, 0x00F3, 0x00F4, 0x0121, 0x00F6, 0x00F7, /* 0xF0 */
2114 0x011D, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x016D, 0x015D, 0x02D9 /* 0xF0 */
2117 /* ----------------------------------------------------------------------- */
2119 #define ISO88593TOCHARTABEX_COUNT 89
2120 static ImplUniCharTabData const aImplISO88593ToCharTabEx[ISO88593TOCHARTABEX_COUNT] =
2122 { 0x00A0, 0xA0, 0 },
2123 { 0x00A3, 0xA3, 0 },
2124 { 0x00A4, 0xA4, 0 },
2125 { 0x00A7, 0xA7, 0 },
2126 { 0x00A8, 0xA8, 0 },
2127 { 0x00AD, 0xAD, 0 },
2128 { 0x00B0, 0xB0, 0 },
2129 { 0x00B2, 0xB2, 0 },
2130 { 0x00B3, 0xB3, 0 },
2131 { 0x00B4, 0xB4, 0 },
2132 { 0x00B5, 0xB5, 0 },
2133 { 0x00B7, 0xB7, 0 },
2134 { 0x00B8, 0xB8, 0 },
2135 { 0x00BD, 0xBD, 0 },
2136 { 0x00C0, 0xC0, 0 },
2137 { 0x00C1, 0xC1, 0 },
2138 { 0x00C2, 0xC2, 0 },
2139 { 0x00C4, 0xC4, 0 },
2140 { 0x00C7, 0xC7, 0 },
2141 { 0x00C8, 0xC8, 0 },
2142 { 0x00C9, 0xC9, 0 },
2143 { 0x00CA, 0xCA, 0 },
2144 { 0x00CB, 0xCB, 0 },
2145 { 0x00CC, 0xCC, 0 },
2146 { 0x00CD, 0xCD, 0 },
2147 { 0x00CE, 0xCE, 0 },
2148 { 0x00CF, 0xCF, 0 },
2149 { 0x00D1, 0xD1, 0 },
2150 { 0x00D2, 0xD2, 0 },
2151 { 0x00D3, 0xD3, 0 },
2152 { 0x00D4, 0xD4, 0 },
2153 { 0x00D6, 0xD6, 0 },
2154 { 0x00D7, 0xD7, 0 },
2155 { 0x00D9, 0xD9, 0 },
2156 { 0x00DA, 0xDA, 0 },
2157 { 0x00DB, 0xDB, 0 },
2158 { 0x00DC, 0xDC, 0 },
2159 { 0x00DF, 0xDF, 0 },
2160 { 0x00E0, 0xE0, 0 },
2161 { 0x00E1, 0xE1, 0 },
2162 { 0x00E2, 0xE2, 0 },
2163 { 0x00E4, 0xE4, 0 },
2164 { 0x00E7, 0xE7, 0 },
2165 { 0x00E8, 0xE8, 0 },
2166 { 0x00E9, 0xE9, 0 },
2167 { 0x00EA, 0xEA, 0 },
2168 { 0x00EB, 0xEB, 0 },
2169 { 0x00EC, 0xEC, 0 },
2170 { 0x00ED, 0xED, 0 },
2171 { 0x00EE, 0xEE, 0 },
2172 { 0x00EF, 0xEF, 0 },
2173 { 0x00F1, 0xF1, 0 },
2174 { 0x00F2, 0xF2, 0 },
2175 { 0x00F3, 0xF3, 0 },
2176 { 0x00F4, 0xF4, 0 },
2177 { 0x00F6, 0xF6, 0 },
2178 { 0x00F7, 0xF7, 0 },
2179 { 0x00F9, 0xF9, 0 },
2180 { 0x00FA, 0xFA, 0 },
2181 { 0x00FB, 0xFB, 0 },
2182 { 0x00FC, 0xFC, 0 },
2183 { 0x0108, 0xC6, 0 },
2184 { 0x0109, 0xE6, 0 },
2185 { 0x010A, 0xC5, 0 },
2186 { 0x010B, 0xE5, 0 },
2187 { 0x011C, 0xD8, 0 },
2188 { 0x011D, 0xF8, 0 },
2189 { 0x011E, 0xAB, 0 },
2190 { 0x011F, 0xBB, 0 },
2191 { 0x0120, 0xD5, 0 },
2192 { 0x0121, 0xF5, 0 },
2193 { 0x0124, 0xA6, 0 },
2194 { 0x0125, 0xB6, 0 },
2195 { 0x0126, 0xA1, 0 },
2196 { 0x0127, 0xB1, 0 },
2197 { 0x0130, 0xA9, 0 },
2198 { 0x0131, 0xB9, 0 },
2199 { 0x0134, 0xAC, 0 },
2200 { 0x0135, 0xBC, 0 },
2201 { 0x015C, 0xDE, 0 },
2202 { 0x015D, 0xFE, 0 },
2203 { 0x015E, 0xAA, 0 },
2204 { 0x015F, 0xBA, 0 },
2205 { 0x016C, 0xDD, 0 },
2206 { 0x016D, 0xFD, 0 },
2207 { 0x017B, 0xAF, 0 },
2208 { 0x017C, 0xBF, 0 },
2209 { 0x02D8, 0xA2, 0 },
2213 /* ----------------------------------------------------------------------- */
2215 static ImplByteConvertData const aImplISO88593ByteCvtData =
2217 aImplISO88593ToUniTab,
2218 aImpl8090SameToUniTab,
2219 ISO88593UNI_START, ISO88593UNI_END,
2220 SAME8090UNI_START, SAME8090UNI_END,
2221 aImpl8090SameToCharTab,
2223 aImplISO88593ToCharTabEx,
2224 SAME8090CHAR_START, SAME8090CHAR_END,
2225 NOTABCHAR_START, NOTABCHAR_END,
2226 ISO88593TOCHARTABEX_COUNT
2229 /* ----------------------------------------------------------------------- */
2231 static ImplTextEncodingData const aImplISO88593TextEncodingData
2232 = { { &aImplISO88593ByteCvtData,
2247 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2248 /* SCRIPT_LATIN, pc code page 850 */
2250 /* ======================================================================= */
2253 /* Latin4 (Estonian, Latvian, Lithuanian) */
2254 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2255 /* Convert-Tables: mappings/iso8859/8859-4.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2256 /* Last-Changes from us: */
2258 #define ISO88594UNI_START 0xA0
2259 #define ISO88594UNI_END 0xFF
2260 static sal_uInt16 const aImplISO88594ToUniTab[ISO88594UNI_END - ISO88594UNI_START + 1] =
2262 /* 0 1 2 3 4 5 6 7 */
2263 /* 8 9 A B C D E F */
2264 0x00A0, 0x0104, 0x0138, 0x0156, 0x00A4, 0x0128, 0x013B, 0x00A7, /* 0xA0 */
2265 0x00A8, 0x0160, 0x0112, 0x0122, 0x0166, 0x00AD, 0x017D, 0x00AF, /* 0xA0 */
2266 0x00B0, 0x0105, 0x02DB, 0x0157, 0x00B4, 0x0129, 0x013C, 0x02C7, /* 0xB0 */
2267 0x00B8, 0x0161, 0x0113, 0x0123, 0x0167, 0x014A, 0x017E, 0x014B, /* 0xB0 */
2268 0x0100, 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x012E, /* 0xC0 */
2269 0x010C, 0x00C9, 0x0118, 0x00CB, 0x0116, 0x00CD, 0x00CE, 0x012A, /* 0xC0 */
2270 0x0110, 0x0145, 0x014C, 0x0136, 0x00D4, 0x00D5, 0x00D6, 0x00D7, /* 0xD0 */
2271 0x00D8, 0x0172, 0x00DA, 0x00DB, 0x00DC, 0x0168, 0x016A, 0x00DF, /* 0xD0 */
2272 0x0101, 0x00E1, 0x00E2, 0x00E3, 0x00E4, 0x00E5, 0x00E6, 0x012F, /* 0xE0 */
2273 0x010D, 0x00E9, 0x0119, 0x00EB, 0x0117, 0x00ED, 0x00EE, 0x012B, /* 0xE0 */
2274 0x0111, 0x0146, 0x014D, 0x0137, 0x00F4, 0x00F5, 0x00F6, 0x00F7, /* 0xF0 */
2275 0x00F8, 0x0173, 0x00FA, 0x00FB, 0x00FC, 0x0169, 0x016B, 0x02D9 /* 0xF0 */
2278 /* ----------------------------------------------------------------------- */
2280 #define ISO88594TOCHARTABEX_COUNT 96
2281 static ImplUniCharTabData const aImplISO88594ToCharTabEx[ISO88594TOCHARTABEX_COUNT] =
2283 { 0x00A0, 0xA0, 0 },
2284 { 0x00A4, 0xA4, 0 },
2285 { 0x00A7, 0xA7, 0 },
2286 { 0x00A8, 0xA8, 0 },
2287 { 0x00AD, 0xAD, 0 },
2288 { 0x00AF, 0xAF, 0 },
2289 { 0x00B0, 0xB0, 0 },
2290 { 0x00B4, 0xB4, 0 },
2291 { 0x00B8, 0xB8, 0 },
2292 { 0x00C1, 0xC1, 0 },
2293 { 0x00C2, 0xC2, 0 },
2294 { 0x00C3, 0xC3, 0 },
2295 { 0x00C4, 0xC4, 0 },
2296 { 0x00C5, 0xC5, 0 },
2297 { 0x00C6, 0xC6, 0 },
2298 { 0x00C9, 0xC9, 0 },
2299 { 0x00CB, 0xCB, 0 },
2300 { 0x00CD, 0xCD, 0 },
2301 { 0x00CE, 0xCE, 0 },
2302 { 0x00D4, 0xD4, 0 },
2303 { 0x00D5, 0xD5, 0 },
2304 { 0x00D6, 0xD6, 0 },
2305 { 0x00D7, 0xD7, 0 },
2306 { 0x00D8, 0xD8, 0 },
2307 { 0x00DA, 0xDA, 0 },
2308 { 0x00DB, 0xDB, 0 },
2309 { 0x00DC, 0xDC, 0 },
2310 { 0x00DF, 0xDF, 0 },
2311 { 0x00E1, 0xE1, 0 },
2312 { 0x00E2, 0xE2, 0 },
2313 { 0x00E3, 0xE3, 0 },
2314 { 0x00E4, 0xE4, 0 },
2315 { 0x00E5, 0xE5, 0 },
2316 { 0x00E6, 0xE6, 0 },
2317 { 0x00E9, 0xE9, 0 },
2318 { 0x00EB, 0xEB, 0 },
2319 { 0x00ED, 0xED, 0 },
2320 { 0x00EE, 0xEE, 0 },
2321 { 0x00F4, 0xF4, 0 },
2322 { 0x00F5, 0xF5, 0 },
2323 { 0x00F6, 0xF6, 0 },
2324 { 0x00F7, 0xF7, 0 },
2325 { 0x00F8, 0xF8, 0 },
2326 { 0x00FA, 0xFA, 0 },
2327 { 0x00FB, 0xFB, 0 },
2328 { 0x00FC, 0xFC, 0 },
2329 { 0x0100, 0xC0, 0 },
2330 { 0x0101, 0xE0, 0 },
2331 { 0x0104, 0xA1, 0 },
2332 { 0x0105, 0xB1, 0 },
2333 { 0x010C, 0xC8, 0 },
2334 { 0x010D, 0xE8, 0 },
2335 { 0x0110, 0xD0, 0 },
2336 { 0x0111, 0xF0, 0 },
2337 { 0x0112, 0xAA, 0 },
2338 { 0x0113, 0xBA, 0 },
2339 { 0x0116, 0xCC, 0 },
2340 { 0x0117, 0xEC, 0 },
2341 { 0x0118, 0xCA, 0 },
2342 { 0x0119, 0xEA, 0 },
2343 { 0x0122, 0xAB, 0 },
2344 { 0x0123, 0xBB, 0 },
2345 { 0x0128, 0xA5, 0 },
2346 { 0x0129, 0xB5, 0 },
2347 { 0x012A, 0xCF, 0 },
2348 { 0x012B, 0xEF, 0 },
2349 { 0x012E, 0xC7, 0 },
2350 { 0x012F, 0xE7, 0 },
2351 { 0x0136, 0xD3, 0 },
2352 { 0x0137, 0xF3, 0 },
2353 { 0x0138, 0xA2, 0 },
2354 { 0x013B, 0xA6, 0 },
2355 { 0x013C, 0xB6, 0 },
2356 { 0x0145, 0xD1, 0 },
2357 { 0x0146, 0xF1, 0 },
2358 { 0x014A, 0xBD, 0 },
2359 { 0x014B, 0xBF, 0 },
2360 { 0x014C, 0xD2, 0 },
2361 { 0x014D, 0xF2, 0 },
2362 { 0x0156, 0xA3, 0 },
2363 { 0x0157, 0xB3, 0 },
2364 { 0x0160, 0xA9, 0 },
2365 { 0x0161, 0xB9, 0 },
2366 { 0x0166, 0xAC, 0 },
2367 { 0x0167, 0xBC, 0 },
2368 { 0x0168, 0xDD, 0 },
2369 { 0x0169, 0xFD, 0 },
2370 { 0x016A, 0xDE, 0 },
2371 { 0x016B, 0xFE, 0 },
2372 { 0x0172, 0xD9, 0 },
2373 { 0x0173, 0xF9, 0 },
2374 { 0x017D, 0xAE, 0 },
2375 { 0x017E, 0xBE, 0 },
2376 { 0x02C7, 0xB7, 0 },
2377 { 0x02D9, 0xFF, 0 },
2381 /* ----------------------------------------------------------------------- */
2383 static ImplByteConvertData const aImplISO88594ByteCvtData =
2385 aImplISO88594ToUniTab,
2386 aImpl8090SameToUniTab,
2387 ISO88594UNI_START, ISO88594UNI_END,
2388 SAME8090UNI_START, SAME8090UNI_END,
2389 aImpl8090SameToCharTab,
2391 aImplISO88594ToCharTabEx,
2392 SAME8090CHAR_START, SAME8090CHAR_END,
2393 NOTABCHAR_START, NOTABCHAR_END,
2394 ISO88594TOCHARTABEX_COUNT
2397 /* ----------------------------------------------------------------------- */
2399 static ImplTextEncodingData const aImplISO88594TextEncodingData
2400 = { { &aImplISO88594ByteCvtData,
2415 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2416 /* SCRIPT_BALTIC, pc code page 775, mac encoding 29 (?) */
2418 /* ======================================================================= */
2421 /* Unix Standard for Cyrillic */
2422 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2423 /* Convert-Tables: mappings/iso8859/8859-5.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2424 /* Last-Changes from us: */
2426 #define ISO88595UNI_START 0xA0
2427 #define ISO88595UNI_END 0xFF
2428 static sal_uInt16 const aImplISO88595ToUniTab[ISO88595UNI_END - ISO88595UNI_START + 1] =
2430 /* 0 1 2 3 4 5 6 7 */
2431 /* 8 9 A B C D E F */
2432 0x00A0, 0x0401, 0x0402, 0x0403, 0x0404, 0x0405, 0x0406, 0x0407, /* 0xA0 */
2433 0x0408, 0x0409, 0x040A, 0x040B, 0x040C, 0x00AD, 0x040E, 0x040F, /* 0xA0 */
2434 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0xB0 */
2435 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0xB0 */
2436 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0xC0 */
2437 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0xC0 */
2438 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xD0 */
2439 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xD0 */
2440 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xE0 */
2441 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F, /* 0xE0 */
2442 0x2116, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, /* 0xF0 */
2443 0x0458, 0x0459, 0x045A, 0x045B, 0x045C, 0x00A7, 0x045E, 0x045F /* 0xF0 */
2446 /* ----------------------------------------------------------------------- */
2448 #define ISO88595CHAR_START 0x0401
2449 #define ISO88595CHAR_END 0x045F
2450 static sal_uChar const aImplISO88595ToCharTab[ISO88595CHAR_END - ISO88595CHAR_START + 1] =
2452 /* 0 1 2 3 4 5 6 7 */
2453 /* 8 9 A B C D E F */
2454 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, /* 0x0400 */
2455 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0, 0xAE, 0xAF, /* 0x0400 */
2456 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, /* 0x0410 */
2457 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, /* 0x0410 */
2458 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0420 */
2459 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0420 */
2460 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x0430 */
2461 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, /* 0x0430 */
2462 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0440 */
2463 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0440 */
2464 0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x0450 */
2465 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0, 0xFE, 0xFF, /* 0x0450 */
2468 /* ----------------------------------------------------------------------- */
2470 #define ISO88595TOCHARTABEX_COUNT 4
2471 static ImplUniCharTabData const aImplISO88595ToCharTabEx[ISO88595TOCHARTABEX_COUNT] =
2473 { 0x00A0, 0xA0, 0 },
2474 { 0x00A7, 0xFD, 0 },
2475 { 0x00AD, 0xAD, 0 },
2479 /* ----------------------------------------------------------------------- */
2481 static ImplByteConvertData const aImplISO88595ByteCvtData =
2483 aImplISO88595ToUniTab,
2484 aImpl8090SameToUniTab,
2485 ISO88595UNI_START, ISO88595UNI_END,
2486 SAME8090UNI_START, SAME8090UNI_END,
2487 aImplISO88595ToCharTab,
2488 aImpl8090SameToCharTab,
2489 aImplISO88595ToCharTabEx,
2490 ISO88595CHAR_START, ISO88595CHAR_END,
2491 SAME8090CHAR_START, SAME8090CHAR_END,
2492 ISO88595TOCHARTABEX_COUNT
2495 /* ----------------------------------------------------------------------- */
2497 static ImplTextEncodingData const aImplISO88595TextEncodingData
2498 = { { &aImplISO88595ByteCvtData,
2513 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2514 /* SCRIPT_CYRILLIC, pc code page 866 (855?), mac encoding 7 */
2516 /* ======================================================================= */
2519 /* Unix Standard for Greek */
2520 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2521 /* Convert-Tables: mappings/iso8859/8859-7.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2522 /* Last-Changes from us: */
2524 #define ISO88597UNI_START 0xA0
2525 #define ISO88597UNI_END 0xFF
2526 static sal_uInt16 const aImplISO88597ToUniTab[ISO88597UNI_END - ISO88597UNI_START + 1] =
2528 /* 0 1 2 3 4 5 6 7 */
2529 /* 8 9 A B C D E F */
2530 0x00A0, 0x2018, 0x2019, 0x00A3, 0, 0, 0x00A6, 0x00A7, /* 0xA0 */
2531 0x00A8, 0x00A9, 0, 0x00AB, 0x00AC, 0x00AD, 0, 0x2015, /* 0xA0 */
2532 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x0384, 0x0385, 0x0386, 0x00B7, /* 0xB0 */
2533 0x0388, 0x0389, 0x038A, 0x00BB, 0x038C, 0x00BD, 0x038E, 0x038F, /* 0xB0 */
2534 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, /* 0xC0 */
2535 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, /* 0xC0 */
2536 0x03A0, 0x03A1, 0, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7, /* 0xD0 */
2537 0x03A8, 0x03A9, 0x03AA, 0x03AB, 0x03AC, 0x03AD, 0x03AE, 0x03AF, /* 0xD0 */
2538 0x03B0, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, /* 0xE0 */
2539 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, /* 0xE0 */
2540 0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, /* 0xF0 */
2541 0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03CC, 0x03CD, 0x03CE, 0 /* 0xF0 */
2544 /* ----------------------------------------------------------------------- */
2546 #define ISO88597CHAR_START 0x0384
2547 #define ISO88597CHAR_END 0x03CE
2548 static sal_uChar const aImplISO88597ToCharTab[ISO88597CHAR_END - ISO88597CHAR_START + 1] =
2550 /* 0 1 2 3 4 5 6 7 */
2551 /* 8 9 A B C D E F */
2552 0xB4, 0xB5, 0xB6, 0, /* 0x0380 */
2553 0xB8, 0xB9, 0xBA, 0, 0xBC, 0, 0xBE, 0xBF, /* 0x0380 */
2554 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0390 */
2555 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0390 */
2556 0xD0, 0xD1, 0, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x03A0 */
2557 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, /* 0x03A0 */
2558 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x03B0 */
2559 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x03B0 */
2560 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x03C0 */
2561 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE /* 0x03C0 */
2564 /* ----------------------------------------------------------------------- */
2566 #define ISO88597TOCHARTABEX_COUNT 19
2567 static ImplUniCharTabData const aImplISO88597ToCharTabEx[ISO88597TOCHARTABEX_COUNT] =
2569 { 0x00A0, 0xA0, 0 },
2570 { 0x00A3, 0xA3, 0 },
2571 { 0x00A6, 0xA6, 0 },
2572 { 0x00A7, 0xA7, 0 },
2573 { 0x00A8, 0xA8, 0 },
2574 { 0x00A9, 0xA9, 0 },
2575 { 0x00AB, 0xAB, 0 },
2576 { 0x00AC, 0xAC, 0 },
2577 { 0x00AD, 0xAD, 0 },
2578 { 0x00B0, 0xB0, 0 },
2579 { 0x00B1, 0xB1, 0 },
2580 { 0x00B2, 0xB2, 0 },
2581 { 0x00B3, 0xB3, 0 },
2582 { 0x00B7, 0xB7, 0 },
2583 { 0x00BB, 0xBB, 0 },
2584 { 0x00BD, 0xBD, 0 },
2585 { 0x2015, 0xAF, 0 },
2586 { 0x2018, 0xA1, 0 },
2590 /* ----------------------------------------------------------------------- */
2592 static ImplByteConvertData const aImplISO88597ByteCvtData =
2594 aImplISO88597ToUniTab,
2595 aImpl8090SameToUniTab,
2596 ISO88597UNI_START, ISO88597UNI_END,
2597 SAME8090UNI_START, SAME8090UNI_END,
2598 aImplISO88597ToCharTab,
2599 aImpl8090SameToCharTab,
2600 aImplISO88597ToCharTabEx,
2601 ISO88597CHAR_START, ISO88597CHAR_END,
2602 SAME8090CHAR_START, SAME8090CHAR_END,
2603 ISO88597TOCHARTABEX_COUNT
2606 /* ----------------------------------------------------------------------- */
2608 static ImplTextEncodingData const aImplISO88597TextEncodingData
2609 = { { &aImplISO88597ByteCvtData,
2624 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2625 /* SCRIPT_GREEK, pc code page 869, mac encoding 6 */
2627 /* ======================================================================= */
2630 /* Latin5 (Turkish) */
2631 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2632 /* Convert-Tables: mappings/iso8859/8859-9.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2633 /* Last-Changes from us: */
2635 #define ISO88599UNI_START 0xA0
2636 #define ISO88599UNI_END 0xFF
2637 static sal_uInt16 const aImplISO88599ToUniTab[ISO88599UNI_END - ISO88599UNI_START + 1] =
2639 /* 0 1 2 3 4 5 6 7 */
2640 /* 8 9 A B C D E F */
2641 0x00A0, 0x00A1, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
2642 0x00A8, 0x00A9, 0x00AA, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */
2643 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
2644 0x00B8, 0x00B9, 0x00BA, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00BF, /* 0xB0 */
2645 0x00C0, 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x00C7, /* 0xC0 */
2646 0x00C8, 0x00C9, 0x00CA, 0x00CB, 0x00CC, 0x00CD, 0x00CE, 0x00CF, /* 0xC0 */
2647 0x011E, 0x00D1, 0x00D2, 0x00D3, 0x00D4, 0x00D5, 0x00D6, 0x00D7, /* 0xD0 */
2648 0x00D8, 0x00D9, 0x00DA, 0x00DB, 0x00DC, 0x0130, 0x015E, 0x00DF, /* 0xD0 */
2649 0x00E0, 0x00E1, 0x00E2, 0x00E3, 0x00E4, 0x00E5, 0x00E6, 0x00E7, /* 0xE0 */
2650 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x00EC, 0x00ED, 0x00EE, 0x00EF, /* 0xE0 */
2651 0x011F, 0x00F1, 0x00F2, 0x00F3, 0x00F4, 0x00F5, 0x00F6, 0x00F7, /* 0xF0 */
2652 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x0131, 0x015F, 0x00FF /* 0xF0 */
2655 /* ----------------------------------------------------------------------- */
2657 #define ISO88599CHAR_START 0x00A0
2658 #define ISO88599CHAR_END 0x00FF
2659 static sal_uChar const aImplISO88599ToCharTab[ISO88599CHAR_END - ISO88599CHAR_START + 1] =
2661 /* 0 1 2 3 4 5 6 7 */
2662 /* 8 9 A B C D E F */
2663 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, /* 0x00A0 */
2664 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, /* 0x00A0 */
2665 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, /* 0x00B0 */
2666 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, /* 0x00B0 */
2667 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x00C0 */
2668 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x00C0 */
2669 0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x00D0 */
2670 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0, 0, 0xDF, /* 0x00D0 */
2671 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x00E0 */
2672 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x00E0 */
2673 0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x00F0 */
2674 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0, 0, 0xFF /* 0x00F0 */
2677 /* ----------------------------------------------------------------------- */
2679 #define ISO88599TOCHARTABEX_COUNT 6
2680 static ImplUniCharTabData const aImplISO88599ToCharTabEx[ISO88599TOCHARTABEX_COUNT] =
2682 { 0x011E, 0xD0, 0 },
2683 { 0x011F, 0xF0, 0 },
2684 { 0x0130, 0xDD, 0 },
2685 { 0x0131, 0xFD, 0 },
2686 { 0x015E, 0xDE, 0 },
2690 /* ----------------------------------------------------------------------- */
2692 static ImplByteConvertData const aImplISO88599ByteCvtData =
2694 aImplISO88599ToUniTab,
2695 aImpl8090SameToUniTab,
2696 ISO88599UNI_START, ISO88599UNI_END,
2697 SAME8090UNI_START, SAME8090UNI_END,
2698 aImplISO88599ToCharTab,
2699 aImpl8090SameToCharTab,
2700 aImplISO88599ToCharTabEx,
2701 ISO88599CHAR_START, ISO88599CHAR_END,
2702 SAME8090CHAR_START, SAME8090CHAR_END,
2703 ISO88599TOCHARTABEX_COUNT
2706 /* ----------------------------------------------------------------------- */
2708 static ImplTextEncodingData const aImplISO88599TextEncodingData
2709 = { { &aImplISO88599ByteCvtData,
2724 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2725 /* SCRIPT_TURKISH, pc code page 857, mac encoding 35 */
2727 /* ======================================================================= */
2731 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2732 /* Convert-Tables: mappings/iso8859/8859-10.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2733 /* Last-Changes from us: */
2735 #define ISO885910UNI_START 0xA0
2736 #define ISO885910UNI_END 0xFF
2737 static sal_uInt16 const aImplISO885910ToUniTab[ISO885910UNI_END - ISO885910UNI_START + 1] =
2739 /* 0 1 2 3 4 5 6 7 */
2740 /* 8 9 A B C D E F */
2741 0x00A0, 0x0104, 0x0112, 0x0122, 0x012A, 0x0128, 0x0136, 0x00A7, /* 0xA0 */
2742 0x013B, 0x0110, 0x0160, 0x0166, 0x017D, 0x00AD, 0x016A, 0x014A, /* 0xA0 */
2743 0x00B0, 0x0105, 0x0113, 0x0123, 0x012B, 0x0129, 0x0137, 0x00B7, /* 0xB0 */
2744 0x013C, 0x0111, 0x0161, 0x0167, 0x017E, 0x2015, 0x016B, 0x014B, /* 0xB0 */
2745 0x0100, 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x012E, /* 0xC0 */
2746 0x010C, 0x00C9, 0x0118, 0x00CB, 0x0116, 0x00CD, 0x00CE, 0x00CF, /* 0xC0 */
2747 0x00D0, 0x0145, 0x014C, 0x00D3, 0x00D4, 0x00D5, 0x00D6, 0x0168, /* 0xD0 */
2748 0x00D8, 0x0172, 0x00DA, 0x00DB, 0x00DC, 0x00DD, 0x00DE, 0x00DF, /* 0xD0 */
2749 0x0101, 0x00E1, 0x00E2, 0x00E3, 0x00E4, 0x00E5, 0x00E6, 0x012F, /* 0xE0 */
2750 0x010D, 0x00E9, 0x0119, 0x00EB, 0x0117, 0x00ED, 0x00EE, 0x00EF, /* 0xE0 */
2751 0x00F0, 0x0146, 0x014D, 0x00F3, 0x00F4, 0x00F5, 0x00F6, 0x0169, /* 0xF0 */
2752 0x00F8, 0x0173, 0x00FA, 0x00FB, 0x00FC, 0x00FD, 0x00FE, 0x0138 /* 0xF0 */
2755 /* ----------------------------------------------------------------------- */
2757 #define ISO885910CHAR_START 0x00C1
2758 #define ISO885910CHAR_END 0x00FE
2759 static sal_uChar const aImplISO885910ToCharTab[ISO885910CHAR_END - ISO885910CHAR_START + 1] =
2761 /* 0 1 2 3 4 5 6 7 */
2762 /* 8 9 A B C D E F */
2763 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0, /* 0x00C0 */
2764 0, 0xC9, 0, 0xCB, 0, 0xCD, 0xCE, 0xCF, /* 0x00C0 */
2765 0xD0, 0, 0, 0xD3, 0xD4, 0xD5, 0xD6, 0, /* 0x00D0 */
2766 0xD8, 0, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, /* 0x00D0 */
2767 0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0, /* 0x00E0 */
2768 0, 0xE9, 0, 0xEB, 0, 0xED, 0xEE, 0xEF, /* 0x00E0 */
2769 0xF0, 0, 0, 0xF3, 0xF4, 0xF5, 0xF6, 0, /* 0x00F0 */
2770 0xF8, 0, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE /* 0x00F0 */
2773 /* ----------------------------------------------------------------------- */
2775 #define ISO885910TOCHARTABEX_COUNT 51
2776 static ImplUniCharTabData const aImplISO885910ToCharTabEx[ISO885910TOCHARTABEX_COUNT] =
2778 { 0x00A0, 0xA0, 0 },
2779 { 0x00A7, 0xA7, 0 },
2780 { 0x00AD, 0xAD, 0 },
2781 { 0x00B0, 0xB0, 0 },
2782 { 0x00B7, 0xB7, 0 },
2783 { 0x0100, 0xC0, 0 },
2784 { 0x0101, 0xE0, 0 },
2785 { 0x0104, 0xA1, 0 },
2786 { 0x0105, 0xB1, 0 },
2787 { 0x010C, 0xC8, 0 },
2788 { 0x010D, 0xE8, 0 },
2789 { 0x0110, 0xA9, 0 },
2790 { 0x0111, 0xB9, 0 },
2791 { 0x0112, 0xA2, 0 },
2792 { 0x0113, 0xB2, 0 },
2793 { 0x0116, 0xCC, 0 },
2794 { 0x0117, 0xEC, 0 },
2795 { 0x0118, 0xCA, 0 },
2796 { 0x0119, 0xEA, 0 },
2797 { 0x0122, 0xA3, 0 },
2798 { 0x0123, 0xB3, 0 },
2799 { 0x0128, 0xA5, 0 },
2800 { 0x0129, 0xB5, 0 },
2801 { 0x012A, 0xA4, 0 },
2802 { 0x012B, 0xB4, 0 },
2803 { 0x012E, 0xC7, 0 },
2804 { 0x012F, 0xE7, 0 },
2805 { 0x0136, 0xA6, 0 },
2806 { 0x0137, 0xB6, 0 },
2807 { 0x0138, 0xFF, 0 },
2808 { 0x013B, 0xA8, 0 },
2809 { 0x013C, 0xB8, 0 },
2810 { 0x0145, 0xD1, 0 },
2811 { 0x0146, 0xF1, 0 },
2812 { 0x014A, 0xAF, 0 },
2813 { 0x014B, 0xBF, 0 },
2814 { 0x014C, 0xD2, 0 },
2815 { 0x014D, 0xF2, 0 },
2816 { 0x0160, 0xAA, 0 },
2817 { 0x0161, 0xBA, 0 },
2818 { 0x0166, 0xAB, 0 },
2819 { 0x0167, 0xBB, 0 },
2820 { 0x0168, 0xD7, 0 },
2821 { 0x0169, 0xF7, 0 },
2822 { 0x016A, 0xAE, 0 },
2823 { 0x016B, 0xBE, 0 },
2824 { 0x0172, 0xD9, 0 },
2825 { 0x0173, 0xF9, 0 },
2826 { 0x017D, 0xAC, 0 },
2827 { 0x017E, 0xBC, 0 },
2831 /* ----------------------------------------------------------------------- */
2833 static ImplByteConvertData const aImplISO885910ByteCvtData =
2835 aImplISO885910ToUniTab,
2836 aImpl8090SameToUniTab,
2837 ISO885910UNI_START, ISO885910UNI_END,
2838 SAME8090UNI_START, SAME8090UNI_END,
2839 aImplISO885910ToCharTab,
2840 aImpl8090SameToCharTab,
2841 aImplISO885910ToCharTabEx,
2842 ISO885910CHAR_START, ISO885910CHAR_END,
2843 SAME8090CHAR_START, SAME8090CHAR_END,
2844 ISO885910TOCHARTABEX_COUNT
2847 /* ----------------------------------------------------------------------- */
2849 static ImplTextEncodingData const aImplISO885910TextEncodingData
2850 = { { &aImplISO885910ByteCvtData,
2865 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
2866 /* SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
2868 /* ======================================================================= */
2872 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
2873 /* Convert-Tables: mappings/iso8859/8859-13.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
2874 /* Last-Changes from us: */
2876 #define ISO885913UNI_START 0xA0
2877 #define ISO885913UNI_END 0xFF
2878 static sal_uInt16 const aImplISO885913ToUniTab[ISO885913UNI_END - ISO885913UNI_START + 1] =
2880 /* 0 1 2 3 4 5 6 7 */
2881 /* 8 9 A B C D E F */
2882 0x00A0, 0x201D, 0x00A2, 0x00A3, 0x00A4, 0x201E, 0x00A6, 0x00A7, /* 0xA0 */
2883 0x00D8, 0x00A9, 0x0156, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00C6, /* 0xA0 */
2884 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x201C, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
2885 0x00F8, 0x00B9, 0x0157, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00E6, /* 0xB0 */
2886 0x0104, 0x012E, 0x0100, 0x0106, 0x00C4, 0x00C5, 0x0118, 0x0112, /* 0xC0 */
2887 0x010C, 0x00C9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012A, 0x013B, /* 0xC0 */
2888 0x0160, 0x0143, 0x0145, 0x00D3, 0x014C, 0x00D5, 0x00D6, 0x00D7, /* 0xD0 */
2889 0x0172, 0x0141, 0x015A, 0x016A, 0x00DC, 0x017B, 0x017D, 0x00DF, /* 0xD0 */
2890 0x0105, 0x012F, 0x0101, 0x0107, 0x00E4, 0x00E5, 0x0119, 0x0113, /* 0xE0 */
2891 0x010D, 0x00E9, 0x017A, 0x0117, 0x0123, 0x0137, 0x012B, 0x013C, /* 0xE0 */
2892 0x0161, 0x0144, 0x0146, 0x00F3, 0x014D, 0x00F5, 0x00F6, 0x00F7, /* 0xF0 */
2893 0x0173, 0x0142, 0x015B, 0x016B, 0x00FC, 0x017C, 0x017E, 0x2019 /* 0xF0 */
2896 /* ----------------------------------------------------------------------- */
2898 #define ISO885913TOCHARTABEX_COUNT 96
2899 static ImplUniCharTabData const aImplISO885913ToCharTabEx[ISO885913TOCHARTABEX_COUNT] =
2901 { 0x00A0, 0xA0, 0 },
2902 { 0x00A2, 0xA2, 0 },
2903 { 0x00A3, 0xA3, 0 },
2904 { 0x00A4, 0xA4, 0 },
2905 { 0x00A6, 0xA6, 0 },
2906 { 0x00A7, 0xA7, 0 },
2907 { 0x00A9, 0xA9, 0 },
2908 { 0x00AB, 0xAB, 0 },
2909 { 0x00AC, 0xAC, 0 },
2910 { 0x00AD, 0xAD, 0 },
2911 { 0x00AE, 0xAE, 0 },
2912 { 0x00B0, 0xB0, 0 },
2913 { 0x00B1, 0xB1, 0 },
2914 { 0x00B2, 0xB2, 0 },
2915 { 0x00B3, 0xB3, 0 },
2916 { 0x00B5, 0xB5, 0 },
2917 { 0x00B6, 0xB6, 0 },
2918 { 0x00B7, 0xB7, 0 },
2919 { 0x00B9, 0xB9, 0 },
2920 { 0x00BB, 0xBB, 0 },
2921 { 0x00BC, 0xBC, 0 },
2922 { 0x00BD, 0xBD, 0 },
2923 { 0x00BE, 0xBE, 0 },
2924 { 0x00C4, 0xC4, 0 },
2925 { 0x00C5, 0xC5, 0 },
2926 { 0x00C6, 0xAF, 0 },
2927 { 0x00C9, 0xC9, 0 },
2928 { 0x00D3, 0xD3, 0 },
2929 { 0x00D5, 0xD5, 0 },
2930 { 0x00D6, 0xD6, 0 },
2931 { 0x00D7, 0xD7, 0 },
2932 { 0x00D8, 0xA8, 0 },
2933 { 0x00DC, 0xDC, 0 },
2934 { 0x00DF, 0xDF, 0 },
2935 { 0x00E4, 0xE4, 0 },
2936 { 0x00E5, 0xE5, 0 },
2937 { 0x00E6, 0xBF, 0 },
2938 { 0x00E9, 0xE9, 0 },
2939 { 0x00F3, 0xF3, 0 },
2940 { 0x00F5, 0xF5, 0 },
2941 { 0x00F6, 0xF6, 0 },
2942 { 0x00F7, 0xF7, 0 },
2943 { 0x00F8, 0xB8, 0 },
2944 { 0x00FC, 0xFC, 0 },
2945 { 0x0100, 0xC2, 0 },
2946 { 0x0101, 0xE2, 0 },
2947 { 0x0104, 0xC0, 0 },
2948 { 0x0105, 0xE0, 0 },
2949 { 0x0106, 0xC3, 0 },
2950 { 0x0107, 0xE3, 0 },
2951 { 0x010C, 0xC8, 0 },
2952 { 0x010D, 0xE8, 0 },
2953 { 0x0112, 0xC7, 0 },
2954 { 0x0113, 0xE7, 0 },
2955 { 0x0116, 0xCB, 0 },
2956 { 0x0117, 0xEB, 0 },
2957 { 0x0118, 0xC6, 0 },
2958 { 0x0119, 0xE6, 0 },
2959 { 0x0122, 0xCC, 0 },
2960 { 0x0123, 0xEC, 0 },
2961 { 0x012A, 0xCE, 0 },
2962 { 0x012B, 0xEE, 0 },
2963 { 0x012E, 0xC1, 0 },
2964 { 0x012F, 0xE1, 0 },
2965 { 0x0136, 0xCD, 0 },
2966 { 0x0137, 0xED, 0 },
2967 { 0x013B, 0xCF, 0 },
2968 { 0x013C, 0xEF, 0 },
2969 { 0x0141, 0xD9, 0 },
2970 { 0x0142, 0xF9, 0 },
2971 { 0x0143, 0xD1, 0 },
2972 { 0x0144, 0xF1, 0 },
2973 { 0x0145, 0xD2, 0 },
2974 { 0x0146, 0xF2, 0 },
2975 { 0x014C, 0xD4, 0 },
2976 { 0x014D, 0xF4, 0 },
2977 { 0x0156, 0xAA, 0 },
2978 { 0x0157, 0xBA, 0 },
2979 { 0x015A, 0xDA, 0 },
2980 { 0x015B, 0xFA, 0 },
2981 { 0x0160, 0xD0, 0 },
2982 { 0x0161, 0xF0, 0 },
2983 { 0x016A, 0xDB, 0 },
2984 { 0x016B, 0xFB, 0 },
2985 { 0x0172, 0xD8, 0 },
2986 { 0x0173, 0xF8, 0 },
2987 { 0x0179, 0xCA, 0 },
2988 { 0x017A, 0xEA, 0 },
2989 { 0x017B, 0xDD, 0 },
2990 { 0x017C, 0xFD, 0 },
2991 { 0x017D, 0xDE, 0 },
2992 { 0x017E, 0xFE, 0 },
2993 { 0x2019, 0xFF, 0 },
2994 { 0x201C, 0xB4, 0 },
2995 { 0x201D, 0xA1, 0 },
2999 /* ----------------------------------------------------------------------- */
3001 static ImplByteConvertData const aImplISO885913ByteCvtData =
3003 aImplISO885913ToUniTab,
3004 aImpl8090SameToUniTab,
3005 ISO885913UNI_START, ISO885913UNI_END,
3006 SAME8090UNI_START, SAME8090UNI_END,
3007 aImpl8090SameToCharTab,
3009 aImplISO885913ToCharTabEx,
3010 SAME8090CHAR_START, SAME8090CHAR_END,
3011 NOTABCHAR_START, NOTABCHAR_END,
3012 ISO885913TOCHARTABEX_COUNT
3015 /* ----------------------------------------------------------------------- */
3017 static ImplTextEncodingData const aImplISO885913TextEncodingData
3018 = { { &aImplISO885913ByteCvtData,
3033 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
3034 /* SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
3036 /* ======================================================================= */
3038 /* APPLE-CentEuro */
3039 /* Apple CharSet for Eastern Europa (Polish, Czech, Slovak, Hungarian, Estonian, Latvian, Lithuanian) */
3040 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3041 /* die wir aber nicht beruecksichtigen */
3042 /* Convert-Tables: mappings/vendors/apple/centeuro.txt from 02/05/98 */
3043 /* Last-Changes from us: */
3045 #define APPLECENTEUROUNI_START 0x80
3046 #define APPLECENTEUROUNI_END 0xFF
3047 static sal_uInt16 const aImplAPPLECENTEUROToUniTab[APPLECENTEUROUNI_END - APPLECENTEUROUNI_START + 1] =
3049 /* 0 1 2 3 4 5 6 7 */
3050 /* 8 9 A B C D E F */
3051 0x00C4, 0x0100, 0x0101, 0x00C9, 0x0104, 0x00D6, 0x00DC, 0x00E1, /* 0x80 */
3052 0x0105, 0x010C, 0x00E4, 0x010D, 0x0106, 0x0107, 0x00E9, 0x0179, /* 0x80 */
3053 0x017A, 0x010E, 0x00ED, 0x010F, 0x0112, 0x0113, 0x0116, 0x00F3, /* 0x90 */
3054 0x0117, 0x00F4, 0x00F6, 0x00F5, 0x00FA, 0x011A, 0x011B, 0x00FC, /* 0x90 */
3055 0x2020, 0x00B0, 0x0118, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x00DF, /* 0xA0 */
3056 0x00AE, 0x00A9, 0x2122, 0x0119, 0x00A8, 0x2260, 0x0123, 0x012E, /* 0xA0 */
3057 0x012F, 0x012A, 0x2264, 0x2265, 0x012B, 0x0136, 0x2202, 0x2211, /* 0xB0 */
3058 0x0142, 0x013B, 0x013C, 0x013D, 0x013E, 0x0139, 0x013A, 0x0145, /* 0xB0 */
3059 0x0146, 0x0143, 0x00AC, 0x221A, 0x0144, 0x0147, 0x2206, 0x00AB, /* 0xC0 */
3060 0x00BB, 0x2026, 0x00A0, 0x0148, 0x0150, 0x00D5, 0x0151, 0x014C, /* 0xC0 */
3061 0x2013, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x25CA, /* 0xD0 */
3062 0x014D, 0x0154, 0x0155, 0x0158, 0x2039, 0x203A, 0x0159, 0x0156, /* 0xD0 */
3063 0x0157, 0x0160, 0x201A, 0x201E, 0x0161, 0x015A, 0x015B, 0x00C1, /* 0xE0 */
3064 0x0164, 0x0165, 0x00CD, 0x017D, 0x017E, 0x016A, 0x00D3, 0x00D4, /* 0xE0 */
3065 0x016B, 0x016E, 0x00DA, 0x016F, 0x0170, 0x0171, 0x0172, 0x0173, /* 0xF0 */
3066 0x00DD, 0x00FD, 0x0137, 0x017B, 0x0141, 0x017C, 0x0122, 0x02C7 /* 0xF0 */
3069 /* ----------------------------------------------------------------------- */
3071 #define APPLECENTEUROTOCHARTABEX_COUNT 128
3072 static ImplUniCharTabData const aImplAPPLECENTEUROToCharTabEx[APPLECENTEUROTOCHARTABEX_COUNT] =
3074 { 0x00A0, 0xCA, 0 },
3075 { 0x00A3, 0xA3, 0 },
3076 { 0x00A7, 0xA4, 0 },
3077 { 0x00A8, 0xAC, 0 },
3078 { 0x00A9, 0xA9, 0 },
3079 { 0x00AB, 0xC7, 0 },
3080 { 0x00AC, 0xC2, 0 },
3081 { 0x00AE, 0xA8, 0 },
3082 { 0x00B0, 0xA1, 0 },
3083 { 0x00B6, 0xA6, 0 },
3084 { 0x00BB, 0xC8, 0 },
3085 { 0x00C1, 0xE7, 0 },
3086 { 0x00C4, 0x80, 0 },
3087 { 0x00C9, 0x83, 0 },
3088 { 0x00CD, 0xEA, 0 },
3089 { 0x00D3, 0xEE, 0 },
3090 { 0x00D4, 0xEF, 0 },
3091 { 0x00D5, 0xCD, 0 },
3092 { 0x00D6, 0x85, 0 },
3093 { 0x00DA, 0xF2, 0 },
3094 { 0x00DC, 0x86, 0 },
3095 { 0x00DD, 0xF8, 0 },
3096 { 0x00DF, 0xA7, 0 },
3097 { 0x00E1, 0x87, 0 },
3098 { 0x00E4, 0x8A, 0 },
3099 { 0x00E9, 0x8E, 0 },
3100 { 0x00ED, 0x92, 0 },
3101 { 0x00F3, 0x97, 0 },
3102 { 0x00F4, 0x99, 0 },
3103 { 0x00F5, 0x9B, 0 },
3104 { 0x00F6, 0x9A, 0 },
3105 { 0x00F7, 0xD6, 0 },
3106 { 0x00FA, 0x9C, 0 },
3107 { 0x00FC, 0x9F, 0 },
3108 { 0x00FD, 0xF9, 0 },
3109 { 0x0100, 0x81, 0 },
3110 { 0x0101, 0x82, 0 },
3111 { 0x0104, 0x84, 0 },
3112 { 0x0105, 0x88, 0 },
3113 { 0x0106, 0x8C, 0 },
3114 { 0x0107, 0x8D, 0 },
3115 { 0x010C, 0x89, 0 },
3116 { 0x010D, 0x8B, 0 },
3117 { 0x010E, 0x91, 0 },
3118 { 0x010F, 0x93, 0 },
3119 { 0x0112, 0x94, 0 },
3120 { 0x0113, 0x95, 0 },
3121 { 0x0116, 0x96, 0 },
3122 { 0x0117, 0x98, 0 },
3123 { 0x0118, 0xA2, 0 },
3124 { 0x0119, 0xAB, 0 },
3125 { 0x011A, 0x9D, 0 },
3126 { 0x011B, 0x9E, 0 },
3127 { 0x0122, 0xFE, 0 },
3128 { 0x0123, 0xAE, 0 },
3129 { 0x012A, 0xB1, 0 },
3130 { 0x012B, 0xB4, 0 },
3131 { 0x012E, 0xAF, 0 },
3132 { 0x012F, 0xB0, 0 },
3133 { 0x0136, 0xB5, 0 },
3134 { 0x0137, 0xFA, 0 },
3135 { 0x0139, 0xBD, 0 },
3136 { 0x013A, 0xBE, 0 },
3137 { 0x013B, 0xB9, 0 },
3138 { 0x013C, 0xBA, 0 },
3139 { 0x013D, 0xBB, 0 },
3140 { 0x013E, 0xBC, 0 },
3141 { 0x0141, 0xFC, 0 },
3142 { 0x0142, 0xB8, 0 },
3143 { 0x0143, 0xC1, 0 },
3144 { 0x0144, 0xC4, 0 },
3145 { 0x0145, 0xBF, 0 },
3146 { 0x0146, 0xC0, 0 },
3147 { 0x0147, 0xC5, 0 },
3148 { 0x0148, 0xCB, 0 },
3149 { 0x014C, 0xCF, 0 },
3150 { 0x014D, 0xD8, 0 },
3151 { 0x0150, 0xCC, 0 },
3152 { 0x0151, 0xCE, 0 },
3153 { 0x0154, 0xD9, 0 },
3154 { 0x0155, 0xDA, 0 },
3155 { 0x0156, 0xDF, 0 },
3156 { 0x0157, 0xE0, 0 },
3157 { 0x0158, 0xDB, 0 },
3158 { 0x0159, 0xDE, 0 },
3159 { 0x015A, 0xE5, 0 },
3160 { 0x015B, 0xE6, 0 },
3161 { 0x0160, 0xE1, 0 },
3162 { 0x0161, 0xE4, 0 },
3163 { 0x0164, 0xE8, 0 },
3164 { 0x0165, 0xE9, 0 },
3165 { 0x016A, 0xED, 0 },
3166 { 0x016B, 0xF0, 0 },
3167 { 0x016E, 0xF1, 0 },
3168 { 0x016F, 0xF3, 0 },
3169 { 0x0170, 0xF4, 0 },
3170 { 0x0171, 0xF5, 0 },
3171 { 0x0172, 0xF6, 0 },
3172 { 0x0173, 0xF7, 0 },
3173 { 0x0179, 0x8F, 0 },
3174 { 0x017A, 0x90, 0 },
3175 { 0x017B, 0xFB, 0 },
3176 { 0x017C, 0xFD, 0 },
3177 { 0x017D, 0xEB, 0 },
3178 { 0x017E, 0xEC, 0 },
3179 { 0x02C7, 0xFF, 0 },
3180 { 0x2013, 0xD0, 0 },
3181 { 0x2014, 0xD1, 0 },
3182 { 0x2018, 0xD4, 0 },
3183 { 0x2019, 0xD5, 0 },
3184 { 0x201A, 0xE2, 0 },
3185 { 0x201C, 0xD2, 0 },
3186 { 0x201D, 0xD3, 0 },
3187 { 0x201E, 0xE3, 0 },
3188 { 0x2020, 0xA0, 0 },
3189 { 0x2022, 0xA5, 0 },
3190 { 0x2026, 0xC9, 0 },
3191 { 0x2039, 0xDC, 0 },
3192 { 0x203A, 0xDD, 0 },
3193 { 0x2122, 0xAA, 0 },
3194 { 0x2202, 0xB6, 0 },
3195 { 0x2206, 0xC6, 0 },
3196 { 0x2211, 0xB7, 0 },
3197 { 0x221A, 0xC3, 0 },
3198 { 0x2260, 0xAD, 0 },
3199 { 0x2264, 0xB2, 0 },
3200 { 0x2265, 0xB3, 0 },
3204 /* ----------------------------------------------------------------------- */
3206 static ImplByteConvertData const aImplAPPLECENTEUROByteCvtData =
3208 aImplAPPLECENTEUROToUniTab,
3210 APPLECENTEUROUNI_START, APPLECENTEUROUNI_END,
3211 NOTABUNI_START, NOTABUNI_END,
3214 aImplAPPLECENTEUROToCharTabEx,
3215 NOTABCHAR_START, NOTABCHAR_END,
3216 NOTABCHAR_START, NOTABCHAR_END,
3217 APPLECENTEUROTOCHARTABEX_COUNT
3220 /* ----------------------------------------------------------------------- */
3222 static ImplTextEncodingData const aImplAPPLECENTEUROTextEncodingData
3223 = { { &aImplAPPLECENTEUROByteCvtData,
3238 RTL_TEXTENCODING_INFO_ASCII };
3239 /* MAC, SCRIPT_EASTEUROPE, pc code page 852, mac encoding 29 */
3241 /* ======================================================================= */
3243 /* APPLE-Croatian */
3244 /* Standard Apple CharSet for Croatian */
3245 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3246 /* die wir aber nicht beruecksichtigen */
3247 /* Convert-Tables: mappings/vendors/apple/croatien.txt from 02/05/98 */
3248 /* Last-Changes from us: */
3250 #define APPLECROATIANUNI_START 0x80
3251 #define APPLECROATIANUNI_END 0xFF
3252 static sal_uInt16 const aImplAPPLECROATIANToUniTab[APPLECROATIANUNI_END - APPLECROATIANUNI_START + 1] =
3254 /* 0 1 2 3 4 5 6 7 */
3255 /* 8 9 A B C D E F */
3256 0x00C4, 0x00C5, 0x00C7, 0x00C9, 0x00D1, 0x00D6, 0x00DC, 0x00E1, /* 0x80 */
3257 0x00E0, 0x00E2, 0x00E4, 0x00E3, 0x00E5, 0x00E7, 0x00E9, 0x00E8, /* 0x80 */
3258 0x00EA, 0x00EB, 0x00ED, 0x00EC, 0x00EE, 0x00EF, 0x00F1, 0x00F3, /* 0x90 */
3259 0x00F2, 0x00F4, 0x00F6, 0x00F5, 0x00FA, 0x00F9, 0x00FB, 0x00FC, /* 0x90 */
3260 0x2020, 0x00B0, 0x00A2, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x00DF, /* 0xA0 */
3261 0x00AE, 0x0160, 0x2122, 0x00B4, 0x00A8, 0x2260, 0x017D, 0x00D8, /* 0xA0 */
3262 0x221E, 0x00B1, 0x2264, 0x2265, 0x2206, 0x00B5, 0x2202, 0x2211, /* 0xB0 */
3263 0x220F, 0x0161, 0x222B, 0x00AA, 0x00BA, 0x03A9, 0x017E, 0x00F8, /* 0xB0 */
3264 0x00BF, 0x00A1, 0x00AC, 0x221A, 0x0192, 0x2248, 0x0106, 0x00AB, /* 0xC0 */
3265 0x010C, 0x2026, 0x00A0, 0x00C0, 0x00C3, 0x00D5, 0x0152, 0x0153, /* 0xC0 */
3266 0x0110, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x25CA, /* 0xD0 */
3267 0xF8FF, 0x00A9, 0x2044, 0x00A4, 0x2039, 0x203A, 0x00C6, 0x00BB, /* 0xD0 */
3268 0x2013, 0x00B7, 0x201A, 0x201E, 0x2030, 0x00C2, 0x0107, 0x00C1, /* 0xE0 */
3269 0x010D, 0x00C8, 0x00CD, 0x00CE, 0x00CF, 0x00CC, 0x00D3, 0x00D4, /* 0xE0 */
3270 0x0111, 0x00D2, 0x00DA, 0x00DB, 0x00D9, 0x0131, 0x02C6, 0x02DC, /* 0xF0 */
3271 0x00AF, 0x03C0, 0x00CB, 0x02DA, 0x00B8, 0x00CA, 0x00E6, 0x02C7 /* 0xF0 */
3274 /* ----------------------------------------------------------------------- */
3276 #define APPLECROATIANCHAR_START 0x00A0
3277 #define APPLECROATIANCHAR_END 0x00FC
3278 static sal_uChar const aImplAPPLECROATIANToCharTab[APPLECROATIANCHAR_END - APPLECROATIANCHAR_START + 1] =
3280 /* 0 1 2 3 4 5 6 7 */
3281 /* 8 9 A B C D E F */
3282 0xCA, 0xC1, 0xA2, 0xA3, 0xDB, 0, 0, 0xA4, /* 0x00A0 */
3283 0xAC, 0xD9, 0xBB, 0xC7, 0xC2, 0, 0xA8, 0xF8, /* 0x00A0 */
3284 0xA1, 0xB1, 0, 0, 0xAB, 0xB5, 0xA6, 0xE1, /* 0x00B0 */
3285 0xFC, 0, 0xBC, 0xDF, 0, 0, 0, 0xC0, /* 0x00B0 */
3286 0xCB, 0xE7, 0xE5, 0xCC, 0x80, 0x81, 0xDE, 0x82, /* 0x00C0 */
3287 0xE9, 0x83, 0xFD, 0xFA, 0xED, 0xEA, 0xEB, 0xEC, /* 0x00C0 */
3288 0, 0x84, 0xF1, 0xEE, 0xEF, 0xCD, 0x85, 0, /* 0x00D0 */
3289 0xAF, 0xF4, 0xF2, 0xF3, 0x86, 0, 0, 0xA7, /* 0x00D0 */
3290 0x88, 0x87, 0x89, 0x8B, 0x8A, 0x8C, 0xFE, 0x8D, /* 0x00E0 */
3291 0x8F, 0x8E, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, /* 0x00E0 */
3292 0, 0x96, 0x98, 0x97, 0x99, 0x9B, 0x9A, 0xD6, /* 0x00F0 */
3293 0xBF, 0x9D, 0x9C, 0x9E, 0x9F /* 0x00F0 */
3296 /* ----------------------------------------------------------------------- */
3298 #define APPLECROATIANTOCHARTABEX_COUNT 49
3299 static ImplUniCharTabData const aImplAPPLECROATIANToCharTabEx[APPLECROATIANTOCHARTABEX_COUNT] =
3301 { 0x0106, 0xC6, 0 },
3302 { 0x0107, 0xE6, 0 },
3303 { 0x010C, 0xC8, 0 },
3304 { 0x010D, 0xE8, 0 },
3305 { 0x0110, 0xD0, 0 },
3306 { 0x0111, 0xF0, 0 },
3307 { 0x0131, 0xF5, 0 },
3308 { 0x0152, 0xCE, 0 },
3309 { 0x0153, 0xCF, 0 },
3310 { 0x0160, 0xA9, 0 },
3311 { 0x0161, 0xB9, 0 },
3312 { 0x017D, 0xAE, 0 },
3313 { 0x017E, 0xBE, 0 },
3314 { 0x0192, 0xC4, 0 },
3315 { 0x02C6, 0xF6, 0 },
3316 { 0x02C7, 0xFF, 0 },
3317 { 0x02DA, 0xFB, 0 },
3318 { 0x02DC, 0xF7, 0 },
3319 { 0x03A9, 0xBD, 0 },
3320 { 0x03C0, 0xF9, 0 },
3321 { 0x2013, 0xE0, 0 },
3322 { 0x2014, 0xD1, 0 },
3323 { 0x2018, 0xD4, 0 },
3324 { 0x2019, 0xD5, 0 },
3325 { 0x201A, 0xE2, 0 },
3326 { 0x201C, 0xD2, 0 },
3327 { 0x201D, 0xD3, 0 },
3328 { 0x201E, 0xE3, 0 },
3329 { 0x2020, 0xA0, 0 },
3330 { 0x2022, 0xA5, 0 },
3331 { 0x2026, 0xC9, 0 },
3332 { 0x2030, 0xE4, 0 },
3333 { 0x2039, 0xDC, 0 },
3334 { 0x203A, 0xDD, 0 },
3335 { 0x2044, 0xDA, 0 },
3336 { 0x2122, 0xAA, 0 },
3337 { 0x2202, 0xB6, 0 },
3338 { 0x2206, 0xB4, 0 },
3339 { 0x220F, 0xB8, 0 },
3340 { 0x2211, 0xB7, 0 },
3341 { 0x221A, 0xC3, 0 },
3342 { 0x221E, 0xB0, 0 },
3343 { 0x222B, 0xBA, 0 },
3344 { 0x2248, 0xC5, 0 },
3345 { 0x2260, 0xAD, 0 },
3346 { 0x2264, 0xB2, 0 },
3347 { 0x2265, 0xB3, 0 },
3348 { 0x25CA, 0xD7, 0 },
3352 /* ----------------------------------------------------------------------- */
3354 static ImplByteConvertData const aImplAPPLECROATIANByteCvtData =
3356 aImplAPPLECROATIANToUniTab,
3358 APPLECROATIANUNI_START, APPLECROATIANUNI_END,
3359 NOTABUNI_START, NOTABUNI_END,
3360 aImplAPPLECROATIANToCharTab,
3362 aImplAPPLECROATIANToCharTabEx,
3363 APPLECROATIANCHAR_START, APPLECROATIANCHAR_END,
3364 NOTABCHAR_START, NOTABCHAR_END,
3365 APPLECROATIANTOCHARTABEX_COUNT
3368 /* ----------------------------------------------------------------------- */
3370 static ImplTextEncodingData const aImplAPPLECROATIANTextEncodingData
3371 = { { &aImplAPPLECROATIANByteCvtData,
3386 RTL_TEXTENCODING_INFO_ASCII };
3387 /* MAC, SCRIPT_EASTEUROPE, pc code page 852, mac encoding 36 */
3389 /* ======================================================================= */
3391 /* APPLE-Cyrillic */
3392 /* Apple CharSet for Cyrillic */
3393 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3394 /* die wir aber nicht beruecksichtigen */
3395 /* Convert-Tables: mappings/vendors/apple/cyrillic.txt from 02/15/98 */
3396 /* Last-Changes from us: */
3398 #define APPLECYRILLICUNI_START 0x80
3399 #define APPLECYRILLICUNI_END 0xFF
3400 static sal_uInt16 const aImplAPPLECYRILLICToUniTab[APPLECYRILLICUNI_END - APPLECYRILLICUNI_START + 1] =
3402 /* 0 1 2 3 4 5 6 7 */
3403 /* 8 9 A B C D E F */
3404 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0x80 */
3405 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0x80 */
3406 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0x90 */
3407 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0x90 */
3408 0x2020, 0x00B0, 0x00A2, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x0406, /* 0xA0 */
3409 0x00AE, 0x00A9, 0x2122, 0x0402, 0x0452, 0x2260, 0x0403, 0x0453, /* 0xA0 */
3410 0x221E, 0x00B1, 0x2264, 0x2265, 0x0456, 0x00B5, 0x2202, 0x0408, /* 0xB0 */
3411 0x0404, 0x0454, 0x0407, 0x0457, 0x0409, 0x0459, 0x040A, 0x045A, /* 0xB0 */
3412 0x0458, 0x0405, 0x00AC, 0x221A, 0x0192, 0x2248, 0x2206, 0x00AB, /* 0xC0 */
3413 0x00BB, 0x2026, 0x00A0, 0x040B, 0x045B, 0x040C, 0x045C, 0x0455, /* 0xC0 */
3414 0x2013, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x201E, /* 0xD0 */
3415 0x040E, 0x045E, 0x040F, 0x045F, 0x2116, 0x0401, 0x0451, 0x044F, /* 0xD0 */
3416 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xE0 */
3417 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xE0 */
3418 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xF0 */
3419 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x00A4 /* 0xF0 */
3422 /* ----------------------------------------------------------------------- */
3424 #define APPLECYRILLICCHAR_START 0x0401
3425 #define APPLECYRILLICCHAR_END 0x045F
3426 static sal_uChar const aImplAPPLECYRILLICToCharTab[APPLECYRILLICCHAR_END - APPLECYRILLICCHAR_START + 1] =
3428 /* 0 1 2 3 4 5 6 7 */
3429 /* 8 9 A B C D E F */
3430 0xDD, 0xAB, 0xAE, 0xB8, 0xC1, 0xA7, 0xBA, /* 0x0400 */
3431 0xB7, 0xBC, 0xBE, 0xCB, 0xCD, 0, 0xD8, 0xDA, /* 0x0400 */
3432 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x0410 */
3433 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, /* 0x0410 */
3434 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x0420 */
3435 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, /* 0x0420 */
3436 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0430 */
3437 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0430 */
3438 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x0440 */
3439 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xDF, /* 0x0440 */
3440 0, 0xDE, 0xAC, 0xAF, 0xB9, 0xCF, 0xB4, 0xBB, /* 0x0450 */
3441 0xC0, 0xBD, 0xBF, 0xCC, 0xCE, 0, 0xD9, 0xDB, /* 0x0450 */
3444 /* ----------------------------------------------------------------------- */
3446 #define APPLECYRILLICTOCHARTABEX_COUNT 36
3447 static ImplUniCharTabData const aImplAPPLECYRILLICToCharTabEx[APPLECYRILLICTOCHARTABEX_COUNT] =
3449 { 0x00A0, 0xCA, 0 },
3450 { 0x00A2, 0xA2, 0 },
3451 { 0x00A3, 0xA3, 0 },
3452 { 0x00A4, 0xFF, 0 },
3453 { 0x00A7, 0xA4, 0 },
3454 { 0x00A9, 0xA9, 0 },
3455 { 0x00AB, 0xC7, 0 },
3456 { 0x00AC, 0xC2, 0 },
3457 { 0x00AE, 0xA8, 0 },
3458 { 0x00B0, 0xA1, 0 },
3459 { 0x00B1, 0xB1, 0 },
3460 { 0x00B5, 0xB5, 0 },
3461 { 0x00B6, 0xA6, 0 },
3462 { 0x00BB, 0xC8, 0 },
3463 { 0x00F7, 0xD6, 0 },
3464 { 0x0192, 0xC4, 0 },
3465 { 0x2013, 0xD0, 0 },
3466 { 0x2014, 0xD1, 0 },
3467 { 0x2018, 0xD4, 0 },
3468 { 0x2019, 0xD5, 0 },
3469 { 0x201C, 0xD2, 0 },
3470 { 0x201D, 0xD3, 0 },
3471 { 0x201E, 0xD7, 0 },
3472 { 0x2020, 0xA0, 0 },
3473 { 0x2022, 0xA5, 0 },
3474 { 0x2026, 0xC9, 0 },
3475 { 0x2116, 0xDC, 0 },
3476 { 0x2122, 0xAA, 0 },
3477 { 0x2202, 0xB6, 0 },
3478 { 0x2206, 0xC6, 0 },
3479 { 0x221A, 0xC3, 0 },
3480 { 0x221E, 0xB0, 0 },
3481 { 0x2248, 0xC5, 0 },
3482 { 0x2260, 0xAD, 0 },
3483 { 0x2264, 0xB2, 0 },
3487 /* ----------------------------------------------------------------------- */
3489 static ImplByteConvertData const aImplAPPLECYRILLICByteCvtData =
3491 aImplAPPLECYRILLICToUniTab,
3493 APPLECYRILLICUNI_START, APPLECYRILLICUNI_END,
3494 NOTABUNI_START, NOTABUNI_END,
3495 aImplAPPLECYRILLICToCharTab,
3497 aImplAPPLECYRILLICToCharTabEx,
3498 APPLECYRILLICCHAR_START, APPLECYRILLICCHAR_END,
3499 NOTABCHAR_START, NOTABCHAR_END,
3500 APPLECYRILLICTOCHARTABEX_COUNT
3503 /* ----------------------------------------------------------------------- */
3505 static ImplTextEncodingData const aImplAPPLECYRILLICTextEncodingData
3506 = { { &aImplAPPLECYRILLICByteCvtData,
3521 RTL_TEXTENCODING_INFO_ASCII };
3522 /* MAC, SCRIPT_CYRILLIC, pc code page 866 (855?), mac encoding 7 */
3524 /* ======================================================================= */
3527 /* Apple CharSet for Greek */
3528 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3529 /* die wir aber nicht beruecksichtigen */
3530 /* Convert-Tables: mappings/vendors/apple/roman.txt from 08/18/98 */
3531 /* Last-Changes from us: */
3533 #define APPLEGREEKUNI_START 0x80
3534 #define APPLEGREEKUNI_END 0xFF
3535 static sal_uInt16 const aImplAPPLEGREEKToUniTab[APPLEGREEKUNI_END - APPLEGREEKUNI_START + 1] =
3537 /* 0 1 2 3 4 5 6 7 */
3538 /* 8 9 A B C D E F */
3539 0x00C4, 0x00B9, 0x00B2, 0x00C9, 0x00B3, 0x00D6, 0x00DC, 0x0385, /* 0x80 */
3540 0x00E0, 0x00E2, 0x00E4, 0x0384, 0x00A8, 0x00E7, 0x00E9, 0x00E8, /* 0x80 */
3541 0x00EA, 0x00EB, 0x00A3, 0x2122, 0x00EE, 0x00EF, 0x2022, 0x00BD, /* 0x90 */
3542 0x2030, 0x00F4, 0x00F6, 0x00A6, 0x00AD, 0x00F9, 0x00FB, 0x00FC, /* 0x90 */
3543 0x2020, 0x0393, 0x0394, 0x0398, 0x039B, 0x039E, 0x03A0, 0x00DF, /* 0xA0 */
3544 0x00AE, 0x00A9, 0x03A3, 0x03AA, 0x00A7, 0x2260, 0x00B0, 0x00B7, /* 0xA0 */
3545 0x0391, 0x00B1, 0x2264, 0x2265, 0x00A5, 0x0392, 0x0395, 0x0396, /* 0xB0 */
3546 0x0397, 0x0399, 0x039A, 0x039C, 0x03A6, 0x03AB, 0x03A8, 0x03A9, /* 0xB0 */
3547 0x03AC, 0x039D, 0x00AC, 0x039F, 0x03A1, 0x2248, 0x03A4, 0x00AB, /* 0xC0 */
3548 0x00BB, 0x2026, 0x00A0, 0x03A5, 0x03A7, 0x0386, 0x0388, 0x0153, /* 0xC0 */
3549 0x2013, 0x2015, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x0389, /* 0xD0 */
3550 0x038A, 0x038C, 0x038E, 0x03AD, 0x03AE, 0x03AF, 0x03CC, 0x038F, /* 0xD0 */
3551 0x03CD, 0x03B1, 0x03B2, 0x03C8, 0x03B4, 0x03B5, 0x03C6, 0x03B3, /* 0xE0 */
3552 0x03B7, 0x03B9, 0x03BE, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BF, /* 0xE0 */
3553 0x03C0, 0x03CE, 0x03C1, 0x03C3, 0x03C4, 0x03B8, 0x03C9, 0x03C2, /* 0xF0 */
3554 0x03C7, 0x03C5, 0x03B6, 0x03CA, 0x03CB, 0x0390, 0x03B0, 0xF8A0 /* 0xF0 */
3557 /* ----------------------------------------------------------------------- */
3559 #define APPLEGREEKCHAR_START 0x0384
3560 #define APPLEGREEKCHAR_END 0x03CE
3561 static sal_uChar const aImplAPPLEGREEKToCharTab[APPLEGREEKCHAR_END - APPLEGREEKCHAR_START + 1] =
3563 /* 0 1 2 3 4 5 6 7 */
3564 /* 8 9 A B C D E F */
3565 0x8B, 0x87, 0xCD, 0, /* 0x0380 */
3566 0xCE, 0xD7, 0xD8, 0, 0xD9, 0, 0xDA, 0xDF, /* 0x0380 */
3567 0xFD, 0xB0, 0xB5, 0xA1, 0xA2, 0xB6, 0xB7, 0xB8, /* 0x0390 */
3568 0xA3, 0xB9, 0xBA, 0xA4, 0xBB, 0xC1, 0xA5, 0xC3, /* 0x0390 */
3569 0xA6, 0xC4, 0, 0xAA, 0xC6, 0xCB, 0xBC, 0xCC, /* 0x03A0 */
3570 0xBE, 0xBF, 0xAB, 0xBD, 0xC0, 0xDB, 0xDC, 0xDD, /* 0x03A0 */
3571 0xFE, 0xE1, 0xE2, 0xE7, 0xE4, 0xE5, 0xFA, 0xE8, /* 0x03B0 */
3572 0xF5, 0xE9, 0xEB, 0xEC, 0xED, 0xEE, 0xEA, 0xEF, /* 0x03B0 */
3573 0xF0, 0xF2, 0xF7, 0xF3, 0xF4, 0xF9, 0xE6, 0xF8, /* 0x03C0 */
3574 0xE3, 0xF6, 0xFB, 0xFC, 0xDE, 0xE0, 0xF1 /* 0x03C0 */
3577 /* ----------------------------------------------------------------------- */
3579 #define APPLEGREEKTOCHARTABEX_COUNT 57
3580 static ImplUniCharTabData const aImplAPPLEGREEKToCharTabEx[APPLEGREEKTOCHARTABEX_COUNT] =
3582 { 0x00A0, 0xCA, 0 },
3583 { 0x00A3, 0x92, 0 },
3584 { 0x00A5, 0xB4, 0 },
3585 { 0x00A6, 0x9B, 0 },
3586 { 0x00A7, 0xAC, 0 },
3587 { 0x00A8, 0x8C, 0 },
3588 { 0x00A9, 0xA9, 0 },
3589 { 0x00AB, 0xC7, 0 },
3590 { 0x00AC, 0xC2, 0 },
3591 { 0x00AD, 0x9C, 0 },
3592 { 0x00AE, 0xA8, 0 },
3593 { 0x00B0, 0xAE, 0 },
3594 { 0x00B1, 0xB1, 0 },
3595 { 0x00B2, 0x82, 0 },
3596 { 0x00B3, 0x84, 0 },
3597 { 0x00B7, 0xAF, 0 },
3598 { 0x00B9, 0x81, 0 },
3599 { 0x00BB, 0xC8, 0 },
3600 { 0x00BD, 0x97, 0 },
3601 { 0x00C4, 0x80, 0 },
3602 { 0x00C9, 0x83, 0 },
3603 { 0x00D6, 0x85, 0 },
3604 { 0x00DC, 0x86, 0 },
3605 { 0x00DF, 0xA7, 0 },
3606 { 0x00E0, 0x88, 0 },
3607 { 0x00E2, 0x89, 0 },
3608 { 0x00E4, 0x8A, 0 },
3609 { 0x00E7, 0x8D, 0 },
3610 { 0x00E8, 0x8F, 0 },
3611 { 0x00E9, 0x8E, 0 },
3612 { 0x00EA, 0x90, 0 },
3613 { 0x00EB, 0x91, 0 },
3614 { 0x00EE, 0x94, 0 },
3615 { 0x00EF, 0x95, 0 },
3616 { 0x00F4, 0x99, 0 },
3617 { 0x00F6, 0x9A, 0 },
3618 { 0x00F7, 0xD6, 0 },
3619 { 0x00F9, 0x9D, 0 },
3620 { 0x00FB, 0x9E, 0 },
3621 { 0x00FC, 0x9F, 0 },
3622 { 0x0153, 0xCF, 0 },
3623 { 0x2013, 0xD0, 0 },
3624 { 0x2015, 0xD1, 0 },
3625 { 0x2018, 0xD4, 0 },
3626 { 0x2019, 0xD5, 0 },
3627 { 0x201C, 0xD2, 0 },
3628 { 0x201D, 0xD3, 0 },
3629 { 0x2020, 0xA0, 0 },
3630 { 0x2022, 0x96, 0 },
3631 { 0x2026, 0xC9, 0 },
3632 { 0x2030, 0x98, 0 },
3633 { 0x2122, 0x93, 0 },
3634 { 0x2248, 0xC5, 0 },
3635 { 0x2260, 0xAD, 0 },
3636 { 0x2264, 0xB2, 0 },
3637 { 0x2265, 0xB3, 0 },
3641 /* ----------------------------------------------------------------------- */
3643 static ImplByteConvertData const aImplAPPLEGREEKByteCvtData =
3645 aImplAPPLEGREEKToUniTab,
3647 APPLEGREEKUNI_START, APPLEGREEKUNI_END,
3648 NOTABUNI_START, NOTABUNI_END,
3649 aImplAPPLEGREEKToCharTab,
3651 aImplAPPLEGREEKToCharTabEx,
3652 APPLEGREEKCHAR_START, APPLEGREEKCHAR_END,
3653 NOTABCHAR_START, NOTABCHAR_END,
3654 APPLEGREEKTOCHARTABEX_COUNT
3657 /* ----------------------------------------------------------------------- */
3659 static ImplTextEncodingData const aImplAPPLEGREEKTextEncodingData
3660 = { { &aImplAPPLEGREEKByteCvtData,
3675 RTL_TEXTENCODING_INFO_ASCII };
3676 /* MAC, SCRIPT_GREEK, pc code page 869, mac encoding 6 */
3678 /* ======================================================================= */
3680 /* APPLE-Romanian */
3681 /* Standard Apple CharSet for Romanien */
3682 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3683 /* die wir aber nicht beruecksichtigen */
3684 /* Convert-Tables: mappings/vendors/apple/romanian.txt from 02/05/98 */
3685 /* Last-Changes from us: */
3686 /* 0xAF --> 0x015E (like Java), Apple Definition: 0x0053+0x0326 # LATIN CAPITAL LETTER S + COMBINING COMMA BELOW */
3687 /* 0xBF --> 0x015F (like Java), Apple Definition: 0x0073+0x0326 # LATIN SMALL LETTER S + COMBINING COMMA BELOW */
3688 /* 0xDE --> 0x0162 (like Java), Apple Definition: 0x0054+0x0326 # LATIN CAPITAL LETTER T + COMBINING COMMA BELOW */
3689 /* 0xDF --> 0x0163 (like Java), Apple Definition: 0x0074+0x0326 # LATIN SMALL LETTER T + COMBINING COMMA BELOW */
3691 #define APPLEROMANIANUNI_START 0x80
3692 #define APPLEROMANIANUNI_END 0xFF
3693 static sal_uInt16 const aImplAPPLEROMANIANToUniTab[APPLEROMANIANUNI_END - APPLEROMANIANUNI_START + 1] =
3695 /* 0 1 2 3 4 5 6 7 */
3696 /* 8 9 A B C D E F */
3697 0x00C4, 0x00C5, 0x00C7, 0x00C9, 0x00D1, 0x00D6, 0x00DC, 0x00E1, /* 0x80 */
3698 0x00E0, 0x00E2, 0x00E4, 0x00E3, 0x00E5, 0x00E7, 0x00E9, 0x00E8, /* 0x80 */
3699 0x00EA, 0x00EB, 0x00ED, 0x00EC, 0x00EE, 0x00EF, 0x00F1, 0x00F3, /* 0x90 */
3700 0x00F2, 0x00F4, 0x00F6, 0x00F5, 0x00FA, 0x00F9, 0x00FB, 0x00FC, /* 0x90 */
3701 0x2020, 0x00B0, 0x00A2, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x00DF, /* 0xA0 */
3702 0x00AE, 0x00A9, 0x2122, 0x00B4, 0x00A8, 0x2260, 0x0102, 0x015E, /* 0xA0 */
3703 0x221E, 0x00B1, 0x2264, 0x2265, 0x00A5, 0x00B5, 0x2202, 0x2211, /* 0xB0 */
3704 0x220F, 0x03C0, 0x222B, 0x00AA, 0x00BA, 0x03A9, 0x0103, 0x015F, /* 0xB0 */
3705 0x00BF, 0x00A1, 0x00AC, 0x221A, 0x0192, 0x2248, 0x2206, 0x00AB, /* 0xC0 */
3706 0x00BB, 0x2026, 0x00A0, 0x00C0, 0x00C3, 0x00D5, 0x0152, 0x0153, /* 0xC0 */
3707 0x2013, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x25CA, /* 0xD0 */
3708 0x00FF, 0x0178, 0x2044, 0x00A4, 0x2039, 0x203A, 0x0162, 0x0163, /* 0xD0 */
3709 0x2021, 0x00B7, 0x201A, 0x201E, 0x2030, 0x00C2, 0x00CA, 0x00C1, /* 0xE0 */
3710 0x00CB, 0x00C8, 0x00CD, 0x00CE, 0x00CF, 0x00CC, 0x00D3, 0x00D4, /* 0xE0 */
3711 0xF8FF, 0x00D2, 0x00DA, 0x00DB, 0x00D9, 0x0131, 0x02C6, 0x02DC, /* 0xF0 */
3712 0x00AF, 0x02D8, 0x02D9, 0x02DA, 0x00B8, 0x02DD, 0x02DB, 0x02C7 /* 0xF0 */
3715 /* ----------------------------------------------------------------------- */
3717 #define APPLEROMANIANCHAR_START 0x00A0
3718 #define APPLEROMANIANCHAR_END 0x00FF
3719 static sal_uChar const aImplAPPLEROMANIANToCharTab[APPLEROMANIANCHAR_END - APPLEROMANIANCHAR_START + 1] =
3721 /* 0 1 2 3 4 5 6 7 */
3722 /* 8 9 A B C D E F */
3723 0xCA, 0xC1, 0xA2, 0xA3, 0xDB, 0xB4, 0, 0xA4, /* 0x00A0 */
3724 0xAC, 0xA9, 0xBB, 0xC7, 0xC2, 0, 0xA8, 0xF8, /* 0x00A0 */
3725 0xA1, 0xB1, 0, 0, 0xAB, 0xB5, 0xA6, 0xE1, /* 0x00B0 */
3726 0xFC, 0, 0xBC, 0xC8, 0, 0, 0, 0xC0, /* 0x00B0 */
3727 0xCB, 0xE7, 0xE5, 0xCC, 0x80, 0x81, 0, 0x82, /* 0x00C0 */
3728 0xE9, 0x83, 0xE6, 0xE8, 0xED, 0xEA, 0xEB, 0xEC, /* 0x00C0 */
3729 0, 0x84, 0xF1, 0xEE, 0xEF, 0xCD, 0x85, 0, /* 0x00D0 */
3730 0, 0xF4, 0xF2, 0xF3, 0x86, 0, 0, 0xA7, /* 0x00D0 */
3731 0x88, 0x87, 0x89, 0x8B, 0x8A, 0x8C, 0, 0x8D, /* 0x00E0 */
3732 0x8F, 0x8E, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, /* 0x00E0 */
3733 0, 0x96, 0x98, 0x97, 0x99, 0x9B, 0x9A, 0xD6, /* 0x00F0 */
3734 0, 0x9D, 0x9C, 0x9E, 0x9F, 0, 0, 0xD8 /* 0x00F0 */
3737 /* ----------------------------------------------------------------------- */
3739 #define APPLEROMANIANTOCHARTABEX_COUNT 51
3740 static ImplUniCharTabData const aImplAPPLEROMANIANToCharTabEx[APPLEROMANIANTOCHARTABEX_COUNT] =
3742 { 0x0102, 0xAE, 0 },
3743 { 0x0103, 0xBE, 0 },
3744 { 0x0131, 0xF5, 0 },
3745 { 0x0152, 0xCE, 0 },
3746 { 0x0153, 0xCF, 0 },
3747 { 0x015E, 0xAF, 0 },
3748 { 0x015F, 0xBF, 0 },
3749 { 0x0162, 0xDE, 0 },
3750 { 0x0163, 0xDF, 0 },
3751 { 0x0178, 0xD9, 0 },
3752 { 0x0192, 0xC4, 0 },
3753 { 0x02C6, 0xF6, 0 },
3754 { 0x02C7, 0xFF, 0 },
3755 { 0x02D8, 0xF9, 0 },
3756 { 0x02D9, 0xFA, 0 },
3757 { 0x02DA, 0xFB, 0 },
3758 { 0x02DB, 0xFE, 0 },
3759 { 0x02DC, 0xF7, 0 },
3760 { 0x02DD, 0xFD, 0 },
3761 { 0x03A9, 0xBD, 0 },
3762 { 0x03C0, 0xB9, 0 },
3763 { 0x2013, 0xD0, 0 },
3764 { 0x2014, 0xD1, 0 },
3765 { 0x2018, 0xD4, 0 },
3766 { 0x2019, 0xD5, 0 },
3767 { 0x201A, 0xE2, 0 },
3768 { 0x201C, 0xD2, 0 },
3769 { 0x201D, 0xD3, 0 },
3770 { 0x201E, 0xE3, 0 },
3771 { 0x2020, 0xA0, 0 },
3772 { 0x2021, 0xE0, 0 },
3773 { 0x2022, 0xA5, 0 },
3774 { 0x2026, 0xC9, 0 },
3775 { 0x2030, 0xE4, 0 },
3776 { 0x2039, 0xDC, 0 },
3777 { 0x203A, 0xDD, 0 },
3778 { 0x2044, 0xDA, 0 },
3779 { 0x2122, 0xAA, 0 },
3780 { 0x2202, 0xB6, 0 },
3781 { 0x2206, 0xC6, 0 },
3782 { 0x220F, 0xB8, 0 },
3783 { 0x2211, 0xB7, 0 },
3784 { 0x221A, 0xC3, 0 },
3785 { 0x221E, 0xB0, 0 },
3786 { 0x222B, 0xBA, 0 },
3787 { 0x2248, 0xC5, 0 },
3788 { 0x2260, 0xAD, 0 },
3789 { 0x2264, 0xB2, 0 },
3790 { 0x2265, 0xB3, 0 },
3791 { 0x25CA, 0xD7, 0 },
3795 /* ----------------------------------------------------------------------- */
3797 static ImplByteConvertData const aImplAPPLEROMANIANByteCvtData =
3799 aImplAPPLEROMANIANToUniTab,
3801 APPLEROMANIANUNI_START, APPLEROMANIANUNI_END,
3802 NOTABUNI_START, NOTABUNI_END,
3803 aImplAPPLEROMANIANToCharTab,
3805 aImplAPPLEROMANIANToCharTabEx,
3806 APPLEROMANIANCHAR_START, APPLEROMANIANCHAR_END,
3807 NOTABCHAR_START, NOTABCHAR_END,
3808 APPLEROMANIANTOCHARTABEX_COUNT
3811 /* ----------------------------------------------------------------------- */
3813 static ImplTextEncodingData const aImplAPPLEROMANIANTextEncodingData
3814 = { { &aImplAPPLEROMANIANByteCvtData,
3829 RTL_TEXTENCODING_INFO_ASCII };
3830 /* MAC, SCRIPT_EASTEUROPE, pc code page 852, mac encoding 38 */
3832 /* ======================================================================= */
3835 /* Apple CharSet for Turkish */
3836 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3837 /* die wir aber nicht beruecksichtigen */
3838 /* Convert-Tables: mappings/vendors/apple/turkish.txt from 02/05/98 */
3839 /* Last-Changes from us: */
3841 #define APPLETURKISHUNI_START 0x80
3842 #define APPLETURKISHUNI_END 0xFF
3843 static sal_uInt16 const aImplAPPLETURKISHToUniTab[APPLETURKISHUNI_END - APPLETURKISHUNI_START + 1] =
3845 /* 0 1 2 3 4 5 6 7 */
3846 /* 8 9 A B C D E F */
3847 0x00C4, 0x00C5, 0x00C7, 0x00C9, 0x00D1, 0x00D6, 0x00DC, 0x00E1, /* 0x80 */
3848 0x00E0, 0x00E2, 0x00E4, 0x00E3, 0x00E5, 0x00E7, 0x00E9, 0x00E8, /* 0x80 */
3849 0x00EA, 0x00EB, 0x00ED, 0x00EC, 0x00EE, 0x00EF, 0x00F1, 0x00F3, /* 0x90 */
3850 0x00F2, 0x00F4, 0x00F6, 0x00F5, 0x00FA, 0x00F9, 0x00FB, 0x00FC, /* 0x90 */
3851 0x2020, 0x00B0, 0x00A2, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x00DF, /* 0xA0 */
3852 0x00AE, 0x00A9, 0x2122, 0x00B4, 0x00A8, 0x2260, 0x00C6, 0x00D8, /* 0xA0 */
3853 0x221E, 0x00B1, 0x2264, 0x2265, 0x00A5, 0x00B5, 0x2202, 0x2211, /* 0xB0 */
3854 0x220F, 0x03C0, 0x222B, 0x00AA, 0x00BA, 0x03A9, 0x00E6, 0x00F8, /* 0xB0 */
3855 0x00BF, 0x00A1, 0x00AC, 0x221A, 0x0192, 0x2248, 0x2206, 0x00AB, /* 0xC0 */
3856 0x00BB, 0x2026, 0x00A0, 0x00C0, 0x00C3, 0x00D5, 0x0152, 0x0153, /* 0xC0 */
3857 0x2013, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x25CA, /* 0xD0 */
3858 0x00FF, 0x0178, 0x011E, 0x011F, 0x0130, 0x0131, 0x015E, 0x015F, /* 0xD0 */
3859 0x2021, 0x00B7, 0x201A, 0x201E, 0x2030, 0x00C2, 0x00CA, 0x00C1, /* 0xE0 */
3860 0x00CB, 0x00C8, 0x00CD, 0x00CE, 0x00CF, 0x00CC, 0x00D3, 0x00D4, /* 0xE0 */
3861 0xF8FF, 0x00D2, 0x00DA, 0x00DB, 0x00D9, 0xF8A0, 0x02C6, 0x02DC, /* 0xF0 */
3862 0x00AF, 0x02D8, 0x02D9, 0x02DA, 0x00B8, 0x02DD, 0x02DB, 0x02C7 /* 0xF0 */
3865 /* ----------------------------------------------------------------------- */
3867 #define APPLETURKISHCHAR_START 0x00A0
3868 #define APPLETURKISHCHAR_END 0x00FF
3869 static sal_uChar const aImplAPPLETURKISHToCharTab[APPLETURKISHCHAR_END - APPLETURKISHCHAR_START + 1] =
3871 /* 0 1 2 3 4 5 6 7 */
3872 /* 8 9 A B C D E F */
3873 0xCA, 0xC1, 0xA2, 0xA3, 0, 0xB4, 0, 0xA4, /* 0x00A0 */
3874 0xAC, 0xA9, 0xBB, 0xC7, 0xC2, 0, 0xA8, 0xF8, /* 0x00A0 */
3875 0xA1, 0xB1, 0, 0, 0xAB, 0xB5, 0xA6, 0xE1, /* 0x00B0 */
3876 0xFC, 0, 0xBC, 0xC8, 0, 0, 0, 0xC0, /* 0x00B0 */
3877 0xCB, 0xE7, 0xE5, 0xCC, 0x80, 0x81, 0xAE, 0x82, /* 0x00C0 */
3878 0xE9, 0x83, 0xE6, 0xE8, 0xED, 0xEA, 0xEB, 0xEC, /* 0x00C0 */
3879 0, 0x84, 0xF1, 0xEE, 0xEF, 0xCD, 0x85, 0, /* 0x00D0 */
3880 0xAF, 0xF4, 0xF2, 0xF3, 0x86, 0, 0, 0xA7, /* 0x00D0 */
3881 0x88, 0x87, 0x89, 0x8B, 0x8A, 0x8C, 0xBE, 0x8D, /* 0x00E0 */
3882 0x8F, 0x8E, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, /* 0x00E0 */
3883 0, 0x96, 0x98, 0x97, 0x99, 0x9B, 0x9A, 0xD6, /* 0x00F0 */
3884 0xBF, 0x9D, 0x9C, 0x9E, 0x9F, 0, 0, 0xD8 /* 0x00F0 */
3887 /* ----------------------------------------------------------------------- */
3889 #define APPLETURKISHTOCHARTABEX_COUNT 48
3890 static ImplUniCharTabData const aImplAPPLETURKISHToCharTabEx[APPLETURKISHTOCHARTABEX_COUNT] =
3892 { 0x011E, 0xDA, 0 },
3893 { 0x011F, 0xDB, 0 },
3894 { 0x0130, 0xDC, 0 },
3895 { 0x0131, 0xDD, 0 },
3896 { 0x0152, 0xCE, 0 },
3897 { 0x0153, 0xCF, 0 },
3898 { 0x015E, 0xDE, 0 },
3899 { 0x015F, 0xDF, 0 },
3900 { 0x0178, 0xD9, 0 },
3901 { 0x0192, 0xC4, 0 },
3902 { 0x02C6, 0xF6, 0 },
3903 { 0x02C7, 0xFF, 0 },
3904 { 0x02D8, 0xF9, 0 },
3905 { 0x02D9, 0xFA, 0 },
3906 { 0x02DA, 0xFB, 0 },
3907 { 0x02DB, 0xFE, 0 },
3908 { 0x02DC, 0xF7, 0 },
3909 { 0x02DD, 0xFD, 0 },
3910 { 0x03A9, 0xBD, 0 },
3911 { 0x03C0, 0xB9, 0 },
3912 { 0x2013, 0xD0, 0 },
3913 { 0x2014, 0xD1, 0 },
3914 { 0x2018, 0xD4, 0 },
3915 { 0x2019, 0xD5, 0 },
3916 { 0x201A, 0xE2, 0 },
3917 { 0x201C, 0xD2, 0 },
3918 { 0x201D, 0xD3, 0 },
3919 { 0x201E, 0xE3, 0 },
3920 { 0x2020, 0xA0, 0 },
3921 { 0x2021, 0xE0, 0 },
3922 { 0x2022, 0xA5, 0 },
3923 { 0x2026, 0xC9, 0 },
3924 { 0x2030, 0xE4, 0 },
3925 { 0x2122, 0xAA, 0 },
3926 { 0x2202, 0xB6, 0 },
3927 { 0x2206, 0xC6, 0 },
3928 { 0x220F, 0xB8, 0 },
3929 { 0x2211, 0xB7, 0 },
3930 { 0x221A, 0xC3, 0 },
3931 { 0x221E, 0xB0, 0 },
3932 { 0x222B, 0xBA, 0 },
3933 { 0x2248, 0xC5, 0 },
3934 { 0x2260, 0xAD, 0 },
3935 { 0x2264, 0xB2, 0 },
3936 { 0x2265, 0xB3, 0 },
3937 { 0x25CA, 0xD7, 0 },
3938 { 0xF8A0, 0xF5, 0 },
3942 /* ----------------------------------------------------------------------- */
3944 static ImplByteConvertData const aImplAPPLETURKISHByteCvtData =
3946 aImplAPPLETURKISHToUniTab,
3948 APPLETURKISHUNI_START, APPLETURKISHUNI_END,
3949 NOTABUNI_START, NOTABUNI_END,
3950 aImplAPPLETURKISHToCharTab,
3952 aImplAPPLETURKISHToCharTabEx,
3953 APPLETURKISHCHAR_START, APPLETURKISHCHAR_END,
3954 NOTABCHAR_START, NOTABCHAR_END,
3955 APPLETURKISHTOCHARTABEX_COUNT
3958 /* ----------------------------------------------------------------------- */
3960 static ImplTextEncodingData const aImplAPPLETURKISHTextEncodingData
3961 = { { &aImplAPPLETURKISHByteCvtData,
3976 RTL_TEXTENCODING_INFO_ASCII };
3977 /* MAC, SCRIPT_TURKISH, pc code page 857, mac encoding 35 */
3979 /* ======================================================================= */
3981 /* APPLE-Ukrainian */
3982 /* Apple CharSet for Ukrainian */
3983 /* 1-Byte, 0x00-0x7F ASCII, jedoch eigentich Sonderzeichen zwischen 0x00-0x1F */
3984 /* die wir aber nicht beruecksichtigen */
3985 /* Convert-Tables: mappings/vendors/apple/ukraine.txt from 02/05/98 */
3986 /* Last-Changes from us: */
3988 #define APPLEUKRAINIANUNI_START 0x80
3989 #define APPLEUKRAINIANUNI_END 0xFF
3990 static sal_uInt16 const aImplAPPLEUKRAINIANToUniTab[APPLEUKRAINIANUNI_END - APPLEUKRAINIANUNI_START + 1] =
3992 /* 0 1 2 3 4 5 6 7 */
3993 /* 8 9 A B C D E F */
3994 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0x80 */
3995 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0x80 */
3996 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0x90 */
3997 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0x90 */
3998 0x2020, 0x00B0, 0x0490, 0x00A3, 0x00A7, 0x2022, 0x00B6, 0x0406, /* 0xA0 */
3999 0x00AE, 0x00A9, 0x2122, 0x0402, 0x0452, 0x2260, 0x0403, 0x0453, /* 0xA0 */
4000 0x221E, 0x00B1, 0x2264, 0x2265, 0x0456, 0x00B5, 0x0491, 0x0408, /* 0xB0 */
4001 0x0404, 0x0454, 0x0407, 0x0457, 0x0409, 0x0459, 0x040A, 0x045A, /* 0xB0 */
4002 0x0458, 0x0405, 0x00AC, 0x221A, 0x0192, 0x2248, 0x2206, 0x00AB, /* 0xC0 */
4003 0x00BB, 0x2026, 0x00A0, 0x040B, 0x045B, 0x040C, 0x045C, 0x0455, /* 0xC0 */
4004 0x2013, 0x2014, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x201E, /* 0xD0 */
4005 0x040E, 0x045E, 0x040F, 0x045F, 0x2116, 0x0401, 0x0451, 0x044F, /* 0xD0 */
4006 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xE0 */
4007 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xE0 */
4008 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xF0 */
4009 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x00A4 /* 0xF0 */
4012 /* ----------------------------------------------------------------------- */
4014 #define APPLEUKRAINIANCHAR_START 0x0401
4015 #define APPLEUKRAINIANCHAR_END 0x045F
4016 static sal_uChar const aImplAPPLEUKRAINIANToCharTab[APPLEUKRAINIANCHAR_END - APPLEUKRAINIANCHAR_START + 1] =
4018 /* 0 1 2 3 4 5 6 7 */
4019 /* 8 9 A B C D E F */
4020 0xDD, 0xAB, 0xAE, 0xB8, 0xC1, 0xA7, 0xBA, /* 0x0400 */
4021 0xB7, 0xBC, 0xBE, 0xCB, 0xCD, 0, 0xD8, 0xDA, /* 0x0400 */
4022 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x0410 */
4023 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, /* 0x0410 */
4024 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x0420 */
4025 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, /* 0x0420 */
4026 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0430 */
4027 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0430 */
4028 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x0440 */
4029 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xDF, /* 0x0440 */
4030 0, 0xDE, 0xAC, 0xAF, 0xB9, 0xCF, 0xB4, 0xBB, /* 0x0450 */
4031 0xC0, 0xBD, 0xBF, 0xCC, 0xCE, 0, 0xD9, 0xDB, /* 0x0450 */
4034 /* ----------------------------------------------------------------------- */
4036 #define APPLEUKRAINIANTOCHARTABEX_COUNT 36
4037 static ImplUniCharTabData const aImplAPPLEUKRAINIANToCharTabEx[APPLEUKRAINIANTOCHARTABEX_COUNT] =
4039 { 0x00A0, 0xCA, 0 },
4040 { 0x00A3, 0xA3, 0 },
4041 { 0x00A4, 0xFF, 0 },
4042 { 0x00A7, 0xA4, 0 },
4043 { 0x00A9, 0xA9, 0 },
4044 { 0x00AB, 0xC7, 0 },
4045 { 0x00AC, 0xC2, 0 },
4046 { 0x00AE, 0xA8, 0 },
4047 { 0x00B0, 0xA1, 0 },
4048 { 0x00B1, 0xB1, 0 },
4049 { 0x00B5, 0xB5, 0 },
4050 { 0x00B6, 0xA6, 0 },
4051 { 0x00BB, 0xC8, 0 },
4052 { 0x00F7, 0xD6, 0 },
4053 { 0x0192, 0xC4, 0 },
4054 { 0x0490, 0xA2, 0 },
4055 { 0x0491, 0xB6, 0 },
4056 { 0x2013, 0xD0, 0 },
4057 { 0x2014, 0xD1, 0 },
4058 { 0x2018, 0xD4, 0 },
4059 { 0x2019, 0xD5, 0 },
4060 { 0x201C, 0xD2, 0 },
4061 { 0x201D, 0xD3, 0 },
4062 { 0x201E, 0xD7, 0 },
4063 { 0x2020, 0xA0, 0 },
4064 { 0x2022, 0xA5, 0 },
4065 { 0x2026, 0xC9, 0 },
4066 { 0x2116, 0xDC, 0 },
4067 { 0x2122, 0xAA, 0 },
4068 { 0x2206, 0xC6, 0 },
4069 { 0x221A, 0xC3, 0 },
4070 { 0x221E, 0xB0, 0 },
4071 { 0x2248, 0xC5, 0 },
4072 { 0x2260, 0xAD, 0 },
4073 { 0x2264, 0xB2, 0 },
4077 /* ----------------------------------------------------------------------- */
4079 static ImplByteConvertData const aImplAPPLEUKRAINIANByteCvtData =
4081 aImplAPPLEUKRAINIANToUniTab,
4083 APPLEUKRAINIANUNI_START, APPLEUKRAINIANUNI_END,
4084 NOTABUNI_START, NOTABUNI_END,
4085 aImplAPPLEUKRAINIANToCharTab,
4087 aImplAPPLEUKRAINIANToCharTabEx,
4088 APPLEUKRAINIANCHAR_START, APPLEUKRAINIANCHAR_END,
4089 NOTABCHAR_START, NOTABCHAR_END,
4090 APPLEUKRAINIANTOCHARTABEX_COUNT
4093 /* ----------------------------------------------------------------------- */
4095 static ImplTextEncodingData const aImplAPPLEUKRAINIANTextEncodingData
4096 = { { &aImplAPPLEUKRAINIANByteCvtData,
4111 RTL_TEXTENCODING_INFO_ASCII };
4112 /* MAC, SCRIPT_CYRILLIC, pc code page 866 (855?), mac encoding 0x98
4113 (MAC 8.5 and above) */
4115 /* ======================================================================= */
4118 /* Standard Charset for Cyrillic */
4119 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
4120 /* Convert-Tables: typed per hand */
4121 /* Last-Changes from us: */
4123 #define KOI8RUNI_START 0x80
4124 #define KOI8RUNI_END 0xFF
4125 static sal_uInt16 const aImplKOI8RToUniTab[KOI8RUNI_END - KOI8RUNI_START + 1] =
4127 /* 0 1 2 3 4 5 6 7 */
4128 /* 8 9 A B C D E F */
4129 0x2500, 0x2502, 0x250C, 0x2510, 0x2514, 0x2518, 0x251C, 0x2524, /* 0x80 */
4130 0x252C, 0x2534, 0x253C, 0x2580, 0x2584, 0x2588, 0x258C, 0x2590, /* 0x80 */
4131 0x2591, 0x2592, 0x2593, 0x2320, 0x25A0, 0x2219, 0x221A, 0x2248, /* 0x90 */
4132 0x2264, 0x2265, 0x00A0, 0x2321, 0x00B0, 0x00B2, 0x00B7, 0x00F7, /* 0x90 */
4133 0x2550, 0x2551, 0x2552, 0x0451, 0x2553, 0x2554, 0x2555, 0x2556, /* 0xA0 */
4134 0x2557, 0x2558, 0x2559, 0x255A, 0x255B, 0x255C, 0x255D, 0x255E, /* 0xA0 */
4135 0x255F, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, /* 0xB0 */
4136 0x2566, 0x2567, 0x2568, 0x2569, 0x256A, 0x256B, 0x256C, 0x00A9, /* 0xB0 */
4137 0x044E, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, /* 0xC0 */
4138 0x0445, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, /* 0xC0 */
4139 0x043F, 0x044F, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, /* 0xD0 */
4140 0x044C, 0x044B, 0x0437, 0x0448, 0x044D, 0x0449, 0x0447, 0x044A, /* 0xD0 */
4141 0x042E, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, /* 0xE0 */
4142 0x0425, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, /* 0xE0 */
4143 0x041F, 0x042F, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, /* 0xF0 */
4144 0x042C, 0x042B, 0x0417, 0x0428, 0x042D, 0x0429, 0x0427, 0x042A /* 0xF0 */
4147 /* ----------------------------------------------------------------------- */
4149 #define KOI8RCHAR_START 0x0410
4150 #define KOI8RCHAR_END 0x044F
4151 static sal_uChar const aImplKOI8RToCharTab[KOI8RCHAR_END - KOI8RCHAR_START + 1] =
4153 /* 0 1 2 3 4 5 6 7 */
4154 /* 8 9 A B C D E F */
4155 0xE1, 0xE2, 0xF7, 0xE7, 0xE4, 0xE5, 0xF6, 0xFA, /* 0x0410 */
4156 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, /* 0x0410 */
4157 0xF2, 0xF3, 0xF4, 0xF5, 0xE6, 0xE8, 0xE3, 0xFE, /* 0x0420 */
4158 0xFB, 0xFD, 0xFF, 0xF9, 0xF8, 0xFC, 0xE0, 0xF1, /* 0x0420 */
4159 0xC1, 0xC2, 0xD7, 0xC7, 0xC4, 0xC5, 0xD6, 0xDA, /* 0x0430 */
4160 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, /* 0x0430 */
4161 0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE, /* 0x0440 */
4162 0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1 /* 0x0440 */
4165 /* ----------------------------------------------------------------------- */
4167 #define KOI8RTOCHARTABEX_COUNT 64
4168 static ImplUniCharTabData const aImplKOI8RToCharTabEx[KOI8RTOCHARTABEX_COUNT] =
4170 { 0x00A0, 0x9A, 0 },
4171 { 0x00A9, 0xBF, 0 },
4172 { 0x00B0, 0x9C, 0 },
4173 { 0x00B2, 0x9D, 0 },
4174 { 0x00B7, 0x9E, 0 },
4175 { 0x00F7, 0x9F, 0 },
4176 { 0x0401, 0xB3, 0 },
4177 { 0x0451, 0xA3, 0 },
4178 { 0x2219, 0x95, 0 },
4179 { 0x221A, 0x96, 0 },
4180 { 0x2248, 0x97, 0 },
4181 { 0x2264, 0x98, 0 },
4182 { 0x2265, 0x99, 0 },
4183 { 0x2320, 0x93, 0 },
4184 { 0x2321, 0x9B, 0 },
4185 { 0x2500, 0x80, 0 },
4186 { 0x2502, 0x81, 0 },
4187 { 0x250C, 0x82, 0 },
4188 { 0x2510, 0x83, 0 },
4189 { 0x2514, 0x84, 0 },
4190 { 0x2518, 0x85, 0 },
4191 { 0x251C, 0x86, 0 },
4192 { 0x2524, 0x87, 0 },
4193 { 0x252C, 0x88, 0 },
4194 { 0x2534, 0x89, 0 },
4195 { 0x253C, 0x8A, 0 },
4196 { 0x2550, 0xA0, 0 },
4197 { 0x2551, 0xA1, 0 },
4198 { 0x2552, 0xA2, 0 },
4199 { 0x2553, 0xA4, 0 },
4200 { 0x2554, 0xA5, 0 },
4201 { 0x2555, 0xA6, 0 },
4202 { 0x2556, 0xA7, 0 },
4203 { 0x2557, 0xA8, 0 },
4204 { 0x2558, 0xA9, 0 },
4205 { 0x2559, 0xAA, 0 },
4206 { 0x255A, 0xAB, 0 },
4207 { 0x255B, 0xAC, 0 },
4208 { 0x255C, 0xAD, 0 },
4209 { 0x255D, 0xAE, 0 },
4210 { 0x255E, 0xAF, 0 },
4211 { 0x255F, 0xB0, 0 },
4212 { 0x2560, 0xB1, 0 },
4213 { 0x2561, 0xB2, 0 },
4214 { 0x2562, 0xB4, 0 },
4215 { 0x2563, 0xB5, 0 },
4216 { 0x2564, 0xB6, 0 },
4217 { 0x2565, 0xB7, 0 },
4218 { 0x2566, 0xB8, 0 },
4219 { 0x2567, 0xB9, 0 },
4220 { 0x2568, 0xBA, 0 },
4221 { 0x2569, 0xBB, 0 },
4222 { 0x256A, 0xBC, 0 },
4223 { 0x256B, 0xBD, 0 },
4224 { 0x256C, 0xBE, 0 },
4225 { 0x2580, 0x8B, 0 },
4226 { 0x2584, 0x8C, 0 },
4227 { 0x2588, 0x8D, 0 },
4228 { 0x258C, 0x8E, 0 },
4229 { 0x2590, 0x8F, 0 },
4230 { 0x2591, 0x90, 0 },
4231 { 0x2592, 0x91, 0 },
4232 { 0x2593, 0x92, 0 },
4236 /* ----------------------------------------------------------------------- */
4238 static ImplByteConvertData const aImplKOI8RByteCvtData =
4242 KOI8RUNI_START, KOI8RUNI_END,
4243 NOTABUNI_START, NOTABUNI_END,
4244 aImplKOI8RToCharTab,
4246 aImplKOI8RToCharTabEx,
4247 KOI8RCHAR_START, KOI8RCHAR_END,
4248 NOTABCHAR_START, NOTABCHAR_END,
4249 KOI8RTOCHARTABEX_COUNT
4252 /* ----------------------------------------------------------------------- */
4254 static ImplTextEncodingData const aImplKOI8RTextEncodingData
4255 = { { &aImplKOI8RByteCvtData,
4270 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
4271 /* SCRIPT_CYRILLIC, pc code page 866 (855?), mac encoding 7 */
4273 /* ======================================================================= */
4276 /* Standard Charset for Ukrainian Cyrillic */
4277 /* Single Byte, 0x00-0x7F equals ASCII */
4278 /* Conversion Tables: hand made */
4280 #define KOI8UUNI_START 0x80
4281 #define KOI8UUNI_END 0xFF
4282 static sal_uInt16 const aImplKOI8UToUniTab[KOI8UUNI_END - KOI8UUNI_START + 1] =
4284 /* 0 1 2 3 4 5 6 7 */
4285 /* 8 9 A B C D E F */
4286 0x2500, 0x2502, 0x250C, 0x2510, 0x2514, 0x2518, 0x251C, 0x2524, /* 0x80 */
4287 0x252C, 0x2534, 0x253C, 0x2580, 0x2584, 0x2588, 0x258C, 0x2590, /* 0x80 */
4288 0x2591, 0x2592, 0x2593, 0x2320, 0x25A0, 0x2219, 0x221A, 0x2248, /* 0x90 */
4289 0x2264, 0x2265, 0x00A0, 0x2321, 0x00B0, 0x00B2, 0x00B7, 0x00F7, /* 0x90 */
4290 0x2550, 0x2551, 0x2552, 0x0451, 0x0454, 0x2554, 0x0456, 0x0457, /* 0xA0 */
4291 0x2557, 0x2558, 0x2559, 0x255A, 0x255B, 0x0491, 0x255D, 0x255E, /* 0xA0 */
4292 0x255F, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, /* 0xB0 */
4293 0x2566, 0x2567, 0x2568, 0x2569, 0x256A, 0x0490, 0x256C, 0x00A9, /* 0xB0 */
4294 0x044E, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, /* 0xC0 */
4295 0x0445, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, /* 0xC0 */
4296 0x043F, 0x044F, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, /* 0xD0 */
4297 0x044C, 0x044B, 0x0437, 0x0448, 0x044D, 0x0449, 0x0447, 0x044A, /* 0xD0 */
4298 0x042E, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, /* 0xE0 */
4299 0x0425, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, /* 0xE0 */
4300 0x041F, 0x042F, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, /* 0xF0 */
4301 0x042C, 0x042B, 0x0417, 0x0428, 0x042D, 0x0429, 0x0427, 0x042A /* 0xF0 */
4304 #define KOI8UCHAR_START 0x0410
4305 #define KOI8UCHAR_END 0x044F
4306 static sal_uChar const
4307 aImplKOI8UToCharTab[KOI8UCHAR_END - KOI8UCHAR_START + 1] =
4309 /* 0 1 2 3 4 5 6 7 */
4310 /* 8 9 A B C D E F */
4311 0xE1, 0xE2, 0xF7, 0xE7, 0xE4, 0xE5, 0xF6, 0xFA, /* 0x0410 */
4312 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, /* 0x0410 */
4313 0xF2, 0xF3, 0xF4, 0xF5, 0xE6, 0xE8, 0xE3, 0xFE, /* 0x0420 */
4314 0xFB, 0xFD, 0xFF, 0xF9, 0xF8, 0xFC, 0xE0, 0xF1, /* 0x0420 */
4315 0xC1, 0xC2, 0xD7, 0xC7, 0xC4, 0xC5, 0xD6, 0xDA, /* 0x0430 */
4316 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, /* 0x0430 */
4317 0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE, /* 0x0440 */
4318 0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1 /* 0x0440 */
4321 #define KOI8UTOCHARTABEX_COUNT 72
4322 static ImplUniCharTabData const aImplKOI8UToCharTabEx[KOI8UTOCHARTABEX_COUNT] =
4324 { 0x00A0, 0x9A, 0 },
4325 { 0x00A9, 0xBF, 0 },
4326 { 0x00B0, 0x9C, 0 },
4327 { 0x00B2, 0x9D, 0 },
4328 { 0x00B7, 0x9E, 0 },
4329 { 0x00F7, 0x9F, 0 },
4330 { 0x0401, 0xB3, 0 },
4331 { 0x0404, 0xB4, 0 },
4332 { 0x0406, 0xB6, 0 },
4333 { 0x0407, 0xB7, 0 },
4334 { 0x0451, 0xA3, 0 },
4335 { 0x0454, 0xA4, 0 },
4336 { 0x0456, 0xA6, 0 },
4337 { 0x0457, 0xA7, 0 },
4338 { 0x0490, 0xBD, 0 },
4339 { 0x0491, 0xAD, 0 },
4340 { 0x2219, 0x95, 0 },
4341 { 0x221A, 0x96, 0 },
4342 { 0x2248, 0x97, 0 },
4343 { 0x2264, 0x98, 0 },
4344 { 0x2265, 0x99, 0 },
4345 { 0x2320, 0x93, 0 },
4346 { 0x2321, 0x9B, 0 },
4347 { 0x2500, 0x80, 0 },
4348 { 0x2502, 0x81, 0 },
4349 { 0x250C, 0x82, 0 },
4350 { 0x2510, 0x83, 0 },
4351 { 0x2514, 0x84, 0 },
4352 { 0x2518, 0x85, 0 },
4353 { 0x251C, 0x86, 0 },
4354 { 0x2524, 0x87, 0 },
4355 { 0x252C, 0x88, 0 },
4356 { 0x2534, 0x89, 0 },
4357 { 0x253C, 0x8A, 0 },
4358 { 0x2550, 0xA0, 0 },
4359 { 0x2551, 0xA1, 0 },
4360 { 0x2552, 0xA2, 0 },
4361 { 0x2553, 0xA4, 0 },
4362 { 0x2554, 0xA5, 0 },
4363 { 0x2555, 0xA6, 0 },
4364 { 0x2556, 0xA7, 0 },
4365 { 0x2557, 0xA8, 0 },
4366 { 0x2558, 0xA9, 0 },
4367 { 0x2559, 0xAA, 0 },
4368 { 0x255A, 0xAB, 0 },
4369 { 0x255B, 0xAC, 0 },
4370 { 0x255C, 0xAD, 0 },
4371 { 0x255D, 0xAE, 0 },
4372 { 0x255E, 0xAF, 0 },
4373 { 0x255F, 0xB0, 0 },
4374 { 0x2560, 0xB1, 0 },
4375 { 0x2561, 0xB2, 0 },
4376 { 0x2562, 0xB4, 0 },
4377 { 0x2563, 0xB5, 0 },
4378 { 0x2564, 0xB6, 0 },
4379 { 0x2565, 0xB7, 0 },
4380 { 0x2566, 0xB8, 0 },
4381 { 0x2567, 0xB9, 0 },
4382 { 0x2568, 0xBA, 0 },
4383 { 0x2569, 0xBB, 0 },
4384 { 0x256A, 0xBC, 0 },
4385 { 0x256B, 0xBD, 0 },
4386 { 0x256C, 0xBE, 0 },
4387 { 0x2580, 0x8B, 0 },
4388 { 0x2584, 0x8C, 0 },
4389 { 0x2588, 0x8D, 0 },
4390 { 0x258C, 0x8E, 0 },
4391 { 0x2590, 0x8F, 0 },
4392 { 0x2591, 0x90, 0 },
4393 { 0x2592, 0x91, 0 },
4394 { 0x2593, 0x92, 0 },
4398 static ImplByteConvertData const aImplKOI8UByteCvtData =
4402 KOI8UUNI_START, KOI8UUNI_END,
4403 NOTABUNI_START, NOTABUNI_END,
4404 aImplKOI8UToCharTab,
4406 aImplKOI8UToCharTabEx,
4407 KOI8UCHAR_START, KOI8UCHAR_END,
4408 NOTABCHAR_START, NOTABCHAR_END,
4409 KOI8UTOCHARTABEX_COUNT
4412 static ImplTextEncodingData const aImplKoi8UTextEncodingData
4413 = { { &aImplKOI8UByteCvtData,
4428 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
4429 /* SCRIPT_CYRILLIC */
4431 /* ======================================================================= */
4434 /* Asian Cyrillic */
4435 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
4436 /* Convert-Tables: typed per hand */
4437 /* Last-Changes from us: */
4439 #define PT154UNI_START 0x80
4440 #define PT154UNI_END 0xFF
4441 static sal_uInt16 const aImplPT154ToUniTab[PT154UNI_END - PT154UNI_START + 1] =
4443 /* 0 1 2 3 4 5 6 7 */
4444 /* 8 9 A B C D E F */
4445 0x0496, 0x0492, 0x04EE, 0x0493, 0x201E, 0x2026, 0x04B6, 0x04AE, /* 0x80 */
4446 0x04B2, 0x04AF, 0x04A0, 0x04E2, 0x04A2, 0x049A, 0x04BA, 0x04B8, /* 0x80 */
4447 0x0497, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
4448 0x04B3, 0x04B7, 0x04A1, 0x04E3, 0x04A3, 0x049B, 0x04BB, 0x04B9, /* 0x90 */
4449 0x00A0, 0x040E, 0x045E, 0x0408, 0x04E8, 0x0498, 0x04B0, 0x00A7, /* 0xA0 */
4450 0x0401, 0x00A9, 0x04D8, 0x00AB, 0x00AC, 0x04EF, 0x00AE, 0x049C, /* 0xA0 */
4451 0x00B0, 0x04B1, 0x0406, 0x0456, 0x0499, 0x04E9, 0x00B6, 0x00B7, /* 0xB0 */
4452 0x0451, 0x2116, 0x04D9, 0x00BB, 0x0458, 0x04AA, 0x04AB, 0x049D, /* 0xB0 */
4453 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, /* 0xC0 */
4454 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, /* 0xC0 */
4455 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, /* 0xD0 */
4456 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, /* 0xD0 */
4457 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, /* 0xE0 */
4458 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, /* 0xE0 */
4459 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, /* 0xF0 */
4460 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F /* 0xF0 */
4463 /* ----------------------------------------------------------------------- */
4465 #define PT154CHAR_START 0x0410
4466 #define PT154CHAR_END 0x044F
4467 static sal_uChar const aImplPT154ToCharTab[PT154CHAR_END - PT154CHAR_START + 1] =
4469 /* 0 1 2 3 4 5 6 7 */
4470 /* 8 9 A B C D E F */
4471 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, /* 0x0410 */
4472 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, /* 0x0410 */
4473 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, /* 0x0420 */
4474 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, /* 0x0420 */
4475 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, /* 0x0430 */
4476 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, /* 0x0430 */
4477 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, /* 0x0440 */
4478 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff /* 0x0440 */
4481 /* ----------------------------------------------------------------------- */
4483 #define PT154TOCHARTABEX_COUNT 64
4484 static ImplUniCharTabData const aImplPT154ToCharTabEx[PT154TOCHARTABEX_COUNT] =
4486 { 0x00A0, 0xa0, 0 },
4487 { 0x00A7, 0xa7, 0 },
4488 { 0x00A9, 0xa9, 0 },
4489 { 0x00AB, 0xab, 0 },
4490 { 0x00AC, 0xac, 0 },
4491 { 0x00AE, 0xae, 0 },
4492 { 0x00B0, 0xb0, 0 },
4493 { 0x00B6, 0xb6, 0 },
4494 { 0x00B7, 0xb7, 0 },
4495 { 0x00BB, 0xbb, 0 },
4496 { 0x0401, 0xa8, 0 },
4497 { 0x0406, 0xb2, 0 },
4498 { 0x0408, 0xa3, 0 },
4499 { 0x040E, 0xa1, 0 },
4500 { 0x0451, 0xb8, 0 },
4501 { 0x0456, 0xb3, 0 },
4502 { 0x0458, 0xbc, 0 },
4503 { 0x045E, 0xa2, 0 },
4504 { 0x0492, 0x81, 0 },
4505 { 0x0493, 0x83, 0 },
4506 { 0x0496, 0x80, 0 },
4507 { 0x0497, 0x90, 0 },
4508 { 0x0498, 0xa5, 0 },
4509 { 0x0499, 0xb4, 0 },
4510 { 0x049A, 0x8d, 0 },
4511 { 0x049B, 0x9d, 0 },
4512 { 0x049C, 0xaf, 0 },
4513 { 0x049D, 0xbf, 0 },
4514 { 0x04A0, 0x8a, 0 },
4515 { 0x04A1, 0x9a, 0 },
4516 { 0x04A2, 0x8c, 0 },
4517 { 0x04A3, 0x9c, 0 },
4518 { 0x04AA, 0xbd, 0 },
4519 { 0x04AB, 0xbe, 0 },
4520 { 0x04AE, 0x87, 0 },
4521 { 0x04AF, 0x89, 0 },
4522 { 0x04B0, 0xa6, 0 },
4523 { 0x04B1, 0xb1, 0 },
4524 { 0x04B2, 0x88, 0 },
4525 { 0x04B3, 0x98, 0 },
4526 { 0x04B6, 0x86, 0 },
4527 { 0x04B7, 0x99, 0 },
4528 { 0x04B8, 0x8f, 0 },
4529 { 0x04B9, 0x9f, 0 },
4530 { 0x04BA, 0x8e, 0 },
4531 { 0x04BB, 0x9e, 0 },
4532 { 0x04D8, 0xaa, 0 },
4533 { 0x04D9, 0xba, 0 },
4534 { 0x04E2, 0x8b, 0 },
4535 { 0x04E3, 0x9b, 0 },
4536 { 0x04E8, 0xa4, 0 },
4537 { 0x04E9, 0xb5, 0 },
4538 { 0x04EE, 0x82, 0 },
4539 { 0x04EF, 0xad, 0 },
4540 { 0x2013, 0x96, 0 },
4541 { 0x2014, 0x97, 0 },
4542 { 0x2018, 0x91, 0 },
4543 { 0x2019, 0x92, 0 },
4544 { 0x201C, 0x93, 0 },
4545 { 0x201D, 0x94, 0 },
4546 { 0x201E, 0x84, 0 },
4547 { 0x2022, 0x95, 0 },
4548 { 0x2026, 0x85, 0 },
4552 /* ----------------------------------------------------------------------- */
4554 static ImplByteConvertData const aImplPT154ByteCvtData =
4558 PT154UNI_START, PT154UNI_END,
4559 NOTABUNI_START, NOTABUNI_END,
4560 aImplPT154ToCharTab,
4562 aImplPT154ToCharTabEx,
4563 PT154CHAR_START, PT154CHAR_END,
4564 NOTABCHAR_START, NOTABCHAR_END,
4565 PT154TOCHARTABEX_COUNT
4568 /* ----------------------------------------------------------------------- */
4570 static ImplTextEncodingData const aImplPT154TextEncodingData
4571 = { { &aImplPT154ByteCvtData,
4586 RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME };
4587 /* SCRIPT_CYRILLIC */