Re: [PHP] Spell checker in PHP

2004-01-29 Thread Alex King
Justin,

I don't know what version of Word you have, but XP seems to do fine with
correcting city names.

Alex

Justin French [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Saturday, January 10, 2004, at 06:57  AM, Robin Kopetzky wrote:

  Good afternoon!
 
  I know aspell and pspell are available but pspell won't work in my
  Windows
  environment. Does anyone know how to tie into Word's spell checker
  using php
  or another spell check option? What I need is a way to check spelling
  on
  city/state names and select the most appropriate if the user mangles
  the
  words.

 U, does is Word actually capable of City/State names?  To the best
 of my knowledge (I don't use Word), Word checks against a dictionary
 (US/UK/AU English, etc)... I wouldn't think these dictionaries would
 extend as far as all City  State names applicable for that dictionary.
   That's insane.

 Although technically, you *could* add them all to Word's dictionary.

 However, my point is, Spell-checking of City  State names isn't
 common, because it's too hard for the dictionaries to keep up with the
 list.

 So, if Word can't offer this feature, why would your web application
 need it?


 Also, given the global nature of the web, you'd have a LOT of data
 entry to do :)


 Justin French

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Spell checker in PHP

2004-01-29 Thread Gryffyn, Trevor
There are a lot of words in the spelling checking in Microsoft products
that isn't part of what you'd consider a standard 'dictionary', like
city names and such.

I think for spell checking, using the internal spell check in Word would
be best, but if you ever decided to work on Word-PHP integration, look
into COM.

I havn't played around with it a lot, but someone at my work doubted I
could use PHP to control Microsoft MapPoint.  I got just far enough to
prove them wrong before getting busy.

$mappoint = new COM(mappoint.application) or die(Unable to
instanciate mappoint);
print Loaded mappoint, version {$mappoint-Version}\n;

$map = new COM(mappoint.map) or die (Unable to instanciate map);
$map = $mappoint-NewMap  or die (Unable to NewMap);
$map-Name = Test  or die (Unable to Name);;
$mappoint-Visible = 1;

You should be able to do similar things with almost all the latest
Microsoft applications, even if they don't have an obvious VBA editor
built in like Access and Excel do.

-TG

 -Original Message-
 From: Alex King [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 29, 2004 1:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Spell checker in PHP
 
 
 Justin,
 
 I don't know what version of Word you have, but XP seems to 
 do fine with
 correcting city names.
 
 Alex
 
 Justin French [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  On Saturday, January 10, 2004, at 06:57  AM, Robin Kopetzky wrote:
 
   Good afternoon!
  
   I know aspell and pspell are available but pspell won't work in my
   Windows
   environment. Does anyone know how to tie into Word's spell checker
   using php
   or another spell check option? What I need is a way to 
 check spelling
   on
   city/state names and select the most appropriate if the 
 user mangles
   the
   words.
 
  U, does is Word actually capable of City/State names?  
 To the best
  of my knowledge (I don't use Word), Word checks against a dictionary
  (US/UK/AU English, etc)... I wouldn't think these dictionaries would
  extend as far as all City  State names applicable for that 
 dictionary.
That's insane.
 
  Although technically, you *could* add them all to Word's dictionary.
 
  However, my point is, Spell-checking of City  State names isn't
  common, because it's too hard for the dictionaries to keep 
 up with the
  list.
 
  So, if Word can't offer this feature, why would your web application
  need it?
 
 
  Also, given the global nature of the web, you'd have a LOT of data
  entry to do :)
 
 
  Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Spell checker in PHP

2004-01-11 Thread Justin French
On Saturday, January 10, 2004, at 06:57  AM, Robin Kopetzky wrote:

Good afternoon!

I know aspell and pspell are available but pspell won't work in my 
Windows
environment. Does anyone know how to tie into Word's spell checker 
using php
or another spell check option? What I need is a way to check spelling 
on
city/state names and select the most appropriate if the user mangles 
the
words.
U, does is Word actually capable of City/State names?  To the best 
of my knowledge (I don't use Word), Word checks against a dictionary 
(US/UK/AU English, etc)... I wouldn't think these dictionaries would 
extend as far as all City  State names applicable for that dictionary. 
 That's insane.

Although technically, you *could* add them all to Word's dictionary.

However, my point is, Spell-checking of City  State names isn't 
common, because it's too hard for the dictionaries to keep up with the 
list.

So, if Word can't offer this feature, why would your web application 
need it?

Also, given the global nature of the web, you'd have a LOT of data 
entry to do :)

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Spell checker in PHP

2004-01-09 Thread Vail, Warren
Haven't heard of anyone doing this, and it's got to be slow but you could
consider creating a word document, invoking word, and saving/retrieving the
results.  I would start with

http://www.php.net/manual/en/ref.com.php

this should show you how to invoke word from your php script since you are
on windows.

good luck,

Warren Vail

-Original Message-
From: Robin Kopetzky [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:58 AM
To: PHP General
Subject: [PHP] Spell checker in PHP


Good afternoon!

I know aspell and pspell are available but pspell won't work in my Windows
environment. Does anyone know how to tie into Word's spell checker using php
or another spell check option? What I need is a way to check spelling on
city/state names and select the most appropriate if the user mangles the
words.

Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Spell checker in PHP

2004-01-09 Thread David O'Brien
I used system call to a dos spell checker program from here
http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html#ftp-sites
using the places2k.txt file from the US census as the dictionary

http://www.census.gov/geo/www/gazetteer/places2k.html

-Dave



At 02:57 PM 1/9/2004, Robin Kopetzky wrote:
Good afternoon!

I know aspell and pspell are available but pspell won't work in my Windows
environment. Does anyone know how to tie into Word's spell checker using php
or another spell check option? What I need is a way to check spelling on
city/state names and select the most appropriate if the user mangles the
words.
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource  Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax