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 docstring const process(char_type, TransManager &);
48 bool isAccentDefined(tex_accent, KmodInfo &) const;
52 void addDeadkey(tex_accent, docstring const &);
58 docstring const & match(char_type c);
60 void insertException(KmodException & exclist, char_type c,
61 docstring const & data, bool = false,
62 tex_accent = TEX_NOACCENT);
64 void freeException(KmodException & exclist);
69 std::map<char_type, docstring> keymap_;
71 std::map<tex_accent, KmodInfo> kmod_list_;
77 docstring const & Trans::match(char_type c)
79 std::map<char_type, docstring>::iterator it = keymap_.find(c);
80 if (it != keymap_.end()) {
83 static docstring dummy;