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"
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?
No other hunspell directory or file is opened after this. Several
aspell/enchant directories *are* opened.
It's as if hunspell is just ignored, even though it was succesfully
opened.
John