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>
12 #include <rtl/textenc.h>
14 namespace writerfilter::rtftok
16 // See RTF spec v1.9.1, page 19
17 RTFEncoding
const aRTFEncodings
[] = {
18 // charset codepage Windows / Mac name
22 { 77, 10000 }, // Mac Roman
23 { 78, 10001 }, // Mac Shift Jis
24 { 79, 10003 }, // Mac Hangul
25 { 80, 10008 }, // Mac GB2312
26 { 81, 10002 }, // Mac Big5
27 { 83, 10005 }, // Mac Herbrew
28 { 84, 10004 }, // Mac Arabic
29 { 85, 10006 }, // Mac Greek
30 { 86, 10081 }, // Mac Turkish
31 { 87, 10021 }, // Mac Thai
32 { 88, 10029 }, // Mac East Europe
33 { 89, 10007 }, // Mac Russian
34 { 128, 932 }, // Shift JIS
35 { 129, 949 }, // Hangul
36 { 130, 1361 }, // Johab
37 { 134, 936 }, // GB2312
39 { 161, 1253 }, // Greek
40 { 162, 1254 }, // Turkish
41 { 163, 1258 }, // Vietnamese
42 { 177, 1255 }, // Herbrew
43 { 178, 1256 }, // Arabic
44 { 186, 1257 }, // Baltic
45 { 204, 1251 }, // Russian
47 { 238, 1250 }, // Eastern European
48 { 254, 437 }, // PC 437
52 int nRTFEncodings
= SAL_N_ELEMENTS(aRTFEncodings
);
54 RTFFontNameSuffix
const aRTFFontNameSuffixes
[] = {
55 { "Baltic", RTL_TEXTENCODING_MS_1257
}, { "CE", RTL_TEXTENCODING_MS_1250
},
56 { "Cyr", RTL_TEXTENCODING_MS_1251
}, { "Greek", RTL_TEXTENCODING_MS_1253
},
57 { "Tur", RTL_TEXTENCODING_MS_1254
}, { "(Hebrew)", RTL_TEXTENCODING_MS_1255
},
58 { "(Arabic)", RTL_TEXTENCODING_MS_1256
}, { "(Vietnamese)", RTL_TEXTENCODING_MS_1258
},
59 { "", RTL_TEXTENCODING_DONTKNOW
} // End of array
62 } // namespace writerfilter::rtftok
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */