On 12/22/2022 2:02 AM, Luis Rivera via Cygwin wrote:
While developing a package for LuaTeX with the texlive-collection, I
noticed that LuaTeX could not access the directories for OpenType
fonts;
```
$ luatex sloth
This is LuaTeX, Version 1.15.0 (TeX Live 2022/Cygwin)
restricted system commands enabled.
(./sloth.tex (/home/root/.local/share/texmf/tex/luatex/luatex85.sty)
(/usr/share/texmf-dist/tex/generic/yax/yax.tex
(/usr/share/texmf-dist/tex/generic/texapi/texapi.tex))
(/usr/share/texmf-dist/tex/generic/gates/gates.tex
(/usr/share/texmf-dist/tex/generic/texapi/texapi.tex)) (./lua.ptx) (./files.ptx
) (./fonts.ptx./fonts.ptxlua:285: cannot open .:/home/root/.config/texmf/fonts/
opentype/:/home/root/.cache/texmf/fonts/opentype/:/home/root/.local/share/texmf
/fonts/opentype/:/usr/share/texmf-site/fonts/opentype/:/etc/texmf/fonts/opentyp
e/:/var/lib/texmf/fonts/opentype/:/usr/share/texmf-dist/fonts/opentype/:/home/r
oot/.config/texmf/fonts/truetype/:/home/root/.cache/texmf/fonts/truetype/:/home
/root/.local/share/texmf/fonts/truetype/:/usr/share/texmf-site/fonts/truetype/:
/etc/texmf/fonts/truetype/:/var/lib/texmf/fonts/truetype/:/usr/share/texmf-dist
/fonts/truetype/:/cygdrive/c/windows/fonts/: No such file or directory
I'm not a luatex user, but I find the error message puzzling. It appears to be
referring to a colon-separated list of directories as though it were a single
file or directory name. Is there something in your package that's preventing
the colon from being recognized as a separator? Are you perhaps mixing Cygwin
and Windows path conventions?
stack traceback:
[C]: in function 'lfs.dir' > ./fonts.ptxlua:285: in local
'check_fonts'
./fonts.ptxlua:366: in main chunk
[C]: in function 'dofile'
[\directlua]:1: in main chunk.
\inputluafile ...ua {dofile(kpse.find_file("#1"))}
l.1 \inputluafile fonts.ptxlua
?
```
Which is weird, because my program works correctly in the windows
version of TeXLive, and `ls /cygdrive/c/windows/fonts` returns the
directory listing correctly.
I don't read the error message as referring to that directory alone.
Ken
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple