Am 07.09.2011 um 12:30 schrieb Liviu Andronic: > On Tue, Sep 6, 2011 at 7:33 AM, Stephan Witt <st.w...@gmx.net> wrote: >> So configure could detect the location of header and library and the final >> binary should provide the hunspell spellchecker backend. >> > Yes, it seems so. I can select Hunspell in Prefs. > > >>> Am I doing something wrong or is there some incompatibility? LyX works >>> fine with hunspell via Enchant. Also, 'pkg-config' v0.22 is installed. >> >> At runtime LyX needs to find the dictionaries. Did you set the path in the >> preferences? >> > I'm curious as to why this is needed?
This is not on purpose... it's the current behavior because there is no standard for the location of the hunspell dictionaries. You may answer the same holds true for Aspell... but this backend was made by another LyX programmer. Anyway, I'd have no problem to enhance this. > Cannot LyX detect by itself the > location of hunspell dictionaries, as it does for Aspell, > respectively? If this is to allow using a custom location for the > dictionaries, couldn't LyX auto-insert the location of the system > Hunspell folder? Otherwise, shouldn't there be a tooltip or pop-up > warning that no path has been set? This is another general problem. The spell checker fails silently without any hint or report why. > Without any of the above it is very > confusing when all the necessary packages have been installed > (hunspell + appropriate dictionaries), and that spell-checking doesn't > work when hunspell is selected. > > Anyways, it still doesn't work here. I specified > '/usr/share/hunspell/' in Prefs > Paths (that path contains a bunch of > *.aff and *.dic files). Spellcheck Continuously is checked and > Hunspell is selected, and I reconfigured & restarted LyX. Moreover, > liv@liv-laptop:~$ locate hunspell | grep -i en_ > /usr/share/hunspell/en_CA.aff > /usr/share/hunspell/en_CA.dic > /usr/share/hunspell/en_GB.aff > /usr/share/hunspell/en_GB.dic > /usr/share/hunspell/en_US.aff > /usr/share/hunspell/en_US.dic > /usr/share/hunspell/en_ZA.aff > /usr/share/hunspell/en_ZA.dic > > I have the necessary dictionaries for an English language document. Ideas? There are 2 versions of dictionaries around. Perhaps your's are too old? Compare them with the dictionaries in LyX's SVN. > >> 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. >> > OK, after a bit of searching I found them [1]. Will try this later. > [1] http://www.lyx.org/trac/browser/dictionaries/trunk Sorry, I didn't know that the location is not that obvious. Stephan