Re: [Dev-luatex] [luatex] lua module search behaviour

2013-04-13 Thread Élie Roux
lua/luainit.w Thank you very much! Also, I just came across what seems to be a bug with ofm fonts with the attached file: $ kpsewhich -progname luatex -format ofm omarab.ofm /usr/share/texmf-texlive/fonts/ofm/public/omega/omarab.ofm $ aleph simpletfmofm.tex This is Aleph, Version 3.1415926

Re: [Dev-luatex] [luatex] lua module search behaviour

2013-04-13 Thread Élie Roux
Yes. But package.searchers[2] is quite trivial. In lua code, it would look like this: function search (name) altname = string.gsub(file,'.','/') filename = kpse.find_file(altname, 'lua') if not filename then filename = kpse.find_file(name, 'lua') end if not filename then return string.format("[k

[Dev-luatex] lua module search behaviour

2013-04-13 Thread Élie Roux
Dear all, I'm currently updating luatexbase, and I have a few questions: The first two are related to the behaviour when searching for "module.submodule" as "module/submodule.lua": - Am I right if I say that package.searchers[2] looks weel for it but kpse.find_file("module.submodule", 'lu

Re: [Dev-luatex] [luatex] lua module search behaviour

2013-04-13 Thread Taco Hoekwater
On 04/13/2013 12:56 PM, Élie Roux wrote: Yes. But package.searchers[2] is quite trivial. In lua code, it would look like this: function search (name) altname = string.gsub(file,'.','/') filename = kpse.find_file(altname, 'lua') if not filename then filename = kpse.find_file(name, 'lua') end if

Re: [Dev-luatex] [luatex] lua module search behaviour

2013-04-13 Thread Taco Hoekwater
On 04/13/2013 10:03 AM, Élie Roux wrote: Dear all, I'm currently updating luatexbase, and I have a few questions: The first two are related to the behaviour when searching for "module.submodule" as "module/submodule.lua": - Am I right if I say that package.searchers[2] looks weel for it but