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: tcvtarb1.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: arabic, hebrew and other scripts in the arabic region */
36 /* ======================================================================= */
39 /* Dos Standard CharSet for Hebrew */
40 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
41 /* Convert-Tables: mappings/vendors/micsft/pc/cp862.txt from 04/24/96 Version 2.00 */
42 /* Last-Changes from us: */
44 /* ----------------------------------------------------------------------- */
46 #define IBM862UNI_START 0x80
47 #define IBM862UNI_END 0xFF
48 static sal_uInt16 const aImplIBM862ToUniTab[IBM862UNI_END - IBM862UNI_START + 1] =
52 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0x80 */
53 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0x80 */
54 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0x90 */
55 0x05E8, 0x05E9, 0x05EA, 0x00A2, 0x00A3, 0x00A5, 0x20A7, 0x0192, /* 0x90 */
56 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, /* 0xA0 */
57 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, /* 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 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, /* 0xE0 */
65 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, /* 0xE0 */
66 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, /* 0xF0 */
67 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 /* 0xF0 */
70 /* ----------------------------------------------------------------------- */
72 #define IBM862CHAR_START 0x05D0
73 #define IBM862CHAR_END 0x05EA
74 static sal_uChar const aImplIBM862ToCharTab[IBM862CHAR_END - IBM862CHAR_START + 1] =
78 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x05D0 */
79 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, /* 0x05D0 */
80 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x05E0 */
81 0x98, 0x99, 0x9A /* 0x05E0 */
84 /* ----------------------------------------------------------------------- */
86 #define IBM862TOCHARTABEX_COUNT 101
87 static ImplUniCharTabData const aImplIBM862ToCharTabEx[IBM862TOCHARTABEX_COUNT] =
192 /* ----------------------------------------------------------------------- */
194 static ImplByteConvertData const aImplIBM862ByteCvtData =
198 IBM862UNI_START, IBM862UNI_END,
199 NOTABUNI_START, NOTABUNI_END,
200 aImplIBM862ToCharTab,
202 aImplIBM862ToCharTabEx,
203 IBM862CHAR_START, IBM862CHAR_END,
204 NOTABCHAR_START, NOTABCHAR_END,
205 IBM862TOCHARTABEX_COUNT
208 /* ----------------------------------------------------------------------- */
210 static ImplTextEncodingData const aImplIBM862TextEncodingData
211 = { { &aImplIBM862ByteCvtData,
226 RTL_TEXTENCODING_INFO_ASCII
227 | RTL_TEXTENCODING_INFO_MIME
228 | RTL_TEXTENCODING_INFO_R2L };
229 /* DOS/OS2, SCRIPT_HEBREW, pc code page 862, mac encoding 5 */
231 /* ======================================================================= */
234 /* Dos Standard CharSet for Arabic */
235 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
236 /* Convert-Tables: mappings/vendors/micsft/pc/cp864.txt from 04/24/96 Version 2.00 */
237 /* Last-Changes from us: */
239 /* ----------------------------------------------------------------------- */
241 #define IBM864UNI_START 0x80
242 #define IBM864UNI_END 0xFE
243 static sal_uInt16 const aImplIBM864ToUniTab[IBM864UNI_END - IBM864UNI_START + 1] =
245 /* 0 1 2 3 4 5 6 7 */
246 /* 8 9 A B C D E F */
247 0x00B0, 0x00B7, 0x2219, 0x221A, 0x2592, 0x2500, 0x2502, 0x253C, /* 0x80 */
248 0x2524, 0x252C, 0x251C, 0x2534, 0x2510, 0x250C, 0x2514, 0x2518, /* 0x80 */
249 0x03B2, 0x221E, 0x03C6, 0x00B1, 0x00BD, 0x00BC, 0x2248, 0x00AB, /* 0x90 */
250 0x00BB, 0xFEF7, 0xFEF8, 0, 0, 0xFEFB, 0xFEFC, 0, /* 0x90 */
251 0x00A0, 0x00AD, 0xFE82, 0x00A3, 0x00A4, 0xFE84, 0, 0, /* 0xA0 */
252 0xFE8E, 0xFE8F, 0xFE95, 0xFE99, 0x060C, 0xFE9D, 0xFEA1, 0xFEA5, /* 0xA0 */
253 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, /* 0xB0 */
254 0x0668, 0x0669, 0xFED1, 0x061B, 0xFEB1, 0xFEB5, 0xFEB9, 0x061F, /* 0xB0 */
255 0x00A2, 0xFE80, 0xFE81, 0xFE83, 0xFE85, 0xFECA, 0xFE8B, 0xFE8D, /* 0xC0 */
256 0xFE91, 0xFE93, 0xFE97, 0xFE9B, 0xFE9F, 0xFEA3, 0xFEA7, 0xFEA9, /* 0xC0 */
257 0xFEAB, 0xFEAD, 0xFEAF, 0xFEB3, 0xFEB7, 0xFEBB, 0xFEBF, 0xFEC1, /* 0xD0 */
258 0xFEC5, 0xFECB, 0xFECF, 0x00A6, 0x00AC, 0x00F7, 0x00D7, 0xFEC9, /* 0xD0 */
259 0x0640, 0xFED3, 0xFED7, 0xFEDB, 0xFEDF, 0xFEE3, 0xFEE7, 0xFEEB, /* 0xE0 */
260 0xFEED, 0xFEEF, 0xFEF3, 0xFEBD, 0xFECC, 0xFECE, 0xFECD, 0xFEE1, /* 0xE0 */
261 0xFE7D, 0x0651, 0xFEE5, 0xFEE9, 0xFEEC, 0xFEF0, 0xFEF2, 0xFED0, /* 0xF0 */
262 0xFED5, 0xFEF5, 0xFEF6, 0xFEDD, 0xFED9, 0xFEF1, 0x25A0 /* 0xF0 */
265 /* ----------------------------------------------------------------------- */
267 #define IBM864CHAR_START 0xFE7D
268 #define IBM864CHAR_END 0xFEFC
269 static sal_uChar const aImplIBM864ToCharTab[IBM864CHAR_END - IBM864CHAR_START + 1] =
271 /* 0 1 2 3 4 5 6 7 */
272 /* 8 9 A B C D E F */
273 0xF0, 0, 0, /* 0xFE70 */
274 0xC1, 0xC2, 0xA2, 0xC3, 0xA5, 0xC4, 0, 0, /* 0xFE80 */
275 0, 0, 0, 0xC6, 0, 0xC7, 0xA8, 0xA9, /* 0xFE80 */
276 0, 0xC8, 0, 0xC9, 0, 0xAA, 0, 0xCA, /* 0xFE90 */
277 0, 0xAB, 0, 0xCB, 0, 0xAD, 0, 0xCC, /* 0xFE90 */
278 0, 0xAE, 0, 0xCD, 0, 0xAF, 0, 0xCE, /* 0xFEA0 */
279 0, 0xCF, 0, 0xD0, 0, 0xD1, 0, 0xD2, /* 0xFEA0 */
280 0, 0xBC, 0, 0xD3, 0, 0xBD, 0, 0xD4, /* 0xFEB0 */
281 0, 0xBE, 0, 0xD5, 0, 0xEB, 0, 0xD6, /* 0xFEB0 */
282 0, 0xD7, 0, 0, 0, 0xD8, 0, 0, /* 0xFEC0 */
283 0, 0xDF, 0xC5, 0xD9, 0xEC, 0xEE, 0xED, 0xDA, /* 0xFEC0 */
284 0xF7, 0xBA, 0, 0xE1, 0, 0xF8, 0, 0xE2, /* 0xFED0 */
285 0, 0xFC, 0, 0xE3, 0, 0xFB, 0, 0xE4, /* 0xFED0 */
286 0, 0xEF, 0, 0xE5, 0, 0xF2, 0, 0xE6, /* 0xFEE0 */
287 0, 0xF3, 0, 0xE7, 0xF4, 0xE8, 0, 0xE9, /* 0xFEE0 */
288 0xF5, 0xFD, 0xF6, 0xEA, 0, 0xF9, 0xFA, 0x99, /* 0xFEF0 */
289 0x9A, 0, 0, 0x9D, 0x9E /* 0xFEF0 */
292 /* ----------------------------------------------------------------------- */
294 #define IBM864TOCHARTABEX_COUNT 51
295 static ImplUniCharTabData const aImplIBM864ToCharTabEx[IBM864TOCHARTABEX_COUNT] =
350 /* ----------------------------------------------------------------------- */
352 static ImplByteConvertData const aImplIBM864ByteCvtData =
356 IBM864UNI_START, IBM864UNI_END,
357 NOTABUNI_START, NOTABUNI_END,
358 aImplIBM864ToCharTab,
360 aImplIBM864ToCharTabEx,
361 IBM864CHAR_START, IBM864CHAR_END,
362 NOTABCHAR_START, NOTABCHAR_END,
363 IBM864TOCHARTABEX_COUNT
366 /* ----------------------------------------------------------------------- */
368 static ImplTextEncodingData const aImplIBM864TextEncodingData
369 = { { &aImplIBM864ByteCvtData,
384 RTL_TEXTENCODING_INFO_ASCII
385 | RTL_TEXTENCODING_INFO_MIME
386 | RTL_TEXTENCODING_INFO_R2L };
387 /* DOS/OS2, SCRIPT_ARABIC, pc code page 864, mac encoding 4 */
389 /* ======================================================================= */
392 /* Windows Standard CharSet for Hebrew */
393 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
394 /* Convert-Tables: mappings/vendors/micsft/windows/cp1255.txt from 04/15/98 Version 2.01 */
395 /* Last-Changes from us: */
397 /* ----------------------------------------------------------------------- */
399 #define MS1255UNI_START 0x80
400 #define MS1255UNI_END 0xFF
401 static sal_uInt16 const aImplMS1255ToUniTab[MS1255UNI_END - MS1255UNI_START + 1] =
403 /* 0 1 2 3 4 5 6 7 */
404 /* 8 9 A B C D E F */
405 0x20AC, 0, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
406 0x02C6, 0x2030, 0, 0x2039, 0, 0, 0, 0, /* 0x80 */
407 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
408 0x02DC, 0x2122, 0, 0x203A, 0, 0, 0, 0, /* 0x90 */
409 0x00A0, 0x00A1, 0x00A2, 0x00A3, 0x20AA, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
410 0x00A8, 0x00A9, 0x00D7, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */
411 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
412 0x00B8, 0x00B9, 0x00F7, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00BF, /* 0xB0 */
413 0x05B0, 0x05B1, 0x05B2, 0x05B3, 0x05B4, 0x05B5, 0x05B6, 0x05B7, /* 0xC0 */
414 0x05B8, 0x05B9, 0, 0x05BB, 0x05BC, 0x05BD, 0x05BE, 0x05BF, /* 0xC0 */
415 0x05C0, 0x05C1, 0x05C2, 0x05C3, 0x05F0, 0x05F1, 0x05F2, 0x05F3, /* 0xD0 */
416 0x05F4, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */
417 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0xE0 */
418 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0xE0 */
419 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0xF0 */
420 0x05E8, 0x05E9, 0x05EA, 0, 0, 0x200E, 0x200F, 0 /* 0xF0 */
423 /* ----------------------------------------------------------------------- */
425 #define MS1255CHAR_START 0x05B0
426 #define MS1255CHAR_END 0x05F4
427 static sal_uChar const aImplMS1255ToCharTab[MS1255CHAR_END - MS1255CHAR_START + 1] =
429 /* 0 1 2 3 4 5 6 7 */
430 /* 8 9 A B C D E F */
431 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x05B0 */
432 0xC8, 0xC9, 0, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x05B0 */
433 0xD0, 0xD1, 0xD2, 0xD3, 0, 0, 0, 0, /* 0x05C0 */
434 0, 0, 0, 0, 0, 0, 0, 0, /* 0x05C0 */
435 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x05D0 */
436 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x05D0 */
437 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x05E0 */
438 0xF8, 0xF9, 0xFA, 0, 0, 0, 0, 0, /* 0x05E0 */
439 0xD4, 0xD5, 0xD6, 0xD7, 0xD8 /* 0x05F0 */
442 /* ----------------------------------------------------------------------- */
444 #define MS1255TOCHARTABEX_COUNT 54
445 static ImplUniCharTabData const aImplMS1255ToCharTabEx[MS1255TOCHARTABEX_COUNT] =
503 /* ----------------------------------------------------------------------- */
505 static ImplByteConvertData const aImplMS1255ByteCvtData =
509 MS1255UNI_START, MS1255UNI_END,
510 NOTABUNI_START, NOTABUNI_END,
511 aImplMS1255ToCharTab,
513 aImplMS1255ToCharTabEx,
514 MS1255CHAR_START, MS1255CHAR_END,
515 NOTABCHAR_START, NOTABCHAR_END,
516 MS1255TOCHARTABEX_COUNT
519 /* ----------------------------------------------------------------------- */
521 static ImplTextEncodingData const aImplMS1255TextEncodingData
522 = { { &aImplMS1255ByteCvtData,
537 RTL_TEXTENCODING_INFO_ASCII
538 | RTL_TEXTENCODING_INFO_MIME
539 | RTL_TEXTENCODING_INFO_R2L };
540 /* WIN, SCRIPT_HEBREW, pc code page 862, mac encoding 5 */
542 /* ======================================================================= */
545 /* Windows Standard CharSet for Arabic */
546 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
547 /* Convert-Tables: mappings/vendors/micsft/windows/cp1256.txt from 01/5/99 Version 2.01 */
549 /* ----------------------------------------------------------------------- */
551 #define MS1256UNI_START 0x80
552 #define MS1256UNI_END 0xFF
553 static sal_uInt16 const aImplMS1256ToUniTab[MS1256UNI_END - MS1256UNI_START + 1] =
555 /* 0 1 2 3 4 5 6 7 */
556 /* 8 9 A B C D E F */
557 0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */
558 0x02C6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, /* 0x80 */
559 0x06AF, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */
560 0x06A9, 0x2122, 0x0691, 0x203A, 0x0153, 0x200C, 0x200D, 0x06BA, /* 0x90 */
561 0x00A0, 0x060C, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
562 0x00A8, 0x00A9, 0x06BE, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */
563 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
564 0x00B8, 0x00B9, 0x061B, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x061F, /* 0xB0 */
565 0x06C1, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, /* 0xC0 */
566 0x0628, 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, /* 0xC0 */
567 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x00D7, /* 0xD0 */
568 0x0637, 0x0638, 0x0639, 0x063A, 0x0640, 0x0641, 0x0642, 0x0643, /* 0xD0 */
569 0x00E0, 0x0644, 0x00E2, 0x0645, 0x0646, 0x0647, 0x0648, 0x00E7, /* 0xE0 */
570 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x0649, 0x064A, 0x00EE, 0x00EF, /* 0xE0 */
571 0x064B, 0x064C, 0x064D, 0x064E, 0x00F4, 0x064F, 0x0650, 0x00F7, /* 0xF0 */
572 0x0651, 0x00F9, 0x0652, 0x00FB, 0x00FC, 0x200E, 0x200F, 0x06D2 /* 0xF0 */
575 /* ----------------------------------------------------------------------- */
577 #define MS1256CHAR_START 0x061B
578 #define MS1256CHAR_END 0x0652
579 static sal_uChar const aImplMS1256ToCharTab[MS1256CHAR_END - MS1256CHAR_START + 1] =
581 /* 0 1 2 3 4 5 6 7 */
582 /* 8 9 A B C D E F */
583 0xBA, 0, 0, 0, 0xBF, /* 0x0610 */
584 0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0620 */
585 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0620 */
586 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD8, /* 0x0630 */
587 0xD9, 0xDA, 0xDB, 0, 0, 0, 0, 0, /* 0x0630 */
588 0xDC, 0xDD, 0xDE, 0xDF, 0xE1, 0xE3, 0xE4, 0xE5, /* 0x0640 */
589 0xE6, 0xEC, 0xED, 0xF0, 0xF1, 0xF2, 0xF3, 0xF5, /* 0x0640 */
590 0xF6, 0xF8, 0xFA /* 0x0650 */
593 /* ----------------------------------------------------------------------- */
595 #define MS1256TOCHARTABEX_COUNT 81
596 static ImplUniCharTabData const aImplMS1256ToCharTabEx[MS1256TOCHARTABEX_COUNT] =
681 /* ----------------------------------------------------------------------- */
683 static ImplByteConvertData const aImplMS1256ByteCvtData =
687 MS1256UNI_START, MS1256UNI_END,
688 NOTABUNI_START, NOTABUNI_END,
689 aImplMS1256ToCharTab,
691 aImplMS1256ToCharTabEx,
692 MS1256CHAR_START, MS1256CHAR_END,
693 NOTABCHAR_START, NOTABCHAR_END,
694 MS1256TOCHARTABEX_COUNT
697 /* ----------------------------------------------------------------------- */
699 static ImplTextEncodingData const aImplMS1256TextEncodingData
700 = { { &aImplMS1256ByteCvtData,
715 RTL_TEXTENCODING_INFO_ASCII
716 | RTL_TEXTENCODING_INFO_MIME
717 | RTL_TEXTENCODING_INFO_R2L };
718 /* WIN, SCRIPT_ARABIC, pc code page 864, mac encoding 4 */
720 /* ======================================================================= */
723 /* Unix Standard for Arabic */
724 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
725 /* Convert-Tables: mappings/iso8859/8859-6.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */
726 /* Last-Changes from us: */
727 /* !!! 0x30-0x39 sind Arabische Zahlen und muessten eigentlich nach 0x0660-0x0669 gemappt werden !!! */
729 #define ISO88596UNI_START 0xA0
730 #define ISO88596UNI_END 0xF2
731 static sal_uInt16 const aImplISO88596ToUniTab[ISO88596UNI_END - ISO88596UNI_START + 1] =
733 /* 0 1 2 3 4 5 6 7 */
734 /* 8 9 A B C D E F */
735 0x00A0, 0, 0, 0, 0x00A4, 0, 0, 0, /* 0xA0 */
736 0, 0, 0, 0, 0x060C, 0x00AD, 0, 0, /* 0xA0 */
737 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */
738 0, 0, 0, 0x061B, 0, 0, 0, 0x061F, /* 0xB0 */
739 0, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, /* 0xC0 */
740 0x0628, 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, /* 0xC0 */
741 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, /* 0xD0 */
742 0x0638, 0x0639, 0x063A, 0, 0, 0, 0, 0, /* 0xD0 */
743 0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, /* 0xE0 */
744 0x0648, 0x0649, 0x064A, 0x064B, 0x064C, 0x064D, 0x064E, 0x064F, /* 0xE0 */
745 0x0650, 0x0651, 0x0652 /* 0xF0 */
749 /* ----------------------------------------------------------------------- */
751 #define ISO88596CHAR_START 0x061B
752 #define ISO88596CHAR_END 0x0669
753 static sal_uChar const aImplISO88596ToCharTab[ISO88596CHAR_END - ISO88596CHAR_START + 1] =
755 /* 0 1 2 3 4 5 6 7 */
756 /* 8 9 A B C D E F */
757 0xBB, 0, 0, 0, 0xBF, /* 0x0610 */
758 0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0620 */
759 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0620 */
760 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x0630 */
761 0xD8, 0xD9, 0xDA, 0, 0, 0, 0, 0, /* 0x0630 */
762 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0640 */
763 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0640 */
764 0xF0, 0xF1, 0xF2, 0, 0, 0, 0, 0, /* 0x0650 */
765 0, 0, 0, 0, 0, 0, 0, 0, /* 0x0650 */
766 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 0x0660 */
767 0x38, 0x39 /* 0x0660 */
770 /* ----------------------------------------------------------------------- */
772 #define ISO88596TOCHARTABEX_COUNT 4
773 static ImplUniCharTabData const aImplISO88596ToCharTabEx[ISO88596TOCHARTABEX_COUNT] =
781 /* ----------------------------------------------------------------------- */
783 static ImplByteConvertData const aImplISO88596ByteCvtData =
785 aImplISO88596ToUniTab,
786 aImpl8090SameToUniTab,
787 ISO88596UNI_START, ISO88596UNI_END,
788 SAME8090UNI_START, SAME8090UNI_END,
789 aImplISO88596ToCharTab,
790 aImpl8090SameToCharTab,
791 aImplISO88596ToCharTabEx,
792 ISO88596CHAR_START, ISO88596CHAR_END,
793 SAME8090CHAR_START, SAME8090CHAR_END,
794 ISO88596TOCHARTABEX_COUNT
797 /* ----------------------------------------------------------------------- */
799 static ImplTextEncodingData const aImplISO88596TextEncodingData
800 = { { &aImplISO88596ByteCvtData,
815 RTL_TEXTENCODING_INFO_ASCII
816 | RTL_TEXTENCODING_INFO_R2L
817 | RTL_TEXTENCODING_INFO_MIME };
818 /* SCRIPT_ARABIC, pc code page 864, mac encoding 4 */
821 /* ======================================================================= */
824 /* Unix Standard for Hebrew */
825 /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */
826 /* Convert-Tables: mappings/iso8859/8859-8.txt from 2000-Jan-03 Version 1.1 (based on Unicode 3.0) */
828 #define ISO88598UNI_START 0xA0
829 #define ISO88598UNI_END 0xFE
830 static sal_uInt16 const aImplISO88598ToUniTab[ISO88598UNI_END - ISO88598UNI_START + 1] =
832 /* 0 1 2 3 4 5 6 7 */
833 /* 8 9 A B C D E F */
834 0x00A0, 0, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */
835 0x00A8, 0x00A9, 0x00D7, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */
836 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */
837 0x00B8, 0x00B9, 0x00F7, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0, /* 0xB0 */
838 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */
839 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */
840 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */
841 0, 0, 0, 0, 0, 0, 0, 0x2017, /* 0xD0 */
842 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0xE0 */
843 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0xE0 */
844 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0xF0 */
845 0x05E8, 0x05E9, 0x05EA, 0, 0, 0x200E, 0x200F /* 0xF0 */
848 /* ----------------------------------------------------------------------- */
850 #define ISO88598CHAR_START 0x05D0
851 #define ISO88598CHAR_END 0x05EA
852 static sal_uChar const aImplISO88598ToCharTab[ISO88598CHAR_END - ISO88598CHAR_START + 1] =
854 /* 0 1 2 3 4 5 6 7 */
855 /* 8 9 A B C D E F */
856 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x05D0 */
857 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x05D0 */
858 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x05E0 */
859 0xF8, 0xF9, 0xFA /* 0x05E0 */
862 /* ----------------------------------------------------------------------- */
864 #define ISO88598TOCHARTABEX_COUNT 33
865 static ImplUniCharTabData const aImplISO88598ToCharTabEx[ISO88598TOCHARTABEX_COUNT] =
902 /* ----------------------------------------------------------------------- */
904 static ImplByteConvertData const aImplISO88598ByteCvtData =
906 aImplISO88598ToUniTab,
907 aImpl8090SameToUniTab,
908 ISO88598UNI_START, ISO88598UNI_END,
909 SAME8090UNI_START, SAME8090UNI_END,
910 aImplISO88598ToCharTab,
911 aImpl8090SameToCharTab,
912 aImplISO88598ToCharTabEx,
913 ISO88598CHAR_START, ISO88598CHAR_END,
914 SAME8090CHAR_START, SAME8090CHAR_END,
915 ISO88598TOCHARTABEX_COUNT
918 /* ----------------------------------------------------------------------- */
920 static ImplTextEncodingData const aImplISO88598TextEncodingData
921 = { { &aImplISO88598ByteCvtData,
936 RTL_TEXTENCODING_INFO_ASCII
937 | RTL_TEXTENCODING_INFO_R2L
938 | RTL_TEXTENCODING_INFO_MIME };
939 /* SCRIPT_HEBREW, pc code page 862, mac encoding 5 */