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

Shlomi Fish <[email protected]> Sat, 1 Jun 2019 20:34:25 +0300
Newsgroups gmane.linux.region.israel
Message-ID <CANy4znXZqjEbLYXDRn096MCQk3kGGmg_F8cTfbbPa_ZAC_GjNA@mail.gmail.com>
--===============6342311019093202616==
Content-Type: multipart/alternative; boundary="00000000000084be42058a468b2c"

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

Thanks Eli!


On Sat, Jun 1, 2019 at 8:20 PM Eli Zaretskii <eliz-mXXj517/[email protected]> wrote:

> > From: Shlomi Fish <[email protected]>
> > Date: Sat, 1 Jun 2019 19:49:32 +0300
> >
> > So I created this branch -
> https://github.com/shlomif/shlomi-fish-homepage/tree/spell-check-hebrew
> (note the
> > branch name). Which adds autochecking using
> https://metacpan.org/pod/Text::Hunspell . However many
> > legitimate Hebrew words are marked as errors:
>
> FWIW, using Hunspell and he_IL dictionary, I see only a small number
> of words from this list marked as misspellings:
>
> =D7=91=D7=95=D7=93=D7=90=D7=99 - should be "=D7=91=D7=95=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 - this is not He=
brew
> =D7=91=D7=9C=D7=A0=D7=A1=D7=95=D7=AA - this is incorrect Hebrew
> =D7=91=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98=D7=99=D7=9D - should be =
"=D7=91=D7=A4=D7=A8=D7=95=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 - should be "=D7=
=93=D7=91=D7=A8=D7=99-=D7=97=D7=9B=D7=9E=D7=94"
> =D7=94=D7=99=D7=95=D7=A0=D7=99=D7=A7=D7=A1=D7=99=D7=AA - not a Hebrew wor=
d
> =D7=94=D7=99=D7=A0=D7=94 - should be "=D7=94=D7=A0=D7=94"
> =D7=94=D7=99=D7=AA=D7=94 - should be "=D7=94=D7=99=D7=99=D7=AA=D7=94"
> =D7=98=D7=95=D7=A8=D7=91=D7=9C=D7=93=D7=A1 - not a Hebrew word
> =D7=9C=D7=99=D7=A0=D7=95=D7=A1 - ditto
> =D7=A0=D7=99=D7=A1=D7=99=D7=9D - should be "=D7=A0=D7=A1=D7=99=D7=9D"
>
> and a few more.
>
> Maybe your dictionary is not the best one?
>

I am on Mageia Linux v7 using:

```
shlomif[cleanup]:~$ rpm -qil hunspell-he
Name        : hunspell-he
Version     : 1.4
Release     : 2.mga7
Architecture: noarch
Install Date: Mon 18 Feb 2019 12:13:52 IST
Group       : System/Internationalization
Size        : 7875297
License     : LGPL
Signature   : RSA/SHA256, Tue 25 Sep 2018 22:53:10 IDT, Key ID
b742fa8b80420f66
Source RPM  : hspell-1.4-2.mga7.src.rpm
Build Date  : Tue 25 Sep 2018 22:32:02 IDT
Build Host  : localhost
Relocations : (not relocatable)
Packager    : umeabot <umeabot>
Vendor      : Mageia.Org
URL         : http://hspell.ivrix.org.il/
Summary     : Hebrew hunspell dictionaries
Description :
Hebrew hunspell dictionaries
/usr/share/hunspell/he_IL.aff
/usr/share/hunspell/he_IL.dic
/usr/share/myspell/he_IL.aff
/usr/share/myspell/he_IL.dic
```

Latest version as https://packages.debian.org/sid/hspell . What is your
OS/dist/version?

--=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 .

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

<div dir=3D"ltr"><div dir=3D"ltr"><div>Thanks Eli!</div><div><br></div></di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On S=
at, Jun 1, 2019 at 8:20 PM Eli Zaretskii &lt;<a href=3D"mailto:eliz-mXXj517/[email protected]=
">eliz-mXXj517/[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">&gt; From: Shlomi Fish &lt;<a href=3D"mailto:[email protected]=
m" target=3D"_blank">[email protected]</a>&gt;<br>
&gt; Date: Sat, 1 Jun 2019 19:49:32 +0300<br>
&gt; <br>
&gt; So I created this branch - <a href=3D"https://github.com/shlomif/shlom=
i-fish-homepage/tree/spell-check-hebrew" rel=3D"noreferrer" target=3D"_blan=
k">https://github.com/shlomif/shlomi-fish-homepage/tree/spell-check-hebrew<=
/a> (note the<br>
&gt; branch name). Which adds autochecking using <a href=3D"https://metacpa=
n.org/pod/Text::Hunspell" rel=3D"noreferrer" target=3D"_blank">https://meta=
cpan.org/pod/Text::Hunspell</a> . However many<br>
&gt; legitimate Hebrew words are marked as errors:<br>
<br>
FWIW, using Hunspell and he_IL dictionary, I see only a small number<br>
of words from this list marked as misspellings:<br>
<br>
=D7=91=D7=95=D7=93=D7=90=D7=99 - should be &quot;=D7=91=D7=95=D7=95=D7=93=
=D7=90=D7=99&quot;<br>
=D7=91=D7=95=D7=95=D7=A1=D7=98-=D7=A6&#39;=D7=A1=D7=98=D7=A8 - this is not =
Hebrew<br>
=D7=91=D7=9C=D7=A0=D7=A1=D7=95=D7=AA - this is incorrect Hebrew<br>
=D7=91=D7=A4=D7=A8=D7=95=D7=99=D7=99=D7=A7=D7=98=D7=99=D7=9D - should be &q=
uot;=D7=91=D7=A4=D7=A8=D7=95=D7=99=D7=A7=D7=98=D7=99=D7=9D&quot;<br>
=D7=93=D7=91=D7=A8=D7=99-=D7=97=D7=95=D7=9B=D7=9E=D7=94 - should be &quot;=
=D7=93=D7=91=D7=A8=D7=99-=D7=97=D7=9B=D7=9E=D7=94&quot;<br>
=D7=94=D7=99=D7=95=D7=A0=D7=99=D7=A7=D7=A1=D7=99=D7=AA - not a Hebrew word<=
br>
=D7=94=D7=99=D7=A0=D7=94 - should be &quot;=D7=94=D7=A0=D7=94&quot;<br>
=D7=94=D7=99=D7=AA=D7=94 - should be &quot;=D7=94=D7=99=D7=99=D7=AA=D7=94&q=
uot;<br>
=D7=98=D7=95=D7=A8=D7=91=D7=9C=D7=93=D7=A1 - not a Hebrew word<br>
=D7=9C=D7=99=D7=A0=D7=95=D7=A1 - ditto<br>
=D7=A0=D7=99=D7=A1=D7=99=D7=9D - should be &quot;=D7=A0=D7=A1=D7=99=D7=9D&q=
uot;<br>
<br>
and a few more.<br>
<br>
Maybe your dictionary is not the best one?<br>
</blockquote></div><div><br></div><div>I am on Mageia Linux v7 using:</div>=
<div><br></div><div>```</div><div>shlomif[cleanup]:~$ rpm -qil hunspell-he<=
br>Name =C2=A0 =C2=A0 =C2=A0 =C2=A0: hunspell-he<br>Version =C2=A0 =C2=A0 :=
 1.4<br>Release =C2=A0 =C2=A0 : 2.mga7<br>Architecture: noarch<br>Install D=
ate: Mon 18 Feb 2019 12:13:52 IST<br>Group =C2=A0 =C2=A0 =C2=A0 : System/In=
ternationalization<br>Size =C2=A0 =C2=A0 =C2=A0 =C2=A0: 7875297<br>License =
=C2=A0 =C2=A0 : LGPL<br>Signature =C2=A0 : RSA/SHA256, Tue 25 Sep 2018 22:5=
3:10 IDT, Key ID b742fa8b80420f66<br>Source RPM =C2=A0: hspell-1.4-2.mga7.s=
rc.rpm<br>Build Date =C2=A0: Tue 25 Sep 2018 22:32:02 IDT<br>Build Host =C2=
=A0: localhost<br>Relocations : (not relocatable)<br>Packager =C2=A0 =C2=A0=
: umeabot &lt;umeabot&gt;<br>Vendor =C2=A0 =C2=A0 =C2=A0: Mageia.Org<br>URL=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : <a href=3D"http://hspell.ivrix.org.il/">http=
://hspell.ivrix.org.il/</a><br>Summary =C2=A0 =C2=A0 : Hebrew hunspell dict=
ionaries<br>Description :<br>Hebrew hunspell dictionaries<br>/usr/share/hun=
spell/he_IL.aff<br>/usr/share/hunspell/he_IL.dic<br>/usr/share/myspell/he_I=
L.aff<br>/usr/share/myspell/he_IL.dic<br></div><div>```<br></div><div><br><=
/div><div>Latest version as <a href=3D"https://packages.debian.org/sid/hspe=
ll">https://packages.debian.org/sid/hspell</a> . What is your OS/dist/versi=
on?</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><br>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>

--00000000000084be42058a468b2c--


--===============6342311019093202616==
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

--===============6342311019093202616==--