Re: A prize for better looking Qt style sheets?

2018-02-09 Thread lewis
Stay on that soapbox.The imposition of ultra low contrast, gray on gray 
text is simply poor design with very little regard for legibility.
It's not like we have an ink shortage.

Lewis

On Saturday, February 10, 2018 at 8:12:05 AM UTC+11, Terry Brown wrote:
>
>
> ... thinking that everyone's seeing 
> what they're seeing.  [Steps down from soapbox, gingerly, to avoid a 
> fall]  :-) 
>
> Cheers -Terry 
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Pyenchant does *not* work for Windows 64-bit systems

2018-02-09 Thread Edward K. Ream
On Fri, Feb 9, 2018 at 4:15 PM, lewis  wrote:

> Latest commit is not loading Leo for me.
>

  File "N:\git\leo-editor\leo\commands\spellCommands.py", line 251, in
read_words
with open(fn, 'rb') as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType

​Try fc5567a. The new code catches all exceptions when trying to load ​a
dict.

Edward


> Regards
> Lewis
>
> --
> 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 post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
--
Edward K. Ream: edream...@gmail.com Leo: http://leoeditor.com/
--

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A prize for better looking Qt style sheets?

2018-02-09 Thread Edward K. Ream
On Fri, Feb 9, 2018 at 3:12 PM, Terry Brown  wrote:

We might need to specify what style we're looking for.  Something more
> like MS Office / Google Docs.?  Sublime Text 2 maybe?  The GitHub
> Desktop interface?
>

​Good point.  I would like to leave that to potential entrants.​


>
> Also, styles change but not always for the best - I'm noticing a lot of
> gray on gray stuff on web pages these days that I find very annoying.
>

​Yes, geriatric eyes want something else.

A good starting point, imo, would be the various atom editor dark themes
.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Pyenchant does *not* work for Windows 64-bit systems

2018-02-09 Thread lewis
Latest commit is not loading Leo for me. It's not a complete crash; I have 
a Leo splash screen but nothing after that


Leo 5.7b1, build 20180209145139, Fri Feb  9 14:51:39 CST 2018
Git repo info: branch = master, commit = ddb87d916eb3
Python 3.6.4, PyQt version 5.10.0
Windows 10 AMD64 (build 10.0.16299) SP0
** isPython3: True
** caching enabled

reading settings in C:\Users\lewis\.leo\workbook.leo
created: C:\Users\lewis\.leo\spellpyx.txt
Traceback (most recent call last):
  File "N:\git\leo-editor\launchLeo.py", line 8, in 
leo.core.runLeo.run()
  File "N:\git\leo-editor\leo\core\runLeo.py", line 74, in run
g.app.loadManager.load(fileName, pymacs)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 2206, in load
ok = lm.doPostPluginsInit()
  File "N:\git\leo-editor\leo\core\leoApp.py", line 2838, in 
doPostPluginsInit
c1 = lm.openEmptyWorkBook()
  File "N:\git\leo-editor\leo\core\leoApp.py", line 2899, in 
openEmptyWorkBook
c = lm.loadLocalFile(fn, gui=g.app.gui, old_c=None)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 3064, in loadLocalFile
c = lm.openFileByName(fn, gui, old_c, previousSettings)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 3088, in openFileByName
previousSettings=previousSettings)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 1545, in newCommander
return leoCommands.Commands(fileName, relativeFileName, gui, 
previousSettings)
  File "N:\git\leo-editor\leo\core\leoCommands.py", line 82, in __init__
c.finishCreate()
  File "N:\git\leo-editor\leo\core\leoCommands.py", line 415, in 
finishCreate
c.frame.log.finishCreate()
  File "N:\git\leo-editor\leo\plugins\qt_frame.py", line 3146, in 
finishCreate
c.spellCommands.openSpellTab()
  File "N:\git\leo-editor\leo\commands\spellCommands.py", line 463, in 
openSpellTab
self.handler = SpellTabHandler(c, tabName)
  File "N:\git\leo-editor\leo\commands\spellCommands.py", line 707, in 
__init__
self.spellController = DefaultWrapper(c)
  File "N:\git\leo-editor\leo\commands\spellCommands.py", line 238, in 
__init__
words = self.read_words(kind, fn)
  File "N:\git\leo-editor\leo\commands\spellCommands.py", line 251, in 
read_words
with open(fn, 'rb') as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType

Regards
Lewis

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A prize for better looking Qt style sheets?

2018-02-09 Thread Terry Brown
On Fri, 9 Feb 2018 13:02:06 -0800 (PST)
"Edward K. Ream"  wrote:

> Leo's look is very important, both as a lure to newbies and as a
> source of joy (or otherwise) to experienced users. 
> 
> Terry suggests Leo's stodgy look could be improved with better Qt
> style sheets.  Surely we can do better, but I, with my geriatric
> eyes, am not the one to do it.
> 
> Would substantial prizes would encourage development?  I am thinking
> of $250 each for the best looking Linux and Windows style sheets.
> 
> Any comments?  Any potential contestants?

We might need to specify what style we're looking for.  Something more
like MS Office / Google Docs.?  Sublime Text 2 maybe?  The GitHub
Desktop interface?

Also, styles change but not always for the best - I'm noticing a lot of
gray on gray stuff on web pages these days that I find very annoying.
Young designers on high spec. monitors thinking that everyone's seeing
what they're seeing.  [Steps down from soapbox, gingerly, to avoid a
fall]  :-)

Cheers -Terry

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


A prize for better looking Qt style sheets?

2018-02-09 Thread Edward K. Ream
Leo's look is very important, both as a lure to newbies and as a source of 
joy (or otherwise) to experienced users. 

Terry suggests Leo's stodgy look could be improved with better Qt style 
sheets.  Surely we can do better, but I, with my geriatric eyes, am not the 
one to do it.

Would substantial prizes would encourage development?  I am thinking of 
$250 each for the best looking Linux and Windows style sheets.

Any comments?  Any potential contestants?

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: The new default spell checker is ready for testing

2018-02-09 Thread Edward K. Ream
On Friday, February 9, 2018 at 12:51:29 PM UTC-6, Edward K. Ream wrote:

I should emphasize that Leo will use pyenchant automatically if it is 
> available.
>
> You can tell when the default checker is running because you will see 
> something like this in the console window:
>
>   9348 words in  local dictionary: c:\Users\edreamleo\.leo\spellpyx.txt
>  77241 words in global dictionary: C:\Users\edreamleo\.leo\
> main_spelling_dict.txt
>

That would quickly become irritating.  Rev ddb87d9 removes this cruft from 
the startup log.

Use the new show-spell-info command to see the location of the user 
dictionary, and other info about the main dictionaries, depending on the 
spell checker.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: The new default spell checker is ready for testing

2018-02-09 Thread Edward K. Ream


On Friday, February 9, 2018 at 12:49:11 PM UTC-6, Edward K. Ream wrote:

#700: Create a default spell checker for when pyenchant is not available 
>  is ready for 
> serious testing.
>

I should emphasize that Leo will use pyenchant automatically if it is 
available.

You can tell when the default checker is running because you will see 
something like this in the console window:

  9348 words in  local dictionary: c:\Users\edreamleo\.leo\spellpyx.txt
 77241 words in global dictionary: C:\Users\edreamleo\.leo\
main_spelling_dict.txt

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


The new default spell checker is ready for testing

2018-02-09 Thread Edward K. Ream
#700: Create a default spell checker for when pyenchant is not available 
 is ready for serious 
testing.

I have just upload the main spelling dict, main_spelling_dict.txt, to 
Leo/Miscellaneous 
on SourceForge . 
*Important*: The main dictionary is not large enough to be truly useful.  #711: 
Create bigger default spelling dicts 
 asks for help with 
this project.

The dictionaries are assumed to be in the following locations:

Main dictionary:

~/.leo/main_spelling_dict.txt

User dictionary:

@string enchant_local_dictionary or
leo/plugins/spellpyx.txt or
~/.leo/spellpyx.txt.

All questions, comments and bug reports are welcome.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: There's no whinging about distribution

2018-02-09 Thread Edward K. Ream
On Friday, February 9, 2018 at 10:15:15 AM UTC-6, Edward K. Ream wrote:

Success! pyinstaller successfully creates a 32-bit version of Leo, based on 
> Python 2.7.14 and PyQt version 4.8.6. #710: Switching between Anaconda 
> installations 
> 
>  
> show all the details.
>

Btw, the 32-bit version is essential for checking that creating a default 
spell checker doesn't break pyenchant support.  See #700: Create a default 
spell checker for when pyenchant is not available. 


#700 isn't so important now that there is a clear route to spell checking.  
However, spell checkers create distribution issues, so I think to handle 
everything is right now, while details are fresh in my mind.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


There *will* be a Windows pyinstaller distro for Leo 5.7b2

2018-02-09 Thread Edward K. Ream
The title says it all.  The next release must be beta because of all the 
distribution-related work we have done recently.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: There's no whinging about distribution

2018-02-09 Thread Edward K. Ream
On Thursday, February 8, 2018 at 10:53:04 AM UTC-6, Edward K. Ream wrote:

Success! pyinstaller successfully creates a 32-bit version of Leo, based on 
Python 2.7.14 and PyQt version 4.8.6. #710: Switching between Anaconda 
installations 

 
show all the details.

#710 also gives improved scripts for switching between various installs.  
Thanks to Matt for this.

This has been surprisingly interesting and rewarding work.  Recording all 
the details in #710 is a important improvement in Leo's development work 
flow.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: ENB: possible improvements to javascript importer

2018-02-09 Thread Edward K. Ream
On Friday, February 9, 2018 at 8:43:43 AM UTC-6, Edward K. Ream wrote:

Rev e3d9636 improves js_i.starts_block as follows.  It appears to work well.

func_patterns = [
re.compile(r'\)\s*=>\s*\{'),
re.compile(r'\bclass\b'),
re.compile(r'\bfunction\b'),
]

def starts_block(self, i, lines, new_state, prev_state):
'''True if the new state starts a block.'''
if new_state.level() <= prev_state.level():
return False
line = lines[i]
for pattern in self.func_patterns:
if pattern.search(line) is not None:
return True
return False

Let me know if other patterns should be included.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: ENB: possible improvements to javascript importer

2018-02-09 Thread Edward K. Ream
On Thursday, February 8, 2018 at 12:01:27 PM UTC-6, Edward K. Ream wrote:

We can see the problem in the electron "hello world" javascript code.  The 
> importer fails to recognize these two event handlers:
>
> app.on('window-all-closed', () => {
>   // whatever
> })
>
> app.on('activate', () => {
>   // whatever
> })
>
> The fault lies in js_i.starts_block.  It only recognizes the start of a 
> function if a line that increases the { level *also* contains the word 
> "function".  Clearly, it should use a more sophisticated pattern matcher.
>

> In general, recognizing js functions is hard because there are many ways 
> to start functions/methods in javascript. 
>

Well, it's no good whinging about javascript syntax. Invention is required.

js_i.starts_block return True if the line should start a new node.  It 
might more profitably look for lines that *don't/can't* start a function.  
But this seems like a dubious idea now that I look into it.

In the example given above, looking for '=>' would work...

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: There's no whinging about distribution

2018-02-09 Thread Edward K. Ream
On Thursday, February 8, 2018 at 9:53:25 AM UTC-6, Edward K. Ream wrote:
>
> I've been guilty of this lately.  
>

On multiple topics.  This thread would better have been called, "There's no 
whinging in software development :-)

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Electron documentation on best practices for security

2018-02-09 Thread Edward K. Ream
On Wed, Feb 7, 2018 at 1:46 PM, David Szent-Györgyi 
wrote:

To my knowledge, none of us earn a living working on Leo and related
> projects, which means leveraging pre-existing code saves one the effort of
> reimplementing that.
>

​Heh.  This is likely a valid principle even for commercial enterprises.

Electron may prove to be immensely useful for Leo and related projects such
> as a desktop application made from LeoVue.
>
> Since I have no experience writing code for node.js or for Electron, I
> looked up Electron's guide on security
> , which is worth
> consideration.
>

​I linked to this page myself earlier somewhere.  It's scary.  Some
approaches may be scarier than others.  Terry's local server code might
mitigate these problems, or not.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Distribute only 64-bit executables?

2018-02-09 Thread Edward K. Ream
On Wed, Feb 7, 2018 at 12:26 PM, David Szent-Györgyi 
wrote:

>
> This is the Windows analogue of the Debian GNU/Linux's Multiarch support
> .
>

​Many thanks for these lengthy comments.  I've put a link to them at the
start of #710 . This
info item won't ever close, so your notes should remain readily accessible.

It looks like it is possible to create a 32-bit version of Leo on Windows,
so pyinstaller should work again on Windows. If so, everything will as it
was previously.  No changes needed to NSIS.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Matt, how do I review your docs?

2018-02-09 Thread Edward K. Ream
On Thu, Feb 8, 2018 at 1:55 AM, Matt Wilkie  wrote:

​>> ​
it's extremely hard to see what the actual changes are/were in Leo.
​> ​
I was hoping you had some magic here!

​I'll copy the corresponding outline from master and your two branches to
ekr.leo, my personal outline.

Leo's diff-marked-nodes command only compares two outlines at a time.  This
may not be good enough. If not, I'll create some new commands, probably
based on Leo's git-diff command.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: There's no whinging about distribution

2018-02-09 Thread Edward K. Ream
On Thu, Feb 8, 2018 at 1:24 PM, Edward K. Ream  wrote:

> On Thursday, February 8, 2018 at 11:49:42 AM UTC-6, Edward K. Ream wrote:
>
> As discussed in the info item, it does not seem possible to downgrade from
>> Qt 5 to Qt 4 in when installing Anaconda2-5.0.1-Windows-x86.exe.
>>
>
> The next step will be to google how to do this.
>

​This page

should do the trick.  I'll get to this later today.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.