Am 18.01.2013 um 00:20 schrieb Junchao Zhang <junchao.zh...@gmail.com>:

> Hi, Stephan,
>    I find I just need to put dictionary files under $(HOME)/.lyx/dicts/

Hi Junchao,

yes, that's your user directory. LyX is looking for dictionaries in:
1) preference specified directory
2) user directory + dicts
3) lyx binary directory + dicts
4) /usr/share/myspell/dicts

You don't have to set the DICTIONARY environment.
LyX tries to find the appropriate dictionary matching the language of the text 
inside your document.
That's e.g. en_US if your document language is set to English(US) and/or you 
have the language of some text set to it.

Regards,
Stephan

>   That is, the dictionaries need to be found by LyX, not just hunspell.
>   
>   Thanks
> --Junchao Zhang
> On Thu, Jan 17, 2013 at 5:07 PM, Stephan Witt <st.w...@gmx.net> wrote:
> Am 17.01.2013 um 20:07 schrieb Junchao Zhang <junchao.zh...@gmail.com>:
> 
> > Dear all,
> >   I installed hunspell, then I installed Lyx.
> 
> Dear Junchao,
> 
> hunspell and LyX are two independent programs. LyX has builtin hunspell 
> support or not.
> 
> > When I configured Lyx, I could see Lyx found hunspell.
> 
> I understand this as: you can see hunspell as available spell checker in 
> preferences, right?
> 
> >   I set
> >     export DICPATH=/home/jczhang/usr/share/dict/
> >     export DICTIONARY=en_US
> >   in my bashrc
> >
> >   If I invoke hunspell -D, it will give
> > AVAILABLE DICTIONARIES (path is not mandatory for -d option):
> > /home/jczhang/usr/share/dict//en_US
> > /home/jczhang/usr/share/dict//en_AU
> > /home/jczhang/usr/share/dict//en_CA
> > ...
> > LOADED DICTIONARY:
> > /home/jczhang/usr/share/dict//en_US.aff
> > /home/jczhang/usr/share/dict//en_US.dic
> > Hunspell 1.3.2
> >
> >   I choose the spellchecker engine in Lyx as hunspell.
> >   However, when I do spellcheck in Lyx, it just pops a window "Spell 
> > checker has no dictionaries", and no other clues.
> 
> LyX does not find the dictionaries in your home directory.
> You have to point it there in LyX path's preferences.
> Try to enter /home/jczhang/usr/share/dict and see if it helps.
> 
> Regards,
> Stephan
> 
> 
> 
> -- 
> Junchao Zhang

Reply via email to