source: general/genlib/enchant.xml@ 47274444

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 47274444 was 47274444, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format postlfs/security and misc/forgotten

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22884 af4574ff-66df-0310-9fd7-8a98e5e911e0

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