spell check: Difference between revisions
Line 39: | Line 39: | ||
sudo nano en_GB.multi | sudo nano en_GB.multi | ||
N.B. It appears as if Moodle will pick up your dictionary from your browser or user profile settings, so I have had more success editing the file en.multi rather than en_GB.multi. You are best trying each file until you find the one (or ones) that work for you. | N.B. It appears as if Moodle will pick up your dictionary from your browser or user profile settings, | ||
so I have had more success editing the file en.multi rather than en_GB.multi. | |||
You are best trying each file until you find the one (or ones) that work for you. | |||
and add the following line: | and add the following line: |
Revision as of 16:06, 25 November 2009
Add a Spell Checker to your HTML Editor
Spell checking in the Moodle HTML editor is performed by the aspell package (version 0.50 or later). You can find the aspell website here.
You need to install aspell for your server's operating system and then let Moodle know where aspell is installed.
Install Aspell
Below is information on how to go about installing aspell on your server operating system:
Mac OS
Here is a link to information about installing aspell on a Mac: https://docs.moodle.org/en/Configuring_aspell_on_Mac_OS_X
Windows OS
Here is a link to information about installing aspell on Windows: https://docs.moodle.org/en/Configuring_aspell_on_Windows_2003_Server
Ubuntu Linux OS
On your server type
sudo apt-get install aspell
Let Moodle know where Aspell is installed
Enter the correct path to access the aspell binary in Administration > Server > System paths.
Creating Custom Dictionaries
If you want to add words to your aspell dictionary you can follow the steps below for your operating system:
Mac OS
Windows OS
Ubuntu Linux OS
These instructions are based on the GB English dictionary for Aspell. If you are using a different variant of English, then substitute GB for the English variant you are using, in the commands below. If you are using a different language, then substitute en for the language code you are using, in the commands below.
Create a file called custom.txt in your home directory
touch ~/custom.txt
Add the words that you'd like to add to the dictionary, where each word is on a separate line, then run the following command:
sudo aspell --lang=en create master ~/custom.rws < ~/custom.txt
This will create a file called custom.rws that will contain the aspell encoded word(s) for the dictionary. You can name the file anything you want as long as the extension is .rws. Now to add this to the dictionary move the custom.rws file to the dictionary location which is /usr/lib/aspell by running the following command:
sudo mv ~/custom.rws /usr/lib/aspell/
To finish adding it to the dictionary change into the dictionary directory by running the following:
cd /usr/lib/aspell/
then edit the following file:
sudo nano en_GB.multi
N.B. It appears as if Moodle will pick up your dictionary from your browser or user profile settings, so I have had more success editing the file en.multi rather than en_GB.multi. You are best trying each file until you find the one (or ones) that work for you.
and add the following line:
add custom.rws
Then restart your webserver and the new words should be available to you in Aspell.
See Also
http://aspell.net/man-html/Creating-an-Individual-Word-List.html#Creating-an-Individual-Word-List