source: general/genlib/enchant.xml@ a6852d6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 gimp3 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 a6852d6 was a6852d6, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to lxsession-0.5.5
Update to totem-pl-parser-3.26.5
Update to enchant-2.2.8
Update to geoclue-2.5.6
Update to libnotify-0.7.9
Update to libsoup-2.68.4
Update to libgusb-0.3.4

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

  • Property mode set to 100644
File size: 7.7 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>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 &amp;&amp;
88make</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 &amp;&amp;
98rm -rf /usr/include/enchant &amp;&amp;
99ln -sfv enchant-2 /usr/include/enchant &amp;&amp;
100ln -sfv enchant-2 /usr/bin/enchant &amp;&amp;
101ln -sfv libenchant-2.so /usr/lib/libenchant.so &amp;&amp;
102ln -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 &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
158<literal>Tel me more abot linux
159Ther ar so many commads</literal>
160EOF
161
162enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
163enchant -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>
Note: See TracBrowser for help on using the repository browser.