Red Hat Bugzilla – Bug 590700
Last modified: 2015-05-20 09:43:43 EDT
EL-6 beta includes aspell but not the separate language packages with the dictionaries. Is aspell any use without the dictionaries? Without even aspell-en, I'll need to build that myself to build any package that (for instance) uses aspell in its test suite.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
aspell is the build requirance for several packages.
I appreciate that but my question is: what use is the aspell support in these packages if there are no dictionaries to check against?
aspell is only included as a build requirement for hunspell dictionaries. All apps in RHEL use hunspell as their supported spell checker; it's recommended that other apps do the same wherever possible.
One of my packages in EPEL is perl-Text-SpellChecker, which is built on perl-Text-Aspell, the perl binding for aspell. It needs the English dictionary for its test suite, as do most of the perl modules that use it.
I wondered if it would be possible to patch it to use hunspell instead and the obvious way to do that would have been to use Text::Hunspell (the official perl binding of hunspell, http://search.cpan.org/~eleonora/text_hunspell_1.3/) instead of Text::Aspell. Unfortunately Text::Hunspell doesn't actually work, segfaulting as soon as you actually try to use it (https://rt.cpan.org/Public/Bug/Display.html?id=39824). I contacted the maintainer of Text::Hunspell, who said:
"I spent 3 full days with that problem, and the best result
I got is the crash you write about."
"I have no idea, how to get that fixed; I assume, some modification
in hunspell caused the perl interface to break."
"I am really sorry for this."
The simplest option would seem to me to be to add aspell-en in EPEL-6 to resolve this. I am prepared to look after this if the Fedora maintainer doesn't want it.
Or does anyone have a better suggestion?
Update: perl-Text-Hunspell has a new maintainer who has made it work with recent releases. It's packaged and built in Fedora, and branched for EPEL-6.
Also, perl-Text-SpellChecker now has support for a hunspell backend (via perl-Text-Hunspell) as an alternative to aspell.
Only sticking point ... RHEL-6 Server Beta 2 refresh seems to contain hunspell dictionaries for just about every language on the planet - except English(!), which is only available in RHEL-6 Workstation at the moment. Is this intended? Surely not? I need this package to build (and use) perl-Text-Hunspell in EPEL-6 and of course users of OpenOffice.org on RHEL-6 Server will most likely want it too...
Should I open a separate bug for this?
Please create a new bug report to this issue.
Raised as Bug #636763, thanks.
*** Bug 713220 has been marked as a duplicate of this bug. ***
I'd also point out that emacs's flyspell-mode uses aspell by default, though it can be configured to use hunspell.
Jay - can you file that as a new bug against emacs? We should just configure it to use hunspell out of the box.
Done -- see bug 713600.
*** Bug 724017 has been marked as a duplicate of this bug. ***