4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
19 #include "support/types.h"
29 Encoding(std::string const & n, std::string const & l,
30 std::string const & i)
31 : Name_(n), LatexName_(l), iconvName_(i)
35 std::string const & name() const { return Name_; }
37 std::string const & latexName() const { return LatexName_; }
39 std::string const & iconvName() const { return iconvName_; }
44 std::string LatexName_;
46 std::string iconvName_;
52 typedef std::map<std::string, Encoding> EncodingList;
56 void read(std::string const & filename);
57 /// Get encoding from LyX name \p name
58 Encoding const * getFromLyXName(std::string const & name) const;
59 /// Get encoding from LaTeX name \p name
60 Encoding const * getFromLaTeXName(std::string const & name) const;
74 static bool isComposeChar_hebrew(char_type c);
76 static bool isComposeChar_arabic(char_type c);
78 static bool is_arabic_special(char_type c);
80 static bool is_arabic(char_type c);
82 static char_type transformChar(char_type c, Letter_Form form);
86 EncodingList encodinglist;
89 extern Encodings encodings;