I am attempting to get the spell checking working on my MacBook Pro. I downloaded and installed aspell and successfully tested it with this command in Terminal:
echo "this word is mispeled" | /opt/local/bin/aspell -a -d american -H
I needed to modify the spellchecker.cfm file because the stock cfexecute is set up for a Windows environment. Here is the original call:
<cfexecute name="cmd.exe" arguments='/c type "#tempfile_in#" | "#aspell_dir#\aspell.exe" #aspell_opts# > "#tempfile_out#"' timeout="100"/>
Here is the call that I modified it to:
<cfexecute name="/opt/local/bin/aspell" arguments='-c -type "#tempfile_in#" | -a --lang=en_US --encoding=utf-8 -H > "#tempfile_out#"' timeout="100" />
The problem is, is the system hangs for quite some time and I have not gotten it to return in a timely fashion, or at all. The second file is created with the suggestions, but the server hangs. What am I missing in my arguments? Or is there a better way to call it?
I am not an expert at Aspell, as I just downloaded it yesterday. I have been digging through the documentation but have not come up with a solution. Any help would be appreciated!
echo "this word is mispeled" | /opt/local/bin/aspell -a -d american -H
I needed to modify the spellchecker.cfm file because the stock cfexecute is set up for a Windows environment. Here is the original call:
<cfexecute name="cmd.exe" arguments='/c type "#tempfile_in#" | "#aspell_dir#\aspell.exe" #aspell_opts# > "#tempfile_out#"' timeout="100"/>
Here is the call that I modified it to:
<cfexecute name="/opt/local/bin/aspell" arguments='-c -type "#tempfile_in#" | -a --lang=en_US --encoding=utf-8 -H > "#tempfile_out#"' timeout="100" />
The problem is, is the system hangs for quite some time and I have not gotten it to return in a timely fashion, or at all. The second file is created with the suggestions, but the server hangs. What am I missing in my arguments? Or is there a better way to call it?
I am not an expert at Aspell, as I just downloaded it yesterday. I have been digging through the documentation but have not come up with a solution. Any help would be appreciated!
Re: Setting up spellchecker (aspell) on Mac OS
After 8+ hours, I finally got this working on my Mac. I hope this helps other Mac/Unix users of the FCKEditor.
I would ask that the FCKEditor team please put these examples in the spellchecker.cfm/pl/php files to show how this is done on Mac OS/Unix.
Here is a link to my blog on how I solved it: http://www.justanaverageyo.com/index.cf ... on-Mac-OSX
Enjoy!