Developers' side bar
Categories: Development<< | Page list | >>
Notes about setting up and using
Note: Beginning with 2.0 support for the Aspell command line program has been dropped. Although the aspell library (aspell 0.60.x) is still supported, Windows binaries are compiled without this feature. Windows users should thus use either Hunspell or Enchant.
Hunspell is located on SourceForge.
Hunspell is a spell checker originally based on MySpell and backward-compatible with MySpell dictionaries, however can also use Unicode UTF-8-encoded dictionaries. LyX provides support for Hunspell beginning with the 2.0 release.
To get Hunspell working with LyX, you will need to install Hunspell along with several dictionaries. You can install the dictionaries via your OS package manager (in case of Linux), or you could copy them from LyX's SVN repository (the 'dicts' subdirectory).
You will also need to select Tools > Preferences > Language > Spellchecker > Engine > Hunspell and optionally check 'Spellcheck continuously'. Additionally, you must indicate the PATH to the Hunspell dictionaries and restart LyX. To do so, access Tools > Preferences > Paths > Hunspell and insert the path to your dictionaries. If you installed the Hunspell dictionaries via the OS package manager (such as Synaptic on Ubuntu), the path would typically be '/usr/share/hunspell' or '/usr/share/myspell/dicts'. On Ubuntu 12.04, myspell packages (e.g. myspell-es for Spanish) are installed under '/usr/share/hunspell'. If you copied them from LyX SVN to a random dir such as '/usr/local/build/lyx-hunspell', you would need to specify '/usr/local/build/lyx-hunspell/dicts' into the Preferences > Path. Do not forget to restart LyX to check that Hunspell works in your LyX installation.
In case dictionaries are not found
("lyx -dbg files" is your friend to check where LyX is actually looking)
2) check the naming of hunspell dictionary itself.
First build hunspell (i.e., configure, make, make install). If system privileges are insufficient to install to the system, use --prefix=... to define an install directory. For this example, we will assume that directory is
Within LyX, use the configure command:
During the configure, you may see
To get these final two entries changed to "yes" and permit building with hunspell, you can create a symlink in