Technical document writing using asciidoctor via Leo

2020-04-27 Thread Xu Wang
Dear All,

I'm switching from Markdown to Asciidoctor for writing documents. I'd like
to use Leo as the central part for orgenizing all the docs.

There are a list of questions I'm going to explore. If you have experience
or recommendations please share we me.

1) which leo directive to enable syntax highlight for asciidoc
2) which directive to use for generating external .adoc file from Leoeditor
3) how to use extensions in .adoc file, for example diagrams, slides
4) which leo command to generate html from .adoc file
5) which leo command to generate pdf from .adoc file

Best Regards,
Austin

-- 
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/CAEpKVv_hgoLv2j3W_y_OuYtZ5S%2BD%3Dmy_TOXdtybosoRsVGfnqw%40mail.gmail.com.


Re: "Sh" subprocess replacement removed from Leo's repo

2020-04-27 Thread Edward K. Ream
On Mon, Apr 27, 2020 at 11:58 AM Matt Wilkie  wrote:

> Hi devs,
>
> The 3rd party module *sh* has been removed from Leo's repo (with commit
> a2a43490). It used to live in "leo/extensions" as "sh.py". sh is a
> full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy and PyPy3
> that allows you to call *any* program as if it were a function.
>

Again, thanks. Unit tests depend neither on sh nor patch.

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/CAMF8tS1-KE_qQG4GEcpCyG58A8kLTZjs8VAvWHaTghDw%3DSuxxQ%40mail.gmail.com.


Re: Python-patch removed from Leo's repo

2020-04-27 Thread Edward K. Ream
On Mon, Apr 27, 2020 at 11:47 AM Matt Wilkie  wrote:

> Hi devs,
>
> The 3rd party module *python-patch* has been removed from Leo's repo
> (with commit e08929ad). It used to live in "leo/extensions" as
> "/patch_11_01.py".
>

Thanks for this. I had forgotten that is was there in the first place.

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/CAMF8tS1%3Dg0%3Dt%2Bk0gZSTFGo1%2BuCH5uO3uKdFP2fHa0egRDzR8iA%40mail.gmail.com.


"Sh" subprocess replacement removed from Leo's repo

2020-04-27 Thread Matt Wilkie
Hi devs,

The 3rd party module *sh* has been removed from Leo's repo (with commit 
a2a43490). It used to live in "leo/extensions" as "sh.py". sh is a 
full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy and PyPy3 
that allows you to call *any* program as if it were a function.

A non-exhaustive search through Leo's source code repo didn't find anything 
significant that referenced this file or module. In the event you do use or 
need this it would be better to install or otherwise use directy from it's 
source: https://github.com/amoffat/sh 
. (The copy we were shipping was 
ancient, *many *versions behind current.)

If the module is something that's used all the time or should be available 
to generally to Leo users we can add it to the list of automatically 
installed libraries in setup.py. (Open an enhancement request and tag it 
with Pip.)

cheers,

-matt

-- 
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/c69e2697-4809-45d4-893a-547d7da9e977%40googlegroups.com.


Python-patch removed from Leo's repo

2020-04-27 Thread Matt Wilkie
Hi devs,

The 3rd party module *python-patch* has been removed from Leo's repo (with 
commit e08929ad). It used to live in "leo/extensions" as "/patch_11_01.py".

A non-exhaustive search through Leo's source code repo didn't find anything 
significant that referenced this file or module. From the commit history it 
was added to Leo as a study resource. 

In the event you do use or need this it would be better to install or 
otherwise use directy from it's source: 
https://github.com/techtonik/python-patch.

If the module is something that's used all the time or should be available 
to generally to Leo users we can add it to the list of automatically 
installed libraries in setup.py. (Open an enhancement request and tag it 
with Pip.)

cheers,

-matt

-- 
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/537e4cb4-bd0a-4dc4-9e01-f75c1c15c64e%40googlegroups.com.


Re: Setting up Leo for web development and TEI XML

2020-04-27 Thread Matt Wilkie


On Monday, 20 April 2020 14:36:33 UTC-7, Thomas Passin wrote:
>
> I've put them in the attached Leo outline.  
>

I added them to Leo's snippets repo: 
https://github.com/leo-editor/snippets/tree/master 
Thanks Thomas!

-matt

-- 
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/9bb91362-c26d-43d3-ab2b-9a41e9b453af%40googlegroups.com.


Re: Vendored packages shipped with Leo

2020-04-27 Thread Edward K. Ream
On Sun, Apr 26, 2020 at 10:41 PM Matt Wilkie  wrote:

> And, before I track down and add the license files in whatever format
>> Conda Forge needs, are any of them ripe for removal?
>>
>
> *Patch* in `leo/extensions/` seems to be alive and well upstream and
> quite a bit newer than what we ship -
> https://github.com/techtonik/python-patch.
>
> *Sh *is even more alive - https://github.com/amoffat/sh
>
> Is it reasonable to add these to the pip requirements list and remove from
> the repo?
>

Matt, imo you can do whatever you like in this area.

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/CAMF8tS0S1fJhhUKXG9fDzsnZH0Qy8B4H-c3NrFWXUV1bzOSe4w%40mail.gmail.com.


Re: Ready-to-run exe

2020-04-27 Thread Edward K. Ream
On Sun, Apr 26, 2020 at 9:32 PM Matt Wilkie  wrote:

> We both did the same thing. Rev 6e13c60 in devel attempts to fix the
>> resulting merge conflicts.
>>
>> - I picked my version for LeoDocs.leo because that version fixes some
>> sphinx/rST problems in previous text.
>>
>
> Should I be editing LeoDocs in a different way or doing something else to
> avoid merge conflicts?
>

No. I should have pulled from devel before editing LeoDocs.leo.

>
>
>> - I picked your version of MANIFEST.in. Please ensure it as you want it.
>>
>
> I'm glad you said something, it wasn't. This is very strange though
> because the git log and file history clearly showed the my change was there
> and not reverted in any subsequent diffs that I could see. Yet, in the fle
> system the line I added was gone (`include LICENSE`). Anyway, I re-added it
> (1c197cc).
>

Perhaps my first use of --ours overrode the later use of my --theirs for
MANIFEST.in.

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/CAMF8tS1Bfvygkx_4Cs8yBmrE0wb67b6nuA%3DNRuTMQqL8rPE6ag%40mail.gmail.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-27 Thread Edward K. Ream
On Sun, Apr 26, 2020 at 8:42 PM Matt Wilkie  wrote:

> Drat. You may have to add back those words.
>>
>
> Done :)
>

Thanks, Matt.

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/CAMF8tS1vREsgUtHsYLWTpVg8ECFv8_MwgXmSS9cNhm-xY6nr7Q%40mail.gmail.com.