[PHP-DOC] cvs: phpdoc /chm make_chm.php

2007-07-26 Thread Nuno Lopes
nlopess Thu Jul 26 15:13:22 2007 UTC

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  fix the TOC regex, and bring the appendices back to the TOC
  
http://cvs.php.net/viewvc.cgi/phpdoc/chm/make_chm.php?r1=1.27&r2=1.28&diff_format=u
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.27 phpdoc/chm/make_chm.php:1.28
--- phpdoc/chm/make_chm.php:1.27Thu Jul 26 14:24:28 2007
+++ phpdoc/chm/make_chm.php Thu Jul 26 15:13:21 2007
@@ -88,7 +88,7 @@
 
 $MAIN_REGEXP = join("|", $MAIN_FILES);
 
-
preg_match_all("![IVX]+[^<]*([^<]+)(.+)!Ui",
 $indexline, $matches, PREG_SET_ORDER);
+
preg_match_all("![IVX]+[^<]*([^<]+)(.+)<(?:DT|/DL)\\s*>!Ui",
 $indexline, $matches, PREG_SET_ORDER);
 
 // Go through the main files, and link in subpages
 foreach ($matches as $matchinfo) {


[PHP-DOC] cvs: phpdoc /chm make_chm.php

2007-07-26 Thread Nuno Lopes
nlopess Thu Jul 26 14:24:29 2007 UTC

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  internals has been moved to internals2
  what a stupid way of building a TOC...
  
http://cvs.php.net/viewvc.cgi/phpdoc/chm/make_chm.php?r1=1.26&r2=1.27&diff_format=u
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.26 phpdoc/chm/make_chm.php:1.27
--- phpdoc/chm/make_chm.php:1.26Sat Feb 24 22:59:43 2007
+++ phpdoc/chm/make_chm.php Thu Jul 26 14:24:28 2007
@@ -25,7 +25,7 @@
 "security.html",
 "features.html",
 "funcref.html",
-"internals.html",
+"internals2.html",
 "faq.html",
 "appendices.html"
 );


[PHP-DOC] cvs: phpdoc /chm make_chm.php

2005-09-04 Thread Nuno Lopes
nlopess Sun Sep  4 06:48:51 2005 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  fix #34365: out-of-date TOC
  
http://cvs.php.net/diff.php/phpdoc/chm/make_chm.php?r1=1.24&r2=1.25&ty=u
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.24 phpdoc/chm/make_chm.php:1.25
--- phpdoc/chm/make_chm.php:1.24Sun Jul 10 13:34:59 2005
+++ phpdoc/chm/make_chm.php Sun Sep  4 06:48:50 2005
@@ -18,13 +18,14 @@
 
 // Files on the top level of the TOC
 $MAIN_FILES = array(
+"preface.html",
 "getting-started.html",
 "install.html",
 "langref.html",
 "security.html",
 "features.html",
 "funcref.html",
-"api.html",
+"internals.html",
 "faq.html",
 "appendixes.html"
 );


[PHP-DOC] cvs: phpdoc /chm make_chm.php

2005-04-27 Thread Jakub Vrana
vrana   Wed Apr 27 13:07:06 2005 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Allow tags in titles (bug #28379)
  
http://cvs.php.net/diff.php/phpdoc/chm/make_chm.php?r1=1.22&r2=1.23&ty=u
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.22 phpdoc/chm/make_chm.php:1.23
--- phpdoc/chm/make_chm.php:1.22Sun Aug 24 15:07:12 2003
+++ phpdoc/chm/make_chm.php Wed Apr 27 13:07:06 2005
@@ -209,7 +209,7 @@
 $contents = oneLiner("$HTML_PATH/$filename");
 
 // Find all sublinks
-if 
(preg_match_all("!([^<]*)!U",
 $contents, $matches, PREG_SET_ORDER)) {
+if 
(preg_match_all("!(.*)!U",
 $contents, $matches, PREG_SET_ORDER)) {
 
 // Print out the file informations for all the links
 fputs_wrapper($toc, "\n");


[PHP-DOC] cvs: phpdoc /chm make_chm.php

2003-08-24 Thread Gabor Hojtsy
gobaSun Aug 24 15:07:13 2003 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Add support for security part
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.21 phpdoc/chm/make_chm.php:1.22
--- phpdoc/chm/make_chm.php:1.21Fri Jul 11 10:47:16 2003
+++ phpdoc/chm/make_chm.php Sun Aug 24 15:07:12 2003
@@ -20,6 +20,7 @@
 $MAIN_FILES = array(
 "getting-started.html",
 "langref.html",
+"security.html",
 "features.html",
 "funcref.html",
 "zend.html",


[PHP-DOC] cvs: phpdoc /chm make_chm.php make_chm_fancy.php

2003-07-11 Thread Moshe Doron
momoFri Jul 11 10:47:16 2003 EDT

  Modified files:  
/phpdoc/chm make_chm.php make_chm_fancy.php 
  Log:
  revert Hadar patch
  Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.20 phpdoc/chm/make_chm.php:1.21
--- phpdoc/chm/make_chm.php:1.20Fri Jul 11 06:19:49 2003
+++ phpdoc/chm/make_chm.php Fri Jul 11 10:47:16 2003
@@ -28,21 +28,6 @@
 "appendixes.html"
 );
 
-if($LANGUAGE == "he") {
-// Header for index and toc 
-$HEADER = '
-
-
-  
-  
-
-
-  
-
-  
-  ';
-}
-else {
 // Header for index and toc 
 $HEADER = '
 
@@ -55,7 +40,6 @@
 
   
   ';
-}
 
 makeProjectFile();
 makeContentFiles();
Index: phpdoc/chm/make_chm_fancy.php
diff -u phpdoc/chm/make_chm_fancy.php:1.9 phpdoc/chm/make_chm_fancy.php:1.10
--- phpdoc/chm/make_chm_fancy.php:1.9   Fri Jul 11 06:19:35 2003
+++ phpdoc/chm/make_chm_fancy.php   Fri Jul 11 10:47:16 2003
@@ -10,12 +10,6 @@
 include_once('common.php');
 include_once('chm_settings.php');
 
-if($LANGUAGE == "he") {
-   include_once("./scripts/rtlpatch/HtmlParser.class.php");
-   include_once("./scripts/rtlpatch/HtmlExtParser.class.php");
-   
-}
-
 // This script takes much time to run
 set_time_limit(0);
 
@@ -29,11 +23,7 @@
 $handle = opendir($HTML_PATH);
 while (false !== ($filename = readdir($handle))) {
 if (strpos($filename, ".html") && ($filename != "fancy-index.html")) {
-if($LANGUAGE == "he") {
-   fancy_parser_design($filename);
-} else {
-   fancy_design($filename);
-}
+fancy_design($filename);
 }
 }
 closedir($handle);
@@ -85,21 +75,12 @@
 // HR dropout
 $content = preg_replace("//", '', 
$content);
 
-   if($LANGUAGE == "he") {
-// Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-   else {
 // Whole page table and backgrounds
 $wpbegin = '';
 $bnavt = '';
 $lnavt = '';
 $space = '';
-   }
-   
+
 // Navheader backgound
 $content = 
preg_replace("/<\\/DIV\\s*>/Us",
 $wpbegin . '' . $bnavt . 
'' . $lnavt . 
'' . $space . '', $content);
@@ -150,127 +131,5 @@
 $counter++;
 
 } // fancy_design() function end
-
-
-// Convert one file from HTML => fancy HTML using CHtmlParser
-function fancy_parser_design($fname)
-{
-global $HTML_PATH, $FANCY_PATH, $LANGUAGE, $LANGUAGES, $counter, $original_index, 
$publication_date;
-   
-global $EHType,$HEType;
-
-// Get the contents of the file from $HTML_PATH
-//TODO: iconv stuff, for when charset element > byte
-$content = file_get_contents("$HTML_PATH/$fname");
-   $tree = new CHtmlExtParse($content);
-   
-   // CSS file linking
-   $head = $HEType["head"];
-   if(isset($tree->EBT[$head][0]))
-   $tree->ATE[$tree->EBT[$head][0]]["chaintoend"] = '';
-   
-   // Charset:
-   $meta = $HEType["meta"];
-   if(isset($tree->EBT[$meta])){
-   for($a=0;$aEBT[$meta]);$a++){
-   $elem = &$tree->ATE[$tree->EBT[$meta][$a]];
-   if(isset($elem["http-equiv"]) && 
$elem["http-equiv"]=="Content-type")
-   $elem["content"] = "text/html; 
{$LANGUAGES[$LANGUAGE]['mime_charset_name']}";
-   }
-   }
-   
-// No margins around
-$body = $HEType["body"];
-   if(isset($tree->EBT[$body][0])){
-   $tree->ATE[$tree->EBT[$body][0]]["TOPMARGIN"] ="0";
-   $tree->ATE[$tree->EBT[$body][0]]["LEFTMARGIN"] ="0";
-   }
-   
-   
-// HR dropout
-$tmp=0;
-   do{
-   if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"hr","properties"=>array("align","LEFT","width","100%"),"offset"=>($tmp+1{
-   $tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
-   }
-   } while($tmp);
-   
-   if($LANGUAGE == "he") {
-   // Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-   else {
-// Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-// Navheader backgound
-if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVHEADER"{
-   $tree->ATE[$tmp]["data"] = "$wpbegin$bnavt";
-   $tree->ATE[$tree->ECE[$tmp]]["data"] = 
"$lnavt$space";
-   $tree->ATE[$tmp+1]["cellpadding"] = "3";
-   $tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
-   }
-
-   // Navfooter backgound
-if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVFOOTER"{
-   $tree->ATE[$tmp]["data"] = "$space{$bnavt}{$lnavt}";
-   $tree->ATE[$tree->ECE[$tmp]]["data"] = 
"";
-   $tree->ATE[$tmp+1]["cellpadding"] = "3";
-   

[PHP-DOC] cvs: phpdoc /chm make_chm.php

2003-07-11 Thread Hadar Porat
hadar_p Fri Jul 11 06:19:49 2003 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Another hebrew change
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.19 phpdoc/chm/make_chm.php:1.20
--- phpdoc/chm/make_chm.php:1.19Tue May 13 17:24:15 2003
+++ phpdoc/chm/make_chm.php Fri Jul 11 06:19:49 2003
@@ -28,6 +28,21 @@
 "appendixes.html"
 );
 
+if($LANGUAGE == "he") {
+// Header for index and toc 
+$HEADER = '
+
+
+  
+  
+
+
+  
+
+  
+  ';
+}
+else {
 // Header for index and toc 
 $HEADER = '
 
@@ -40,6 +55,7 @@
 
   
   ';
+}
 
 makeProjectFile();
 makeContentFiles();



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-30 Thread Derick Rethans
derick  Mon Dec 30 06:14:10 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Add polish code
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.15 phpdoc/chm/make_chm.php:1.16
--- phpdoc/chm/make_chm.php:1.15Sat Dec 28 07:37:46 2002
+++ phpdoc/chm/make_chm.php Mon Dec 30 06:14:10 2002
@@ -84,6 +84,11 @@
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),
+"pl"=> array(
+   "langcode" => "0x415 Polish",
+   "preferred_charset" => "Windows-1250",
+   "preferred_font" => $DEFAULT_FONT
+   ),
 "pt_BR" => array(
"langcode" => "0x416 Portuguese (Brazil)",
"preferred_charset" => "Windows-1252",



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-28 Thread Gabor Hojtsy
gobaSat Dec 28 07:37:46 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Correcting comment, to reflect current situation
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.14 phpdoc/chm/make_chm.php:1.15
--- phpdoc/chm/make_chm.php:1.14Sun Dec 15 09:10:16 2002
+++ phpdoc/chm/make_chm.php Sat Dec 28 07:37:46 2002
@@ -3,10 +3,10 @@
 /* 
  PLEASE DO NOT MAKE ANY MAJOR MODIFICATIONS TO THIS CODE!
  There is a new script collection on the way to replace
- these scripts. This script is updated to handle many
- things. Code backported from the new script collection.
- Please be patient while it will be ready to put here.
- See make_chm.README for information until then.
+ these scripts. Please see the htmlhelp folder for the new
+ build system.
+ 
+ See make_chm.README for information about this system.
 */
 
 // Used directories and files



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-15 Thread Moriyoshi Koizumi
moriyoshi   Sun Dec 15 09:10:16 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Font name fix
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.13 phpdoc/chm/make_chm.php:1.14
--- phpdoc/chm/make_chm.php:1.13Fri Dec  6 02:10:42 2002
+++ phpdoc/chm/make_chm.php Sun Dec 15 09:10:16 2002
@@ -72,7 +72,7 @@
 "ja"=> array(
"langcode" => "0x411 Japanese",
"preferred_charset" => "CP932",
-   "preferred_font" => "MS P Gothic,10,0"
+   "preferred_font" => "‚l‚r ‚oƒSƒVƒbƒN,10,0"
),
 "kr"=> array(
"langcode" => "0x412 Korean",



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-05 Thread Derick Rethans
derick  Fri Dec  6 02:10:42 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - English (UK) is 0x809
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.12 phpdoc/chm/make_chm.php:1.13
--- phpdoc/chm/make_chm.php:1.12Fri Dec  6 02:00:26 2002
+++ phpdoc/chm/make_chm.php Fri Dec  6 02:10:42 2002
@@ -40,7 +40,7 @@
"preferred_font" => $DEFAULT_FONT
),
 "en"=> array(
-   "langcode" => "0x409 English (United Kingdom)",
+   "langcode" => "0x809 English (United Kingdom)",
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-05 Thread Derick Rethans
derick  Fri Dec  6 02:00:28 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Add Romanian and Slovak codes
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.11 phpdoc/chm/make_chm.php:1.12
--- phpdoc/chm/make_chm.php:1.11Wed Dec  4 13:30:31 2002
+++ phpdoc/chm/make_chm.php Fri Dec  6 02:00:26 2002
@@ -22,6 +22,7 @@
 // Array to manual code -> HTML Help Code conversion
 // Code list: http://www.helpware.net/htmlhelp/hh_info.htm
 // Charset list: http://www.microsoft.com/globaldev/nlsweb/default.asp
+// Language code: http://www.unicode.org/unicode/onlinedat/languages.html
 $LANGUAGES = array(
 "tw"=> array(
"langcode" => "0x404 Traditional Chinese",
@@ -39,7 +40,7 @@
"preferred_font" => $DEFAULT_FONT
),
 "en"=> array(
-   "langcode" => "0x809 English (United Kingdom)",
+   "langcode" => "0x409 English (United Kingdom)",
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),
@@ -86,6 +87,16 @@
 "pt_BR" => array(
"langcode" => "0x416 Portuguese (Brazil)",
"preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"ro"=> array(
+   "langcode" => "0x418 Romanian",
+   "preferred_charset" => "Windows-1250",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"sk"=> array(
+   "langcode" => "0x41b Slovak",
+   "preferred_charset" => "Windows-1250",
"preferred_font" => $DEFAULT_FONT
),
 "sl"=> array(



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-04 Thread Moriyoshi Koizumi
moriyoshi   Wed Dec  4 13:30:31 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  0x41b => Slovak
  0x424 => Slovenian
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.10 phpdoc/chm/make_chm.php:1.11
--- phpdoc/chm/make_chm.php:1.10Wed Dec  4 03:43:01 2002
+++ phpdoc/chm/make_chm.php Wed Dec  4 13:30:31 2002
@@ -89,7 +89,7 @@
"preferred_font" => $DEFAULT_FONT
),
 "sl"=> array(
-   "langcode" => "0x41b Slovenian",
+   "langcode" => "0x424 Slovenian",
"preferred_charset" => "Windows-1250",
"preferred_font" => $DEFAULT_FONT
),



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-04 Thread Derick Rethans
derick  Wed Dec  4 03:43:01 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Fix language code
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.9 phpdoc/chm/make_chm.php:1.10
--- phpdoc/chm/make_chm.php:1.9 Wed Dec  4 03:41:37 2002
+++ phpdoc/chm/make_chm.php Wed Dec  4 03:43:01 2002
@@ -89,7 +89,7 @@
"preferred_font" => $DEFAULT_FONT
),
 "sl"=> array(
-   "langcode" => "0x41d Slovenian",
+   "langcode" => "0x41b Slovenian",
"preferred_charset" => "Windows-1250",
"preferred_font" => $DEFAULT_FONT
),



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-04 Thread Derick Rethans
derick  Wed Dec  4 03:41:37 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Fix charsets and add link
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.8 phpdoc/chm/make_chm.php:1.9
--- phpdoc/chm/make_chm.php:1.8 Wed Dec  4 01:59:54 2002
+++ phpdoc/chm/make_chm.php Wed Dec  4 03:41:37 2002
@@ -21,6 +21,7 @@
 
 // Array to manual code -> HTML Help Code conversion
 // Code list: http://www.helpware.net/htmlhelp/hh_info.htm
+// Charset list: http://www.microsoft.com/globaldev/nlsweb/default.asp
 $LANGUAGES = array(
 "tw"=> array(
"langcode" => "0x404 Traditional Chinese",
@@ -89,11 +90,11 @@
),
 "sl"=> array(
"langcode" => "0x41d Slovenian",
-   "preferred_charset" => "Windows-1252",
+   "preferred_charset" => "Windows-1250",
"preferred_font" => $DEFAULT_FONT
),
 "sv"=> array(
-   "langcode" => "0x41d Swedish (Netherlands)",
+   "langcode" => "0x41d Swedish",
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-04 Thread Moriyoshi Koizumi
Derick Rethans <[EMAIL PROTECTED]> wrote:

> On Wed, 4 Dec 2002, Moriyoshi Koizumi wrote:
> 
> > IIRC, Slovenian uses Windows-1250?
> 
> Perhaps... do you have a list of those? I just added an entry to let 
> make_chm.php work again for these languages.

http://www.microsoft.com/globaldev/nlsweb/default.asp

This might help you, but the list doesn't imply correspondences between IBM
code pages and ISO 8859 character set registries.

Moriyoshi

> 
> Derick
> 
> 
> > 
> > Moriyoshi
> > 
> > "Derick Rethans" <[EMAIL PROTECTED]> wrote:
> > 
> > > derickWed Dec  4 01:59:54 2002 EDT
> > > 
> > >   Modified files:  
> > > /phpdoc/chm   make_chm.php 
> > >   Log:
> > >   - Add some more codes
> > >   
> > >   
> > > Index: phpdoc/chm/make_chm.php
> > > diff -u phpdoc/chm/make_chm.php:1.7 phpdoc/chm/make_chm.php:1.8
> > > --- phpdoc/chm/make_chm.php:1.7   Tue Dec  3 13:56:23 2002
> > > +++ phpdoc/chm/make_chm.php   Wed Dec  4 01:59:54 2002
> > > @@ -87,6 +87,16 @@
> > > "preferred_charset" => "Windows-1252",
> > > "preferred_font" => $DEFAULT_FONT
> > > ),
> > > +"sl"=> array(
> > > +   "langcode" => "0x41d Slovenian",
> > > +   "preferred_charset" => "Windows-1252",
> > > +   "preferred_font" => $DEFAULT_FONT
> > > +   ),
> > > +"sv"=> array(
> > > +   "langcode" => "0x41d Swedish (Netherlands)",
> > > +   "preferred_charset" => "Windows-1252",
> > > +   "preferred_font" => $DEFAULT_FONT
> > > +   ),
> > >  "zh"=> array(
> > > "langcode" => "0x804 Simplified Chinese",
> > > "preferred_charset" => "CP936",
> > > 
> > > 
> > > 
> > > -- 
> > > PHP Documentation Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > 
> > 
> 
> -- 
> 
> -
>  Derick Rethans http://derickrethans.nl/ 
>  PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
> -
> 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-03 Thread Derick Rethans
On Wed, 4 Dec 2002, Moriyoshi Koizumi wrote:

> IIRC, Slovenian uses Windows-1250?

Perhaps... do you have a list of those? I just added an entry to let 
make_chm.php work again for these languages.

Derick


> 
> Moriyoshi
> 
> "Derick Rethans" <[EMAIL PROTECTED]> wrote:
> 
> > derick  Wed Dec  4 01:59:54 2002 EDT
> > 
> >   Modified files:  
> > /phpdoc/chm make_chm.php 
> >   Log:
> >   - Add some more codes
> >   
> >   
> > Index: phpdoc/chm/make_chm.php
> > diff -u phpdoc/chm/make_chm.php:1.7 phpdoc/chm/make_chm.php:1.8
> > --- phpdoc/chm/make_chm.php:1.7 Tue Dec  3 13:56:23 2002
> > +++ phpdoc/chm/make_chm.php Wed Dec  4 01:59:54 2002
> > @@ -87,6 +87,16 @@
> > "preferred_charset" => "Windows-1252",
> > "preferred_font" => $DEFAULT_FONT
> > ),
> > +"sl"=> array(
> > +   "langcode" => "0x41d Slovenian",
> > +   "preferred_charset" => "Windows-1252",
> > +   "preferred_font" => $DEFAULT_FONT
> > +   ),
> > +"sv"=> array(
> > +   "langcode" => "0x41d Swedish (Netherlands)",
> > +   "preferred_charset" => "Windows-1252",
> > +   "preferred_font" => $DEFAULT_FONT
> > +   ),
> >  "zh"=> array(
> > "langcode" => "0x804 Simplified Chinese",
> > "preferred_charset" => "CP936",
> > 
> > 
> > 
> > -- 
> > PHP Documentation Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-03 Thread Moriyoshi Koizumi
IIRC, Slovenian uses Windows-1250?

Moriyoshi

"Derick Rethans" <[EMAIL PROTECTED]> wrote:

> derickWed Dec  4 01:59:54 2002 EDT
> 
>   Modified files:  
> /phpdoc/chm   make_chm.php 
>   Log:
>   - Add some more codes
>   
>   
> Index: phpdoc/chm/make_chm.php
> diff -u phpdoc/chm/make_chm.php:1.7 phpdoc/chm/make_chm.php:1.8
> --- phpdoc/chm/make_chm.php:1.7   Tue Dec  3 13:56:23 2002
> +++ phpdoc/chm/make_chm.php   Wed Dec  4 01:59:54 2002
> @@ -87,6 +87,16 @@
> "preferred_charset" => "Windows-1252",
> "preferred_font" => $DEFAULT_FONT
> ),
> +"sl"=> array(
> +   "langcode" => "0x41d Slovenian",
> +   "preferred_charset" => "Windows-1252",
> +   "preferred_font" => $DEFAULT_FONT
> +   ),
> +"sv"=> array(
> +   "langcode" => "0x41d Swedish (Netherlands)",
> +   "preferred_charset" => "Windows-1252",
> +   "preferred_font" => $DEFAULT_FONT
> +   ),
>  "zh"=> array(
> "langcode" => "0x804 Simplified Chinese",
> "preferred_charset" => "CP936",
> 
> 
> 
> -- 
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-03 Thread Derick Rethans
derick  Wed Dec  4 01:59:54 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Add some more codes
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.7 phpdoc/chm/make_chm.php:1.8
--- phpdoc/chm/make_chm.php:1.7 Tue Dec  3 13:56:23 2002
+++ phpdoc/chm/make_chm.php Wed Dec  4 01:59:54 2002
@@ -87,6 +87,16 @@
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),
+"sl"=> array(
+   "langcode" => "0x41d Slovenian",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"sv"=> array(
+   "langcode" => "0x41d Swedish (Netherlands)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
 "zh"=> array(
"langcode" => "0x804 Simplified Chinese",
"preferred_charset" => "CP936",



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-12-03 Thread Derick Rethans
derick  Tue Dec  3 13:56:23 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Add code for finnish
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.6 phpdoc/chm/make_chm.php:1.7
--- phpdoc/chm/make_chm.php:1.6 Sun Nov 17 11:11:54 2002
+++ phpdoc/chm/make_chm.php Tue Dec  3 13:56:23 2002
@@ -52,6 +52,11 @@
"preferred_charset" => "Windows-1252",
"preferred_font" => $DEFAULT_FONT
),
+"fi"=> array(
+   "langcode" => "0x40b Finnish",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
 "hu"=> array(
"langcode" => "0x40e Hungarian",
"preferred_charset" => "Windows-1250",



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-11-17 Thread Moriyoshi Koizumi
Thanks.

Moriyoshi

"CHAILLAN Nicolas" <[EMAIL PROTECTED]> wrote:

> nicos Sun Nov 17 11:11:54 2002 EDT
> 
>   Modified files:  
> /phpdoc/chm   make_chm.php 
>   Log:
>   adding patch of Moriyoshi Koizumi see phpdoc mailing for details
>   
>   


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-11-17 Thread CHAILLAN Nicolas
nicos   Sun Nov 17 11:11:54 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  adding patch of Moriyoshi Koizumi see phpdoc mailing for details
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.5 phpdoc/chm/make_chm.php:1.6
--- phpdoc/chm/make_chm.php:1.5 Sun Oct  6 05:35:03 2002
+++ phpdoc/chm/make_chm.php Sun Nov 17 11:11:54 2002
@@ -14,25 +14,79 @@
 $FANCY_PATH= getenv("PHP_HELP_COMPILE_FANCYDIR");
 $LANGUAGE  = getenv("PHP_HELP_COMPILE_LANG");
 $INDEX_IN_HTML = "index.html";
+$INTERNAL_CHARSET = "UTF-8";
+$DEFAULT_FONT = "Arial,10,0";
 
 if (empty($FANCY_PATH)) { $FANCY_PATH = $HTML_PATH; }
 
 // Array to manual code -> HTML Help Code conversion
 // Code list: http://www.helpware.net/htmlhelp/hh_info.htm
 $LANGUAGES = array(
-"tw"=> "0x404 Traditional Chinese",
-"cs"=> "0x405 Czech",
-"de"=> "0x407 German (Germany)",
-"en"=> "0x809 Enlish (United Kingdom)",
-"es"=> "0xc0a Spanish (International Sort)",
-"fr"=> "0x40c French (France)",
-"hu"=> "0x40e Hungarian",
-"it"=> "0x410 Italian (Italy)",
-"ja"=> "0x411 Japanese",
-"kr"=> "0x412 Korean",
-"nl"=> "0x413 Dutch (Netherlands)",
-"pt_BR" => "0x416 Portuguese (Brazil)",
-"zh"=> "0x804 Simplified Chinese"
+"tw"=> array(
+   "langcode" => "0x404 Traditional Chinese",
+   "preferred_charset" => "CP950",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"cs"=> array(
+   "langcode" => "0x405 Czech",
+   "preferred_charset" => "Windows-1250",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"de"=> array(
+   "langcode" => "0x407 German (Germany)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"en"=> array(
+   "langcode" => "0x809 English (United Kingdom)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"es"=> array(
+   "langcode" => "0xc0a Spanish (International Sort)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"fr"=> array(
+   "langcode" => "0x40c French (France)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"hu"=> array(
+   "langcode" => "0x40e Hungarian",
+   "preferred_charset" => "Windows-1250",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"it"=> array(
+   "langcode" => "0x410 Italian (Italy)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"ja"=> array(
+   "langcode" => "0x411 Japanese",
+   "preferred_charset" => "CP932",
+   "preferred_font" => "MS P Gothic,10,0"
+   ),
+"kr"=> array(
+   "langcode" => "0x412 Korean",
+   "preferred_charset" => "CP949",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"nl"=> array(
+   "langcode" => "0x413 Dutch (Netherlands)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"pt_BR" => array(
+   "langcode" => "0x416 Portuguese (Brazil)",
+   "preferred_charset" => "Windows-1252",
+   "preferred_font" => $DEFAULT_FONT
+   ),
+"zh"=> array(
+   "langcode" => "0x804 Simplified Chinese",
+   "preferred_charset" => "CP936",
+   "preferred_font" => $DEFAULT_FONT
+   )
 );
 
 // Files on the top level of the TOC
@@ -46,6 +100,18 @@
 "appendixes.html"
 );
 
+// backwards compatibility
+if (!function_exists("file_get_contents")) {
+function file_get_contents($file)
+{
+$cnt = file($file);
+if ($cnt !== false) {
+return join('', $cnt);
+}
+return false;
+}
+}
+
 // Header for index and toc 
 $HEADER = '
 
@@ -72,8 +138,8 @@
 $index = fopen("php_manual_$LANGUAGE.hhk", "w");
 
 // Write out file headers
-fputs($toc,   $HEADER);
-fputs($index, $HEADER);
+fputs_wrapper($toc,   $HEADER);
+fputs_wrapper($index, $HEADER);
 
 // Read original index file and drop out newlines
 $indexline = oneLiner("$HTML_PATH/$INDEX_IN_HTML");
@@ -85,7 +151,7 @@
 if ($FIRST_PAGE != $INDEX_IN_HTML) {
 
 // Find the name of the Table of Contents
-preg_match('|

[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-10-06 Thread Wei-ching Kao

coldocean   Sun Oct  6 05:35:04 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  add traditional chinese in $LANGUAGES
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.4 phpdoc/chm/make_chm.php:1.5
--- phpdoc/chm/make_chm.php:1.4 Fri Aug 30 11:08:41 2002
+++ phpdoc/chm/make_chm.php Sun Oct  6 05:35:03 2002
@@ -20,6 +20,7 @@
 // Array to manual code -> HTML Help Code conversion
 // Code list: http://www.helpware.net/htmlhelp/hh_info.htm
 $LANGUAGES = array(
+"tw"=> "0x404 Traditional Chinese",
 "cs"=> "0x405 Czech",
 "de"=> "0x407 German (Germany)",
 "en"=> "0x809 Enlish (United Kingdom)",



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php make_chm_fancy.php

2002-08-30 Thread Gabor Hojtsy

> -copy("chm/make_chm_style.css", "$fancydir/style.css");
> -copy("chm/make_chm_spc.gif", "$fancydir/spacer.gif");
> +copy("make_chm_style.css", "$fancydir/style.css");
> +copy("make_chm_spc.gif", "$fancydir/spacer.gif");

This was vital for the build system mainatined by Derick.
He may add more info to this, but those path values were
important (otherwise the page display will be way too slow).

Goba



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php make_chm_fancy.php

2002-08-30 Thread Dallas Thunder

dallas  Fri Aug 30 11:08:42 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php make_chm_fancy.php 
  Log:
  Make small changes, hope it works more smoothly for general user.
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.3 phpdoc/chm/make_chm.php:1.4
--- phpdoc/chm/make_chm.php:1.3 Mon Aug 26 04:39:59 2002
+++ phpdoc/chm/make_chm.php Fri Aug 30 11:08:41 2002
@@ -84,7 +84,7 @@
 if ($FIRST_PAGE != $INDEX_IN_HTML) {
 
 // Find the name of the Table of Contents
-preg_match('|CLASS=\"title\" >(.+)(.*)(.*)(.*)(.*)'.$match[1].' 
+WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0">'.$match[2].' 
 ';
 $content = preg_replace("/(/Us", "", $content);
 preg_match('|(.*)|U', 
$content, $match);
-$content = 
preg_replace("|(CLASS=\"title\"\\s+>).*().*().*((.*)|U", "", 
$content);
 
 }



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-08-26 Thread derick

On Mon, 26 Aug 2002, Gabor Hojtsy wrote:

> goba  Mon Aug 26 04:40:00 2002 EDT
> 
>   Modified files:  
> /phpdoc/chm   make_chm.php 
>   Log:
>   Use spaces not tabs

BOOOH!  :P

Derick

---
 Did I help you?   http://www.derickrethans.nl/link.php?url=giftlist
 Frequent ranting: http://www.derickrethans.nl/
---
 PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-08-26 Thread Gabor Hojtsy

gobaMon Aug 26 04:40:00 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Use spaces not tabs
  Adding link to langcode list for future reference
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.2 phpdoc/chm/make_chm.php:1.3
--- phpdoc/chm/make_chm.php:1.2 Mon Aug 26 04:35:05 2002
+++ phpdoc/chm/make_chm.php Mon Aug 26 04:39:59 2002
@@ -18,6 +18,7 @@
 if (empty($FANCY_PATH)) { $FANCY_PATH = $HTML_PATH; }
 
 // Array to manual code -> HTML Help Code conversion
+// Code list: http://www.helpware.net/htmlhelp/hh_info.htm
 $LANGUAGES = array(
 "cs"=> "0x405 Czech",
 "de"=> "0x407 German (Germany)",
@@ -30,7 +31,7 @@
 "kr"=> "0x412 Korean",
 "nl"=> "0x413 Dutch (Netherlands)",
 "pt_BR" => "0x416 Portuguese (Brazil)",
-   "zh"=> "0x804 Simplified Chinese"
+"zh"=> "0x804 Simplified Chinese"
 );
 
 // Files on the top level of the TOC



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /chm make_chm.php

2002-08-26 Thread Derick Rethans

derick  Mon Aug 26 04:35:05 2002 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  - Add chinese code
  
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.1 phpdoc/chm/make_chm.php:1.2
--- phpdoc/chm/make_chm.php:1.1 Mon Jan  7 18:20:34 2002
+++ phpdoc/chm/make_chm.php Mon Aug 26 04:35:05 2002
@@ -29,7 +29,8 @@
 "ja"=> "0x411 Japanese",
 "kr"=> "0x412 Korean",
 "nl"=> "0x413 Dutch (Netherlands)",
-"pt_BR" => "0x416 Portuguese (Brazil)"
+"pt_BR" => "0x416 Portuguese (Brazil)",
+   "zh"=> "0x804 Simplified Chinese"
 );
 
 // Files on the top level of the TOC
@@ -254,4 +255,4 @@
 return preg_replace("/[\r|\n]{1,2}/", " ", join("", file($filename)));
 } // oneLiner() function end
 
-?>
\ No newline at end of file
+?>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php