Cookbook / SpellChecker | Discuss Page Recent Changes Printable View Page History Edit Page |
Summary: How to enable spell-cheking on a wiki
Version:
Prerequisites:
Status: Unmaintained
Maintainer:
This recipe is no longer maintained, and the latest version appears to no longer work. As of 2024 all major browsers do have built-in spell-checkers for most languages and wiki editors may be better off enabling these instead of a custom recipe. Note: The current pub/speller/spellchecker.php file has a XSS vulnerability, reported by Aaron Costello. He suggests the following fix/changes applied to the print_textinputs_var() function in /pub/speller/spellchecker.php: function print_textinputs_var() {
global $textinputs;
foreach( $textinputs as $key=>$val ) {
# $val = str_replace( "'", "%27", $val );
$escaped_val = htmlspecialchars(urldecode($val));
echo "textinputs[$key] = $escaped_val;\n";
}
}
ContentsQuestionHow can I enable spell checking of my wiki-text? AnswersThere are a number of possible solutions to this, but many of them are limited by the lack of good spell checking programs in PHP. If the javascript solution outlined below does not work for you because you can't install the components, you may at least try a user (browser) base spell checking solution. 1. Javascript interactive spellchecking with AspellThe "Speller Pages" project when combined with GNU Aspell provides a good solution in Javascript for interactive spell checking of wiki pages. The spellchecker.zipΔ archive contains the files needed to install Speller Pages and configure it into PmWiki's editing system. Spell checking has been enabled on this page, so you can experiment with it yourself. Simply hit "edit page", add some text, and then use the "spell check" button that appears in the graphical toolbar. RequirementsThe Spell Checker recipe requires that the PmWiki server have a copy of GNU Aspell installed and configured correctly. Aspell can be obtained from http://aspell.sourceforge.net. Aspell is reportedly available for Windows environments as well, although we have not tested this yet. After installing Aspell you must also install at least one dictionary. Once you have Aspell installed, simply download and unpack the spellchecker.zipΔ archive. Then add the line: include_once(" to a local customization file such as local/config.php. NOTE: for a wikifarm you will also have to change the /cookbook/spellchecker.php file. Change the 3 variables " $PubDirUrl " to "$FarmPubDirUrl ".
If you haven't already also add the line to the customization file. In addition, you may need to set correct values for variables defined in pub/speller/spellchecker.php:
This script will only work under PmWiki 2.0.beta22 or later.
2. Use a browser add-on spellcheckerFirefox:
Install the SpellBound extension for Firefox http://spellbound.sourceforge.net/
Install the Google Toolbar extension for Firefox, found at http://toolbar.google.com/; supports Firefox 1.0+ and 1.5. Opera:Add Aspell spellchecking to Opera: http://www.opera.com/support/tutorials/opera/spellcheck/ Internet Explorer:Try add-on ieSpell http://www.iespell.com/ Also, the Google toolbar includes a spellchecker. Safari:Supported by default. Right-click in text box and select Spelling -> Check Spelling as You Type. Comments
Contributors
SandboxTry spell-checking this page here. this is na incorect senteeence |
Summary: Create "Side Notes" for jotting down notes
Version:
Prerequisites: just testing
Status:
Maintainer:
Categories: Editing, Administration
(edit) Side NotesThis is Side Notes for jotting down some note. Simply create a wiki page {Group}.SideNotes where "Group" is the name of the wiki group. |