source: general/genlib/enchant.xml@ 01eef39

10.0 10.1 11.0 11.1 11.2 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 01eef39 was 01eef39, checked in by Pierre Labastie <pieere@…>, 5 years ago

Fix enchant url

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

  • Property mode set to 100644
File size: 6.6 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 "a3d768e06d8e88f7a3bec43eb53c70e1">
10 <!ENTITY enchant-size "940 KB">
11 <!ENTITY enchant-buildsize "6.8 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</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 wish to use the <xref linkend="aspell"/> backend, create a
125 symlink, as the <systemitem class="username">root</systemitem> user:
126 </para>
127
128<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
129
130 <para>
131 You can test your installation and configuration by creating a test
132 file and running the commands in the following (you can replace the
133 en_GB dictionary by any other downloaded when installing <xref
134 linkend="aspell"/>):
135 </para>
136
137<screen><userinput>cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
138<literal>Tel me more abot linux
139Ther ar so many commads</literal>
140EOF
141
142enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
143enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
144
145 <para>
146 You will see a list of the misspelled words followed by a list of
147 alternatives for them.
148 </para>
149
150 <para>
151 See more details in the enchant manual page.
152 </para>
153
154 </sect3>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Libraries</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>enchant and enchant-lsmod</seg>
168 <seg>libenchant.so and various backend libraries</seg>
169 <seg>/usr/{include,lib,share}/enchant</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="enchant-prog">
179 <term><command>enchant</command></term>
180 <listitem>
181 <para>is a spellchecker</para>
182 <indexterm zone="enchant enchant-prog">
183 <primary sortas="b-enchant">enchant</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="enchant-lsmod">
189 <term><command>enchant-lsmod</command></term>
190 <listitem>
191 <para>lists available backends, languages, and dictionaries.</para>
192 <indexterm zone="enchant enchant-lsmod">
193 <primary sortas="b-enchant-lsmod">enchant-lsmod</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="libenchant">
199 <term><filename class='libraryfile'>libenchant.so</filename></term>
200 <listitem>
201 <para>contains spell checking interface API functions.</para>
202 <indexterm zone="enchant libenchant">
203 <primary sortas="c-libenchant">libenchant.{so,a}</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 </variablelist>
209
210 </sect2>
211
212</sect1>
Note: See TracBrowser for help on using the repository browser.