Re: Using hunspell as a spellchecker

2009-06-21 Thread Theblond
 I would like to use hunspell as the spellchecker.
 I have installed it and a dictionary from sources
 into /home/lyx/bin .
 
 I've added an environment variable:
 DICPATH=/home/lyx/share/myspell
 
 I have uninstalled ispell and I have created a symlink (ispell) pointing
 to hunspell. (ln -s hunspell ispell)
 
 Unfortunately, it is not working. It says:
 The spellchecker has died for some reason. Maybe it has been killed.
 
 Hunspell has a pipe interface with the -a option.
 
 Versions:
  - LyX v1.6.3.
  - Hunspell v1.2.8 -
  - magyarispell dictionary: Magyar 1.4

I have figured it out myself. :)

hunspell install is easy, just do the following to install it for the
current user:
 $ mkdir ~/src
 $ cd ~/src
 $ tar xvf ~/download/hunspell-1.2.8.tar.gz
 $ cd hunspell-1.2.8
 $ ./configure --prefix=$HOME --with-ui
 $ make
 $ make install
 $ cd ~/bin
 $ ln -s hunspell ispell

magyarispell is a little bit tricky.
There is an error(?) in the makefile, so line 169. should be modified:
from:
@cp -f $(WRKDIR)/hu_HU.{dic,aff} $(MYSPELLDIR)/
to:
@cp -f hu_HU.{dic,aff} $(MYSPELLDIR)/

Note, that the first 1 or two character is tabulator, not space!

This change should be made after unpacking:
 $ cd ~/src
 $ tar xvf $HOME/download/magyarispell-1.4.tar.gz
 $ cd magyarispell-1.4

Here, I have changed the Makefile and issued:

 $ make PREFIX=$HOME install_myspell

The location of the dictionary can be given with an environment variable:

 DICPATH=/home/lyx/share/myspell

Finally, in LyX, we should set ispell as the spellchecker, and we must
ensure, that the bin directory is the first in the search path to lyx
call our hunspell (via the symlink).


Theblond


Re: Using hunspell as a spellchecker

2009-06-21 Thread Theblond
 I would like to use hunspell as the spellchecker.
 I have installed it and a dictionary from sources
 into /home/lyx/bin .
 
 I've added an environment variable:
 DICPATH=/home/lyx/share/myspell
 
 I have uninstalled ispell and I have created a symlink (ispell) pointing
 to hunspell. (ln -s hunspell ispell)
 
 Unfortunately, it is not working. It says:
 The spellchecker has died for some reason. Maybe it has been killed.
 
 Hunspell has a pipe interface with the -a option.
 
 Versions:
  - LyX v1.6.3.
  - Hunspell v1.2.8 -
  - magyarispell dictionary: Magyar 1.4

I have figured it out myself. :)

hunspell install is easy, just do the following to install it for the
current user:
 $ mkdir ~/src
 $ cd ~/src
 $ tar xvf ~/download/hunspell-1.2.8.tar.gz
 $ cd hunspell-1.2.8
 $ ./configure --prefix=$HOME --with-ui
 $ make
 $ make install
 $ cd ~/bin
 $ ln -s hunspell ispell

magyarispell is a little bit tricky.
There is an error(?) in the makefile, so line 169. should be modified:
from:
@cp -f $(WRKDIR)/hu_HU.{dic,aff} $(MYSPELLDIR)/
to:
@cp -f hu_HU.{dic,aff} $(MYSPELLDIR)/

Note, that the first 1 or two character is tabulator, not space!

This change should be made after unpacking:
 $ cd ~/src
 $ tar xvf $HOME/download/magyarispell-1.4.tar.gz
 $ cd magyarispell-1.4

Here, I have changed the Makefile and issued:

 $ make PREFIX=$HOME install_myspell

The location of the dictionary can be given with an environment variable:

 DICPATH=/home/lyx/share/myspell

Finally, in LyX, we should set ispell as the spellchecker, and we must
ensure, that the bin directory is the first in the search path to lyx
call our hunspell (via the symlink).


Theblond


Re: Using hunspell as a spellchecker

2009-06-21 Thread Theblond
> I would like to use hunspell as the spellchecker.
> I have installed it and a dictionary from sources
> into /home/lyx/bin .
> 
> I've added an environment variable:
> DICPATH=/home/lyx/share/myspell
> 
> I have uninstalled ispell and I have created a symlink (ispell) pointing
> to hunspell. (ln -s hunspell ispell)
> 
> Unfortunately, it is not working. It says:
> "The spellchecker has died for some reason. Maybe it has been killed."
> 
> Hunspell has a pipe interface with the -a option.
> 
> Versions:
>  - LyX v1.6.3.
>  - Hunspell v1.2.8 -
>  - magyarispell dictionary: Magyar 1.4

I have figured it out myself. :)

hunspell install is easy, just do the following to install it for the
current user:
 $ mkdir ~/src
 $ cd ~/src
 $ tar xvf ~/download/hunspell-1.2.8.tar.gz
 $ cd hunspell-1.2.8
 $ ./configure --prefix=$HOME --with-ui
 $ make
 $ make install
 $ cd ~/bin
 $ ln -s hunspell ispell

magyarispell is a little bit tricky.
There is an error(?) in the makefile, so line 169. should be modified:
from:
@cp -f $(WRKDIR)/hu_HU.{dic,aff} $(MYSPELLDIR)/
to:
@cp -f hu_HU.{dic,aff} $(MYSPELLDIR)/

Note, that the first 1 or two character is tabulator, not space!

This change should be made after unpacking:
 $ cd ~/src
 $ tar xvf $HOME/download/magyarispell-1.4.tar.gz
 $ cd magyarispell-1.4

Here, I have changed the Makefile and issued:

 $ make PREFIX=$HOME install_myspell

The location of the dictionary can be given with an environment variable:

 DICPATH=/home/lyx/share/myspell

Finally, in LyX, we should set ispell as the spellchecker, and we must
ensure, that the bin directory is the first in the search path to lyx
call our hunspell (via the symlink).


Theblond


Using hunspell as a spellchecker

2009-06-20 Thread Theblond
Hi!

I would like to use hunspell as the spellchecker.
I have installed it and a dictionary from sources
into /home/lyx/bin .

I've added an environment variable:
DICPATH=/home/lyx/share/myspell

I have uninstalled ispell and I have created a symlink (ispell) pointing
to hunspell. (ln -s hunspell ispell)

Unfortunately, it is not working. It says:
The spellchecker has died for some reason. Maybe it has been killed.

Hunspell has a pipe interface with the -a option.

Versions:
 - LyX v1.6.3.
 - Hunspell v1.2.8 -
 - magyarispell dictionary: Magyar 1.4

How to work around?

Alex

Appendix:

l...@mobix:~$ hunspell
Hunspell 1.2.8 - Magyar 1.4
l...@mobix:~$ hunspell -h
Usage: hunspell [OPTION]... [FILE]...
Check spelling of each FILE. Without FILE, check standard input.

  -1check only first field in lines (delimiter = tabulator)
  -aIspell's pipe interface
  --check-url   Check URLs, e-mail addresses and directory paths
  -d d[,d2,...] use d (d2 etc.) dictionaries
  -Dshow available dictionaries
  -Gprint only correct words or lines
  -h, --helpdisplay this help and exit
  -HHTML input file format
  -i encinput encoding
  -lprint mispelled words
  -Lprint lines with mispelled words
  -manalyze the words of the input text
  -nnroff/troff input file format
  -p dict   set dict custom dictionary
  -P password   set password for encrypted dictionaries
  -sstem the words of the input text
  -tTeX/LaTeX input file format
  -v, --version print version number
  -vv   print Ispell compatible version number
  -wprint mispelled words (= lines) from one word/line input.

Example: hunspell -d en_US file.txt# interactive spelling
 hunspell -l file.txt  # print misspelled words
 hunspell -i utf-8 file.txt# check UTF-8 encoded file

Bug reports: http://hunspell.sourceforge.net


Using hunspell as a spellchecker

2009-06-20 Thread Theblond
Hi!

I would like to use hunspell as the spellchecker.
I have installed it and a dictionary from sources
into /home/lyx/bin .

I've added an environment variable:
DICPATH=/home/lyx/share/myspell

I have uninstalled ispell and I have created a symlink (ispell) pointing
to hunspell. (ln -s hunspell ispell)

Unfortunately, it is not working. It says:
The spellchecker has died for some reason. Maybe it has been killed.

Hunspell has a pipe interface with the -a option.

Versions:
 - LyX v1.6.3.
 - Hunspell v1.2.8 -
 - magyarispell dictionary: Magyar 1.4

How to work around?

Alex

Appendix:

l...@mobix:~$ hunspell
Hunspell 1.2.8 - Magyar 1.4
l...@mobix:~$ hunspell -h
Usage: hunspell [OPTION]... [FILE]...
Check spelling of each FILE. Without FILE, check standard input.

  -1check only first field in lines (delimiter = tabulator)
  -aIspell's pipe interface
  --check-url   Check URLs, e-mail addresses and directory paths
  -d d[,d2,...] use d (d2 etc.) dictionaries
  -Dshow available dictionaries
  -Gprint only correct words or lines
  -h, --helpdisplay this help and exit
  -HHTML input file format
  -i encinput encoding
  -lprint mispelled words
  -Lprint lines with mispelled words
  -manalyze the words of the input text
  -nnroff/troff input file format
  -p dict   set dict custom dictionary
  -P password   set password for encrypted dictionaries
  -sstem the words of the input text
  -tTeX/LaTeX input file format
  -v, --version print version number
  -vv   print Ispell compatible version number
  -wprint mispelled words (= lines) from one word/line input.

Example: hunspell -d en_US file.txt# interactive spelling
 hunspell -l file.txt  # print misspelled words
 hunspell -i utf-8 file.txt# check UTF-8 encoded file

Bug reports: http://hunspell.sourceforge.net


Using hunspell as a spellchecker

2009-06-20 Thread Theblond
Hi!

I would like to use hunspell as the spellchecker.
I have installed it and a dictionary from sources
into /home/lyx/bin .

I've added an environment variable:
DICPATH=/home/lyx/share/myspell

I have uninstalled ispell and I have created a symlink (ispell) pointing
to hunspell. (ln -s hunspell ispell)

Unfortunately, it is not working. It says:
"The spellchecker has died for some reason. Maybe it has been killed."

Hunspell has a pipe interface with the -a option.

Versions:
 - LyX v1.6.3.
 - Hunspell v1.2.8 -
 - magyarispell dictionary: Magyar 1.4

How to work around?

Alex

Appendix:

l...@mobix:~$ hunspell
Hunspell 1.2.8 - Magyar 1.4
l...@mobix:~$ hunspell -h
Usage: hunspell [OPTION]... [FILE]...
Check spelling of each FILE. Without FILE, check standard input.

  -1check only first field in lines (delimiter = tabulator)
  -aIspell's pipe interface
  --check-url   Check URLs, e-mail addresses and directory paths
  -d d[,d2,...] use d (d2 etc.) dictionaries
  -Dshow available dictionaries
  -Gprint only correct words or lines
  -h, --helpdisplay this help and exit
  -HHTML input file format
  -i encinput encoding
  -lprint mispelled words
  -Lprint lines with mispelled words
  -manalyze the words of the input text
  -nnroff/troff input file format
  -p dict   set dict custom dictionary
  -P password   set password for encrypted dictionaries
  -sstem the words of the input text
  -tTeX/LaTeX input file format
  -v, --version print version number
  -vv   print Ispell compatible version number
  -wprint mispelled words (= lines) from one word/line input.

Example: hunspell -d en_US file.txt# interactive spelling
 hunspell -l file.txt  # print misspelled words
 hunspell -i utf-8 file.txt# check UTF-8 encoded file

Bug reports: http://hunspell.sourceforge.net