1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY enchant-download-http "https://github.com/AbiWord/enchant/releases/download/v&enchant-version;/enchant-&enchant-version;.tar.gz">
|
---|
8 | <!ENTITY enchant-download-ftp " ">
|
---|
9 | <!ENTITY enchant-md5sum "92dcfe06febc92a3d4bbff4e08b08d3d">
|
---|
10 | <!ENTITY enchant-size "1.3 MB">
|
---|
11 | <!ENTITY enchant-buildsize "9.4 MB (add 77 MB for tests)">
|
---|
12 | <!ENTITY enchant-time "0.1 SBU (add 0.9 SBU for tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="enchant" xreflabel="enchant-&enchant-version;">
|
---|
16 | <?dbhtml filename="enchant.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>enchant-&enchant-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="enchant">
|
---|
22 | <primary sortas="a-enchant">enchant</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to enchant</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>enchant</application> package provides a generic
|
---|
30 | interface into various existing spell checking libraries.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | &lfs122_checked;
|
---|
34 |
|
---|
35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing="compact">
|
---|
37 | <listitem>
|
---|
38 | <para>
|
---|
39 | Download (HTTP): <ulink url="&enchant-download-http;"/>
|
---|
40 | </para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (FTP): <ulink url="&enchant-download-ftp;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download MD5 sum: &enchant-md5sum;
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download size: &enchant-size;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Estimated disk space required: &enchant-buildsize;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated build time: &enchant-time;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">enchant Dependencies</bridgehead>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
72 | <para role="required">
|
---|
73 | <xref linkend="glib2"/>
|
---|
74 | </para>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
77 | <para role="recommended">
|
---|
78 | <xref linkend="aspell"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <xref linkend="dbus-glib"/>,
|
---|
84 | <xref linkend="doxygen"/>,
|
---|
85 | <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
|
---|
86 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
87 | <ulink url="https://nuspell.github.io/">Nuspell</ulink>,
|
---|
88 | <ulink url="https://hunspell.github.io/">Voikko</ulink>, and
|
---|
89 | <ulink url="https://github.com/unittest-cpp/unittest-cpp/releases">
|
---|
90 | unittest-cpp</ulink> (required for tests)
|
---|
91 | </para>
|
---|
92 |
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2 role="installation">
|
---|
97 | <title>Installation of enchant</title>
|
---|
98 |
|
---|
99 | <para>
|
---|
100 | Install <application>enchant</application> by running the following
|
---|
101 | commands:
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | <screen><userinput>./configure --prefix=/usr \
|
---|
105 | --disable-static \
|
---|
106 | --docdir=/usr/share/doc/enchant-&enchant-version; &&
|
---|
107 | make</userinput></screen>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | To run tests, unittest-cpp must be installed and the
|
---|
111 | <option>--enable-relocatable</option> option passed to configure above.
|
---|
112 | If these conditions are present, the tests may be run with <command>make
|
---|
113 | check</command>.
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="commands">
|
---|
125 | <title>Command Explanations</title>
|
---|
126 |
|
---|
127 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
128 | href="../../xincludes/static-libraries.xml"/>
|
---|
129 |
|
---|
130 | </sect2>
|
---|
131 |
|
---|
132 | <sect2 role="configuration">
|
---|
133 | <title>Configuring enchant</title>
|
---|
134 |
|
---|
135 | <sect3 id="enchant-config">
|
---|
136 | <title>Config Files</title>
|
---|
137 | <para>
|
---|
138 | <filename>~/.enchant</filename> and
|
---|
139 | <filename>/usr/share/enchant/enchant.ordering</filename>
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <indexterm zone="enchant enchant-config">
|
---|
143 | <primary sortas="e-AA.enchant">~/.enchant</primary>
|
---|
144 | </indexterm>
|
---|
145 |
|
---|
146 | <indexterm zone="enchant enchant-config">
|
---|
147 | <primary
|
---|
148 | sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
|
---|
149 | </indexterm>
|
---|
150 | </sect3>
|
---|
151 |
|
---|
152 | <sect3><title>Configuration Information</title>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | You can test your installation and configuration by creating a test
|
---|
156 | file and running the following commands (you can replace the
|
---|
157 | en_GB dictionary by any other downloaded when installing <xref
|
---|
158 | linkend="aspell"/>):
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <screen remap="test"><userinput>cat > /tmp/test-enchant.txt << "EOF"
|
---|
162 | <literal>Tel me more abot linux
|
---|
163 | Ther ar so many commads</literal>
|
---|
164 | EOF
|
---|
165 |
|
---|
166 | enchant-2 -d en_GB -l /tmp/test-enchant.txt &&
|
---|
167 | enchant-2 -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
|
---|
168 |
|
---|
169 | <para>
|
---|
170 | You will see a list of the misspelled words followed by a list of
|
---|
171 | alternatives for them.
|
---|
172 | </para>
|
---|
173 |
|
---|
174 | <para>
|
---|
175 | See more details in the enchant manual page.
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | </sect3>
|
---|
179 |
|
---|
180 | </sect2>
|
---|
181 |
|
---|
182 | <sect2 role="content">
|
---|
183 | <title>Contents</title>
|
---|
184 |
|
---|
185 | <segmentedlist>
|
---|
186 | <segtitle>Installed Programs</segtitle>
|
---|
187 | <segtitle>Installed Libraries</segtitle>
|
---|
188 | <segtitle>Installed Directories</segtitle>
|
---|
189 |
|
---|
190 | <seglistitem>
|
---|
191 | <seg>enchant-2 and enchant-lsmod-2</seg>
|
---|
192 | <seg>libenchant-2.so</seg>
|
---|
193 | <seg>/usr/include/enchant-2, /usr/lib/enchant-2,
|
---|
194 | /usr/share/enchant, and /usr/share/doc/enchant-&enchant-version;</seg>
|
---|
195 | </seglistitem>
|
---|
196 | </segmentedlist>
|
---|
197 |
|
---|
198 | <variablelist>
|
---|
199 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
200 | <?dbfo list-presentation="list"?>
|
---|
201 | <?dbhtml list-presentation="table"?>
|
---|
202 |
|
---|
203 | <varlistentry id="enchant-2">
|
---|
204 | <term><command>enchant-2</command></term>
|
---|
205 | <listitem>
|
---|
206 | <para>
|
---|
207 | is a spellchecker
|
---|
208 | </para>
|
---|
209 | <indexterm zone="enchant enchant-2">
|
---|
210 | <primary sortas="b-enchant-2">enchant-2</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | <varlistentry id="enchant-lsmod-2">
|
---|
216 | <term><command>enchant-lsmod-2</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>
|
---|
219 | lists available backends, languages, and dictionaries
|
---|
220 | </para>
|
---|
221 | <indexterm zone="enchant enchant-lsmod-2">
|
---|
222 | <primary sortas="b-enchant-lsmod-2">enchant-lsmod-2</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="libenchant-2">
|
---|
228 | <term><filename class="libraryfile">libenchant-2.so</filename></term>
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | contains spell checking interface API functions
|
---|
232 | </para>
|
---|
233 | <indexterm zone="enchant libenchant-2">
|
---|
234 | <primary sortas="c-libenchant-2">libenchant-2.so</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | </variablelist>
|
---|
240 |
|
---|
241 | </sect2>
|
---|
242 |
|
---|
243 | </sect1>
|
---|