mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
ea0c1c2b12
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16842 af4574ff-66df-0310-9fd7-8a98e5e911e0
213 lines
6.7 KiB
XML
213 lines
6.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY enchant-download-http "http://www.abisource.com/downloads/enchant/&enchant-version;/enchant-&enchant-version;.tar.gz">
|
|
<!ENTITY enchant-download-ftp "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/enchant-&enchant-version;.tar.gz">
|
|
<!ENTITY enchant-md5sum "de11011aff801dc61042828041fb59c7">
|
|
<!ENTITY enchant-size "596 KB">
|
|
<!ENTITY enchant-buildsize "11 MB">
|
|
<!ENTITY enchant-time "0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="enchant" xreflabel="enchant-&enchant-version;">
|
|
<?dbhtml filename="enchant.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>enchant-&enchant-version;</title>
|
|
|
|
<indexterm zone="enchant">
|
|
<primary sortas="a-enchant">enchant</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to enchant</title>
|
|
|
|
<para>The <application>enchant</application> package provide a generic
|
|
interface into various existing spell checking libraries.</para>
|
|
|
|
&lfs78_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&enchant-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&enchant-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &enchant-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &enchant-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &enchant-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &enchant-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">enchant Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="glib2"/></para>
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended"><xref linkend="aspell"/></para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional"><xref linkend="dbus-glib"/>,
|
|
<ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
|
|
<ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>, and
|
|
<ulink url="http://voikko.sourceforge.net/">Voikko</ulink></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/enchant"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of enchant</title>
|
|
|
|
<para>Install <application>enchant</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring enchant</title>
|
|
|
|
<sect3 id="enchant-config">
|
|
<title>Config Files</title>
|
|
<para><filename>~/.enchant</filename> and
|
|
<filename>/usr/share/enchant/enchant.ordering</filename></para>
|
|
|
|
<indexterm zone="enchant enchant-config">
|
|
<primary sortas="e-AA.enchant">~/.enchant</primary>
|
|
</indexterm>
|
|
|
|
<indexterm zone="enchant enchant-config">
|
|
<primary
|
|
sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
|
|
</indexterm>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>
|
|
If you wish to use the <xref linkend="aspell"/> backend, create a
|
|
symlink, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
|
|
|
|
<para>
|
|
You can test your installation and configuration by creating a test
|
|
file and running the commands in the following (you can replace the
|
|
en_GB dictionary by any other downloaded when installing <xref
|
|
linkend="aspell"/>):
|
|
</para>
|
|
|
|
<screen><userinput>cat > /tmp/test-enchant.txt << "EOF"
|
|
<literal>Tel me more abot linux
|
|
Ther ar so many commads</literal>
|
|
EOF
|
|
|
|
enchant -d en_GB -l /tmp/test-enchant.txt &&
|
|
enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
|
|
|
|
<para>
|
|
You will see a list of the misspelled words followed by a list of
|
|
alternatives for them.
|
|
</para>
|
|
|
|
<para>
|
|
See more details in the enchant manual page.
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>enchant and enchant-lsmod</seg>
|
|
<seg>libenchant.so and various backend libraries</seg>
|
|
<seg>/usr/{include,lib,share}/enchant</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="enchant-prog">
|
|
<term><command>enchant</command></term>
|
|
<listitem>
|
|
<para>is a spellchecker</para>
|
|
<indexterm zone="enchant enchant-prog">
|
|
<primary sortas="b-enchant">enchant</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="enchant-lsmod">
|
|
<term><command>enchant-lsmod</command></term>
|
|
<listitem>
|
|
<para>lists available backends, languages, and dictionaries.</para>
|
|
<indexterm zone="enchant enchant-lsmod">
|
|
<primary sortas="b-enchant-lsmod">enchant-lsmod</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libenchant">
|
|
<term><filename class='libraryfile'>libenchant.so</filename></term>
|
|
<listitem>
|
|
<para>contains spell checking interface API functions.</para>
|
|
<indexterm zone="enchant libenchant">
|
|
<primary sortas="c-libenchant">libenchant.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|