Am 03.11.2014 um 05:41 schrieb John Coppens <[email protected]>:

> On Sun, 2 Nov 2014 22:43:17 +0100
> Stephan Witt <[email protected]> wrote:
> 
>> Can you try the Hunspell package, please?
>> Enchant support in LyX 2.1 is not very good.
> 
> I have exactly the same problem with hunspell. I compiled and installed it,
> added en_US and es_ES dictionaries, and tested it on a couple of text
> files from the console - no problem.
> 
> When I start it from LyX, I get the message "Spellchecker has no
> dictionaries"

So, the dictionaries are not found.

The hunspell backend is better prepared for this situation, though.
You can open the message pane (in View menu) and enable debug messages
for "Files used by LyX". Then make sure you've enabled the Hunspell 
checker in preferences. Now you can start the spell check and you'll see
the files/directories LyX is looking for dictionaries in message pane.

> Strange: I configured Hunspell in LyX and did an strace. In the strace
> output I found:
> 
> open("/usr/lib64/libhunspell-1.3.so.0", O_RDONLY|O_CLOEXEC) = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\224\0\0\0\0\0\0"..., 
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
> mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
> 0x7ff13f128000
> mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
> mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
> close(3)                                = 0
> 
> open("/usr/lib64/libaspell.so.15", O_RDONLY|O_CLOEXEC) = 3
> read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\215\2\0\0\0\0\0"..., 832) 
> = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=750528, ...}) = 0
> mmap(NULL, 2878072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
> 0x7ff13ee68000
> mprotect(0x7ff13ef19000, 2093056, PROT_NONE) = 0
> mmap(0x7ff13f118000, 28672, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb0000) = 0x7ff13f118000
> mmap(0x7ff13f11f000, 31352, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff13f11f000
> close(3)                                = 0
> 
> Why is aspell called after hunspell?

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...

> No other hunspell directory or file is opened after this. Several
> aspell/enchant directories *are* opened. 

Where? What is an enchant directory?

Stephan

Reply via email to