source: general/genlib/enchant.xml@ 49e2ba5

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 49e2ba5 was 9106fcb, checked in by Pierre Labastie <pierre.labastie@…>, 13 months ago

Update to enchant-2.5.0

  • Property mode set to 100644
File size: 7.6 KB
Line 
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 "3cbf29a5d7f31107adb4e584e0bdfebb">
10 <!ENTITY enchant-size "967 KB">
11 <!ENTITY enchant-buildsize "7.3 MB (add 64 MB for tests)">
12 <!ENTITY enchant-time "0.1 SBU (add 0.7 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 &lfs113_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 <para condition="html" role="usernotes">User Notes:
94 <ulink url="&blfs-wiki;/enchant"/></para>
95
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of enchant</title>
100
101 <para>
102 Install <application>enchant</application> by running the following
103 commands:
104 </para>
105
106<screen><userinput>./configure --prefix=/usr \
107 --disable-static \
108 --docdir /usr/share/doc/enchant-&enchant-version; &amp;&amp;
109make</userinput></screen>
110
111 <para>
112 To run tests, unittest-cpp must be installed and the
113 <option>--enable-relocatable</option> option passed to configure above.
114 If these conditions are present, the tests may be run with <command>make
115 check</command>.
116 </para>
117
118 <para>
119 Now, as the <systemitem class="username">root</systemitem> user:
120 </para>
121
122<screen role="root"><userinput>make install</userinput></screen>
123
124 </sect2>
125
126 <sect2 role="commands">
127 <title>Command Explanations</title>
128
129 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
130 href="../../xincludes/static-libraries.xml"/>
131
132 </sect2>
133
134 <sect2 role="configuration">
135 <title>Configuring enchant</title>
136
137 <sect3 id="enchant-config">
138 <title>Config Files</title>
139 <para>
140 <filename>~/.enchant</filename> and
141 <filename>/usr/share/enchant/enchant.ordering</filename>
142 </para>
143
144 <indexterm zone="enchant enchant-config">
145 <primary sortas="e-AA.enchant">~/.enchant</primary>
146 </indexterm>
147
148 <indexterm zone="enchant enchant-config">
149 <primary
150 sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
151 </indexterm>
152 </sect3>
153
154 <sect3><title>Configuration Information</title>
155<!--
156 Looks like this is not required when installing enchant in the flavor
157 we do above. Leaving it in source (for a while) in case I'm wrong and
158 it needs to be restored.
159 <para>
160 If you wish to use the <xref linkend="aspell"/> backend, create a
161 symlink, as the <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
165-->
166 <para>
167 You can test your installation and configuration by creating a test
168 file and running the following commands (you can replace the
169 en_GB dictionary by any other downloaded when installing <xref
170 linkend="aspell"/>):
171 </para>
172
173<screen remap="test"><userinput>cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
174<literal>Tel me more abot linux
175Ther ar so many commads</literal>
176EOF
177
178enchant-2 -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
179enchant-2 -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
180
181 <para>
182 You will see a list of the misspelled words followed by a list of
183 alternatives for them.
184 </para>
185
186 <para>
187 See more details in the enchant manual page.
188 </para>
189
190 </sect3>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>enchant-2 and enchant-lsmod-2</seg>
204 <seg>libenchant-2.so</seg>
205 <seg>/usr/include/enchant-2, /usr/lib/enchant-2,
206 /usr/share/enchant, and /usr/share/doc/enchant-&enchant-version;</seg>
207 </seglistitem>
208 </segmentedlist>
209
210 <variablelist>
211 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
212 <?dbfo list-presentation="list"?>
213 <?dbhtml list-presentation="table"?>
214
215 <varlistentry id="enchant-2">
216 <term><command>enchant-2</command></term>
217 <listitem>
218 <para>
219 is a spellchecker
220 </para>
221 <indexterm zone="enchant enchant-2">
222 <primary sortas="b-enchant-2">enchant-2</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="enchant-lsmod-2">
228 <term><command>enchant-lsmod-2</command></term>
229 <listitem>
230 <para>
231 lists available backends, languages, and dictionaries
232 </para>
233 <indexterm zone="enchant enchant-lsmod-2">
234 <primary sortas="b-enchant-lsmod-2">enchant-lsmod-2</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="libenchant-2">
240 <term><filename class="libraryfile">libenchant-2.so</filename></term>
241 <listitem>
242 <para>
243 contains spell checking interface API functions
244 </para>
245 <indexterm zone="enchant libenchant-2">
246 <primary sortas="c-libenchant-2">libenchant-2.so</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 </variablelist>
252
253 </sect2>
254
255</sect1>
Note: See TracBrowser for help on using the repository browser.