> I would like to use hunspell as the spellchecker.
> I have installed it and a dictionary from sources
> into /home/lyx/bin .
> 
> I've added an environment variable:
> DICPATH=/home/lyx/share/myspell
> 
> I have uninstalled ispell and I have created a symlink (ispell) pointing
> to hunspell. (ln -s hunspell ispell)
> 
> Unfortunately, it is not working. It says:
> "The spellchecker has died for some reason. Maybe it has been killed."
> 
> Hunspell has a pipe interface with the -a option.
> 
> Versions:
>  - LyX v1.6.3.
>  - Hunspell v1.2.8 -
>  - magyarispell dictionary: Magyar 1.4

I have figured it out myself. :)

hunspell install is easy, just do the following to install it for the
current user:
 $ mkdir ~/src
 $ cd ~/src
 $ tar xvf ~/download/hunspell-1.2.8.tar.gz
 $ cd hunspell-1.2.8
 $ ./configure --prefix=$HOME --with-ui
 $ make
 $ make install
 $ cd ~/bin
 $ ln -s hunspell ispell

magyarispell is a little bit tricky.
There is an error(?) in the makefile, so line 169. should be modified:
from:
        @cp -f $(WRKDIR)/hu_HU.{dic,aff} $(MYSPELLDIR)/
to:
        @cp -f hu_HU.{dic,aff} $(MYSPELLDIR)/

Note, that the first 1 or two character is tabulator, not space!

This change should be made after unpacking:
 $ cd ~/src
 $ tar xvf $HOME/download/magyarispell-1.4.tar.gz
 $ cd magyarispell-1.4

Here, I have changed the Makefile and issued:

 $ make PREFIX=$HOME install_myspell

The location of the dictionary can be given with an environment variable:

 DICPATH=/home/lyx/share/myspell

Finally, in LyX, we should set ispell as the spellchecker, and we must
ensure, that the bin directory is the first in the search path to lyx
call our hunspell (via the symlink).


Theblond

Reply via email to