13 CharacterSet::CharacterSet()
19 CharacterSet::~CharacterSet()
25 void CharacterSet::freeMap()
38 bool CharacterSet::loadFile(const LString& fname)
42 if (fname.empty() || fname=="ascii")
43 return true; // ascii 7-bit
45 // open definition file
46 lyxerr.debug("Opening keymap file "+ fname+ ".cdef",Error::KBMAP);
47 LString filename = LibFileSearch("kbd", fname.c_str(), "cdef");
48 FilePtr f(filename, FilePtr::read);
49 if (filename.empty() || !f()) {
50 lyxerr.print("Unable to open keymap file");
51 return true; // no definition, use 7-bit ascii
64 while(lex.IsOK() && !error) {
67 case LyXLex::LEX_FEOF :
68 lyxerr.debug("End of parsing of .cdef file",
89 if (lyxerr.debugging(Error::KBMAP))
90 fprintf(stderr, "Chardef: %d to [%s]\n",
91 n, tempc->str.c_str());
100 bool CharacterSet::encodeString(LString& str)
115 LString CharacterSet::getName()