Ex Libris Bitsy Network: Ex Libris Bitsy | Graphica | Pixi Agito | Somnium | Fabula | Promptu

A Regular Blog

Ex Libris Bitsy Latin: the library of Bitsy.

This blog contains my personal musings and rantings along with various fun things I like to create and offer for download.


« An Improvement | Main | Priest Pricks Children With Pin »

Spel Chacking Modules

Filed under Design and Development > Modules on September 15, 2005

Mood


Grateful

My husband has recently installed aspell on our server. I kind of badgered him into it because I'm not really a server-side type of gal, and so was completely lost after just logging into the terminal. After that I also went on to talk him into installing Speller Pages for me, since Text Aspell really wasn't working out, I have no excuses for why I didn't want to do that, aside from laziness. Heh.

So, because I really wanted to be able to offer spell checking on my sites, my husband was kind enough to figure it all out for me. Which was really, really sweet of him. He posted on the DreamHost forums about how he did it, and I am just cross posting that info here. With his permission!

I recently installed the latest version of aspell and Spellerpages so that I could interface spell checking with movable type in entry posting and comment posting. I figured I would post what I did so that others on dreamhost might be able to do the same more easly.

I suppose that if you want, you should be able to copy and paste the two sections of these intructions into sepearte files and then excuite them via a shell script so you don't have to copy and paste each line individually. Ie. you'd take everyting till the commented lines about setting up your path, into the first file, and everything following the path instructions into a seconed file. Then you'd excute thoes by typing "bash file" Please correct me if I'm wrong about this part.

so here's what I did:

wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.3.tar.gz
wget ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2
tar -xvzf aspell-0.60.3.tar.gz
tar -xvjf aspell6-en-6.0-0.tar.bz2
mkdir usr
cd aspell-0.60.3
./configure --prefix=$HOME/usr
make
make install
make clean
cd ..
# Need to update the path now
# nano .bash_profile
# add the following to the end of the file - like the 4th line
# PATH="$HOME/usr/bin/:$HOME/usr/share/:$PATH
# export PATH
# press ctrl and O to write out the file. press enter to keep the same file name
# and then press ctrl and X to exit nano.
cd aspell6-en-6.0-0
./configure
make
make install
make clean
cd ..

At this point you should be able to run aspell properly from the command line (assuming there were no errors). "aspell -v" should tell you that you have the new version 6 and not 3 that DH has be default.

as far as speller pages goes, you'll have to download it from:
here
decompress and upload the speller directory into your web-accessible area.

if you don't have a program installed on your computer that can decompress the tar.gz just download the flie to your computer, and then upload it to your home directory. Then run "tar -xvzf spellerpages-0.5.1.tar.gz" next cd into the new directory you just created. and type "mv speller/ /home/UserName/Domain.com/path/to/some/dir" obviously updating the destination with the correct details...

Now you need to edit the spellchecker.php file in /speller/server-scripts/ directory. On the 8th line it sets the language to use with aspell, but for some reason they think they still need to force utf 8 unicoding on it. change that line to look like:

$aspell_opts = "-a --lang=$lang";

You can now make sure everything is working by going to www.yourdomain.com/parth/to/speller/ and typing in some incorrectly spelled wrds and run the spel check.

Hopefully I'll get this posted into the wiki before long, but as of right now I'm still confiused about how to use it. Ah well.

Aspell and Speller PagesNow if we could just find a perl or php module that could correct grammar...



Posted by Bitsy at 01:48 PM
^ Back To Top
Comments

Where? tell me pls LaurienGirvenqdv683@live.com

Posted by: AWANDOUSA on October 2, 2008 06:41 PM


Hey! Do you have secrets? ;) pls write me LaurienGirvenqdv683@live.com

Posted by: affossyboks on October 3, 2008 10:17 AM


http://www.FIELD_MESSAGE_orbota.com/

Posted by: FIELD_NICKNAME_trlinod on December 20, 2008 02:17 AM



Post a comment
  • Please verify your humanity to post a comment.
  • If you wish to subscribe to the post, leave a valid email address.
  • Click "br" to insert a line break.
Name:


Email Address:


URL:


Remember info?

Subscribe to Comments on this Post?
Comments:


Please verify your humanity.
Enter Libris in the box below.