]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Let tm be a reference here as elsewhere
[lyx.git] / src / Encoding.cpp
index 9966e710d8f8ed6201187079c1c923ce668b409a..026ad3c43e190d8bbe48889d069a4cb948b5b45b 100644 (file)
@@ -588,7 +588,8 @@ bool Encodings::isKnownScriptChar(char_type const c, string & preamble)
        if (it == unicodesymbols.end())
                return false;
 
-       if (it->second.textpreamble() != "textgreek" && it->second.textpreamble() != "textcyr")
+       if (it->second.textpreamble() != "textgreek"
+           && it->second.textpreamble() != "textcyrillic")
                return false;
 
        if (preamble.empty()) {
@@ -603,12 +604,10 @@ bool Encodings::needsScriptWrapper(string const & script, string const & fontenc
 {
        if (script == "textgreek")
                return (fontenc != "LGR");
-       if (script == "textcyr") {
+       if (script == "textcyrillic") {
                return (fontenc != "T2A" && fontenc != "T2B"
                        && fontenc != "T2C" && fontenc != "X2");
        }
-       if (script == "textbaltic")
-               return (fontenc != "L7x");
        return false;
 }