]> git.lyx.org Git - lyx.git/blobdiff - src/encoding.C
Fix bug 2474; partial fix for 1777. Added last_reference_ member to QRef class and...
[lyx.git] / src / encoding.C
index e2a7436f957928aee9948c2393d42d761c508645..2bfb4a8a2fdb3aae7a02fb5be6bee78a3648a711 100644 (file)
@@ -179,11 +179,8 @@ docstring const Encoding::latexChar(char_type c) const
 }
 
 
-void Encoding::validate(char_type c, LaTeXFeatures & features) const
+void Encodings::validate(char_type c, LaTeXFeatures & features)
 {
-       // Add the preamble stuff even if c can be encoded in this encoding,
-       // since the inputenc package only maps the code point c to a command,
-       // it does not make this command available.
        CharInfoMap::const_iterator const it = unicodesymbols.find(c);
        if (it != unicodesymbols.end() && !it->second.preamble.empty()) {
                if (it->second.feature)
@@ -331,7 +328,7 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
                if (!info.preamble.empty())
                        info.feature = info.preamble[0] != '\\';
 
-               lyxerr[Debug::INFO]
+               LYXERR(Debug::INFO)
                        << "Read unicode symbol " << symbol << " '"
                        << to_utf8(info.command) << "' '" << info.preamble
                        << "' " << info.combining << ' ' << info.feature
@@ -363,7 +360,7 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
                        string const latexname = lex.getString();
                        lex.next();
                        string const iconvname = lex.getString();
-                       lyxerr[Debug::INFO] << "Reading encoding " << name << endl;
+                       LYXERR(Debug::INFO) << "Reading encoding " << name << endl;
                        encodinglist[name] = Encoding(name, latexname, iconvname);
                        if (lex.lex() != et_end)
                                lex.printError("Encodings::read: "