The enchant package provides a generic interface into various existing spell checking libraries.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/AbiWord/enchant/releases/download/v2.5.0/enchant-2.5.0.tar.gz
Download MD5 sum: 3cbf29a5d7f31107adb4e584e0bdfebb
Download size: 967 KB
Estimated disk space required: 7.3 MB (add 64 MB for tests)
Estimated build time: 0.1 SBU (add 0.7 SBU for tests)
dbus-glib-0.112, Doxygen-1.9.7, Hspell, Hunspell, Nuspell, Voikko, and unittest-cpp (required for tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/enchant
Install enchant by running the following commands:
./configure --prefix=/usr \ --disable-static \ --docdir /usr/share/doc/enchant-2.5.0 && make
To run tests, unittest-cpp must be installed and the --enable-relocatable
option passed to configure
above. If these conditions are present, the tests may be run with
make check.
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.
You can test your installation and configuration by creating a test file and running the following commands (you can replace the en_GB dictionary by any other downloaded when installing Aspell-0.60.8):
cat > /tmp/test-enchant.txt << "EOF"
Tel me more abot linux
Ther ar so many commads
EOF
enchant-2 -d en_GB -l /tmp/test-enchant.txt &&
enchant-2 -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.