cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php todo.txt
| From: | Moshe Doron | Date: | Tue, 27 May 2003 09:43:59 +0000 |
| Subject: | cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php todo.txt | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969353933@lists.php.net to get a copy of this message | ||
momo Tue May 27 05:43:59 2003 EDT
Modified files:
/phpdoc/scripts/rtlpatch HtmlExtParser.class.php todo.txt
Log:
some more optimizations
Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php
diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.3
phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.4
--- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.3 Mon May 26 05:44:27 2003
+++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Tue May 27 05:43:59 2003
@@ -16,7 +16,7 @@
| Authors: Moshe Doron <momo@php.net> |
+----------------------------------------------------------------------+
- $Id: HtmlExtParser.class.php,v 1.3 2003/05/26 09:44:27 momo Exp $
+ $Id: HtmlExtParser.class.php,v 1.4 2003/05/27 09:43:59 momo Exp $
*/
class CHtmlExtParse extends CHtmlParse{
@@ -45,6 +45,7 @@
$elem = &$this->ATE[$this->EBT[$b][$a]];
if($this->comp_properties($elem,$ar)){
$elem["dir"] = "ltr";
+ $this->ATE[$this->EBT[$b][$a]+1]["data"] =
" ".$this->ATE[$this->EBT[$b][$a]+1]["data"];
}
}
}
@@ -57,6 +58,24 @@
}
} 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 for TOC
+ $tmp=0;
+ do{
+ if($tmp =
$this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","TOC"),"offset"=>($tmp+1)))){
+ $this->ATE[$tmp]["dir"] = "ltr";
+ }
+ } while($tmp);
+ */
+
//rtl all the divs
$div = $HEType["div"];
if(isset($this->EBT[$div])){
@@ -108,7 +127,7 @@
} else if($tg == __HTML_PROCESS__){
$ret[$a].="<".$this->ATE[$a]["data"]. "\n?>";
} else if($tg < __HTML_UNKNOWN__){
- $ret[$a].=$this->ATE[$a]["data"];
+ $ret[$a].=" ".$this->ATE[$a]["data"]." ";
}
//mysyslog($ret[$a]);
}
Index: phpdoc/scripts/rtlpatch/todo.txt
diff -u phpdoc/scripts/rtlpatch/todo.txt:1.1 phpdoc/scripts/rtlpatch/todo.txt:1.2
--- phpdoc/scripts/rtlpatch/todo.txt:1.1 Mon May 26 06:41:37 2003
+++ phpdoc/scripts/rtlpatch/todo.txt Tue May 27 05:43:59 2003
@@ -1,4 +1,3 @@
1. main tree menu.
-2. <tt class=option> (configure)- ltr.
3. encoding on web (?).
4. big manual.