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