hunspell is a much enhanced version of myspell; I'll attach an ebuild contributed by Attila Toth which I've updated for the current latest version 1.1.2. Hunspell is a significant enhancement of myspell, blessed by the myspell author to replace myspell in Openoffice.org - see http://lingucomponent.openoffice.org/ (last paragraph) http://lingucomponent.openoffice.org/servlets/ReadMsg?list=dev&msgNo=1377 http://www.openoffice.org/issues/show_bug.cgi?id=52383 For the openoffice team, configure option --enable-hunspell will enable the relevant UNO component, and --with-system-hunspell gets it to use the system hunspell library rather than a version duplicated in openoffice. I'd suggest adding a 'hunspell' USE flag in openoffice to switch it on and add the dependency on hunspell, but it's up to you of course. Ultimately if hunspell does displace myspell such use-flag stuff may disappear. I've checked that it builds and works ok on my system, but haven't tried integrating it with openoffice (Attila uses it ok). Some things you may want to consider: 1) whether the library include files should go in /usr/include or somewhere else 2) whether to change the default dictionary path from /usr/share/myspell to /usr/lib/openoffice/share/dict/ooo, or something.
Created attachment 74073 [details] Ebuild for v1.1.2 of hunspell
Very nice, doing system spell dictionaries was a high priority on my TODO-list anyway, so this would be a great addition from an OpenOffice.org-view. The current solution is quite bad as we don't have myspell dictionaries in the tree and people have to install them through the DicOOo wizard, a global installation is difficult. If it works reliably - the last time I checked hunspell support in OOo still had some issues - I'd like to add this without a use flag, I think this is one case where we just want to have the right "default". What we also need, would be ebuilds for the different languages.
app-dicts-herd, could you please comment on this one?
OK; I'll take this one on since app-dicts haven't said anything.
Created attachment 78420 [details, diff] Ebuild patch for openoffice to use system hunspell as spellchecker For reference at the moment. Perhaps it might be best to do the enable-hunspell/with-system-hunspell conditional on a local use flag, at least until we have the dictionary situation sorted out. I've committed hunspell to the app-text category. Note it's only ~x86 at the moment, ultimately obviously it needs at least the same arches as openoffice. There are no hunspell/myspell/oo dictionary ebuilds yet, the situation there will take a while to sort out as it's not as simple as I first thought.
Just tried this out, works beautifully here with OOo. Good work, Kevin. Still, won't add this before 2.0.2 (unless you convince me to ;) ), would be great to have the dictionaries in place until then, to really enjoy the good stuff, this brings to us. About the problems with the dictionaries: Take a look at how Debian solved this, maybe you can "borrow" something from there.
ok; ebuild is in (and since been bumped - just!).