[LyX/master] add local language switch (file format change)

Udi Fogiel udi.fogiel at proton.me
Sun Jul 12 23:03:21 UTC 2026


On Monday, July 13th, 2026 at 1:37 AM, Kornel Benko <kornel at lyx.org> wrote:

> Am Sun, 12 Jul 2026 21:24:43 +0000
> schrieb Udi Fogiel via lyx-devel <lyx-devel at lists.lyx.org>:
> 
> >
> > I'm not sure I quite understand. This commit does not add any new LaTeX code.
> > LyX already use \text???[...]{...} or \begin{???}[] ... \end{???}
> > with polyglossia.
> >
> > That said I'm not familiar at all with the code for adv-search so...
> >
> > Udi
> 
> Yes, latex has it, but lyx did not output this latex code (as far as I am aware of).

I'm pretty positive LyX did output this code before this commit. As I said, this commit does not change any LaTeX code the LyX outputs, it only adds the functionality to use inline language switch at the start of a paragraph. 

Whether the inline switch is \text<lang> or \foreignlanguage is not related to this commit.

In fact this commit should not change the LaTeX output of existing files, if the LaTeX (pdfTeX XeTeX or LuaTeX) output has changed, this is a bug regardless of language searching, can you provide an example? 

> Anyway, language searching is broken.
> 

Was it working with polyglossia before?

Udi


More information about the lyx-devel mailing list