Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
165 jpm 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.3                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Papyrus.                                                                        |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: Wikini.class.php,v 1.1 2004-11-23 17:25:38 jpm Exp $
25
/**
26
* Classe configurant le formatage pour Wikini.
27
*
28
* Ce fichier contient une classe configurant les règles de formatage de Wikini.
29
* Nécessite que l'application appelant ce fichier est précédement inclu le fichier de Pear:
30
* 'Text/Wiki.php';
31
*
32
*@package Text_Wiki
33
*@subpackage Wikini
34
//Auteur original :
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
//Autres auteurs :
37
*@author        Aucun
38
*@copyright     Tela-Botanica 2000-2004
39
*@version       $Revision: 1.1 $ $Date: 2004-11-23 17:25:38 $
40
// +------------------------------------------------------------------------------------------------------+
41
*/
42
 
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            ENTETE du PROGRAMME                                       |
45
// +------------------------------------------------------------------------------------------------------+
46
 
47
// +------------------------------------------------------------------------------------------------------+
48
// |                                            CORPS du PROGRAMME                                        |
49
// +------------------------------------------------------------------------------------------------------+
50
/**
51
*
52
* Parse structured wiki text and render into arbitrary formats such as XHTML.
53
*
54
* Cette classe fille permet de configurer les régles de formatage pour Wikini.
55
*
56
* @author Paul M. Jones <pmjones@ciaweb.net>
57
* @package Text_Wiki
58
* @version 0.23.1
59
* @license LGPL
60
*/
61
class Text_Wikini extends Text_Wiki {
62
 
63
    /**
64
    *
65
    * Liste de règles par défaut du format Wikini dans leur ordre d'application au texte
66
    * à transformer.
67
    *
68
    * @access public
69
    *
70
    * @var array
71
    *
72
    */
73
    var $rules = array(
74
        'Code', // Inclusion de code avec coloration syntaxique
75
        'Delimiter', // Type de retour à la ligne
76
        'Emphasis', // Italique
77
        'Freelink', // Nom de Page qui ne sont pas au format Wiki
78
        'Heading', // Titre
79
        'Horiz', // Ligne horizontale
80
        'Interwiki', // Affichage de page d'un autre Wiki. Modifié par rapport à l'original de Text_Wiki
81
        'List', // Affichage de listes. Modifié par rapport à l'original de Text_Wiki
82
        'Newline', // Nouveau paragraphe.
83
        'Paragraph', // Nouveau paragraphe avec une ligne vide.
84
        'Tighten', // Réduit les lignes vide si on en a 3 ou plus consécutives
85
        'Raw', // Inclusion de HTML et non traitement du contenu par les règles de formatage. Modifié par rapport à l'original de Text_Wiki
86
        'Revise', // Suppression de texte. Modifié par rapport à l'original de Text_Wiki
87
        'Table', // Tableaux
88
        'Tt', // Texte à espacement fixe
89
        'Url', // Inclusion d'url dont les url d'images
90
        'Strong'// Gras
91
    );
92
    /**
93
    *
94
    * The delimiter for token numbers of parsed elements in source text.
95
    *
96
    * @access public
97
    *
98
    * @var string
99
    *
100
    */
101
    var $delim = "\xFF";
102
 
103
    function Text_Wikini()
104
    {
105
        Text_Wiki::Text_Wiki();
106
 
107
        $this->addPath(
108
            'parse',
109
            $this->fixPath(dirname(__FILE__)) . 'Parse/'
110
        );
111
 
112
        $this->addPath(
113
            'render',
114
            $this->fixPath(dirname(__FILE__)) . 'Render/'
115
        );
116
    }
117
}
118
 
119
// +------------------------------------------------------------------------------------------------------+
120
// |                                            PIED du PROGRAMME                                         |
121
// +------------------------------------------------------------------------------------------------------+
122
 
123
 
124
 
125
/* +--Fin du code ----------------------------------------------------------------------------------------+
126
*
127
* $Log: not supported by cvs2svn $
128
*
129
* +-- Fin du code ----------------------------------------------------------------------------------------+
130
*/
131
?>