source: general/genlib/enchant.xml@ d56e7df

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 d56e7df was d56e7df, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format general libraries

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22828 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"><xref linkend="glib2"/></para>
77
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended"><xref linkend="aspell"/></para>
80
81 <bridgehead renderas="sect4">Optional</bridgehead>
82 <para role="optional"><xref linkend="dbus-glib"/>,
83 <xref linkend="doxygen"/>,
84 <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
85 <ulink url="http://hunspell.github.io/">Hunspell</ulink>,
86 <ulink url="https://nuspell.github.io/">Nuspell</ulink>,
87 <ulink url="http://hunspell.github.io/">Voikko</ulink>, and
88 <ulink url="https://github.com/unittest-cpp/unittest-cpp/releases">unittest-cpp</ulink> (required for tests)</para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/enchant"/></para>
92
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of enchant</title>
97
98 <para>
99 Install <application>enchant</application> by running the following
100 commands:
101 </para>
102
103<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
104make</userinput></screen>
105
106 <para>
107 To run tests, unittest-cpp must be installed and the
108 <option>--enable-relocatable</option> option passed to configure above.
109 If these conditions are present, the tests may be run with <command>make
110 check</command>.
111 </para>
112
113 <para>
114 Now, as the <systemitem class="username">root</systemitem> user:
115 </para>
116
117<screen role="root"><userinput>make install &amp;&amp;
118rm -rf /usr/include/enchant &amp;&amp;
119ln -sfv enchant-2 /usr/include/enchant &amp;&amp;
120ln -sfv enchant-2 /usr/bin/enchant &amp;&amp;
121ln -sfv libenchant-2.so /usr/lib/libenchant.so &amp;&amp;
122ln -sfv enchant-2.pc /usr/lib/pkgconfig/enchant.pc</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 <para>
133 <command>rm -rf /usr/include/enchant</command>;
134 <command>ln -sfn ...</command>: Create symlinks for this package
135 version so that other other packages can find it using the old name.
136 </para>
137
138 </sect2>
139
140 <sect2 role="configuration">
141 <title>Configuring enchant</title>
142
143 <sect3 id="enchant-config">
144 <title>Config Files</title>
145 <para>
146 <filename>~/.enchant</filename> and
147 <filename>/usr/share/enchant/enchant.ordering</filename>
148 </para>
149
150 <indexterm zone="enchant enchant-config">
151 <primary sortas="e-AA.enchant">~/.enchant</primary>
152 </indexterm>
153
154 <indexterm zone="enchant enchant-config">
155 <primary
156 sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
157 </indexterm>
158 </sect3>
159
160 <sect3><title>Configuration Information</title>
161<!--
162 Looks like this is not required when installing enchant in the flavor
163 we do above. Leaving it in source (for a while) in case I'm wrong and
164 it needs to be restored.
165 <para>
166 If you wish to use the <xref linkend="aspell"/> backend, create a
167 symlink, as the <systemitem class="username">root</systemitem> user:
168 </para>
169
170<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
171-->
172 <para>
173 You can test your installation and configuration by creating a test
174 file and running the following commands (you can replace the
175 en_GB dictionary by any other downloaded when installing <xref
176 linkend="aspell"/>):
177 </para>
178
179<screen remap="test"><userinput>cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
180<literal>Tel me more abot linux
181Ther ar so many commads</literal>
182EOF
183
184enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
185enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
186
187 <para>
188 You will see a list of the misspelled words followed by a list of
189 alternatives for them.
190 </para>
191
192 <para>
193 See more details in the enchant manual page.
194 </para>
195
196 </sect3>
197
198 </sect2>
199
200 <sect2 role="content">
201 <title>Contents</title>
202
203 <segmentedlist>
204 <segtitle>Installed Programs</segtitle>
205 <segtitle>Installed Libraries</segtitle>
206 <segtitle>Installed Directories</segtitle>
207
208 <seglistitem>
209 <seg>enchant and enchant-lsmod-2</seg>
210 <seg>libenchant.so and various backend libraries</seg>
211 <seg>/usr/{include,lib,share}/enchant-2</seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="enchant-prog">
221 <term><command>enchant</command></term>
222 <listitem>
223 <para>
224 is a spellchecker
225 </para>
226 <indexterm zone="enchant enchant-prog">
227 <primary sortas="b-enchant">enchant</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="enchant-lsmod-2">
233 <term><command>enchant-lsmod-2</command></term>
234 <listitem>
235 <para>
236 lists available backends, languages, and dictionaries.
237 </para>
238 <indexterm zone="enchant enchant-lsmod-2">
239 <primary sortas="b-enchant-lsmod-2">enchant-lsmod-2</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="libenchant">
245 <term><filename class='libraryfile'>libenchant.so</filename></term>
246 <listitem>
247 <para>
248 contains spell checking interface API functions.
249 </para>
250 <indexterm zone="enchant libenchant">
251 <primary sortas="c-libenchant">libenchant.{so,a}</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 </variablelist>
257
258 </sect2>
259
260</sect1>
Note: See TracBrowser for help on using the repository browser.