Re: [NTG-context] Typescript struggles

2010-12-17 Thread Taco Hoekwater

On 12/16/2010 04:15 PM, Willi Egger wrote:

Hi all,

what is wrong with the following typescript file? - Sorry the font's name is 
Nothing.otf

\starttypescript [handwriting] [nothing]
\definefontsynonym [Nothing-Regular][file:Nothing]
\stoptypescript

\starttypescript [handwriting] [nothing] [name]
 \definefontsynonym [Handwriting] [Nothing-Regular]
\stoptypescrip


There is a 't' missing in the above line.

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


Re: [NTG-context] 4000 pages limit?

2010-12-17 Thread Hans Hagen

On 16-12-2010 8:31, luigi scarso wrote:

On Thu, Dec 16, 2010 at 8:12 PM, Marco Pessottomelmo...@gmail.com  wrote:


Hello there.

Yesterday I was trying to typeset a very, very long document (about 3000
pages in A4). Well, mkiv died with a

PANIC: unprotected error in call to Lua API (stack overflow (out of stack 
space))

It's easily reproducible with a simple

\starttext
\dorecurse{5}{
\input knuth
}

Confirmed
\starttext
\dorecurse{5}{
\input knuth
}\stoptext
die with

pages  flushing realpage 3987, userpage 3987
PANIC: unprotected error in call to Lua API (stack overflow (out of
stack space))


its hard to figure out where it happens so probably taco has to run a 
variant with debugging on; maybe a core luatex function is not cleaning 
up the stack


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Three column nomenclature settings?

2010-12-17 Thread Wolfgang Schuster

Am 01.12.2010 um 14:50 schrieb seasoul:

 Nomenclature can be considered as a type of synonyms.
  
 Therefore, I can define a nomenclature as :
  
 \definesynonyms[nomenclature][nomenclatures][\infull]
 \setupsynonyms[nomenclature] [criterium=all,location=serried]
  
 here I use location=serried, becasue I found the synonym is not in the same 
 line ( higher than) the meaning.
  
 But I want a three-column nomenclature list. The first column is the synonym, 
 the second is the meaning, the third is the si-unit of it, if the synonym has 
 an unit. Like
 --
 p Pressure of xxx  Pa
 l  Length of xxx  m
 ---
 How to redefine the nomenclature command?

Can you provide a complete minimal example!

Wolfgang


___
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] 4000 pages limit?

2010-12-17 Thread Taco Hoekwater

On 12/17/2010 07:52 AM, luigi scarso wrote:

On Fri, Dec 17, 2010 at 12:04 AM, Jonas Steinn...@jonasstein.de  wrote:

Yesterday I was trying to typeset a very, very long document (about 3000
pages in A4). Well, mkiv died with a

PANIC: unprotected error in call to Lua API (stack overflow (out of stack 
space))

It's easily reproducible with a simple

\starttext
\dorecurse{5}{
\input knuth
}

\starttext
  \dorecurse{5}{
  \input knuth
  }\stoptext
also fails after page  [1619.1619]) with
! TeX capacity exceeded, sorry [pool size=1254582].


That is mkii, right? (I am not interested in that)


PANIC: unprotected error in call to Lua API (stack overflow (out of
stack space))


I think that is a bug, or not?

yes, I think so.


Yes it was a bug, fixed in the luatex source repository now.

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


Re: [NTG-context] FR: Wiki: Button to include code area

2010-12-17 Thread Patrick Gundlach

Am 17.12.2010 um 06:38 schrieb Jonas Stein:

 My Featurerequest for the Wiki:
 
 in some wikis its possible to enhance the buttons 
 in the edit window with own tags.
 
 I would suggest to add 
 
 context source=yes
 $text
 /context
 
 
 that should work like the link button that creates [[$text]]
 
 That would be fantastic!
 Thank you.

Please put me (or gardeners at contextgarden.net) in cc: for things related 
to the contextgarden.net server. However: I have no schedule for the next 
contextgarden.net maintenance yet, so it might take some time.

Patrick

___
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] 4000 pages limit?

2010-12-17 Thread Vedran Miletić
2010/12/17 Taco Hoekwater t...@elvenkind.com

 On 12/17/2010 07:52 AM, luigi scarso wrote:

 On Fri, Dec 17, 2010 at 12:04 AM, Jonas Steinn...@jonasstein.de  wrote:

 Yesterday I was trying to typeset a very, very long document (about 3000
 pages in A4). Well, mkiv died with a

 PANIC: unprotected error in call to Lua API (stack overflow (out of
 stack space))

 It's easily reproducible with a simple

 \starttext
 \dorecurse{5}{
 \input knuth
 }

 \starttext
  \dorecurse{5}{
  \input knuth
  }\stoptext
 also fails after page  [1619.1619]) with
 ! TeX capacity exceeded, sorry [pool size=1254582].


 That is mkii, right? (I am not interested in that)


  PANIC: unprotected error in call to Lua API (stack overflow (out of
 stack space))

  I think that is a bug, or not?

 yes, I think so.


 Yes it was a bug, fixed in the luatex source repository now.


How high is the limit now? Just curious, since I saw LuaTeX building _a
paragraph_ lasting few hundred pages without problems (on the other hand,
pdfTeX couldn't do it).

Regards,

Vedran Miletić
___
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] 4000 pages limit?

2010-12-17 Thread Martin Schröder
2010/12/17 Vedran Miletić riva...@gmail.com:
 How high is the limit now? Just curious, since I saw LuaTeX building _a
 paragraph_ lasting few hundred pages without problems (on the other hand,
 pdfTeX couldn't do it).

Which limit? For the simple knuth case most likely the size of your harddisk
is the limit (iff luatex can generate PDFs 4GB :). And you'll get problems
with pdfs with millions of objects (i.e. pages), as readers can't cope with
them.

Best
   Martin
___
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] 4000 pages limit?

2010-12-17 Thread Taco Hoekwater

On 12/17/2010 10:44 AM, Vedran Miletić wrote:


How high is the limit now?


There is nothing hardcoded anywhere, but I suspect that after a few
million pages some limit somewhere will be reached eventually: either
the harddisk gets full, or your pdf reader will be unable to open the
pdf due to its internal limits (luatex will happily create 10GB pdfs).

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


Re: [NTG-context] 4000 pages limit?

2010-12-17 Thread Hans Hagen

On 17-12-2010 10:44, Vedran Miletić wrote:


How high is the limit now? Just curious, since I saw LuaTeX building _a
paragraph_ lasting few hundred pages without problems (on the other hand,
pdfTeX couldn't do it).


I've done tests with tens of thousands of pages with mkiv with no 
problem so there must be something special going on now.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] 4000 pages limit?

2010-12-17 Thread Alan BRASLAU
On Friday 17 December 2010 10:49:27 Martin Schröder wrote:
 And you'll get problems with pdfs with millions of objects (i.e. pages), as 
readers can't cope with them.

Which readers: do you refer to computer programs or to humans?
(This is what Herbert Simon calls bounded rationality.)

Alan
___
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] 4000 pages limit?

2010-12-17 Thread Martin Schröder
2010/12/17 Taco Hoekwater t...@elvenkind.com:
 pdf due to its internal limits (luatex will happily create 10GB pdfs).

The code allows ca. 1TB; that should be enough for everyone (I hope I don't live
to see the day that it isn't :).

Best
   Martin
___
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] 4000 pages limit?

2010-12-17 Thread Martin Schröder
2010/12/17 Alan BRASLAU alan.bras...@cea.fr:
 Which readers: do you refer to computer programs or to humans?

Programs. You'll hit implementation limits in Adobe Reader.

Best
   Martin
___
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] contextgarden.net

2010-12-17 Thread Patrick Gundlach
Hi,

I have mentioned it at the last context conference: I am looking for a person 
(or a group) to take over the server contextgarden.net. Not only the wiki or 
the modules section or ..., but the complete server.

I have started everything more then seven years ago and we (= you) have all 
made it possible that contextgarden.net is now used by more then 500 unique 
visitors each day (the wiki alone). The average time a user spends on the wiki 
is three and a half minute (according to the stats, but this is inaccurate, of 
course), I think that is pretty good!

But as usual in a setting like this, I have shifted my focus. This does not 
mean I like ConTeXt less then several years ago! By no means! But I am too busy 
with my new job and my family so there is pretty much no server maintenance 
(except for a reboot once in a while).

I really hope that someone steps in and I can hand over all the files/databases 
and the domain name before the next conference.

Not that some parts are already maintained by other people: most prominently 
the minimals are done by Mojca with help of Arthur (I hope I've got it right).

Patrick

___
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] Bug: delay in \getmarking

2010-12-17 Thread Steffen Wolfrum
Hi,

I don't no exactly when it changed, but it still worked in ConTeXt  ver: 
2010.09.05 13:23 MKIV.
Now, there is a one page delay in \getmarking!

Please run minimal exmaple below and look at page 7:

Section = 1.2 B
Header = 1.2 A

Steffen


---

\setuppagenumbering [alternative=doublesided,location=]

\setupheader[align=middle]

\def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[chapter]}
\def\KolumneR{\headnumber[section]\enskip\getmarking[section]}

\setupheadertexts
[\vtop{\startalignment[center]\KolumneR\stopalignment}] [pagenumber]
[pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}]


\starttext

\chapter[reference={Teil_1},
 title={Einleitung},
 bookmark={Einleitung},
 list={Einleitung},
 marking={Einleitung}]
 

\dorecurse{14}{\input tufte}
 
\section[
 title={A},
 marking={A}]

\dorecurse{14}{\input tufte}

\section[
 title={B},
 marking={B}]

\dorecurse{14}{\input tufte}


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


Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Jon Crump
On Thu, Dec 16, 2010 at 1:34 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 16.12.2010 um 22:28 schrieb Jon Crump:

 In python-speak I'd interpret context.color() as a method call on a
 module 'context'. Could you, or anyone, direct me to any documentation
 for this module and a list of the properties and methods that it
 supports?

 http://pragma-ade.com/show-man-44.htm
 Wolfgang

Wolfgang, many thanks.
Jon
___
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] Typescript struggles

2010-12-17 Thread Willi Egger
Gosh, how stupid can I be? - Indeed the t!

Willi
On 17 Dec 2010, at 09:29, Taco Hoekwater wrote:

 On 12/16/2010 04:15 PM, Willi Egger wrote:
 Hi all,
 
 what is wrong with the following typescript file? - Sorry the font's name is 
 Nothing.otf
 
 \starttypescript [handwriting] [nothing]
\definefontsynonym [Nothing-Regular][file:Nothing]
 \stoptypescript
 
 \starttypescript [handwriting] [nothing] [name]
 \definefontsynonym [Handwriting] [Nothing-Regular]
 \stoptypescrip
 
 There is a 't' missing in the above line.
 
 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] why lua?

2010-12-17 Thread Jonas Stein
i'd like to make a small presentation for friends about
context. 
Why do we use lua and not python or perl or...
Where can i find the features for lua for this job?

Kind regards,

-- 
Jonas Stein n...@jonasstein.de

___
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] why lua?

2010-12-17 Thread Martin Schröder
2010/12/17 Jonas Stein n...@jonasstein.de:
 Why do we use lua and not python or perl or...
 Where can i find the features for lua for this job?

RTFAQ: http://www.luatex.org/faq.html

HTH. HAND.
___
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] [OT] quvira fonts

2010-12-17 Thread luigi scarso
http://quivira-font.com/
-- 
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] why lua?

2010-12-17 Thread Philipp A.
2010/12/17 Jonas Stein n...@jonasstein.de

 i'd like to make a small presentation for friends about
 context.
 Why do we use lua and not python or perl or...


you can. google for “luatex lunatic”.
you’ll have to build a little module defining the macros you use, though.
(like \ctxpython, \directpython and so on)

Where can i find the features for lua for this job?

 Kind regards,

 --
 Jonas Stein n...@jonasstein.de

___
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] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz

On Dec 16, 2010, at 10:28 PM, Jon Crump wrote:

 Thomas, et alia.
 
 Thanks so very much! I now have this:
 
 \startluacode
 function filter(s)
   if math.mod(s,5) == 0 then
 context.color( { darkred }, s )
   end
 end
 \stopluacode
 
 \define[1]\MyNumber%
 {\ctxlua{filter(#1)}\endgraf}
 
 \startxmlsetups xml:lb
   \lineNumbers{\MyNumber{\xmlatt{#1}{n}}}
   \xmlflush{#1}
 \stopxmlsetups
 
 \defineinmargin [lineNumbers] [outer] [normal]
 

This was just an example to show you how to use lua to do things which are 
difficult or impossible or cumbersome in TeX alone, such as math, working with 
strings (substitutions, etc.), conditionals, loops... You don't have to take my 
code verbatim; the darkred was just meant to show that you can apply certain 
code to a number if it matches a condition (here: be divisible by 5).

 This gets me what I wanted.  Still fumbling greatly with the macro
 syntax. I'm not sure what the recursion is for, for example. On the
 other hand the lua seems rather straightforward to me by comparison. I
 tried returning an empty string like this: context.color( {blue}, ''
 ) to remove the other numbers, but that seemed silly, so I just
 removed the 'else' clause instead, and that seemed to work as well.
 

Yes, of course, if all you want  is process numbers divisible by 5, that's the 
easiest way. But it's good to know that lua allows more complex conditionals - 
you could use elseifs to make numbers divisible by 100 bold, or whatever. I 
find such conditionals in TeX much more cumbersome; even for somebody with no 
programming background like myself, they are easy to write in lua.

The recursion was just a way of demonstrating the effect. \dorecurse is a 
wonderful macro to construct minimal examples (you can search the mail archive 
for some real gems). And, as a hint: constructing a compilable minimal example 
not only is educational (I don't know how often I could solve my problems when 
I tried to produce a minimal example and saw where my approach was failing), 
but will also improve your chances of people actually willing to help you. If 
you want to see an elegant way of producing minimal examples in xml, search the 
mail archive for xmlprocessbuffer.

Thomas
___
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] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz

On Dec 16, 2010, at 10:28 PM, Jon Crump wrote:

 Thomas, et alia.
 
 Thanks so very much! I now have this:
 
 \startluacode
 function filter(s)
  if math.mod(s,5) == 0 then
context.color( { darkred }, s )
  end
 end
 \stopluacode
 
 \define[1]\MyNumber%
 {\ctxlua{filter(#1)}\endgraf}
 
 \startxmlsetups xml:lb
   \lineNumbers{\MyNumber{\xmlatt{#1}{n}}}
   \xmlflush{#1}
 \stopxmlsetups
 
 \defineinmargin [lineNumbers] [outer] [normal]
 

This was just an example to show you how to use lua to do things which are 
difficult or impossible or cumbersome in TeX alone, such as math, working with 
strings (substitutions, etc.), conditionals, loops... You don't have to take my 
code verbatim; the darkred was just meant to show that you can apply certain 
code to a number if it matches a condition (here: be divisible by 5).

 This gets me what I wanted.  Still fumbling greatly with the macro
 syntax. I'm not sure what the recursion is for, for example. On the
 other hand the lua seems rather straightforward to me by comparison. I
 tried returning an empty string like this: context.color( {blue}, ''
 ) to remove the other numbers, but that seemed silly, so I just
 removed the 'else' clause instead, and that seemed to work as well.
 

Yes, of course, if all you want  is process numbers divisible by 5, that's the 
easiest way. But it's good to know that lua allows more complex conditionals - 
you could use elseifs to make numbers divisible by 100 bold, or whatever. I 
find such conditionals in TeX much more cumbersome; even for somebody with no 
programming background like myself, they are easy to write in lua.

The recursion was just a way of demonstrating the effect. \dorecurse is a 
wonderful macro to construct minimal examples (you can search the mail archive 
for some real gems). And, as a hint: constructing a compilable minimal example 
not only is educational (I don't know how often I could solve my problems when 
I tried to produce a minimal example and saw where my approach was failing), 
but will also improve your chances of people actually willing to help you. If 
you want to see an elegant way of producing minimal examples in xml, search the 
mail archive for xmlprocessbuffer.

Thomas
___
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] why lua?

2010-12-17 Thread Hans Hagen

On 17-12-2010 4:20, Jonas Stein wrote:

i'd like to make a small presentation for friends about
context.
Why do we use lua and not python or perl or...
Where can i find the features for lua for this job?


you can find arguments in presentations and articles and mk.pdf

- nice language (pascal like, nu obscure $characters, tolerant spacing)
- easy to learn and no complex concepts
- good manual that covers all
- mature when we started using it
- small footprint and no truckload of libs to carry along (packaging tex 
is already enough work)

- pretty fast and efficient
- no feature creep, proper academic research project, tightly managed
- it fits tex pretty well
- designed with embedding in mind
- most of all: we like it

(I first ran into lua when I was playing with scite's extension 
mechanism and immediately thought of how nice it would be to have it in 
tex. Hartmut made the first variant that gave access to registers and 
provided printing to tex, then Taco stepped in and fundamental opening 
up started etc etc etc)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] why lua?

2010-12-17 Thread Hans Hagen

On 17-12-2010 11:35, Philipp A. wrote:

2010/12/17 Jonas Steinn...@jonasstein.de


i'd like to make a small presentation for friends about
context.
Why do we use lua and not python or perl or...



you can. google for “luatex lunatic”.
you’ll have to build a little module defining the macros you use, though.
(like \ctxpython, \directpython and so on)

Where can i find the features for lua for this job?


In what sense? Context core code will never use \ctxpython, \ctxruby, 
\ctxperl, so it will be module specific as one cannot depend on 
libraries being on the system, at least not before luatex is stabelized. 
Btw, I'm not sure if Luigi made a module for it (if he still uses python 
at all).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] [OT] quvira fonts

2010-12-17 Thread Hans Hagen

On 17-12-2010 10:57, luigi scarso wrote:

http://quivira-font.com/


it has a lot of extra symbols and also math characters ... (no otf math 
features afaiks)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] why lua?

2010-12-17 Thread Philipp Gesang
On 2010-12-17 16:20:31, Jonas Stein wrote:
 i'd like to make a small presentation for friends about
 context. 
 Why do we use lua and not python or perl or...
 Where can i find the features for lua for this job?

After all those arguments in favor of Lua the only thing I can
add are valid reasons against using python for embedding:
  http://twistedmatrix.com/users/glyph/rant/extendit.html
and concerning perl ;)
  http://lua-users.org/lists/lua-l/2010-02/msg00934.html

Regards, Philipp


 
 Kind regards,
 
 -- 
 Jonas Stein n...@jonasstein.de
 
 ___
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpVVTCXANB3v.pgp
Description: PGP signature
___
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] Bug against minimals

2010-12-17 Thread Hans Hagen

On 16-12-2010 8:46, Xan wrote:

Hi,

With latest stable minimals version I don't get correct output of the
metapost article (I attach it)
But with the texlive package with ubuntu 8.04 (and only with 8.04; with
10.10 I have the same problem), it works. I think it's a bug

Thanks,
Xan.


next make a small example

\starttext

\unexpanded\def\processword#1{\dontleavehmode\framed{#1} }

% fails, as recurse is not unexpanded (should it be?)
%
% \processwords{\phantom{\dorecurse{15}~}}
% \processwords{x x}

% \processisolatedwords{\phantom{\dorecurse{15}~}}\processword
% \processisolatedwords{x x}\processword

\stoptext

I wonder if that ever worked as \dorecurse is expandable and 
processwords tests arguments.


Anyhow, in the latest mkiv you can use \processisolatedwords to do the 
same. (In your case there are no words so you could apply your 
\processword directly.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] why lua?

2010-12-17 Thread Hans Hagen

On 18-12-2010 12:27, Philipp Gesang wrote:

On 2010-12-1716:20:31, Jonas Stein wrote:

i'd like to make a small presentation for friends about
context.
Why do we use lua and not python or perl or...
Where can i find the features for lua for this job?


After all those arguments in favor of Lua the only thing I can
add are valid reasons against using python for embedding:
   http://twistedmatrix.com/users/glyph/rant/extendit.html
and concerning perl ;)
   http://lua-users.org/lists/lua-l/2010-02/msg00934.html


Ah .. the extending vs the embedding debate ... well, an argument could 
have been that we don't want to extend python -)


I've only used Pascal, Modula2, Perl (after all that compiling and 
linking I loved the scripting aspect but the language ... well ...), 
Ruby (brought me back happy Modula memories but it got so huge and had 
incompatible updates but is still my second choice), but I feel quite 
happy with Lua now.


Anyhow, I don't like languages that need religious arguments to become 
popular.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] why lua?

2010-12-17 Thread Philipp A.
hans, some of the things you said are a bit unclear to me:

2010/12/18 Hans Hagen pra...@wxs.nl

  Ah .. the extending vs the embedding debate ... well, an argument could
 have been that we don't want to extend python -)


see last paragraphs.

I've only used Pascal, Modula2, Perl (after all that compiling and linking I
 loved the scripting aspect but the language ... well ...), Ruby (brought me
 back happy Modula memories but it got so huge and had incompatible updates
 but is still my second choice), but I feel quite happy with Lua now.


give python a try. i love it because it has the writability of perl without
(de)referencing and funny symbols, and a class system like java/c++/… (no
prototyping and stuff)

well, i just like it. and since i don’t know lua (well, that’s not exactly
true, but i can’t write a normal sized script without looking things up),
and tend to do things like i would do them in other languages i know. e.g.:
how do you loop elegantly over table values? “for k,v in pairs(t) do print(v)
end” creates a throwaway variable k, which doesn’t seem right. some things
are totally counter-intuitive for me like tables beginning with index 1, and
so on.

so i guess it’s natural that i would like to use a scripting language i know
and like, like python.

Anyhow, I don't like languages that need religious arguments to become
 popular.


like… which one? i only know of the tabs vs. spaces and vim vs. emacs
religious wars. i can’t remember of any languages being subdued to that.

or are you talking about lua having been invented at a catholic university
and thus being a product of a sect somehow?

Hans


what i want to show you is krosshttp://en.wikipedia.org/wiki/Kross_%28KDE%29
.
kross is the project for bringing consistent scripting to KDE, and it is
just awesome, since it allows you to write stuff in the scripting language
of your choice.

my dream for luatex/context would be a built-in lua interpreter (because lua
is so fucking small) and optional modules for other, heavier, scripting
languages (perl, ruby), which you don’t have to install. i don’t care if
python is embedded or extended, i just want to write \directpython{for num
in [9,2,4,8]: ctx.print(num**3)} (or sth. like that)

but don’t get me wrong, i love context and luatext, i just like other
languages better than lua (you weren’t content with latex and created
context, so this shouldn’t be alien to you)
___
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] why lua?

2010-12-17 Thread Aditya Mahajan

On Sat, 18 Dec 2010, Philipp A. wrote:


my dream for luatex/context would be a built-in lua interpreter (because lua
is so fucking small) and optional modules for other, heavier, scripting
languages (perl, ruby), which you don’t have to install. i don’t care if
python is embedded or extended, i just want to write \directpython{for num
in [9,2,4,8]: ctx.print(num**3)} (or sth. like that)


luatex is more than lua (or any prog/scripting language) embedded in tex; 
it is a programming language with acess to tex's internals. For example, 
you can find the dimension of each node in a vlist and use a different 
line-breaking algorithm or tweak the node list after line breaking is done 
(something like this is done in arabic line-breaking). If you do not 
want easy access to tex's internals, embedding/extending tex is relatively 
easy: see for example perltex. Whether the binary of the prog language is 
embedded in the tex binary, or in the wrapper script for calling tex is 
immaterial. On the other hand, if you want acess to tex's internals, you 
can either code it for a specific language (like luatex does), or provide 
an API interface to the internals. My understanding is that given the 
complexity of the tex codebase, the latter was more too much effort for 
too little gain. After all, python vs lua is a minor difference, compared 
to the programing abilities of TeX.


Aditya
___
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] New to this

2010-12-17 Thread Anand Raj
Hi,

I have a html page containing mathml and svg content.

How can i make use of the pragma script?

How can i integrate with php?

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