While grepping, I've found in base/node-ini.lua .... --[[ldx-- <p>Serializing nodes can be handy for tracing. Also, saving and loading node lists can come in handy as soon we are going to use external applications to process node lists.</p> --ldx]]-- .... \starttext \setbox100=\vbox{Hi} \ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))} Box reuse:\blank \box100 \blank \ctxlua{initt=loadfile('vbox.hi');initt();tex.box[100] = nodes.FromTableToNodeButItnotExists(t)} %%actually an empty box, of course \box100 \stoptext I was not able to find a "table2node" function ie nodes.FromTableToNodeButItnotExists(t) -- luigi
luigi scarso wrote:
While grepping, I've found in base/node-ini.lua ..... --[[ldx-- <p>Serializing nodes can be handy for tracing. Also, saving and loading node lists can come in handy as soon we are going to use external applications to process node lists.</p> --ldx]]-- .....
\starttext \setbox100=\vbox{Hi} \ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))} Box reuse:\blank \box100 \blank \ctxlua{initt=loadfile('vbox.hi');initt();tex.box[100] = nodes.FromTableToNodeButItnotExists(t)} %%actually an empty box, of course \box100 \stoptext
I was not able to find a "table2node" function ie nodes.FromTableToNodeButItnotExists(t)
indeed, that has a low priority 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 -----------------------------------------------------------------
On Tue, Feb 3, 2009 at 5:26 PM, Hans Hagen
luigi scarso wrote:
While grepping, I've found in base/node-ini.lua ..... --[[ldx-- <p>Serializing nodes can be handy for tracing. Also, saving and loading node lists can come in handy as soon we are going to use external applications to process node lists.</p> --ldx]]-- .....
\starttext \setbox100=\vbox{Hi} \ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))} Box reuse:\blank \box100 \blank \ctxlua{initt=loadfile('vbox.hi');initt();tex.box[100] = nodes.FromTableToNodeButItnotExists(t)} %%actually an empty box, of course \box100 \stoptext
I was not able to find a "table2node" function ie nodes.FromTableToNodeButItnotExists(t)
indeed, that has a low priority
ok , no problem at all. I doesn't seem very difficult, probably I will give it a try.
-- luigi
On Tue, Feb 3, 2009 at 5:34 PM, luigi scarso
On Tue, Feb 3, 2009 at 5:26 PM, Hans Hagen
wrote: luigi scarso wrote:
While grepping, I've found in base/node-ini.lua ..... --[[ldx-- <p>Serializing nodes can be handy for tracing. Also, saving and loading node lists can come in handy as soon we are going to use external applications to process node lists.</p> --ldx]]-- .....
\starttext \setbox100=\vbox{Hi} \ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))} Box reuse:\blank \box100 \blank \ctxlua{initt=loadfile('vbox.hi');initt();tex.box[100] = nodes.FromTableToNodeButItnotExists(t)} %%actually an empty box, of course \box100 \stoptext
I was not able to find a "table2node" function ie nodes.FromTableToNodeButItnotExists(t)
indeed, that has a low priority
BTW, Am I wrong if I say that this serialization is an alternative form for a pdf " box " ? -- luigi
luigi scarso wrote:
On Tue, Feb 3, 2009 at 5:34 PM, luigi scarso
wrote: On Tue, Feb 3, 2009 at 5:26 PM, Hans Hagen
wrote: luigi scarso wrote:
While grepping, I've found in base/node-ini.lua ..... --[[ldx-- <p>Serializing nodes can be handy for tracing. Also, saving and loading node lists can come in handy as soon we are going to use external applications to process node lists.</p> --ldx]]-- .....
\starttext \setbox100=\vbox{Hi} \ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))} Box reuse:\blank \box100 \blank \ctxlua{initt=loadfile('vbox.hi');initt();tex.box[100] = nodes.FromTableToNodeButItnotExists(t)} %%actually an empty box, of course \box100 \stoptext
I was not able to find a "table2node" function ie nodes.FromTableToNodeButItnotExists(t)
indeed, that has a low priority
BTW, Am I wrong if I say that this serialization is an alternative form for a pdf " box " ?
wrong indeed, it's a table representation of a node list (tex's internal representation of a box) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
luigi scarso