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"
27 Trans: holds a .kmap file
37 int Load(std::string
const & language
);
39 bool IsDefined() const;
41 std::string
const & GetName() const;
43 std::string
const process(char, TransManager
&);
45 bool isAccentDefined(tex_accent
, KmodInfo
&) const;
49 void AddDeadkey(tex_accent
, std::string
const &);
55 std::string
const & Match(unsigned char c
);
57 void InsertException(KmodException
& exclist
, char c
,
58 std::string
const & data
, bool = false,
59 tex_accent
= TEX_NOACCENT
);
61 void FreeException(KmodException
& exclist
);
66 std::map
<int, std::string
> keymap_
;
68 std::map
<int, KmodInfo
> kmod_list_
;
74 std::string
const & Trans::Match(unsigned char c
)
76 std::map
<int, std::string
>::iterator it
= keymap_
.find(c
);
77 if (it
!= keymap_
.end()) {
80 static std::string dummy
;