enchant-2.2.15

Introduction to enchant

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-10.1 platform.

Package Information

enchant Dependencies

Required

GLib-2.68.2

Recommended

Optional

dbus-glib-0.112, Doxygen-1.9.1, Hspell, Hunspell, Nuspell, Voikko, and unittest-cpp (required for tests)

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/enchant

Installation of enchant

Install enchant by running the following commands:

./configure --prefix=/usr --disable-static &&
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

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Configuring enchant

Config Files

~/.enchant and /usr/share/enchant/enchant.ordering

Configuration Information

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.

Contents

Installed Programs: enchant (symbolic link to enchant-2) and enchant-lsmod-2
Installed Libraries: libenchant-2.so and libenchant.so (symbolic link to libenchant-2.so)
Installed Directories: /usr/include/enchant{,-2}, /usr/lib/enchant-2, and /usr/share/enchant

Short Descriptions

enchant

is a spellchecker

enchant-lsmod-2

lists available backends, languages, and dictionaries

libenchant.so

contains spell checking interface API functions

Last updated on Sat May 1 16:15:08 2021 +