From 8b0c8f0d0557d8ab88409cd9691cd1ee279321d5 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 25 Apr 2006 07:01:04 +0000 Subject: Complete #70, update TDateFormat, NumberFormat add zerofill. Update TDatePicker quickstart doc, I18N quickstart doc. --- buildscripts/jsbuilder/build.php | 2 +- buildscripts/texbuilder/build.php | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'buildscripts') diff --git a/buildscripts/jsbuilder/build.php b/buildscripts/jsbuilder/build.php index 910f0394..cc41c963 100644 --- a/buildscripts/jsbuilder/build.php +++ b/buildscripts/jsbuilder/build.php @@ -166,7 +166,7 @@ foreach($libraries as $libFile => $sourceFiles) echo "Saving file {$libFile}\n"; $builds++; } -if(preg_match('/doc*/', $argv[1])) +if(isset($argv[1]) && preg_match('/doc*/', $argv[1])) { $files = ""; foreach($libraries as $lib) diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php index 4988bccd..4e2d8be6 100644 --- a/buildscripts/texbuilder/build.php +++ b/buildscripts/texbuilder/build.php @@ -155,7 +155,12 @@ function include_figure($info, $filename) function anchor($matches) { $page = get_current_path(); - return '\hypertarget{'.$page.'/'.$matches[1].'}{}'; + return '\hypertarget{'.$page.'/'.strtolower($matches[1]).'}{}'; +} + +function texttt($matches) +{ + return '\texttt{'.str_replace(array('#','_'),array('\#','\_'), $matches[1]).'}'; } function get_current_path() @@ -222,7 +227,7 @@ function parse_html($page,$html) //text modifiers $html = preg_replace('/([^<]*)<\/b>/', '\textbf{$1}', $html); $html = preg_replace('/([^<]*)<\/i>/', '\emph{$1}', $html); - $html = preg_replace('/([^<]*)<\/tt>/', '\texttt{$1}', $html); + $html = preg_replace_callback('/([^<]*)<\/tt>/', 'texttt', $html); //links $html = preg_replace_callback('/]+href="([^"]*)"[^>]*>([^<]*)<\/a>/', -- cgit v1.2.3