
|
View Full Version : PHP Spell Checker
websterworld 08-21-2003, 09:55 AM When I will get the time I want to use .net to build a program that will use the kernel in windows to help copy paste.
Don't say: "There is Ctrl+C Ctrl+V...:eek:"
Yes, there is that. And it uses a windows component called kernel... at least I think it does.
But a lot of people, programmers especially need to work with 2 computers. What I want to do is to use the kernel so if you have two computers (or 200) in a network you can copy paste from either one.
You know a small pop up, asking from which computer you want to paste, every time you use Ctrl+V. it’s a nice idea, but not a lot of people need this.
Actually, me dad really needs this.
He works at IBM, got a laptop filled with info and presentations and what not. And he has this thing where he puts it next to his computer at work. And works with both.
It can save him a LOT of time, instead of transferring word documents, 'etc...
And there are people like him that may find this useful as well.
But I don't have time for this now...
Now my Q:
Is there a PHP spell checker script?
I want to add it to some scripts, like perl desk and forums 'etc...
It can also give me some ideas how to go about making what I described about, when the time comes.
The problem is, does it have a dictionary?
Because then it would be huge...
Is it in any way possible to use the word one, found on all computers? Can this be done with php?
Thanks...
cyberlot 08-21-2003, 10:15 AM There should be like a forum dunce cap for people who ask questions that can be answered through php.net.
http://us3.php.net/manual/en/ref.pspell.php
websterworld 08-21-2003, 10:36 AM Thank you, but that is not what I wanted.
It is a good script... but I want one that works like the one in word. So, if someone fills a text box and presses F7 or a button or something they will get a popup like the one in word and the page should not need to reload.
I know it’s a long shot, don't think something like this exists yet.
But it probably can be done with some php and java... maybe mySQL for the dictionary.
if you know of one, tell me... thanks.
cyberlot 08-21-2003, 11:32 AM Using some creative javascript you might be able to do it..
1. Setup a capture on the keys you want to use,, say Ctrl-S ( for spellchecker )
2. When that key combo is pressed you grab all the text from a textarea and send it to a php script .
3 Php script returns bad words and possible replacements.
4. Javascript to make changes and such..
Check out htmlarea Im pretty sure they have a spellchecking addon for that in there forums.
websterworld 08-21-2003, 11:55 AM Thanks! :)
Thats about my plan, what is htmalarea?
cyberlot 08-21-2003, 11:59 AM Originally posted by websterworld
Thanks! :)
Thats about my plan, what is htmalarea?
Its a WYSWYG gui html editor that changes a <textarea> tag into a html editor area.
http://www.interactivetools.com/iforum/Open_Source_C3/
sorry forgot the link in the previous post.
Sevent 08-21-2003, 12:09 PM Originally posted by websterworld
So, if someone fills a text box and presses F7 or a button or something they will get a popup like the one in word and the page should not need to reload.
This will make it very heavy client. Possible with Applet or even Flash, but it is going to be huge.
Is it in any way possible to use the word one, found on all computers? Can this be done with php?
The dictionary used by word is not found on all computers....
websterworld 08-21-2003, 03:46 PM The dictionary used by word is not found on all computers.... Yeah, I know... only on the ones that have windows on them... and word :) thats 90%+ of them... it was just a thought.
This will make it very heavy client. Possible with Applet or even Flash, but it is going to be huge. Err... what? :confused:
KDAWebServices 08-21-2003, 04:13 PM You mean something like: http://scripts.karlaustin.com/phpSpell/spellcheck.v2.php ?
websterworld 08-21-2003, 04:42 PM More like WordWeb 2.0...
http://downloads-zdnet.com.com/3000-2079-10120645.html?tag=dir
Hey, an idea just hit me...
Can I install WordWeb on my server? (hope I'm making sense)
is it possible to make F7 call a WordWeb popup when a user edits text???
Probably not... :bawling:
KDAWebServices 08-21-2003, 04:47 PM Looks just like a standard Windows app, unless it exposes a com interface then there isn't much hope.
That example I gave, is only one of many interfaces that can be used to library behind it.
websterworld 08-21-2003, 04:51 PM Yeah I know... I just looked at some of them.
They all kinda suck... isn't it possible to make a software popup?
I mean, I don't want it inside IE (or another browser) to start...
:confused:
KDAWebServices 08-21-2003, 04:56 PM To write something what you want, the easiest way would be to write a sockets based app with subclasser to catch the ctrl+c, ctrl+v etc.
websterworld 08-21-2003, 05:06 PM using php? well, that's a bit hard to say the least ;)
hmmm... maybe I'll write my .net app first...
KDAWebServices 08-21-2003, 05:12 PM You could probably do it in PHP, it has good sockets support and can call the Windows API which you'd need for subclassing the main hWnd. Although subclassing is a bit dodgy to say the least so I'd be more inclinded to write the subclassing into a COM object and have PHP call on the COM object.
FW-Mike 08-21-2003, 05:20 PM Originally posted by websterworld
using php? well, that's a bit hard to say the least ;)
hmmm... maybe I'll write my .net app first...
good luck
Sounds like you'll need it
websterworld 08-21-2003, 05:33 PM I don't know how to do COM object :(
Below is a not funny joke... I'm just letting out the frustration..
Idea for script:
Spell Checker that can be added to any page or another script.
Invisible, but if user presses F7 they get a pop up like word. Note to myself : make look nice, and sell for 20$ a license. :D easy, 5 minutes of my time...
|