Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [ellipsiiis] Spell check

Quote Reply
Re: [ellipsiiis] Spell check In reply to
There is a program called "build_dict.pl" in admin/tools.

Code:


[jagerman@jagerman tools]$ perl build_dict.pl

Usage: build_dict.pl dictionary_file [ auto_correct_file ]

where dictionary_file is a file of words, one per line. The auto correct file looks like:

mispelled_word correct_word


admin/GT/SpellCheck contains acorrect.txt, which you should use for the autocorrect file. Attached to this post you will find the dictionary file we created the spellcheck files with.

You simply run the script from the admin path as follows, specifying the words file and the autocorrect file:

Code:


perl tools/build_dict.pl /where/you/put/words.txt GT/SpellCheck/acorrect.txt


It produces new dictionary files, and presto - your words are added. You'll have to either do this from shell, or using Fileman's "Command" feature.



Uhg, it's 400KB and the maximum attachment upload is set to 300KB Frown.

You'll have to download it from here: http://www.jagerman.com/words.txt

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Spell check ellipsiiis 1532 Jan 12, 2002, 8:46 PM
Post Re: [ellipsiiis] Spell check
Jagerman 1459 Jan 12, 2002, 9:14 PM