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)
+{
+ if (script == "textgreek")
+ return (fontenc != "LGR");
+ if (script == "textcyrillic") {
+ return (fontenc != "T2A" && fontenc != "T2B"
+ && fontenc != "T2C" && fontenc != "X2");
+ }
+ return false;
+}
+
+
bool Encodings::isMathAlpha(char_type c)
{
return mathalpha.count(c);