> As for translating the filter note that Lua can't really handle UTF-8.
> There is some rudimentary support for converting codepoint number ↔
> UTF-8
> byte sequences and for iterating through a string of bytes
> representing
> UTF-8 encoded characters but no concept of chars as opposed to bytes.
> This
> may become a show stopper if you need to manipulate strings containing
> UTF-8 text.
Thanks, @BPJ, for the explanation. Apparently, Lua 5.3 onwards includes
UTF-8 support. Have you seen it? E.g.
https://q-syshelp.qsc.com/Content/Control_Scripting/Lua_5.3_Reference_Manual/Standard_Libraries/4_-_Basic_UTF-8_Support.htm
Yes, that is what I meant. It's very very basic. Notably pattern matching is still entirely byte oriented, except for the pattern `utf8.charpattern` which will match the bytes of any UTF-8 character. Pandoc adds some UTF-8 oriented functions, notably case changing functions, in the `pandoc.text` library, but that is all.