On 2011-05-06, Jean-Marc Lasgouttes wrote:
> Le 06/05/2011 21:18, Guenter Milde a écrit :
>>> I am sure Qt gives us this information. We should react to OS-level
>>> language change. This is probably trivial.

>> There are some tricky points: the OS typically switches keyboard
>> layout, but the mapping of keyboard-layout to intended document
>> language is ambiguous.

> My ideaq was to use QApplication::keyboardInputLocale and hook to the 
> event sent when this changes.

>> For languages using different scripts, I like the idea to set up a
>> secondary (and maybe tertiary ...) language:

>> Each language setting can be connected to a script, using this script
>> would automatically switch the document language, if a letter from the
>> the specified script is used (using the default language for
>> non-specified characters like punktuation)

> Isn't it very complicated? Do we need this? The primary users are 
> english/hebrew people IMO.

And Greek users with traditional (TeX-fonts) LaTeX: If the language is
set to Greek, Latin characters are converted to Greek ones.
Auto-switching the language would allow expected results with Unicode
input of mixed Greek/non-Greek text.

Günter

Reply via email to