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);
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()) {
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 == "textcyr") {
+ if (script == "textcyrillic") {
return (fontenc != "T2A" && fontenc != "T2B"
&& fontenc != "T2C" && fontenc != "X2");
}
- if (script == "textbaltic")
- return (fontenc != "L7x");
return false;
}