On 30/10/2011 02:59, PhilipPirrip wrote:
Hi Vincent. Thanks for the reply. One day I hope there would emerge a
sort of an overview of the whole code, to help the new beginners.
I'm sure that making inset by coping some other shouldn't be that
hard. But then it comes to all sorts of things that are interconnected
(translations, input encodings, spell-checking), and it gets harder to
understand them all. For example, what would need to be changed if I
just introduce \begin{otherlanguage}{xyz} \end{otherlanguage} as the
environment of the inset?
Probably no source code change is required for that simple change. Have
a look at InsetFlex.
This pair is not present now in LyX (but there's a similar polyglossia
pair, yes). What if I want to disable foreign language underlining for
that inset?
Two ways:
1) The quick and simple way, check for the containing inset type when
the language underlining is done (in rowpainter.cpp IIRC).
2) Provide some kind of general Inset option for that (via a virtual
method in Inset.h)
How to tell the spell checker that the inset is using some other
language?
LyX is already checking the language before spell-checking.
Abdel.