No spellchecking

Bug #191616 reported by Duncan Kolba
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PyRoom
In Progress
Wishlist
Jesse B. Hannah

Bug Description

Spellchecking on the fly a la vim (since version 7) should be available. Using the vim spellchecking files this could be easily done in most languages. Vim highlights the background of misspelled words in different colors depending on typo/capitalization.

Revision history for this message
Bruno Bord (brunobord) wrote :

I have no idea on how to implement that.
Might be planned for the next version, though... not ready for prime time

Changed in pyroom:
importance: Undecided → Wishlist
Duncan Kolba (dkolba)
description: updated
Adam Rooke (abelianr)
Changed in pyroom:
status: New → Confirmed
Revision history for this message
Adam Rooke (abelianr) wrote :

I have managed to incorporate a basic spell checker. Still massively buggy and doesn't work with anything more than one buffer - but its a work in progress! I can't upload/download to launchpad right now but will push a branch when I get back to blighty.

(If anyone wants to offer help, the error that I get with more than one buffer is this:
/home/adam/trunk/basic_edit.py:176: GtkWarning: gtk_text_buffer_apply_tag: assertion `tag->table == buffer->tag_table' failed
  self.spell.recheck_all()
)
It also requires that the user install "gnome-python-extras" but the implementation was just 2 lines of code so who can complain...

Changed in pyroom:
assignee: nobody → adamrooke
Revision history for this message
Jesse B. Hannah (jbhannah) wrote :

This could be implemented easily with PyEnchant (http://pyenchant.sourceforge.net/), which is available as a single package in apt and can work with multiple language backends. Working on a basic implementation now, look for a patch within a few days.

Changed in pyroom:
assignee: abelianr → jbhannah
status: Confirmed → In Progress
Revision history for this message
Jesse B. Hannah (jbhannah) wrote :

Revision 122 in my branch above now has fully-functional spellchecking on-demand; it requires PyEnchant, Enchant, and a backend for Enchant (such as aspell or myspell), but only one package needed to be installed in Ubuntu (apt-get install python-enchant). It brings up a GTK dialog box for each error, with a combo box to select a suggested replacement or input your own and options to change that error, change all occurrences of that error, add the word to a personal word list, or ignore all occurrences of that error. Type in some text with spelling errors (my standard test was a few lines with "This is smoe txet.") and press Ctrl+K to test it.

Changed in pyroom:
status: In Progress → Fix Committed
Revision history for this message
Jesse B. Hannah (jbhannah) wrote :

Still in progress; to do: move language and custom word list configuration to preferences.py; move dictionary definition to BasicEdit constructor; implement as-you-type checking.

Changed in pyroom:
status: Fix Committed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.