man-pages/man1/enchant-2.1.html
2021-03-31 01:06:50 +01:00

131 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ENCHANT-2</TITLE>
</HEAD><BODY>
<H1>ENCHANT-2</H1>
Section: User Commands (1)<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Enchant - a spellchecker
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>enchant-2</B>
<B>-a</B>|<B>-l</B>|<B>-h</B>|<B>-v</B> [<B>-L</B>] [<B>-d</B> <I>DICTIONARY</I>] [<I>FILE</I>]
<BR>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>Enchant</B>
is an ispell-compatible spellchecker.
<DL COMPACT>
<DT id="1"><B>-d </B><I>DICTIONARY</I><DD>
use the given dictionary
<DT id="2"><B>-a</B>
<DD>
list suggestions in ispell pipe mode format
<DT id="3"><B>-l</B>
<DD>
list only the misspellings
<DT id="4"><B>-L</B>
<DD>
display line numbers
<DT id="5"><B>-h</B>
<DD>
display help and exit
<DT id="6"><B>-v</B>
<DD>
display version information and exit
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>ENCHANT ORDERING FILE</H2>
Enchant uses global and per-user ordering files named <I>enchant.ordering</I>
to decide which spelling provider to use for particular languages.
The per-user file takes precedence.
<P>
The ordering file takes the form language_tag:&lt;comma-separated list of spelling
providers&gt;. To see what providers are available, run <I>enchant-lsmod-2</I>. '*' is
used to mean &quot;use this ordering for all languages, unless instructed otherwise.&quot; For example:
<P>
*:aspell,hunspell,nuspell
<BR>
en:aspell,hunspell,nuspell
<BR>
en_GB:hunspell,nuspell,aspell
<BR>
fr:hunspell,nuspell,aspell
<A NAME="lbAF">&nbsp;</A>
<H2>FILES AND DIRECTORIES</H2>
Enchant looks in the following places for files, in decreasing order of precedence:
<DL COMPACT>
<DT id="7"><I>ENCHANT_CONFIG_DIR</I><DD>
(If the environment variable is set.)
<DT id="8"><I>XDG_CONFIG_HOME/enchant</I> (non-Windows systems)<DD>
Default: <I>~/.config/enchant</I>
<DT id="9"><I>CSIDL_LOCAL_APPDATA\enchant</I> (Windows systems)<DD>
Default: <I>C:\Documents and Settings\</I>username<I>\Local Settings\Application Data\enchant
<DT id="10">${prefix}/share/enchant</I><DD>
(Or the equivalent location relative to the enchant library for a relocatable build.)
</DL>
<P>
Dictionaries are looked for in a subdirectory with the same name as the
provider; for example, <I>${prefix}/share/enchant/hunspell</I> and
<I>~/.config/enchant/hunspell</I>.
<P>
Some providers may also look in a standard system directory for their
dictionaries; the hunspell provider can be configured to do so at build
time.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+aspell">aspell</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+enchant-lsmod-2">enchant-lsmod-2</A></B>(1)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Written by Dom Lachowicz and Reuben Thomas.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">ENCHANT ORDERING FILE</A><DD>
<DT id="15"><A HREF="#lbAF">FILES AND DIRECTORIES</A><DD>
<DT id="16"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="17"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:11 GMT, March 31, 2021
</BODY>
</HTML>