[PATCH] Hspell plugin for KSpell2

Mashrab Kuvatov kmashrab at sat.physik.uni-bremen.de
Fri Apr 29 15:53:22 BST 2005


Hi Meni, Dan, and everyone,

> Though I haven't yet tested the patch, there may be a problem at
> HSpellDict's
>
> constructor:
> > +    /* hspell understans only iso8859-8              */
> > +    codec = QTextCodec::codecForName( "iso8859-8" );
>
> The codec should be actually "iso8859-8-i", otherwise words would get sent
> to hspell reversed. This may be the cause of the problems that Dan brought
> up in his reply.

Yes that was it. Thanks. In addition, in HSpellDict::check
"return correct != 1" was also wrong. It should be "return correct == 1". I
have updated a patch.

The shots [1] and [2] show the patch in action. Does it make sense now? I
deleted couple of characters of one word. Sorry, if it means something bad in
your language.

1.http://www.uni-bremen.de/~kmashrab/images/kpresenter-kspell2-hspell-auto-fixed.png
2.http://www.uni-bremen.de/~kmashrab/images/kpresenter-kspell2-hspell-fixed.png

Have a nice weekend,
Mashrab.

-- 
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: 3241 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050429/e77fb9cf/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/e77fb9cf/attachment.sig>


More information about the kde-core-devel mailing list