[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/exe/ -> spellcheck.php (sommaire)

DokuWiki Spellcheck AJAX backend

Author: Andreas Gohr <andi@splitbrain.org>
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
Poids: 300 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 4 fichiers
 inc/utf8.php
 inc/init.php
 inc/aspell.php
 inc/common.php

Définit 6 fonctions

  spaceslink()
  spell_check()
  spell_formatword()
  spell_resume()
  spell_utf8test()
  unhtmlspecialchars()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

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 occured 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>



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7