[Qgis-developer] Spell Check

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Feb 13 03:35:29 EST 2009


2009/2/13 Alex Mandel <tech_dev at wildintellect.com>:

> So, I looked into it a little more and I think the best solution is to
> use Enchant, and in this case pyEnchant which allows for multiple
> spelling backends: aspell, myspell, hunspell etc.

 Qt have a spell-checking version of QTextEdit which is currently
Mac-only because it uses the Mac OS spell-checking service:

http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Widgets/qtspellcheckingtextedit

 perhaps it might be better to try and implement spell checking for
Windows/Linux on top of that, and contribute it back to Qt). Just
having a look at the code for that, it seems you'd have to implement
the mac-specific parts of the widget to call whatever spelling backend
you've got - but you'd need to do it in C++.

 If not, I'm sure a Python-based QSpellCheckingTextEdit would be very useful!

> This brings me back to something that I've been wondering about, where
> has the discussion gone on making python plugins python eggs.
> I bring this up because if the plugin was an egg, making sure pyEnchant
> installs would be really easy since it's normally distributed via
> easy_install and the cheeseshop.
>
> Also it would take the work out of packaging since distutil already
> supports it.
>
> Any thoughts?

 I've not seen any discussion on this. But it would need rewriting the
plugin manager. I do like the idea of being able to get python
dependencies automatically though.

Barry


More information about the Qgis-developer mailing list