Re: [NTG-context] remapper change in luatex-basics-gen.lua

2018-09-30 Thread Hans Hagen

On 9/30/2018 8:46 AM, Ulrike Fischer wrote:

Am Sun, 30 Sep 2018 01:20:48 +0200 schrieb Hans Hagen:



This is new compared to the state in 2/2017
  

which is quite a while ago ...


Yes. But I'm currently the maintainer of luaotfload and plan to sync
more regularly.


hm, isn't latex using kpse ? in generic this resolver is just for fonts


Yes, latex is using kpse and the resolver in generic is using it
too.

But the pgf code is doing something like

if resolver then
   resolver.findfile ...
else
   kpse ...
end

Imho (and after a night's sleep) I think that they meant something
like

if context then
   resolver.findfile ...
else
   kpse ...
end

and I will suggest them to change their code accordingly.

yes that makes sense, thanks

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] remapper change in luatex-basics-gen.lua

2018-09-30 Thread Ulrike Fischer
Am Sun, 30 Sep 2018 01:20:48 +0200 schrieb Hans Hagen:


>> This is new compared to the state in 2/2017
 
> which is quite a while ago ...

Yes. But I'm currently the maintainer of luaotfload and plan to sync
more regularly.  

> hm, isn't latex using kpse ? in generic this resolver is just for fonts 

Yes, latex is using kpse and the resolver in generic is using it
too.

But the pgf code is doing something like

if resolver then
  resolver.findfile ...
else
  kpse ...
end

Imho (and after a night's sleep) I think that they meant something
like

if context then
  resolver.findfile ...
else
  kpse ...
end

and I will suggest them to change their code accordingly. 

-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] remapper change in luatex-basics-gen.lua

2018-09-29 Thread Hans Hagen

On 9/29/2018 11:38 PM, Ulrike Fischer wrote:

in luatex-basics-gen.lua
the remapper maps lua to "tex":

local remapper = {
 otf= "opentype fonts",
 ttf= "truetype fonts",
 ttc= "truetype fonts",
 cid= "cid maps",
 cidmap = "cid maps",
  -- fea= "font feature files", -- no longer supported
 pfb= "type1 fonts",-- needed for vector loading
 afm= "afm",
 enc= "enc files",
 lua= "tex", --<<

which is quite a while ago ...


The remapper is then used in resolvers.findfile.

The change has been imported in latex with the new luaotfload and
now broke the function  "pgf_lookup_and_require" in the pgf
graphdrawing library which in its code uses resolvers.findfile --
probably so that it works also as context library
(http://minimals.contextgarden.net/current/modules/t-tikz/tex/generic/pgf/graphdrawing/tex/pgflibrarygraphdrawing.code.tex)

Due to the mapping of lua to the tex type
resolvers.findfile("layered","lua") no longer finds layered.lua.

Apart from telling the pgf people not to use resolvers.findfile like
this when latex is used, is there anything one could do in the
generic fontloader?
hm, isn't latex using kpse ? in generic this resolver is just for fonts 
(and this one is for lua font files - some demos - with luatex-plain)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] remapper change in luatex-basics-gen.lua

2018-09-29 Thread Ulrike Fischer
in luatex-basics-gen.lua
the remapper maps lua to "tex":

local remapper = {
otf= "opentype fonts",
ttf= "truetype fonts",
ttc= "truetype fonts",
cid= "cid maps",
cidmap = "cid maps",
 -- fea= "font feature files", -- no longer supported
pfb= "type1 fonts",-- needed for vector loading
afm= "afm",
enc= "enc files",
lua= "tex", --<