Re: [NTG-context] status of node.write

2010-03-25 Thread Hans Hagen

On 24-3-2010 17:46, Michail Vidiassov wrote:

Dear Hans,


when given examples of something that does not work i can repair it


take a look at http://www.ntg.nl/pipermail/ntg-context/2010/047898.html
- it is about problem with movies, but movies and u3d are both done via
annotations, thus there are similarities.


i uploaded a new version, movies seem to work, u3d not tested

-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear All,

I notice that broken code for inserting movies uses
node.write in codeinjections.insertmovie (in back-pdf.lua),
while figures.checkers.mov (in grph-inc.lua) expects text return
from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.

The 3D annotation code (it also seems not to work) has
node.write variant commented out and replaced with
texsprint(ctxcatcodes with b comment!

   local annot, preview, ref = backends.pdf.helpers.insert3d {
  ..
}
 -- node.write(pdfannotation(width,-height,0,annot()))
texsprint(ctxcatcodes,format(\\pdfannot width %ssp height %ssp 
{%s},width,height,annot())) -- b
--~ if ref then -- wrong ! a direct ref should work
--~ texsprint(ctxcatcodes,format(\\smash{\\pdfrefximage%s\\relax},ref)) -- 
b

--~ end
texsprint(ctxcatcodes,\\stopfoundexternalfigure)

And the question is: does it make sense to try to make the current 3D 
annotation handling code work by complaining to the maintainers and/or
fixing it myself or nothing is supposed to work till migration to 
from texsprint(ctxcatcodes API to node.write API is complete?


 Sincerely, Michail
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 10:23 AM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear All,

 I notice that broken code for inserting movies uses
 node.write in codeinjections.insertmovie (in back-pdf.lua),
 while figures.checkers.mov (in grph-inc.lua) expects text return
 from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.

 The 3D annotation code (it also seems not to work) has
 node.write variant commented out and replaced with
 texsprint(ctxcatcodes with b comment!

   local annot, preview, ref = backends.pdf.helpers.insert3d {
      ..
    }
  -- node.write(pdfannotation(width,-height,0,annot()))
    texsprint(ctxcatcodes,format(\\pdfannot width %ssp height %ssp
 {%s},width,height,annot())) -- b
 --~     if ref then -- wrong ! a direct ref should work
 --~
 texsprint(ctxcatcodes,format(\\smash{\\pdfrefximage%s\\relax},ref)) --
 b
 --~     end
    texsprint(ctxcatcodes,\\stopfoundexternalfigure)

 And the question is: does it make sense to try to make the current 3D
 annotation handling code work by complaining to the maintainers and/or
 fixing it myself or nothing is supposed to work till migration to from
 texsprint(ctxcatcodes API to node.write API is complete?
I'm pretty sure that I still don't understand much , but
I have written an article for including swf in mkiv , cfr
http://wiki.pctex.com/index.php/PracTeXJournal

PracTeXJournal should be on-line next month,
and I have planned  2nd part x next issue.

I'm watching at your u3d files to maintains same style.
-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 10:23, Michail Vidiassov wrote:

Dear All,

I notice that broken code for inserting movies uses
node.write in codeinjections.insertmovie (in back-pdf.lua),
while figures.checkers.mov (in grph-inc.lua) expects text return
from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.


i need a test


-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


I'm pretty sure that I still don't understand much , but
I have written an article for including swf in mkiv , cfr


am I correct to assume that swf inclusion works ok and is done in a 
current kosher way in latest minimals

and so can be used as a reference for inclusion of other types?

 Sincerely, Michail
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 11:53 AM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear Luigi and All,

 On Wed, 24 Mar 2010, luigi scarso wrote:

 I'm pretty sure that I still don't understand much , but
 I have written an article for including swf in mkiv , cfr

 am I correct to assume that swf inclusion works ok and is done in a current
 kosher way in latest minimals
 and so can be used as a reference for inclusion of other types?

         Sincerely, Michail
No no no, and I'm sorry for misunderstanding.
In practex I have written a really dirty way to include a swf in mkiv
based on flashmovie.sty .
Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.
So in no way files in minimals are ready for swf embedding:
it's  still a test, because flash player embedded  AdobeRead is
absolutely  new for me .

Anyway it's my next project --- after I've finished some articles abut
FellType, ~next week.



-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.


And where the mkiv way is to be studued?
What kinds of inclusion not only work, but are implemented
in the modern way and so are fit to be emulated?
Is node.write mkiv way or not yet?

  Sincerely, Michail
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 10:52, luigi scarso wrote:


I'm watching at your u3d files to maintains same style.


there is u3d support presen tbut nobody tested it

also, we can only improve it if we have a proper test set (also true for 
swf) that we can add to the samples section, simple public tests


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 2:02 PM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear Luigi and All,

 On Wed, 24 Mar 2010, luigi scarso wrote:

 Hans provided me the skeleton -- like yours u3d files --- and I must
 rewrite a 2nd article to implement the mkiv way.

 And where the mkiv way is to be studued?
 What kinds of inclusion not only work, but are implemented
 in the modern way and so are fit to be emulated?
 Is node.write mkiv way or not yet?

                      Sincerely, Michail
As I wrote, I quite don't understand well this area.
For now I can say that the mkiv way is a mix of lua and tex, while
the latex/mkii/pdftex tex way is described in flashmovie.sty
Also Adobe Supplement to the ISO 32000 base version 1.7 extensione
level 3 is the guideline.

I much prefear to code by myself without ask for Hans now,
it's a way to understand this aspect that I don't manage well.


-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 15:20, luigi scarso wrote:

On Wed, Mar 24, 2010 at 2:02 PM, Michail Vidiassovmas...@iaas.msu.ru  wrote:

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.


And where the mkiv way is to be studued?
What kinds of inclusion not only work, but are implemented
in the modern way and so are fit to be emulated?
Is node.write mkiv way or not yet?

  Sincerely, Michail

As I wrote, I quite don't understand well this area.
For now I can say that the mkiv way is a mix of lua and tex, while
the latex/mkii/pdftex tex way is described in flashmovie.sty
Also Adobe Supplement to the ISO 32000 base version 1.7 extensione
level 3 is the guideline.

I much prefear to code by myself without ask for Hans now,
it's a way to understand this aspect that I don't manage well.


it is already coded .. see back-u3d.mkiv for the interface

when given examples of something that does not work i can repair it

mkii/sty files are of no use here as things need to fit into the context 
user interface


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Michail Vidiassov
Dear Hans,

 when given examples of something that does not work i can repair it

take a look at http://www.ntg.nl/pipermail/ntg-context/2010/047898.html
- it is about problem with movies, but movies and u3d are both done via
annotations, thus there are similarities.

 it is already coded .. see back-u3d.mkiv for the interface

the interface seems to be disfunctional now, I'll supply examples
once I get to a computer with working luatex
(my personal one is still disfunctional since the fix for luatex problem
I reported at http://www.ntg.nl/pipermail/ntg-context/2010/048022.html did
not find its way to precompiled binaries yet).

   Sincerely, Michail

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___