Re: [NTG-context] Re: Animations in ConTeXt
I don't get it. Examples (animations) on http://www.fi.muni.cz/~xholecek/animations/ compile and work OK with my TeX and Acrobat (Windows XP, Adobe Acrobat Professional 6.0.1). However, the example below doesn't work on my computer. I replaced some lines below with: \starttext \placefigure [here] [fig:animation] {A simple \MetaFun\ animation, click \goto {here} [JS(Rotate_Star)] to start (or stop) or % this line was added as described in MetaFun manual click \goto {here} [JS(Walk_Field{vortex})] for next step} {\fieldstack [vortex]} \stoptext which results in the PDF file attached. Stepping in JS(Walk_Field{vortex}) works OK, while continuous animation in JS(Rotate_Star) doesn't. Is this because of my (old?) ConTeXt distribution (ver 2005.01.31, fmt 2005.5.16), because of my (old/buggy?) Acrobat/OS or because of problems in JavaScript? Thank you, Mojca Willi Egger wrote: Hi Richard, thanks for this example. I tried it and voilà! Willi Richard Hirsch wrote: Richard Rascher-Friesenhausen asked So again. Is it possible to write something like the above animation packages in ConTeXt (as a module)? If Acrobat can display them, ConTeXt can generate them. Here is a simple example. \setupoutput [pdf] \setupcolors [state=start] \setupinteraction [state=start] \setuppapersize [S6][S6] %% this is just code to get something to animate \startMPinclusions picture thearrow, thestar; drawarrow (origin--up) scaled 10mm withpen pencircle scaled 3pt withcolor .9 red; setbounds currentpicture to (fullcircle scaled 22mm); thearrow:= currentpicture scaled 5; currentpicture:= nullpicture; for angle=0 step 72 until 359: draw thearrow rotated angle; endfor thestar:= currentpicture; currentpicture:= nullpicture \stopMPinclusions \setupMPvariables [drawstar] [rotation=0] \startuniqueMPgraphic{drawstar}{rotation} draw thestar rotated \MPvar{rotation}; \stopuniqueMPgraphic %% now we define some symbols (the frames of the animated sequence) \def\definestarsymbol#1{% \definesymbol [star #1] [\uniqueMPgraphic{drawstar}{rotation=#1}]} \definestarsymbol{0} \definestarsymbol{6} \definestarsymbol{12} \definestarsymbol{18} \definestarsymbol{24} \definestarsymbol{30} \definestarsymbol{36} \definestarsymbol{42} \definestarsymbol{48} \definestarsymbol{54} \definestarsymbol{60} \definestarsymbol{66} %% the frames are put into a fieldstack \definefieldstack [vortex] [star 0, star 6, star 12, star 18, star 24, star 30, star 36, star 42, star 48, star 54, star 60, star 66] %% and this is the JavaScrip code that displays the frames one by one \startJSpreamble MyField used later var current = 1; var delay = 200; % 200 milliseconds var timer; var running = false;% animation currently not running function Advance_Angle ( ) { this.getField(vortex:+current).value = Off; if (++current 12)% number of frames { current = 1; }% loop through frames this.getField(vortex:+current).value = On; } \stopJSpreamble %% we want to control the starting and stopping of the animation \startJScode Rotate_Star uses MyField if (running) { try { app.clearInterval(timer); } catch(except) {}; running = false; } else { timer = app.setInterval(Advance_Angle(),delay); running = true; } \stopJScode \starttext \placefigure [here] [fig:animation] {A simple \MetaFun\ animation, click \goto {here} [JS(Rotate_Star)] to start (or stop)} {\fieldstack [vortex]} \stoptext Best regards, Richard star.pdf Description: Adobe PDF document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Accents in MathML
Hello all. I'm processing some Spanish from Unicode and some of it is in MathML, for which I use ConTeXt's native processing. There seems to be a problem with accents. When I run this on Live: -- \mainlanguage[es]\enableregime[utf]\useencoding[uc] \useXMLfilter[utf]\usemodule[mathml] \starttext Maths with accents: \startXMLdata formulamathmtextinterés/mtext/math/formula\stopXMLdata \stoptext -- it fails because of the é (which is an e with an acute accent, in case the mail system turns it into gobbledgook). Can anyone help? Thanks. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Accents in MathML
Duncan Hothersall wrote: Hello all. I'm processing some Spanish from Unicode and some of it is in MathML, for which I use ConTeXt's native processing. There seems to be a problem with accents. When I run this on Live: -- \mainlanguage[es]\enableregime[utf]\useencoding[uc] \useXMLfilter[utf]\usemodule[mathml] \starttext Maths with accents: \startXMLdata formulamathmtextinterés/mtext/math/formula\stopXMLdata \stoptext are you sure that your e with accent is codes in utf? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Animations in ConTeXt
Hi Mojca, this is strange, on my installation with Acrobat 7.0.1 under Windows XP both the stepwise and continuous part work properly. Willi Mojca Miklavec wrote: I don't get it. Examples (animations) on http://www.fi.muni.cz/~xholecek/animations/ compile and work OK with my TeX and Acrobat (Windows XP, Adobe Acrobat Professional 6.0.1). However, the example below doesn't work on my computer. I replaced some lines below with: \starttext \placefigure [here] [fig:animation] {A simple \MetaFun\ animation, click \goto {here} [JS(Rotate_Star)] to start (or stop) or % this line was added as described in MetaFun manual click \goto {here} [JS(Walk_Field{vortex})] for next step} {\fieldstack [vortex]} \stoptext which results in the PDF file attached. Stepping in JS(Walk_Field{vortex}) works OK, while continuous animation in JS(Rotate_Star) doesn't. Is this because of my (old?) ConTeXt distribution (ver 2005.01.31, fmt 2005.5.16), because of my (old/buggy?) Acrobat/OS or because of problems in JavaScript? Thank you, Mojca Willi Egger wrote: Hi Richard, thanks for this example. I tried it and voilà! Willi Richard Hirsch wrote: Richard Rascher-Friesenhausen asked So again. Is it possible to write something like the above animation packages in ConTeXt (as a module)? If Acrobat can display them, ConTeXt can generate them. Here is a simple example. \setupoutput [pdf] \setupcolors [state=start] \setupinteraction [state=start] \setuppapersize [S6][S6] %% this is just code to get something to animate \startMPinclusions picture thearrow, thestar; drawarrow (origin--up) scaled 10mm withpen pencircle scaled 3pt withcolor .9 red; setbounds currentpicture to (fullcircle scaled 22mm); thearrow:= currentpicture scaled 5; currentpicture:= nullpicture; for angle=0 step 72 until 359: draw thearrow rotated angle; endfor thestar:= currentpicture; currentpicture:= nullpicture \stopMPinclusions \setupMPvariables [drawstar] [rotation=0] \startuniqueMPgraphic{drawstar}{rotation} draw thestar rotated \MPvar{rotation}; \stopuniqueMPgraphic %% now we define some symbols (the frames of the animated sequence) \def\definestarsymbol#1{% \definesymbol [star #1] [\uniqueMPgraphic{drawstar}{rotation=#1}]} \definestarsymbol{0} \definestarsymbol{6} \definestarsymbol{12} \definestarsymbol{18} \definestarsymbol{24} \definestarsymbol{30} \definestarsymbol{36} \definestarsymbol{42} \definestarsymbol{48} \definestarsymbol{54} \definestarsymbol{60} \definestarsymbol{66} %% the frames are put into a fieldstack \definefieldstack [vortex] [star 0, star 6, star 12, star 18, star 24, star 30, star 36, star 42, star 48, star 54, star 60, star 66] %% and this is the JavaScrip code that displays the frames one by one \startJSpreamble MyField used later var current = 1; var delay = 200; % 200 milliseconds var timer; var running = false;% animation currently not running function Advance_Angle ( ) { this.getField(vortex:+current).value = Off; if (++current 12)% number of frames { current = 1; }% loop through frames this.getField(vortex:+current).value = On; } \stopJSpreamble %% we want to control the starting and stopping of the animation \startJScode Rotate_Star uses MyField if (running) { try { app.clearInterval(timer); } catch(except) {}; running = false; } else { timer = app.setInterval(Advance_Angle(),delay); running = true; } \stopJScode \starttext \placefigure [here] [fig:animation] {A simple \MetaFun\ animation, click \goto {here} [JS(Rotate_Star)] to start (or stop)} {\fieldstack [vortex]} \stoptext Best regards, Richard ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] new version
Hi, I posted a new version of context. There are a few new things, like pattern snow being part of the zip, and runtime graphic conversions (more about that when i have more time); the next (main) release will probably have a new texexec (ruby version, smoother, faster, more clever, no ini file etc) btw, i need a miktex user who wants to test the ruby texexec version it's upto taco to write the usual announcement -) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
Hans Hagen wrote: Hi, it's upto taco to write the usual announcement -) expect some delays. The diff -r file has 33846 lines :-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
Taco Hoekwater wrote: Hans Hagen wrote: Hi, it's upto taco to write the usual announcement -) expect some delays. The diff -r file has 33846 lines :-) lucky you, it's mostly patterns -) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] feature request:-)
Hi Hans, I posted a new version of context. Well, I guess I'm too late for what follows... Anyway, I have found the following quite satisfactory and hope you will consider placing it in hand-def.tex: \definefonthandling [highquality] [hz,normal] I think this adds even more professionalism/subtlty than \definefonthandling [quality] [hz,pure] which is why I named it `highquality'-) And thnx 4 all your hard work! Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
On Wed, 25 May 2005 17:34:24 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Hi, I posted a new version of context. Does the multi-format engine work now? :-) Best to the best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
Hans Hagen wrote: expect some delays. The diff -r file has 33846 lines :-) lucky you, it's mostly patterns -) All those patterns are just one line, I'm afraid: Only in 20050525/tex/context: patterns looks like there is quite a lot of .map activity going on though. Anyway, I'll take me a few days to sort this through. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] feature request:-)
Idris Samawi Hamid wrote: \definefonthandling [highquality] [hz,normal] ok, added which is why I named it `highquality'-) And thnx 4 all your hard work! sorry for your suffering in updates [i'm considering letting context write a map file that you then can use in dvipdfmx] 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
Idris Samawi Hamid wrote: On Wed, 25 May 2005 17:34:24 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Hi, I posted a new version of context. Does the multi-format engine work now? :-) it should; just try the latest texexec --make --engine=aleph --all texexec --make --all (The new texexec will provide more status info about what is generated) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context