[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 |
|
---|
| 7 | <!ENTITY enchant-download-http "http://www.abisource.com/downloads/enchant/&enchant-version;/enchant-&enchant-version;.tar.gz">
|
---|
[cb9f485] | 8 | <!ENTITY enchant-download-ftp "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/enchant-&enchant-version;.tar.gz">
|
---|
[15114f7] | 9 | <!ENTITY enchant-md5sum "de11011aff801dc61042828041fb59c7">
|
---|
[d45a9e69] | 10 | <!ENTITY enchant-size "596 KB">
|
---|
| 11 | <!ENTITY enchant-buildsize "11 MB">
|
---|
| 12 | <!ENTITY enchant-time "0.1 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 |
|
---|
[cfbfb07] | 35 | &lfs80_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>,
|
---|
[6d5acf3] | 70 | <ulink url="http://hunspell.github.io/">Hunspell</ulink>, and
|
---|
| 71 | <ulink url="http://hunspell.github.io/">Voikko</ulink></para>
|
---|
[7ff76531] | 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 |
|
---|
[d45a9e69] | 84 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[7ff76531] | 85 | make</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 |
|
---|
[d45a9e69] | 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 |
|
---|
[7ff76531] | 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 |
|
---|
[d45a9e69] | 123 | <para>
|
---|
[ea0c1c2] | 124 | If you wish to use the <xref linkend="aspell"/> backend, create a
|
---|
[d45a9e69] | 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
|
---|
[f8939c0] | 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"/>):
|
---|
[d45a9e69] | 135 | </para>
|
---|
| 136 |
|
---|
[f3429309] | 137 | <screen><userinput>cat > /tmp/test-enchant.txt << "EOF"
|
---|
[d45a9e69] | 138 | <literal>Tel me more abot linux
|
---|
| 139 | Ther ar so many commads</literal>
|
---|
| 140 | EOF
|
---|
| 141 |
|
---|
| 142 | enchant -d en_GB -l /tmp/test-enchant.txt &&
|
---|
| 143 | enchant -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
|
---|
| 144 |
|
---|
| 145 | <para>
|
---|
[f8939c0] | 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.
|
---|
[d45a9e69] | 152 | </para>
|
---|
[7ff76531] | 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>
|
---|
[d45a9e69] | 168 | <seg>libenchant.so and various backend libraries</seg>
|
---|
| 169 | <seg>/usr/{include,lib,share}/enchant</seg>
|
---|
[7ff76531] | 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">
|
---|
[f8939c0] | 199 | <term><filename class='libraryfile'>libenchant.so</filename></term>
|
---|
[7ff76531] | 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>
|
---|