When using CJK, don't try to close a language that was never
opened before, such as when it is the main language.
bool const using_begin_end = runparams.use_polyglossia ||
!lang_end_command.empty();
if (!running_lang.empty() &&
+ (!using_begin_end || running_lang == openLanguageName()) &&
font.language()->encoding()->package() == Encoding::CJK) {
string end_tag = subst(lang_end_command,
"$$lang",
}
+string const & openLanguageName()
+{
+ OutputState * state = getOutputState();
+
+ return openLanguageName(state);
+}
+
+
void latexArgInsets(Paragraph const & par, otexstream & os,
OutputParams const & runparams, Layout::LaTeXArgMap const & latexargs, string const & prefix)
{
*/
void popLanguageName();
+/** Return a reference to the last active language opened with
+ polyglossia or when using begin/end commands. If none or when
+ using babel with only a begin command, return a reference to
+ an empty string.
+ */
+std::string const & openLanguageName();
+
/** Export optional and required arguments of the paragraph \p par.
Non-existing required arguments are output empty: {}.
*/
(2013ff.) instead of vietnam.ldf that was shipped with vntex previously
(bug 10743).
+- Fix issue with language nesting when using Asian languages (bug 10778).
+
* LYX2LYX