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, ... > For example, when I enter japanese, I get <uncodable character ...> in > my LaTeX if I don't mark it explicitly to japanese. Instead, can't we > just set the language to some default language for which this character > is encodable. Generally, Unicode characters should work independent of the text language. This works (mostly) in LyX. However, if your output encoding (i.e. LaTeX's input encoding) is set to UTF-8, the conversion is done by LaTeX's inputenc package that (partially) depends on the language setting. > It seems a bit annoying if you switch from english to japanes, you have > to change your inputmethod and to change the language. This topic came up with Greek/English as well. My recommendation is to create a keybinding that does both with just one key-combo (either as command-sequence in lyx or as an external script that changes the input method and pushs a language switch command to the lyxpipe). > We can even specify a secondary or tertiary language in the Document > Settings. This can then also be used to automatically set the language > based on the spellchecker results. > Vincent