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.
22 typedef unsigned short int Uchar;
30 Encoding(string const & n, string const & l, Uchar const * e)
31 : Name_(n), LatexName_(l) {
32 for (int i = 0; i < 256; ++i)
33 encoding_table[i] = e[i];
36 string const & Name() const {
40 string const & LatexName() const {
44 Uchar ucs(unsigned char c) const {
45 return encoding_table[c];
53 Uchar encoding_table[256];
56 extern Encoding symbol_encoding;
61 typedef std::map<string, Encoding> EncodingList;
65 void read(string const & filename);
67 Encoding const * getEncoding(string const & encoding) const;
69 Encoding const * symbol_encoding() {
70 return &symbol_encoding_;
86 bool IsComposeChar_hebrew(unsigned char c);
89 bool IsComposeChar_arabic(unsigned char c);
92 bool is_arabic_special(unsigned char c);
95 bool is_arabic(unsigned char c);
98 unsigned char TransformChar(unsigned char c, Letter_Form form);
102 EncodingList encodinglist;
104 Encoding symbol_encoding_;
107 extern Encodings encodings;