summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfcharsets.cxx
blob: 360db9e501eafc18d1dffc590ae101c82df1a9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * Version: MPL 1.1 / GPLv3+ / LGPLv3+
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Initial Developer of the Original Code is
 *       Miklos Vajna <vmiklos@frugalware.org>
 * Portions created by the Initial Developer are Copyright (C) 2011 the
 * Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
 * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
 * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
 * instead of those above.
 */

#include <rtfcharsets.hxx>
#include <sal/macros.h>

namespace writerfilter {
namespace rtftok {

// See RTF spec v1.9.1, page 19
RTFEncoding aRTFEncodings[] = {
    // charset  codepage    Windows / Mac name
    {0, 1252}, // ANSI
    {1, 0}, // Default
    {2, 42}, // Symbol
    {77, 10000}, // Mac Roman
    {78, 10001}, // Mac Shift Jis
    {79, 10003}, // Mac Hangul
    {80, 10008}, // Mac GB2312
    {81, 10002}, // Mac Big5
    {83, 10005}, // Mac Herbrew
    {84, 10004}, // Mac Arabic
    {85, 10006}, // Mac Greek
    {86, 10081}, // Mac Turkish
    {87, 10021}, // Mac Thai
    {88, 10029}, // Mac East Europe
    {89, 10007}, // Mac Russian
    {128, 932}, // Shift JIS
    {129, 949}, // Hangul
    {130, 1361}, // Johab
    {134, 936}, // GB2312
    {136, 950}, // Big5
    {161, 1253}, // Greek
    {162, 1254}, // Turkish
    {163, 1258}, // Viatnamese
    {177, 1255}, // Herbrew
    {178, 1256}, // Arabic
    {186, 1257}, // Baltic
    {204, 1251}, // Russian
    {222, 874}, // Thai
    {238, 1250}, // Eastern European
    {254, 437}, // PC 437
    {255, 850}, // OEM
};

int nRTFEncodings = SAL_N_ELEMENTS(aRTFEncodings);

} // namespace rtftok
} // namespace writerfilter

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */