| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
DokuWiki Spellcheck AJAX backend
| Author: | Andreas Gohr |
| License: | GPL 2 (http://www.gnu.org/licenses/gpl.html) |
| File Size: | 302 lines (9 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 4 files inc/utf8.php inc/init.php inc/aspell.php inc/common.php |
| spaceslink($matches) X-Ref |
| replaces a link with blanks of same length The first string is the complete link and and the second optional string might be the alternative text that would become part of the result string and will be checked for spelling errors again. callback for preg_replace_callback author: Matthias Grimm <matthiasgrimm@users.sourceforge.net> author: Andreas Gohr <andi@splitbrain.org> |
| spell_check() X-Ref |
| Spellchecker. Called by an AJAX request Runs the given Text through Aspell and prints XHTML with markup. The first char represents the error code: 0 - No spelling mistakes 1 - Spelling mistakes found 2 - An error occurred error message follows author: Andreas Gohr <andi@splitbrain.org> |
| spell_formatword($word,$suggestions=null) X-Ref |
| Formats a word with needed markup for the Suggestion Popup author: Andreas Gohr <andi@splitbrain.org> |
| spell_resume() X-Ref |
| Rewrite markuped XHTML back to plain Text. AJAX callback author: Andreas Gohr <andi@splitbrain.org> |
| spell_utf8test() X-Ref |
| Just send data back as received for UTF-8 testing |
| unhtmlspecialchars($string, $quotstyle=ENT_COMPAT) X-Ref |
| Reverse htmlspecialchars author: <donwilson at gmail dot com> author: Andreas Gohr <andi@splitbrain.org> |
| Generated: Fri Nov 23 01:30:01 2007 | Cross-referenced by PHPXref 0.7 |