Bug 22623 - I'd like php-pspell package to be available with Mageia 6
Summary: I'd like php-pspell package to be available with Mageia 6
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-17 17:30 CET by Xuo
Modified: 2018-02-25 17:09 CET (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Xuo 2018-02-17 17:30:25 CET
Hi,

It seems that php-pspell is required with RoundCubeMail when we need to enable spell checking.
This package is not available under Mageia 6. Is it possible to add it ?

Regards.

Eric Bouyoux.
Comment 1 David Walser 2018-02-17 17:53:01 CET
It looks like it could be added by adding a BR aspell-devel in php and adding --with-pspell=DIR to the configure options.  However, I see that php-enchant is packaged, which says:

Enchant is a binder for libenchant. Libenchant provides a common API for many
spell libraries:

 - aspell/pspell (intended to replace ispell)
 - hspell (hebrew)
 - ispell
 - hunspell (OpenOffice project, mozilla)
 - uspell (primarily Yiddish, Hebrew, and Eastern European languages)
   A plugin system allows to add custom spell support.
   see www.abisource.com/enchant/


Which makes it sound like you might be able to use that.  Can that work?
Comment 2 Xuo 2018-02-17 18:25:17 CET
Hi,

I can try but as it is RoundCube that expects a php-pspell package/plugin/???, I'm not sure it will accept this change.

Regards.

Eric Bouyoux.

CC: (none) => xuoy

Comment 3 David Walser 2018-02-18 01:27:44 CET
Hi Eric,

I don't know enough to know if php-enchant can do what you need, or what, if any, adjustments are needed to make to roundcubemail for that.  Unfortunately our roundcubemail maintainer passed away.

Hopefully this can be figured out.  If not, I can try enabling pspell next time we do a PHP security update.

CC: (none) => luigiwalser, mageia, mrambo
Assignee: bugsquad => pkg-bugs

Comment 4 Xuo 2018-02-25 12:23:35 CET
Hi,

I've installed the php-enchant package but when I try to run the spell engine on a mail I want to send, I get (in the roundcuba log directory) :
[25-Feb-2018 12:13:42 +0100]: <b88bie0s> PHP Error: Spell check engine error: Pspell extension not available in /usr/share/roundcubemail-1.2.3/program/steps/utils/spell.inc on line 50 (POST /?_task=utils&_action=spell&_remote=1&lang=fr)

What is surprising is that, if I misspell a word in this email (for ex "palce" instead of "place"), then this misspelled word is underlined in red. It is probably firefox that does the job, but I'm not sure.

So to anwser your question, yes, I'd like you enable pspell next time you update php if this is not too much work for you. This will make a usefull add-on work in RC.

Regards.

Eric Bouyoux.
Comment 5 Marc Krämer 2018-02-25 13:40:10 CET
I've looked into roundcube. It supports various backends. Set 
$config['spellcheck_engine'] = 'enchant'
in your roundcoube config and the spell engine should work.
Comment 6 Xuo 2018-02-25 16:35:55 CET
Hi,

Yes, I had noticed that I had forgotten to set :
$config['spellcheck_engine'] = 'enchant';
But unfortunately, I get the same error. I'm writing a post to the RC forum.

Regards.

Eric Bouyoux.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 7 Xuo 2018-02-25 16:37:31 CET
And thank you for your help.

Resolution: INVALID => FIXED

Comment 8 Xuo 2018-02-25 17:09:38 CET
Hi,

I could make it work thanks to this post :
https://lists.kolabsys.com/pipermail/bugzilla/2015-January/020122.html
I've set from :
$config['spellcheck_languages'] = array( 'fr' ,'en' );
to :
$config['spellcheck_languages'] = array( 'fr_FR' ,'en_US' );

And after I've restarted my apache server, it works fine.
My full config :

$config['spellcheck_dictionary'] = true;
$config['spellcheck_engine'] = 'enchant';
$config['spellcheck_languages'] = array( 'fr_FR' ,'en_US' );
$config['spellcheck_before_send'] = true;

Eric Bouyoux.

Note You need to log in before you can comment on or make changes to this bug.