[PATCH] Hspell plugin for KSpell2
Mashrab Kuvatov
kmashrab at sat.physik.uni-bremen.de
Fri Apr 29 01:43:23 BST 2005
Hi all,
this is a kind of follow up to a discussion about spellchecking for KDE4.
Included is a patch to add Hspell plugin to KSpell2. To apply it do the
following:
$ cd kdelibs/kspell2
$ patch -p1 -i kspell2-hspell.patch
I tried it with 3_4_BRANCH, but it shoud work with HEAD too.
To compile it, one needs hspell-0.9 installed, there is no configure check.
Second, to be able to link against libhspell, one has to modify hspell.h i.e.
add extern "C" stuff (thanks Oliver for tip!). One can get a modified copy
from [1]. Hspell devs, please add it in next release, if you want C++ junkies
use your lib. :-)
So, then as usual "make -f Makefile.cvs" and so on. I tried it with
KPresenter, just select "he" from Settings->Configure Kpresenter->Spelling
Screenshots can be seen here [2] and here [3]. The text is from
http://wassist.cs.technion.ac.il/~danken/cgi-bin/hspell.cgi
Hopefully, people who speak Hebrew will comment whether it makes sense.
I'm not going to commit it. As a lib, hspell is missing a key feature - add to
dictionary. I think, without this feature it is just irresponsible to give
KSpell2 with it to user. It will save a lot of energy one has to spend to
explain a user that actually the add-to-dict button is not broken in KDE, but
it is a lib which cannot handle it. Hopefully, hspell devs will add it in next
releases.
IHMO, there should be a kind of rule, a barrier I'd say, saying if your lib
does not have this and that, do not even think of being a plugin in KSpell2.
This will motivate spellcheck lib devs. :-)
Anyway, do whatever GPL allows with a patch. Feel free to add your name, if
you modify it.
1.http://www.uni-bremen.de/~kmashrab/hspell.h.bz2
2.http://www.uni-bremen.de/~kmashrab/images/kpresenter-kspell2-hspell-auto.png
3.http://www.uni-bremen.de/~kmashrab/images/kpresenter-kspell2-hspell.png
Cheers,
Mashrab.
PS. You see, a bit of love does it. :-)
--
Mashrab Kuvatov
Ph.D student
University of Bremen, IUP
Home-page: www.sat.uni-bremen.de/members/mashrab
PGP key: www.uni-bremen.de/~kmashrab/kmashrab.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kspell2-hspell.patch.bz2
Type: application/x-bzip2
Size: 3217 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050429/9405e700/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050429/9405e700/attachment.sig>
More information about the kde-core-devel
mailing list