When the different languages I use in a document have different scripts, can I implicitly set language from the script?
Here is a MWE in English and Russian where the Russian works fine when marked up as it should. My wish is to be able to say that cyrillic script means Russian so that the last paragraph also is done right.
% -*- TeX-engine: xetex; -*-
\documentclass[draft]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{russian}
\setmainfont{Linux Libertine}
\begin{document}
\hsize 4.6cm
This is the main text is English.
\begin{russian}
Русский язык очень красивый.
\end{russian}
Русский язык очень красивый.
\end{document}