The string.lower
function Lua does not work with Cyrillic. How to fix it?
MWE:
% !TeX program = lualatex
\documentclass[12pt]{article}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=modern]{russian}
\setotherlanguage{english}
\defaultfontfeatures{Ligatures={TeX},Renderer=Basic}
\setmainfont{Times New Roman}
\def\ptestcyr{%
\directlua{
tex.print(string.lower("Supervisory Control And Data Acquisition"),"\string\\newline")
tex.print(string.lower("Ямало-Ненецкий Автономный Округ"))
}%
}
\begin{document}
\noindent\ptestcyr
\end{document}
\MakeLowercase{Ямало-Ненецкий Автономный Округ}
. Unrelated but don't useRenderer=Basic
, that is really basic and used in math.print(string.lower("Привет Мир"))
with Lua, it doesn't work. I think you write your own Lua function to do this.