source: general/genlib/enchant.xml@ ac38e9dc

systemd-13485
Last change on this file since ac38e9dc was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.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 "http://www.abisource.com/downloads/enchant/&enchant-version;/enchant-&enchant-version;.tar.gz">
8 <!ENTITY enchant-download-ftp "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/enchant-&enchant-version;.tar.gz">
9 <!ENTITY enchant-md5sum "de11011aff801dc61042828041fb59c7">
10 <!ENTITY enchant-size "596 KB">
11 <!ENTITY enchant-buildsize "11 MB">
12 <!ENTITY enchant-time "0.1 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 &lfs77_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.sourceforge.net/">Hunspell</ulink>, and
71 <ulink url="http://voikko.sourceforge.net/">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</userinput></screen>
92
93 </sect2>
94
95 <sect2 role="commands">
96 <title>Command Explanations</title>
97
98 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
99 href="../../xincludes/static-libraries.xml"/>
100
101 </sect2>
102
103 <sect2 role="configuration">
104 <title>Configuring enchant</title>
105
106 <sect3 id="enchant-config">
107 <title>Config Files</title>
108 <para><filename>~/.enchant</filename> and
109 <filename>/usr/share/enchant/enchant.ordering</filename></para>
110
111 <indexterm zone="enchant enchant-config">
112 <primary sortas="e-AA.enchant">~/.enchant</primary>
113 </indexterm>
114
115 <indexterm zone="enchant enchant-config">
116 <primary
117 sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
118 </indexterm>
119 </sect3>
120
121 <sect3><title>Configuration Information</title>
122
123 <para>
124 If you want to use the <xref linkend="aspell"/> backend, create the
125 following symlink as the <systemitem class="username">root</systemitem>
126 user:
127 </para>
128
129<screen role="root"><userinput>ln -sfv ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
130
131 <para>
132 You can test your installation and configuration by creating a test
133 file and running the commands in the following (you can replace the
134 en_GB dictionary by any other that was downloaded when installing
135 <xref linkend="aspell"/>):
136 </para>
137
138<screen><userinput>cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF" &amp;&amp;
139<literal>Tel me more abot linux
140Ther ar so many commads</literal>
141EOF
142
143enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
144enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
145
146 <para>
147 You will see a list of the misspelled words followed by a list of
148 alternatives for them.
149 </para>
150
151 <para>
152 Check out the <command>enchant(1)</command> manual page
153 for more details.
154 </para>
155
156 </sect3>
157
158 </sect2>
159
160 <sect2 role="content">
161 <title>Contents</title>
162
163 <segmentedlist>
164 <segtitle>Installed Programs</segtitle>
165 <segtitle>Installed Libraries</segtitle>
166 <segtitle>Installed Directories</segtitle>
167
168 <seglistitem>
169 <seg>enchant and enchant-lsmod</seg>
170 <seg>libenchant.so</seg>
171 <seg>/usr/include/enchant, /usr/lib/enchant, and
172 /usr/share/enchant</seg>
173 </seglistitem>
174 </segmentedlist>
175
176 <variablelist>
177 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 <?dbfo list-presentation="list"?>
179 <?dbhtml list-presentation="table"?>
180
181 <varlistentry id="enchant-prog">
182 <term><command>enchant</command></term>
183 <listitem>
184 <para>is a spellchecker</para>
185 <indexterm zone="enchant enchant-prog">
186 <primary sortas="b-enchant">enchant</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="enchant-lsmod">
192 <term><command>enchant-lsmod</command></term>
193 <listitem>
194 <para>lists available backends, languages, and dictionaries.</para>
195 <indexterm zone="enchant enchant-lsmod">
196 <primary sortas="b-enchant-lsmod">enchant-lsmod</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="libenchant">
202 <term><filename class='libraryfile'>libenchant.so</filename></term>
203 <listitem>
204 <para>contains spell checking interface API functions.</para>
205 <indexterm zone="enchant libenchant">
206 <primary sortas="c-libenchant">libenchant.so</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 </variablelist>
212
213 </sect2>
214
215</sect1>
Note: See TracBrowser for help on using the repository browser.