From kde-core-devel Sat Feb 19 00:29:27 2005 From: Mashrab Kuvatov Date: Sat, 19 Feb 2005 00:29:27 +0000 To: kde-core-devel Subject: Re: [PATCH] KSpell Unicode problem (BR#86940) Message-Id: <200502190129.32677.kmashrab () sat ! physik ! uni-bremen ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110877285823636 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1559322.r535aoBECZ" --nextPart1559322.r535aoBECZ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 18 February 2005 21:20, Luk=C3=A1=C5=A1 Tinkl wrote: > And yes, my aspell does support utf8 correctly, the comment is perhaps > wrong and has probably been added in an earlier version; ispell doesn't > seem to support utf8 at all. It seems you are right. However, ... > I said KSpell (with ASpell) couldn't check UTF-8 text. That is correct. It worked for me so far since default encoding was utf-8. = So, your patch should be committed in any case. Now comes the interesting part. I took your example (it is Czech, isn't it?) and tried it with aspell-0.50 and 0.60 in a pipe mode, that's how kspell is using aspell/ispell, isn't it? Please have a look at the result, it is at http://www.uni-bremen.de/~kmashrab/aspell-0.50-bug.png =46rom the screenshot one can see that for the first misspelled word "vam" apell-0.60 gives "& vam 61 27: ...", but aspell-0.50 gives "& vam 48 31: ..= =2E". =46ist number is suggestion counter and the second is the offset from the beginning of the line in characters. Correct value of an offset in this cas= e=20 is 27, not 31. Apparently, aspell-0.50 "thinks" in 8-bit encoding. I do not kn= ow if it is bug or not. Now I understand what that piece of code I commented out was for, it was ju= st a workaround. One does not need that for Aspell-0.60. I vote for "#ifdef HAVE_ASPELL_60" approach. I do not know how to implement it, though. What do the others think? Any idea how to solve it? Cheers, Mashrab. =2D- 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 --nextPart1559322.r535aoBECZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCFohsiSmHahjHWuoRApJXAJ9Kfm4xdTf0UU3O9pzv0yP5oyqYPgCffos4 zct1FccibdNxhuC03MDtcqE= =SNyu -----END PGP SIGNATURE----- --nextPart1559322.r535aoBECZ--