Am 28.09.2011 um 23:46 schrieb Liviu Andronic: > On Tue, Sep 6, 2011 at 7:33 AM, Stephan Witt <st.w...@gmx.net> wrote: >> At runtime LyX needs to find the dictionaries. Did you set the path in the >> preferences? Alternatively you may copy them from LyX's SVN repository >> in dictionaries/dicts to the subdirectory dicts in the system directory of >> LyX. >> You may copy the dictionaries/thes contents to the thes subdirectory to get >> a working thesaurus. >> > I am trying to configure LyX to use Hunspell on Linux, without luck so far. > > I checked out svn://svn.lyx.org/lyx/dictionaries/trunk and added > root@liv-laptop:/usr/local/build/lyx-hunspell# ls -l > total 16 > drwxr-xr-x 4 root root 12288 2011-09-28 23:14 dicts > drwxr-xr-x 4 root root 4096 2011-09-28 23:12 thes > > to PATHs in LyX Prefs. I tried with both > /usr/local/build/lyx-hunspell > > and > /usr/local/build/lyx-hunspell/dicts > > In both cases I reconfigured. My build of LyX is compiled with support > for Hunspell, and Hunspell is selected as engine, but no spell > checking is being performed. Hunspell works fine when used through > Enchant.
I'm almost sure Hunspell with enchant doesn't use the dictionaries in "/usr/local/build/lyx-hunspell/dicts". LyX itself looks into the given path for Hunspell dictionaries from the preferences, the ${user-support-dir}/dicts and ${system-support-dir}/dicts (in this order). In case you gave it the correct path in your preferences and have enough permissions (not only as root!) to read files from there it should work. > Am I missing something obvious? We should add a warning message when no dictionaries could be found and where LyX did look for. Unfortunately this is not that easy, because this is a common situation. LyX looks up the dictionaries for all languages it knows and there are many without a dictionary. That's why there is only a FIXME in the code from the beginning of it's existence. Stephan