From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47172 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Serializing nodes Date: Tue, 3 Feb 2009 17:36:29 +0100 Message-ID: References: <4988704A.4090408@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2046891926==" X-Trace: ger.gmane.org 1233679489 21064 80.91.229.12 (3 Feb 2009 16:44:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 16:44:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 03 17:46:01 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LUOPI-0003TJ-Qk for gctc-ntg-context-518@m.gmane.org; Tue, 03 Feb 2009 17:45:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 006081FC5A; Tue, 3 Feb 2009 17:44:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25537-09; Tue, 3 Feb 2009 17:44:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B92071FBD0; Tue, 3 Feb 2009 17:39:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0139F1FBD0 for ; Tue, 3 Feb 2009 17:39:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31837-01-2 for ; Tue, 3 Feb 2009 17:38:55 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 6CA3A1FBC9 for ; Tue, 3 Feb 2009 17:38:36 +0100 (CET) Original-Received: from mail-fx0-f16.google.com (mail-fx0-f16.google.com [209.85.220.16]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n13GcZIY017109 for ; Tue, 3 Feb 2009 17:38:36 +0100 Original-Received: by fxm9 with SMTP id 9so2265107fxm.2 for ; Tue, 03 Feb 2009 08:38:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=6vO90WxNNkHGLvqGmpPwsW0TRLPTCe6leBkz2XY4W28=; b=obPw2vu7d2NMvBhkJlTJNmfunoesQpP6wfaL538HLbNvAS6yF2PUvfSxJDqoPEwABY IxV0dWa1EWGI3MZH/BReLUq+XHc0ZqqBnCpai8Bvg46DXe4FecmUBKPdSf8PxJLjpyL0 fL4qz8UJZ2CO7jBRiHMM/wy4Uwv0gFTszxoLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fZFZvk+P5fiE5Ukw/g75dsvQzw//4dk+cDdu99vIN8MnnS8Do4dg5j6gLsgRbGlmey AnRV+Sx+VedPHMDdLekUR/rdb+b7tLxWbShfhxVnNGKiqOhNL9Wsk5E2LV4J29Y7FNaN SIDw4hpF5K3rZxkpiukBjRPFD9uqqe8mIMD6o= Original-Received: by 10.181.197.1 with SMTP id z1mr9859bkp.118.1233678989788; Tue, 03 Feb 2009 08:36:29 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.16; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 174473636 - 5d851dfbd4f1 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47172 Archived-At: --===============2046891926== Content-Type: multipart/alternative; boundary=00504502cd8ff405ef0462064538 --00504502cd8ff405ef0462064538 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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-- >>>

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.

>>> --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 --00504502cd8ff405ef0462064538 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, Feb 3, 2009 at 5:34 PM, luigi sc= arso <luigi.= scarso@gmail.com> wrote:


On Tue, Feb 3, 200= 9 at 5:26 PM, Hans Hagen <pragma@wxs.nl> 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=3D\vbox{Hi}
\ctxlua{io.savedata('vbox.hi',nodes.serializebox(100,true, true))}<= br> Box reuse:\blank
\box100
\blank
\ctxlua{initt=3Dloadfile('vbox.hi');initt();tex.box[100] =3D
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

--00504502cd8ff405ef0462064538-- --===============2046891926== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2046891926==--