]> git.lyx.org Git - features.git/blobdiff - src/Encoding.cpp
Output "textbaltic" definitions only if needed.
[features.git] / src / Encoding.cpp
index 0947c148c1e7f0dbd8b7c2c741a538c3179602f8..f6197af13d6ddd822e2b2036ea623e9c1c476e26 100644 (file)
@@ -589,10 +589,11 @@ bool Encodings::isKnownScriptChar(char_type const c, string & preamble)
                return false;
 
        if (it->second.textpreamble() != "textgreek"
-           && it->second.textpreamble() != "textcyrillic")
+           && it->second.textpreamble() != "textcyrillic"
+           && it->second.textpreamble() != "textbaltic")
                return false;
 
-       if (preamble.empty()) {
+       if (preamble.empty() && it->second.textpreamble() != "textbaltic") {
                preamble = it->second.textpreamble();
                return true;
        }