Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 164 → Rev 165

/trunk/api/text/wiki_wikini/Wikini.class.php
New file
0,0 → 1,131
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.3 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Papyrus. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: Wikini.class.php,v 1.1 2004-11-23 17:25:38 jpm Exp $
/**
* Classe configurant le formatage pour Wikini.
*
* Ce fichier contient une classe configurant les règles de formatage de Wikini.
* Nécessite que l'application appelant ce fichier est précédement inclu le fichier de Pear:
* 'Text/Wiki.php';
*
*@package Text_Wiki
*@subpackage Wikini
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2004-11-23 17:25:38 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/**
*
* Parse structured wiki text and render into arbitrary formats such as XHTML.
*
* Cette classe fille permet de configurer les régles de formatage pour Wikini.
*
* @author Paul M. Jones <pmjones@ciaweb.net>
* @package Text_Wiki
* @version 0.23.1
* @license LGPL
*/
class Text_Wikini extends Text_Wiki {
/**
*
* Liste de règles par défaut du format Wikini dans leur ordre d'application au texte
* à transformer.
*
* @access public
*
* @var array
*
*/
var $rules = array(
'Code', // Inclusion de code avec coloration syntaxique
'Delimiter', // Type de retour à la ligne
'Emphasis', // Italique
'Freelink', // Nom de Page qui ne sont pas au format Wiki
'Heading', // Titre
'Horiz', // Ligne horizontale
'Interwiki', // Affichage de page d'un autre Wiki. Modifié par rapport à l'original de Text_Wiki
'List', // Affichage de listes. Modifié par rapport à l'original de Text_Wiki
'Newline', // Nouveau paragraphe.
'Paragraph', // Nouveau paragraphe avec une ligne vide.
'Tighten', // Réduit les lignes vide si on en a 3 ou plus consécutives
'Raw', // Inclusion de HTML et non traitement du contenu par les règles de formatage. Modifié par rapport à l'original de Text_Wiki
'Revise', // Suppression de texte. Modifié par rapport à l'original de Text_Wiki
'Table', // Tableaux
'Tt', // Texte à espacement fixe
'Url', // Inclusion d'url dont les url d'images
'Strong'// Gras
);
/**
*
* The delimiter for token numbers of parsed elements in source text.
*
* @access public
*
* @var string
*
*/
var $delim = "\xFF";
function Text_Wikini()
{
Text_Wiki::Text_Wiki();
$this->addPath(
'parse',
$this->fixPath(dirname(__FILE__)) . 'Parse/'
);
$this->addPath(
'render',
$this->fixPath(dirname(__FILE__)) . 'Render/'
);
}
}
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>