#1488580 closed Bugs (worksforme)

Spell checker PSPELL

Reported by: jamil.isayyed Owned by:
Priority: 3 Milestone: 0.8-stable
Component: Core functionality Version: 0.8-rc
Severity: normal Keywords: pspell checker
Cc:

Description (last modified by alec)

Hello,
i am facing a problem with roundcube especially with spell checking, what i want to do is to use pspell checker to check the spelling in the email, i do not want the request to goes to external server i want all the requests to be handled internally.

what i did is to change in the configuration file in "/etc/roundcube/main.inc.php"

  
/spellcheck
...skipping
// Since Google only accepts connections over https your PHP installata
tion
// requires to be compiled with Open SSL support
$rcmail_config['enable_spellcheck'] = True;

// Set the spell checking engine. 'googie' is the default. 'pspell' is 
also available,
// but requires the Pspell extensions. When using Nox Spell Server, als
o set 'googie' here.
$rcmail_config['spellcheck_engine'] = 'pspell';
// For a locally installed Nox Spell Server, please specify the URI to 
call it.
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check sp
elling
$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'D
eutsch');
// Leave empty for default set of available language.
$rcmail_config['spellcheck_languages'] = NULL;

but every time i did a spell check it gives me that there is no spelling error, whereas the text already has a spelling errors.

what i can do to fix this problem??
what is the extensions that i need in order to make the pspell works in a proper way.

Thanks

Change History (5)

comment:1 follow-up: Changed 10 months ago by alec

  • Component changed from Plugins to Core functionality
  • Description modified (diff)

Any errors in logs?

comment:2 in reply to: ↑ 1 Changed 10 months ago by jamil.isayyed

Replying to alec:

Any errors in logs?

No i can not find any error in logs.
is there a particular log file that i need to monitor??

also i have checked if there is a java script errors, but everything seems to be good.

comment:3 follow-up: Changed 10 months ago by thomasb

You should configure 'spellcheck_languages' with the list of dictionaries which are actually installed on your webserver. List them with aspell dump dicts. Otherwise you should see warning in the Roundcube error log like

PHP Warning:  pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".

comment:4 in reply to: ↑ 3 Changed 10 months ago by jamil.isayyed

Replying to thomasb:

You should configure 'spellcheck_languages' with the list of dictionaries which are actually installed on your webserver. List them with aspell dump dicts. Otherwise you should see warning in the Roundcube error log like

PHP Warning:  pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".

i have downloads the dictionaries from "ftp://ftp.gnu.org/gnu/aspell/dict/0index.html" the english and the german, and i have untar them in " /usr/local/lib/aspell-0.60/" and i have changed the 'spellcheck_languages' as follow "$rcmail_configspellcheck_languages? = array('en'=>'English', 'de'=>'Deutsch');".

the problem now when i type "aspell dump dicts" i do not get anything. then which is the main log file that i have to watch.

another question please what is the main configuration that i need to do for the aspell.??

comment:5 Changed 10 months ago by alec

  • Milestone changed from later to 0.8-stable
  • Resolution set to worksforme
  • Status changed from new to closed

This is not Roundcube issue. For the record, when pspell extension is not loaded error is printed to the log "PHP Error: Pspell extension not available in...". Also when dictionary for specific language doesn't exists there should be a warning in log: "PHP Warning: pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "pt". in ...".

Note: See TracTickets for help on using tickets.