Re: [S-OP]About HSpell

2005-11-01 Thread Nadav Har'El
On Tue, Oct 18, 2005, O.K wrote about "Re: [S-OP]About HSpell":
> Hi,
> 
> Thanks for the suggestion, but I was looking for something more elegant as 
> hspell requires file as input. It's not support piping. Or maybe I am wrong 
> ?
> 
> I will await Nadav suggestions. He's the one who wrote hspell anyway :-)

I did write Hspell together Dan Kenigsberg, but in this case I was away for
some time, which is why I'm answering only now. I hope you already have the
answer by now.

Hspell *does* support pipe mode, just like ispell and aspell. You run
"hspell -a", pass a Hebrew word and get a line saying if this word is
correct, and if not listing suggestions (see the ispell manual for the
format of this line).

-- 
Nadav Har'El|  Tuesday, Nov 1 2005, 29 Tishri 5766
[EMAIL PROTECTED] |-
Phone +972-523-790466, ICQ 13349191 |:(){ :|:&};: # DANGER: DO NOT run this,
http://nadav.harel.org.il   |unless you REALLY know what you're doing!

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [S-OP]About HSpell

2005-10-20 Thread Yotam Rubin
On Wed, Oct 19, 2005 at 10:10:26AM +0200, Dan Kenigsberg wrote:
> Of course hspell supports piping. Just try. It even has an ispell-like pipe
> interface for programs, which is used by lyx, geresh, and the little demo 
> script
> wassist.cs.technion.ac.il/~danken/cgi-bin/hspell.color.cgi
> 
> That cgi is written in perl. It pipes the user text into another perl script
> that uses hspell to color misspelled words in red. I can let you peek into the
> scripts off list, if you want. I have no shred of knowledge in php, but I 
> guess
> everything here can be translated to it.
> 
> On Tue, Oct 18, 2005 at 11:23:21PM +0200, O.K wrote:
> > Thanks for the suggestion, but I was looking for something more elegant as 
> > hspell requires file as input. It's not support piping. Or maybe I am wrong 
> > ?

A better solution would be to wrap hspell's API in PHP. 
I am not familiar at all with hspell and I don't know how well
abstracted its API is, but it's a preferable method to using pipes.

Regards,
Yotam Rubin

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [S-OP]About HSpell

2005-10-19 Thread Dan Kenigsberg
Of course hspell supports piping. Just try. It even has an ispell-like pipe
interface for programs, which is used by lyx, geresh, and the little demo script
wassist.cs.technion.ac.il/~danken/cgi-bin/hspell.color.cgi

That cgi is written in perl. It pipes the user text into another perl script
that uses hspell to color misspelled words in red. I can let you peek into the
scripts off list, if you want. I have no shred of knowledge in php, but I guess
everything here can be translated to it.

On Tue, Oct 18, 2005 at 11:23:21PM +0200, O.K wrote:
> Thanks for the suggestion, but I was looking for something more elegant as 
> hspell requires file as input. It's not support piping. Or maybe I am wrong 
> ?

-- 
Dan Kenigsberghttp://www.cs.technion.ac.il/~dankenICQ 162180901

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [S-OP]About HSpell

2005-10-18 Thread O.K

Hi,

Thanks for the suggestion, but I was looking for something more elegant as 
hspell requires file as input. It's not support piping. Or maybe I am wrong 
?


I will await Nadav suggestions. He's the one who wrote hspell anyway :-)

Alon.

- Original Message - 
From: "Lior Kaplan" <[EMAIL PROTECTED]>

To: "Alon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "'Linux-IL'" 
Sent: Tuesday, October 18, 2005 9:06 PM
Subject: Re: [S-OP]About HSpell



Might not be the best way, but check
http://il.php.net/manual/en/ref.exec.php

But than you should only have static interface (or do something with
php/javascript to suggest alternates to the mis-spelled words).

Alon wrote:



Hi, list.



I have a slightly off topic question.

I use a phpBB forum and the most annoying thing there is are people who
cannot write correct Hebrew.

So, now I want to try and add hspell based spell checking when people
submit the message it will first require them to correct it.



The real question is:

Do you know how can I combine PHP and HSpell together ?

Is there already something like this someone done ?



Thanks,

 Alon.



--

Lior Kaplan
[EMAIL PROTECTED]
http://www.Guides.co.il

Debian GNU/Linux unstable (SID) 



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [S-OP]About HSpell

2005-10-18 Thread Lior Kaplan
Might not be the best way, but check
http://il.php.net/manual/en/ref.exec.php

But than you should only have static interface (or do something with
php/javascript to suggest alternates to the mis-spelled words).

Alon wrote:
> 
> 
> Hi, list.
> 
>  
> 
> I have a slightly off topic question.
> 
> I use a phpBB forum and the most annoying thing there is are people who
> cannot write correct Hebrew.
> 
> So, now I want to try and add hspell based spell checking when people
> submit the message it will first require them to correct it.
> 
>  
> 
> The real question is:
> 
> Do you know how can I combine PHP and HSpell together ?
> 
> Is there already something like this someone done ?
> 
>  
> 
> Thanks,
> 
>  Alon.
> 

-- 

Lior Kaplan
[EMAIL PROTECTED]
http://www.Guides.co.il

Debian GNU/Linux unstable (SID)

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]