Re: [PHP-DEV] Re: Enchant 2

2020-04-29 Thread Remi Collet
Le 29/04/2020 à 13:23, Christoph M. Becker a écrit :
> On 29.04.2020 at 12:00, Michał Brzuchalski wrote:
> 
>> TIL there's a spell check ext in PHP.
> 
> Well, actually there are two: ext/enchant and ext/pspell.

The problem is that some distro may not have usable dictionnary
Ex: in RHEL / CentOS there is no aspell dictionnary,
so the pspell extension is mostly unusable
and have even been removed in 8.0

So enchant is really useful
(it uses available hunspell dictionnaries)



Remi



signature.asc
Description: OpenPGP digital signature


Re: [PHP-DEV] Re: Enchant 2

2020-04-29 Thread Remi Collet
Le 29/04/2020 à 11:52, Christoph M. Becker a écrit :

> Apparently, not much has been changed in the meantime, besides that new
> Enchant 2 releases are rolled out regularly.  The latest release of
> Enchant 1 (1.6.1) happened on 2017-02-08, and I don't expect to see new
> Enchant 1 releases.  This basically means that we rely on an
> unmaintained library.  So if nobody is interested in bringing
> ext/enchant up-to-date with Enchant 2, it might be best to unbundle the
> extension.

See https://github.com/php/php-src/pull/5490



Remi



signature.asc
Description: OpenPGP digital signature


Re: [PHP-DEV] Re: Enchant 2

2020-04-29 Thread Christoph M. Becker
On 29.04.2020 at 12:00, Michał Brzuchalski wrote:

> TIL there's a spell check ext in PHP.

Well, actually there are two: ext/enchant and ext/pspell.

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: Enchant 2

2020-04-29 Thread Michał Brzuchalski
Hi Christoph,

śr., 29 kwi 2020 o 11:52 Christoph M. Becker  napisał(a):

> Apparently, not much has been changed in the meantime, besides that new
> Enchant 2 releases are rolled out regularly.  The latest release of
> Enchant 1 (1.6.1) happened on 2017-02-08, and I don't expect to see new
> Enchant 1 releases.  This basically means that we rely on an
> unmaintained library.  So if nobody is interested in bringing
> ext/enchant up-to-date with Enchant 2, it might be best to unbundle the
> extension.
>
> Thoughts?
>

TIL there's a spell check ext in PHP.
I've never used it and actually was asking myself why is it in the core.
I would vote for unbundling of it.

Cheers,
Michał Brzuchalski