MWAWFontConverter.hxx Source File documentation

MWAWFontConverter.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 /* This header contains code specific to a mac file :
35 * - a namespace used to convert Mac font characters in unicode
36 */
37
38 #ifndef MWAW_FONT_CONVERTER
39 # define MWAW_FONT_CONVERTER
40
41 # include <string>
42 # include <map>
43
44 # include "libmwaw_internal.hxx"
45
46 namespace MWAWFontConverterInternal
47 {
48 class State;
49 }
50
62 class MWAWFontConverter
63 {
64 public:
66 enum Encoding { E_DEFAULT, E_SJIS };
67
69 MWAWFontConverter();
71 ~MWAWFontConverter();
72
74 int getId(std::string const &name, std::string family="") const;
76 std::string getName(int macId) const;
78 void setCorrespondance(int macId, std::string const &name, std::string family="");
79
80 //
81 // Odt data
82 //
83
86 void getOdtInfo(int macId, std::string &name, int &deltaSize) const;
87
90 int unicode(int macId, unsigned char c) const;
91
94 int unicode(int macId, unsigned char c, MWAWInputStreamPtr &input) const;
95
98 int unicode(int macId, unsigned char c, unsigned char const *(&str), int len) const;
99 protected:
101 static std::string getValidName(std::string const &name);
102
104 mutable std::shared_ptr<MWAWFontConverterInternal::State> m_manager;
105 };
106
107 #endif
108 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWFontConverterInternal::Data::KnownConversion::m_unknown200Conv
ConversionData m_unknown200Conv
Internal and Low level: the converter for font 200.
Definition: MWAWFontConverter.cxx:814
MWAWFontConverterInternal::Data::s_symbolUnicode
static const int s_symbolUnicode[]
Internal and Low level: vector (char, unicode) for symbol font.
Definition: MWAWFontConverter.cxx:205
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWFontConverterInternal::Data::s_dingbatsUnicode
static const int s_dingbatsUnicode[]
Internal and Low level: vector (char, unicode) for dingbats font.
Definition: MWAWFontConverter.cxx:248
MWAWFontConverterInternal::Data::KnownConversion
Definition: MWAWFontConverter.cxx:635
MWAWFontConverter::E_DEFAULT
@ E_DEFAULT
Definition: MWAWFontConverter.hxx:66
MWAWFontConverter::E_SJIS
@ E_SJIS
Definition: MWAWFontConverter.hxx:66
MWAWFontConverterInternal::Data::s_romanUnicode
static const int s_romanUnicode[]
Internal and Low level: vector ( char, unicode) for roman font.
Definition: MWAWFontConverter.cxx:80
MWAWFontConverterInternal::State::UnicodeCache
small structure to speedup unicode
Definition: MWAWFontConverter.cxx:1050
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWFontConverterInternal::Data::KnownConversion::m_unknown107Conv
ConversionData m_unknown107Conv
Internal and Low level: the converter for font 107.
Definition: MWAWFontConverter.cxx:810
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1250Conv
ConversionData m_windowsCP1250Conv
Internal and Low level: the converter for Windows CP1250.
Definition: MWAWFontConverter.cxx:817
MWAWFontConverterInternal::Data::ConversionData
Internal and low level: a class to store a conversion map for character, ...
Definition: MWAWFontConverter.cxx:49
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1251Map
std::map< unsigned char, unsigned long > m_windowsCP1251Map
Internal and Low level: map char -> unicode for Windows CP1251.
Definition: MWAWFontConverter.cxx:764
MWAWFontConverterInternal::Data::KnownConversion::m_dingbatsMap
std::map< unsigned char, unsigned long > m_dingbatsMap
Internal and Low level: map char -> unicode for dingbats font.
Definition: MWAWFontConverter.cxx:742
MWAWFontConverterInternal::Data::KnownConversion::m_wingdingsMap
std::map< unsigned char, unsigned long > m_wingdingsMap
Internal and Low level: map char -> unicode for wingdings font.
Definition: MWAWFontConverter.cxx:752
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1258Conv
ConversionData m_windowsCP1258Conv
Internal and Low level: the converter for Windows CP1258.
Definition: MWAWFontConverter.cxx:833
MWAWFontConverterInternal::Data::KnownConversion::m_dingbatsConv
ConversionData m_dingbatsConv
Internal and Low level: the converter for dingbats font.
Definition: MWAWFontConverter.cxx:796
MWAWFontConverterInternal::State::getOdtInfo
void getOdtInfo(int macId, std::string &nm, int &deltaSize)
final font name and a delta which can be used to change the size if no name is found,...
Definition: MWAWFontConverter.cxx:1241
MWAWFontConverterInternal::State::UnicodeCache::UnicodeCache
UnicodeCache()
constructor
Definition: MWAWFontConverter.cxx:1052
MWAWFontConverter::MWAWFontConverter
MWAWFontConverter()
the constructor
Definition: MWAWFontConverter.cxx:1268
MWAWFontConverterInternal::Data::s_mathIncompleteUnicode
static const int s_mathIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for math font.
Definition: MWAWFontConverter.cxx:415
MWAWFontConverter.hxx
MWAWFontConverterInternal::State::getId
int getId(std::string const &name, std::string const &family="")
returns the identificator for a name, if not set creates one
Definition: MWAWFontConverter.cxx:985
MWAWFontConverterInternal::Data::KnownConversion::m_symbolMap
std::map< unsigned char, unsigned long > m_symbolMap
Internal and Low level: map char -> unicode for symbol font.
Definition: MWAWFontConverter.cxx:740
MWAWFontConverterInternal::Data::KnownConversion::m_unknown128Conv
ConversionData m_unknown128Conv
Internal and Low level: the converter for font 128.
Definition: MWAWFontConverter.cxx:812
MWAWFontConverterInternal::Data::KnownConversion::m_mathConv
ConversionData m_mathConv
Internal and Low level: the converter for math font.
Definition: MWAWFontConverter.cxx:800
MWAWFontConverterInternal::Data::KnownConversion::m_scientificMap
std::map< unsigned char, unsigned long > m_scientificMap
Internal and Low level: map char -> unicode for scientific font.
Definition: MWAWFontConverter.cxx:750
MWAWFontConverterInternal::Data::KnownConversion::m_scientificConv
ConversionData m_scientificConv
Internal and Low level: the converter for scientific font.
Definition: MWAWFontConverter.cxx:804
MWAWFontConverterInternal::State::m_uniqueId
int m_uniqueId
a int used to create new id for a name
Definition: MWAWFontConverter.cxx:1044
MWAWFontConverterInternal::State::UnicodeCache::m_nameIdCounter
long m_nameIdCounter
actual counter
Definition: MWAWFontConverter.cxx:1059
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1254Conv
ConversionData m_windowsCP1254Conv
Internal and Low level: the converter for Windows CP1254.
Definition: MWAWFontConverter.cxx:825
MWAWFontConverterInternal::State::UnicodeCache::m_macId
int m_macId
actual macId
Definition: MWAWFontConverter.cxx:1061
MWAWFontConverterInternal::Data::s_windowsCP1256Unicode
static const int s_windowsCP1256Unicode[]
Internal and Low Level: the Windows CP1256 encoding.
Definition: MWAWFontConverter.cxx:583
MWAWFontConverterInternal::Data::s_windowsCP1251Unicode
static const int s_windowsCP1251Unicode[]
Internal and Low Level: the Windows CP1251 encoding.
Definition: MWAWFontConverter.cxx:503
MWAWFontSJISConverter
a namespace used to convert Mac SJIS font characters in unicode
Definition: MWAWFontSJISConverter.hxx:47
MWAWFontConverterInternal::State::m_nameIdMap
std::map< std::string, int > m_nameIdMap
map font name -> sysid
Definition: MWAWFontConverter.cxx:1038
MWAWFontConverter::Encoding
Encoding
the character encoding type
Definition: MWAWFontConverter.hxx:66
MWAWFontConverterInternal::State::setCorrespondance
void setCorrespondance(int macId, std::string const &name, std::string family="")
fixes the name corresponding to an id
Definition: MWAWFontConverter.cxx:1018
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1257Conv
ConversionData m_windowsCP1257Conv
Internal and Low level: the converter for Windows CP1257.
Definition: MWAWFontConverter.cxx:831
MWAWFontConverterInternal::Data::KnownConversion::m_cyrillicConv
ConversionData m_cyrillicConv
Internal and Low level: the default converter: cyrillic.
Definition: MWAWFontConverter.cxx:785
MWAWFontConverterInternal::Data::KnownConversion::m_familyMap
std::map< std::string, std::string > m_familyMap
Internal and Low level: map font name -> family font name.
Definition: MWAWFontConverter.cxx:728
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1255Conv
ConversionData m_windowsCP1255Conv
Internal and Low level: the converter for Windows CP1255.
Definition: MWAWFontConverter.cxx:827
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1252Map
std::map< unsigned char, unsigned long > m_windowsCP1252Map
Internal and Low level: map char -> unicode for Windows CP1252.
Definition: MWAWFontConverter.cxx:766
MWAWFontConverterInternal::Data::KnownConversion::m_defaultConv
ConversionData m_defaultConv
Internal and Low level: the default converter: roman.
Definition: MWAWFontConverter.cxx:781
MWAWFontConverterInternal::Data::s_windowsCP1250Unicode
static const int s_windowsCP1250Unicode[]
Internal and Low Level: the Windows CP1250 encoding.
Definition: MWAWFontConverter.cxx:483
MWAWFontConverterInternal::Data::KnownConversion::m_turkishConv
ConversionData m_turkishConv
Internal and Low level: the default converter: turkish.
Definition: MWAWFontConverter.cxx:787
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1252Conv
ConversionData m_windowsCP1252Conv
Internal and Low level: the converter for Windows CP1252.
Definition: MWAWFontConverter.cxx:821
MWAWFontConverter::m_manager
std::shared_ptr< MWAWFontConverterInternal::State > m_manager
the main manager
Definition: MWAWFontConverter.hxx:104
MWAWFontConverterInternal::Data::KnownConversion::m_wingdingsConv
ConversionData m_wingdingsConv
Internal and Low level: the converter for wingdings font.
Definition: MWAWFontConverter.cxx:806
MWAWFontConverterInternal::State::getUnusedId
int getUnusedId()
returns an unused id
Definition: MWAWFontConverter.cxx:976
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1256Map
std::map< unsigned char, unsigned long > m_windowsCP1256Map
Internal and Low level: map char -> unicode for Windows CP1256.
Definition: MWAWFontConverter.cxx:774
MWAWFontConverterInternal::Data::s_unknown107IncompleteUnicode
static const int s_unknown107IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 107.
Definition: MWAWFontConverter.cxx:438
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1255Map
std::map< unsigned char, unsigned long > m_windowsCP1255Map
Internal and Low level: map char -> unicode for Windows CP1255.
Definition: MWAWFontConverter.cxx:772
MWAWFontConverterInternal::Data::ConversionData::m_encoding
MWAWFontConverter::Encoding m_encoding
the character encoding
Definition: MWAWFontConverter.cxx:69
MWAWFontConverterInternal::Data::KnownConversion::m_zapfChanceryConv
ConversionData m_zapfChanceryConv
Internal and Low level: the converter for zapfChancery font.
Definition: MWAWFontConverter.cxx:792
MWAWFontConverterInternal::Data::KnownConversion::getConversionMaps
const Data::ConversionData & getConversionMaps(std::string fName)
returns the conversion map which corresponds to a name, or the default map
Definition: MWAWFontConverter.cxx:922
MWAWFontConverterInternal::Data::KnownConversion::getDefault
const ConversionData & getDefault() const
return the default converter
Definition: MWAWFontConverter.cxx:706
MWAWFontConverterInternal::Data::s_windowsCP1253Unicode
static const int s_windowsCP1253Unicode[]
Internal and Low Level: the Windows CP1253 encoding.
Definition: MWAWFontConverter.cxx:531
MWAWFontConverter::unicode
int unicode(int macId, unsigned char c) const
converts a character in unicode
Definition: MWAWFontConverter.cxx:1316
libmwaw_internal.hxx
MWAWFontConverterInternal::Data::KnownConversion::KnownConversion
KnownConversion()
constructor
Definition: MWAWFontConverter.cxx:639
MWAWFontConverterInternal::Data::KnownConversion::m_SJISMap
std::map< unsigned char, unsigned long > m_SJISMap
Internal and Low level: simplified map char -> unicode for SJIS font.
Definition: MWAWFontConverter.cxx:754
MWAWFontConverterInternal::Data::KnownConversion::m_symbolConv
ConversionData m_symbolConv
Internal and Low level: the converter for symbol font.
Definition: MWAWFontConverter.cxx:794
MWAWFontConverterInternal::State::m_nameIdCounter
long m_nameIdCounter
Internal: a counter modified when a new correspondance name<->id is found.
Definition: MWAWFontConverter.cxx:1041
MWAWFontConverterInternal::Data::KnownConversion::initAMap
static void initAMap(int const *arr, size_t numElt, std::map< unsigned char, unsigned long > &map)
Internal and Low level: initializes a map with a vector of numElt elements (char, unicode)
Definition: MWAWFontConverter.cxx:715
MWAWFontConverterInternal::Data::KnownConversion::m_timeConv
ConversionData m_timeConv
Internal and Low level: the converter for times font.
Definition: MWAWFontConverter.cxx:790
MWAWFontConverterInternal::State::State
State()
the constructor
Definition: MWAWFontConverter.cxx:963
MWAWFontConverterInternal::Data::KnownConversion::m_cursiveConv
ConversionData m_cursiveConv
Internal and Low level: the converter for cursive font.
Definition: MWAWFontConverter.cxx:798
MWAWFontConverterInternal::State
the default font converter
Definition: MWAWFontConverter.cxx:959
MWAWFontConverterInternal::Data::KnownConversion::m_unknown128Map
std::map< unsigned char, unsigned long > m_unknown128Map
Internal and Low level: map char -> unicode for font 128.
Definition: MWAWFontConverter.cxx:758
MWAWFontConverterInternal::Data::KnownConversion::m_cyrillicMap
std::map< unsigned char, unsigned long > m_cyrillicMap
Internal and Low level: map char -> unicode for cyrillic font.
Definition: MWAWFontConverter.cxx:735
MWAWFontConverterInternal::State::m_unicodeCache
struct MWAWFontConverterInternal::State::UnicodeCache m_unicodeCache
MWAWFontConverterInternal::Data::KnownConversion::m_SJISConv
ConversionData m_SJISConv
Internal and Low level: the converter for SJIS font.
Definition: MWAWFontConverter.cxx:808
MWAWFontConverterInternal::Data::KnownConversion::m_unknown200Map
std::map< unsigned char, unsigned long > m_unknown200Map
Internal and Low level: map char -> unicode for font 200.
Definition: MWAWFontConverter.cxx:760
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1254Map
std::map< unsigned char, unsigned long > m_windowsCP1254Map
Internal and Low level: map char -> unicode for Windows CP1254.
Definition: MWAWFontConverter.cxx:770
MWAWFontConverter::getId
int getId(std::string const &name, std::string family="") const
returns an unique id > 255, if unknown
Definition: MWAWFontConverter.cxx:1301
MWAWFontConverterInternal::Data::KnownConversion::setFamily
void setFamily(std::string const &fName, std::string const &family)
set a family correspondance
Definition: MWAWFontConverter.cxx:700
MWAWFontConverterInternal::State::initMaps
void initMaps()
initializes the map
Definition: MWAWFontConverter.cxx:1069
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1253Conv
ConversionData m_windowsCP1253Conv
Internal and Low level: the converter for Windows CP1253.
Definition: MWAWFontConverter.cxx:823
MWAWFontConverterInternal::Data::KnownConversion::m_centralEuroConv
ConversionData m_centralEuroConv
Internal and Low level: the default converter: central european.
Definition: MWAWFontConverter.cxx:783
MWAWFontConverterInternal::Data::s_monotypeSortsUnicode
static const int s_monotypeSortsUnicode[]
Internal and Low level: vector (char, unicode) for Monotype Sorts font.
Definition: MWAWFontConverter.cxx:293
MWAWFontConverter::setCorrespondance
void setCorrespondance(int macId, std::string const &name, std::string family="")
fixes the name corresponding to an id
Definition: MWAWFontConverter.cxx:1296
MWAWFontConverterInternal::Data::ConversionData::ConversionData
ConversionData(std::map< unsigned char, unsigned long > &map, char const *odtName="", int delta=0)
constructor
Definition: MWAWFontConverter.cxx:51
MWAWFontConverterInternal::Data::s_SJISSimplifiedUnicode
static const int s_SJISSimplifiedUnicode[]
Internal and Low level: vector (char, unicode) for SJIS font (see MWAWFontSJISConverter )
Definition: MWAWFontConverter.cxx:455
MWAWFontConverterInternal::Data::s_cyrillicUnicode
static const int s_cyrillicUnicode[]
Internal and Low level: vector (char, unicode) for Cyrillic font.
Definition: MWAWFontConverter.cxx:166
MWAWFontConverterInternal::Data::s_windowsCP1257Unicode
static const int s_windowsCP1257Unicode[]
Internal and Low Level: the Windows CP1257 encoding.
Definition: MWAWFontConverter.cxx:602
MWAWFontConverter::~MWAWFontConverter
~MWAWFontConverter()
the destructor
Definition: MWAWFontConverter.cxx:1272
MWAWFontConverterInternal::Data::KnownConversion::m_mathMap
std::map< unsigned char, unsigned long > m_mathMap
Internal and Low level: map char -> unicode for math font.
Definition: MWAWFontConverter.cxx:746
MWAWFontConverterInternal::State::m_idNameMap
std::map< int, std::string > m_idNameMap
map sysid -> font name
Definition: MWAWFontConverter.cxx:1036
MWAWFontConverterInternal::Data::s_centralEuroUnicode
static const int s_centralEuroUnicode[]
Internal and Low level: vector (char, unicode) for Central european font.
Definition: MWAWFontConverter.cxx:133
MWAWFontConverterInternal::State::updateCache
bool updateCache(int macId)
try to update the cache
Definition: MWAWFontConverter.cxx:1186
MWAWFontConverterInternal
Internal namespace used to store the data used by MWAWFontConverterInternal.
Definition: MWAWFontConverter.cxx:43
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1251Conv
ConversionData m_windowsCP1251Conv
Internal and Low level: the converter for Windows CP1251.
Definition: MWAWFontConverter.cxx:819
MWAWFontConverterInternal::Data::KnownConversion::m_centralEuroMap
std::map< unsigned char, unsigned long > m_centralEuroMap
Internal and Low level: map char -> unicode for central european font.
Definition: MWAWFontConverter.cxx:733
MWAWFontConverterInternal::Data::s_unknown128IncompleteUnicode
static const int s_unknown128IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 128.
Definition: MWAWFontConverter.cxx:444
MWAWFontConverterInternal::Data::ConversionData::m_deltaSize
int m_deltaSize
the size delta: odtSize = fSize + deltaSize
Definition: MWAWFontConverter.cxx:75
MWAWFontConverterInternal::Data::KnownConversion::m_monotypeSortsMap
std::map< unsigned char, unsigned long > m_monotypeSortsMap
Internal and Low level: map char -> unicode for monotypeSorts font.
Definition: MWAWFontConverter.cxx:748
MWAWFontConverterInternal::Data::KnownConversion::m_cursiveMap
std::map< unsigned char, unsigned long > m_cursiveMap
Internal and Low level: map char -> unicode for cursive font.
Definition: MWAWFontConverter.cxx:744
MWAWFontConverterInternal::Data::ConversionData::ConversionData
ConversionData(std::map< unsigned char, unsigned long > &map, MWAWFontConverter::Encoding encoding, char const *odtName="", int delta=0)
constructor for different encoding
Definition: MWAWFontConverter.cxx:60
MWAWFontConverterInternal::State::m_sjisConverter
std::shared_ptr< MWAWFontSJISConverter > m_sjisConverter
a SJIS convertor to convert Shit-JIS font
Definition: MWAWFontConverter.cxx:1047
MWAWFontConverterInternal::State::unicode
int unicode(int macId, unsigned char c)
Definition: MWAWFontConverter.cxx:1201
MWAWFontConverterInternal::Data::s_windowsCP1255Unicode
static const int s_windowsCP1255Unicode[]
Internal and Low Level: the Windows CP1255 encoding.
Definition: MWAWFontConverter.cxx:564
MWAWFontConverterInternal::Data::s_unknown200IncompleteUnicode
static const int s_unknown200IncompleteUnicode[]
Internal and Low level: vector (char, unicode) for font 200.
Definition: MWAWFontConverter.cxx:450
MWAWFontConverter::getValidName
static std::string getValidName(std::string const &name)
check if a string is valid, if not, convert it to a valid string
Definition: MWAWFontConverter.cxx:1277
MWAWFontConverterInternal::Data::s_windowsCP1254Unicode
static const int s_windowsCP1254Unicode[]
Internal and Low Level: the Windows CP1254 encoding.
Definition: MWAWFontConverter.cxx:552
MWAWFontConverterInternal::Data::s_scientificIncompleteUnicode
static const int s_scientificIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for scientific font.
Definition: MWAWFontConverter.cxx:426
MWAWFontConverterInternal::State::UnicodeCache::m_conv
const MWAWFontConverterInternal::Data::ConversionData * m_conv
actual convertor
Definition: MWAWFontConverter.cxx:1063
MWAWFontConverter
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:62
MWAWFontConverterInternal::Data::ConversionData::m_name
std::string m_name
the odt font name (if empty used the name)
Definition: MWAWFontConverter.cxx:73
MWAWFontConverterInternal::Data::KnownConversion::m_unknown107Map
std::map< unsigned char, unsigned long > m_unknown107Map
Internal and Low level: map char -> unicode for font 107.
Definition: MWAWFontConverter.cxx:756
MWAWFontConverter::getOdtInfo
void getOdtInfo(int macId, std::string &name, int &deltaSize) const
final font name and a delta which can be used to change the size if no name is found,...
Definition: MWAWFontConverter.cxx:1311
MWAWFontConverterInternal::Data::s_windowsCP1258Unicode
static const int s_windowsCP1258Unicode[]
Internal and Low Level: the Windows CP1258 encoding.
Definition: MWAWFontConverter.cxx:620
MWAWFontConverterInternal::State::getName
std::string getName(int macId)
returns the name corresponding to an id or return std::string("")
Definition: MWAWFontConverter.cxx:996
MWAWFontConverterInternal::Data::ConversionData::m_conversion
std::map< unsigned char, unsigned long > & m_conversion
the conversion map character -> unicode
Definition: MWAWFontConverter.cxx:71
MWAWFontConverterInternal::Data::s_turkishUnicode
static const int s_turkishUnicode[]
Internal and Low level: vector (char, unicode) for Turkish font ( diff to mac roman)
Definition: MWAWFontConverter.cxx:199
MWAWFontSJISConverter.hxx
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1257Map
std::map< unsigned char, unsigned long > m_windowsCP1257Map
Internal and Low level: map char -> unicode for Windows CP1257.
Definition: MWAWFontConverter.cxx:776
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1256Conv
ConversionData m_windowsCP1256Conv
Internal and Low level: the converter for Windows CP1256.
Definition: MWAWFontConverter.cxx:829
MWAWFontConverterInternal::Data::KnownConversion::m_monotypeSortsConv
ConversionData m_monotypeSortsConv
Internal and Low level: the converter for monotypeSorts font.
Definition: MWAWFontConverter.cxx:802
MWAWFontConverterInternal::Data::KnownConversion::m_romanMap
std::map< unsigned char, unsigned long > m_romanMap
Internal and Low level: map char -> unicode for roman font.
Definition: MWAWFontConverter.cxx:731
MWAWFontConverter::getName
std::string getName(int macId) const
returns empty string if unknown
Definition: MWAWFontConverter.cxx:1306
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1250Map
std::map< unsigned char, unsigned long > m_windowsCP1250Map
Internal and Low level: map char -> unicode for Windows CP1250.
Definition: MWAWFontConverter.cxx:762
MWAWFontConverterInternal::Data::KnownConversion::m_turkishMap
std::map< unsigned char, unsigned long > m_turkishMap
Internal and Low level: map char -> unicode for turkish font.
Definition: MWAWFontConverter.cxx:737
MWAWFontConverterInternal::Data::s_windowsCP1252Unicode
static const int s_windowsCP1252Unicode[]
Internal and Low Level: the Windows CP1252 encoding.
Definition: MWAWFontConverter.cxx:523
MWAWFontConverterInternal::Data::s_cursiveIncompleteUnicode
static const int s_cursiveIncompleteUnicode[]
Internal and Low level: vector (char, unicode) for cursive font.
Definition: MWAWFontConverter.cxx:407
MWAWFontConverterInternal::Data::KnownConversion::initMaps
void initMaps()
Internal and Low level: initializes all the conversion maps.
Definition: MWAWFontConverter.cxx:838
MWAWFontConverterInternal::Data::KnownConversion::m_convertMap
std::map< std::string, ConversionData const * > m_convertMap
the conversiont map fName -> ConversionData
Definition: MWAWFontConverter.cxx:725
MWAWFontConverterInternal::Data::s_wingdingsUnicode
static const int s_wingdingsUnicode[]
Internal and Low level: vector (char, unicode) for wingdings font.
Definition: MWAWFontConverter.cxx:350
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1253Map
std::map< unsigned char, unsigned long > m_windowsCP1253Map
Internal and Low level: map char -> unicode for Windows CP1253.
Definition: MWAWFontConverter.cxx:768
MWAWFontConverterInternal::Data::KnownConversion::m_windowsCP1258Map
std::map< unsigned char, unsigned long > m_windowsCP1258Map
Internal and Low level: map char -> unicode for Windows CP1258.
Definition: MWAWFontConverter.cxx:778
MWAWFontConverterInternal::State::m_knownConversion
MWAWFontConverterInternal::Data::KnownConversion m_knownConversion
the basic conversion map
Definition: MWAWFontConverter.cxx:1034