- // \textgreek is provided by babel globally if a Greek language/variety
- // is used in the document
- if (useBabel() && name == "textgreek"
- && params_.main_font_encoding() != "default") {
- // get main font encodings
- vector<string> fontencs = params_.font_encodings();
- // get font encodings of secondary languages
- getFontEncodings(fontencs, true);
- for (auto & fe : fontencs) {
- if (!Encodings::needsScriptWrapper(name, fe))
- return true;
- }
- }
- // FIXME: Analoguously, babel provides a command \textcyrillic, but
- // for some reason, we roll our own \textcyr definition
- // We should use \textcyrillic instead and only define it
- // if we do not use a respective language that features it (i.e.,
- // add "textcyrillic" to the test above.
- // FIXME: the "textbaltic" definitions are only needed if the context
- // font-encoding where the respective char is is not l7x.
- // We cannot check this here as we have no context information.