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.
24 typedef unsigned short int Uchar;
32 Encoding(std::string const & n, std::string const & l, Uchar const * e)
33 : Name_(n), LatexName_(l) {
34 for (int i = 0; i < 256; ++i)
35 encoding_table[i] = e[i];
38 std::string const & name() const {
42 std::string const & latexName() const {
46 Uchar ucs(unsigned char c) const {
47 return encoding_table[c];
53 std::string LatexName_;
55 Uchar encoding_table[256];
58 extern Encoding symbol_encoding;
63 typedef std::map<std::string, Encoding> EncodingList;
67 void read(std::string const & filename);
69 Encoding const * getEncoding(std::string const & encoding) const;
71 Encoding const * symbol_encoding() {
72 return &symbol_encoding_;
88 bool isComposeChar_hebrew(unsigned char c);
91 bool isComposeChar_arabic(unsigned char c);
94 bool is_arabic_special(unsigned char c);
97 bool is_arabic(unsigned char c);
100 unsigned char transformChar(unsigned char c, Letter_Form form);
104 EncodingList encodinglist;
106 Encoding symbol_encoding_;
109 extern Encodings encodings;