Re: [NTG-context] PDF Keywords in current beta

2009-07-20 Thread Hans Hagen

Andreas Schneider wrote:

Hello,

in the current beta the usage of the Keyword argument in the
\setupinteraction command causes lua to fail in line 136 of
lpdf-mis.lua:


local keywords = specification.keywords or "" if keywords ~= "" then
keywords = string.gsub("[%s,]+", " ")
lpdf.addtoinfo("Keywords",pdfunicode(keywords))
end




! LuaTeX
error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad
argument #3 to 'gsub' (string/function/table expected)



I don't know what is expected there since I don't know the PDF specs,
but I guess it's easily fixable ;-)


keywords = string.gsub(keywords, "[%s,]+", " ")


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF Keywords in current beta

2009-07-19 Thread Andreas Schneider
Hello,

in the current beta the usage of the Keyword argument in the
\setupinteraction command causes lua to fail in line 136 of
lpdf-mis.lua:


local keywords = specification.keywords or "" if keywords ~= "" then
keywords = string.gsub("[%s,]+", " ")
lpdf.addtoinfo("Keywords",pdfunicode(keywords))
end




! LuaTeX
error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad
argument #3 to 'gsub' (string/function/table expected)



I don't know what is expected there since I don't know the PDF specs,
but I guess it's easily fixable ;-)

Best Regards,
Andreas.

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___