You're welcome.Kotofanchik wrote: ↑May 16th, 2024, 9:25 am Understood. But apparently he is not at ease with the Cyrillic text. It turned out to be gobbledegook. Characters from the wrong code page were being output. but it seems that he is not needed now. Thanks for the tips.
Related link which might explain the issue (just skip the LuaLaTeX references):
https://tex.stackexchange.com/questions/666865/issue-with-string-lower-in-lua-code-with-cyrillic-lualatex
Unfortunately, this is tricky to fix, because of the restrictions when using Lua with Rainmeter, see the corresponding section at the bottom of this page:
https://docs.rainmeter.net/manual/lua-scripting/