spell check: Difference between revisions
No edit summary |
mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="sideblock right" style="width: 12em;"> | |||
<div class="header">Spell Check</div> | |||
<div class="content"> | |||
*[[spell_check|Spell Check]] | |||
*[[Configuring_aspell_on_Mac_OS_X|MAC Install]] | |||
*[[Configuring_aspell_on_Windows_2003_Server|Windows Install]] | |||
</div> | |||
</div> | |||
=Add a Spell Checker to your HTML Editor= | =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 [http://aspell.net here]. | Spell checking in the Moodle HTML editor is performed by the aspell package (version 0.50 or later). You can find the aspell website [http://aspell.net here]. | ||
Line 15: | Line 23: | ||
==Let Moodle know where Aspell is installed== | ==Let Moodle know where Aspell is installed== | ||
Enter the correct path to access the aspell binary in ''Administration > Server > [[System paths]]''. | 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: | If you want to add words to your aspell dictionary you can follow the steps below for your operating system: | ||
==Mac OS== | |||
{{stub}} | {{stub}} | ||
==Windows OS== | |||
{{stub}} | {{stub}} | ||
==Ubuntu Linux OS== | |||
These instructions are based on the | These instructions are based on the English dictionary for Aspell. 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 | Create a file called custom.txt in your home directory | ||
touch ~/custom.txt | 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: | 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 | sudo aspell --lang=en create master /usr/lib/aspell/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. | This will create a file called custom.rws in the /usr/lib/aspell/ directory 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. | ||
To finish adding it to the dictionary change into the dictionary directory by running the following: | To finish adding it to the dictionary change into the dictionary directory by running the following: | ||
cd /usr/lib/aspell/ | cd /usr/lib/aspell/ | ||
then edit the following file: | then edit the following file: | ||
sudo nano | sudo nano en.multi | ||
and add the following line: | and add the following line: | ||
add custom.rws | add custom.rws | ||
Then | Then the new words should be available to you in Aspell. | ||
If you want to add words to this list in future, edit the ~/custom.txt file and run this command again: | |||
sudo aspell --lang=en create master /usr/lib/aspell/custom.rws < ~/custom.txt | |||
=See Also= | |||
http://aspell.net/man-html/Creating-an-Individual-Word-List.html#Creating-an-Individual-Word-List | |||
[[Category:Administrator]] | |||
[[Category: Installation]] |
Latest revision as of 14:10, 1 December 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 English dictionary for Aspell. 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 /usr/lib/aspell/custom.rws < ~/custom.txt
This will create a file called custom.rws in the /usr/lib/aspell/ directory 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.
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.multi
and add the following line:
add custom.rws
Then the new words should be available to you in Aspell.
If you want to add words to this list in future, edit the ~/custom.txt file and run this command again:
sudo aspell --lang=en create master /usr/lib/aspell/custom.rws < ~/custom.txt
See Also
http://aspell.net/man-html/Creating-an-Individual-Word-List.html#Creating-an-Individual-Word-List