LibreOffice Module writerfilter (master) 1
rtfcharsets.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#include "rtfcharsets.hxx"
11
12#include <iterator>
13
14#include <rtl/textenc.h>
15
17{
18// See RTF spec v1.9.1, page 19
20 // charset codepage Windows / Mac name
21 { 0, 1252 }, // ANSI
22 { 1, 0 }, // Default
23 { 2, 42 }, // Symbol
24 { 77, 10000 }, // Mac Roman
25 { 78, 10001 }, // Mac Shift Jis
26 { 79, 10003 }, // Mac Hangul
27 { 80, 10008 }, // Mac GB2312
28 { 81, 10002 }, // Mac Big5
29 { 83, 10005 }, // Mac Herbrew
30 { 84, 10004 }, // Mac Arabic
31 { 85, 10006 }, // Mac Greek
32 { 86, 10081 }, // Mac Turkish
33 { 87, 10021 }, // Mac Thai
34 { 88, 10029 }, // Mac East Europe
35 { 89, 10007 }, // Mac Russian
36 { 128, 932 }, // Shift JIS
37 { 129, 949 }, // Hangul
38 { 130, 1361 }, // Johab
39 { 134, 936 }, // GB2312
40 { 136, 950 }, // Big5
41 { 161, 1253 }, // Greek
42 { 162, 1254 }, // Turkish
43 { 163, 1258 }, // Vietnamese
44 { 177, 1255 }, // Herbrew
45 { 178, 1256 }, // Arabic
46 { 186, 1257 }, // Baltic
47 { 204, 1251 }, // Russian
48 { 222, 874 }, // Thai
49 { 238, 1250 }, // Eastern European
50 { 254, 437 }, // PC 437
51 { 255, 850 }, // OEM
52};
53
55
57 { "Baltic", RTL_TEXTENCODING_MS_1257 }, { "CE", RTL_TEXTENCODING_MS_1250 },
58 { "Cyr", RTL_TEXTENCODING_MS_1251 }, { "Greek", RTL_TEXTENCODING_MS_1253 },
59 { "Tur", RTL_TEXTENCODING_MS_1254 }, { "(Hebrew)", RTL_TEXTENCODING_MS_1255 },
60 { "(Arabic)", RTL_TEXTENCODING_MS_1256 }, { "(Vietnamese)", RTL_TEXTENCODING_MS_1258 },
61 { "", RTL_TEXTENCODING_DONTKNOW } // End of array
62};
63
64} // namespace writerfilter::rtftok
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RTFFontNameSuffix const aRTFFontNameSuffixes[]
Definition: rtfcharsets.cxx:56
RTFEncoding const aRTFEncodings[]
Definition: rtfcharsets.cxx:19
Font name can contain special suffixes used to determine encoding for given font table entry For exam...
Definition: rtfcharsets.hxx:29