The enchant package provide a generic interface into various existing spell checking libraries.
This package is known to build and work properly using an LFS-7.9 platform.
Download (HTTP): http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz
Download (FTP): ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/enchant-1.6.0.tar.gz
Download MD5 sum: de11011aff801dc61042828041fb59c7
Download size: 596 KB
Estimated disk space required: 11 MB
Estimated build time: 0.1 SBU
dbus-glib-0.106, Hspell, Hunspell, and Voikko
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/enchant
Install enchant by running the following commands:
./configure --prefix=/usr --disable-static && make
This package does not come with a test suite.
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.
If you wish to use the Aspell-0.60.6.1 backend, create a symlink,
as the root
user:
ln -svfn ../../lib/aspell /usr/share/enchant/aspell
You can test your installation and configuration by creating a test file and running the commands in the following (you can replace the en_GB dictionary by any other downloaded when installing Aspell-0.60.6.1):
cat > /tmp/test-enchant.txt << "EOF"
Tel me more abot linux
Ther ar so many commads
EOF
enchant -d en_GB -l /tmp/test-enchant.txt &&
enchant -d en_GB -a /tmp/test-enchant.txt
You will see a list of the misspelled words followed by a list of alternatives for them.
See more details in the enchant manual page.
Last updated on 2016-02-24 00:06:22 -0800