mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Small formatting and comments update.
This commit is contained in:
parent
9a1a806b60
commit
406b1e7fcf
@ -1250,7 +1250,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
|
||||
&& !runparams.isFullUnicode() && bparams.main_font_encoding() == "T1"
|
||||
&& latexSpecialT1(c, os, i, column))
|
||||
return;
|
||||
// NOTE: XeTeX and LuaTeX use EU1/2 (pre 2017) or TU (as of 2017) encoding
|
||||
// NOTE: "fontspec" (non-TeX fonts) sets the font encoding to "TU" (untill 2017 "EU1" or "EU2")
|
||||
else if (!runparams.inIPA && !running_font.language()->internalFontEncoding()
|
||||
&& runparams.isFullUnicode() && latexSpecialTU(c, os, i, column))
|
||||
return;
|
||||
|
@ -2071,7 +2071,7 @@ void GuiDocument::updateQuoteStyles(bool const set)
|
||||
|
||||
void GuiDocument::languageChanged(int i)
|
||||
{
|
||||
// some languages only work with polyglossia
|
||||
// some languages only work with Polyglossia
|
||||
Language const * lang = lyx::languages.getLanguage(
|
||||
fromqstr(langModule->languageCO->itemData(i).toString()));
|
||||
if (lang->babel().empty() && !lang->polyglossia().empty()) {
|
||||
@ -3853,9 +3853,8 @@ void GuiDocument::paramsToDialog()
|
||||
if (nn >= 0)
|
||||
listingsModule->packageCO->setCurrentIndex(nn);
|
||||
|
||||
|
||||
// Fonts
|
||||
// some languages only work with polyglossia/XeTeX
|
||||
// some languages only work with Polyglossia (which requires non-TeX fonts)
|
||||
Language const * lang = lyx::languages.getLanguage(
|
||||
fromqstr(langModule->languageCO->itemData(
|
||||
langModule->languageCO->currentIndex()).toString()));
|
||||
|
@ -109,7 +109,7 @@ namespace {
|
||||
/// Note that \p format may be unknown (i. e. an empty string)
|
||||
string findTargetFormat(string const & format, OutputParams const & runparams)
|
||||
{
|
||||
// Are we using latex or XeTeX/LuaTeX/pdflatex?
|
||||
// Are we latexing to DVI or PDF?
|
||||
if (runparams.flavor == OutputParams::PDFLATEX
|
||||
|| runparams.flavor == OutputParams::XETEX
|
||||
|| runparams.flavor == OutputParams::LUATEX) {
|
||||
|
@ -123,8 +123,7 @@ Encoding const * InsetListings::forcedEncoding(Encoding const * inner_enc,
|
||||
Encoding const * outer_enc) const
|
||||
{
|
||||
// The listings package cannot deal with multi-byte-encoded
|
||||
// glyphs, except if full-unicode aware backends
|
||||
// such as XeTeX or LuaTeX are used, and with pLaTeX.
|
||||
// glyphs, except for Xe/LuaTeX (with non-TeX fonts) or pLaTeX.
|
||||
// Minted can deal with all encodings.
|
||||
if (buffer().params().use_minted
|
||||
|| inner_enc->name() == "utf8-plain"
|
||||
@ -135,6 +134,8 @@ Encoding const * InsetListings::forcedEncoding(Encoding const * inner_enc,
|
||||
|
||||
// We try if there's a singlebyte encoding for the outer
|
||||
// language; if not, fall back to latin1.
|
||||
// Power-users can set inputenc to utf8-plain to bypass this workaround
|
||||
// and provide alternatives in the user-preamble.
|
||||
return (outer_enc->hasFixedWidth()) ?
|
||||
outer_enc : encodings.fromLyXName("iso8859-1");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user