* src/encoding.C
(Encoding::validate): Add the preamble stuff even if c can be encoded
in this encoding, since the inputenc package only maps the code point
c to a command, it does not make this command available.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17239
a592a061-630c-0410-9148-
cb99ea01b6c8
void Encoding::validate(char_type c, LaTeXFeatures & features) const
{
- if (c < start_encodable_)
- return;
-
- if (encodable_.find(c) != encodable_.end())
- return;
-
- // c cannot be encoded in this encoding
+ // Add the preamble stuff even if c can be encoded in this encoding,
+ // since the inputenc package only maps the code point c to a command,
+ // it does not make this command available.
CharInfoMap::const_iterator const it = unicodesymbols.find(c);
if (it != unicodesymbols.end() && !it->second.preamble.empty()) {
if (it->second.feature)