On Sat, Sep 24, 2016 at 11:06:55AM -0400, Scott Kostyshak wrote: > > > 957:export/doc/es/Additional_dvi3_systemF > > 962:export/doc/es/Additional_pdf4_systemF > > 964:export/doc/es/Additional_pdf5_systemF > > This means that these exports used to pass and after your commit now > they fail for me. Doing the export manually, I get the following error: > > ! Extra }, or forgotten \endgroup. > > To reproduce, open doc/es/Additional.lyx, go to Document > Settings > > Fonts and check "Use non-TeX fonts" and set them to e.g. FreeSans. > Then compile with PDF (LuaTeX). > > Note that there is a possibility that we introduced a hack to work > around the language nesting bug. I don't remember. I looked briefly for > e.g. an ERT '}' but didn't see anything strange.
I was missing that a language may also be changed elsewhere other than in output_latex.cpp. Now, when using polyglossia, each language switch is recorded in a stack. If a change is not registered, the code gets confused. In this case, a language was being closed without being opened first. Should be fixed at 8c14d9e0. -- Enrico