On 27/02/2010 16:45, Guenter Milde wrote:
On 2010-02-27, Vincent van Ravesteijn wrote:
Νίκος Αλεξανδρής schreef:
Would it be possible to set the language automatically when recognizing
a certain unicode range ?
While possible, it is ambiguous (and therefore not helpful):
* Cyrillic: Russian, Bulgarian, Serbian, Church Slavonic, Ukrainian, ...
* Latin: German, Dutch, Swedish, Vietnamese, ...
* Greek: polytonic or monotonic Greek, Coptic,
...
As Vincent already explained the idea would be to optionally define a
second (and maybe third) language for the document. The rule to
automatically set the language would be:
- first to check the unicode range: that would work when the two
languages use two different range; for example English and Russian but
not for Russian and Bulgarian, or Arabic and Farsi.
- second to check the spellchecker result: If a word is misspelled in
the first language but not the second, set the language automatically to
the second.
While this won't work for everybody, I reckon that this mechanism will
work for the majority of two language users.
Abdel.