On Fri, Jul 27, 2001 at 12:03:04PM +0200, Juergen Vigna wrote:
>
> On 27-Jul-2001 Jean-Marc Lasgouttes wrote:
>
> > And it should probably not be output in the .lyx file. Probably a few
> > changes in lyxfont.C will be enough.
>
> It HAS to be outputed, BUT as the document_wide language, otherwise we're
> not able to switch back and remain in the previously defined language!
Why the language in insetERT is changed to ignore_language ???
The correct way for implementing insetERT is to have an InsetEditor and use
it instead of insetText. Currently, I think that the cleanest solution is to
set the language inside inserERT to the language of the document.
Also, when converting the old insetInfo to an insetNote, the language
in the inset should be set to the language of the document
(or maybe to the language of current paragraph ??),
except when that language is a RTL language (Hebrew/Arabic),
and in that case the language should be set to English.
Another problem with insetERT is that it generates the following lines in
the .lyx file:
\family typewriter
\color latex
A possible solution is to write an InsetERT::write method, which just writes
the text in the inset paragraphs (replacing \ by \backslash etc.).