Dear LyX developers, during the LaTeX export, LyX adds to the preamble a number of required "features" (package loading commands and auxiliary definitions) if the function ``LaTeXFeatures::mustProvide(string const & name)`` return true.
I want to refine this test (part of bug #9637): The font-encoding switching definitions in "textcyr" and "textgreek" features are provided by Babel, if a corresponding language definition file is loaded: * textcyr: for languages with FontEncoding T2A * textgreek: for languages with FontEncoding LGR Plan: after all the languages used in the document are known, check which "FontEncodings" are provided by these languages. If LGR is in these font-encodings, textgreek is provided If T2A is in these font-encodings, textcyr is provided Problem: How to do this check-loop? How/where to add the provided features? Günter