Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
st.w...@gmx.net escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
  Which spell checker has a spanish dictionary?
  ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 0x7ff13f118000
   mmap(0x7ff13f11f000, 31352, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff13f11f000
   close(3)               

Re: dictionary not found

2014-11-12 Thread Stephan Witt
 Am 12.11.2014 um 19:03 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 hello Stephan,
  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
 path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

 At the present moment lyx recognize aspell and enchant.
 Aspell say that no found dictionaries, but enchant work.
 The only problem is that enchant not recognize my personal dictionary.
 
 Regards
 Marcelo
 
 
 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  I get a partial solution.
  After several attempts by uninstalling and reinstalling all translators, 
  dictionaries and libraries and recompile lyx every time, now lyx recognize 
  enchant and aspell well, which did not have before. Aspell remain saying 
  not have dictionaries but enchant work ok.
  Now I have the problem that enchant not take my personalized dictionaries.
  I put my dictionaries in home/user but enchant deletes when I start the 
  spellchecker.
  Any idea?
 
 Marcelo,
 
 why don't you answer my proposal to set the path in preferences? Didn't it 
 work?
 
 As I've said already enchant has no good support in LyX.
 I cannot help you with enchant trouble shooting.
 Perhaps some other user can help you.
 
 Stephan
 
 
  
  
  El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  
  Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
  Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
  
  myspell is the the only usable package in your scenario. In fact it's 
  hunspell. The debian package puts the dictionaries into 
  /usr/share/hunspell. (At least the package contents here says so: 
  https://packages.debian.org/wheezy/all/myspell-es/filelist)
  
  So you may enter the mentioned path into your preferences and see if it 
  works. 
  
  Stephan
  
  
   LyX has to be compiled with hunspell support. That's enough.
  
  Yes. I installed all lib and necesary modules for enchant and hunspell, 
  when I run ./configure I get all the messages that say enchant and 
  hunspell are ready.
  
  Marcelo
  
  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
   The problem with hunspell is that debian no have spanish dictionary for 
   hunspell.
  
  Then you have to grab them from other source.
  
  Which spell checker has a spanish dictionary?
  
   Plus I installed hunspell but is not recongized by lyx 2.1.x.
  
  LyX has to be compiled with hunspell support. That's enough.
  And you has to point it to the dictionaries if you have put them
  to a non-standard place (/usr/share/myspell is standard for LyX).
  
  Stephan
  
  
   El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
   escribió:
   
   
   Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
   
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net 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\\215\2\0\0\0\0\0...,
 832) = 832
   

Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
st.w...@gmx.net escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
  Which spell checker has a spanish dictionary?
  ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 0x7ff13f118000
   mmap(0x7ff13f11f000, 31352, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff13f11f000
   close(3)               

Re: dictionary not found

2014-11-12 Thread Stephan Witt
 Am 12.11.2014 um 19:03 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 hello Stephan,
  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
 path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

 At the present moment lyx recognize aspell and enchant.
 Aspell say that no found dictionaries, but enchant work.
 The only problem is that enchant not recognize my personal dictionary.
 
 Regards
 Marcelo
 
 
 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  I get a partial solution.
  After several attempts by uninstalling and reinstalling all translators, 
  dictionaries and libraries and recompile lyx every time, now lyx recognize 
  enchant and aspell well, which did not have before. Aspell remain saying 
  not have dictionaries but enchant work ok.
  Now I have the problem that enchant not take my personalized dictionaries.
  I put my dictionaries in home/user but enchant deletes when I start the 
  spellchecker.
  Any idea?
 
 Marcelo,
 
 why don't you answer my proposal to set the path in preferences? Didn't it 
 work?
 
 As I've said already enchant has no good support in LyX.
 I cannot help you with enchant trouble shooting.
 Perhaps some other user can help you.
 
 Stephan
 
 
  
  
  El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  
  Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
  Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
  
  myspell is the the only usable package in your scenario. In fact it's 
  hunspell. The debian package puts the dictionaries into 
  /usr/share/hunspell. (At least the package contents here says so: 
  https://packages.debian.org/wheezy/all/myspell-es/filelist)
  
  So you may enter the mentioned path into your preferences and see if it 
  works. 
  
  Stephan
  
  
   LyX has to be compiled with hunspell support. That's enough.
  
  Yes. I installed all lib and necesary modules for enchant and hunspell, 
  when I run ./configure I get all the messages that say enchant and 
  hunspell are ready.
  
  Marcelo
  
  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
   The problem with hunspell is that debian no have spanish dictionary for 
   hunspell.
  
  Then you have to grab them from other source.
  
  Which spell checker has a spanish dictionary?
  
   Plus I installed hunspell but is not recongized by lyx 2.1.x.
  
  LyX has to be compiled with hunspell support. That's enough.
  And you has to point it to the dictionaries if you have put them
  to a non-standard place (/usr/share/myspell is standard for LyX).
  
  Stephan
  
  
   El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
   escribió:
   
   
   Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
   
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net 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\\215\2\0\0\0\0\0...,
 832) = 832
   

Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
 escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña :

> I get a partial solution.
> After several attempts by uninstalling and reinstalling all translators, 
> dictionaries and libraries and recompile lyx every time, now lyx recognize 
> enchant and aspell well, which did not have before. Aspell remain saying not 
> have dictionaries but enchant work ok.
> Now I have the problem that enchant not take my personalized dictionaries.
> I put my dictionaries in home/user but enchant deletes when I start the 
> spellchecker.
> Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
> 
> 
> El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
> escribió:
> 
> 
> 
> Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> 
>> Stephan:  
>>  "Which spell checker has a spanish dictionary?"
>>  ispell, aspell, myspell
> 
> myspell is the the only usable package in your scenario. In fact it's 
> hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
> (At least the package contents here says so: 
> https://packages.debian.org/wheezy/all/myspell-es/filelist)
> 
> So you may enter the mentioned path into your preferences and see if it 
> works. 
> 
> Stephan
> 
>> 
>>  "LyX has to be compiled with hunspell support. That's enough."
>> 
>> Yes. I installed all lib and necesary modules for enchant and hunspell, when 
>> I run ./configure I get all the messages that say enchant and hunspell are 
>> ready.
>> 
>> Marcelo
>> 
>> El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
>> escribió:
>> 
>> 
>> Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :
>> 
>> > The problem with hunspell is that debian no have spanish dictionary for 
>> > hunspell.
>> 
>> Then you have to grab them from other source.
>> 
>> Which spell checker has a spanish dictionary?
>> 
>> > Plus I installed hunspell but is not recongized by lyx 2.1.x.
>> 
>> LyX has to be compiled with hunspell support. That's enough.
>> And you has to point it to the dictionaries if you have put them
>> to a non-standard place (/usr/share/myspell is standard for LyX).
>> 
>> Stephan
>> 
>> 
>> > El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
>> > escribió:
>> > 
>> > 
>> > Am 03.11.2014 um 05:41 schrieb John Coppens :
>> > 
>> > > On Sun, 2 Nov 2014 22:43:17 +0100
>> > > Stephan Witt  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\\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) = 

Re: dictionary not found

2014-11-12 Thread Stephan Witt
> Am 12.11.2014 um 19:03 schrieb Marcelo Acuña :
> 
> hello Stephan,
>  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
> path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

> At the present moment lyx recognize aspell and enchant.
> Aspell say that no found dictionaries, but enchant work.
> The only problem is that enchant not recognize my personal dictionary.
> 
> Regards
> Marcelo
> 
> 
> El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt  
> escribió:
> 
> 
> Am 05.11.2014 um 14:10 schrieb Marcelo Acuña :
> 
> > I get a partial solution.
> > After several attempts by uninstalling and reinstalling all translators, 
> > dictionaries and libraries and recompile lyx every time, now lyx recognize 
> > enchant and aspell well, which did not have before. Aspell remain saying 
> > not have dictionaries but enchant work ok.
> > Now I have the problem that enchant not take my personalized dictionaries.
> > I put my dictionaries in home/user but enchant deletes when I start the 
> > spellchecker.
> > Any idea?
> 
> Marcelo,
> 
> why don't you answer my proposal to set the path in preferences? Didn't it 
> work?
> 
> As I've said already enchant has no good support in LyX.
> I cannot help you with enchant trouble shooting.
> Perhaps some other user can help you.
> 
> Stephan
> 
> 
> > 
> > 
> > El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
> > escribió:
> > 
> > 
> > 
> > Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> > 
> >> Stephan:  
> >>  "Which spell checker has a spanish dictionary?"
> >>  ispell, aspell, myspell
> > 
> > myspell is the the only usable package in your scenario. In fact it's 
> > hunspell. The debian package puts the dictionaries into 
> > /usr/share/hunspell. (At least the package contents here says so: 
> > https://packages.debian.org/wheezy/all/myspell-es/filelist)
> > 
> > So you may enter the mentioned path into your preferences and see if it 
> > works. 
> > 
> > Stephan
> > 
> >> 
> >>  "LyX has to be compiled with hunspell support. That's enough."
> >> 
> >> Yes. I installed all lib and necesary modules for enchant and hunspell, 
> >> when I run ./configure I get all the messages that say enchant and 
> >> hunspell are ready.
> >> 
> >> Marcelo
> >> 
> >> El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
> >> escribió:
> >> 
> >> 
> >> Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :
> >> 
> >> > The problem with hunspell is that debian no have spanish dictionary for 
> >> > hunspell.
> >> 
> >> Then you have to grab them from other source.
> >> 
> >> Which spell checker has a spanish dictionary?
> >> 
> >> > Plus I installed hunspell but is not recongized by lyx 2.1.x.
> >> 
> >> LyX has to be compiled with hunspell support. That's enough.
> >> And you has to point it to the dictionaries if you have put them
> >> to a non-standard place (/usr/share/myspell is standard for LyX).
> >> 
> >> Stephan
> >> 
> >> 
> >> > El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
> >> > escribió:
> >> > 
> >> > 
> >> > Am 03.11.2014 um 05:41 schrieb John Coppens :
> >> > 
> >> > > On Sun, 2 Nov 2014 22:43:17 +0100
> >> > > Stephan Witt  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) = 

Re: dictionary not found

2014-11-05 Thread Marcelo Acuña
I get a partial solution.After several attempts by uninstalling and 
reinstalling all translators, dictionaries and libraries and recompile lyx 
every time, now lyx recognize enchant and aspell well, which did not have 
before. Aspell remain saying not have dictionaries but enchant work ok.Now I 
have the problem that enchant not take my personalized dictionaries.I put my 
dictionaries in home/user but enchant deletes when I start the spellchecker.Any 
idea? 

 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
escribió:
   

 
Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:


Stephan:  
  Which spell checker has a spanish dictionary?  ispell, aspell, myspell


myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)
So you may enter the mentioned path into your preferences and see if it works. 
Stephan

 
 LyX has to be compiled with hunspell support. That's enough.
Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.
Marcelo

  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 


   


   

Re: dictionary not found

2014-11-05 Thread Stephan Witt
Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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. 

Re: dictionary not found

2014-11-05 Thread Marcelo Acuña
I get a partial solution.After several attempts by uninstalling and 
reinstalling all translators, dictionaries and libraries and recompile lyx 
every time, now lyx recognize enchant and aspell well, which did not have 
before. Aspell remain saying not have dictionaries but enchant work ok.Now I 
have the problem that enchant not take my personalized dictionaries.I put my 
dictionaries in home/user but enchant deletes when I start the spellchecker.Any 
idea? 

 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
escribió:
   

 
Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:


Stephan:  
  Which spell checker has a spanish dictionary?  ispell, aspell, myspell


myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)
So you may enter the mentioned path into your preferences and see if it works. 
Stephan

 
 LyX has to be compiled with hunspell support. That's enough.
Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.
Marcelo

  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 


   


   

Re: dictionary not found

2014-11-05 Thread Stephan Witt
Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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. 

Re: dictionary not found

2014-11-05 Thread Marcelo Acuña
I get a partial solution.After several attempts by uninstalling and 
reinstalling all translators, dictionaries and libraries and recompile lyx 
every time, now lyx recognize enchant and aspell well, which did not have 
before. Aspell remain saying not have dictionaries but enchant work ok.Now I 
have the problem that enchant not take my personalized dictionaries.I put my 
dictionaries in home/user but enchant deletes when I start the spellchecker.Any 
idea? 

 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
escribió:
   

 
Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :


Stephan:  
  "Which spell checker has a spanish dictionary?"  ispell, aspell, myspell


myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)
So you may enter the mentioned path into your preferences and see if it works. 
Stephan

 
 "LyX has to be compiled with hunspell support. That's enough."
Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.
Marcelo

  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :

> The problem with hunspell is that debian no have spanish dictionary for 
> hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
> Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

> El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
> escribió:
> 
> 
> Am 03.11.2014 um 05:41 schrieb John Coppens :
> 
> > On Sun, 2 Nov 2014 22:43:17 +0100
> > Stephan Witt  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\\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, 0xb) = 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
> 
> 


   


   

Re: dictionary not found

2014-11-05 Thread Stephan Witt
Am 05.11.2014 um 14:10 schrieb Marcelo Acuña :

> I get a partial solution.
> After several attempts by uninstalling and reinstalling all translators, 
> dictionaries and libraries and recompile lyx every time, now lyx recognize 
> enchant and aspell well, which did not have before. Aspell remain saying not 
> have dictionaries but enchant work ok.
> Now I have the problem that enchant not take my personalized dictionaries.
> I put my dictionaries in home/user but enchant deletes when I start the 
> spellchecker.
> Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
> 
> 
> El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
> escribió:
> 
> 
> 
> Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> 
>> Stephan:  
>>   "Which spell checker has a spanish dictionary?"
>>   ispell, aspell, myspell
> 
> myspell is the the only usable package in your scenario. In fact it's 
> hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
> (At least the package contents here says so: 
> https://packages.debian.org/wheezy/all/myspell-es/filelist)
> 
> So you may enter the mentioned path into your preferences and see if it 
> works. 
> 
> Stephan
> 
>> 
>>  "LyX has to be compiled with hunspell support. That's enough."
>> 
>> Yes. I installed all lib and necesary modules for enchant and hunspell, when 
>> I run ./configure I get all the messages that say enchant and hunspell are 
>> ready.
>> 
>> Marcelo
>> 
>> El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
>> escribió:
>> 
>> 
>> Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :
>> 
>> > The problem with hunspell is that debian no have spanish dictionary for 
>> > hunspell.
>> 
>> Then you have to grab them from other source.
>> 
>> Which spell checker has a spanish dictionary?
>> 
>> > Plus I installed hunspell but is not recongized by lyx 2.1.x.
>> 
>> LyX has to be compiled with hunspell support. That's enough.
>> And you has to point it to the dictionaries if you have put them
>> to a non-standard place (/usr/share/myspell is standard for LyX).
>> 
>> Stephan
>> 
>> 
>> > El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
>> > escribió:
>> > 
>> > 
>> > Am 03.11.2014 um 05:41 schrieb John Coppens :
>> > 
>> > > On Sun, 2 Nov 2014 22:43:17 +0100
>> > > Stephan Witt  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\\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, 0xb) = 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?

Re: dictionary not found

2014-11-04 Thread Marcelo Acuña

Stephan:  


  Which spell checker has a spanish dictionary?

  ispell, aspell, myspell

 

 LyX has to be compiled with hunspell support. That's enough.




Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.




Marcelo




  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 


   

Re: dictionary not found

2014-11-04 Thread Stephan Witt

 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
 
   Which spell checker has a spanish dictionary?
 
   ispell, aspell, myspell
 

myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)

So you may enter the mentioned path into your preferences and see if it works. 

Stephan

 
  LyX has to be compiled with hunspell support. That's enough.
 
 
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 
 
 Marcelo
 
 


Re: dictionary not found

2014-11-04 Thread Marcelo Acuña

Stephan:  


  Which spell checker has a spanish dictionary?

  ispell, aspell, myspell

 

 LyX has to be compiled with hunspell support. That's enough.




Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.




Marcelo




  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 


   

Re: dictionary not found

2014-11-04 Thread Stephan Witt

 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
 
   Which spell checker has a spanish dictionary?
 
   ispell, aspell, myspell
 

myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)

So you may enter the mentioned path into your preferences and see if it works. 

Stephan

 
  LyX has to be compiled with hunspell support. That's enough.
 
 
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 
 
 Marcelo
 
 


Re: dictionary not found

2014-11-04 Thread Marcelo Acuña

Stephan:  


  "Which spell checker has a spanish dictionary?"

  ispell, aspell, myspell

 

 "LyX has to be compiled with hunspell support. That's enough."




Yes. I installed all lib and necesary modules for enchant and hunspell, when I 
run ./configure I get all the messages that say enchant and hunspell are ready.




Marcelo




  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
escribió:
   

 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :

> The problem with hunspell is that debian no have spanish dictionary for 
> hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
> Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

> El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
> escribió:
> 
> 
> Am 03.11.2014 um 05:41 schrieb John Coppens :
> 
> > On Sun, 2 Nov 2014 22:43:17 +0100
> > Stephan Witt  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\\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, 0xb) = 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
> 
> 


   

Re: dictionary not found

2014-11-04 Thread Stephan Witt

> Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> 
> Stephan:  
> 
>   "Which spell checker has a spanish dictionary?"
> 
>   ispell, aspell, myspell
> 

myspell is the the only usable package in your scenario. In fact it's hunspell. 
The debian package puts the dictionaries into /usr/share/hunspell. (At least 
the package contents here says so: 
https://packages.debian.org/wheezy/all/myspell-es/filelist)

So you may enter the mentioned path into your preferences and see if it works. 

Stephan

> 
>  "LyX has to be compiled with hunspell support. That's enough."
> 
> 
> 
> Yes. I installed all lib and necesary modules for enchant and hunspell, when 
> I run ./configure I get all the messages that say enchant and hunspell are 
> ready.
> 
> 
> 
> Marcelo
> 
> 


Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:

 On Sun, 2 Nov 2014 22:43:17 +0100
 Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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

Re: dictionary not found

2014-11-03 Thread Marcelo Acuña
The problem with hunspell is that debian no have spanish dictionary for 
hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 
 

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:

 On Sun, 2 Nov 2014 22:43:17 +0100
 Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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

   

Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 



Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 14:22:22 +0100
Stephan Witt st.w...@gmx.net 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 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?


John


Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 15:19:48 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 

Marcelo, you can use the dictionaries from LibreOffice (OpenOffice), Firefox 
and others. The extensions
are strange (.xpi and such), but they are actually .zip files. So you can 
rename them to something.zip,
unzip them, and copy the contents to where LyX expects them (I would suggest 
/usr/share/myspell/ )

John


Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 22:14 schrieb John Coppens j...@jcoppens.com:

 On Mon, 3 Nov 2014 14:22:22 +0100
 Stephan Witt st.w...@gmx.net 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

Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:

 On Sun, 2 Nov 2014 22:43:17 +0100
 Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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

Re: dictionary not found

2014-11-03 Thread Marcelo Acuña
The problem with hunspell is that debian no have spanish dictionary for 
hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 
 

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
escribió:
   

 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:

 On Sun, 2 Nov 2014 22:43:17 +0100
 Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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

   

Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
 Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
 
  On Sun, 2 Nov 2014 22:43:17 +0100
  Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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
 
 



Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 14:22:22 +0100
Stephan Witt st.w...@gmx.net 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 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?


John


Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 15:19:48 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 The problem with hunspell is that debian no have spanish dictionary for 
 hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 

Marcelo, you can use the dictionaries from LibreOffice (OpenOffice), Firefox 
and others. The extensions
are strange (.xpi and such), but they are actually .zip files. So you can 
rename them to something.zip,
unzip them, and copy the contents to where LyX expects them (I would suggest 
/usr/share/myspell/ )

John


Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 22:14 schrieb John Coppens j...@jcoppens.com:

 On Mon, 3 Nov 2014 14:22:22 +0100
 Stephan Witt st.w...@gmx.net 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

Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 05:41 schrieb John Coppens :

> On Sun, 2 Nov 2014 22:43:17 +0100
> Stephan Witt  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\\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, 0xb) = 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

Re: dictionary not found

2014-11-03 Thread Marcelo Acuña
The problem with hunspell is that debian no have spanish dictionary for 
hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 
 

 El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
escribió:
   

 Am 03.11.2014 um 05:41 schrieb John Coppens :

> On Sun, 2 Nov 2014 22:43:17 +0100
> Stephan Witt  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\\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, 0xb) = 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

   

Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :

> The problem with hunspell is that debian no have spanish dictionary for 
> hunspell.

Then you have to grab them from other source.

Which spell checker has a spanish dictionary?
 
> Plus I installed hunspell but is not recongized by lyx 2.1.x.

LyX has to be compiled with hunspell support. That's enough.
And you has to point it to the dictionaries if you have put them
to a non-standard place (/usr/share/myspell is standard for LyX).

Stephan

> El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
> escribió:
> 
> 
> Am 03.11.2014 um 05:41 schrieb John Coppens :
> 
> > On Sun, 2 Nov 2014 22:43:17 +0100
> > Stephan Witt  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\\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, 0xb) = 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
> 
> 



Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 14:22:22 +0100
Stephan Witt  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 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?


John


Re: dictionary not found

2014-11-03 Thread John Coppens
On Mon, 3 Nov 2014 15:19:48 + (UTC)
Marcelo Acuña  wrote:

> The problem with hunspell is that debian no have spanish dictionary for 
> hunspell.Plus I installed hunspell but is not recongized by lyx 2.1.x. 

Marcelo, you can use the dictionaries from LibreOffice (OpenOffice), Firefox 
and others. The extensions
are strange (.xpi and such), but they are actually .zip files. So you can 
rename them to something.zip,
unzip them, and copy the contents to where LyX expects them (I would suggest 
/usr/share/myspell/ )

John


Re: dictionary not found

2014-11-03 Thread Stephan Witt
Am 03.11.2014 um 22:14 schrieb John Coppens :

> On Mon, 3 Nov 2014 14:22:22 +0100
> Stephan Witt  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

Re: dictionary not found

2014-11-02 Thread John Coppens
On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 Yes, work ok.LibreOffice spellchecker work too.
  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John


Re: dictionary not found

2014-11-02 Thread Marcelo Acuña
fail randomly  uahhh!Ok, but for me fail all times.Thanks!
 

 El Domingo, 2 de noviembre, 2014 13:19:54, John Coppens 
j...@jcoppens.com escribió:
   

 On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 Yes, work ok.LibreOffice spellchecker work too.
  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John

   

Re: dictionary not found

2014-11-02 Thread Stephan Witt
Am 31.10.2014 um 20:55 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 hello,
   I have lyx 2.1.2 compiled in debian linux.
   I can`t get that spellcheckers work. I have installed all components of 
 myspell, enchant (development librarys included) and dictionarys but when I 
 start a run of the spellchcker I get a dictionary not found message.

Can you try the Hunspell package, please?
Enchant support in LyX 2.1 is not very good.

Stephan



Re: dictionary not found

2014-11-02 Thread John Coppens
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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


Re: dictionary not found

2014-11-02 Thread John Coppens
On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 Yes, work ok.LibreOffice spellchecker work too.
  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John


Re: dictionary not found

2014-11-02 Thread Marcelo Acuña
fail randomly  uahhh!Ok, but for me fail all times.Thanks!
 

 El Domingo, 2 de noviembre, 2014 13:19:54, John Coppens 
j...@jcoppens.com escribió:
   

 On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 Yes, work ok.LibreOffice spellchecker work too.
  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John

   

Re: dictionary not found

2014-11-02 Thread Stephan Witt
Am 31.10.2014 um 20:55 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 hello,
   I have lyx 2.1.2 compiled in debian linux.
   I can`t get that spellcheckers work. I have installed all components of 
 myspell, enchant (development librarys included) and dictionarys but when I 
 start a run of the spellchcker I get a dictionary not found message.

Can you try the Hunspell package, please?
Enchant support in LyX 2.1 is not very good.

Stephan



Re: dictionary not found

2014-11-02 Thread John Coppens
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net 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\\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, 0xb) = 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


Re: dictionary not found

2014-11-02 Thread John Coppens
On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña  wrote:

> Yes, work ok.LibreOffice spellchecker work too.
>  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John


Re: dictionary not found

2014-11-02 Thread Marcelo Acuña
"fail randomly"  uahhh!Ok, but for me fail all times.Thanks!
 

 El Domingo, 2 de noviembre, 2014 13:19:54, John Coppens 
 escribió:
   

 On Sat, 1 Nov 2014 15:40:56 + (UTC)
Marcelo Acuña  wrote:

> Yes, work ok.LibreOffice spellchecker work too.
>  

I normally don't use spellcheckers, but I tested enchant now, and it does
seem to fail randomly. Sometimes I get the 'dictionary' problem, and
sometimes the checker just reports that all is correct...

Marcelo, I've submitted a bug report on your problem (Ticket #9318)
http://www.lyx.org/trac/ticket/9318

Let's hope for a quick reply!

John

   

Re: dictionary not found

2014-11-02 Thread Stephan Witt
Am 31.10.2014 um 20:55 schrieb Marcelo Acuña <marceloacu...@yahoo.com>:

> hello,
>   I have lyx 2.1.2 compiled in debian linux.
>   I can`t get that spellcheckers work. I have installed all components of 
> myspell, enchant (development librarys included) and dictionarys but when I 
> start a run of the spellchcker I get a dictionary not found message.

Can you try the Hunspell package, please?
Enchant support in LyX 2.1 is not very good.

Stephan



Re: dictionary not found

2014-11-02 Thread John Coppens
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt  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\\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, 0xb) = 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


Re: dictionary not found

2014-11-01 Thread Marcelo Acuña
Yes, work ok.LibreOffice spellchecker work too.
 

 El Viernes, 31 de octubre, 2014 22:39:16, John Coppens j...@jcoppens.com 
escribió:
   

 On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
 spellcheckers work. I have installed all components of myspell, enchant 
 (development librarys included) and dictionarys but when I start a run of the 
 spellchcker I get a dictionary not found message. All other functions of lyx 
 work properly.
 Marcelo

Does enchant work from the command line?  
 
  enchant -l some file 

should list all the spelling errors in some file.

John

   

Re: dictionary not found

2014-11-01 Thread Marcelo Acuña
Yes, work ok.LibreOffice spellchecker work too.
 

 El Viernes, 31 de octubre, 2014 22:39:16, John Coppens j...@jcoppens.com 
escribió:
   

 On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
 spellcheckers work. I have installed all components of myspell, enchant 
 (development librarys included) and dictionarys but when I start a run of the 
 spellchcker I get a dictionary not found message. All other functions of lyx 
 work properly.
 Marcelo

Does enchant work from the command line?  
 
  enchant -l some file 

should list all the spelling errors in some file.

John

   

Re: dictionary not found

2014-11-01 Thread Marcelo Acuña
Yes, work ok.LibreOffice spellchecker work too.
 

 El Viernes, 31 de octubre, 2014 22:39:16, John Coppens <j...@jcoppens.com> 
escribió:
   

 On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña <marceloacu...@yahoo.com> wrote:

> hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
> spellcheckers work. I have installed all components of myspell, enchant 
> (development librarys included) and dictionarys but when I start a run of the 
> spellchcker I get a dictionary not found message. All other functions of lyx 
> work properly.
> Marcelo

Does enchant work from the command line?  
 
  enchant -l  

should list all the spelling errors in .

John

   

dictionary not found

2014-10-31 Thread Marcelo Acuña
hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
spellcheckers work. I have installed all components of myspell, enchant 
(development librarys included) and dictionarys but when I start a run of the 
spellchcker I get a dictionary not found message. All other functions of lyx 
work properly.
Marcelo


Re: dictionary not found

2014-10-31 Thread John Coppens
On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
 spellcheckers work. I have installed all components of myspell, enchant 
 (development librarys included) and dictionarys but when I start a run of the 
 spellchcker I get a dictionary not found message. All other functions of lyx 
 work properly.
 Marcelo

Does enchant work from the command line?   
 
   enchant -l some file 

should list all the spelling errors in some file.

John


dictionary not found

2014-10-31 Thread Marcelo Acuña
hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
spellcheckers work. I have installed all components of myspell, enchant 
(development librarys included) and dictionarys but when I start a run of the 
spellchcker I get a dictionary not found message. All other functions of lyx 
work properly.
Marcelo


Re: dictionary not found

2014-10-31 Thread John Coppens
On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña marceloacu...@yahoo.com wrote:

 hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
 spellcheckers work. I have installed all components of myspell, enchant 
 (development librarys included) and dictionarys but when I start a run of the 
 spellchcker I get a dictionary not found message. All other functions of lyx 
 work properly.
 Marcelo

Does enchant work from the command line?   
 
   enchant -l some file 

should list all the spelling errors in some file.

John


dictionary not found

2014-10-31 Thread Marcelo Acuña
hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
spellcheckers work. I have installed all components of myspell, enchant 
(development librarys included) and dictionarys but when I start a run of the 
spellchcker I get a dictionary not found message. All other functions of lyx 
work properly.
Marcelo


Re: dictionary not found

2014-10-31 Thread John Coppens
On Fri, 31 Oct 2014 19:55:09 + (UTC)
Marcelo Acuña <marceloacu...@yahoo.com> wrote:

> hello,  I have lyx 2.1.2 compiled in debian linux.  I can`t get that 
> spellcheckers work. I have installed all components of myspell, enchant 
> (development librarys included) and dictionarys but when I start a run of the 
> spellchcker I get a dictionary not found message. All other functions of lyx 
> work properly.
> Marcelo

Does enchant work from the command line?   
 
   enchant -l  

should list all the spelling errors in .

John