Improve encoding GUI string

This commit is contained in:
Juergen Spitzmueller 2019-06-26 08:57:05 +02:00
parent 642b4acca1
commit 0a8294d426
2 changed files with 10 additions and 6 deletions

View File

@ -239,7 +239,7 @@ End
# A plain utf8 encoding that does not use the inputenc package
# nor the LyX-added conversions in lib/unicodesymbols.
# Such an encoding is required for XeTeX and LuaTeX.
Encoding utf8-plain utf8-plain "Pass-Through" UTF-8 variable none
Encoding utf8-plain utf8-plain "Direct" UTF-8 variable none
End
# Pure 7bit ASCII encoding (partially hardcoded in LyX)

View File

@ -2343,6 +2343,10 @@ void GuiDocument::encodingSwitched(int i)
langModule->unicodeEncodingCO->setVisible(i == EncodingSets::unicode);
langModule->autoEncodingCO->setVisible(i == EncodingSets::legacy);
langModule->customEncodingCO->setVisible(i == EncodingSets::custom);
if (tex_fonts)
langModule->unicodeEncodingCO->setItemText(1, qt_("Direct (No inputenc)"));
else
langModule->unicodeEncodingCO->setItemText(1, qt_("Direct (XeTeX/LuaTeX)"));
}
void GuiDocument::inputencodingToDialog()