Skip to content

Commit

Permalink
Disable the default spellchecker option using spell.roundcube.net (#8182
Browse files Browse the repository at this point in the history
)

... since this service is no longer available.
  • Loading branch information
thomascube committed Aug 29, 2021
1 parent c09d478 commit 2bd421c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
11 changes: 4 additions & 7 deletions config/defaults.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,27 +785,24 @@
$config['quota_zero_as_unlimited'] = false;

// Make use of the built-in spell checker. It is based on GoogieSpell.
$config['enable_spellcheck'] = true;
$config['enable_spellcheck'] = false;

// Enables spellchecker exceptions dictionary.
// Setting it to 'shared' will make the dictionary shared by all users.
$config['spellcheck_dictionary'] = false;

// Set the spell checking engine. Possible values:
// - 'googie' - the default (also used for connecting to Nox Spell Server, see 'spellcheck_uri' setting)
// - 'googie' - requires 'spellcheck_uri' option to be set (also used for connecting to Nox Spell Server)
// - 'pspell' - requires the PHP Pspell module and aspell installed
// - 'enchant' - requires the PHP Enchant module
// - 'atd' - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
// Since Google shut down their public spell checking service, the default settings
// connect to http://spell.roundcube.net which is a hosted service provided by Roundcube.
// You can connect to any other googie-compliant service by setting 'spellcheck_uri' accordingly.
$config['spellcheck_engine'] = 'googie';

// For locally installed Nox Spell Server or After the Deadline services,
// please specify the URI to call it.
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or
// the After the Deadline package from http://www.afterthedeadline.com.
// Leave empty to use the public API of service.afterthedeadline.com
// Get Nox Spell Server from https://github.com/handwritingio/nox_spell_server or
// the After the Deadline package from http://www.afterthedeadline.com
$config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
Expand Down
8 changes: 2 additions & 6 deletions program/lib/Roundcube/spellchecker/googie.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
*/
class rcube_spellchecker_googie extends rcube_spellchecker_engine
{
const GOOGIE_HOST = 'ssl://spell.roundcube.net';
const GOOGIE_PORT = 443;

private $matches = array();
private $content;

Expand Down Expand Up @@ -71,9 +68,8 @@ function check($text)
$path = $a_uri['path'] . ($a_uri['query'] ? '?'.$a_uri['query'] : '') . $this->lang;
}
else {
$host = self::GOOGIE_HOST;
$port = self::GOOGIE_PORT;
$path = '/tbproxy/spell?lang=' . $this->lang;
$this->error = "Missing 'spellcheck_uri' config option";
return $this->matches = array();
}

$path .= sprintf('&key=%06d', $_SESSION['user_id']);
Expand Down

0 comments on commit 2bd421c

Please sign in to comment.