1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include "rtfcharsets.hxx"
11 #include <sal/macros.h>
13 namespace writerfilter
17 // See RTF spec v1.9.1, page 19
18 RTFEncoding
const aRTFEncodings
[] = {
19 // charset codepage Windows / Mac name
23 { 77, 10000 }, // Mac Roman
24 { 78, 10001 }, // Mac Shift Jis
25 { 79, 10003 }, // Mac Hangul
26 { 80, 10008 }, // Mac GB2312
27 { 81, 10002 }, // Mac Big5
28 { 83, 10005 }, // Mac Herbrew
29 { 84, 10004 }, // Mac Arabic
30 { 85, 10006 }, // Mac Greek
31 { 86, 10081 }, // Mac Turkish
32 { 87, 10021 }, // Mac Thai
33 { 88, 10029 }, // Mac East Europe
34 { 89, 10007 }, // Mac Russian
35 { 128, 932 }, // Shift JIS
36 { 129, 949 }, // Hangul
37 { 130, 1361 }, // Johab
38 { 134, 936 }, // GB2312
40 { 161, 1253 }, // Greek
41 { 162, 1254 }, // Turkish
42 { 163, 1258 }, // Vietnamese
43 { 177, 1255 }, // Herbrew
44 { 178, 1256 }, // Arabic
45 { 186, 1257 }, // Baltic
46 { 204, 1251 }, // Russian
48 { 238, 1250 }, // Eastern European
49 { 254, 437 }, // PC 437
53 int nRTFEncodings
= SAL_N_ELEMENTS(aRTFEncodings
);
56 } // namespace writerfilter
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */