* PDF Keywords in current beta
@ 2009-07-19 22:49 Andreas Schneider
2009-07-20 7:26 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schneider @ 2009-07-19 22:49 UTC (permalink / raw)
To: ntg-context
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:
<code snippet>
local keywords = specification.keywords or "" if keywords ~= "" then
keywords = string.gsub("[%s,]+", " ")
lpdf.addtoinfo("Keywords",pdfunicode(keywords))
end
</code snippet>
<error>
! LuaTeX
error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad
argument #3 to 'gsub' (string/function/table expected)
</error>
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PDF Keywords in current beta
2009-07-19 22:49 PDF Keywords in current beta Andreas Schneider
@ 2009-07-20 7:26 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2009-07-20 7:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
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:
>
> <code snippet>
> local keywords = specification.keywords or "" if keywords ~= "" then
> keywords = string.gsub("[%s,]+", " ")
> lpdf.addtoinfo("Keywords",pdfunicode(keywords))
> end
> </code snippet>
>
>
> <error>
> ! LuaTeX
> error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad
> argument #3 to 'gsub' (string/function/table expected)
> </error>
>
>
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-20 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-19 22:49 PDF Keywords in current beta Andreas Schneider
2009-07-20 7:26 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).