* Widgets with luatex
@ 2008-04-08 7:59 Lutz Haseloff
2008-04-08 8:08 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Lutz Haseloff @ 2008-04-08 7:59 UTC (permalink / raw)
To: ntg-context
Hi Hans, Hi all,
I try to use widgets with luatex and ConTeXt MKIV.
If i try the example for a choice field from mwidget-s.pdf i get following
error:
javascript : loading script set fld
(C:/context/texmf-context/tex/context/base/java-fld.tex)
! LuaTeX error .../context/texmf-context/tex/context/base/colo-new.lua:429:
bad argument #3 to 'format' (string expected, got no value).
\PDFcolor ...lormodel , \thecolorattribute {#1}))}
\setFDFattributes ...space Tf\space \PDFcolor {#2}
}\doifelsenothing {#3} {\g...
\doFDFpresetchoicefield ...]\setFDFattributes [#5]
\setFDFvalues [#7][#4]\set...
\dopresetfield ...{preset\@@DriverFieldType field}
\fi \fi
\dosetupfield ...fieldoffset \hbox {\typesetfield
}} \vss }}\ifShowFieldLabe...
\dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
\iftrialtypesetting \else ...
...
l.6 Text text \field[Ugly] t
ext text.
?
My minimal testfile is:
% engine=luatex
\setupinteraction[state=start]
\starttext
\setupfield [UglySetup] [width=6em, height=1.2\lineheight, location=low]
\definefield [Ugly] [choice] [UglySetup] [ugly,awful,bad] [ugly]
Text text \field[Ugly] text text.
\stoptext
I use ConTeXt ver: 2008.03.24 23:24 MKIV fmt: 2008.4.2 int: english/english
and luatex Version snapshot-0.25.1-2008040121 (Web2C 7.5.6)
What is the (probabely my) error?
Greetings
Lutz
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Widgets with luatex
2008-04-08 7:59 Widgets with luatex Lutz Haseloff
@ 2008-04-08 8:08 ` Hans Hagen
2008-04-08 8:22 ` Lutz Haseloff
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2008-04-08 8:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Lutz Haseloff wrote:
> Hi Hans, Hi all,
>
> I try to use widgets with luatex and ConTeXt MKIV.
>
> If i try the example for a choice field from mwidget-s.pdf i get following
> error:
>
> javascript : loading script set fld
> (C:/context/texmf-context/tex/context/base/java-fld.tex)
> ! LuaTeX error .../context/texmf-context/tex/context/base/colo-new.lua:429:
that line should be ...
return format("%s g %s G",default or 0,default or 0)
you need to remake the format
-----------------------------------------------------------------
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] 3+ messages in thread
* Re: Widgets with luatex
2008-04-08 8:08 ` Hans Hagen
@ 2008-04-08 8:22 ` Lutz Haseloff
0 siblings, 0 replies; 3+ messages in thread
From: Lutz Haseloff @ 2008-04-08 8:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
2008/4/8, Hans Hagen <pragma@wxs.nl>:
> Lutz Haseloff wrote:
> > Hi Hans, Hi all,
> >
> > I try to use widgets with luatex and ConTeXt MKIV.
> >
> > If i try the example for a choice field from mwidget-s.pdf i get following
> > error:
> >
> > javascript : loading script set fld
> > (C:/context/texmf-context/tex/context/base/java-fld.tex)
> > ! LuaTeX error .../context/texmf-context/tex/context/base/colo-new.lua:429:
>
>
> that line should be ...
>
> return format("%s g %s G",default or 0,default or 0)
>
> you need to remake the format
This works, thanks!
> -----------------------------------------------------------------
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2008-04-08 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08 7:59 Widgets with luatex Lutz Haseloff
2008-04-08 8:08 ` Hans Hagen
2008-04-08 8:22 ` Lutz Haseloff
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).