On 16. sep. 2011 16:00, Abdelrazak Younes wrote:
[...]
An example:

start a new document, main language is English, be default
write two words: Berlin Paris

Change the language of the first word to German (through Text Style).

Now the document is multilingual.

Yes: German and English

So far, so good.

Change the language of the whole document (Document Settings) to, say,
French (because you just realized that you didn't do that at the
beginning)
[...]
Question 2:
Why is the word Paris now marked as being in English (pure guess)?

because the word "Paris3" was initially in English and changling th
language of a documentdoesn't affect its existing content at all, only
the default language. I agree this can be misleading and we prbably need
an option to change th language of the contents as well. Please open an
enhancement request for that.

I don't think people work that way.
I.e. they don't write a multi-lingual document by changing the document language from time to time in order to add sections in another language.

When I write something multi-lingual, I set the document language to
the majority language, and set other languages explicitly through the character style dialog. I don't change the document language many times.

However, people sometime forget to set the document language at the beginning, when writing in some non-default language. Then they need to set the language later, so hyphenation and spell checking will work.

When I change the document language, I do expect the language for everything to change! Because anything not written with an explicit language is supposed to be in "document language", and it is supposed to be in "document language" after I change the document language too.

Stuff that is explicitly marked to be in some particular language should remain so, of course.

Doing it this way would need _less_ code than any scheme that mess with selectlanguage all over the place. Because no loop is needed - the document language is changed and that is all. Similiar to what happens if I use emacs on the LyX file and change the one line with "\language".

Helge Hafting




Reply via email to