]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Typo
[lyx.git] / src / Encoding.cpp
index 0947c148c1e7f0dbd8b7c2c741a538c3179602f8..5c0681903593b475b4cb8e7f38b1ffec1e6e044a 100644 (file)
@@ -580,7 +580,7 @@ string const Encodings::TIPAShortcut(char_type c)
        return string();
 }
 
-
+// Return true, if `c` is a supported Greek or Cyrillic letter.
 bool Encodings::isKnownScriptChar(char_type const c, string & preamble)
 {
        CharInfoMap::const_iterator const it = unicodesymbols.find(c);
@@ -602,14 +602,14 @@ bool Encodings::isKnownScriptChar(char_type const c, string & preamble)
 
 bool Encodings::needsScriptWrapper(string const & script, string const & fontenc)
 {
+       // Note: the wrapper is not required with Unicode font encoding "TU".
+       // However, this function is not called with non-TeX (Unicode) fonts.
        if (script == "textgreek")
                return (fontenc != "LGR");
        if (script == "textcyrillic") {
                return (fontenc != "T2A" && fontenc != "T2B"
                        && fontenc != "T2C" && fontenc != "X2");
        }
-       if (script == "textbaltic")
-               return (fontenc != "L7x");
        return false;
 }