On Saturday, March 6, 2021 at 3:31:59 PM UTC-6 Edward K. Ream wrote:

> Retiring @root is a good thing, and a conversion script should be part of 
> the retirement process.
>
> I've just created #1832 
> <https://github.com/leo-editor/leo-editor/issues/1832>. 
>

The convert-at-root command is now complete. I tested it on David's .leo 
file and closed #1832.

The command ensures that all section definition nodes appear as descendants 
of the nodes containing the section references. The script finds each 
definition node by searching all @unit trees, clones the definition node 
and moves the clone to the proper place.

Some by-hand adjustment may be necessary. For example, in David's .leo file 
an @root node was *also* a section definition node(!!). In this special 
case the command does *not* change the headline: doing so would destroy the 
section definition. The fix should be obvious, but imo it would be 
pointless for the command to attempt it.

I will soon move leoTangle.py to the attic. I see no conceivable 
circumstance in which @root and @unit could ever be more useful than 
@clean. 

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e2f485ea-8d27-41c5-b6f2-c317038a61fbn%40googlegroups.com.

Reply via email to