2010-01-07 11:58:49 +08:00
|
|
|
<?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;
|
|
|
|
|
2017-09-26 18:14:09 +08:00
|
|
|
<!ENTITY enchant-download-http "https://github.com/AbiWord/enchant/releases/download/v&enchant-version;/enchant-&enchant-version;.tar.gz">
|
|
|
|
<!ENTITY enchant-download-ftp " ">
|
2019-09-14 05:11:39 +08:00
|
|
|
<!ENTITY enchant-md5sum "8a6ea1bb143c64e0edf5e49c7e7cb984">
|
2019-06-21 02:52:26 +08:00
|
|
|
<!ENTITY enchant-size "932 KB">
|
2019-09-10 07:22:16 +08:00
|
|
|
<!ENTITY enchant-buildsize "6.8 MB">
|
2017-12-01 05:24:25 +08:00
|
|
|
<!ENTITY enchant-time "0.2 SBU">
|
2010-01-07 11:58:49 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<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
|
2014-02-09 19:02:20 +08:00
|
|
|
interface into various existing spell checking libraries.</para>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
2019-08-22 03:33:09 +08:00
|
|
|
&lfs90_checked;
|
2012-05-10 19:31:30 +08:00
|
|
|
|
2010-01-07 11:58:49 +08:00
|
|
|
<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>
|
2012-06-06 07:38:53 +08:00
|
|
|
<para role="required"><xref linkend="glib2"/></para>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended"><xref linkend="aspell"/></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional"><xref linkend="dbus-glib"/>,
|
2010-10-24 09:44:50 +08:00
|
|
|
<ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
|
2018-01-04 23:49:34 +08:00
|
|
|
<ulink url="http://hunspell.github.io/">Hunspell</ulink>,
|
|
|
|
<ulink url="http://hunspell.github.io/">Voikko</ulink>, and
|
|
|
|
<ulink url="https://github.com/unittest-cpp/unittest-cpp/releases">unittest-cpp</ulink> (required for tests)</para>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2015-03-30 00:40:08 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --disable-static &&
|
2010-01-07 11:58:49 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2018-01-04 23:49:34 +08:00
|
|
|
<para>To run tests, unittest-cpp must be installed and the
|
|
|
|
--enable-relocatable option passed to configure above. If these
|
|
|
|
conditions are present, the tests may be run with <command>make
|
|
|
|
check</command>.</para>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2017-12-22 08:43:45 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
rm -rf /usr/include/enchant &&
|
|
|
|
ln -sfv enchant-2 /usr/include/enchant &&
|
2018-02-13 09:24:53 +08:00
|
|
|
ln -sfv enchant-2 /usr/bin/enchant &&
|
2017-12-22 08:43:45 +08:00
|
|
|
ln -sfv libenchant-2.so /usr/lib/libenchant.so &&
|
|
|
|
ln -sfv enchant-2.pc /usr/lib/pkgconfig/enchant.pc</userinput></screen>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2015-03-30 00:40:08 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
2017-12-22 08:43:45 +08:00
|
|
|
<para>
|
|
|
|
<command>rm -rf /usr/include/enchant</command>;
|
2018-03-21 12:14:42 +08:00
|
|
|
<command>ln -sfn ...</command>: Create symlinks for this package
|
2017-12-22 08:43:45 +08:00
|
|
|
version so that other other packages can find it using the old name.
|
|
|
|
</para>
|
|
|
|
|
2015-03-30 00:40:08 +08:00
|
|
|
</sect2>
|
|
|
|
|
2010-01-07 11:58:49 +08:00
|
|
|
<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>
|
2018-02-13 09:24:53 +08:00
|
|
|
<!--
|
|
|
|
Looks like this is not required when installing enchant in the flavor
|
|
|
|
we do above. Leaving it in source (for a while) in case I'm wrong and
|
|
|
|
it needs to be restored.
|
2015-03-30 00:40:08 +08:00
|
|
|
<para>
|
2016-01-25 13:09:20 +08:00
|
|
|
If you wish to use the <xref linkend="aspell"/> backend, create a
|
2015-03-30 00:40:08 +08:00
|
|
|
symlink, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
|
2018-02-13 09:24:53 +08:00
|
|
|
-->
|
2015-03-30 00:40:08 +08:00
|
|
|
<para>
|
|
|
|
You can test your installation and configuration by creating a test
|
2015-03-30 19:25:31 +08:00
|
|
|
file and running the commands in the following (you can replace the
|
|
|
|
en_GB dictionary by any other downloaded when installing <xref
|
|
|
|
linkend="aspell"/>):
|
2015-03-30 00:40:08 +08:00
|
|
|
</para>
|
|
|
|
|
2019-08-12 18:23:47 +08:00
|
|
|
<screen remap="test"><userinput>cat > /tmp/test-enchant.txt << "EOF"
|
2015-03-30 00:40:08 +08:00
|
|
|
<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>
|
2015-03-30 19:25:31 +08:00
|
|
|
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.
|
2015-03-30 00:40:08 +08:00
|
|
|
</para>
|
2010-01-07 11:58:49 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2019-06-21 02:52:26 +08:00
|
|
|
<seg>enchant and enchant-lsmod-2</seg>
|
2015-03-30 00:40:08 +08:00
|
|
|
<seg>libenchant.so and various backend libraries</seg>
|
2019-07-04 09:57:06 +08:00
|
|
|
<seg>/usr/{include,lib,share}/enchant-2</seg>
|
2010-01-07 11:58:49 +08:00
|
|
|
</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>
|
2019-06-21 02:52:26 +08:00
|
|
|
|
|
|
|
<varlistentry id="enchant-lsmod-2">
|
|
|
|
<term><command>enchant-lsmod-2</command></term>
|
2010-01-07 11:58:49 +08:00
|
|
|
<listitem>
|
|
|
|
<para>lists available backends, languages, and dictionaries.</para>
|
2019-06-21 02:52:26 +08:00
|
|
|
<indexterm zone="enchant enchant-lsmod-2">
|
|
|
|
<primary sortas="b-enchant-lsmod-2">enchant-lsmod-2</primary>
|
2010-01-07 11:58:49 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2019-06-21 02:52:26 +08:00
|
|
|
|
2010-01-07 11:58:49 +08:00
|
|
|
<varlistentry id="libenchant">
|
2015-03-30 19:25:31 +08:00
|
|
|
<term><filename class='libraryfile'>libenchant.so</filename></term>
|
2010-01-07 11:58:49 +08:00
|
|
|
<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>
|