Re: Progress on ViewRendered2

2020-01-07 Thread Edward K. Ream
On Fri, Jan 3, 2020 at 1:46 PM Thomas Passin wrote: > On Friday, December 27, 2019 at 6:35:04 PM UTC-5, Thomas Passin wrote: >> >> I have made a lot of progress on re-implementing *Viewrendered2 *in the >> QT5 era, and I wanted to share where I am with it. >> > Thanks for this report, and all

Re: Unifying the tokens and ast world: fstringify works

2020-01-07 Thread Edward K. Ream
On Wednesday, January 1, 2020 at 8:06:31 AM UTC-5, Edward K. Ream wrote: > This morning the fstringify branch passed a significant milestone: it fstringified leoApp.py correctly. A week later, for the first time, Leo fstringifies *all* of Leo's core files without incident. This is a major

Re: #1467: Use traditional unit test (almost?) everywhere

2020-01-07 Thread Edward K. Ream
On Sunday, December 29, 2019 at 7:19:03 PM UTC-5, btheado wrote: I was looking at the tests in leoAst.py in the fstringify branch and I > don't find any asserts in the tests themselves. > The tests in the TestTOG are actually extremely strong. I have just added the following to the docstring

Matt: distribute leoAst separately?

2020-01-07 Thread Edward K. Ream
I would like eventually to distribute leoAst.py as a separate entity. What do you think would be required? 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

Re: Question about "Import leoGlobals, but do NOT set g."

2020-01-07 Thread Edward K. Ream
On Fri, Jan 3, 2020 at 4:42 PM Brian Theado wrote: >>> I thought the 'g' and 'leoGlobals' identifiers are local to the runLeo.py file. I don't see how having the name be 'leoGlobals' instead of 'g' for two lines of code could affect anything. >> If you really want to know why the code is as it

Re: Leo and the Best of the Rest

2020-01-07 Thread Edward K. Ream
On Tuesday, January 7, 2020 at 4:32:30 AM UTC-5, Israel Hands wrote: > I'm pondering software that gives graphical form to outlines... > Tinderbox is a fascinating bit of software. It offers a tree view much as Leo does and offers clones [and] has a huge set of visualization tools included in

Re: OPML - Leo and Tinderbox

2020-01-07 Thread Edward K. Ream
On Friday, January 3, 2020 at 11:34:12 AM UTC-5, Israel Hands wrote: I was interested to play with Tinderbox and see what it had to offer. And > one of things is OPML import and export. Exporting notes from TBX as OPL > seems to work fine as the leoopml plugin turns TBX notes into Leo nodes >

Re: PDF output for RsT/Sphinx documents works again

2020-01-07 Thread Edward K. Ream
On Friday, December 27, 2019 at 6:48:47 PM UTC-5, Thomas Passin wrote: With the change to Python 3+ for Leo, I found I couldn't build Sphinx > documents to PDF, using rst2pdf. It only worked for Python 2.x, not 3.x. > I've done some work on it, and I'm happy to say that I have had some >

Using Vitalije's code patterns

2020-01-07 Thread Edward K. Ream
While working on leoAst.py, I have come to understand more fully several of Vitalije's suggested code patterns: *Prefer functions to classes/methods* Classes and methods are essential in python. They aren't going away. However, in some cases functions are preferable to methods, for several

Re: #1467: Use traditional unit test (almost?) everywhere

2020-01-07 Thread Brian Theado
On Sun, Dec 29, 2019 at 5:54 PM Edward K. Ream wrote: > On Sun, Dec 29, 2019 at 5:29 PM Brian Theado > wrote: > [...] > > You might also find the code coverage report useful: > > Yes, that's interesting. The TOG classes remember which visitors have > been visited, so that's probably enough. >

Re: Looking at Viktor's key traces

2020-01-07 Thread Viktor Ransmayr
Hello Edward, Am Mi., 1. Jan. 2020 um 17:21 Uhr schrieb Viktor Ransmayr < viktor.ransm...@gmail.com>: > Am Montag, 30. Dezember 2019 07:50:10 UTC+1 schrieb Viktor Ransmayr: >> >> Am So., 29. Dez. 2019 um 23:34 Uhr schrieb Edward K. Ream < >> edream...@gmail.com>: >> >>> Your key traces show two

Re: #1467: Use traditional unit test (almost?) everywhere

2020-01-07 Thread Brian Theado
On Tue, Jan 7, 2020 at 5:01 AM Edward K. Ream wrote: > On Sunday, December 29, 2019 at 7:19:03 PM UTC-5, btheado wrote: > > I was looking at the tests in leoAst.py in the fstringify branch and I >> don't find any asserts in the tests themselves. >> > > The tests in the TestTOG are actually

Re: Matt: distribute leoAst separately?

2020-01-07 Thread Matt Wilkie
> > I would like eventually to distribute leoAst.py as a separate entity. > What do you think would be required? > I'll have to think about, perhaps some test some things. First blush, simplest thing that could work is a script that executes python equivalent to `wget http://leoAst.py`

Re: Leo and the Best of the Rest

2020-01-07 Thread Matt Wilkie
> > Having said that, Leo got its start because I had trouble understanding > complex programs isn't easy. Just yesterday I thought again about this > problem. The task before me is to explain all the new code in leoAst.py. > > Neither words, words, words, nor outlines, nor pretty graphs seem