I installed TeXworks and I was trying to install a spell checker but I couldn't. I installed OpenOffice but nothing changed, the combo-box of spell checkers in TeXworks is empty. I am working on Windows.
As per the TeXworks manual, the procedure to install spell checking dictionaries in TeXworks is as follows.
- Download the dictionary corresponding to your desired language from the OpenOffice.org extensions site.
- Change the file extension of the downloaded file from
.zipand extract the files with your archive utility of choice.
- Open TeXworks and select
Settings and Resourcesfrom the
Helpmenu. A dialog window will open with a link to the TeXworks resources folder.
- Click the link to open the resources folder. If there is no
dictionariessubfolder there yet, then create it now. Open the (possibly newly created)
- Copy the
.afffiles from the downloaded
.zipfile to the
- Close and reopen TeXworks. The dictionaries should be listed under the
Spellingitem in the
If you happen to be a Linux user, symlinks help you implement the accepted solution much faster. I have done this with Ubuntu 16.04 and TeXworks 0.6.4.
Re spell-chekers and so, according to https://en.wikipedia.org/wiki/Hunspell
Hunspell is based on MySpell and is backward-compatible with MySpell dictionaries. While MySpell uses a single-byte character encoding, Hunspell can use Unicode UTF-8-encoded dictionaries.
Dictionaries are typically installed in /usr/share
- Check with
ls /usr/share/*spell* -dwhat they are. In my case, the directories are
- Check with
TeXworks will want pairs of *.aff *.dic files.
So you can search with
find /usr/share/*spell* -name *dic | sort. These files are in hunspell and myspell directories.
I was lacking some. To get the catalogue, do
apt search hunspell-; the trailing hyphen helps skimming the search results. You can then shortlist the packages you want from the locale tag, say
hunspell-pt-ptfor Portuguese of Portugal.
TeXworks has it in section 4.3 Spell-checking of the manual that
Before using the spell-checker, you need to install dictionaries in the right folder of TeXworks:
[resources]folder can be accessed easily via Help→Settings and Resources. . . .
Linux users forgive the backward slash and those folder for directory. For me
Install system-wide your preferred package(s) with
sudo install hunspell-[your choice].
You will find that the directory list
ls /usr/share/hunspellcontains the aff/dic files of your choice now.
ln -s /usr/share/hunspell [resources]/dictionariesI linked one-off the entity dictionaries to the full set of HunSpell dictionaries installed system-wide.
Basically, any time I want a dictionary for TeXworks I install it from the HunSpell suite via the package management software.
I then find it up and running anywhere, and in TeXworks. I don't have to roam around the internet, rename, decompress and move around files.
Since Hunspell is a superset of MySpell, I got the Hunspell family of dictionaries in the
hunspell directory even after installing the
You can download
en-GB.aff dictionary files from https://github.com/hl-ren/Hunspell-TeXworks.
en_GB.dic currently contains 87723 words.
In Windows 7, copy the files
en_GB.dic to the path
C:\Program Files\MiKTeX 2.9\hunspell\dicts\.