Update Enchant installation instructions

As of PHP 8.0.0, Windows uses Enchant-2 by default, and that looks for
the providers in a different folder (what is no longer changeable via
the Registry).

We also remove the outdated PHP 5 related information.
This commit is contained in:
Christoph M. Becker 2022-05-02 18:05:14 +02:00
parent 7639cf8773
commit 6c7300690f
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -2,15 +2,10 @@
<!-- $Revision$ -->
<section xml:id="enchant.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.install;
<para>
This extension is bundled with PHP as of PHP 5.3.0. Before this time,
enchant was a PECL extension. Users of versions prior to 5.3.0 may use the
<link xlink:href="&url.pecl.package;enchant">PECL extension</link>.
</para>
<para>
Provided the
<link linkend="enchant.requirements">required libraries</link> are
installed, users of PHP 5.3.0 or later may enable enchant by adding the
installed, users may enable enchant by adding the
<option role="configure">--with-enchant[=dir]</option> option when compiling
PHP.
</para>
@ -28,8 +23,11 @@
</para>
<para>
Furthermore, it is necessary to copy at least one of the shipped providers in
<filename>lib/enchant/</filename> to <filename>C:\enchant_plugins</filename>.
This path can be customized by creating the registry value
<filename>lib\enchant</filename> to <filename>\usr\local\lib\enchant-2</filename>
(which is an absolute path from the root of the <emphasis>current drive</emphasis>).
Prior to PHP 8.0.0, i.e. using Enchant v1, the providers had to be copied to
<filename>C:\enchant_plugins</filename> instead,
where this path could be customized by creating the registry value
<literal>HKEY_CURRENT_USER\SOFTWARE\Enchant\Config\Module_Dir</literal>
and setting it to the desired path.
</para>