Go to file
luoyaoming 9f0634c6e6 delete debian/gbp.conf 2024-04-24 14:45:49 +08:00
build-aux Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
debian delete debian/gbp.conf 2024-04-24 14:45:49 +08:00
lib Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
m4 Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
providers Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
src Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
tests Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
AUTHORS Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
COPYING.LIB Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
ChangeLog Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
HACKING Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
INSTALL Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
Makefile.am Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
Makefile.in Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
NEWS Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
README Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
aclocal.m4 Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
compile Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
config.guess Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
config.h.in Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
config.sub Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
configure Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
configure.ac Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
depcomp Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
enchant.pc.in Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
install-sh Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
ltmain.sh Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00
missing Import Upstream version 2.2.8 2022-05-13 20:18:13 +08:00

README

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

libenchant -- Generic spell checking library
Original author: Dom Lachowicz

libenchant is licensed under the terms of the GNU LGPL (see the file
COPYING.LIB), with a special exception allowing the use of proprietary
spell-checking systems.

Enchant aims to provide a simple but comprehensive abstraction for dealing
with different spell checking libraries in a consistent way. A client, such
as a text editor or word processor, need not know anything about a specific
spell-checker, and since all back-ends are plugins, new spell-checkers can
be added without needing any change to the program using Enchant.

Enchant can be configured by the user, who can even add spell-checker
plugins if desired.

Enchant currently works with the following spell-checkers:

    * Hunspell (formerly Myspell)
    * Nuspell
    * GNU Aspell
    * Hspell
    * Voikko
    * Apple Spell (macOS only)
    * Zemberek

Enchant is written in C and C++, and its only external dependency is glib.

Enchant bindings are supplied for C and C++; there are third-party bindings
for:

Python: https://github.com/rfk/pyenchant/
Ruby: https://github.com/pennyapp/ruby-enchant
Go: https://github.com/hermanschaaf/enchant
Common Lisp: https://github.com/tlikonen/cl-enchant


Sharing personal word lists between spell-checkers
--------------------------------------------------

It is possible, and usually safe, to share Enchants personal word lists
with other spelling checkers that use the same format (a simple plain text
file with one word per line). The spell-checkers known to be compatible are
Hunspell, Nuspell and Ispell. (Although Enchant does not support Ispell as a
back-end, its still fine to share word lists with it.) Other spell-checkers
supported by Enchant are either incompatible, or have no personal word list
mechanism. There may well be yet other spell-checkers, unknown to Enchant,
that use the same format.

Some applications use Hunspell or Nuspell, but store the personal word list
under another name or in another location. Firefox is one example. Firefox
also seems to reorder its word list when updating it; again, this is OK, as
the result is still in the same format. Anonther example is Thunderbird.

To share word lists with Enchant, find the other spelling checkers word
list file, e.g. ~/.hunspell_fr_FR or ~/.config/nuspell/fr_FR, and merge it
with the corresponding Enchant file, in this case ~/.config/enchant/fr_FR.dic
(on a GNU or BSD system). Use the following command, replacing ENCHANT-DICT
and OTHER-DICT with the corresponding dictionary file names:

cat ENCHANT-DICT OTHER-DICT | sort -u > merged.txt

Take a look at merged.txt to check the merge has worked, then

mv merged.txt ENCHANT-DICT
rm OTHER-DICT
ln -s OTHER-DICT ENCHANT-DICT

to replace the other dictionary file with a link to the Enchant dictionary,
again filling in the name of the dictionary files.


Bug reports and development
---------------------------

To report libenchant bugs or request features, please visit
https://github.com/AbiWord/enchant

If you can't use GitHub, you can use the (low-traffic) AbiWord-devel list.
To subscribe send a mail to:

	abiword-dev-request@abisource.com

and in the body of the message write "subscribe"

An archive of the mailing lists is available at:

	http://www.abisource.com/mailinglists/abiword-dev/


Enchant has taken insight from GNU Aspell: http://aspell.net