[PHP-DOC] Re: Grouped functions working in livedocs
Now this is another reason to use (and work on soon switching to) livedocs. Goba, what else should i do to push the simple utf-8 patch (http://phpil.net/patchs/livedocs-utf8.patch.txt)? The only annoyed thing with livedocs is the impossible patching process. -- Moshe Goba
[PHP-DOC] livedocs uft-8
Just to remember, we still didn't changed the output encoding of livedocs to uft-8. Here the patch: http://phpil.net/patchs/livedocs-utf8.patch.txt -- Moshe.
Re: [PHP-DOC] Livedocs
according to the the last changes on ext/xml, here (http://phpil.net/livedocs.patch.txt) patch that: 1. make the livedocs compatible with php 5.0.1 2. make livedocs on php4 the same as livedocs on php5. Moshe. Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] livedocs is now running on docs.php.net (do not announce it yet!) but not automatically updating so far. Please fix the following errors: [Sat Aug 21 16:49:25 2004] [error] [client 80.197.147.147] File does not exist: /local/Web/sites/livedocs/www/style.css [Sat Aug 21 16:49:35 2004] [error] [client 194.248.150.2] File does not exist: /local/Web/sites/livedocs/www/style.css [Sat Aug 21 16:49:41 2004] [error] [client 68.221.28.91] File does not exist: /local/Web/sites/livedocs/www/style.css [Sat Aug 21 16:49:42 2004] [error] [client 68.221.28.91] File does not exist: /local/Web/sites/livedocs/www/favicon.ico [Sat Aug 21 16:50:21 2004] [error] [client 80.197.147.147] File does not exist: /local/Web/sites/livedocs/www/styles/mirror.css [Sat Aug 21 16:51:06 2004] [error] [client 194.248.150.2] File does not exist: /local/Web/sites/livedocs/www/styles/mirror.css [Sat Aug 21 16:51:06 2004] [error] [client 80.197.147.147] File does not exist: /local/Web/sites/livedocs/www/favicon.ico [Sat Aug 21 16:51:06 2004] [error] [client 80.197.147.147] File does not exist: /local/Web/sites/livedocs/www/userprefs.js [Sat Aug 21 16:51:07 2004] [error] [client 194.248.150.2] File does not exist: /local/Web/sites/livedocs/www/images/spacer.gif [Sat Aug 21 16:51:07 2004] [error] [client 68.221.28.91] File does not exist: /local/Web/sites/livedocs/www/styles/mirror.css This is when using the php.net template. The php.net template expects a phpweb checkout in the background (in the same root folder as livedocs). These missing files are in phpweb, and if you also do a rsync (at least for these common files), it will work and look fine. Goba
Re: [PHP-DOC] Livedocs
Derick Rethans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 23 Aug 2004, moshe doron wrote: according to the the last changes on ext/xml, here (http://phpil.net/livedocs.patch.txt) patch that: 1. make the livedocs compatible with php 5.0.1 2. make livedocs on php4 the same as livedocs on php5. I don't see why adding iconv calls helps with this, can you also nicely indent your changes in common.php? The iconv make the output 8bit (according to the assumption that bandwide is more important then generation speed of cached content). I didn't indent the common.php to make the patch clear. Here indent version: http://phpil.net/livedocs.patch1.txt. If you want the output uft-8, the patch is simpler just to change the charset here http://cvs.php.net/co.php/livedocs/themes/default/html_format.php?r=1.12#35 to utf-8 (and in the other themes), save xml_parser_create(UTF-8); and ignore all the another changes. Moshe. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org
Re: [PHP-DOC] libxml
you may didn't use the same chars due to your news client encoding conversion. try to iconv chr(224); -- Moshe. Jakub Vrana [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] moshe doron wrote: sorry, wrong target. anyway on win32, with php5.0.0 the function return empty string while on php4 it return notice. the iconv(WINDOWS-1255, UTF-8... which is what libxml suppse to do is working nice on win32 php. we still trying to figure out what going here. echo iconv(WINDOWS-1255, ISO-8859-1, raaa); It behaves the same in PHP 5.0.0 and PHP 4.3.8 on my box (Windows XP). Notice is issued and illegal characters are not translated. Jakub Vrana
Re: [PHP-DOC] translations and livedocs release.
There is nothing wrong in livedocs that's libxml2 fault, but libxml2 put enough disclaimers here http://www.xmlsoft.org/encoding.html, mean I have nothing to do with it. livedocs fix, complex preg_replace of the encoding line just before the xml parsing, if this kind of solution is what you want? Moshe. Derick Rethans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, 8 Aug 2004, moshe doron wrote: Hey, running livedocs + hebrew+ php5, i found out that for some 8bit, not 'ISO-8859-1' encoding, libxml it just mark all the 80 - FF range with question marks. the windows-1255 charset is one that affected by this behavior so we have to mark all the hebrew xml files as ISO-8859-1, but the old build system doesn't like it. Don't mangle charset names. Use the correct one and fix livedocs. Derick
[PHP-DOC] libxml
libxml use iconv that seems to be broken: echo iconv(WINDOWS-1255, ISO-8859-1, ); please check what the problem here. (you can use c iconv() function that compiled into libc on dev1). moshe.
Re: [PHP-DOC] libxml
sorry, wrong target. anyway on win32, with php5.0.0 the function return empty string while on php4 it return notice. the iconv(WINDOWS-1255, UTF-8... which is what libxml suppse to do is working nice on win32 php. we still trying to figure out what going here. Moshe. Derick Rethans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 9 Aug 2004, Gabor Hojtsy wrote: libxml use iconv that seems to be broken: echo iconv(WINDOWS-1255, ISO-8859-1, ); please check what the problem here. (you can use c iconv() function that compiled into libc on dev1). What do you expect when converting to latin-1 such chars which are not there? It should convert them to question marks, which it does. Derick
Re: Re: [PHP-DOC] Hebrew Support
ooops, my previous response was lost. briefly, i explained all the translators how to use livedocs. it's just works nice as you can see here: http://www.phpil.net/livedocs/?l=he. the old build system is simply not supported, you can hack it and hack it agin but it'll always 'll look bad. the new build system just do the job nice. if you need more explains just conntact me. btwwe want to meet tomorow on 'August penguin III' convention. -- Moshe. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Well, as far as I saw, no one has able to create the manual in rtl direction. (This is the BIG problem). phpdoc-he is pretty dead, as you can see in the cvs repository... :-( It's because of the rtl problem. I believe that if someone can solve this problem, the group will come back. I have alot of background in web development, including xml and hebrew, however, I don't know where to start from. I'm too scared to touch the building files of the php manual, and I can't understand most of them... Hadar Walla! Mail, Get Your Private, Free E-mail from Walla! at:http://mail.walla.co.il
[PHP-DOC] translations and livedocs release.
Hey, running livedocs + hebrew+ php5, i found out that for some 8bit, not 'ISO-8859-1' encoding, libxml it just mark all the 80 - FF range with question marks. the windows-1255 charset is one that affected by this behavior so we have to mark all the hebrew xml files as ISO-8859-1, but the old build system doesn't like it. we have here more incompatibility of the old and new systems. another translations projects may want to use this test script to look for potential conflicts (php5+libxml only): ? //$charset = ISO-8859-1;$a=128;$aend=255; //$charset = WINDOWS-1255;$a=224;$aend=250; $charset = iso-8859-8;$a=224;$aend=250; $ord = ''; for(;$a=$aend;$a++) $ord.=chr($a); echo $ord\n; $xml = XOF ?xml version=1.0 encoding=$charset? chapter$ord/chapter XOF; //$xml = utf8_encode($xml); $p = xml_parser_create(); xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0); xml_set_element_handler($p, 'start_elem', 'end_elem'); xml_set_character_data_handler($p, 'cdata'); if (!xml_parse($p, $xml, true)) { printf(XML: %d:%d %s\n, xml_get_current_line_number($p), xml_get_current_column_number($p), xml_error_string(xml_get_error_code($p)) ); $lines = explode(\n, $xml); $l = xml_get_current_line_number($p); echo \nLine: $l is b . htmlentities($lines[$l-1]) . /bbr /\n; echo 'pre'; echo htmlentities($xml); echo '/pre'; } xml_parser_free($p); function start_elem($parser, $tagname, $attributes){} function end_elem($parser, $tagname){} function cdata($parser, $data) { echo $data; } ?
Re: Re: [PHP-DOC] Hebrew Support
the livedoc version is working nice as you can see here: http://www.phpil.net/livedocs/?l=he i explained to anyone on the group, that responsed to my mail (3 ppl without me ;) how to deal with it. just contact me and i'll explain you how to install the environment, if you managed to deal with the old build system dependencies, livdocs 'll be much simple. anyway, you right. the low participation with the translation is result of the fact that the documenters don't see the direct affect of the translation on the officials mirrors... we all waiting for livedoc... -- Moshe. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, as far as I saw, no one has able to create the manual in rtl direction. (This is the BIG problem). phpdoc-he is pretty dead, as you can see in the cvs repository... :-( It's because of the rtl problem. I believe that if someone can solve this problem, the group will come back. I have alot of background in web development, including xml and hebrew, however, I don't know where to start from. I'm too scared to touch the building files of the php manual, and I can't understand most of them... Hadar Walla! Mail, Get Your Private, Free E-mail from Walla! at: http://mail.walla.co.il
Re: [PHP-DOC] [PATCH] rtl...
i didn't followed the last livedocs patchs but the last time i test it, after the rtl stuff was commited, its just worked fine. Moshe. Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the status of RTL support in livedocs? Goba moshe doron rta: you correction is mistake. RTL and CHARSET are defines not vars at all. --/moshe Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Moshe, as I've already told you, your patch had a little bug with GLOBALS. Attached is a correction for your patch. Nuno - Original Message - Wez Furlong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Now, quit complaining and get coding ;-) --Wez. http://moshe.i-com-it.com/patchs/livedocs-rtl3.patch.txt this patch contains: 1. initial rtl support. 2. add some missing htmlspecialchars(). i change the htmlentities(); on pre into htmlspecialchars() coz htmlentities(); doesn't fit well for not english charsets, do i miss something? --/moshe
Re: [PHP-DOC] livedocs [PATCH] - allowing style_mapping to transform()
Wez Furlong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Wouldn't it be better to do this in a RTL version of the style sheet (that just contains the RTL specific parts), and link to that sheet in addition to existing generic style sheet? Or are there other kinds of things that you need to do when generating the HTML? for this specific issue, overriding the default css can fit the needs, i just thought i adding here usefull flexibility for another usages (not rtl related). theoretically the align is not the only issue. there are map elements functions that i added and that cause to losing the attibutes, it's true that for now this behavior is harmless coz those elements are quite fundamental like 'varname' or 'term', but we opening here needless a gap of the rtl version comparing to the ltr (and loosing here nice way the documenters can hack the build system using tags attributes ;). sure that i can loop via the attibutes and add them but this looks to me unnecessary code duplication. --/moshe. --Wez. -Original Message- From: moshe doron [mailto:[EMAIL PROTECTED] Sent: 10 May 2004 14:10 To: [EMAIL PROTECTED] Subject: [PHP-DOC] livedocs [PATCH] - allowing style_mapping to transform() Hi: this patch allow style_mapping functions to continue transform the node via the default transform function: http://moshe.i-com-it.com/patchs/livedocs-styletransform.patch.txt i run into the issue when i see i have no elegant way override the text-align style using the transform function, without re-writing all the generation flow by hand. this behavior can be useful for small changes like duplication of childs nodes (e.g, make the first child title) or changing the html order of two node without manualy generating all the subnodes. explanations: 1. i splite the transform function into transform() that check if we calling to style_ function, and transfor_default() which is called if no style_ function. 2. if the map callback function begin with '+', the function suppose to get the $map beside the node. this map is moved into the $node-transform_default(). thoughts? --/moshe.
[PHP-DOC] livedocs on php4 - sqlite_single_query()
The following patch: http://cvs.php.net/diff.php/php-src/ext/sqlite/sqlite.c?r1=1.58r2=1.59ty=u is need to be adopted also for PHP_4_3 to make livedocs working on php4. in php4 there is no sqlite_single_query() function. --/moshe.
Re: [PHP-DOC] livedocs on php4 - sqlite_single_query()
my mistake. sorry. --/moshe. Wez Furlong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] pear upgrade sqlite % php -v PHP 4.3.6RC4-dev (cli) (built: Apr 9 2004 16:45:19) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies % php -r 'var_dump(function_exists(sqlite_single_query));' bool(true)
[PHP-DOC] livedocs [PATCH] - allowing style_mapping to transform()
Hi: this patch allow style_mapping functions to continue transform the node via the default transform function: http://moshe.i-com-it.com/patchs/livedocs-styletransform.patch.txt i run into the issue when i see i have no elegant way override the text-align style using the transform function, without re-writing all the generation flow by hand. this behavior can be useful for small changes like duplication of childs nodes (e.g, make the first child title) or changing the html order of two node without manualy generating all the subnodes. explanations: 1. i splite the transform function into transform() that check if we calling to style_ function, and transfor_default() which is called if no style_ function. 2. if the map callback function begin with '+', the function suppose to get the $map beside the node. this map is moved into the $node-transform_default(). thoughts? --/moshe.
[PHP-DOC] [PATCH] rtl...
Wez Furlong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Now, quit complaining and get coding ;-) --Wez. http://moshe.i-com-it.com/patchs/livedocs-rtl3.patch.txt this patch contains: 1. initial rtl support. 2. add some missing htmlspecialchars(). i change the htmlentities(); on pre into htmlspecialchars() coz htmlentities(); doesn't fit well for not english charsets, do i miss something? --/moshe
Re: [PHP-DOC] [PATCH] rtl...
you correction is mistake. RTL and CHARSET are defines not vars at all. --/moshe Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Moshe, as I've already told you, your patch had a little bug with GLOBALS. Attached is a correction for your patch. Nuno - Original Message - Wez Furlong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Now, quit complaining and get coding ;-) --Wez. http://moshe.i-com-it.com/patchs/livedocs-rtl3.patch.txt this patch contains: 1. initial rtl support. 2. add some missing htmlspecialchars(). i change the htmlentities(); on pre into htmlspecialchars() coz htmlentities(); doesn't fit well for not english charsets, do i miss something? --/moshe
[PHP-DOC] Re: [Spam 05.70] RE: [PHP-DOC] [PATCH] rtl...
Thanks; looks good, although I'd prefer it if we didn't have too many special cases going on. You have an RTL constant to indicate that the content is RTL, but then there are a number of places where you use that to generate a dir=rtl attribute. It would be better to define a DIRECTION constant that held dir=rtl or dir=ltr as appropriate for the language, and use that unconditionally. i'll adopt the idea. Likewise for the copyright text in style_mapping.php; just fold it into a single line that includes the directionality in any case: return sprintf('pDEFANGED_div dir=ltr class=copyrightCopyright copy; %s by DEFANGED_span %s%s/ DEFANGED_span/pDEFANGED_div', implode(, , $y), DIRECTION, $holder); this line is anyway candidate to change due to the by that have to be translated by into entity that reflect the translation (my preference btw, is is one dictionary file per language to keep the livedocs core independent). this change 'll change this lumpy line logic - lets just i keep it simple for now. i touched this line just because i wanted that the manual cover looks professional. The other thing I noticed was that you have: $map['emphasis'] = 'format_emphasis'; but then: function format_em($node) { ... } i'll fix it. it was lost on last model changing. --Wez.
[PHP-DOC] Re: [Spam 05.70] RE: [PHP-DOC] [PATCH] rtl...
Moshe Doron [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks; looks good, although I'd prefer it if we didn't have too many special cases going on. You have an RTL constant to indicate that the content is RTL, but then there are a number of places where you use that to generate a dir=rtl attribute. It would be better to define a DIRECTION constant that held dir=rtl or dir=ltr as appropriate for the language, and use that unconditionally. i'll adopt the idea. i didn't read you carfuly enough. on rtl mode we need times to dump dir=rtl and times dir=ltr on non-rtl languages we have no worries about this issue. my guideline is to leave the ltr document as it was before my plays. you never know how any browser behave after dir=ltr even if the it sensible that this instruction should have no effect. anyway i follow your line of thought and make the RTL hold the text. here the new patch: http://moshe.i-com-it.com/patchs/livedocs-rtl4.patch.txt --/moshe.
[PHP-DOC] [PATCH] rtl second edition
here the 'all in one method': http://moshe.i-com-it.com/patchs/livedocs-rtl2.patch.txt rejections? --/moshe.
[PHP-DOC] cvs: livedocs /langs en.style_mapping.php he.style_mapping.php
momoTue May 4 04:45:16 2004 EDT Removed files: /livedocs/langs en.style_mapping.php he.style_mapping.php Log: remove the rejected rtl patch
Re: [PHP-DOC] [PATCH] rtl
Moshe Doron [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The old build system is used when you run build.sh in livedocs. It does a ./configure --with-lang=$lang I don't know if we will ever get ride of this build system. The use of entities is a good idea, Goba! we may add the entites for livedocs in language-snippets.ent, for example. Moshe: There won't be too many IFs. We need just one if for the array $map and other IF to declare your special functions. No real impact on performance and its much more manageable. Anyway, any more opinions? i'm not realy care about this point. my initial intuition was to split the files but IFs also have gains. We need also to decide how to choose the encoding and how to choose if RTL or LTR for each language. Create an array with this info? It's dificult to extract this info from the old (actual) build system because livedocs can be used for more than one language. i'm +1 for array method. more feedbacks? goba, adding new i18n.php file that will hold the languages data is agreed? --/moshe.
Re: [PHP-DOC] [PATCH] rtl
We need also to decide how to choose the encoding and how to choose if RTL or LTR for each language. Create an array with this info? It's dificult to extract this info from the old (actual) build system because livedocs can be used for more than one language. i'm +1 for array method. more feedbacks? can i put the languages array in new i18n.php file? --/moshe.
Re: [PHP-DOC] [PATCH] rtl
no rejections. Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] more feedbacks? goba, adding new i18n.php file that will hold the languages data is agreed? --/moshe. My proposal: in common.php have something like this: $rtl_langs = array('he',); if (isset($rtl_langs[$lang]) { define('RTL', 1); } $chars = array('he' = 'ISO-xpto'; 'ja'='BIG-5' ,..); define('CHARSET', isset($chars[$lang]) ? $chars[$lang] : 'default charset'); /***/ in style_mapping: $map = array (..); if(RTL) { // differences to normal $map array $map['emphasis'] = 'format_emphasis'; . // declaration of special functions for RTL format_emphasis () { .. } } /*/ Also change the templates to use RTL and CHARSET. Nuno
[PHP-DOC] cvs: livedocs /langs en.style_mapping.php he.style_mapping.php
momoSun May 2 02:49:31 2004 EDT Added files: /livedocs/langs en.style_mapping.php he.style_mapping.php Log: rtl support step one (harmless one). the second that activate the changes goes to the newgroup with explanations as patch. http://cvs.php.net/co.php/livedocs/langs/en.style_mapping.php?r=1.1p=1 Index: livedocs/langs/en.style_mapping.php +++ livedocs/langs/en.style_mapping.php ?php /* vim: set tabstop=4 shiftwidth=4: */ // +--+ // | PHP version 4| // +--+ // | Copyright (c) 1997-2004 The PHP Group| // +--+ // | This source file is subject to version 3.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| // | available through the world-wide-web at the following url: | // | http://www.php.net/license/3_0.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Wez Furlong, Derick Rethans, Ilia Alshanetsky | // +--+ // | Helper functions for formatting elements | // +--+ // // $Id: en.style_mapping.php,v 1.1 2004/05/02 06:49:31 momo Exp $ // almost XPATH.. ;-) $map = array( 'acronym' = 'acronym', 'appendix/title'= 'h1', 'author'= 'format_name', 'authorgroup' = 'format_authorgroup', 'bookinfo/title'= 'h1', 'chapter/title' = 'h1', 'classname' = 'span', 'classsynopsis' = 'format_class_synopsis', 'code' = 'code', 'collab'= 'span', 'collabname'= 'span', 'command' = 'span', 'computeroutput'= 'span', 'constant' = 'span', 'copyright' = 'format_copyright', 'copyright/year'= 'span', 'copyright/holder' = 'span', 'editor'= 'format_name', 'emphasis' = 'em', 'enumname' = 'span', 'envar' = 'span', 'filename' = 'span', 'funcsynopsis' = 'format_funcsynopsis', 'function' = 'format_function', 'glossterm' = 'span', 'htmlcode' = 'format_htmlcode', 'informaltable' = 'table', 'informaltable/title' = 'caption', 'itemizedlist' = 'ul', 'itemizedlist/listitem' = 'li', 'legalnotice/title' = 'h3', 'link' = 'format_link', 'literal' = 'span', 'literallayout' = 'format_listing', 'methodparam' = 'span', 'methodsynopsis'= 'format_params', 'option'= 'span', 'orderedlist' = 'ol', 'orderedlist/listitem' = 'li', 'parameter' = 'span', 'phpdoc_include'= 'handle_include', 'preface/title' = 'h1', 'productname' = 'span', 'programlisting'= 'format_listing', 'propname' = 'span', 'proptype' = 'span', 'pubdate' = 'format_pubdate', 'reference/title' = 'h1', 'refnamediv/refname'= 'h1', 'refnamediv/refpurpose' = 'format_refpurpose', 'refsect1/title'= 'h3', 'refsect2/title'= 'h4', 'replaceable' = 'span', 'screen'= 'format_listing', 'section/title' = 'h1', 'sect1/title' = 'h2', 'sect2/title' = 'h3', 'sect3/title' = 'h4', 'sect4/title' = 'h5', 'sect5/title' = 'h6', 'signalname'= 'span', 'simpara' = 'p', 'simplelist'= 'ul', 'simplelist/member' = 'li', 'subscript' = 'span', 'systemitem'= 'span', 'table' = 'table', 'table/title' = 'caption', 'tbody' = 'tbody', 'tbody/row' = 'tr', 'tbody/row/entry' =
[PHP-DOC] [PATCH]
Hi all. In 3 months delay cause by work loading here is rtl: http://moshe.i-com-it.com/patchs/livedocs-rtl.patch.txt Here is reminder what i did: 1. Make the style_mapping.php (optionally - default english) per language version: first, already now it contains plain text that have to be changed per language. second, that methos will give me maximum ability for RTL customizing with minmum delta from livedocs, when i can define format_* functions where neeeded (e.g, to add nbsp;'s and so on.) on the sapareted style_mapping.php put dir=rtl on the containers (not the css!) where needed, this will economize the css maintenance per direction for each theme. in addition each file can optionally export $direction and $charset globals to be used on html_format files. If language wants only to export the $charset and save spliting all the style_ file, that could be gain simply by including the en.sytle file after $charset. 2. add encoding and direction on some functions (for now just the header) to the themes/html_format (for now i tested it on default theme). --/moshe
Re: [PHP-DOC] [PATCH] rtl
Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Moshe, In 3 months delay cause by work loading here is rtl: http://moshe.i-com-it.com/patchs/livedocs-rtl.patch.txt Here is reminder what i did: 1. Make the style_mapping.php (optionally - default english) per language version: first, already now it contains plain text that have to be changed per language. second, that methos will give me maximum ability for RTL customizing with minmum delta from livedocs, when i can define format_* functions where neeeded (e.g, to add nbsp;'s and so on.) This is not manageable. Now if we need to modify the formatting, that needs to be modified in all the language files. The language dependent strings will not be stored in the style mapping file of course, this is just a start... So that is not a valid reason to have one for every language. Could you please explore if you would be able to integrate the RTL stuff into the style mapping harmlessly - and let us discuss before you commit the changes? Thanks, Goba The issue you raise here is more files arrangement Issue then real issue. what about one file per language that contains all the strings using the on the next phases and include() on the end of the file rtl_style_mapping or ltr_style_mapping? if ok, someone with filesystem access to the cvs may commit the changes by renaming the *original* filenames for saving the history (my commit was just a way to demonstrate the change, anyway commiting change link this involve manually playing with the files). --/moshe
Re: [PHP-DOC] [PATCH] rtl
Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The issue you raise here is more files arrangement Issue then real issue. what about one file per language that contains all the strings using the on the next phases and include() on the end of the file rtl_style_mapping or ltr_style_mapping? if ok, someone with filesystem access to the cvs may commit the changes by renaming the *original* filenames for saving the history (my commit was just a way to demonstrate the change, anyway commiting change link this involve manually playing with the files). --/moshe I think that having a file for each language with the strings is OK. But I think we don't need any other file for RTL. RTL changes are not just dump dir='rtl' on some tags. there are somtimes span to div changes or inserting nbsp; to patch rtl and ltr issues. 1. i see no much sense polluting the orginal file with if()'s and needless functions (btw, if performance is your hobby you losing here due to needless functions calls). 2. since the rtl support is still experiment (on most of the applications btw), naturally i'will commit relatively much small tunings - and i prefer respecting your peace by working on separated file. synchronizing this file is not such a big deal and i can take this on myself. may you changed your mind? We need just an array (sorry Derick :)) with the languages that use RTL. Which languages use RTL? and which charset? hebrew : window-1255 arabic persian Nuno P.S.: can you please revert your patch?
Re: [PHP-DOC] [PATCH] rtl
Are you planing to use on the old build system forever? Shouldn't livdocs replace completely the old system sometime? also if the answers to those two questions are yes and no, Imho, the multi languages support on the old build is realy creak part (specially in the aspect of not duplication the code and files-structure) and and we sould reduce the old build system relay as much as possible. It's just looks to me stupid giving the new build system the pleasure to extract some bash or whatever old definitions and build new per language php file (keep in mind we need those definitions on runtime, not on configure time) when we can put it in ready to use php file. --/moshe. Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think that having a file for each language with the strings is OK. But I think we don't need any other file for RTL. We need just an array (sorry Derick :)) with the languages that use RTL. Which languages use RTL? and which charset? A lot of strings can be extracted from the phpdoc build system (entities used for translation). Also the phpdoc build system is aware of what language is RTL or LTR, so there is no need to duplicate this. Goba
Re: [PHP-DOC] [PATCH] rtl
Nuno Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The old build system is used when you run build.sh in livedocs. It does a ./configure --with-lang=$lang I don't know if we will ever get ride of this build system. The use of entities is a good idea, Goba! we may add the entites for livedocs in language-snippets.ent, for example. Moshe: There won't be too many IFs. We need just one if for the array $map and other IF to declare your special functions. No real impact on performance and its much more manageable. Anyway, any more opinions? i'm not realy care about this point. my initial intuition was to split the files but IFs also have gains. We need also to decide how to choose the encoding and how to choose if RTL or LTR for each language. Create an array with this info? It's dificult to extract this info from the old (actual) build system because livedocs can be used for more than one language. i'm +1 for array method. --/moshe.
[PHP-DOC] cvs: livedocs / livedoc-index.php
momoMon Feb 2 15:33:28 2004 EDT Modified files: /livedocs livedoc-index.php Log: support dynamic mode. http://cvs.php.net/diff.php/livedocs/livedoc-index.php?r1=1.6r2=1.7ty=u Index: livedocs/livedoc-index.php diff -u livedocs/livedoc-index.php:1.6 livedocs/livedoc-index.php:1.7 --- livedocs/livedoc-index.php:1.6 Fri Jan 23 09:58:38 2004 +++ livedocs/livedoc-index.php Mon Feb 2 15:33:28 2004 @@ -18,7 +18,7 @@ // | Livedocs index | // +--+ // -// $Id: livedoc-index.php,v 1.6 2004/01/23 14:58:38 didou Exp $ +// $Id: livedoc-index.php,v 1.7 2004/02/02 20:33:28 momo Exp $ echo index_page_header(); @@ -48,7 +48,8 @@ if ($q) { while ($r = sqlite_fetch_array($q, SQLITE_NUM)) { list($title, $id) = $r; -echo span class='index'a href=' . WEBBASE . $lang/$id#$id'$title/a/spanbr /\n; +$url = FORCE_DYNAMIC ? ?l=$langq=$id#$id : $lang/$id#$id; +echo span class='index'a href=' . WEBBASE . $url'$title/a/spanbr /\n; } } }
[PHP-DOC] cvs: livedocs / build.sh
momoSun Feb 1 13:25:28 2004 EDT Modified files: /livedocs build.sh Log: 2. the correct fix for relative paths http://cvs.php.net/diff.php/livedocs/build.sh?r1=1.18r2=1.19ty=u Index: livedocs/build.sh diff -u livedocs/build.sh:1.18 livedocs/build.sh:1.19 --- livedocs/build.sh:1.18 Fri Jan 30 00:49:15 2004 +++ livedocs/build.sh Sun Feb 1 13:25:28 2004 @@ -30,7 +30,6 @@ #xmllint --format ${GENDIR}/toc-ugly.xml ${GENDIR}/toc.xml ${PHP} ${LIVEDOCSFORPHP}/mktoc.php ${GENDIRFORPHP}/toc-ugly.xml ${GENDIR}/toc-insert.sql - cd $curpath fi echo -n Making index for $i: @@ -45,6 +44,7 @@ # make search cache database mv ${GENDIR}/livedoc-cache-idx.$i.sqlite ${OUTPUTDIR}/$i/ chmod 0666 ${OUTPUTDIR}/$i/livedoc-cache-idx.$i.sqlite + cd $curpath done; echo -n End:
Re: [PHP-DOC] cvs: livedocs / build-ops.in build.sh common.php config.php.in configure.in mktoc.php
Why just not make this a requirement for livedocs? I don't think it's a good idea to add hacks for it. first, there is already set_magic on some of the files. this patch is just add some consistency to the code. second, what is the minus of this 'hack'? we don't realy encouraging the use of this suspected feature, just reducing the wtf factor for some old configurations. --/moshe
[PHP-DOC] cvs: livedocs / build-ops.in build.sh common.php config.php.in configure.in mktoc.php
momoFri Jan 30 00:49:17 2004 EDT Modified files: /livedocs build-ops.in build.sh common.php config.php.in configure.in mktoc.php Log: 1. make cygwin happy 2. fix bug when using relative path and more then one language on the --with-docs instruction 3. more magic_quotes issues http://cvs.php.net/diff.php/livedocs/build-ops.in?r1=1.4r2=1.5ty=u Index: livedocs/build-ops.in diff -u livedocs/build-ops.in:1.4 livedocs/build-ops.in:1.5 --- livedocs/build-ops.in:1.4 Tue Jan 13 05:57:06 2004 +++ livedocs/build-ops.in Fri Jan 30 00:49:15 2004 @@ -6,6 +6,11 @@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ + +PHPDOCFORPHP='@PHPDOCFORPHP@' +LIVEDOCSFORPHP='@LIVEDOCSFORPHP@' +OUTPUTDIRFORPHP='@OUTPUTDIRFORPHP@' +GENDIRFORPHP='@GENDIRFORPHP@' # en should be the first! # LANGUAGES=en ar cs de es fi fr he hk hu it ja kr lt nl pl pt_BR ro ru sk sl sv tr tw zh LANGUAGES=@LANGUAGES@ http://cvs.php.net/diff.php/livedocs/build.sh?r1=1.17r2=1.18ty=u Index: livedocs/build.sh diff -u livedocs/build.sh:1.17 livedocs/build.sh:1.18 --- livedocs/build.sh:1.17 Fri Jan 23 13:27:17 2004 +++ livedocs/build.sh Fri Jan 30 00:49:15 2004 @@ -11,6 +11,7 @@ autoconf # Making indexes for every language +curpath=`pwd` for i in ${LANGUAGES}; do echo -n Configuring phpdoc for $i: @@ -27,13 +28,14 @@ #Just for debuging #xmllint --format ${GENDIR}/toc-ugly.xml ${GENDIR}/toc.xml - - ${PHP} ${LIVEDOCS}/mktoc.php ${GENDIR}/toc-ugly.xml ${GENDIR}/toc-insert.sql + + ${PHP} ${LIVEDOCSFORPHP}/mktoc.php ${GENDIRFORPHP}/toc-ugly.xml ${GENDIR}/toc-insert.sql + cd $curpath fi echo -n Making index for $i: date - ${PHP} ${LIVEDOCS}/mkindex.php ${PHPDOC} $i ${GENDIR} + ${PHP} ${LIVEDOCSFORPHP}/mkindex.php ${PHPDOCFORPHP} $i ${GENDIRFORPHP} mv ${GENDIR}/livedoc-idx.$i.sqlite ${OUTPUTDIR} # create output dir mkdir -p ${OUTPUTDIR}/$i http://cvs.php.net/diff.php/livedocs/common.php?r1=1.5r2=1.6ty=u Index: livedocs/common.php diff -u livedocs/common.php:1.5 livedocs/common.php:1.6 --- livedocs/common.php:1.5 Fri Jan 23 09:58:38 2004 +++ livedocs/common.php Fri Jan 30 00:49:15 2004 @@ -18,8 +18,8 @@ // | Common PHP header, with some basic settings | // +--+ // -// $Id: common.php,v 1.5 2004/01/23 14:58:38 didou Exp $ - +// $Id: common.php,v 1.6 2004/01/30 05:49:15 momo Exp $ +set_magic_quotes_runtime(0); error_reporting(E_ALL); ini_set('display_errors', '1'); http://cvs.php.net/diff.php/livedocs/config.php.in?r1=1.4r2=1.5ty=u Index: livedocs/config.php.in diff -u livedocs/config.php.in:1.4 livedocs/config.php.in:1.5 --- livedocs/config.php.in:1.4 Fri Jan 23 09:58:38 2004 +++ livedocs/config.php.in Fri Jan 30 00:49:15 2004 @@ -1,13 +1,13 @@ -?php # $Id: config.php.in,v 1.4 2004/01/23 14:58:38 didou Exp $ +?php # $Id: config.php.in,v 1.5 2004/01/30 05:49:15 momo Exp $ /* Config file for the livedocs */ define('FALLBACK_LANG', 'en'); -define('PHPDOC', '@PHPDOC@'); -define('LIVEDOCS', '@LIVEDOCS@'); -define('OUTPUTDIR', '@OUTPUTDIR@'); +define('PHPDOC', '@PHPDOCFORPHP@'); +define('LIVEDOCS', '@LIVEDOCSFORPHP@'); +define('OUTPUTDIR', '@OUTPUTDIRFORPHP@'); define('FORCE_DYNAMIC', @FORCE_DYNAMIC@); define('WEBBASE', '@WEBBASE@'); -define('GENDIR', '@GENDIR@'); +define('GENDIR', '@GENDIRFORPHP@'); define('LANGUAGES', '@LANGUAGES@'); define('THEME_NAME', '@THEMENAME@'); http://cvs.php.net/diff.php/livedocs/configure.in?r1=1.14r2=1.15ty=u Index: livedocs/configure.in diff -u livedocs/configure.in:1.14 livedocs/configure.in:1.15 --- livedocs/configure.in:1.14 Fri Jan 23 09:58:38 2004 +++ livedocs/configure.in Fri Jan 30 00:49:15 2004 @@ -1,5 +1,5 @@ ## A configure script -## $Id: configure.in,v 1.14 2004/01/23 14:58:38 didou Exp $ +## $Id: configure.in,v 1.15 2004/01/30 05:49:15 momo Exp $ AC_PREREQ(2.13) AC_INIT(livedoc.css) @@ -88,6 +88,20 @@ [GENDIR=$withval], [GENDIR=/tmp]) +if test `uname|grep CYGWIN` ; then + lncmd='cp -rf' + PHPDOCFORPHP=`cygpath -w $PHPDOC` + GENDIRFORPHP=`cygpath -w $GENDIR` + LIVEDOCSFORPHP=`cygpath -w $LIVEDOCS` + OUTPUTDIRFORPHP=`cygpath -w $OUTPUTDIR` +else + lncmd='ln -sf' + PHPDOCFORPHP=$PHPDOC + GENDIRFORPHP=$GENDIR + LIVEDOCSFORPHP=$LIVEDOCS + OUTPUTDIRFORPHP=$OUTPUTDIR +fi + AC_SUBST(BUILDLOG) AC_SUBST(PHPDOC) AC_SUBST(LIVEDOCS) @@ -97,6 +111,10 @@ AC_SUBST(FORCE_DYNAMIC) AC_SUBST(WEBBASE) AC_SUBST(GENDIR) +AC_SUBST(PHPDOCFORPHP) +AC_SUBST(GENDIRFORPHP) +AC_SUBST(LIVEDOCSFORPHP) +AC_SUBST(OUTPUTDIRFORPHP) AC_OUTPUT(build-ops config.php .htaccess) @@ -106,12 +124,12 @@ echo Copying livedoc files to $OUTPUTDIR... cp common.php config.php livedoc-index.php .htaccess $OUTPUTDIR rm -f .htaccess - ln -sf
[PHP-DOC] [livedocs] RTL RFC
hey, i'm going to add RTL support for livedocs. here is my draft plan, base on my experience doing it with the old build system: * make the style_mapping.php per language version: first, already now it contains plain text that have to be changed per language. second, that methos will give me maximum ability for RTL customizing with minmum delta from livedocs, when i can define format_* functions where neeeded (e.g, to add nbsp;'s and so on.) * on the sapareted style_mapping.php, put dir=rtl on the containers (not the css!) where needed: this will economize the css maintenance for each theme. * move the to the transform and format_* functions the actual language that was processed, to give the format_* functions the freedom display the page ltr if the page wasn't translated. * add direction for some functions to the themes/html_format on the configure level (--with-rtl=yes): this will affect only the selected theme on the configure step and anyway not affect themes that have no support for rtl. * the same for encoding for all the translations (have nothing with the RTL issue just a something that have to be done:). i already did some tests and the result looks nice seem to bypass almost all the issues we have on the old system. comments? --/moshe
[PHP-DOC] [PATCH] livedoc with cygwin
hey playing a bit building livedoc on win2000 using cygwin i run ito two problems: 1. the autoconf (shell) paths are /cygdrive/X format, but the php binary is vc build (cygwin gcc port is dead for a while) that have nothing to do with those paths. 2. the `ln -sf` is somthing behave very fishy on cygwin so i have to replace it with `cp -rf` on the attachment there is a patch that fix the problems. --\moshe. begin 666 livedocs-cygwin.txt M/R!L;VN='AT#0I);F1E[EMAIL PROTECTED];0M;W!S+FEN#0H]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]#0I20U,@[EMAIL PROTECTED])E]S:71OGDO;EV961O8W,O8G5I M;0M;W!S+FEN+'8-G)E=')I979I;F@F5V:7-I;VX@,2XT#0ID:69F(UU M(UR,2XT()U:6QD+6]PRYI;@T*+2TM()U:6QD+6]PRYI;@DQ,R!*86X@ M,C P- Q,#HU-SHP-B M,# P, DQ+C0-BLK*R!B=6EL9UO',N:6X),C@ M2F%N(#(P,#0@,30Z,[EMAIL PROTECTED] P,# -D! ([EMAIL PROTECTED],[EMAIL PROTECTED] -B!, M259%1$]#4SU 3$E6141/0U- [EMAIL PROTECTED]/4!/5510551$25) #0H@ M1T5.1$E2/4!'14Y$25) #0HK#0HK4$A01$]#1D]24$A0/2= 4$A01$]#1D]2 M4$A00-BM,259%1$]#4T9/4E!(4#TG0$Q)5D5$3T-31D]24$A00-BM/ M5510551$25)3U)02% ])T!/5510551$25)3U)02%! )PT**T=%3D1)4D9/ M4E!(4#TG0$=%3D1)4D9/4E!(4$ G#0H@(R B96XB('-H;W5L9!B92!T:4@ M9FERW0A#0H@(R!,04Y'54%'15,](F5N(%R(-S(1E(5S(9I(9R(AE M(AK(AU(ET(IA(MR(QT(YL('!L('!T7T)2(')O(')U('-K('-L('-V M('1R('1W('IH(@T*($Q!3D=504=%4STB0$Q!3D=504=%4T B#0I);F1E#H@ M8G5I;0N[EMAIL PROTECTED]CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T-E)#4R!F:6QE.B O MF5P;W-I=]R2]L:79E9]CR]B=6EL9YS:QV#0IR971R:65V:6YG(')E M=FES:6]N(#$N,3-[EMAIL PROTECTED]@+7(Q+C$W()U:[EMAIL PROTECTED] M;0NV@),C,@2F%N(#(P,#0@,[EMAIL PROTECTED],CZ,3@+3 P,# ),2XQ-PT**RLK()U M:6QD+G-H3(W($IA;B R,# T(#$T.C,T.C4U(TP,# P#0I 0 M,CL,3,@ M*S(W+#$S($! [EMAIL PROTECTED]@0DC2G5S=!F;W(@95B=6=I;F-B )2-X;6QL M:6YT(TM9F]R;6%T(1[1T5.1$E2?2]T;V,M=6=L2YX;6P@/B DT=%3D1) M4GTO=]C+GAM; T*+0T*+0D))'M02%!](1[3$E6141/0U-]+VUK=]C+G!H M DT=%3D1)4GTO=]C+75G;'DNUL(#X@)'M'14Y$25)]+W1O8RUI;G-E MG0NW%L#0HK0D-BL)21[4$A0?2 DTQ)5D5$3T-31D]24$A0?2]M:W1O M8RYP:' @)'M'14Y$25)3U)02%!]+W1O8RUU9VQY+GAM; ^(1[1T5.1$E2 M?2]T;V,M:6YS97)T+G-Q; T*( EF:0T*( T*( EE8VAO(UN()-86MI;F@ M:6YD97@@9F]R(1I.B B#0H@61A=4-BT))'M02%!](1[3$E6141/0U-] M+VUK:[EMAIL PROTECTED]AP(1[4$A01$]#?2 D:2 DT=%3D1)4GT-BL))'M02%!] M(1[3$E6141/0U-3U)02%!]+VUK:[EMAIL PROTECTED]AP(1[4$A01$]#1D]24$A0 M?2 D:2 DT=%3D1)4D9/4E!(4'T-B );78@)'M'14Y$25)]+VQI=F5D;V,M M:61X+B1I+G-Q;ET92 DT]55%!55$1)4GT-B )(R!CF5A=4@;W5T'5T M(1I@T*( EM:V1IB M DT]55%!55$1)4GTO)D-DEN95X.B!C;VYF M:6NAP+FEN#0H]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]#0I20U,@9FEL93H@ M+W)E]S:71OGDO;EV961O8W,O8V]N9FEG+G!HYI;BQV#0IR971R:65V M:6YG(')E=FES:6]N(#$N- T*9EF9B M=2 MC$N-!C;VYF:6NAP+FEN [EMAIL PROTECTED]YI;@DR,R!*86X@,C P- Q-#HU.#HS. M,# P M, DQ+C0-BLK*R!C;VYF:6NAP+FEN3(W($IA;B R,# T(#$T.C,T.C4U M(TP,# P#0I 0 M,BPQ,B K,BPQ,B! 0 T*(\J($-O;F9I9R!F:6QE(9O MB!T:4@;EV961O8W,@*B\-B -B!D969I;F4H)T9!3$Q04-+7TQ!3DG M+ G96XG*3L-BUD969I;F4H)U!(4$1/0RL(= 4$A01$]#0I.PT*+61E [EMAIL PROTECTED]/0U,G+ G0$Q)5D5$3T-30[EMAIL PROTECTED] M4%541$E2)RP@)T!/5510551$25) )RD[#0HK95F:6YE*=02%!$3T,G+ G M0%!(4$1/0T9/4E!(4$ G*3L-BMD969I;F4H)TQ)5D5$3T-3)RP@)T!,259% M1$]#4T9/4E!(4$ G*3L-BMD969I;F4H)T]55%!55$1)4BL(= 3U544%54 M1$E21D]24$A00I.PT*([EMAIL PROTECTED])0RL($!3U)# M15]$64Y!34E#0[EMAIL PROTECTED]5F:6YE*=714)05-%)RP@)T!714)05-%0I [EMAIL PROTECTED])RP@)T!'14Y$25) )RD[#0HK95F:6YE*=' M14Y$25(G+ G0$=%3D1)4D9/4E!(4$ G*3L-B!D969I;F4H)TQ!3D=504=% M4RL(= 3$%.1U5!1T530I.PT*([EMAIL PROTECTED]L(= M5$A%345.04U%0I.PT*( [EMAIL PROTECTED](-O;F9I9W5R92YI;@T*/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/0T*4D-3(9I;4Z(]R97!OVET;W)Y+VQI=F5D M;V-S+V-O;F9I9W5R92YI;BQV#0IR971R:65V:6YG(')E=FES:6]N(#$N,30- M[EMAIL PROTECTED]@+7(Q+C$T(-O;F9I9W5R92YI;@T*+2TM(-O;F9I9W5R92YI M;@DR,R!*86X@,C P- Q-#HU.#HS. M,# P, [EMAIL PROTECTED] M=7)E+FEN3(W($IA;B R,# T(#$T.C,T.C4U(TP,# P#0I 0 [EMAIL PROTECTED] K [EMAIL PROTECTED],C @0$ -B @(%M'14Y$25(](B1W:71H=F%L(ETL#0H@(!;1T5.1$E2 M/2(O=UP([EMAIL PROTECTED]:[EMAIL PROTECTED]5S=[EMAIL PROTECTED];65\9W)E!#64=724Y@(#L@ M=AE;@T**R @;YC;60])V-P(UR9B-BL@(%!(4$1/0T9/4E!([EMAIL PROTECTED] M%T: M=R D4$A01$]#8 T**R @1T5.1$E21D]24$A0/6!C6=P871H(UW M(1'14Y$25)@#0HK(!,259%1$]#4T9/4E!([EMAIL PROTECTED]%T: M=R D3$E6 M141/[EMAIL PROTECTED](!/5510551$25)3U)02% ]8-Y9W!A=@@+7@)$]55%!5 M5$1)4F -BME;'-E#0HK(!L;F-M9#TG;[EMAIL PROTECTED])PT**R @4$A01$]#1D]2 M4$A0/2102%!$3T,-BL@($=%3D1)4D9/4E!(4#TD1T5.1$E2#0HK(!,259% M1$]#4T9/4E!(4#TD3$E6141/0U,-BL@($]55%!55$1)4D9/4E!(4#TD3U54 M4%541$E2#0HK9FD-BL-B!!0U]354)35A54E,1$Q/1RD-B!!0U]354)3 M5A02%!$3T,[EMAIL PROTECTED]4U0H3$E6141/0U,I#0I 0 M.3L-B K,3$Q M+#$P($! [EMAIL PROTECTED]4U0H1D]20T5?1%E.04U)0RD-B!!0U]354)35A7 M14)05-%*0T*($%#7U-50E-4*$=%3D1)4BD-BM!0U]354)35A02%!$3T- M3U)02% I#0HK04-?4U54U0H1T5.1$E21D]24$A0*0T**T%#7U-50E-4*$Q) M5D5$3T-31D]24$A0*0T**T%#7U-50E-4*$]55%!55$1)4D9/4E!(4D-B - MB!!0U]/5510550H8G5I;0M;W!S(-O;F9I9RYP:'
Re: [PHP-DOC] [PATCH] livedoc with cygwin
Please provide a normal patch. regards, Derick here: http://moshe.i-com-it.com/patchs/livedocs-cygwin.txt --/moshe.
Re: [PHP-DOC] Manual Manual Update
Can't we ask each translation team to provide its language differents formats of documentation to [EMAIL PROTECTED] ? I think it will get rid of the load. The system team will only have to test them and then put them online. Opinions ? +1 moshe -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/printer/functions printer-create-dc.xml
momoWed Aug 6 04:10:32 2003 EDT Modified files: /phpdoc/en/reference/printer/functions printer-create-dc.xml Log: typo Index: phpdoc/en/reference/printer/functions/printer-create-dc.xml diff -u phpdoc/en/reference/printer/functions/printer-create-dc.xml:1.3 phpdoc/en/reference/printer/functions/printer-create-dc.xml:1.4 --- phpdoc/en/reference/printer/functions/printer-create-dc.xml:1.3 Wed Jul 16 13:18:45 2003 +++ phpdoc/en/reference/printer/functions/printer-create-dc.xml Wed Aug 6 04:10:32 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -- refentry id=function.printer-create-dc refnamediv @@ -40,7 +40,7 @@ printer_delete_dc($handle); -printer_endpage($handle); +printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ? @@ -69,4 +69,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --- +-- \ No newline at end of file -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /dsssl/docbook/common dbl1he.ent
momoTue Aug 12 09:19:13 2003 EDT Modified files: /phpdoc/dsssl/docbook/commondbl1he.ent Log: leftover Index: phpdoc/dsssl/docbook/common/dbl1he.ent diff -u phpdoc/dsssl/docbook/common/dbl1he.ent:1.4 phpdoc/dsssl/docbook/common/dbl1he.ent:1.5 --- phpdoc/dsssl/docbook/common/dbl1he.ent:1.4 Mon Aug 4 10:08:41 2003 +++ phpdoc/dsssl/docbook/common/dbl1he.ent Tue Aug 12 09:19:13 2003 @@ -102,8 +102,8 @@ !ENTITY sidebar sidebar !ENTITY stepstep !ENTITY StepStep -!ENTITY Table Table -!ENTITY table Table +!ENTITY Table èáìà +!ENTITY table èáìà !ENTITY tip èéô !ENTITY TIP èéô !ENTITY Tip èéô -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoTue Aug 12 09:29:53 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: cleanup more align improvements. Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.15 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.16 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.15Thu Jul 31 08:53:53 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Tue Aug 12 09:29:53 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.15 2003/07/31 12:53:53 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.16 2003/08/12 13:29:53 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -42,84 +42,43 @@ //TODO: find exceptions (on the stream part there are some) } } - $b = $HEType[b]; - if(isset($this-EBT[$b])){ - $ar = array(class,function); - for($a=0;$acount($this-EBT[$b]);$a++){ - $elem = $this-ATE[$this-EBT[$b][$a]]; - if($this-comp_properties($elem,$ar)){ - $elem[dir] = ltr; - if(isset($this-ATE[$this-EBT[$b][$a]+1][data])){ - $this-ATE[$this-EBT[$b][$a]+1][data] = nbsp;.$this-ATE[$this-EBT[$b][$a]+1][data]; - } - } - } - } - - //fix consts: - $tmp=0; - do{ - if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,constant),offset=($tmp+1{ - $this-ATE[$tmp-1][dir] = ltr; - } - } while($tmp); +$tmp=0; +while ($tmp = $this-get_element_id_by_rule(array(tag=b,properties=array(class,function),offset=($tmp+1{ +$this-ATE[$tmp][dir] = ltr; +$this-add_nbsp($tmp,$tmp+3); +} //fix systemitem: -do{ -if($tmp = $this-get_element_id_by_rule(array(tag=span,properties=array(class,systemitem),offset=($tmp+1{ -$this-ATE[$tmp-1][dir] = ltr; -} +$tmp=0; +while($tmp = $this-get_element_id_by_rule(array(tag=span,properties=array(class,systemitem),offset=($tmp+1{ + $this-ATE[$tmp-1][dir] = ltr; } while($tmp); - //ltr literals: - $tmp=0; - do{ - if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,literal),offset=($tmp+1{ - $this-ATE[$tmp][dir] = ltr; - if(isset($this-ATE[$tmp+1][data])){ - $this-ATE[$tmp+1][data] = nbsp;.$this-ATE[$tmp+1][data]; - } - } - } while($tmp); - - //fix configure options: - $tmp=0; - do{ - if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,option),offset=($tmp+1{ - $this-ATE[$tmp][dir] = ltr; - } - } while($tmp); - - //fix filenames: - $tmp=0; - do{ - if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,filename),offset=($tmp+1{ - $this-ATE[$tmp][dir] = ltr; - //if filename not before punctuation marks, add nbsp; to eliminate the align issue came with dir=rtl: - if(isset($this-ATE[$tmp+3][data]{0})){ - $ord = ord($this-ATE[$tmp+3][data]{0}); - if($ord65||$ord==32||$ord==40||$ord==41){//without (all the punctuation marks whitout space, and brackets). - $this-ATE[$tmp][chaintoclose] = nbsp;; - } - } - } - } while($tmp); - - //fix varnames: + //fix filenames,varnames,userinput,configure options: $tmp=0; - do{ - if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,varname),offset=($tmp+1{ - $this-ATE[$tmp][dir] = ltr; - //if varname
[PHP-DOC] cvs: phpdoc /dsssl/docbook/common dbl1he.ent
momoMon Aug 4 10:08:42 2003 EDT Modified files: /phpdoc/dsssl/docbook/commondbl1he.ent Log: better translation Index: phpdoc/dsssl/docbook/common/dbl1he.ent diff -u phpdoc/dsssl/docbook/common/dbl1he.ent:1.3 phpdoc/dsssl/docbook/common/dbl1he.ent:1.4 --- phpdoc/dsssl/docbook/common/dbl1he.ent:1.3 Thu Jul 24 05:34:41 2003 +++ phpdoc/dsssl/docbook/common/dbl1he.ent Mon Aug 4 10:08:41 2003 @@ -144,9 +144,9 @@ !ENTITY ListofUnknown List of Unknown !ENTITY listofunknown List of Unknown !ENTITY nav-homeìãó äáéú -!ENTITY nav-nextäáà +!ENTITY nav-next÷ãéîä !ENTITY nav-next-sibling ÷ãéîä áøòì -!ENTITY nav-prevà çåø +!ENTITY nav-prevà çåøä !ENTITY nav-prev-sibling à çåøä ìçìåèéï !ENTITY nav-up ìîòìä !ENTITY Draft èéåèà -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoThu Jul 31 08:53:53 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: systemitem's Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.15 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14Wed Jul 30 09:48:18 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Thu Jul 31 08:53:53 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.14 2003/07/30 13:48:18 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.15 2003/07/31 12:53:53 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -63,7 +63,14 @@ $this-ATE[$tmp-1][dir] = ltr; } } while($tmp); - + +//fix systemitem: +do{ +if($tmp = $this-get_element_id_by_rule(array(tag=span,properties=array(class,systemitem),offset=($tmp+1{ +$this-ATE[$tmp-1][dir] = ltr; +} +} while($tmp); + //ltr literals: $tmp=0; do{ @@ -88,7 +95,7 @@ do{ if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,filename),offset=($tmp+1{ $this-ATE[$tmp][dir] = ltr; - //if varname not before punctuation marks, add nbsp; to eliminate the align issue came with dir=rtl: + //if filename not before punctuation marks, add nbsp; to eliminate the align issue came with dir=rtl: if(isset($this-ATE[$tmp+3][data]{0})){ $ord = ord($this-ATE[$tmp+3][data]{0}); if($ord65||$ord==32||$ord==40||$ord==41){//without (all the punctuation marks whitout space, and brackets). @@ -258,4 +265,4 @@ unset($this-EC); unset($this-EBT); } -} \ No newline at end of file +} -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoWed Jul 30 06:54:13 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: better warnning caution Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.12 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.12Tue Jul 29 06:07:47 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Wed Jul 30 06:54:12 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.12 2003/07/29 10:07:47 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.13 2003/07/30 10:54:12 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -108,7 +108,17 @@ } while($tmp); //fix warnning boxes: - if($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,warning),offset=(0{ + $tmp=0; + while($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,warning),offset=($tmp+1{ + $cond = array(tag=td,properties=array(align,LEFT),offset=($tmp+1)); + if (($td = $this-get_element_id_by_rule($cond)) ($td$tocend = $this-ECE[$tmp])){ + $this-ATE[$td][align] = right; + } + } + + //fix caution boxes: + $tmp=0; + while($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,caution),offset=($tmp+1{ $cond = array(tag=td,properties=array(align,LEFT),offset=($tmp+1)); if (($td = $this-get_element_id_by_rule($cond)) ($td$tocend = $this-ECE[$tmp])){ $this-ATE[$td][align] = right; -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoWed Jul 30 09:48:18 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: filenames following the varnames. Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13Wed Jul 30 06:54:12 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Wed Jul 30 09:48:18 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.13 2003/07/30 10:54:12 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.14 2003/07/30 13:48:18 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -83,12 +83,18 @@ } } while($tmp); - //fix filenames: $tmp=0; do{ if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,filename),offset=($tmp+1{ $this-ATE[$tmp][dir] = ltr; + //if varname not before punctuation marks, add nbsp; to eliminate the align issue came with dir=rtl: + if(isset($this-ATE[$tmp+3][data]{0})){ + $ord = ord($this-ATE[$tmp+3][data]{0}); + if($ord65||$ord==32||$ord==40||$ord==41){//without (all the punctuation marks whitout space, and brackets). + $this-ATE[$tmp][chaintoclose] = nbsp;; + } + } } } while($tmp); -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch rtlpatch.php
momoThu Jul 31 01:34:58 2003 EDT Modified files: /phpdoc/scripts/rtlpatchrtlpatch.php Log: fix for phpweb Index: phpdoc/scripts/rtlpatch/rtlpatch.php diff -u phpdoc/scripts/rtlpatch/rtlpatch.php:1.6 phpdoc/scripts/rtlpatch/rtlpatch.php:1.7 --- phpdoc/scripts/rtlpatch/rtlpatch.php:1.6Thu May 29 08:33:20 2003 +++ phpdoc/scripts/rtlpatch/rtlpatch.phpThu Jul 31 01:34:58 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: rtlpatch.php,v 1.6 2003/05/29 12:33:20 momo Exp $ + $Id: rtlpatch.php,v 1.7 2003/07/31 05:34:58 momo Exp $ */ /* @@ -35,7 +35,7 @@ script runing time on my box is about 15% then the build time, not so big deal, that'll force me rewrite the parser in C ;) */ - +//die(\n\n!! remove me later (.__FILE__.:.__LINE__.\n\n); error_reporting(2047); // finding the real path of the needed files: $mypath = $_SERVER[SCRIPT_NAME]; @@ -124,7 +124,7 @@ mysyslog($file doesn't exists or have no write permission); return false; } - fwrite($f,$text); + fwrite($f,trim($text)); fclose($f); //die(\n---.__LINE__.---.__FILE__); return true; -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoTue Jul 29 06:07:47 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: 1. better varnames 2. warnnings Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.11 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.12 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.11Mon Jul 28 06:39:19 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Tue Jul 29 06:07:47 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.11 2003/07/28 10:39:19 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.12 2003/07/29 10:07:47 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -97,9 +97,23 @@ do{ if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,varname),offset=($tmp+1{ $this-ATE[$tmp][dir] = ltr; + //if varname not before punctuation marks, add nbsp; to eliminate the align issue came with dir=rtl: + if(isset($this-ATE[$tmp+3][data]{0})){ + $ord = ord($this-ATE[$tmp+3][data]{0}); + if($ord65||$ord==32||$ord==40||$ord==41){//without (all the punctuation marks whitout space, and brackets). + $this-ATE[$tmp][chaintoclose] = nbsp;; + } + } } } while($tmp); + //fix warnning boxes: + if($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,warning),offset=(0{ + $cond = array(tag=td,properties=array(align,LEFT),offset=($tmp+1)); + if (($td = $this-get_element_id_by_rule($cond)) ($td$tocend = $this-ECE[$tmp])){ + $this-ATE[$td][align] = right; + } + } //fix for TOC if($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,TOC),offset=(0{ @@ -151,14 +165,15 @@ if($tg9) { $tag = $EHType[$tg]; $ret[$a] .= $tag; - $chaintoend=; + $chaintoend = $chaintoclose = ; foreach ($this-ATE[$a] as $key=$value){ if($key == chaintoend) $chaintoend = $value; + else if ($key == chaintoclose) $chaintoclose = $value; else $ret[$a].= $key=\$value\; } $ret[$a].=$chaintoend; - if($this-ECE[$a]!=$a) $ret[$this-ECE[$a]] .= /$tag; + if($this-ECE[$a]!=$a) $ret[$this-ECE[$a]] .= /$tag$chaintoclose; } else if($tg == __HTML_PROCESS__){ $ret[$a].=.$this-ATE[$a][data]. \n?; } else if($tg __HTML_UNKNOWN__){ -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /dsssl/docbook/common dbl1he.ent
momoThu Jul 24 05:34:42 2003 EDT Modified files: /phpdoc/dsssl/docbook/commondbl1he.ent Log: make derick's openjade happy (hopefully) Index: phpdoc/dsssl/docbook/common/dbl1he.ent diff -u phpdoc/dsssl/docbook/common/dbl1he.ent:1.2 phpdoc/dsssl/docbook/common/dbl1he.ent:1.3 --- phpdoc/dsssl/docbook/common/dbl1he.ent:1.2 Tue Jul 22 01:09:22 2003 +++ phpdoc/dsssl/docbook/common/dbl1he.ent Thu Jul 24 05:34:41 2003 @@ -1,4 +1,4 @@ -?xml version=1.0 encoding=ISO-8859-8? +?xml version=1.0 encoding=WINDOWS-1255? !-- This file is hack for using ascii hebrew on docbook -- !-- by moshe doron[EMAIL PROTECTED] -- -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoTue Jul 22 09:00:21 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: more rtl tuning Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.9 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.10 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.9 Thu Jul 10 05:23:30 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Tue Jul 22 09:00:21 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.9 2003/07/10 09:23:30 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.10 2003/07/22 13:00:21 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -79,6 +79,23 @@ $tmp=0; do{ if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,option),offset=($tmp+1{ + $this-ATE[$tmp][dir] = ltr; + } + } while($tmp); + + + //fix filenames: + $tmp=0; + do{ + if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,filename),offset=($tmp+1{ + $this-ATE[$tmp][dir] = ltr; + } + } while($tmp); + + //fix varnames: + $tmp=0; + do{ + if($tmp = $this-get_element_id_by_rule(array(tag=tt,properties=array(class,varname),offset=($tmp+1{ $this-ATE[$tmp][dir] = ltr; } } while($tmp); -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc / Makefile.in
momoTue Jul 22 14:30:41 2003 EDT Modified files: /phpdoc Makefile.in Log: typo Index: phpdoc/Makefile.in diff -u phpdoc/Makefile.in:1.137 phpdoc/Makefile.in:1.138 --- phpdoc/Makefile.in:1.137Tue Jul 22 01:09:21 2003 +++ phpdoc/Makefile.in Tue Jul 22 14:30:41 2003 @@ -13,7 +13,7 @@ # # -# $Id: Makefile.in,v 1.137 2003/07/22 05:09:21 momo Exp $ +# $Id: Makefile.in,v 1.138 2003/07/22 18:30:41 momo Exp $ # all: html @@ -191,7 +191,7 @@ @test -d php || mkdir php $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php $(LANGDIR) -$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml - $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php he + $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php en $(PHP) -q $(scriptdir)/phpweb-entities.php `pwd` remove $(HACK_RTL_LANGS_PHPWEB) -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] request for splitting
Jan Fabry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] (of course, I didn't 'Reply to list' - sorry Friedhelm!) On Sat, 2003-07-19 at 16:00, Friedhelm Betz wrote: some files under /language are really huge and a pain ;-) to translate. What do you think about splitting them up to make them a bit easier to handle and translate? How would this make the translation easier? If you split up a large file into smaller parts, you still have to translate all those parts. I don't see an improvement in splitting up the files, unless you also rewrite parts of the documentation, to make things clearer or so. +1 -- moshe -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc / Makefile.in /dsssl/docbook/common dbl1he.ent /scripts/rtlpatch hackmanuallang.php
momoTue Jul 22 01:09:22 2003 EDT Added files: /phpdoc/scripts/rtlpatchhackmanuallang.php Modified files: /phpdoc Makefile.in /phpdoc/dsssl/docbook/commondbl1he.ent Log: bypassing dsssl to use hebrew entities Index: phpdoc/Makefile.in diff -u phpdoc/Makefile.in:1.136 phpdoc/Makefile.in:1.137 --- phpdoc/Makefile.in:1.136Fri Jun 27 18:55:49 2003 +++ phpdoc/Makefile.in Tue Jul 22 01:09:21 2003 @@ -13,7 +13,7 @@ # # -# $Id: Makefile.in,v 1.136 2003/06/27 22:55:49 tom Exp $ +# $Id: Makefile.in,v 1.137 2003/07/22 05:09:21 momo Exp $ # all: html @@ -161,7 +161,9 @@ html/index.html: manual.xml $(HTML_DEPS) @test -d html || mkdir html + $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php $(LANGDIR) $(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml + $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php en $(HACK_RTL_LANGS_PAGES) # still needs more tweaks!! @@ -187,7 +189,9 @@ php/index.php: manual.xml $(PHPWEB_DEPS) $(PHP) -q $(scriptdir)/phpweb-entities.php `pwd` phpweb @test -d php || mkdir php + $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php $(LANGDIR) -$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml + $(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php he $(PHP) -q $(scriptdir)/phpweb-entities.php `pwd` remove $(HACK_RTL_LANGS_PHPWEB) Index: phpdoc/dsssl/docbook/common/dbl1he.ent diff -u phpdoc/dsssl/docbook/common/dbl1he.ent:1.1 phpdoc/dsssl/docbook/common/dbl1he.ent:1.2 --- phpdoc/dsssl/docbook/common/dbl1he.ent:1.1 Sat Jul 20 07:07:54 2002 +++ phpdoc/dsssl/docbook/common/dbl1he.ent Tue Jul 22 01:09:22 2003 @@ -1,157 +1,157 @@ -?xml version=1.0 encoding=US-ASCII? -!-- This file is generated automatically. -- -!-- Do not edit this file by hand! -- -!-- See http://docbook.sourceforge.net/ -- -!-- To update this file: edit the corresponding document at -- -!-- http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/docbook/gentext/locale/ -- +?xml version=1.0 encoding=ISO-8859-8? +!-- This file is hack for using ascii hebrew on docbook -- +!-- by moshe doron[EMAIL PROTECTED] -- -!ENTITY Abstract\U-05E1;\U-05D9;\U-05DB;\U-05D5;\U-05DD; -!ENTITY abstract\U-05E1;\U-05D9;\U-05DB;\U-05D5;\U-05DD; -!ENTITY Answer \U-05EA;: -!ENTITY answer \U-05EA;: -!ENTITY Appendix\U-05E0;\U-05E1;\U-05E4;\U-05D7; -!ENTITY appendix\U-05E0;\U-05E1;\U-05E4;\U-05D7; -!ENTITY Article \U-05DE;\U-05D0;\U-05DE;\U-05E8; -!ENTITY article \U-05DE;\U-05D0;\U-05DE;\U-05E8; -!ENTITY Bibliography \U-05D1;\U-05D9;\U-05D1;\U-05DC;\U-05D9;\U-05D5;\U-05D2;\U-05E8;\U-05E4;\U-05D9;\U-05D4; -!ENTITY bibliography \U-05D1;\U-05D9;\U-05D1;\U-05DC;\U-05D9;\U-05D5;\U-05D2;\U-05E8;\U-05E4;\U-05D9;\U-05D4; -!ENTITY Book\U-05E1;\U-05E4;\U-05E8; -!ENTITY book\U-05E1;\U-05E4;\U-05E8; -!ENTITY CAUTION \U-05D0;\U-05D6;\U-05D4;\U-05E8;\U-05D4; -!ENTITY Caution \U-05D0;\U-05D6;\U-05D4;\U-05E8;\U-05D4; -!ENTITY caution \U-05D0;\U-05D6;\U-05D4;\U-05E8;\U-05D4; -!ENTITY Chapter \U-05E4;\U-05E8;\U-05E7; -!ENTITY chapter \U-05E4;\U-05E8;\U-05E7; -!ENTITY Colophon\U-05E7;\U-05D5;\U-05DC;\U-05D5;\U-05E4;\U-05D5;\U-05DF; -!ENTITY colophon\U-05E7;\U-05D5;\U-05DC;\U-05D5;\U-05E4;\U-05D5;\U-05DF; -!ENTITY Copyright \U-05D6;\U-05DB;\U-05D5;\U-05D9;\U-05D5;\U-05EA; \U-05D9;\U-05D5;\U-05E6;\U-05E8;\U-05D9;\U-05DD; -!ENTITY copyright \U-05D6;\U-05DB;\U-05D5;\U-05D9;\U-05D5;\U-05EA; \U-05D9;\U-05D5;\U-05E6;\U-05E8;\U-05D9;\U-05DD; -!ENTITY Dedication \U-05D4;\U-05E7;\U-05D3;\U-05E9;\U-05D4; -!ENTITY dedication \U-05D4;\U-05E7;\U-05D3;\U-05E9;\U-05D4; -!ENTITY Edition \U-05DE;\U-05D4;\U-05D3;\U-05D5;\U-05E8;\U-05D4; -!ENTITY edition \U-05DE;\U-05D4;\U-05D3;\U-05D5;\U-05E8;\U-05D4; -!ENTITY Equation\U-05DE;\U-05E9;\U-05D5;\U-05D5;\U-05D0;\U-05D4; -!ENTITY equation\U-05DE;\U-05E9;\U-05D5;\U-05D5;\U-05D0;\U-05D4; -!ENTITY Example \U-05D3;\U-05D5;\U-05D2;\U-05DE;\U-05D4; -!ENTITY example \U-05D3;\U-05D5;\U-05D2;\U-05DE;\U-05D4; -!ENTITY Figure \U-05D0;\U-05D9;\U-05D5;\U-05E8; -!ENTITY figure \U-05D0;\U-05D9;\U-05D5;\U-05E8; -!ENTITY Glossary\U-05DE;\U-05D9;\U-05DC;\U-05D5;\U-05DF; \U-05DE;\U-05D5;\U-05E0;\U-05D7;\U-05D9;\U-05DD; -!ENTITY glossary\U-05DE;\U-05D9;\U-05DC;\U-05D5;\U-05DF; \U-05DE;\U-05D5;\U-05E0;\U-05D7;\U-05D9;\U-05DD; -!ENTITY GlossSee\U-05E8;\U-05D0;\U-05D4; -!ENTITY glosssee\U-05E8;\U-05D0;\U-05D4; -!ENTITY GlossSeeAlso\U-05E8;\U-05D0;\U-05D4; \U-05D2;\U-05DD; -!ENTITY glossseealso\U-05E8;\U-05D0;\U-05D4; \U-05D2;\U-05DD; -!ENTITY IMPORTANT \U-05D7;\U-05E9;\U-05D5;\U-05D1; -!ENTITY important \U-05D7;\U-05E9
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch hackmanuallang.php
momoTue Jul 22 01:13:42 2003 EDT Modified files: /phpdoc/scripts/rtlpatchhackmanuallang.php Log: WS Index: phpdoc/scripts/rtlpatch/hackmanuallang.php diff -u phpdoc/scripts/rtlpatch/hackmanuallang.php:1.1 phpdoc/scripts/rtlpatch/hackmanuallang.php:1.2 --- phpdoc/scripts/rtlpatch/hackmanuallang.php:1.1 Tue Jul 22 01:09:22 2003 +++ phpdoc/scripts/rtlpatch/hackmanuallang.php Tue Jul 22 01:13:42 2003 @@ -1,22 +1,22 @@ ? /* - +--+ - | PHP Version 4| - +--+ - | Copyright (c) 1997-2003 The PHP Group| - +--+ - | This source file is subject to version 2.02 of the PHP licience, | - | that is bundled with this package in the file LICENCE and is | - | avalible through the world wide web at | - | http://www.php.net/license/2_02.txt. | - | If uou did not receive a copy of the PHP license and are unable to | - | obtain it through the world wide web, please send a note to | - | [EMAIL PROTECTED] so we can mail you a copy immediately| - +--+ - | Authors:Moshe Doron [EMAIL PROTECTED] | - +--+ + +---+ + | PHP Version 4 | + +---+ + | Copyright (c) 1997-2003 The PHP Group | + +---+ + | This source file is subject to version 2.02 of the PHP licience, | + | that is bundled with this package in the file LICENCE and is | + | avalible through the world wide web at | + | http://www.php.net/license/2_02.txt. | + | If uou did not receive a copy of the PHP license and are unable| + | to obtain it through the world wide web, please send a note to | + | [EMAIL PROTECTED] so we can mail you a copy immediately | + +---+ + | Authors:Moshe Doron [EMAIL PROTECTED]| + +---+ - $Id: hackmanuallang.php,v 1.1 2003/07/22 05:09:22 momo Exp $ + $Id: hackmanuallang.php,v 1.2 2003/07/22 05:13:42 momo Exp $ */ /* @@ -24,9 +24,6 @@ This file is patch allow per language customize for not pulling the autobuild system all those condition i making use this file to bypass some jade mysteries on the hebrew manual impossible build proccess - - this script have to be run befor the build proccess. - giving the docs path it's edit the files and add dir=rtl,ltr where needed Usage: php scriptname lang-code */ -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Re: cygwin and configure error
please send the whole output Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to build peardoc/ in cygwin. I've got ./configure to work, but I'm getting a strange bug in config.status config.status: creating \ .infig.status: error: cannot find input file: \ a quick text search of config.status reveals no presence of infig Where do I start to debug this one? Regards, Greg -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Re: phpdoc /chm make_chm_fancy.php
worse idea. most of the manual, speicialy still i'll play with the entities, is still english. the way doing it have to be much more selective way. did u build the manual before committing? anyway that should be discusses. -- moshe -- Hadar Porat [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hadar_p Fri Jul 11 06:19:35 2003 EDT Modified files: /phpdoc/chm make_chm_fancy.php Log: Another hebrew change Index: phpdoc/chm/make_chm_fancy.php diff -u phpdoc/chm/make_chm_fancy.php:1.8 phpdoc/chm/make_chm_fancy.php:1.9 --- phpdoc/chm/make_chm_fancy.php:1.8 Mon Jun 23 05:29:34 2003 +++ phpdoc/chm/make_chm_fancy.php Fri Jul 11 06:19:35 2003 @@ -85,12 +85,21 @@ // HR dropout $content = preg_replace(/HR\\s+ALIGN=\LEFT\\\s+WIDTH=\100%\/, '', $content); + if($LANGUAGE == he) { +// Whole page table and backgrounds +$wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 DIR=RTLTRTD COLSPAN=3'; +$bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% DIR=RTL'; +$lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; +$space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; + } + else { // Whole page table and backgrounds $wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0TRTD COLSPAN=3'; $bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%'; $lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; $space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; - + } + // Navheader backgound $content = preg_replace(/DIV\\s+CLASS=\NAVHEADER\\\s*TABLE(.*)CELLPADDING=\0\(.*)\\/TABLE\\s*\\/DIV\\s*/Us, $wpbegin . 'DIV CLASS=NAVHEADER' . $bnavt . 'TRTDTABLE\\1CELLPADDING=3\\2/TABLE/TD/TR' . $lnavt . '/TABLE/DIV/TD/TRTRTD' . $space . '/TDTD HEIGHT=100% VALIGN=TOP WIDTH=100%BR', $content); @@ -186,12 +195,20 @@ } } while($tmp); + if($LANGUAGE == he) { + // Whole page table and backgrounds +$wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 DIR=RTLTRTD COLSPAN=3'; +$bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% DIR=RTL'; +$lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; +$space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; + } + else { // Whole page table and backgrounds $wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0TRTD COLSPAN=3'; $bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%'; $lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; $space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; - + } // Navheader backgound if($tmp = $tree-get_element_id_by_rule(array(tag=div,properties=array(class,NAVHEADER{ $tree-ATE[$tmp][data] = $wpbeginDIV CLASS=\NAVHEADER\$bnavtTRTD;
[PHP-DOC] cvs: phpdoc /chm make_chm.php make_chm_fancy.php
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 = '!DOCTYPE HTML PUBLIC -//IETF//DTD HTML//HE -html -head - meta name=generator content=PHP 4 - Auto TOC script - !-- Sitemap 1.0 -- -/head -body dir=rtl lang=he - object type=text/site properties -param name=Window Styles value=0x800227 - /object - ul'; -} -else { // Header for index and toc $HEADER = '!DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN html @@ -55,7 +40,6 @@ param name=Window Styles value=0x800227 /object ul'; -} 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(/HR\\s+ALIGN=\LEFT\\\s+WIDTH=\100%\/, '', $content); - if($LANGUAGE == he) { -// Whole page table and backgrounds -$wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 DIR=RTLTRTD COLSPAN=3'; -$bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% DIR=RTL'; -$lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; -$space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; - } - else { // Whole page table and backgrounds $wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0TRTD COLSPAN=3'; $bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%'; $lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; $space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; - } - + // Navheader backgound $content = preg_replace(/DIV\\s+CLASS=\NAVHEADER\\\s*TABLE(.*)CELLPADDING=\0\(.*)\\/TABLE\\s*\\/DIV\\s*/Us, $wpbegin . 'DIV CLASS=NAVHEADER' . $bnavt . 'TRTDTABLE\\1CELLPADDING=3\\2/TABLE/TD/TR' . $lnavt . '/TABLE/DIV/TD/TRTRTD' . $space . '/TDTD HEIGHT=100% VALIGN=TOP WIDTH=100%BR', $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] = 'LINK REL=stylesheet HREF=style.css'; - - // Charset: - $meta = $HEType[meta]; - if(isset($tree-EBT[$meta])){ - for($a=0;$acount($tree-EBT[$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 ==
[PHP-DOC] cvs: phpdoc /chm make_chm_fancy.php
momoFri Jul 11 10:50:26 2003 EDT Modified files: /phpdoc/chm make_chm_fancy.php Log: proper revert Hadar patch Index: phpdoc/chm/make_chm_fancy.php diff -u phpdoc/chm/make_chm_fancy.php:1.10 phpdoc/chm/make_chm_fancy.php:1.11 --- phpdoc/chm/make_chm_fancy.php:1.10 Fri Jul 11 10:47:16 2003 +++ phpdoc/chm/make_chm_fancy.php Fri Jul 11 10:50:26 2003 @@ -1,15 +1,21 @@ ?php /* - PLEASE DO NOT MAKE ANY MAJOR MODIFICATIONS TO THIS CODE! - There is a new script collection on the way to replace - these scripts. Please be patient while it will be ready - to put here in CVS. +PLEASE DO NOT MAKE ANY MAJOR MODIFICATIONS TO THIS CODE! +There is a new script collection on the way to replace +these scripts. Please be patient while it will be ready +to put here in CVS. */ 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); @@ -23,7 +29,11 @@ $handle = opendir($HTML_PATH); while (false !== ($filename = readdir($handle))) { if (strpos($filename, .html) ($filename != fancy-index.html)) { -fancy_design($filename); +if($LANGUAGE == he) { +fancy_parser_design($filename); +} else { +fancy_design($filename); +} } } closedir($handle); @@ -131,5 +141,119 @@ $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] = 'LINK REL=stylesheet HREF=style.css'; + +// Charset: +$meta = $HEType[meta]; +if(isset($tree-EBT[$meta])){ +for($a=0;$acount($tree-EBT[$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); + +// Whole page table and backgrounds +$wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0TRTD COLSPAN=3'; +$bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%'; +$lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; +$space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; + +// Navheader backgound +if($tmp = $tree-get_element_id_by_rule(array(tag=div,properties=array(class,NAVHEADER{ +$tree-ATE[$tmp][data] = $wpbeginDIV CLASS=\NAVHEADER\$bnavtTRTD; +$tree-ATE[$tree-ECE[$tmp]][data] = /TD/TR$lnavt/TABLE/DIV/TD/TRTRTD$space/TDTD HEIGHT=\100%\ VALIGN=\TOP\ WIDTH=\100%\BR; +$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] = BR/TDTD$space/TD/TRTRTD COLSPAN=\3\DIV CLASS=\NAVFOOTER\{$bnavt}{$lnavt}TRTD; +$tree-ATE[$tree-ECE[$tmp]][data] = /TD/TR/TABLE/DIV/TD/TR/TABLE; +$tree-ATE[$tmp+1][cellpadding] = 3; +$tree-change_tag_type($tmp,__HTML_FREE_ENGLISH__); +} + +// Fix copyright page fault... +if ($fname == copyright.html) { +// it just looks that no more need to fix the copyright. +} + +// Fix the original manual index to look far better... +elseif ($fname == $original_index) { +// Find out manual generation date +if($tmp = $tree-get_element_id_by_rule(array(tag=p,properties=array(class,pubdate{ +$publication_date = $tree-ATE[$tmp+1][data]; +} else { +$publication_date = 'n/a'; +} + + + // Modify the index file to meet our needs +$tmp =
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoThu Jul 10 05:23:31 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: mute warning Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.8 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.9 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.8 Fri May 30 08:25:14 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Thu Jul 10 05:23:30 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.8 2003/05/30 12:25:14 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.9 2003/07/10 09:23:30 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -35,8 +35,12 @@ // fix functions '()': if($tmp = $this-get_element_id_by_rule(array(tag=div,properties=array(class,refsect1{ - $this-ATE[$tmp+6][data] = span dir=ltr.$this-ATE[$tmp+6][data]; - $this-ATE[$tmp+10][data] .= /span; + if(isset($this-ATE[$tmp+6][data])){ + $this-ATE[$tmp+6][data] = span dir=ltr.$this-ATE[$tmp+6][data]; + $this-ATE[$tmp+10][data] .= /span; + } else { + //TODO: find exceptions (on the stream part there are some) + } } $b = $HEType[b]; if(isset($this-EBT[$b])){ -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /chm make_chm_fancy.php
momoMon Jun 23 05:29:34 2003 EDT Modified files: /phpdoc/chm make_chm_fancy.php Log: fancy the hebrew Index: phpdoc/chm/make_chm_fancy.php diff -u phpdoc/chm/make_chm_fancy.php:1.7 phpdoc/chm/make_chm_fancy.php:1.8 --- phpdoc/chm/make_chm_fancy.php:1.7 Sun May 11 22:46:12 2003 +++ phpdoc/chm/make_chm_fancy.php Mon Jun 23 05:29:34 2003 @@ -10,6 +10,12 @@ 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); @@ -23,7 +29,11 @@ $handle = opendir($HTML_PATH); while (false !== ($filename = readdir($handle))) { if (strpos($filename, .html) ($filename != fancy-index.html)) { -fancy_design($filename); +if($LANGUAGE == he) { + fancy_parser_design($filename); +} else { + fancy_design($filename); +} } } closedir($handle); @@ -131,5 +141,119 @@ $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] = 'LINK REL=stylesheet HREF=style.css'; + + // Charset: + $meta = $HEType[meta]; + if(isset($tree-EBT[$meta])){ + for($a=0;$acount($tree-EBT[$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); + +// Whole page table and backgrounds +$wpbegin = 'TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0TRTD COLSPAN=3'; +$bnavt = 'TABLE BGCOLOR=#FF BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%'; +$lnavt = 'TR BGCOLOR=#66TDIMG SRC=spacer.gif BORDER=0 WIDTH=1 HEIGHT=1BR/TD/TR'; +$space = 'IMG SRC=spacer.gif WIDTH=10 HEIGHT=1'; + +// Navheader backgound +if($tmp = $tree-get_element_id_by_rule(array(tag=div,properties=array(class,NAVHEADER{ + $tree-ATE[$tmp][data] = $wpbeginDIV CLASS=\NAVHEADER\$bnavtTRTD; + $tree-ATE[$tree-ECE[$tmp]][data] = /TD/TR$lnavt/TABLE/DIV/TD/TRTRTD$space/TDTD HEIGHT=\100%\ VALIGN=\TOP\ WIDTH=\100%\BR; + $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] = BR/TDTD$space/TD/TRTRTD COLSPAN=\3\DIV CLASS=\NAVFOOTER\{$bnavt}{$lnavt}TRTD; + $tree-ATE[$tree-ECE[$tmp]][data] = /TD/TR/TABLE/DIV/TD/TR/TABLE; + $tree-ATE[$tmp+1][cellpadding] = 3; + $tree-change_tag_type($tmp,__HTML_FREE_ENGLISH__); + } + +// Fix copyright page fault... +if ($fname == copyright.html) { + // it just looks that no more need to fix the copyright. +} + +// Fix the original manual index to look far better... +elseif ($fname == $original_index) { + // Find out manual generation date + if($tmp = $tree-get_element_id_by_rule(array(tag=p,properties=array(class,pubdate{ + $publication_date = $tree-ATE[$tmp+1][data]; + } else { +$publication_date = 'n/a'; +} + + + // Modify the index file to meet our needs +$tmp = $tree-get_element_id_by_rule(array(tag=h1,properties=array(class,title))); + $tit = isset($tree-ATE[$tmp+2][data])?$tree-ATE[$tmp+2][data]:; + $tit2 =; + +$tmp
Re: [PHP-DOC] build log
Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] follow the instruction on http://www.php.net/manual/howto/translation-practical.html e.g, accessing http://www.php.net/he/blog just jump me to google. where is the log? Is is now [temporarily] available under http://php.net/~imajes/ But I was unable to find in my inbox, what is the right subfolder name... may can someone be more useful ? -- moshe -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] build log
follow the instruction on http://www.php.net/manual/howto/translation-practical.html e.g, accessing http://www.php.net/he/blog just jump me to google. where is the log? moshe --
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoThu May 29 10:53:23 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: allow adding tags between tags to the output Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.6 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.7 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.6 Tue May 27 06:43:46 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Thu May 29 10:53:22 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.6 2003/05/27 10:43:46 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.7 2003/05/29 14:53:22 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -131,10 +131,12 @@ if($tg9) { $tag = $EHType[$tg]; $ret[$a] .= $tag; + $chaintoend=; foreach ($this-ATE[$a] as $key=$value){ - $ret[$a].= $key=\$value\; + if($key == chaintoend) $chaintoend = $value; + else $ret[$a].= $key=\$value\; } - $ret[$a].=; + $ret[$a].=$chaintoend; if($this-ECE[$a]!=$a) $ret[$this-ECE[$a]] .= /$tag; } else if($tg == __HTML_PROCESS__){ -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
momoFri May 30 08:25:14 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlExtParser.class.php Log: add change_tag_type() Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.7 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.8 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.7 Thu May 29 10:53:22 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Fri May 30 08:25:14 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlExtParser.class.php,v 1.7 2003/05/29 14:53:22 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.8 2003/05/30 12:25:14 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -187,6 +187,17 @@ } } return true; + } + + function change_tag_type($id,$newtag){ + $this-ATE[$id][w4htype] = $newtag; + $this-ATE[$this-ECE[$id]][w4htype] = $newtag; + + if($newtag __HTML_UNKNOWN__){ + if(!isset($this-ATE[$id][data])) $this-ATE[$id][data] = ; + } + + //TODO: update the EBT } //\/\/\/\/\/\/\/\/\/\ -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php todo.txt
Your patched totally broke the index generation for the CHM HE manual, the parser exports in a totally differentformat and thus the index it suppose to be so, it's save the html meaning not the orginal ws and low\up case. anyway, there are some html changes related to the alignment so may that's the problem. well, i guess i have to learn this index generation dependencies now... -- moshe
[PHP-DOC] cvs: phpdoc /scripts/rtlpatch HtmlParser.class.php rtlpatch.php
momoThu May 29 08:33:20 2003 EDT Modified files: /phpdoc/scripts/rtlpatchHtmlParser.class.php rtlpatch.php Log: nuke warnings Index: phpdoc/scripts/rtlpatch/HtmlParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlParser.class.php:1.2 phpdoc/scripts/rtlpatch/HtmlParser.class.php:1.3 --- phpdoc/scripts/rtlpatch/HtmlParser.class.php:1.2Mon May 26 06:41:37 2003 +++ phpdoc/scripts/rtlpatch/HtmlParser.class.phpThu May 29 08:33:20 2003 @@ -16,7 +16,7 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: HtmlParser.class.php,v 1.2 2003/05/26 10:41:37 momo Exp $ + $Id: HtmlParser.class.php,v 1.3 2003/05/29 12:33:20 momo Exp $ */ define(__HTML_FREE_ENGLISH__,1); @@ -188,7 +188,7 @@ while($this-pos $this-len){ //debuginfo(pos is: . $this-pos. , character is: .$this-data{$this-pos}); if($this-data{$this-pos} != ){ - if ($x = $this-plaintext()) $this-map($x); + if ($x = $this-plaintext()) $this-map($x); }else if(++$this-pos $this-len){ $p = $this-data{$this-pos}; if($p == !){ @@ -201,7 +201,7 @@ $this-map($this-parse_process()); }else{ //debuginfo(opening); - $this-map($this-parse_start($endfl),$endfl); + $this-map($this-parse_start($endfl),$endfl); $this-pos++; } } @@ -209,7 +209,7 @@ } } - function parse_start($endfl){ + function parse_start($endfl){ global $HEType; //fining the html tag type: Index: phpdoc/scripts/rtlpatch/rtlpatch.php diff -u phpdoc/scripts/rtlpatch/rtlpatch.php:1.5 phpdoc/scripts/rtlpatch/rtlpatch.php:1.6 --- phpdoc/scripts/rtlpatch/rtlpatch.php:1.5Mon May 26 06:41:37 2003 +++ phpdoc/scripts/rtlpatch/rtlpatch.phpThu May 29 08:33:20 2003 @@ -16,11 +16,11 @@ | Authors:Moshe Doron [EMAIL PROTECTED] | +--+ - $Id: rtlpatch.php,v 1.5 2003/05/26 10:41:37 momo Exp $ + $Id: rtlpatch.php,v 1.6 2003/05/29 12:33:20 momo Exp $ */ /* - REQUIRES: PHP 4.3.2 or higher + REQUIRES: PHP 4.3.2 CLI or higher This file is temporary patch allow the hebrew and (in the future arabic) html generation. @@ -37,7 +37,6 @@ */ error_reporting(2047); - // finding the real path of the needed files: $mypath = $_SERVER[SCRIPT_NAME]; $spos = strrpos($mypath,/); -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in
momoWed Mar 19 03:57:56 2003 EDT Modified files: /phpdoc/scripts file-entities.php.in Log: fix for cygwin php binary Index: phpdoc/scripts/file-entities.php.in diff -u phpdoc/scripts/file-entities.php.in:1.7 phpdoc/scripts/file-entities.php.in:1.8 --- phpdoc/scripts/file-entities.php.in:1.7 Thu Dec 26 15:26:00 2002 +++ phpdoc/scripts/file-entities.php.in Wed Mar 19 03:57:56 2003 @@ -17,7 +17,7 @@ # | Gabor Hojtsy [EMAIL PROTECTED] | # +--+ # -# $Id: file-entities.php.in,v 1.7 2002/12/26 20:26:00 goba Exp $ +# $Id: file-entities.php.in,v 1.8 2003/03/19 08:57:56 momo Exp $ */ /** @@ -50,10 +50,22 @@ // XSL sheets are used or not (either yes or no) $xsl_sheet_used = (@DOCBOOKXSL_USED@ == yes ? TRUE : FALSE); +// when php complied on cygwin, the working path have to be /cygdrive.. +// the below preg_replace have to be done only using binary php complied on MSVC: +ob_start(); +phpinfo(1); +$tmp = ob_get_contents(); +ob_end_clean(); +$cygwin_complied = eregi(CYGWIN,$tmp) ? true : false; + +$ppath = $cygwin_complied + ? @WORKDIR@ + : preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@); + // The output directory, which we need to parse for windows specific -// things, special cygwin path notation, and correct all problems is -// needed. Also use absolute path to have meaningful error messages -$out_dir = abs_path(preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@)); +// things, and correct all problems is needed. +// Also use absolute path to have meaningful error messages +$out_dir = abs_path($ppath); // The source directory is passed in the 5th argument counting from backwards. $srcdir = abs_path(@SRCDIR@); -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in
momoWed Mar 19 04:14:04 2003 EDT Modified files: /phpdoc/scripts file-entities.php.in Log: revert last commit for now. jade not alwayes complied with cygwin unfortunately ... Index: phpdoc/scripts/file-entities.php.in diff -u phpdoc/scripts/file-entities.php.in:1.8 phpdoc/scripts/file-entities.php.in:1.9 --- phpdoc/scripts/file-entities.php.in:1.8 Wed Mar 19 03:57:56 2003 +++ phpdoc/scripts/file-entities.php.in Wed Mar 19 04:14:04 2003 @@ -17,7 +17,7 @@ # | Gabor Hojtsy [EMAIL PROTECTED] | # +--+ # -# $Id: file-entities.php.in,v 1.8 2003/03/19 08:57:56 momo Exp $ +# $Id: file-entities.php.in,v 1.9 2003/03/19 09:14:04 momo Exp $ */ /** @@ -58,7 +58,7 @@ ob_end_clean(); $cygwin_complied = eregi(CYGWIN,$tmp) ? true : false; -$ppath = $cygwin_complied +$ppath = (0$cygwin_complied) ? @WORKDIR@ : preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@); -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in
momoWed Mar 19 04:36:49 2003 EDT Modified files: /phpdoc/scripts file-entities.php.in Log: the right fix. i forked the $out_dir into $script_out_dir using for inscript tasks. Index: phpdoc/scripts/file-entities.php.in diff -u phpdoc/scripts/file-entities.php.in:1.9 phpdoc/scripts/file-entities.php.in:1.10 --- phpdoc/scripts/file-entities.php.in:1.9 Wed Mar 19 04:14:04 2003 +++ phpdoc/scripts/file-entities.php.in Wed Mar 19 04:36:48 2003 @@ -17,7 +17,7 @@ # | Gabor Hojtsy [EMAIL PROTECTED] | # +--+ # -# $Id: file-entities.php.in,v 1.9 2003/03/19 09:14:04 momo Exp $ +# $Id: file-entities.php.in,v 1.10 2003/03/19 09:36:48 momo Exp $ */ /** @@ -50,22 +50,23 @@ // XSL sheets are used or not (either yes or no) $xsl_sheet_used = (@DOCBOOKXSL_USED@ == yes ? TRUE : FALSE); + // when php complied on cygwin, the working path have to be /cygdrive.. -// the below preg_replace have to be done only using binary php complied on MSVC: +// the below preg_replace have to be done only using binary php complied on MSVC. +// let's find if php was complied by cygwin: ob_start(); phpinfo(1); $tmp = ob_get_contents(); ob_end_clean(); $cygwin_complied = eregi(CYGWIN,$tmp) ? true : false; - -$ppath = (0$cygwin_complied) - ? @WORKDIR@ - : preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@); - + // The output directory, which we need to parse for windows specific // things, and correct all problems is needed. // Also use absolute path to have meaningful error messages -$out_dir = abs_path($ppath); +$out_dir = abs_path(preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@)); + +// this path if used for saving the ent file: +$script_out_dir = $cygwin_complied ? @WORKDIR@ : $out_dir; // The source directory is passed in the 5th argument counting from backwards. $srcdir = abs_path(@SRCDIR@); @@ -84,9 +85,9 @@ file_entities($orig_dir, $trans_dir, $orig_dir, $entities); // Open file for appending and write out all entitities -$fp = fopen($out_dir/entities/file-entities.ent, w); +$fp = fopen($script_out_dir/entities/file-entities.ent, w); if (!$fp) { -die(ERROR: Failed to open $out_dir/entities/file-entities.ent for writing\n); +die(ERROR: Failed to open $script_out_dir/entities/file-entities.ent for writing\n); } echo \ncreating entities/file-entities.ent...\n; -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in
momoWed Mar 19 05:48:45 2003 EDT Modified files: /phpdoc/scripts file-entities.php.in Log: more cygwin bin fix, add little load but clear. Index: phpdoc/scripts/file-entities.php.in diff -u phpdoc/scripts/file-entities.php.in:1.10 phpdoc/scripts/file-entities.php.in:1.11 --- phpdoc/scripts/file-entities.php.in:1.10Wed Mar 19 04:36:48 2003 +++ phpdoc/scripts/file-entities.php.in Wed Mar 19 05:48:45 2003 @@ -17,7 +17,7 @@ # | Gabor Hojtsy [EMAIL PROTECTED] | # +--+ # -# $Id: file-entities.php.in,v 1.10 2003/03/19 09:36:48 momo Exp $ +# $Id: file-entities.php.in,v 1.11 2003/03/19 10:48:45 momo Exp $ */ /** @@ -50,20 +50,15 @@ // XSL sheets are used or not (either yes or no) $xsl_sheet_used = (@DOCBOOKXSL_USED@ == yes ? TRUE : FALSE); - // when php complied on cygwin, the working path have to be /cygdrive.. // the below preg_replace have to be done only using binary php complied on MSVC. // let's find if php was complied by cygwin: -ob_start(); -phpinfo(1); -$tmp = ob_get_contents(); -ob_end_clean(); -$cygwin_complied = eregi(CYGWIN,$tmp) ? true : false; +$cygwin_complied = eregi(CYGWIN,php_uname()) ? true : false; // The output directory, which we need to parse for windows specific // things, and correct all problems is needed. // Also use absolute path to have meaningful error messages -$out_dir = abs_path(preg_replace(!^/cygdrive/(\\w)/!, \\1:/, @WORKDIR@)); +$out_dir = abs_path(strip_cygdrive(@WORKDIR@)); // this path if used for saving the ent file: $script_out_dir = $cygwin_complied ? @WORKDIR@ : $out_dir; @@ -370,7 +365,16 @@ // notation before the file name // !! BUT it's not honored by xsltproc so uncomment it for now !! // if ($xsl_sheet_used) { $filename = file:/// . $filename; } -return sprintf(!ENTITY %-40s SYSTEM '%s'\n, $entname, $filename); +return sprintf(!ENTITY %-40s SYSTEM '%s'\n, $entname, strip_cygdrive($filename)); } +} + +/** + * Return windows style path for cygwin. + * + * @param string $path Orginal path + */ +function strip_cygdrive($path){ + return preg_replace(!^/cygdrive/(\\w)/!, \\1:/, $path); } ? -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] hebrew broken build
Gabor Hojtsy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i tried to hack into the poor status of the hebrew tarnslation i fixed some bugs but still the build is broken without detailes (there are some warnings but AFAIU that's not the problem) can some1 that know thatws dsssl, say me what i have to fix? What is broken? Can you please provide details? after some L10N ERROR msgs (we have no dbl1he* files) jade dump all the data instead of making the files) into the terminal and at last say 'ERROR 1' I have seen somebody adding he files into phpdoc sometime... How is that they are still missing? just entities not dsl one, anyway is this the problem that's break the build? if yes, why not do the default the english set allowing the build for now? else could u try building it uself tracing the problem coz i in dubiousness if ever have been made used docbook for hebrew. thanks -- moshe -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] hebrew broken build
if ever have been made used docbook for hebrew. just to make things clear, the mentioned .ent file used unicode, where the whole project use ascii (less standard, but much more common) -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] hebrew broken build
Hartmut Holzgraefe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] moshe doron wrote: if ever have been made used docbook for hebrew. just to make things clear, the mentioned .ent file used unicode, where the whole project use ascii (less standard, but much more common) should be no problem if specified correctly in the files ?xml header? paradoxical, the only problems i run into when the xml header charset set to UTF-8, was when i used UTF-8 were the hebrew charset is [{215},{143-172}] the jade yelled about the second bit. on the ascii charset the hebrew is [{224-250}] and all run smoothly. -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] hebrew broken build
i tried to hack into the poor status of the hebrew tarnslation i fixed some bugs but still the build is broken without detailes (there are some warnings but AFAIU that's not the problem) can some1 that know thatws dsssl, say me what i have to fix? thnx moshe --