Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-10-01 Thread Mojca Miklavec
On 9/16/07, Hans Hagen wrote: > > i rewrote the parser (both xml and semi-xpath) so it may have been > broken, i'll upload a new beta tomorrow Hello Hans, Thanks a lot for fixing the issue with non-working \xmlatt. Now, I'm still slightly lost regarding two issues: - How to remove unneeded space

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Mojca Miklavec wrote: > I have tried exactly that before, but this example fails to work for > me, or I don't know how to apply it: i rewrote the parser (both xml and semi-xpath) so it may have been broken, i'll upload a new beta tomorrow Hans --

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Aditya Mahajan wrote: > (Caveat: I do not really know lua regex, and have not tried out the > code) they are not regexp but expressions -) > Assuming lua follows standard regex syntax, this means > > & # The letter & > ( # start a group > .. # any character > - # As few as needed > ) # end gro

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-16 Thread Aditya Mahajan
On Sun, 16 Sep 2007, Mojca Miklavec wrote: > On 9/14/07, Hans Hagen <[EMAIL PROTECTED]> wrote: >> mojcasentities = { >> nbsp = " ", >> le = "'\\mathematics{\\le}' >> } >> >> local d[k]= d[k]:gsub("&(.-);",mojcasentities) > > Yes, I saw it, but didn't try to understand what the &

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-16 Thread Mojca Miklavec
On 9/14/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > > On 9/14/07, Hans Hagen wrote: > >> Mojca Miklavec wrote: > >>> Hello, > >>> > >>> I was trying to figure out how to process simple HTML files with the > >>> new code, but I fail to understand the details. Here's a simple

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-16 Thread Mojca Miklavec
On 9/14/07, Hans Hagen wrote: > Mojca Miklavec wrote: > > > Great! This works perfect and seems much easier to write than the old > > code, though I still have no idea how to implement some parts of it: > > - where to plug in the entities such as  , ≤, ... > > \xmlutfize{main} Thanks. I saw it, bu

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-14 Thread Mojca Miklavec
On 9/14/07, Hans Hagen wrote: > Mojca Miklavec wrote: > > Hello, > > > > I was trying to figure out how to process simple HTML files with the > > new code, but I fail to understand the details. Here's a simple file I > > would like to process: > > > keep in mind that this is still somewhat experime

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-14 Thread Hans Hagen
Mojca Miklavec wrote: > Great! This works perfect and seems much easier to write than the old > code, though I still have no idea how to implement some parts of it: > - where to plug in the entities such as  , ≤, ... \xmlutfize{main} or just load the regular entity handlers (mkii still works and

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-14 Thread Hans Hagen
Mojca Miklavec wrote: > On 9/14/07, Hans Hagen wrote: >> Mojca Miklavec wrote: >>> Hello, >>> >>> I was trying to figure out how to process simple HTML files with the >>> new code, but I fail to understand the details. Here's a simple file I >>> would like to process: >>> >> keep in mind that this

Re: [NTG-context] How to process simple HTML files with LuaTeX

2007-09-13 Thread Hans Hagen
Mojca Miklavec wrote: > Hello, > > I was trying to figure out how to process simple HTML files with the > new code, but I fail to understand the details. Here's a simple file I > would like to process: > > > > My first HTML2ConTeXt > > > Main Title > Some text ... > Su

[NTG-context] How to process simple HTML files with LuaTeX

2007-09-13 Thread Mojca Miklavec
Hello, I was trying to figure out how to process simple HTML files with the new code, but I fail to understand the details. Here's a simple file I would like to process: My first HTML2ConTeXt Main Title Some text ... Subtitle Some text again ...