WTF, someone wrote a LaTeX format for LuaMetaTeX already 3 years ago: https://github.com/zauguin/luametalatex (Herbert Voss just pointed me to it.) Hraban