Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread Taco Hoekwater
Graham Douglas wrote: One question, in the minimal example below, the XML text: text = 'elem1text elem2/ more text /elem1' parses fine *if* on a single line. If I break the text onto multiple lines, eg text = 'elem1text elem2/ more text /elem1' it fails with !

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread luigi scarso
On Thu, Mar 18, 2010 at 11:29 PM, Graham Douglas graham.doug...@readytext.co.uk wrote: Hi Luigi That is very cool work. At present, it is a bit beyond my fuzzy skills, but I will dfinitely keep a copy of your slides for future reference as I slowly get a bit more familiar with LuaTeX

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread Graham Douglas
Why is this --- is this a catcode issue? emotion feeling=DOHI need to read more before asking stupid questions/mode Thanks Taco, much appreciated as always. Warm regards Graham ___ If your question is of

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread Graham Douglas
snip Hi Luigi Great stuff, thank you. If you ever had time to write an article which really explained the underlying programming concepts you demonstrated in your slides I am sure you would find a lot of people interested to read it. I think the ability to extend LuaTeX via Lua libraries really

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread luigi scarso
On Fri, Mar 19, 2010 at 7:29 PM, Graham Douglas graham.doug...@readytext.co.uk wrote: snip Hi Luigi Great stuff, thank you. If you ever had time to write an article which really explained the underlying programming concepts you demonstrated in your slides I am sure you would find a lot of

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-19 Thread Graham Douglas
Hi Luigi Well if you are really interested then you should join ntg + tug now. My article --- as many others about luatex mkiv --- is in the last number of TUGBOAT -- already made TUG membership application, plus made a donation to the LuaTeX fund. Warm regards Graham

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-18 Thread Taco Hoekwater
Hi, Graham Douglas wrote: So, I was wondering if anyone has a minimal example they would be kind enough to share, or can give me a few pointers/guidelines so that I can start experimenting. In particular, I'm interested to call external libraries and inject the output from an external

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-18 Thread Graham Douglas
snip Taco wrote: = Here is a trivial example using LuaExpat: \starttext \startluacode require lxp; text = 'phello world/p' callbacks = { EndElement = false, StartElement = false, Default = function (p, s) tex.sprint(s) end } p = lxp.new(callbacks)

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-18 Thread Graham Douglas
Hi Luigi That is very cool work. At present, it is a bit beyond my fuzzy skills, but I will dfinitely keep a copy of your slides for future reference as I slowly get a bit more familiar with LuaTeX etc. Thanks for sharing that. Warm wishes Graham

[NTG-context] Using external libraries in LuaTeX

2010-03-17 Thread Graham Douglas
Dear All In a the recent Luatex 0.46.0 announcement http://tug.org/pipermail/luatex/2009-November/001118.html experimental support for loading external libraries was reported. I am running Windows Vista with ConTeXt ver: 2010.03.12 19:49 MKIV fmt: 2010.3.16 int: english/english with

Re: [NTG-context] Using external libraries in LuaTeX

2010-03-17 Thread luigi scarso
On Thu, Mar 18, 2010 at 1:10 AM, Graham Douglas graham.doug...@readytext.co.uk wrote: Dear All In a the recent Luatex 0.46.0 announcement http://tug.org/pipermail/luatex/2009-November/001118.html experimental support for loading external libraries was reported. I am running Windows Vista