Настройка русского языка

This commit is contained in:
Andrei Astafev 2020-03-14 21:01:03 +03:00
parent 40cf89fee1
commit 8cb8305264

View File

@ -28,7 +28,6 @@
\XESPD@given@encodingfalse
\DeclareOption{russian}{\renewcommand{\XESPD@lang}{russian}}
\DeclareOption{ukrainian}{\renewcommand{\XESPD@lang}{ukrainian}}
\DeclareOption*{%
\PassOptionsToPackage{\CurrentOption}{inputenc}%
\XESPD@given@encodingtrue}
@ -41,12 +40,12 @@
\RequirePackage{textcase}
\RequirePackage{xltxtra}
\RequirePackage{xunicode}
\RequirePackage{xecyr}
\RequirePackage{polyglossia}
\RequirePackage{xecyr}
\setmainlanguage{\XESPD@lang}
\let\cyr\relax
\setkeys{\XESPD@lang}{babelshorthands=true}
\setotherlanguage{english}
\setkeys{\XESPD@lang}{babelshorthands=true,indentfirst=true}
\else
\RequirePackage{cmap}
\ifXESPD@given@encoding