cvs: pear /Text_Wiki package.xml /Text_Wiki/Text Wiki.php /Text_Wiki/Text/Wiki/Rule break.php deflist.php newline.php paragraph.php wikilink.php
| From: | Paul Jones | Date: | Sat, 22 May 2004 20:33:09 +0000 |
| Subject: | cvs: pear /Text_Wiki package.xml /Text_Wiki/Text Wiki.php /Text_Wiki/Text/Wiki/Rule break.php deflist.php newline.php paragraph.php wikilink.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19765@lists.php.net to get a copy of this message | ||
pmjones Sat May 22 16:33:09 2004 EDT
Modified files:
/pear/Text_Wiki package.xml
/pear/Text_Wiki/Text Wiki.php
/pear/Text_Wiki/Text/Wiki/Rule break.php deflist.php newline.php
paragraph.php wikilink.php
Log:
updated comments, brought package.xml up to 0.16, added renderPlain() methods, added newlines
tailing deflist and table. updated comments.
http://cvs.php.net/diff.php/pear/Text_Wiki/package.xml?r1=1.5&r2=1.6&ty=u Index: pear/Text_Wiki/package.xml diff -u pear/Text_Wiki/package.xml:1.5 pear/Text_Wiki/package.xml:1.6 --- pear/Text_Wiki/package.xml:1.5 Fri May 21 17:14:47 2004 +++ pear/Text_Wiki/package.xml Sat May 22 16:33:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> -<!-- $Id: package.xml,v 1.5 2004/05/21 21:14:47 pmjones Exp $ --> +<!-- $Id: package.xml,v 1.6 2004/05/22 20:33:09 pmjones Exp $ --> <package version="1.0"> <name>Text_Wiki</name> <summary>Abstracts parsing and rendering rules for Wiki markup in structured plain text.</summary> @@ -14,12 +14,18 @@ </maintainer> </maintainers> <release> - <version>0.15.1?</version> - <date>????</date> + <version>0.16</version> + <date>2004-05-22</date> <license>PHP License</license> <state>alpha</state> <notes> * code rule no longer trims the contents, this leaves leading and trailing preformatted white space in place + * in newline and paragraph skipped elements, added code and phpcode + * entities rule now converts all entities (instead of just specialchars) except the token delimiter + * extra newline after table, deflist, and list rules to help with paragraph parsing + * list rule now adds "display: inline;" to list-item style to help with MSIE display + * url rule now has 'images' rule conf key to turn image processing on and off + * started adding renderPlain() method to all rules, will render the source with all markup removed (not done yet) </notes> <filelist> <file role="php" name="Text/Wiki.php" /> http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki.php diff -u pear/Text_Wiki/Text/Wiki.php:1.3 pear/Text_Wiki/Text/Wiki.php:1.4 --- pear/Text_Wiki/Text/Wiki.php:1.3 Sun May 2 19:16:45 2004 +++ pear/Text_Wiki/Text/Wiki.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: Wiki.php,v 1.3 2004/05/02 23:16:45 pmjones Exp $ +// $Id: Wiki.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ require_once 'Text/Wiki/Rule.php'; @@ -28,7 +28,7 @@ * * @author Paul M. Jones <pmjones@ciaweb.net> * -* @version 0.15 alpha +* @version 0.16 alpha * */ @@ -232,7 +232,8 @@ 'name' => 'Text_Wiki_Rule_url', 'flag' => true, 'conf' => array( - 'target' => '_BLANK' + 'target' => '_blank', + 'images' => true ) ), @@ -258,7 +259,7 @@ 'Advogato' => 'http://advogato.org/%s', 'Wiki' => 'http://c2.com/cgi/wiki?%s' ), - 'target' => '_BLANK' + 'target' => '_blank' ) ), http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/break.php?r1=1.1&r2=1.2&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/break.php diff -u pear/Text_Wiki/Text/Wiki/Rule/break.php:1.1 pear/Text_Wiki/Text/Wiki/Rule/break.php:1.2 --- pear/Text_Wiki/Text/Wiki/Rule/break.php:1.1 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/break.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: break.php,v 1.1 2004/05/02 13:12:43 pmjones Exp $ +// $Id: break.php,v 1.2 2004/05/22 20:33:09 pmjones Exp $ /** @@ -85,6 +85,25 @@ { return "<br />\n"; } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + return "\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/deflist.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/deflist.php diff -u pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.3 pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.4 --- pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.3 Fri May 21 19:00:33 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/deflist.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: deflist.php,v 1.3 2004/05/21 23:00:33 pmjones Exp $ +// $Id: deflist.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ /** @@ -115,7 +115,7 @@ $return .= $this->addToken($options); // done! - return "\n" . $return . "\n"; + return "\n" . $return . "\n\n"; } http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/newline.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/newline.php diff -u pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.2 pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.3 --- pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.2 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/newline.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: newline.php,v 1.2 2004/05/02 13:12:43 pmjones Exp $ +// $Id: newline.php,v 1.3 2004/05/22 20:33:09 pmjones Exp $ /** @@ -86,6 +86,25 @@ { return "<br />\n"; } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + echo "\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/paragraph.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/paragraph.php diff -u pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.2 pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.3 --- pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.2 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/paragraph.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: paragraph.php,v 1.2 2004/05/02 13:12:43 pmjones Exp $ +// $Id: paragraph.php,v 1.3 2004/05/22 20:33:09 pmjones Exp $ /** @@ -137,5 +137,24 @@ return "</p>\n\n"; } } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + echo "\n\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/wikilink.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/wikilink.php diff -u pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.3 pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.4 --- pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.3 Sun May 2 19:16:46 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/wikilink.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: wikilink.php,v 1.3 2004/05/02 23:16:46 pmjones Exp $ +// $Id: wikilink.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ /** @@ -177,7 +177,7 @@ /** * - * Renders a token into text matching the requested format. + * Renders a token into XHTML. * * @access public *
http://cvs.php.net/diff.php/pear/Text_Wiki/package.xml?r1=1.5&r2=1.6&ty=u Index: pear/Text_Wiki/package.xml diff -u pear/Text_Wiki/package.xml:1.5 pear/Text_Wiki/package.xml:1.6 --- pear/Text_Wiki/package.xml:1.5 Fri May 21 17:14:47 2004 +++ pear/Text_Wiki/package.xml Sat May 22 16:33:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> -<!-- $Id: package.xml,v 1.5 2004/05/21 21:14:47 pmjones Exp $ --> +<!-- $Id: package.xml,v 1.6 2004/05/22 20:33:09 pmjones Exp $ --> <package version="1.0"> <name>Text_Wiki</name> <summary>Abstracts parsing and rendering rules for Wiki markup in structured plain text.</summary> @@ -14,12 +14,18 @@ </maintainer> </maintainers> <release> - <version>0.15.1?</version> - <date>????</date> + <version>0.16</version> + <date>2004-05-22</date> <license>PHP License</license> <state>alpha</state> <notes> * code rule no longer trims the contents, this leaves leading and trailing preformatted white space in place + * in newline and paragraph skipped elements, added code and phpcode + * entities rule now converts all entities (instead of just specialchars) except the token delimiter + * extra newline after table, deflist, and list rules to help with paragraph parsing + * list rule now adds "display: inline;" to list-item style to help with MSIE display + * url rule now has 'images' rule conf key to turn image processing on and off + * started adding renderPlain() method to all rules, will render the source with all markup removed (not done yet) </notes> <filelist> <file role="php" name="Text/Wiki.php" /> http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki.php diff -u pear/Text_Wiki/Text/Wiki.php:1.3 pear/Text_Wiki/Text/Wiki.php:1.4 --- pear/Text_Wiki/Text/Wiki.php:1.3 Sun May 2 19:16:45 2004 +++ pear/Text_Wiki/Text/Wiki.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: Wiki.php,v 1.3 2004/05/02 23:16:45 pmjones Exp $ +// $Id: Wiki.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ require_once 'Text/Wiki/Rule.php'; @@ -28,7 +28,7 @@ * * @author Paul M. Jones <pmjones@ciaweb.net> * -* @version 0.15 alpha +* @version 0.16 alpha * */ @@ -232,7 +232,8 @@ 'name' => 'Text_Wiki_Rule_url', 'flag' => true, 'conf' => array( - 'target' => '_BLANK' + 'target' => '_blank', + 'images' => true ) ), @@ -258,7 +259,7 @@ 'Advogato' => 'http://advogato.org/%s', 'Wiki' => 'http://c2.com/cgi/wiki?%s' ), - 'target' => '_BLANK' + 'target' => '_blank' ) ), http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/break.php?r1=1.1&r2=1.2&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/break.php diff -u pear/Text_Wiki/Text/Wiki/Rule/break.php:1.1 pear/Text_Wiki/Text/Wiki/Rule/break.php:1.2 --- pear/Text_Wiki/Text/Wiki/Rule/break.php:1.1 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/break.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: break.php,v 1.1 2004/05/02 13:12:43 pmjones Exp $ +// $Id: break.php,v 1.2 2004/05/22 20:33:09 pmjones Exp $ /** @@ -85,6 +85,25 @@ { return "<br />\n"; } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + return "\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/deflist.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/deflist.php diff -u pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.3 pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.4 --- pear/Text_Wiki/Text/Wiki/Rule/deflist.php:1.3 Fri May 21 19:00:33 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/deflist.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: deflist.php,v 1.3 2004/05/21 23:00:33 pmjones Exp $ +// $Id: deflist.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ /** @@ -115,7 +115,7 @@ $return .= $this->addToken($options); // done! - return "\n" . $return . "\n"; + return "\n" . $return . "\n\n"; } http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/newline.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/newline.php diff -u pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.2 pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.3 --- pear/Text_Wiki/Text/Wiki/Rule/newline.php:1.2 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/newline.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: newline.php,v 1.2 2004/05/02 13:12:43 pmjones Exp $ +// $Id: newline.php,v 1.3 2004/05/22 20:33:09 pmjones Exp $ /** @@ -86,6 +86,25 @@ { return "<br />\n"; } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + echo "\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/paragraph.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/paragraph.php diff -u pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.2 pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.3 --- pear/Text_Wiki/Text/Wiki/Rule/paragraph.php:1.2 Sun May 2 09:12:43 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/paragraph.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: paragraph.php,v 1.2 2004/05/02 13:12:43 pmjones Exp $ +// $Id: paragraph.php,v 1.3 2004/05/22 20:33:09 pmjones Exp $ /** @@ -137,5 +137,24 @@ return "</p>\n\n"; } } + + + /** + * + * Renders a token into text matching the requested format. + * + * @access public + * + * @param array $options The "options" portion of the token (second + * element). + * + * @return string The text rendered from the token options. + * + */ + + function renderPlain($options) + { + echo "\n\n"; + } } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/wikilink.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki/Rule/wikilink.php diff -u pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.3 pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.4 --- pear/Text_Wiki/Text/Wiki/Rule/wikilink.php:1.3 Sun May 2 19:16:46 2004 +++ pear/Text_Wiki/Text/Wiki/Rule/wikilink.php Sat May 22 16:33:09 2004 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: wikilink.php,v 1.3 2004/05/02 23:16:46 pmjones Exp $ +// $Id: wikilink.php,v 1.4 2004/05/22 20:33:09 pmjones Exp $ /** @@ -177,7 +177,7 @@ /** * - * Renders a token into text matching the requested format. + * Renders a token into XHTML. * * @access public *