Hello Robert, nice job!
Just to let you know: the TeX without TeX was originally inspired by Yannis Haralambous' articles on the wiki and then extended. It was the base for my software (https://github.com/speedata/publisher). See the Lua source directory at https://github.com/speedata/publisher/tree/develop/src/lua which contains the complete logic. Patrick
