Op dinsdag 21 februari 2012 07:22:55 schreef Stephan Witt:
> Am 20.02.2012 um 23:55 schrieb Cor Blom:
> > Op maandag 20 februari 2012 23:02:38 schreef Cor Blom:
> >> Op maandag 20 februari 2012 22:39:46 schreef Liviu Andronic:
> >>> On Mon, Feb 20, 2012 at 10:19 PM, Cor Blom <corne...@solcon.nl> wrote:
> >>>> The only way I can understand that is that lyx is looking in
> >>>> /usr/share/myspell for the dictionaries.
> >>> 
> >>> This is what seems to happen on Ubuntu Lucid. I have installed LyX
> >>> 2.0.3 with a clean profile (no manual hunspell path specified) and
> >>> LyX
> >>> now automatically detects the hunspell dictionaries located in:
> >>> liv@liv-laptop:~$ ls /usr/share/myspell -l
> >>> total 8
> >>> drwxr-xr-x 2 root root 4096 2012-02-08 09:24 dicts
> >>> drwxr-xr-x 3 root root 4096 2010-04-29 17:45 infos
> >>> 
> >>> And I have no symlink specified here:
> >>> liv@liv-laptop:~$ ls /usr/share/lyx/dicts
> >>> ls: cannot access /usr/share/lyx/dicts: No such file or directory
> >> 
> >> on openSUSE I still have to tell lyx where the hunspell dicts can be
> >> found (either via lyxrc.dist or via symlinks). Will investigate later
> >> when I have some time. It is not really a problem as the old method
> >> was working fine.> 
> > Ok, found the difference between specifying the hunspell dicts path
> > explicitly and not. When the path is explicitly/manually given, that
> > path is used (in my case /usr/share/myspell), but when the path is left
> > empty (and I used a clean profile) /usr/share/myspell/dicts is used.
> > That directory does not exist.
> > 
> > So when no manual hunspell path is specified, lyx on opensuse is looking
> > in the wrong directory (adding "dicts" to the path).
> 
> I've introduced the lookup for dicts in /usr/share/myspell.
> At that time I thought about a configure option too - but I didn't introduce
> one.
> 
> The "dicts" sub dir directory addition I got from the rpm file list of the
> dictionary packages. So, yes, effectively LyX looks for the hunspell
> dictionaries in "/usr/share/myspell/dicts" as a last resort.
> 
> The other places LyX is looking for system dictionaries is the directory
> dicts in the LyX system dir. For your rpm this would be
> "/usr/share/lyx/dicts" I'd guess.
> 
Yes, it is looking in three directories: /.lyx/dicts, /usr/share/lyx/dicts and 
/usr/share/myspell/dicts. But not /usr/share/myspell, where the dictionaties 
are actually installed. (running lyx -dbg files gives me this info).

Cor

Reply via email to