cvs: phd(PHD_0_4) / package.xml /formats xhtml.php

From: Date: Tue, 11 Nov 2008 20:03:39 +0000
Subject: cvs: phd(PHD_0_4) / package.xml /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2506@lists.php.net to get a copy of this message
bjori Tue Nov 11 20:03:39 2008 UTC Modified files: (Branch: PHD_0_4) /phd package.xml /phd/formats xhtml.php Log: MFH: Added support for orderedlist numeration http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.74.2.19.2.14&r2=1.74.2.19.2.15&diff_format=u Index: phd/package.xml diff -u phd/package.xml:1.74.2.19.2.14 phd/package.xml:1.74.2.19.2.15 --- phd/package.xml:1.74.2.19.2.14 Sat Nov 8 07:41:58 2008 +++ phd/package.xml Tue Nov 11 20:03:39 2008 @@ -52,23 +52,7 @@ </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license> <notes> - - Fixed bug #46413 Weird examples in Unix manual pages (Rudy) - - Added varlistentries to the CHM index. (Rudy) - - Language support (for autogenerated texts): - * Turkish (by Nilgün Belma Bugüner) - - Prevent prev/next errors in combination with chunking elements without ids (Christian) - - Support double nested chunking elements without ids (Christian) - - Make table captions render properly in peardoc (Christian) - - add support for &lt;arg&gt; and &lt;cmdsynopsis&gt; used in peardoc (Christian) - - Fix bug #46415: Don't chunk first section on parent site when it has children. (Christian) - - Implement request #46411: Allow random chunking depths (Christian) - - Implement request #46412: Allow random TOC depths (Christian) - - Implement request #46493: Implement new pear api linking tag (Christian) - - Make pear chm theme work (Christian) - - Make html generated in pear themes nearly 100% valid XHTML (Christian) - - Make "Prev" links work correctly on last pages (e.g. last in chapter) (Christian) - - Change double quotes to single ones, gives speedup for pear builds (Brett) - - Docblock enhancements and Coding Standards fixes (Brett) + - Added support for orderedlist numeration. (Hannes) </notes> <contents> http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.5&r2=1.67.2.2.2.6&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.67.2.2.2.5 phd/formats/xhtml.php:1.67.2.2.2.6 --- phd/formats/xhtml.php:1.67.2.2.2.5 Mon Nov 10 09:34:38 2008 +++ phd/formats/xhtml.php Tue Nov 11 20:03:39 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.67.2.2.2.5 2008/11/10 09:34:38 nilgun Exp $ */ +/* $Id: xhtml.php,v 1.67.2.2.2.6 2008/11/11 20:03:39 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -1224,7 +1224,24 @@ public function format_orderedlist($open, $name, $attrs, $props) { if ($open) { - return $this->escapePara() . '<ol>'; + $numeration = "1"; + if (isset($attrs[PhDReader::XMLNS_DOCBOOK]["numeration"])) { + switch($attrs[PhDReader::XMLNS_DOCBOOK]["numeration"]) { + case "upperalpha": + $numeration = "A"; + break; + case "loweralpha": + $numeration = "a"; + break; + case "upperroman": + $numeration = "I"; + break; + case "lowerroman": + $numeration = "i"; + break; + } + } + return $this->escapePara(). '<ol type="' .$numeration. '">'; } return '</ol>' . $this->restorePara(); }

« previous php.doc.cvs (#2506) next »