On Fri, 27 Aug 2010 10:52:02 -0500 "Edward K. Ream" <[email protected]> wrote:
> On Wed, Aug 25, 2010 at 10:40 AM, Edward K. Ream <[email protected]> wrote: > > >> Mwahahahaahhaha - the load code already supports <t/> elements just to > >> carry uAs on all of file, auto, shadow, thin, and edit. I just edited the > >> .leo file and duplicated the one <t/> element (from the @file node) for > >> the thin/edit/shadow and auto nodes, changing the @tx to match their @ts. > >> And it worked. So if only a uA carrying <t/> could be written for those > >> types... > > > > Thanks for this detective work. These are good hints. I don't > > understand the implications just yet. Let me see why test.leo works > > the way it does. > > The relevant code is as follows: > > Reading: getSaxUa. > > Writing: putVnode and putTnode. > > There is code in putVnode that inhibits writing descendant uA's in > @auto trees. I believe this is correct. A similar special case > should probably also inhibit writing to descendants in @edit trees. > Nobody has complained probably because nobody creates descendant nodes > in @edit trees. Fine, I don't expect anything to persist in descendant nodes in non-sentinel formats. > The code in putTnode writes uA's for *all* nodes, which is also > correct because Leo only writes <t> elements for the top-level nodes > of @thin, @edit and @auto trees. Based on the snippet below, I suspect it only writes t nodes for the top level of @file, not @thin/edit/shadow/auto. It would be great if it wrote a t node for all of them. <vnodes> <v t="tbrown.20100824112457.10015"><vh>@edit 1.txt</vh></v> <v t="tbrown.20100824112457.10017"><vh>@file 2.txt</vh></v> <v t="tbrown.20100824112457.10019"><vh>@shadow 3.txt</vh></v> <v t="tbrown.20100824112457.10021"><vh>@auto 4.txt</vh></v> <v t="tbrown.20100824112457.10023"><vh>@thin 5.txt</vh></v> </vnodes> <tnodes> <t tx="tbrown.20100824112457.10017" annotate="7d710055087072696f7269747971014b02 </t> </tnodes> > In short, I think the code is correct, except possibly that the > special case for @auto trees in putVnode should also apply to @edit > trees. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
