source: general/genlib/enchant.xml@ 8fbd29c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 8fbd29c was 6323e0b4, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Fix enchant so pther packages can find the libraries

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

  • Property mode set to 100644
File size: 7.1 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 "e149d08a6c6732dc1b01940302a7bc39">
10 <!ENTITY enchant-size "936 KB">
11 <!ENTITY enchant-buildsize "7.2 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 &lfs81_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 <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
70 <ulink url="http://hunspell.github.io/">Hunspell</ulink>, and
71 <ulink url="http://hunspell.github.io/">Voikko</ulink></para>
72
73 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/enchant"/></para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of enchant</title>
80
81 <para>Install <application>enchant</application> by running the following
82 commands:</para>
83
84<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
85make</userinput></screen>
86
87 <para>This package does not come with a test suite.</para>
88
89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
90
91<screen role="root"><userinput>make install &amp;&amp;
92rm -rf /usr/include/enchant &amp;&amp;
93ln -sfv enchant-2 /usr/include/enchant &amp;&amp;
94ln -sfv libenchant-2.so /usr/lib/libenchant.so &amp;&amp;
95ln -sfv enchant-2.pc /usr/lib/pkgconfig/enchant.pc</userinput></screen>
96
97 </sect2>
98
99 <sect2 role="commands">
100 <title>Command Explanations</title>
101
102 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
103 href="../../xincludes/static-libraries.xml"/>
104
105 <para>
106 <command>rm -rf /usr/include/enchant</command>;
107 <command>ln -sfn ...</command>: Create symlinks for this packge
108 version so that other other packages can find it using the old name.
109 </para>
110
111 </sect2>
112
113 <sect2 role="configuration">
114 <title>Configuring enchant</title>
115
116 <sect3 id="enchant-config">
117 <title>Config Files</title>
118 <para><filename>~/.enchant</filename> and
119 <filename>/usr/share/enchant/enchant.ordering</filename></para>
120
121 <indexterm zone="enchant enchant-config">
122 <primary sortas="e-AA.enchant">~/.enchant</primary>
123 </indexterm>
124
125 <indexterm zone="enchant enchant-config">
126 <primary
127 sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
128 </indexterm>
129 </sect3>
130
131 <sect3><title>Configuration Information</title>
132
133 <para>
134 If you wish to use the <xref linkend="aspell"/> backend, create a
135 symlink, as the <systemitem class="username">root</systemitem> user:
136 </para>
137
138<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
139
140 <para>
141 You can test your installation and configuration by creating a test
142 file and running the commands in the following (you can replace the
143 en_GB dictionary by any other downloaded when installing <xref
144 linkend="aspell"/>):
145 </para>
146
147<screen><userinput>cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
148<literal>Tel me more abot linux
149Ther ar so many commads</literal>
150EOF
151
152enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
153enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
154
155 <para>
156 You will see a list of the misspelled words followed by a list of
157 alternatives for them.
158 </para>
159
160 <para>
161 See more details in the enchant manual page.
162 </para>
163
164 </sect3>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175
176 <seglistitem>
177 <seg>enchant and enchant-lsmod</seg>
178 <seg>libenchant.so and various backend libraries</seg>
179 <seg>/usr/{include,lib,share}/enchant</seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="enchant-prog">
189 <term><command>enchant</command></term>
190 <listitem>
191 <para>is a spellchecker</para>
192 <indexterm zone="enchant enchant-prog">
193 <primary sortas="b-enchant">enchant</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="enchant-lsmod">
199 <term><command>enchant-lsmod</command></term>
200 <listitem>
201 <para>lists available backends, languages, and dictionaries.</para>
202 <indexterm zone="enchant enchant-lsmod">
203 <primary sortas="b-enchant-lsmod">enchant-lsmod</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="libenchant">
209 <term><filename class='libraryfile'>libenchant.so</filename></term>
210 <listitem>
211 <para>contains spell checking interface API functions.</para>
212 <indexterm zone="enchant libenchant">
213 <primary sortas="c-libenchant">libenchant.{so,a}</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 </variablelist>
219
220 </sect2>
221
222</sect1>
Note: See TracBrowser for help on using the repository browser.