Pyenchant spell check is back!

25 views
Skip to first unread message

Matt Wilkie

unread,
Mar 10, 2020, 6:09:24 PM3/10/20
to leo-e...@googlegroups.com
Hi Folks,

Thanks to changes upstream, new maintainers have taken the helm and the Pyenchant spell check utility now works again for Leo (closing #1080).

Windows English users: pip install pyenchant for your python and Leo enabled shell is all that's needed. For languages other than English you need to compile the enchant C library with MingW (see Pyenchant install docs).


Other platforms: install libenchant using apt or yum or brew or whatever followed by pip install pyenchant.


I elected not to add these details to Leo docs because they'll inevitably drift out of date and it's better to go to the source anyway (but this note is here to provide a trail).


When working show-spell-info in Leo's Alt-X command buffer log pane shows something like:

pyenchant spell checker
user dictionary: C:/Users/matt/.leo/spellpyx.txt
main dictionaries: en_BW, en_AU, en_BZ, en_GB, en_JM, en_DK, en_HK, en_GH, en_US, en_ZA, en_ZW, en_SG, en_NZ, en_BS, en_AG, en_PH, en_IE, en_NA, en_TT, en_IN, en_NG, en_CA 

cheers,

-matt

Edward K. Ream

unread,
Mar 10, 2020, 6:49:03 PM3/10/20
to leo-editor
On Tue, Mar 10, 2020 at 5:09 PM Matt Wilkie <map...@gmail.com> wrote:
Hi Folks,

Thanks to changes upstream, new maintainers have taken the helm and the Pyenchant spell check utility now works again for Leo.

Windows English users: pip install pyenchant for your python and Leo enabled shell is all that's needed. For languages other than English you need to compile the enchant C library with MingW (see Pyenchant install docs).


Other platforms: install libenchant using apt or yum or brew or whatever followed by pip install pyenchant.


I elected not to add these details to Leo docs because they'll inevitably drift out of date and it's better to go to the source anyway (but this note is here to provide a trail).


When working show-spell-info in Leo's Alt-X command buffer log pane shows something like:

pyenchant spell checker
user dictionary: C:/Users/matt/.leo/spellpyx.txt
main dictionaries: en_BW, en_AU, en_BZ, en_GB, en_JM, en_DK, en_HK, en_GH, en_US, en_ZA, en_ZW, en_SG, en_NZ, en_BS, en_AG, en_PH, en_IE, en_NA, en_TT, en_IN, en_NG, en_CA 


Thanks, Matt, for your work on this.

Edward
Reply all
Reply to author
Forward
0 new messages