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

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

Shlomi Fish shlomif at gmail.com
Sun Jun 2 20:31:02 IDT 2019


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 at gnu.org> wrote:

> > From: Shlomi Fish <shlomif at gmail.com>
> > Date: Sat, 1 Jun 2019 22:56:28 +0300
> > Cc: Linux-IL <linux-il at cs.huji.ac.il>, "Nadav Har'El" <nyharel at gmail.com>,
>
> >       danken at users.sourceforge.net
> >
> >  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/hspell
> 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:
>
> בודאי
> בווסט-צ'סטר
> בלנסות
> בפרוייקטים
> דברי-חוכמה
> היוניקסית
> הינה
> היתה
> הפרוייקט
> טורבלדס
> לינוס
> לפרוייקט
> ניסים
> סטיבן
> פיש
> פרוייקט
> ריימונד
> תוכנות
>
> 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.

-- 
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 .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20190602/34877925/attachment.html>


More information about the Linux-il mailing list