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);
return false;
if (it->second.textpreamble() != "textgreek"
- && it->second.textpreamble() != "textcyrillic"
- && it->second.textpreamble() != "textbaltic")
+ && it->second.textpreamble() != "textcyrillic")
return false;
- if (preamble.empty() && it->second.textpreamble() != "textbaltic") {
+ if (preamble.empty()) {
preamble = it->second.textpreamble();
return true;
}
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;
}