Re: "Spell checker has no dictionaries"

2018-10-24 Thread John Kane
 I just installed 4 or 5 spellchecker dictionaries using the standard sudu 
apt-get install command in Ubuntu. 

Of course, I installed the hunspell-en-ca dictionary that spells things like 
colour correctly

On Tuesday, October 23, 2018, 2:12:49 p.m. EDT, Paul A. Rubin 
 wrote:  
 
 On 10/23/18 12:33 PM, Rich Shepard wrote:
> Fellow writers:
>
>   This is an unintended consequence of my changing the default dictionary
> engine from enchant to hunspell. I must have missed a step somewhere and
> want to learn what that was.
>
>   LyX-2.3.1 running here.
>
>   Tools -> Preferences -> Language Settings -> Spellchecker has 
> Spellchecker
> engine: Hunspell (found in /usr/bin/hunspell).
>
>   I ran reconfigure after making the change but still no joy.
>
>   A cluestick is needed.
>
> TIA,
>
> Rich
Rich,

Hunspell uses its own set of dictionaries, such as Hunspell-en-us (U.S. 
English), Hunspell-en-gb (English with unnecessary extra letters), 
Hunspell-de-med (medical terms in German) etc. Looks like you have to 
install one or more of them. Assuming your default language is U.S. 
English, you'll need Hunspell-en-us for sure. With Ubuntu and Mint, you 
can do this through Synaptic or (at least in Mint) the Software Sources 
app. I forget what distro you use, but if has a package manager I would 
start there.

Paul

  

Re: "Spell checker has no dictionaries" [RESOLVED]

2018-10-23 Thread Rich Shepard

On Tue, 23 Oct 2018, Paul A. Rubin wrote:


Hunspell uses its own set of dictionaries, such as Hunspell-en-us (U.S.
English),


Paul,

  Well that would certainly explain the problem.


I forget what distro you use, but if has a package manager I would start
there.


  Sure enough, SlackBuilds.org has an English language package which
provides five dictionaries of English usage - Australian,
Canadian, United States, and two forms of British English.

  As the package maintainer explains, "he reason I've included two forms of
British English dictionaries are:

"1. The -ise suffix is more commonly used by British speakers and all other
forms such as en_DK, en_IE, en_IN, etc are symbolic links to en_GB-ise.

"2. the en_GB-ize/en_GB-oxendict which uses the -ize suffix is known as
Oxford English Dictionary Spelling and is generally favored for academic,
formal, and technical writing."

  I modified the build script to limit it to US_en as that's the only flavor
I speak/write.

Thanks for the pointer,

Rich



Re: "Spell checker has no dictionaries"

2018-10-23 Thread Paul A. Rubin

On 10/23/18 12:33 PM, Rich Shepard wrote:

Fellow writers:

  This is an unintended consequence of my changing the default dictionary
engine from enchant to hunspell. I must have missed a step somewhere and
want to learn what that was.

  LyX-2.3.1 running here.

  Tools -> Preferences -> Language Settings -> Spellchecker has 
Spellchecker

engine: Hunspell (found in /usr/bin/hunspell).

  I ran reconfigure after making the change but still no joy.

  A cluestick is needed.

TIA,

Rich

Rich,

Hunspell uses its own set of dictionaries, such as Hunspell-en-us (U.S. 
English), Hunspell-en-gb (English with unnecessary extra letters), 
Hunspell-de-med (medical terms in German) etc. Looks like you have to 
install one or more of them. Assuming your default language is U.S. 
English, you'll need Hunspell-en-us for sure. With Ubuntu and Mint, you 
can do this through Synaptic or (at least in Mint) the Software Sources 
app. I forget what distro you use, but if has a package manager I would 
start there.


Paul



Re: Spell checker has no dictionaries

2013-01-17 Thread Stephan Witt
Am 18.01.2013 um 00:20 schrieb Junchao Zhang :

> 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  wrote:
> Am 17.01.2013 um 20:07 schrieb Junchao Zhang :
> 
> > 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



Re: Spell checker has no dictionaries

2013-01-17 Thread Junchao Zhang
Hi, Stephan,
   I find I just need to put dictionary files under $(HOME)/.lyx/dicts/
  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  wrote:

> Am 17.01.2013 um 20:07 schrieb Junchao Zhang :
>
> > 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


Re: Spell checker has no dictionaries

2013-01-17 Thread Stephan Witt
Am 17.01.2013 um 20:07 schrieb Junchao Zhang :

> 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