diff --git a/lib/editor/htmlarea/plugins/SpellChecker/img/spell-check.gif b/lib/editor/htmlarea/plugins/SpellChecker/img/spell-check.gif deleted file mode 100644 index 29bd11ae986..00000000000 Binary files a/lib/editor/htmlarea/plugins/SpellChecker/img/spell-check.gif and /dev/null differ diff --git a/lib/editor/htmlarea/plugins/SpellChecker/lang/en.js b/lib/editor/htmlarea/plugins/SpellChecker/lang/en.js deleted file mode 100644 index c14d7d74ea1..00000000000 --- a/lib/editor/htmlarea/plugins/SpellChecker/lang/en.js +++ /dev/null @@ -1,37 +0,0 @@ -// I18N constants - -// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 -// Author: Mihai Bazon, - -// FOR TRANSLATORS: -// -// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE -// (at least a valid email address) -// -// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; -// (if this is not possible, please include a comment -// that states what encoding is necessary.) - -SpellChecker.I18N = { - "CONFIRM_LINK_CLICK" : "Please confirm that you want to open this link", - "Cancel" : "Cancel", - "Dictionary" : "Dictionary", - "Finished list of mispelled words" : "Finished list of mispelled words", - "I will open it in a new page." : "I will open it in a new page.", - "Ignore all" : "Ignore all", - "Ignore" : "Ignore", - "NO_ERRORS" : "No mispelled words found with the selected dictionary.", - "NO_ERRORS_CLOSING" : "Spell check complete, didn't find any mispelled words. Closing now...", - "OK" : "OK", - "Original word" : "Original word", - "Please wait. Calling spell checker." : "Please wait. Calling spell checker.", - "Please wait: changing dictionary to" : "Please wait: changing dictionary to", - "QUIT_CONFIRMATION" : "This will drop changes and quit spell checker. Please confirm.", - "Re-check" : "Re-check", - "Replace all" : "Replace all", - "Replace with" : "Replace with", - "Replace" : "Replace", - "SC-spell-check" : "Spell-check", - "Suggestions" : "Suggestions", - "pliz weit ;-)" : "pliz weit ;-)" -}; diff --git a/lib/editor/htmlarea/plugins/SpellChecker/lang/ro.js b/lib/editor/htmlarea/plugins/SpellChecker/lang/ro.js deleted file mode 100644 index 618b398cf5e..00000000000 --- a/lib/editor/htmlarea/plugins/SpellChecker/lang/ro.js +++ /dev/null @@ -1,37 +0,0 @@ -// I18N constants - -// LANG: "ro", ENCODING: UTF-8 -// Author: Mihai Bazon, - -// FOR TRANSLATORS: -// -// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE -// (at least a valid email address) -// -// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; -// (if this is not possible, please include a comment -// that states what encoding is necessary.) - -SpellChecker.I18N = { - "CONFIRM_LINK_CLICK" : "Vă rog confirmaţi că vreţi să deschideţi acest link", - "Cancel" : "Anulează", - "Dictionary" : "Dicţionar", - "Finished list of mispelled words" : "Am terminat lista de cuvinte greşite", - "I will open it in a new page." : "O voi deschide într-o altă fereastră.", - "Ignore all" : "Ignoră toate", - "Ignore" : "Ignoră", - "NO_ERRORS" : "Nu am găsit nici un cuvânt greşit cu acest dicţionar.", - "NO_ERRORS_CLOSING" : "Am terminat, nu am detectat nici o greşeală. Acum închid fereastra...", - "OK" : "OK", - "Original word" : "Cuvântul original", - "Please wait. Calling spell checker." : "Vă rog aşteptaţi. Apelez spell-checker-ul.", - "Please wait: changing dictionary to" : "Vă rog aşteptaţi. Schimb dicţionarul cu", - "QUIT_CONFIRMATION" : "Doriţi să renunţaţi la modificări şi să închid spell-checker-ul?", - "Re-check" : "Scanează", - "Replace all" : "Înlocuieşte toate", - "Replace with" : "Înlocuieşte cu", - "Replace" : "Înlocuieşte", - "SC-spell-check" : "Detectează greşeli", - "Suggestions" : "Sugestii", - "pliz weit ;-)" : "va rog ashteptatzi ;-)" -}; diff --git a/lib/editor/htmlarea/plugins/SpellChecker/readme-tech.html b/lib/editor/htmlarea/plugins/SpellChecker/readme-tech.html deleted file mode 100644 index 52bf4c6c38c..00000000000 --- a/lib/editor/htmlarea/plugins/SpellChecker/readme-tech.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - HTMLArea Spell Checker - - - -

HTMLArea Spell Checker

- -

The HTMLArea Spell Checker subsystem consists of the following - files:

- - - -

Process overview

- -

- When an end-user clicks the "spell-check" button in the HTMLArea - editor, a new window is opened with the URL of "spell-check-ui.html". - This window initializes itself with the text found in the editor (uses - window.opener.SpellChecker.editor global variable) and it - submits the text to the server-side script "spell-check-logic.cgi". - The target of the FORM is an inline frame which is used both to - display the text and correcting. -

- -

- Further, spell-check-logic.cgi calls Aspell for each portion of plain - text found in the given HTML. It rebuilds an HTML file that contains - clear marks of which words are incorrect, along with suggestions for - each of them. This file is then loaded in the inline frame. Upon - loading, a JavaScript function from "spell-check-ui.js" is called. - This function will retrieve all mispelled words from the HTML of the - iframe and will setup the user interface so that it allows correction. -

- -

The server-side script (spell-check-logic.cgi)

- -

- Unicode safety — the program is - Unicode safe. HTML entities are expanded into their corresponding - Unicode characters. These characters will be matched as part of the - word passed to Aspell. All texts passed to Aspell are in Unicode - (when appropriate). However, Aspell seems to not support Unicode - yet (thread concerning Aspell and Unicode). - This mean that words containing Unicode - characters that are not in 0..255 are likely to be reported as "mispelled" by Aspell. -

- -

- I digged the Net for a couple of hours today and I can't seem to find - any open-source spell checker that has Unicode support. For this - reason we keep using Aspell, because it also seems to have the - best suggestions engine. Unicode support will eventually be - implemented in Aspell. Email - Kevin Atkinson (Aspell author and maintainer) about this ;-) -

- -

- The Perl Unicode manual (man perluniintro) states: -

- -
- - Starting from Perl 5.6.0, Perl has had the capacity to handle Unicode - natively. Perl 5.8.0, however, is the first recommended release for - serious Unicode work. The maintenance release 5.6.1 fixed many of the - problems of the initial Unicode implementation, but for example regular - expressions still do not work with Unicode in 5.6.1. - -
- -

In other words, do not assume that this script is - Unicode-safe on Perl interpreters older than 5.8.0.

- -

The following Perl modules are required:

- - - -

Of these, only Text::Aspell might need to be installed manually. The - others are likely to be available by default in most Perl distributions.

- -
-
Mihai Bazon
- - -Last modified on Sun Aug 10 12:28:24 2003 - - - - diff --git a/lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi b/lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi index 3b767b464ec..8b137891791 100644 --- a/lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi +++ b/lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi @@ -1,155 +1 @@ -#! /usr/bin/perl -w -# Spell Checker Plugin for HTMLArea-3.0 -# Implementation by Mihai Bazon. Sponsored by www.americanbible.org -# -# htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc. -# This notice MUST stay intact for use (see license.txt). -# -# A free WYSIWYG editor replacement for