* luatex and interaction
@ 2008-04-07 9:59 Jean Magnan de Bornier
2008-04-07 12:25 ` Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Jean Magnan de Bornier @ 2008-04-07 9:59 UTC (permalink / raw)
To: ntg-context
Hi all,
There had been a thread about it in august, but it seems part of the problem is
still there: words or sentences appearing in interaction are split: here
is a minimal example:
..........................
\setupinteraction [state=start]
\starttext
L'un de ces documents
\useURL[bb][http://junon.univ-cezanne.fr/bornier/BBMon/bbmm.html][][The Nature of Boehm-Bawerk's Capital Market]\from[bb]\footnote{http://junon.univ-cezanne.fr/bornier/BBMon/bbmm.html} a été présenté en 2004
æ€ûœ
\stoptext
..........................
Same problem with bibliographical references when interaction is activated.
(Minimal version from minimals.contextgarden.net, up to date from yesterday.)
--
Jean
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2008-04-07 9:59 luatex and interaction Jean Magnan de Bornier
@ 2008-04-07 12:25 ` Taco Hoekwater
2008-04-08 11:32 ` Jean Magnan de Bornier
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2008-04-07 12:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jean Magnan de Bornier wrote:
> Hi all,
> There had been a thread about it in august, but it seems part of the problem is
> still there: words or sentences appearing in interaction are split: here
> is a minimal example:
This is caused by the macro \processisolatedwords that is not updated
for MkIV yet. An extra \language=-1 is needed to fix this:
\def\processisolatedwords#1#2%
{\bgroup
\fakecompoundhyphen
\dontcomplain
\forgetall
\nopenalties
\ifcase\isolatedwordsmode
\def\processisolatedwords##1##2{##2{##1}}% we split only once
\fi
\global\let\localbetweenisolatedwords\betweenisolatedwords
\setbox0\normalhbox
{\language=-1 % needed for MkIV
\ignorespaces#1%
\global\isolatedlastskip\lastskip}%
.....
Best wishes,
Taco
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2008-04-07 12:25 ` Taco Hoekwater
@ 2008-04-08 11:32 ` Jean Magnan de Bornier
2008-04-08 11:39 ` Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Jean Magnan de Bornier @ 2008-04-08 11:32 UTC (permalink / raw)
To: ntg-context
Le 07 avril à 14:25:51 Taco Hoekwater <taco@elvenkind.com> écrit notamment:
| Jean Magnan de Bornier wrote:
| > Hi all,
| > There had been a thread about it in august, but it seems part of the problem is
| > still there: words or sentences appearing in interaction are split: here
| > is a minimal example:
>
| This is caused by the macro \processisolatedwords that is not updated
| for MkIV yet. An extra \language=-1 is needed to fix this:
>
>
| \def\processisolatedwords#1#2%
| {\bgroup
| \fakecompoundhyphen
| \dontcomplain
| \forgetall
| \nopenalties
| \ifcase\isolatedwordsmode
| \def\processisolatedwords##1##2{##2{##1}}% we split only once
| \fi
| \global\let\localbetweenisolatedwords\betweenisolatedwords
| \setbox0\normalhbox
| {\language=-1 % needed for MkIV
| \ignorespaces#1%
| \global\isolatedlastskip\lastskip}%
| .....
>
>
| Best wishes,
[...]
Thanks, is there a way I can fix it on my machine (I don't know where this
macro is!) ?
--
Jean
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2008-04-08 11:32 ` Jean Magnan de Bornier
@ 2008-04-08 11:39 ` Taco Hoekwater
2008-04-08 12:22 ` Jean Magnan de Bornier
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2008-04-08 11:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jean Magnan de Bornier wrote:
>
> Thanks, is there a way I can fix it on my machine (I don't know where this
> macro is!) ?
It is in supp-box.tex, around line 1600. You only have to alter (
add the \language=-1 command) the line I marked with "needed for mkiv",
everything else can stay as it is.
Don't forget to remake the format(s)!
Best wishes,
Taco
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2008-04-08 11:39 ` Taco Hoekwater
@ 2008-04-08 12:22 ` Jean Magnan de Bornier
0 siblings, 0 replies; 10+ messages in thread
From: Jean Magnan de Bornier @ 2008-04-08 12:22 UTC (permalink / raw)
To: ntg-context
Le 08 avril à 13:39:31 Taco Hoekwater <taco@elvenkind.com> écrit notamment:
| Jean Magnan de Bornier wrote:
| >
| > Thanks, is there a way I can fix it on my machine (I don't know where this
| > macro is!) ?
>
| It is in supp-box.tex, around line 1600. You only have to alter (
| add the \language=-1 command) the line I marked with "needed for mkiv",
| everything else can stay as it is.
>
| Don't forget to remake the format(s)!
>
| Best wishes,
[...]
Thanks, it solves the problem (of course!)
--
Jean
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2007-08-07 20:23 ` Hans Hagen
@ 2007-08-07 20:38 ` Peter Rolf
0 siblings, 0 replies; 10+ messages in thread
From: Peter Rolf @ 2007-08-07 20:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans Hagen schrieb:
> Peter Rolf wrote:
>> Hans Hagen schrieb:
>>> Peter Rolf wrote:
>>>> hi,
>>>>
>>>> every peace of code with interactive elements gives me this error message
>>>>
>>>>
>>>> systems : begin file walkfield at line 5
>>>> (./walkfield.tuo)
>>>> javascript : loading script set fld
>>>> (r:/tex/texmf-local/tex/context/base/java-fld.tex)
>>>> ! Undefined control sequence.
>>>> \dopresetfieldsymbol #1->\checkobjectreferences
>>>> \doifobjectfoundelse
>>>> {SYM}{#...
>>>> \dosetupfield ...tfieldsymbol \@@DriverFieldValue
>>>> \setbox \scratchbox
>>>> \hbox ...
>>>> \dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
>>>> \iftrialtypesetting
>>>> \else ...
>>>> <to be read again>
>>>> \egroup
>>>> \globalcommacommand ...tackedfieldnumber ]\egroup
>>>> \bgroup
>>>> \globalprocesscommaitem ...globalcommacommand {#1}
>>>> \expandafter
>>>> \globalproces...
>>>> ....
>>>> l.43 \smashedvbox{\fieldstack[sequence]}
>>>> %
>>>> ?
>>>>
>>>> every interactive element should produce this error, but i can also send
>>>> a test file.
>>> % engine=luatex
>>>
>>> \starttext
>>>
>>> \setupinteraction[state=start]
>>>
>>> \chapter[first]{First}
>>>
>>> test \in{chapter}[second]
>>>
>>> \chapter[second]{Second}
>>>
>>> test \in{chapter}[first]
>>>
>>> \stoptext
>>>
>>> works ok here; nothing was changed in that code
>>>
>> same here. try the attached (old) example. works with pdftex, breaks
>> with luatex.
>
> hm, i need a way more minimal example (tracing)
>
ok, i will try to create a 'more minimal' example.
> can be a bug in luatex too, there are some known things
>
> Hans
>
>
> -----------------------------------------------------------------
> 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] 10+ messages in thread
* Re: luatex and interaction
2007-08-07 19:39 ` Peter Rolf
@ 2007-08-07 20:23 ` Hans Hagen
2007-08-07 20:38 ` Peter Rolf
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2007-08-07 20:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Peter Rolf wrote:
> Hans Hagen schrieb:
>> Peter Rolf wrote:
>>> hi,
>>>
>>> every peace of code with interactive elements gives me this error message
>>>
>>>
>>> systems : begin file walkfield at line 5
>>> (./walkfield.tuo)
>>> javascript : loading script set fld
>>> (r:/tex/texmf-local/tex/context/base/java-fld.tex)
>>> ! Undefined control sequence.
>>> \dopresetfieldsymbol #1->\checkobjectreferences
>>> \doifobjectfoundelse
>>> {SYM}{#...
>>> \dosetupfield ...tfieldsymbol \@@DriverFieldValue
>>> \setbox \scratchbox
>>> \hbox ...
>>> \dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
>>> \iftrialtypesetting
>>> \else ...
>>> <to be read again>
>>> \egroup
>>> \globalcommacommand ...tackedfieldnumber ]\egroup
>>> \bgroup
>>> \globalprocesscommaitem ...globalcommacommand {#1}
>>> \expandafter
>>> \globalproces...
>>> ....
>>> l.43 \smashedvbox{\fieldstack[sequence]}
>>> %
>>> ?
>>>
>>> every interactive element should produce this error, but i can also send
>>> a test file.
>>
>> % engine=luatex
>>
>> \starttext
>>
>> \setupinteraction[state=start]
>>
>> \chapter[first]{First}
>>
>> test \in{chapter}[second]
>>
>> \chapter[second]{Second}
>>
>> test \in{chapter}[first]
>>
>> \stoptext
>>
>> works ok here; nothing was changed in that code
>>
> same here. try the attached (old) example. works with pdftex, breaks
> with luatex.
hm, i need a way more minimal example (tracing)
can be a bug in luatex too, there are some known things
Hans
-----------------------------------------------------------------
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] 10+ messages in thread
* Re: luatex and interaction
2007-08-07 19:23 ` Hans Hagen
@ 2007-08-07 19:39 ` Peter Rolf
2007-08-07 20:23 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Peter Rolf @ 2007-08-07 19:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2522 bytes --]
Hans Hagen schrieb:
> Peter Rolf wrote:
>> hi,
>>
>> every peace of code with interactive elements gives me this error message
>>
>>
>> systems : begin file walkfield at line 5
>> (./walkfield.tuo)
>> javascript : loading script set fld
>> (r:/tex/texmf-local/tex/context/base/java-fld.tex)
>> ! Undefined control sequence.
>> \dopresetfieldsymbol #1->\checkobjectreferences
>> \doifobjectfoundelse
>> {SYM}{#...
>> \dosetupfield ...tfieldsymbol \@@DriverFieldValue
>> \setbox \scratchbox
>> \hbox ...
>> \dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
>> \iftrialtypesetting
>> \else ...
>> <to be read again>
>> \egroup
>> \globalcommacommand ...tackedfieldnumber ]\egroup
>> \bgroup
>> \globalprocesscommaitem ...globalcommacommand {#1}
>> \expandafter
>> \globalproces...
>> ....
>> l.43 \smashedvbox{\fieldstack[sequence]}
>> %
>> ?
>>
>> every interactive element should produce this error, but i can also send
>> a test file.
>
>
> % engine=luatex
>
> \starttext
>
> \setupinteraction[state=start]
>
> \chapter[first]{First}
>
> test \in{chapter}[second]
>
> \chapter[second]{Second}
>
> test \in{chapter}[first]
>
> \stoptext
>
> works ok here; nothing was changed in that code
>
same here. try the attached (old) example. works with pdftex, breaks
with luatex.
> -----------------------------------------------------------------
> 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
> ___________________________________________________________________________________
>
[-- Attachment #2: walkfield.tex --]
[-- Type: text/plain, Size: 1062 bytes --]
\setupoutput[pdftex]
\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\tracefieldstrue
\switchtobodyfont[96pt]
\def\FS#1{\framed[width=4cm,height=4cm,strut=no]{\red\bf#1}}%
\definesymbol [empty] []
\definesymbol [one] [\FS{1}]
\definesymbol [two] [\FS{2}]
\definesymbol [three] [\FS{3}]
\definesymbol [four] [\FS{4}]
\definesymbol [five] [\FS{5}]
\setupfield[interaction]
[width=4cm,height=4cm,
% frame=off,
framecolor=blue,
offset=none,% default offset causes different positioning of walk button and fieldstack
clickin=JS(Walk_Field{sequence})]
\definefield[Walk][check][interaction][empty][empty]
\definefieldstack[sequence]
[one,two,three,four,five]
[frame=off,
offset=none,% default offset causes different positioning of walk button and fieldstack
]
\defineproperty[interaction][layer][title=interaction, state=start]
\vbox{\normaloffinterlineskip
\smashedvbox{\fieldstack[sequence]}%
%
\startproperty[interaction]%
\field[Walk]
\stopproperty%
}
\blank[2cm]
\showfields
\stoptext
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 10+ messages in thread
* Re: luatex and interaction
2007-08-07 15:42 Peter Rolf
@ 2007-08-07 19:23 ` Hans Hagen
2007-08-07 19:39 ` Peter Rolf
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2007-08-07 19:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Peter Rolf wrote:
> hi,
>
> every peace of code with interactive elements gives me this error message
>
>
> systems : begin file walkfield at line 5
> (./walkfield.tuo)
> javascript : loading script set fld
> (r:/tex/texmf-local/tex/context/base/java-fld.tex)
> ! Undefined control sequence.
> \dopresetfieldsymbol #1->\checkobjectreferences
> \doifobjectfoundelse
> {SYM}{#...
> \dosetupfield ...tfieldsymbol \@@DriverFieldValue
> \setbox \scratchbox
> \hbox ...
> \dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
> \iftrialtypesetting
> \else ...
> <to be read again>
> \egroup
> \globalcommacommand ...tackedfieldnumber ]\egroup
> \bgroup
> \globalprocesscommaitem ...globalcommacommand {#1}
> \expandafter
> \globalproces...
> ....
> l.43 \smashedvbox{\fieldstack[sequence]}
> %
> ?
>
> every interactive element should produce this error, but i can also send
> a test file.
% engine=luatex
\starttext
\setupinteraction[state=start]
\chapter[first]{First}
test \in{chapter}[second]
\chapter[second]{Second}
test \in{chapter}[first]
\stoptext
works ok here; nothing was changed in that code
-----------------------------------------------------------------
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] 10+ messages in thread
* luatex and interaction
@ 2007-08-07 15:42 Peter Rolf
2007-08-07 19:23 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Peter Rolf @ 2007-08-07 15:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
hi,
every peace of code with interactive elements gives me this error message
systems : begin file walkfield at line 5
(./walkfield.tuo)
javascript : loading script set fld
(r:/tex/texmf-local/tex/context/base/java-fld.tex)
! Undefined control sequence.
\dopresetfieldsymbol #1->\checkobjectreferences
\doifobjectfoundelse
{SYM}{#...
\dosetupfield ...tfieldsymbol \@@DriverFieldValue
\setbox \scratchbox
\hbox ...
\dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
\iftrialtypesetting
\else ...
<to be read again>
\egroup
\globalcommacommand ...tackedfieldnumber ]\egroup
\bgroup
\globalprocesscommaitem ...globalcommacommand {#1}
\expandafter
\globalproces...
...
l.43 \smashedvbox{\fieldstack[sequence]}
%
?
every interactive element should produce this error, but i can also send
a test file.
best, peter
___________________________________________________________________________________
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] 10+ messages in thread
end of thread, other threads:[~2008-04-08 12:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-07 9:59 luatex and interaction Jean Magnan de Bornier
2008-04-07 12:25 ` Taco Hoekwater
2008-04-08 11:32 ` Jean Magnan de Bornier
2008-04-08 11:39 ` Taco Hoekwater
2008-04-08 12:22 ` Jean Magnan de Bornier
-- strict thread matches above, loose matches on Subject: below --
2007-08-07 15:42 Peter Rolf
2007-08-07 19:23 ` Hans Hagen
2007-08-07 19:39 ` Peter Rolf
2007-08-07 20:23 ` Hans Hagen
2007-08-07 20:38 ` Peter Rolf
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).