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