Re: [NTG-context] Errors on making lua documentation

2009-09-09 Thread luigi scarso
On Tue, Sep 8, 2009 at 9:36 AM, luigi scarsoluigi.sca...@gmail.com wrote:
 On Tue, Sep 8, 2009 at 9:29 AM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 Any hints ?

 i have it fixed but before i upload i want to fix a few other things as well

It seems fixed, but I've run only few examples, so next days I will be
more precise .


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


Re: [NTG-context] Errors on making lua documentation

2009-09-08 Thread Hans Hagen

luigi scarso wrote:

Any hints ?


i have it fixed but before i upload i want to fix a few other things as 
well


\hskip.25\dimexpr\xmlattdef{#1}{n}{0}em\relax\relax % extra 
relax needed !



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] Errors on making lua documentation

2009-09-08 Thread luigi scarso
On Tue, Sep 8, 2009 at 9:29 AM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 Any hints ?

 i have it fixed but before i upload i want to fix a few other things as well

            \hskip.25\dimexpr\xmlattdef{#1}{n}{0}em\relax\relax % extra relax
 needed !
ok, it's becoming an hot topic in my list


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


Re: [NTG-context] Errors on making lua documentation

2009-09-07 Thread luigi scarso
Any hints ?

On Fri, Sep 4, 2009 at 9:13 PM, luigi scarsoluigi.sca...@gmail.com wrote:


 On Fri, Aug 28, 2009 at 10:45 AM, Hans Hagen pra...@wxs.nl wrote:

 luigi scarso wrote:

 The #1 argument  of find(find,%S)
 is find , which is a function, while should be a string, ie maybe
 something like

 function string:is_empty()
    return not find(self,%S)
 end

 indeed; fixed

 In minimals-beta/tex/texmf-context/tex/context/base


 $context --ctx=x-ldx x-mathml.lua


 systems : begin file x-mathml at line 1
 ! Use of \complexsetupwhitespace doesn't match its definition.
 \doifnextoptionalelse ...\nextoptionalcommandyes {
   #1}\def
 \nextoptionalcomma...
 \starttabletail #1\stoptabletail -\setTABLEtail
  #1\end
 \@@expanded ... \starttabletail ##1\stoptabletail
   {\setTABLEtail ##1\end }
 \expanded #1-\long \xdef \@@expanded
   {\noexpand #1}\@@expanded
 l.1 \xmlsetup{26}{ldx:variable}

 \xmlflush #1-\ctxlua {lxml.flush(#1)}

 ...
 l.2 \xmlprocess{\xmldocument}{./x-mathml.lua}{}


 PS
 Wolfgang, we may discuss about this in front a cup coffee ..


 --
 luigi





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


Re: [NTG-context] Errors on making lua documentation

2009-09-04 Thread luigi scarso
On Fri, Aug 28, 2009 at 10:45 AM, Hans Hagen pra...@wxs.nl wrote:

 luigi scarso wrote:

  The #1 argument  of find(find,%S)
 is find , which is a function, while should be a string, ie maybe
 something like

 function string:is_empty()
return not find(self,%S)
 end


 indeed; fixed


In minimals-beta/tex/texmf-context/tex/context/base


$context --ctx=x-ldx x-mathml.lua


systems : begin file x-mathml at line 1
! Use of \complexsetupwhitespace doesn't match its definition.
\doifnextoptionalelse ...\nextoptionalcommandyes {
  #1}\def
\nextoptionalcomma...
\starttabletail #1\stoptabletail -\setTABLEtail
 #1\end
\@@expanded ... \starttabletail ##1\stoptabletail
  {\setTABLEtail ##1\end }
\expanded #1-\long \xdef \@@expanded
  {\noexpand #1}\@@expanded
l.1 \xmlsetup{26}{ldx:variable}

\xmlflush #1-\ctxlua {lxml.flush(#1)}

...
l.2 \xmlprocess{\xmldocument}{./x-mathml.lua}{}


PS
Wolfgang, we may discuss about this in front a cup coffee ..


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


Re: [NTG-context] Errors on making lua documentation

2009-08-28 Thread Hans Hagen

luigi scarso wrote:


The #1 argument  of find(find,%S)
is find , which is a function, while should be a string, ie maybe something like

function string:is_empty()
return not find(self,%S)
end


indeed; fixed

-
  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
___


[NTG-context] Errors on making lua documentation

2009-08-27 Thread luigi scarso
$ context --ctx=x-ldx  x-ldx.lua
fails in
minimals/tex/texmf-context/scripts/context/lua

Maybe an error on mtxrun, for which I have made a temp. patch :
$ diff mtxrun.orig mtxrun
123c123
 return not find(find,%S)
---
 return not find(self,%S)

Even so, there are some errors like


 Missing \endcsname inserted.
to be read again
   \def
\dosetvalue #1#2-\...@ea \def \csname #1
  #2\endcsname
\dogetparameters ...lse \let \setsomevalue #1\def
  \p!dogetparameter {\p!doas...
\@@expanded -\getparameters [@@im1][a
  lign={inner,left}]
\expanded #1-\long \xdef \@@expanded
  {\noexpand #1}\@@expanded
l.1 \xmlsetup{51}{ldx:variable}


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


Re: [NTG-context] Errors on making lua documentation

2009-08-27 Thread Hans Hagen

luigi scarso wrote:

$ context --ctx=x-ldx  x-ldx.lua
fails in
minimals/tex/texmf-context/scripts/context/lua


hm, runs ok here (on the base path)

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] Errors on making lua documentation

2009-08-27 Thread luigi scarso
On Thu, Aug 27, 2009 at 11:42 PM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 $ context --ctx=x-ldx  x-ldx.lua
 fails in
 minimals/tex/texmf-context/scripts/context/lua

 hm, runs ok here (on the base path)

hmm maybe I have messed something ...
I will retry with a fresh last current
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Errors on making lua documentation

2009-08-27 Thread luigi scarso
On Thu, Aug 27, 2009 at 11:42 PM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 $ context --ctx=x-ldx  x-ldx.lua
 fails in
 minimals/tex/texmf-context/scripts/context/lua

 hm, runs ok here (on the base path)

Hm, current seems broken

In base path
$ context --ctx=x-ldx  x-ldx.lua
...-lunatic/minimals-2009-08/tex/texmf-linux/bin/mtxrun:123: bad
argument #1 to 'find' (string expected, got function)
This is LuaTeX, Version beta-0.43.0-2009081914
 \write18 enabled.
(x-ldx.run

ConTeXt  ver: 2009.08.19 17:10 MKIV  fmt: 2009.8.27  int: english/english

I will try beta

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


Re: [NTG-context] Errors on making lua documentation

2009-08-27 Thread luigi scarso
On Thu, Aug 27, 2009 at 11:42 PM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 $ context --ctx=x-ldx  x-ldx.lua
 fails in
 minimals/tex/texmf-context/scripts/context/lua

 hm, runs ok here (on the base path)
Also with beta

...tex/minimals-2009-08-beta/tex/texmf-linux/bin/mtxrun:123: bad
argument #1 to 'find' (string expected, got function)
This is LuaTeX, Version beta-0.43.0-2009081914
 \write18 enabled.
(x-ldx.run

ConTeXt  ver: 2009.08.26 01:43 MKIV  fmt: 2009.8.28  int: english/english

Anyway
line 123 of mtxrun looks strange :
function string:is_empty()
return not find(find,%S)
end

How does it look in your installation ?
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Errors on making lua documentation

2009-08-27 Thread Hans Hagen

luigi scarso wrote:

On Thu, Aug 27, 2009 at 11:42 PM, Hans Hagenpra...@wxs.nl wrote:

luigi scarso wrote:

$ context --ctx=x-ldx  x-ldx.lua
fails in
minimals/tex/texmf-context/scripts/context/lua

hm, runs ok here (on the base path)

Also with beta

...tex/minimals-2009-08-beta/tex/texmf-linux/bin/mtxrun:123: bad
argument #1 to 'find' (string expected, got function)
This is LuaTeX, Version beta-0.43.0-2009081914
 \write18 enabled.
(x-ldx.run

ConTeXt  ver: 2009.08.26 01:43 MKIV  fmt: 2009.8.28  int: english/english

Anyway
line 123 of mtxrun looks strange :
function string:is_empty()
return not find(find,%S)
end

How does it look in your installation ?



%s == space
%S == non-space


-
  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] Errors on making lua documentation

2009-08-27 Thread luigi scarso
On Fri, Aug 28, 2009 at 1:05 AM, Hans Hagenpra...@wxs.nl wrote:
 luigi scarso wrote:

 On Thu, Aug 27, 2009 at 11:42 PM, Hans Hagenpra...@wxs.nl wrote:

 luigi scarso wrote:

 $ context --ctx=x-ldx  x-ldx.lua
 fails in
 minimals/tex/texmf-context/scripts/context/lua

 hm, runs ok here (on the base path)

 Also with beta

 ...tex/minimals-2009-08-beta/tex/texmf-linux/bin/mtxrun:123: bad
 argument #1 to 'find' (string expected, got function)
 This is LuaTeX, Version beta-0.43.0-2009081914
  \write18 enabled.
 (x-ldx.run

 ConTeXt  ver: 2009.08.26 01:43 MKIV  fmt: 2009.8.28  int: english/english

 Anyway
 line 123 of mtxrun looks strange :
 function string:is_empty()
    return not find(find,%S)
 end

 How does it look in your installation ?


 %s == space
 %S == non-space


I think that
...tex/minimals-2009-08-beta/tex/texmf-linux/bin/mtxrun:123: bad
argument #1 to 'find' (string expected, got function)
refers to

return not find(find,%S)

in

function string:is_empty()
return not find(find,%S)
end

The #1 argument  of find(find,%S)
is find , which is a function, while should be a string, ie maybe something like

function string:is_empty()
return not find(self,%S)
end


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