On Thu, 6 Dec 2007, Hans Hagen wrote:
Wolfgang Schuster wrote:
The order of key and entry is, the same as in the mkii macro
{ { v[2], v[3] } }, -- key, entry
but you wrote
{ { v[3], v[2] } }, -- entry, key
ok, fixed
just wondering ... now we move to a mix of tex and lua code, how complex is it to piece together what's happening now inside context
I think that it is going to be easier (once you get the hang of it). When I started reading mkii code, I understood the steps that were being followed, but the fine details were pretty hard to understand. With luatex, the broad steps are still in tex, so that part is the same, but the fine implementation (that needed a real programming language) are in lua. This makes it much easier to understand. I could read the new mkiv pretty printing code and see what it was doing. With the mkii pretty printing code, I spent about a week and was still clueless (rather, I understood bits and pieces, but there was no way I could extend it to another language). I think that this is enough to overcome to compensate for the overhead between going back and forth between lua and tex code. Aditya