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 Matthias Ettrich
11 * Full author contact details are available in file CREDITS.
17 #include "trans_decl.h"
30 Trans: holds a .kmap file
40 int load(std::string const & language);
42 bool isDefined() const;
44 std::string const & getName() const;
46 std::string const process(char, TransManager &);
48 bool isAccentDefined(tex_accent, KmodInfo &) const;
52 void addDeadkey(tex_accent, std::string const &);
58 std::string const & match(unsigned char c);
60 void insertException(KmodException & exclist, char c,
61 std::string const & data, bool = false,
62 tex_accent = TEX_NOACCENT);
64 void freeException(KmodException & exclist);
69 std::map<int, std::string> keymap_;
71 std::map<int, KmodInfo> kmod_list_;
77 std::string const & Trans::match(unsigned char c)
79 std::map<int, std::string>::iterator it = keymap_.find(c);
80 if (it != keymap_.end()) {
83 static std::string dummy;