diff options
Diffstat (limited to 'macros/luatex/generic/luatexja/src')
-rw-r--r-- | macros/luatex/generic/luatexja/src/ltj-base.lua | 9 | ||||
-rw-r--r-- | macros/luatex/generic/luatexja/src/luatexja.sty | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/macros/luatex/generic/luatexja/src/ltj-base.lua b/macros/luatex/generic/luatexja/src/ltj-base.lua index 41caef5b4c..4a95616777 100644 --- a/macros/luatex/generic/luatexja/src/ltj-base.lua +++ b/macros/luatex/generic/luatexja/src/ltj-base.lua @@ -226,9 +226,12 @@ end -- But sometimes we want to create only the precompiled cache, -- when its 'text' version is already present in LuaTeX-ja distribution. -require('lualibs-lpeg') -- string.split -require('lualibs-os') -- os.type -require('lualibs-gzip') -- gzip.* +if not os.type then require'lualibs-os' end +if not string.split then require'lualibs-lpeg' end +if not gzip then + if kpse.find_file('lualibs-util-zip', 'lua') then require'lualibs-util-zip' + else require'lualibs-gzip' end +end do local kpse_var_value = kpse.var_value diff --git a/macros/luatex/generic/luatexja/src/luatexja.sty b/macros/luatex/generic/luatexja/src/luatexja.sty index 0772c0fe3e..79590b906c 100644 --- a/macros/luatex/generic/luatexja/src/luatexja.sty +++ b/macros/luatex/generic/luatexja/src/luatexja.sty @@ -27,7 +27,7 @@ \newif\ifltj@disablejfam %%%% VERSION -\def\LuaTeXjaversion{20221002.0} +\def\LuaTeXjaversion{20221006.0} %% Check if LaTeX is used. \begingroup\expandafter\expandafter\expandafter\endgroup |