[lltx] [luatex] lua module search behaviour

Élie Roux elie.roux at telecom-bretagne.eu
Sun Apr 14 19:12:36 CEST 2013


> have you configured the variable
>
> OVFFONTS
>
> tfm/ofm nv/ovf both use the o variables

After some research, I managed to find a solution to my problems with 
the two attached file.

If I understand correctly:
  - when luatex sees the asked font omarab.ofm, it looks for 
omarab.ofm.ovp [1] and doesn't find it
  - with the toolchain aleph -> dvips, dvips looks for omarab.ovp and 
finds it [2]

It seems a bit weird to try to find omarab.ofm with type ovp, as:

$ kpsewhich -format ovp omarab.ofm
$ kpsewhich -format ovp omarab
/usr/share/texmf-texlive/fonts/ovp/public/omega/omarab.ovp

Now, this could be alright and it could be documented (I'm thinking of 
section 2.7.12 of the manual) that one should not call an ofm font with 
its extension.

But! there is another problem which I think is related: if I use 
ConTeXt's fonts*.lua files of any version, I have to register the 
find_vf_file callback (with the same function as in my file) otherwise 
ofm files don't work, even when called without the ofm extension... So 
it might be related with something in LuaTeX, not ConTeXt, as ConTeXt 
just calls font.read_tfm and returns...

What do you think?

Thank you!
--
Elie

[1]: see the output of
luatex --kpathsea-debug=-1 tfmofm.tex 2>&1 |grep ovf |grep omarab
if you remove the callback

[2]: see the output of
dvips -d 3650 tfmofm.dvi 2>&1 |grep ovf |grep omarab
if you remove the first line of the .tex file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tfmofm.lua
Type: text/x-lua
Size: 275 bytes
Desc: not available
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20130414/9ae3ff0a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tfmofm.tex
Type: application/x-tex
Size: 75 bytes
Desc: not available
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20130414/9ae3ff0a/attachment.tex>


More information about the lualatex-dev mailing list