Re: [NTG-context] luatex and interaction
Le 07 avril à 14:25:51 Taco Hoekwater [EMAIL PROTECTED] é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 ___
Re: [NTG-context] luatex and interaction
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 ___
Re: [NTG-context] luatex and interaction
Le 08 avril à 13:39:31 Taco Hoekwater [EMAIL PROTECTED] é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 ___
[NTG-context] luatex and interaction
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 ___
Re: [NTG-context] luatex and interaction
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 ___
[NTG-context] luatex and interaction
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 ___
Re: [NTG-context] luatex and interaction
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 ___
Re: [NTG-context] luatex and interaction
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 ___ \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 ___ 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 ___
Re: [NTG-context] luatex and interaction
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 ___
Re: [NTG-context] luatex and interaction
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 ___