mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 11:32:21 +00:00
fix bug #8209: polyglossia commands ignored partial source preview
This commit is contained in:
parent
622b0f9151
commit
8470e31355
@ -1432,6 +1432,7 @@ void Buffer::writeLaTeXSource(otexstream & os,
|
|||||||
LYXERR(Debug::LATEX, " Validating buffer...");
|
LYXERR(Debug::LATEX, " Validating buffer...");
|
||||||
LaTeXFeatures features(*this, params(), runparams);
|
LaTeXFeatures features(*this, params(), runparams);
|
||||||
validate(features);
|
validate(features);
|
||||||
|
runparams.use_polyglossia = features.usePolyglossia();
|
||||||
LYXERR(Debug::LATEX, " Buffer validation done.");
|
LYXERR(Debug::LATEX, " Buffer validation done.");
|
||||||
|
|
||||||
bool const output_preamble =
|
bool const output_preamble =
|
||||||
@ -1539,7 +1540,6 @@ void Buffer::writeLaTeXSource(otexstream & os,
|
|||||||
MacroSet parentMacros;
|
MacroSet parentMacros;
|
||||||
listParentMacros(parentMacros, features);
|
listParentMacros(parentMacros, features);
|
||||||
|
|
||||||
runparams.use_polyglossia = features.usePolyglossia();
|
|
||||||
// Write the preamble
|
// Write the preamble
|
||||||
runparams.use_babel = params().writeLaTeX(os, features,
|
runparams.use_babel = params().writeLaTeX(os, features,
|
||||||
d->filename.onlyPath());
|
d->filename.onlyPath());
|
||||||
@ -3232,6 +3232,12 @@ void Buffer::getSourceCode(odocstream & os, string const format,
|
|||||||
writePlaintextParagraph(*this,
|
writePlaintextParagraph(*this,
|
||||||
text().paragraphs()[par_begin], os, runparams, dummy);
|
text().paragraphs()[par_begin], os, runparams, dummy);
|
||||||
} else {
|
} else {
|
||||||
|
// We need to validate the Buffer params' features here
|
||||||
|
// in order to know if we should output polyglossia
|
||||||
|
// macros (instead of babel macros)
|
||||||
|
LaTeXFeatures features(*this, params(), runparams);
|
||||||
|
params().validate(features);
|
||||||
|
runparams.use_polyglossia = features.usePolyglossia();
|
||||||
// latex or literate
|
// latex or literate
|
||||||
otexstream ots(os, texrow);
|
otexstream ots(os, texrow);
|
||||||
latexParagraphs(*this, text(), ots, runparams);
|
latexParagraphs(*this, text(), ots, runparams);
|
||||||
|
@ -58,6 +58,8 @@ What's new
|
|||||||
- When using Turkish language, use the xkeyval package to avoid
|
- When using Turkish language, use the xkeyval package to avoid
|
||||||
incompatibilities (bug 2005).
|
incompatibilities (bug 2005).
|
||||||
|
|
||||||
|
- Do not ignore polyglossia commands in partial source preview (bug 8209).
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user