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"
23 namespace support { class FileName; }
31 Encoding(std::string const & n, std::string const & l,
32 std::string const & i)
33 : Name_(n), LatexName_(l), iconvName_(i)
37 std::string const & name() const { return Name_; }
39 std::string const & latexName() const { return LatexName_; }
41 std::string const & iconvName() const { return iconvName_; }
46 std::string LatexName_;
48 std::string iconvName_;
54 typedef std::map<std::string, Encoding> EncodingList;
58 void read(support::FileName const & filename);
59 /// Get encoding from LyX name \p name
60 Encoding const * getFromLyXName(std::string const & name) const;
61 /// Get encoding from LaTeX name \p name
62 Encoding const * getFromLaTeXName(std::string const & name) const;
76 static bool isComposeChar_hebrew(char_type c);
78 static bool isComposeChar_arabic(char_type c);
80 static bool is_arabic_special(char_type c);
82 static bool is_arabic(char_type c);
84 static char_type transformChar(char_type c, Letter_Form form);
88 EncodingList encodinglist;
91 extern Encodings encodings;