From d2f5f11ed11c17ac61cbf0d76cf69cf3d184c5ee Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Sat, 1 Sep 2012 09:58:14 -0500 Subject: [PATCH 01/11] add release 1.4.2 to history... it was missing --- package.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/package.xml b/package.xml index 36bd7f8..3ecbd1c 100755 --- a/package.xml +++ b/package.xml @@ -3218,6 +3218,30 @@ Includes these Sourceforge items: - [1733936] "phpdoc" does not return with error code "0" on success [ashnazg|blueyed] + + + 1.4.2 + 1.4.0 + + + stable + stable + + 2008-03-30 + LGPL + +Includes these PEAR items: +Bug #12361: missing links to the filesource +Bug #12699: makedocs.sh script needs a better install location +Bug #12929: paramete 'ignore' oper mistake +Doc #12764: Update INSTALL for web docbuilder + +Includes these Sourceforge items: +- [1829133] Progress display not happening until conversion finished [ashnazg] +- [1779257] ignore=.. option not working correctly on Win | fix attaced [ashnazg|mrasnika] + + + 1.4.3 From 489cd853074d05adf4766a85365771e9dbf0e821 Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Sat, 1 Sep 2012 12:43:01 -0500 Subject: [PATCH 02/11] Bug #19243 Tutorials are not honoring ordered vs unordered lists --- phpDocumentor/Converter.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpDocumentor/Converter.inc b/phpDocumentor/Converter.inc index f558b5e..caaa704 100755 --- a/phpDocumentor/Converter.inc +++ b/phpDocumentor/Converter.inc @@ -1267,7 +1267,8 @@ class Converter } else { // if close tag is specified, use the open and close as literal if ($name == 'programlisting' && isset($attr['role']) && - ($attr['role'] == 'php' || $attr['role'] == 'tutorial' || $attr['role'] == 'html')) + ($attr['role'] == 'php' || $attr['role'] == 'tutorial' || + $attr['role'] == 'html' || $attr['role'] == 'xml') ) { // highlight PHP source // var_dump($unconvertedcdata, $cdata);exit; if ($attr['role'] == 'php') { @@ -1276,7 +1277,10 @@ class Converter $cdata = $this->TutorialExample($unconvertedcdata); } elseif ($attr['role'] == 'html') { $cdata = $unconvertedcdata; + } elseif ($attr['role'] == 'xml') { + $cdata = '
'.htmlentities($unconvertedcdata).'
'; } + $cdata = $this->template_options['ppage'][$name].$this->AttrToString($name,$attr). $cdata .$this->template_options['ppage']['/'.$name]; } else {// normal case below $cdata = $this->template_options['ppage'][$name].$this->AttrToString($name,$attr). $cdata .$this->template_options['ppage']['/'.$name]; From a8e574bea88722e8f3ceb29f7c9143545671f088 Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Sat, 1 Sep 2012 13:03:10 -0500 Subject: [PATCH 03/11] Request #19242 Allow images in tutorials --- phpDocumentor/PackagePageElements.inc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/phpDocumentor/PackagePageElements.inc b/phpDocumentor/PackagePageElements.inc index 2d46018..a9afc74 100755 --- a/phpDocumentor/PackagePageElements.inc +++ b/phpDocumentor/PackagePageElements.inc @@ -189,6 +189,32 @@ class parserXMLDocBookTag extends parserStringWithInlineTags list($this->attributes,$value) = $c->ConvertTitle($this->name, $this->attributes, $this->_title->Convert($c, $postprocess), $value); } + + // if current element is a graphic make sure the linked file is copied to the + // given location + if ($this->name == "graphic") + { + $val = $this->attributes['fileref']; + $src = substr($c->curpath, 0, (strrpos($c->curpath, $c->package) - strlen($c->curpath)) ); + $sourceDir = $src.$c->package.'/'; + $targetDir = $c->base_dir.'/'.$c->package.'/'; + $targetDir.= (!empty($c->subpackage)) ? $c->subpackage.'/' : ''; + $targetDir .= 'figures/'; + $filename = substr($val, strrpos($val, '/') + 1); + + if (file_exists($sourceDir.$val)) + { + if (!file_exists($targetDir)) + { + mkdir($targetDir,0775, true); + } + if (copy($sourceDir.$val, $targetDir.$filename)) + { + $this->attributes['fileref'] = './figures/'.$filename; + } + } + } + return $c->TranslateTag($this->name, $this->attributes, $value, $simvalue); } From 31e5390876967cd866c93314c2b563b2b8e8b63b Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Sat, 1 Sep 2012 14:21:13 -0500 Subject: [PATCH 04/11] Request #4960 support for different encoding --- phpDocumentor/Converter.inc | 11 ++++++++++- .../Converters/CHM/default/CHMdefaultConverter.inc | 4 ++-- .../default/templates/default/templates/blank.tpl | 4 ++-- .../default/templates/default/templates/header.tpl | 3 ++- .../default/templates/default/templates/index.tpl | 1 + .../Converters/HTML/Smarty/HTMLSmartyConverter.inc | 4 ++-- .../HTML/Smarty/templates/HandS/templates/header.tpl | 6 +++--- .../HTML/Smarty/templates/PHP/templates/header.tpl | 3 ++- .../Smarty/templates/default/templates/header.tpl | 1 + .../Converters/HTML/frames/HTMLframesConverter.inc | 4 ++-- .../frames/templates/DOM/default/templates/blank.tpl | 4 ++-- .../templates/DOM/default/templates/header.tpl | 4 ++-- .../frames/templates/DOM/default/templates/index.tpl | 4 ++-- .../templates/DOM/default/templates/top_frame.tpl | 4 ++-- .../frames/templates/DOM/earthli/templates/blank.tpl | 4 ++-- .../templates/DOM/earthli/templates/header.tpl | 4 ++-- .../frames/templates/DOM/earthli/templates/index.tpl | 4 ++-- .../templates/DOM/earthli/templates/top_frame.tpl | 4 ++-- .../frames/templates/DOM/l0l33t/templates/blank.tpl | 4 ++-- .../frames/templates/DOM/l0l33t/templates/header.tpl | 4 ++-- .../frames/templates/DOM/l0l33t/templates/index.tpl | 4 ++-- .../templates/DOM/l0l33t/templates/top_frame.tpl | 4 ++-- .../templates/DOM/phpdoc.de/templates/blank.tpl | 4 ++-- .../templates/DOM/phpdoc.de/templates/header.tpl | 4 ++-- .../templates/DOM/phpdoc.de/templates/index.tpl | 4 ++-- .../templates/DOM/phpdoc.de/templates/top_frame.tpl | 4 ++-- .../templates/DOM/phphtmllib/templates/blank.tpl | 4 ++-- .../templates/DOM/phphtmllib/templates/header.tpl | 4 ++-- .../templates/DOM/phphtmllib/templates/index.tpl | 4 ++-- .../templates/DOM/phphtmllib/templates/top_frame.tpl | 4 ++-- .../frames/templates/default/templates/blank.tpl | 4 ++-- .../frames/templates/default/templates/header.tpl | 4 ++-- .../frames/templates/default/templates/index.tpl | 4 ++-- .../frames/templates/default/templates/top_frame.tpl | 6 +++--- .../frames/templates/earthli/templates/blank.tpl | 4 ++-- .../frames/templates/earthli/templates/header.tpl | 4 ++-- .../frames/templates/earthli/templates/index.tpl | 4 ++-- .../frames/templates/earthli/templates/top_frame.tpl | 6 +++--- .../HTML/frames/templates/l0l33t/templates/blank.tpl | 4 ++-- .../frames/templates/l0l33t/templates/header.tpl | 4 ++-- .../HTML/frames/templates/l0l33t/templates/index.tpl | 4 ++-- .../frames/templates/l0l33t/templates/top_frame.tpl | 4 ++-- .../frames/templates/phpdoc.de/templates/blank.tpl | 4 ++-- .../frames/templates/phpdoc.de/templates/header.tpl | 4 ++-- .../frames/templates/phpdoc.de/templates/index.tpl | 4 ++-- .../templates/phpdoc.de/templates/top_frame.tpl | 4 ++-- .../frames/templates/phpedit/templates/blank.tpl | 4 ++-- .../frames/templates/phpedit/templates/header.tpl | 4 ++-- .../frames/templates/phpedit/templates/index.tpl | 4 ++-- .../frames/templates/phphtmllib/templates/blank.tpl | 4 ++-- .../frames/templates/phphtmllib/templates/header.tpl | 4 ++-- .../frames/templates/phphtmllib/templates/index.tpl | 4 ++-- .../templates/phphtmllib/templates/top_frame.tpl | 4 ++-- .../Converters/PDF/default/PDFdefaultConverter.inc | 6 +++--- .../Converters/XML/DocBook/XMLDocBookConverter.inc | 2 +- .../DocBook/peardoc2/XMLDocBookpeardoc2Converter.inc | 4 ++-- phpDocumentor/IntermediateParser.inc | 12 +++++++++--- phpDocumentor/Io.inc | 4 ++++ phpDocumentor/Setup.inc.php | 6 ++++-- 59 files changed, 138 insertions(+), 113 deletions(-) diff --git a/phpDocumentor/Converter.inc b/phpDocumentor/Converter.inc index caaa704..7992723 100755 --- a/phpDocumentor/Converter.inc +++ b/phpDocumentor/Converter.inc @@ -391,6 +391,12 @@ class Converter */ var $title = 'Generated Documentation'; + /** + * @var string + * @see phpDocumentor_IntermediateParser::$charset + */ + var $charset = 'iso-8859-1'; + /** * Options for each template, parsed from the options.ini file in the template base directory * @tutorial phpDocumentor/tutorials.pkg#conversion.ppage @@ -448,8 +454,9 @@ class Converter * @param string {@link $targetDir} value * @param string {@link $templateDir} value * @param string (@link $title} value + * @param string (@link $charset} value */ - function Converter(&$allp, &$packp, &$classes, &$procpages, $po, $pp, $qm, $targetDir, $template, $title) + function Converter(&$allp, &$packp, &$classes, &$procpages, $po, $pp, $qm, $targetDir, $template, $title, $charset) { $this->all_packages = $allp; $this->package_parents = $packp; @@ -467,6 +474,7 @@ class Converter $this->classes = &$classes; $this->roots = $classes->getRoots($this->processSpecialRoots); $this->title = $title; + $this->charset = $charset; $this->setTemplateDir($template); $this->setTargetdir($targetDir); } @@ -5091,6 +5099,7 @@ class Converter $templ->config_dir = realpath($this->smarty_dir . PATH_DELIMITER . 'configs'); $templ->assign("date",date("r",time())); $templ->assign("maintitle",$this->title); + $templ->assign("charset",$this->charset); $templ->assign('default_package',$GLOBALS['phpDocumentor_DefaultPackageName']); $templ->assign("package",$this->package); $templ->assign("phpdocversion",PHPDOCUMENTOR_VER); diff --git a/phpDocumentor/Converters/CHM/default/CHMdefaultConverter.inc b/phpDocumentor/Converters/CHM/default/CHMdefaultConverter.inc index ea0dd45..91c0010 100755 --- a/phpDocumentor/Converters/CHM/default/CHMdefaultConverter.inc +++ b/phpDocumentor/Converters/CHM/default/CHMdefaultConverter.inc @@ -132,9 +132,9 @@ class CHMdefaultConverter extends Converter * sets {@link $base_dir} to $targetDir * @see Converter() */ - function CHMdefaultConverter(&$allp, &$packp, &$classes, &$procpages, $po, $pp, $qm, $targetDir, $templateDir, $title) + function CHMdefaultConverter(&$allp, &$packp, &$classes, &$procpages, $po, $pp, $qm, $targetDir, $templateDir, $title, $charset) { - Converter::Converter($allp, $packp, $classes, $procpages,$po, $pp, $qm, $targetDir, $templateDir, $title); + Converter::Converter($allp, $packp, $classes, $procpages,$po, $pp, $qm, $targetDir, $templateDir, $title, $charset); $this->base_dir = $targetDir; } diff --git a/phpDocumentor/Converters/CHM/default/templates/default/templates/blank.tpl b/phpDocumentor/Converters/CHM/default/templates/default/templates/blank.tpl index 6a05f27..0b71781 100755 --- a/phpDocumentor/Converters/CHM/default/templates/default/templates/blank.tpl +++ b/phpDocumentor/Converters/CHM/default/templates/default/templates/blank.tpl @@ -2,7 +2,7 @@ {$maintitle} - +

{$maintitle}

@@ -10,4 +10,4 @@
This documentation was generated by phpDocumentor v{$phpdocversion}
- \ No newline at end of file + diff --git a/phpDocumentor/Converters/CHM/default/templates/default/templates/header.tpl b/phpDocumentor/Converters/CHM/default/templates/default/templates/header.tpl index 30fad6b..8ea73c1 100755 --- a/phpDocumentor/Converters/CHM/default/templates/default/templates/header.tpl +++ b/phpDocumentor/Converters/CHM/default/templates/default/templates/header.tpl @@ -9,6 +9,7 @@ {$title} + {if $bgleft} {/if} - + {if $top3}
{/if} diff --git a/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/index.tpl b/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/index.tpl index 7cd6109..6bc5eee 100755 --- a/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/index.tpl +++ b/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/index.tpl @@ -1,4 +1,4 @@ - + @@ -6,7 +6,7 @@ {$title} - + diff --git a/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/top_frame.tpl b/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/top_frame.tpl index 36d1e5a..c4121ee 100755 --- a/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/top_frame.tpl +++ b/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/top_frame.tpl @@ -1,4 +1,4 @@ - + @@ -6,7 +6,7 @@ {$title} - +