Changeset f4f6291 in github
- Timestamp:
- Jun 24, 2010 9:27:43 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6052766
- Parents:
- 2011bef
- Location:
- program
- Files:
-
- 2 added
- 10 deleted
- 4 edited
-
js/editor.js (modified) (1 diff)
-
js/tiny_mce/plugins/spellchecker/classes/EnchantSpell.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/PSpell.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/PSpellShell.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/SpellChecker.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/utils/JSON.php (deleted)
-
js/tiny_mce/plugins/spellchecker/classes/utils/Logger.php (deleted)
-
js/tiny_mce/plugins/spellchecker/config.php (deleted)
-
js/tiny_mce/plugins/spellchecker/includes/general.php (deleted)
-
js/tiny_mce/plugins/spellchecker/rpc.php (deleted)
-
steps/utils/spell.inc (modified) (2 diffs)
-
steps/utils/spell_googie.inc (modified) (2 diffs)
-
steps/utils/spell_html_googie.inc (added)
-
steps/utils/spell_html_pspell.inc (added)
-
steps/utils/spell_pspell.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/editor.js
r1f019c8 rf4f6291 53 53 external_image_list_url : 'program/js/editor_images.js', 54 54 spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'), 55 spellchecker_rpc_url : '?_task=utils&_action=spell&tiny=1', 55 56 gecko_spellcheck : true, 56 57 relative_urls : false, -
program/steps/utils/spell.inc
rb25dfd0 rf4f6291 19 19 */ 20 20 21 // max. number of suggestions for one word 22 define('MAX_SUGGESTIONS', 10); 23 24 $tiny = !empty($_GET['tiny']) ? 'html_' : ''; 25 21 26 if ($spell_engine = $RCMAIL->config->get('spellcheck_engine', 'googie')) { 22 include('spell_'.$ spell_engine.'.inc');27 include('spell_'.$tiny.$spell_engine.'.inc'); 23 28 } 24 29 … … 26 31 exit; 27 32 28 -
program/steps/utils/spell_googie.inc
rb25dfd0 rf4f6291 3 3 /* 4 4 +-----------------------------------------------------------------------+ 5 | program/steps/utils/spell .inc|5 | program/steps/utils/spell_googie.inc | 6 6 | | 7 7 | This file is part of the RoundCube Webmail client | … … 53 53 $out .= $data; 54 54 fwrite($fp, $out); 55 55 56 56 while (!feof($fp)) 57 57 $store .= fgets($fp, 128); -
program/steps/utils/spell_pspell.inc
rb25dfd0 rf4f6291 31 31 } 32 32 33 // max. number of suggestions for one word34 define('MAX_SUGGESTIONS', 10);35 36 33 // read input 37 34 $data = file_get_contents('php://input'); … … 60 57 && !pspell_check($plink, $word)) { 61 58 $suggestions = pspell_suggest($plink, $word); 62 if (sizeof($suggestions)> 10)59 if (sizeof($suggestions)>MAX_SUGGESTIONS) 63 60 $suggestions = array_slice($suggestions, 0, MAX_SUGGESTIONS); 64 61
Note: See TracChangeset
for help on using the changeset viewer.
