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:47:29 +0300
Newsgroups gmane.linux.region.israel
Message-ID <CANy4znVcPiW142q5AU2rkAjavkwU9mCg9iLNjXhJaEQzsQ6fnQ@mail.gmail.com>
--===============1631838389438436956==
Content-Type: multipart/alternative; boundary="0000000000003f91a7058a46ba79"

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

On Sat, Jun 1, 2019 at 8:34 PM Shlomi Fish <[email protected]> wrote:

> 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 H=
ebrew
>> =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 wo=
rd
>> =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?
>
>
Moreover, how are you using/invoking hunspell? Can you show a shell session=
?


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


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

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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jun 1, 2019 at 8:34 PM Shlomi=
 Fish &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wr=
ote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D=
"ltr"><div dir=3D"ltr"><div>Thanks Eli!</div><div><br></div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jun 1, =
2019 at 8:20 PM Eli Zaretskii &lt;<a href=3D"mailto:eliz-mXXj517/[email protected]" target=3D=
"_blank">eliz-mXXj517/[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">&gt; From: Shlomi Fish &lt;<a href=3D"mailto:shlomif@g=
mail.com" 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/" targ=
et=3D"_blank">http://hspell.ivrix.org.il/</a><br>Summary =C2=A0 =C2=A0 : He=
brew hunspell dictionaries<br>Description :<br>Hebrew hunspell dictionaries=
<br>/usr/share/hunspell/he_IL.aff<br>/usr/share/hunspell/he_IL.dic<br>/usr/=
share/myspell/he_IL.aff<br>/usr/share/myspell/he_IL.dic<br></div><div>```<b=
r></div><div><br></div><div>Latest version as <a href=3D"https://packages.d=
ebian.org/sid/hspell" target=3D"_blank">https://packages.debian.org/sid/hsp=
ell</a> . What is your OS/dist/version?</div><div><br></div></div></blockqu=
ote><div><br></div><div>Moreover, how are you using/invoking hunspell? Can =
you show a shell session?<br></div><div>=C2=A0</div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div dir=3D"ltr"><div></div>-- <br><div dir=3D"l=
tr" class=3D"gmail-m_91946625574815060gmail_signature"><div dir=3D"ltr"><di=
v><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>Bu=
ddha 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></d=
iv></div></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_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>

--0000000000003f91a7058a46ba79--


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

--===============1631838389438436956==--