The enchant package provides a generic interface into various existing spell checking libraries.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/rrthomas/enchant/releases/download/v2.8.13/enchant-2.8.13.tar.gz
Download SHA256 Sum: 15d78f09119bb256d7fbaf03e4e4910bcb0d5333b9105cc398475e88668e8cb3
Download MD5 sum: 89e7dd455728fc8d2a531a4cb25d0c31
Download size: 5,275.8 KB
Estimated disk space required: 8,174.8 KB
Estimated build time: less than 0.5 SBU
Aspell-0.60.8.1, GLib-2.86.2, and Vala-0.56.18
"dbus-glib", "doxygen", Hspell, Hunspell, Nuspell, Voikko, and unittest-cpp (required for tests)
Prepare enchant by running the following commands:
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--docdir=/usr/share/doc/enchant-2.8.13make
![[Note]](../images/note.png)
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 Install the package, 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"):
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.txtYou will see a list of the misspelled words followed by a list of alternatives for them.
See more details in the enchant manual page.