The lua-uni-algos library uses the kpse global in two files: lua-uni-normalize.lua and lua-uni-parse.lua. This works out in a format such as LaTeX, where kpse has already been loaded. However, in ConTeXt MkIV and LMTX, kpse is a library stub that causes a fatal error when find_file and other methods are called.
Consider the following document example.tex with an MWE for ConTeXt MkIV:
The
lua-uni-algos
library uses thekpse
global in two files:lua-uni-normalize.lua
andlua-uni-parse.lua
. This works out in a format such as LaTeX, wherekpse
has already been loaded. However, in ConTeXt MkIV and LMTX,kpse
is a library stub that causes a fatal error whenfind_file
and other methods are called.Consider the following document
example.tex
with an MWE for ConTeXt MkIV:Typesetting the MWE with the
context example
command produces the following error:We can replace the stub library by explicitly loading the external
kpse
library:Running
context example
again will produce a PDF documentexample.pdf
with the expected output: