Out-of-the-box broken spell-check with desktop spin

Caolán McNamara caolanm at redhat.com
Wed Aug 1 09:08:52 UTC 2012


On Tue, 2012-07-31 at 22:49 -0400, Máirín Duffy wrote:
> Hi,
> 
> A friend reported to me today that spell-checking in gedit was broken on
> their Fedora 17 desktop live cd install. After some searching around on
> the web, they figured out a workaround: installing enchant-aspell.
> 
> To me, it seems like a bug to ship with broken spellcheck. There seem to
> be issues with both gedit and AbiWord:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=825449
> https://bugzilla.redhat.com/show_bug.cgi?id=750981
> https://bugzilla.redhat.com/show_bug.cgi?id=771089
> https://bugzilla.redhat.com/show_bug.cgi?id=818995

aspell should be a red herring here.

So..., gedit has a spell plugin (/usr/lib64/gedit/plugins/libspell.so)
which links to enchant, and enchant defaults to including the hunspell
plugin (with the aspell plugin an optional extra) so hunspell libs are
presumably pulled in. So it must be the case that the hunspell-en
dictionaries are not installed. 

i.e. if anyone has the problem then presumably rpm -q enchant hunspell
succeeds, and rpm -q hunspell-en fails ?

I'm going to assume that it's that problem, and marked most of these as
duplicates of https://bugzilla.redhat.com/show_bug.cgi?id=573516 and
there's a testing update of hunspell-1.3.2-5.fc17 now

> It's also pretty unclear how to add dictionaries should you discover
> they aren't there (maybe some packagekit integration needed?):
> https://bugzilla.redhat.com/show_bug.cgi?id=750986

It might be nice to have a spell(:lang=XX) provides in rpm to enable
prompting and auto-install of dictionaries for a language if missing and
spelling is requested, e.g hunspell-en installed, but locale is de_DE
and spellchecking in gedit/libreoffice is activated => hunspell-de (or
German Support Collection) is suggested for installation.

I duped the rest of the bugs that are along those lines together as
https://bugzilla.redhat.com/show_bug.cgi?id=750986 e.g. do something
similar to
http://fedoraproject.org/wiki/Features/AutoFontsAndMimeInstaller except
for spell checking

FWIW yum install hunspell-LANG should work in practice for most
languages. And if you use add/remove software and go to package
collections, and grab e.g. "French Support" one should get the
spellchecking, hyphenation, thesaurus etc stuff for French.

Though this is a bit messy in the add/remove software UI at the moment.
It would be nicer to break out the language support collections from the
generic "Collections" bucket into a toplevel category of its own.

C.



More information about the desktop mailing list