[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[7ff76531] | 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 " ">
|
---|
[cba54d9b] | 9 | <!ENTITY enchant-md5sum "74eae981b66cd7ed286662233faeb3c8">
|
---|
| 10 | <!ENTITY enchant-size "4.2 MB">
|
---|
| 11 | <!ENTITY enchant-buildsize "18 MB (add 64 MB for tests)">
|
---|
[ea0364a] | 12 | <!ENTITY enchant-time "0.1 SBU (add 0.8 SBU for tests)">
|
---|
[7ff76531] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="enchant" xreflabel="enchant-&enchant-version;">
|
---|
| 16 | <?dbhtml filename="enchant.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>enchant-&enchant-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="enchant">
|
---|
| 22 | <primary sortas="a-enchant">enchant</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to enchant</title>
|
---|
| 27 |
|
---|
[d56e7df] | 28 | <para>
|
---|
[0f124fa] | 29 | The <application>enchant</application> package provides a generic
|
---|
[d56e7df] | 30 | interface into various existing spell checking libraries.
|
---|
| 31 | </para>
|
---|
[7ff76531] | 32 |
|
---|
[e8b3f50] | 33 | &lfs121_checked;
|
---|
[5603a81] | 34 |
|
---|
[7ff76531] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[d56e7df] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&enchant-download-http;"/>
|
---|
| 40 | </para>
|
---|
[7ff76531] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[d56e7df] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&enchant-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[7ff76531] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[d56e7df] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &enchant-md5sum;
|
---|
| 50 | </para>
|
---|
[7ff76531] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[d56e7df] | 53 | <para>
|
---|
| 54 | Download size: &enchant-size;
|
---|
| 55 | </para>
|
---|
[7ff76531] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[d56e7df] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &enchant-buildsize;
|
---|
| 60 | </para>
|
---|
[7ff76531] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[d56e7df] | 63 | <para>
|
---|
| 64 | Estimated build time: &enchant-time;
|
---|
| 65 | </para>
|
---|
[7ff76531] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">enchant Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[47274444] | 72 | <para role="required">
|
---|
[ea0364a] | 73 | <xref linkend="glib2"/> and
|
---|
| 74 | <xref linkend="vala"/>
|
---|
[47274444] | 75 | </para>
|
---|
[7ff76531] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[47274444] | 78 | <para role="recommended">
|
---|
| 79 | <xref linkend="aspell"/>
|
---|
| 80 | </para>
|
---|
[7ff76531] | 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[47274444] | 83 | <para role="optional">
|
---|
| 84 | <xref linkend="dbus-glib"/>,
|
---|
| 85 | <xref linkend="doxygen"/>,
|
---|
| 86 | <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink>,
|
---|
[36aab55] | 87 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
[47274444] | 88 | <ulink url="https://nuspell.github.io/">Nuspell</ulink>,
|
---|
[36aab55] | 89 | <ulink url="https://hunspell.github.io/">Voikko</ulink>, and
|
---|
[47274444] | 90 | <ulink url="https://github.com/unittest-cpp/unittest-cpp/releases">
|
---|
| 91 | unittest-cpp</ulink> (required for tests)
|
---|
| 92 | </para>
|
---|
[7ff76531] | 93 |
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of enchant</title>
|
---|
| 99 |
|
---|
[d56e7df] | 100 | <para>
|
---|
| 101 | Install <application>enchant</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[7ff76531] | 104 |
|
---|
[9106fcb] | 105 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 106 | --disable-static \
|
---|
| 107 | --docdir /usr/share/doc/enchant-&enchant-version; &&
|
---|
[7ff76531] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
[d56e7df] | 110 | <para>
|
---|
[8558044] | 111 | To run tests, unittest-cpp must be installed and the
|
---|
[d56e7df] | 112 | <option>--enable-relocatable</option> option passed to configure above.
|
---|
[8558044] | 113 | If these conditions are present, the tests may be run with <command>make
|
---|
[d56e7df] | 114 | check</command>.
|
---|
| 115 | </para>
|
---|
[7ff76531] | 116 |
|
---|
[d56e7df] | 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
[7ff76531] | 120 |
|
---|
[e6f368f] | 121 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[7ff76531] | 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
[d45a9e69] | 125 | <sect2 role="commands">
|
---|
| 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
| 128 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 129 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
[7ff76531] | 133 | <sect2 role="configuration">
|
---|
| 134 | <title>Configuring enchant</title>
|
---|
| 135 |
|
---|
| 136 | <sect3 id="enchant-config">
|
---|
| 137 | <title>Config Files</title>
|
---|
[d56e7df] | 138 | <para>
|
---|
| 139 | <filename>~/.enchant</filename> and
|
---|
| 140 | <filename>/usr/share/enchant/enchant.ordering</filename>
|
---|
| 141 | </para>
|
---|
[7ff76531] | 142 |
|
---|
| 143 | <indexterm zone="enchant enchant-config">
|
---|
| 144 | <primary sortas="e-AA.enchant">~/.enchant</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 |
|
---|
| 147 | <indexterm zone="enchant enchant-config">
|
---|
| 148 | <primary
|
---|
| 149 | sortas="e-usr-share-enchant-enchant.ordering">/usr/share/enchant/enchant.ordering</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </sect3>
|
---|
| 152 |
|
---|
| 153 | <sect3><title>Configuration Information</title>
|
---|
[8558044] | 154 | <!--
|
---|
| 155 | Looks like this is not required when installing enchant in the flavor
|
---|
[411857f9] | 156 | we do above. Leaving it in source (for a while) in case I'm wrong and
|
---|
| 157 | it needs to be restored.
|
---|
[d45a9e69] | 158 | <para>
|
---|
[ea0c1c2] | 159 | If you wish to use the <xref linkend="aspell"/> backend, create a
|
---|
[d45a9e69] | 160 | symlink, as the <systemitem class="username">root</systemitem> user:
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <screen role="root"><userinput>ln -svfn ../../lib/aspell /usr/share/enchant/aspell</userinput></screen>
|
---|
[411857f9] | 164 | -->
|
---|
[d45a9e69] | 165 | <para>
|
---|
| 166 | You can test your installation and configuration by creating a test
|
---|
[a6852d6] | 167 | file and running the following commands (you can replace the
|
---|
[f8939c0] | 168 | en_GB dictionary by any other downloaded when installing <xref
|
---|
| 169 | linkend="aspell"/>):
|
---|
[d45a9e69] | 170 | </para>
|
---|
| 171 |
|
---|
[e7d4e823] | 172 | <screen remap="test"><userinput>cat > /tmp/test-enchant.txt << "EOF"
|
---|
[d45a9e69] | 173 | <literal>Tel me more abot linux
|
---|
| 174 | Ther ar so many commads</literal>
|
---|
| 175 | EOF
|
---|
| 176 |
|
---|
[e6f368f] | 177 | enchant-2 -d en_GB -l /tmp/test-enchant.txt &&
|
---|
| 178 | enchant-2 -d en_GB -a /tmp/test-enchant.txt</userinput></screen>
|
---|
[d45a9e69] | 179 |
|
---|
| 180 | <para>
|
---|
[f8939c0] | 181 | You will see a list of the misspelled words followed by a list of
|
---|
| 182 | alternatives for them.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | See more details in the enchant manual page.
|
---|
[d45a9e69] | 187 | </para>
|
---|
[7ff76531] | 188 |
|
---|
| 189 | </sect3>
|
---|
| 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
| 193 | <sect2 role="content">
|
---|
| 194 | <title>Contents</title>
|
---|
| 195 |
|
---|
| 196 | <segmentedlist>
|
---|
| 197 | <segtitle>Installed Programs</segtitle>
|
---|
| 198 | <segtitle>Installed Libraries</segtitle>
|
---|
| 199 | <segtitle>Installed Directories</segtitle>
|
---|
| 200 |
|
---|
| 201 | <seglistitem>
|
---|
[4ce51255] | 202 | <seg>enchant-2 and enchant-lsmod-2</seg>
|
---|
| 203 | <seg>libenchant-2.so</seg>
|
---|
[9106fcb] | 204 | <seg>/usr/include/enchant-2, /usr/lib/enchant-2,
|
---|
| 205 | /usr/share/enchant, and /usr/share/doc/enchant-&enchant-version;</seg>
|
---|
[7ff76531] | 206 | </seglistitem>
|
---|
| 207 | </segmentedlist>
|
---|
| 208 |
|
---|
| 209 | <variablelist>
|
---|
| 210 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 211 | <?dbfo list-presentation="list"?>
|
---|
| 212 | <?dbhtml list-presentation="table"?>
|
---|
| 213 |
|
---|
[4ce51255] | 214 | <varlistentry id="enchant-2">
|
---|
| 215 | <term><command>enchant-2</command></term>
|
---|
[7ff76531] | 216 | <listitem>
|
---|
[d56e7df] | 217 | <para>
|
---|
| 218 | is a spellchecker
|
---|
| 219 | </para>
|
---|
[4ce51255] | 220 | <indexterm zone="enchant enchant-2">
|
---|
| 221 | <primary sortas="b-enchant-2">enchant-2</primary>
|
---|
[7ff76531] | 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
[b3e767b] | 225 |
|
---|
| 226 | <varlistentry id="enchant-lsmod-2">
|
---|
| 227 | <term><command>enchant-lsmod-2</command></term>
|
---|
[7ff76531] | 228 | <listitem>
|
---|
[d56e7df] | 229 | <para>
|
---|
[4c24eb0a] | 230 | lists available backends, languages, and dictionaries
|
---|
[d56e7df] | 231 | </para>
|
---|
[b3e767b] | 232 | <indexterm zone="enchant enchant-lsmod-2">
|
---|
| 233 | <primary sortas="b-enchant-lsmod-2">enchant-lsmod-2</primary>
|
---|
[7ff76531] | 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
[b3e767b] | 237 |
|
---|
[4ce51255] | 238 | <varlistentry id="libenchant-2">
|
---|
| 239 | <term><filename class="libraryfile">libenchant-2.so</filename></term>
|
---|
[7ff76531] | 240 | <listitem>
|
---|
[d56e7df] | 241 | <para>
|
---|
[4c24eb0a] | 242 | contains spell checking interface API functions
|
---|
[d56e7df] | 243 | </para>
|
---|
[4ce51255] | 244 | <indexterm zone="enchant libenchant-2">
|
---|
| 245 | <primary sortas="c-libenchant-2">libenchant-2.so</primary>
|
---|
[7ff76531] | 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | </variablelist>
|
---|
| 251 |
|
---|
| 252 | </sect2>
|
---|
| 253 |
|
---|
| 254 | </sect1>
|
---|