windows spell checking

View: New views
3 Messages — Rating Filter:   Alert me  

windows spell checking

by AaronSort :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I seem to remember a message saying someone was working on getting spell checking working on windows and to check old mail messages but I couldn't find anything. Does anyone have any clues on how to get it to work? I've tried looking at atkspell but it looks like it would be very painfull to get it going with many dependences to compile. Unless someone knows of some work hidden on the net somewhere that has already done it.
-- AaronS


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Gramps-windows mailing list
Gramps-windows@...
https://lists.sourceforge.net/lists/listinfo/gramps-windows

Re: windows spell checking

by steve_geo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Aaron,

Aaron R. Short wrote:
> I seem to remember a message saying someone was working on getting
> spell checking working on windows and to check old mail messages but I
> couldn't find anything.
> Does anyone have any clues on how to get it to work?
I think the theory is that you need a windows install of GtkSpell and
pyEnchant. I haven't found an prebuilt GtkSpell for windows, maybe I
just didn't look hard enough.
A prebuilt binary of PyEnchant is readily available for windows
http://pyenchant.sourceforge.net/

> I've tried looking at atkspell but it looks like it would be very
> painfull to get it going with many dependences to compile.
I'm am reading this as GtkSpell, and assuming AtkSpell is a spelling
mistake. ( I didn't find atkspell on Google either)
GtkSpell does seem painful to build but i didn't try.
> Unless someone knows of some work hidden on the net somewhere that has
> already done it.
I did a bit of work on a python emulation of what GtkSpell does, which
then uses pyEnchant as it's back end.
It worked fine as a proof of concept. I've got a couple of my apps using
this for the spell checking on windows, no problems so far, but not much
testing is getting done.
In essence I need to ship this python 'emulation' layer and have an
install of pyEnchant, and I had spell checking working.

To use it in GRAMPS would require a few changes to GRAMPS spell.py
(primarily due to cross platform issues with lang codes and code pages,
and optimisations that pyEnchant allows us rather than the manual
workaround to work out languages currently encoded in there), while it
worked, it seemed to have an issue with how it highlighted text after
changing of word in styled text of notes (I think the class was
StyledTextView), .. I haven't put any more effort into investigating
this issue.
 
This python 'emulation' of GtkSpell was basically a python translation
of the C source code of GtkSpell, and is still pretty rough.

Having said all that, there is also a bug in pyEnchant when compiling it
with py2exe, it wouldn't get all the libraries for windows, and at
runtime it couldn't work out the location of these files once 'frozen'.
I submitted a patch the the packager of pyEnchant and he said it will be
available when he next does the next release.

- Steve

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Gramps-windows mailing list
Gramps-windows@...
https://lists.sourceforge.net/lists/listinfo/gramps-windows

Re: windows spell checking

by AaronSort :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
wow frigin awesome. Yes AtkSpell was a mis type. You've done a lot more work on this than I thought. I don't suppose you'd mind putting your code somewhere where we can both work on it? Even buggy and untested it would be a lot further along than anything I got (nothing). Perhaps even throw it on gramps4win SVN in a branch? If you let me know your sourceforge name I can add access for you. I might be able to help with py2exe and pyEnchant as I had to track down a few imports for GRAMPS all ready. You just have to expressly include them and then they load fine.

to be honest I'll probably skip spelling for a bit till I get other things more solidified. I've been making progress on py2exe and am looking at the optional dependencies now.

--AaronS



From: Stephen George <steve_geo@...>
To: Aaron R. Short <fuzzyfonzy@...>
Cc: gramps windows <gramps-windows@...>
Sent: Sunday, April 12, 2009 4:25:32 AM
Subject: Re: [Gramps-windows] windows spell checking

Hi Aaron,

Aaron R. Short wrote:
> I seem to remember a message saying someone was working on getting spell checking working on windows and to check old mail messages but I couldn't find anything.
> Does anyone have any clues on how to get it to work?
I think the theory is that you need a windows install of GtkSpell and pyEnchant. I haven't found an prebuilt GtkSpell for windows, maybe I just didn't look hard enough.
A prebuilt binary of PyEnchant is readily available for windows http://pyenchant.sourceforge.net/

> I've tried looking at atkspell but it looks like it would be very painfull to get it going with many dependences to compile.
I'm am reading this as GtkSpell, and assuming AtkSpell is a spelling mistake. ( I didn't find atkspell on Google either)
GtkSpell does seem painful to build but i didn't try.
> Unless someone knows of some work hidden on the net somewhere that has already done it.
I did a bit of work on a python emulation of what GtkSpell does, which then uses pyEnchant as it's back end.
It worked fine as a proof of concept. I've got a couple of my apps using this for the spell checking on windows, no problems so far, but not much testing is getting done.
In essence I need to ship this python 'emulation' layer and have an install of pyEnchant, and I had spell checking working.

To use it in GRAMPS would require a few changes to GRAMPS spell.py (primarily due to cross platform issues with lang codes and code pages, and optimisations that pyEnchant allows us rather than the manual workaround to work out languages currently encoded in there), while it worked, it seemed to have an issue with how it highlighted text after changing of word in styled text of notes (I think the class was StyledTextView), .. I haven't put any more effort into investigating this issue.

This python 'emulation' of GtkSpell was basically a python translation of the C source code of GtkSpell, and is still pretty rough.

Having said all that, there is also a bug in pyEnchant when compiling it with py2exe, it wouldn't get all the libraries for windows, and at runtime it couldn't work out the location of these files once 'frozen'.
I submitted a patch the the packager of pyEnchant and he said it will be available when he next does the next release.

- Steve


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Gramps-windows mailing list
Gramps-windows@...
https://lists.sourceforge.net/lists/listinfo/gramps-windows