Martin Vermeer wrote:
...and here (drum roll) is the patch...
I appreciate the effort, for the issue is annoying when writing in a
nondefault language. Something is missing though:
1. Create new document. (Default language here is Norwegian)
2. Set the Document language to Swedish before typing anything at all
3. Note that the cursor now has the dreaded underline . . .
4. Type a few words of plain text - note the blue underlining.
According to lyx, the text typed is in Norwegian language, which
is why it is correctly underlined in this Swedish document. The problem
is that I never actually asked for Norwegian language. :-(
Looking at the .lyx, I see the text preceeded by unrequested "\lang norsk"
(which selects norwegian language).
5. Insert a table
6. Notice that the entire first row of the table has the blue underline,
but not the rest.
7. Fill in the table, note that the underlining doesn't change.
Moving the cursor around the table, none of the cells indicate a
nondefault language. Not the underlined first row, not the non-underlined
other rows.
Looking at the .lyx, I see a "\lang norsk" in front of the table, but
nothing
inside the table cells. So the table is part of a "norwegian" paragraph,
probably the reason for the strange underline. This is a separate problem,
a table should not be underlined this way . . .
None of the cells have a language specifier inside them.
Further testing when you provide your next patch . . .
Helge Hafting