Am 03.11.2014 um 22:14 schrieb John Coppens <[email protected]>:

> On Mon, 3 Nov 2014 14:22:22 +0100
> Stephan Witt <[email protected]> wrote:
> 
>> You're using LyX with backend support for more than one spell checker.
>> Every spell checker comes with it's own shared library.
>> These open calls are made on program startup to resolve the library function 
>> addresses.
>> Your strace output doesn't indicate any function call...
> 
> I see... Thanks. 
> 
> Yes, the function calls are much later. If you like, I can send
> you the entire trace gzipped. It's about 280k long. But the calls are to
> Enchant, not to the selected Hunspell.

No, thanks. :)

But seriously, I'm using strace to investigate the doing of a closed source 
program.
LyX is open source and I'm able to look at the source for problem solving.

Enchant is not a spell checker library itself but a so called broker or wrapper 
library.
You configure enchant which spell checker should be used for a given language.
You have to analyze your configuration carefully to tell what really happens.
LyX cannot tell how enchant is handling the request to spell check some string.
Unfortunately there is no good logging and error handling for enchant calls in 
LyX.
That's why I recommend the use of hunspell with LyX instead.

What I do not understand, why enchant is used instead of hunspell.
Are you sure your hunspell preference setting is active?
As I wrote in an earlier message you should be able to see the
hunspell file lookup messages if the debug messages are enabled.

>>> No other hunspell directory or file is opened after this. Several
>>> aspell/enchant directories *are* opened. 
>> 
>> Where? What is an enchant directory?
> 
> I mean the directories where the enchant dictionaries are first looked for
> (/usr/share/enchant)
> 
> These are the directories LyX looks in:
> 
> /usr/share/myspell
> /usr/local/share/lyx
> /root/.lyx
> 
> I.e., it does not look into hunspell's own directory. So, it seems we have
> to provide a symlink here?

LyX's preference pane has an input field to define the path were to lookup
the hunspell dictionaries. No need for a symlink. I don't know how to
configure enchant to look at the correct place, sorry.

Stephan

Reply via email to