Re: How do I use hspell / hunspell hebrew as part of an HTML site test suite?

Shlomi Fish <[email protected]> Sun, 2 Jun 2019 20:31:02 +0300
Newsgroups gmane.linux.region.israel
Message-ID <CANy4znWHhksRLKqxo5854zm-kK+yTjr=tB+nQ1GC1f+JnNkoCQ@mail.gmail.com>
--===============3035904957596101468==
Content-Type: multipart/alternative; boundary="0000000000003fe0c5058a5a9df5"

--0000000000003fe0c5058a5a9df5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Eli and all,

first note that after playing a little with
https://github.com/eranroz/HspellPy , the mageia hspell package and with
https://metacpan.org/pod/distribution/Inline-Python/Python.pod , I was able
to overcome the issue in my code. Thanks for the motivation.

On Sun, Jun 2, 2019 at 5:53 PM Eli Zaretskii <eliz-mXXj517/[email protected]> wrote:

> > From: Shlomi Fish <[email protected]>
> > Date: Sat, 1 Jun 2019 22:56:28 +0300
> > Cc: Linux-IL <[email protected]>, "Nadav Har'El" <[email protected]=
m>,
>
> >       [email protected]
> >
> >  I use the same dictionary downloaded years ago from the Ivrix
> >  project.  Hunspell version is 1.3.2.
> >
> > Ah, I have hunspell-1.7.0 and hspell 1.4.
>
> I don't think it should make any difference.
>
>
Right.

>  > Moreover, how are you using/invoking hunspell? Can you show a shell
> session?
> >
> >  I spell-checked your list in Emacs, using flyspell-region.  What
> >  do you want to know about the invocation?  I used UTF-8 encoding to
> >  communicate to Hunspell, if that's the question.
> >
> > Well, there may be a difference in the way flyspell uses hunspell/hspel=
l
> and the way
> > https://metacpan.org/pod/Text::Hunspell does. We need to figure out
> what goes wrong on my end.
>
> OK, so from the shell prompt, invoking Hunspell like this:
>
>   hunspell -d he_IL -i utf-8 -L hewords.txt
>
> where hewords.txt is a UTF-8 encoded text file with the list of the
> words you sent, gives me just 18 mis-spelled words:
>
> =D7=91=D7=95=D7=93=D7=90=D7=99
> =D7=91=D7=95=D7=95=D7=A1=D7=98-=D7=A6'=D7=A1=D7=98=D7=A8
> =D7=91=D7=9C=D7=A0=D7=A1=D7=95=D7=AA
> =D7=91=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98=D7=99=D7=9D
> =D7=93=D7=91=D7=A8=D7=99-=D7=97=D7=95=D7=9B=D7=9E=D7=94
> =D7=94=D7=99=D7=95=D7=A0=D7=99=D7=A7=D7=A1=D7=99=D7=AA
> =D7=94=D7=99=D7=A0=D7=94
> =D7=94=D7=99=D7=AA=D7=94
> =D7=94=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98
> =D7=98=D7=95=D7=A8=D7=91=D7=9C=D7=93=D7=A1
> =D7=9C=D7=99=D7=A0=D7=95=D7=A1
> =D7=9C=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98
> =D7=A0=D7=99=D7=A1=D7=99=D7=9D
> =D7=A1=D7=98=D7=99=D7=91=D7=9F
> =D7=A4=D7=99=D7=A9
> =D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98
> =D7=A8=D7=99=D7=99=D7=9E=D7=95=D7=A0=D7=93
> =D7=AA=D7=95=D7=9B=D7=A0=D7=95=D7=AA
>
> All of the mis-spellings look reasonable to me.
>
> Do you get the same result if you invoke Hunspell like above?
>

I'll try, thanks.

--=20
Shlomi Fish http://www.shlomifish.org/

Buddha has the Chuck Norris nature.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--0000000000003fe0c5058a5a9df5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi Eli and all,<br><div><br></div><div>fi=
rst note that after playing a little with <a href=3D"https://github.com/era=
nroz/HspellPy">https://github.com/eranroz/HspellPy</a> , the mageia hspell =
package and with <a href=3D"https://metacpan.org/pod/distribution/Inline-Py=
thon/Python.pod">https://metacpan.org/pod/distribution/Inline-Python/Python=
.pod</a> , I was able to overcome the issue in my code. Thanks for the moti=
vation.<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Sun, Jun 2, 2019 at 5:53 PM Eli Zaretskii &lt;<a href=
=3D"mailto:eliz-mXXj517/[email protected]">eliz-mXXj517/[email protected]</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">&gt; From: Shlomi Fish &lt;<a href=3D"=
mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;<br>
&gt; Date: Sat, 1 Jun 2019 22:56:28 +0300<br>
&gt; Cc: Linux-IL &lt;<a href=3D"mailto:[email protected]" target=3D"_=
blank">[email protected]</a>&gt;, &quot;Nadav Har&#39;El&quot; &lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;, <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"mailto:[email protected]=
et" target=3D"_blank">[email protected]</a><br>
&gt; <br>
&gt;=C2=A0 I use the same dictionary downloaded years ago from the Ivrix<br=
>
&gt;=C2=A0 project.=C2=A0 Hunspell version is 1.3.2.<br>
&gt; <br>
&gt; Ah, I have hunspell-1.7.0 and hspell 1.4.<br>
<br>
I don&#39;t think it should make any difference.<br>
<br></blockquote><div><br></div><div>Right.</div><div> <br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">
&gt;=C2=A0 &gt; Moreover, how are you using/invoking hunspell? Can you show=
 a shell session?<br>
&gt; <br>
&gt;=C2=A0 I spell-checked your list in Emacs, using flyspell-region.=C2=A0=
 What<br>
&gt;=C2=A0 do you want to know about the invocation?=C2=A0 I used UTF-8 enc=
oding to<br>
&gt;=C2=A0 communicate to Hunspell, if that&#39;s the question.<br>
&gt; <br>
&gt; Well, there may be a difference in the way flyspell uses hunspell/hspe=
ll and the way<br>
&gt; <a href=3D"https://metacpan.org/pod/Text::Hunspell" rel=3D"noreferrer"=
 target=3D"_blank">https://metacpan.org/pod/Text::Hunspell</a> does. We nee=
d to figure out what goes wrong on my end.<br>
<br>
OK, so from the shell prompt, invoking Hunspell like this:<br>
<br>
=C2=A0 hunspell -d he_IL -i utf-8 -L hewords.txt<br>
<br>
where hewords.txt is a UTF-8 encoded text file with the list of the<br>
words you sent, gives me just 18 mis-spelled words:<br>
<br>
=D7=91=D7=95=D7=93=D7=90=D7=99<br>
=D7=91=D7=95=D7=95=D7=A1=D7=98-=D7=A6&#39;=D7=A1=D7=98=D7=A8<br>
=D7=91=D7=9C=D7=A0=D7=A1=D7=95=D7=AA<br>
=D7=91=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98=D7=99=D7=9D<br>
=D7=93=D7=91=D7=A8=D7=99-=D7=97=D7=95=D7=9B=D7=9E=D7=94<br>
=D7=94=D7=99=D7=95=D7=A0=D7=99=D7=A7=D7=A1=D7=99=D7=AA<br>
=D7=94=D7=99=D7=A0=D7=94<br>
=D7=94=D7=99=D7=AA=D7=94<br>
=D7=94=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98<br>
=D7=98=D7=95=D7=A8=D7=91=D7=9C=D7=93=D7=A1<br>
=D7=9C=D7=99=D7=A0=D7=95=D7=A1<br>
=D7=9C=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98<br>
=D7=A0=D7=99=D7=A1=D7=99=D7=9D<br>
=D7=A1=D7=98=D7=99=D7=91=D7=9F<br>
=D7=A4=D7=99=D7=A9<br>
=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98<br>
=D7=A8=D7=99=D7=99=D7=9E=D7=95=D7=A0=D7=93<br>
=D7=AA=D7=95=D7=9B=D7=A0=D7=95=D7=AA<br>
<br>
All of the mis-spellings look reasonable to me.<br>
<br>
Do you get the same result if you invoke Hunspell like above?<br>
</blockquote></div><br clear=3D"all"><div>I&#39;ll try, thanks.</div><div><=
br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"=
><div><div dir=3D"ltr"><div><div dir=3D"ltr">Shlomi Fish <a href=3D"http://=
www.shlomifish.org/" target=3D"_blank">http://www.shlomifish.org/</a><br><b=
r>Buddha has the Chuck Norris nature.</div><div dir=3D"ltr"><br></div><div =
dir=3D"ltr">Please reply to list if it&#39;s a mailing list post - <a href=
=3D"http://shlom.in/reply" target=3D"_blank">http://shlom.in/reply</a> .<br=
></div></div></div></div></div></div></div>

--0000000000003fe0c5058a5a9df5--


--===============3035904957596101468==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

--===============3035904957596101468==--