Re: David Szent-Györgyi: Please send an example .leo file

2021-03-08 Thread Edward K. Ream
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 
> . 
>

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e2f485ea-8d27-41c5-b6f2-c317038a61fbn%40googlegroups.com.


Re: David Szent-Györgyi: Please send an example .leo file

2021-03-06 Thread Edward K. Ream
On Saturday, March 6, 2021 at 3:19:54 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 
. 

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/14065aca-92d5-4e7b-99d6-ef998ebe348cn%40googlegroups.com.


Re: David Szent-Györgyi: Please send an example .leo file

2021-03-06 Thread Edward K. Ream
On Saturday, March 6, 2021 at 12:10:54 PM UTC-6 Edward K. Ream wrote:

>
> Enclosed is my copy of your outline, with some, but not all, @root trees 
> converted. 
>
> Here is what I did:
>
> - Removed top-level nodes that didn't contain code.
> - Changed the @root directive in the body text to @clean in the headline.
> - Made clones of all section references defined outside of @clean nodes, 
> and moved the clones so they are children of the nodes that reference them.
> - Saved the @clean nodes, and the verified that the external files were 
> the same as before, or nearly so.
>

his is a recipe for a conversion script! It should be straightforward.  
Iirc, @unit delimits the area that contains the desired section definitions.

Retiring @root is a good thing, and a conversion script should be part of 
the retirement process. I'm on it.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e0fc9a00-146f-491f-aaf0-75627aec6339n%40googlegroups.com.


Re: David Szent-Györgyi: Please send an example .leo file

2021-03-05 Thread Edward K. Ream
On Thu, Mar 4, 2021 at 4:25 PM David Szent-Györgyi  wrote:

> I apologize for the delay in digging this up.
>

No problem.

I've shared a Dropbox link with your edreamleo  gmail  com email
> address.
>

I've got the folder. I've created a copy under control of git so I can
track my changes and compare with the originals.  I suspect it will be
straightforward to convert to either @file or @clean.  I'll use @clean at
first to minimize git diffs, but when the dust settles I would suggest
using @file if you can.

I'll let you know how the conversion process went soon.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS10QmQY5Rm1sttP07KBW30C3edjQmXdJYrmnKJKRXvfAw%40mail.gmail.com.


Re: David Szent-Györgyi: Please send an example .leo file

2021-03-04 Thread David Szent-Györgyi
I apologize for the delay in digging this up. 

I've shared a Dropbox link with your edreamleo  gmail  com email 
address. 

The link is to a shared folder that at present contains a Zip archive with 
a couple of  Leo files and WSF files - enough to open the Leo file. As the 
Leo file shows, I use the @root directive for each WSF file! 

Anything I can do to explain or correct problems, let me know. 
On Thursday, March 4, 2021 at 6:34:11 AM UTC-5 Edward K. Ream wrote:

> Hi David,
>
> It will be worth my time to suggest alternatives to @root. Please send me 
> an example of how you use @root.  Thanks.
>
> 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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/83d729ff-9bb9-4841-b768-2a7801ca9bf0n%40googlegroups.com.


David Szent-Györgyi: Please send an example .leo file

2021-03-04 Thread Edward K. Ream
Hi David,

It will be worth my time to suggest alternatives to @root. Please send me 
an example of how you use @root.  Thanks.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0fb91301-1aff-4fb2-afe0-e20f1f897f08n%40googlegroups.com.