cvs: pear /HTML_Template_Flexy/Flexy Test.php Token.php Tokenizer.lex Tokenizer.php /HTML_Template_Flexy/Flexy/Token If.php Method.php Tag.php
Var.php /HTML_Template_Flexy/examples example.html
| From: | Alan Knowles | Date: | Sun, 02 Feb 2003 17:04:57 +0000 |
| Subject: | cvs: pear /HTML_Template_Flexy/Flexy Test.php Token.php Tokenizer.lex Tokenizer.php /HTML_Template_Flexy/Flexy/Token If.php Method.php Tag.php Var.php /HTML_Template_Flexy/examples example.html |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8683@lists.php.net to get a copy of this message | ||
alan_k Sun Feb 2 12:04:57 2003 EDT
Modified files:
/pear/HTML_Template_Flexy/Flexy Test.php Token.php Tokenizer.lex
Tokenizer.php
/pear/HTML_Template_Flexy/Flexy/Token If.php Method.php Tag.php
Var.php
/pear/HTML_Template_Flexy/examples example.html
Log:
mostly matching with documentation now
Index: pear/HTML_Template_Flexy/Flexy/Test.php diff -u pear/HTML_Template_Flexy/Flexy/Test.php:1.3 pear/HTML_Template_Flexy/Flexy/Test.php:1.4 --- pear/HTML_Template_Flexy/Flexy/Test.php:1.3 Fri Jan 31 11:22:06 2003 +++ pear/HTML_Template_Flexy/Flexy/Test.php Sun Feb 2 12:04:56 2003 @@ -17,7 +17,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Test.php,v 1.3 2003/01/31 16:22:06 alan_k Exp $ +// $Id: Test.php,v 1.4 2003/02/02 17:04:56 alan_k Exp $ // // This is a temporary file - it includes some of the // Code that will have to go in the Engine eventually.. @@ -81,7 +81,9 @@ $data = file_get_contents($file); //echo strlen($data); $tokenizer = new HTML_Template_Flexy_Tokenizer($data); + $tokenizer->debug=1; + //echo "buliding tokens"; $res = HTML_Template_Flexy_Token::buildTokens($tokenizer); Index: pear/HTML_Template_Flexy/Flexy/Token.php diff -u pear/HTML_Template_Flexy/Flexy/Token.php:1.5 pear/HTML_Template_Flexy/Flexy/Token.php:1.6 --- pear/HTML_Template_Flexy/Flexy/Token.php:1.5 Fri Jan 31 12:28:39 2003 +++ pear/HTML_Template_Flexy/Flexy/Token.php Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Token.php,v 1.5 2003/01/31 17:28:39 alan_k Exp $ +// $Id: Token.php,v 1.6 2003/02/02 17:04:56 alan_k Exp $ // // This is the master Token file for The New Token driver Engine. // All the Token output, and building routines are in here. @@ -81,7 +81,10 @@ static $loaded = array(); if (!isset($loaded[$token])) { - @include 'HTML/Template/Flexy/Token/'.$token.'.php'; + // make sure parse errors are picked up - now @ here.. + if (file_exists(dirname(__FILE__)."/Token/{$token}.php")) { + include 'HTML/Template/Flexy/Token/'.$token.'.php'; + } $loaded[$token] = true; } @@ -186,6 +189,7 @@ $_HTML_TEMPLATE_FLEXY_TOKEN['statevars'] = array(); $_HTML_TEMPLATE_FLEXY_TOKEN['state'] = 0; + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = false; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'] = array(new HTML_Template_Flexy_Token); $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][0]->id =0; @@ -195,11 +199,12 @@ // initialize state - this trys to make sure that // you dont do to many elses etc. - + //echo "RUNNING TOKENIZER"; // step one just tokenize it. while ($t = $tokenizer->yylex()) { if ($t == HTML_TEMPLATE_FLEXY_TOKEN_ERROR) { + //echo "ERROR"; PEAR::raiseError('HTML_Template_Flexy::Syntax error in Template line:'. $t->line, null,PEAR_ERROR_DIE); } @@ -210,9 +215,11 @@ $i++; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i] = $tokenizer->value; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i]->id = $i; - //print_r($res[$i]); + //print_r($_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i]); } + //echo "BUILT TOKENS"; + $res = &$_HTML_TEMPLATE_FLEXY_TOKEN['tokens']; // connect parent and child tags. $stack = array(); Index: pear/HTML_Template_Flexy/Flexy/Tokenizer.lex diff -u pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.6 pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.7 --- pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.6 Sun Feb 2 04:33:23 2003 +++ pear/HTML_Template_Flexy/Flexy/Tokenizer.lex Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.lex,v 1.6 2003/02/02 09:33:23 alan_k Exp $ +// $Id: Tokenizer.lex,v 1.7 2003/02/02 17:04:56 alan_k Exp $ // // The Source Lex file. (Tokenizer.lex) and the Generated one (Tokenizer.php) // You should always work with the .lex file and generate by @@ -50,10 +50,9 @@ define("IN_MD" ,8); define("IN_COM" ,9); define("IN_DS" ,10); - define("IN_FLEXYMETHOD" ,11); - -define("IN_FLEXYMETHODQUOTED" ,11); +define("IN_FLEXYMETHODQUOTED" ,12); +define("IN_FLEXYMETHODQUOTED_END" ,13); define('YY_E_INTERNAL', 0); @@ -93,7 +92,7 @@ function error($n,$s) { - echo "Error $n: $s\n"; + echo "Error $n on Line {$this->yyline}: $s\n"; } @@ -105,7 +104,7 @@ %line %full %char -%state IN_SINGLEQUOTE IN_TAG IN_ATTR IN_ATTRVAL IN_NETDATA IN_ENDTAG IN_DOUBLEQUOTE IN_MD IN_COM IN_DS IN_FLEXYMETHOD IN_FLEXYMETHODQUOTED +%state IN_SINGLEQUOTE IN_TAG IN_ATTR IN_ATTRVAL IN_NETDATA IN_ENDTAG IN_DOUBLEQUOTE IN_MD IN_COM IN_DS IN_FLEXYMETHOD IN_FLEXYMETHODQUOTED IN_FLEXYMETHODQUOTED_END @@ -208,7 +207,7 @@ <YYINITIAL>{ETAGO}{NAME}?{WHITESPACE}"/"{STAGO} { /* </name < -- unclosed end tag */ $this->error(0,"Unclosed end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -226,7 +225,7 @@ <YYINITIAL>{ETAGO}{TAGC} { /* </> -- empty end tag */ $this->error(0,"empty end tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } <YYINITIAL>{MDO}{NAME}{WHITESPACE} { @@ -241,7 +240,7 @@ <YYINITIAL>{MDO}{TAGC} { /* <!> */ $this->error(SGML_ERROR,"empty markup tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -258,14 +257,14 @@ <YYINITIAL>{MDO}{DSO}{WHITESPACE} { /* <![ -- marked section */ $this->error(SGML_ERROR,"marked section not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } <YYINITIAL>{MSC}{TAGC} { /* ]]> -- marked section end */ $this->error(SGML_ERROR,"unmatched marked sections end"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -294,7 +293,7 @@ <YYINITIAL>{STAGO}{TAGC} { // <> -- empty start tag */ $this->error(0,"empty tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -329,7 +328,7 @@ <IN_ATTR>{NAME}{WHITESPACE} { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } @@ -435,7 +434,7 @@ // <a name= ^> -- illegal tag close */ <IN_ATTRVAL>{TAGC} { $this->error(0, "Tag close found where attribute value expected"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // <a name=foo ^>,</foo^> -- tag close */ @@ -451,19 +450,19 @@ // <em^/ -- NET tag */ <IN_ATTRVAL>{NET} { $this->error(0,"attribute value missing"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // <em^/ -- NET tag */ <IN_ATTR>{NET} { $this->yybegin(IN_NETDATA); - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } <IN_ATTR>{NET}{WHITESPACE}{TAGC} { - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = HTML_Template_Flexy_Token::factory($this->tokenName, array($this->tagName,$this->attributes), $this->yyline); @@ -476,7 +475,7 @@ <IN_ATTR,IN_ATTRVAL,IN_TAG> {STAGO} { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -501,7 +500,7 @@ <IN_ATTR,IN_ATTRVAL,IN_TAG> . { $this->error(0,"ERROR: unexpected : character in tag: (".$this->yytext().") 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // end tag -- non-permissive */ @@ -516,7 +515,7 @@ <IN_ENDTAG>. { $this->error(0,"extraneous character in end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -592,7 +591,7 @@ <IN_MD,IN_COM>. { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -662,6 +661,9 @@ return HTML_TEMPLATE_FLEXY_TOKEN_OK; } + +// plan is to remove these - using a object method solves it anyway.. + <YYINITIAL>"{include:"{FLEXY_VAR}"}" { $this->value = HTML_Template_Flexy_Token::factory('Include', substr($this->yytext(),9,-1),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; @@ -773,7 +775,7 @@ } <IN_FLEXYMETHOD> . { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -785,49 +787,63 @@ $this->value = ''; $n = $this->yytext(); if ($n{0} != "{") { - $n = substr($n,3); + $n = substr($n,2); } - $this->flexyMethod = substr($n,0,-1); + + $this->flexyMethod = substr($n,1,-1); $this->flexyArgs = array(); $this->flexyMethodState = $this->yy_lexical_state; $this->yybegin(IN_FLEXYMETHODQUOTED); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } +// no values in method. -<IN_FLEXYMETHODQUOTED>{FLEXY_VAR}(","|")"{FLEXY_END}) { +<IN_FLEXYMETHODQUOTED,IN_FLEXYMETHODQUOTED_END>(")"|"):"{FLEXY_MODIFIER}){FLEXY_END} { $t = $this->yytext(); - - if ($t{strlen($t-1)} == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + if ($p = strpos($t,':')) { + $this->flexyMethod .= substr($t,$p,2); } - $this->flexyArgs[] = substr($t,0,-2); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); + $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); $this->yybegin($this->flexyMethodState); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -<IN_FLEXYMETHODQUOTED>"#"{FLEXY_LITERAL}("#,"|"#)"{FLEXY_END}) { +<IN_FLEXYMETHODQUOTED_END>"," { + + $this->yybegin(IN_FLEXYMETHODQUOTED); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} + + +<IN_FLEXYMETHODQUOTED>{FLEXY_VAR} { + + $t = substr($this->yytext(),0,-1); + + // add argument + $this->flexyArgs[] = $t; + $this->yybegin(IN_FLEXYMETHODQUOTED_END); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + + +} + + + +<IN_FLEXYMETHODQUOTED>"#"{FLEXY_LITERAL}"#" { $t = $this->yytext(); - if ($t{ strlen($t-1) } == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } $this->flexyArgs[] = substr($t,0,-1); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); - $this->yybegin($this->flexyMethodState); + $this->yybegin(IN_FLEXYMETHODQUOTED_END); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + + } - <YYINITIAL,IN_TAG,IN_ATTR,IN_ATTRVAL> . { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } Index: pear/HTML_Template_Flexy/Flexy/Tokenizer.php diff -u pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.7 pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.8 --- pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.7 Sun Feb 2 04:33:23 2003 +++ pear/HTML_Template_Flexy/Flexy/Tokenizer.php Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.php,v 1.7 2003/02/02 09:33:23 alan_k Exp $ +// $Id: Tokenizer.php,v 1.8 2003/02/02 17:04:56 alan_k Exp $ // // The Source Lex file. (Tokenizer.lex) and the Generated one (Tokenizer.php) // You should always work with the .lex file and generate by @@ -45,7 +45,8 @@ define("IN_COM" ,9); define("IN_DS" ,10); define("IN_FLEXYMETHOD" ,11); -define("IN_FLEXYMETHODQUOTED" ,11); +define("IN_FLEXYMETHODQUOTED" ,12); +define("IN_FLEXYMETHODQUOTED_END" ,13); define('YY_E_INTERNAL', 0); define('YY_E_MATCH', 1); define('YY_BUFFER_SIZE', 4096); @@ -70,7 +71,7 @@ } } function error($n,$s) { - echo "Error $n: $s\n"; + echo "Error $n on Line {$this->yyline}: $s\n"; } @@ -101,18 +102,19 @@ var $yy_state_dtrans = array ( 0, - 135, - 31, - 99, 137, - 138, + 31, + 101, 139, 140, - 149, + 141, + 142, + 151, 62, - 154, 156, - 165 + 158, + 167, + 174 ); @@ -284,9 +286,9 @@ /* 70 */ YY_NO_ANCHOR, /* 71 */ YY_NO_ANCHOR, /* 72 */ YY_NO_ANCHOR, - /* 73 */ YY_NOT_ACCEPT, + /* 73 */ YY_NO_ANCHOR, /* 74 */ YY_NO_ANCHOR, - /* 75 */ YY_NO_ANCHOR, + /* 75 */ YY_NOT_ACCEPT, /* 76 */ YY_NO_ANCHOR, /* 77 */ YY_NO_ANCHOR, /* 78 */ YY_NO_ANCHOR, @@ -308,20 +310,20 @@ /* 94 */ YY_NO_ANCHOR, /* 95 */ YY_NO_ANCHOR, /* 96 */ YY_NO_ANCHOR, - /* 97 */ YY_NOT_ACCEPT, + /* 97 */ YY_NO_ANCHOR, /* 98 */ YY_NO_ANCHOR, - /* 99 */ YY_NO_ANCHOR, + /* 99 */ YY_NOT_ACCEPT, /* 100 */ YY_NO_ANCHOR, /* 101 */ YY_NO_ANCHOR, /* 102 */ YY_NO_ANCHOR, /* 103 */ YY_NO_ANCHOR, - /* 104 */ YY_NOT_ACCEPT, + /* 104 */ YY_NO_ANCHOR, /* 105 */ YY_NO_ANCHOR, - /* 106 */ YY_NO_ANCHOR, - /* 107 */ YY_NOT_ACCEPT, + /* 106 */ YY_NOT_ACCEPT, + /* 107 */ YY_NO_ANCHOR, /* 108 */ YY_NO_ANCHOR, /* 109 */ YY_NOT_ACCEPT, - /* 110 */ YY_NOT_ACCEPT, + /* 110 */ YY_NO_ANCHOR, /* 111 */ YY_NOT_ACCEPT, /* 112 */ YY_NOT_ACCEPT, /* 113 */ YY_NOT_ACCEPT, @@ -385,9 +387,9 @@ /* 171 */ YY_NOT_ACCEPT, /* 172 */ YY_NOT_ACCEPT, /* 173 */ YY_NOT_ACCEPT, - /* 174 */ YY_NO_ANCHOR, + /* 174 */ YY_NOT_ACCEPT, /* 175 */ YY_NO_ANCHOR, - /* 176 */ YY_NOT_ACCEPT, + /* 176 */ YY_NO_ANCHOR, /* 177 */ YY_NOT_ACCEPT, /* 178 */ YY_NOT_ACCEPT, /* 179 */ YY_NOT_ACCEPT, @@ -456,30 +458,30 @@ 17, 16, 1, 16, 1, 18, 1, 1, 19, 1, 1, 1, 1, 20, 21, 22, 1, 1, 23, 24, 25, 26, 27, 1, - 28, 29, 1, 1, 1, 1, 1, 1, - 1, 30, 31, 32, 1, 33, 1, 1, - 34, 35, 36, 16, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 1, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, - 14, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 95, 99, 41, 54, - 100, 101, 102, 103, 104, 48, 105, 55, - 106, 107, 108, 109, 110, 111, 112, 113, - 114, 115, 116, 117, 118, 119, 120, 52, - 121, 40, 122, 123, 124, 125, 126, 127, - 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139 + 28, 29, 1, 1, 1, 1, 1, 30, + 1, 1, 1, 31, 32, 33, 1, 34, + 1, 1, 35, 36, 37, 16, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 1, + 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, + 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 14, 89, 90, 91, 92, 93, + 94, 95, 96, 97, 98, 99, 96, 100, + 42, 55, 101, 102, 103, 104, 105, 49, + 106, 56, 107, 108, 109, 110, 111, 112, + 113, 114, 115, 116, 117, 118, 119, 120, + 53, 121, 41, 122, 123, 124, 125, 126, + 127, 128, 129, 130, 131, 132, 133, 134, + 135, 136, 137, 138 ); var $yy_nxt = array( array( 1, 2, 3, 3, 3, 3, 3, 3, - 74, 3, 3, 3, 3, 3, 3, 3, - 174, 3, 75, 3, 3, 3, 3, 3, + 76, 3, 3, 3, 3, 3, 3, 3, + 175, 3, 77, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, @@ -491,57 +493,57 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, 73, 3, 3, 3, 4, 3, + array( -1, -1, 75, 3, 3, 3, 4, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 3, 4, 4, 3 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 3, 3, 3, 3, + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 3, 3, 3, 3, 3, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( -1, -1, -1, 4, 76, 76, 4, 4, + array( -1, -1, -1, 4, 78, 78, 4, 4, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4, -1, -1, -1, -1, 4, 4, 4, 4, 4, 4, -1, 4, 4, 4, 4, 4, 4, 4, 4, -1 ), - array( -1, -1, -1, 5, -1, 77, 5, 5, - -1, -1, 77, 77, -1, -1, 5, -1, + array( -1, -1, -1, 5, -1, 79, 5, 5, + -1, -1, 79, 79, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5, 5, -1, -1, -1, -1, 5, 5, 5, 5, 5, 5, -1, 5, 5, 5, 5, 5, 5, 5, 5, -1 ), - array( -1, -1, -1, 7, 78, 78, -1, -1, + array( -1, -1, -1, 7, 80, 80, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7, -1, -1, -1 ), - array( -1, -1, -1, 8, 79, 79, 8, 8, + array( -1, -1, -1, 8, 81, 81, 8, 8, -1, -1, -1, -1, -1, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, 8, -1, -1, -1, -1, 8, 8, 8, 8, 8, 8, -1, 8, 8, 8, 8, 8, 8, 8, 8, -1 ), - array( -1, -1, -1, 9, -1, 80, 9, 9, - -1, 113, 80, 80, -1, -1, 9, -1, + array( -1, -1, -1, 9, -1, 82, 9, 9, + -1, 115, 82, 82, -1, -1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 9, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1, 9, 9, 9, 9, 9, 9, 9, 9, -1 ), - array( -1, -1, -1, 11, -1, 81, 11, 11, - -1, -1, 81, 81, -1, -1, 11, -1, + array( -1, -1, -1, 11, -1, 83, 11, 11, + -1, -1, 83, 83, -1, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 11, -1, -1, -1, -1, 11, 11, 11, 11, 11, 11, @@ -561,22 +563,22 @@ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 ), - array( 1, 32, 32, 32, 32, 82, 32, 32, - 33, 32, 82, 82, 34, 32, 32, 32, + array( 1, 32, 32, 32, 32, 84, 32, 32, + 33, 32, 84, 84, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32 ), - array( -1, -1, -1, 35, -1, 84, 35, 35, - -1, -1, 84, 84, -1, -1, 35, -1, + array( -1, -1, -1, 35, -1, 86, 35, 35, + -1, -1, 86, 86, -1, -1, 35, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, 35, 35, -1, -1, -1, -1, 35, 35, 35, 35, 35, 35, -1, 35, 35, 35, 35, 35, 35, 35, 35, -1 ), - array( -1, -1, -1, -1, -1, 136, -1, -1, - -1, -1, 136, 136, 38, -1, -1, -1, + array( -1, -1, -1, -1, -1, 138, -1, -1, + -1, -1, 138, 138, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -589,15 +591,15 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, 39, 39, 39, 39, 85, 39, 39, - 39, 39, 85, 85, -1, 39, 39, 39, + array( -1, 39, 39, 39, 39, 87, 39, 39, + 39, 39, 87, 87, -1, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, -1, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39 ), - array( -1, 39, 39, 40, 39, 86, 40, 40, - 39, 39, 86, 86, -1, 39, 40, 39, + array( -1, 39, 39, 40, 39, 88, 40, 40, + 39, 39, 88, 88, -1, 39, 40, 39, 39, 39, 39, 39, 39, 39, 39, -1, 39, 39, 39, 39, 40, 40, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, @@ -612,34 +614,34 @@ -1, -1 ), array( -1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, - 48, 48, -1, 48, 141, 48, 48, -1, + 48, 48, -1, 48, 143, 48, 48, -1, 48, 48, -1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), - array( -1, -1, -1, 53, -1, 89, 58, 58, - -1, -1, 89, 89, -1, -1, 58, -1, + array( -1, -1, -1, 53, -1, 91, 58, 58, + -1, -1, 91, 91, -1, -1, 58, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 58, -1, -1, -1, -1, 58, 58, 58, 58, 58, 58, -1, 58, 58, 58, 58, 58, 53, 58, 58, -1 ), - array( -1, -1, -1, 54, -1, 90, 54, 54, - -1, -1, 90, 90, -1, -1, 54, -1, + array( -1, -1, -1, 54, -1, 92, 54, 54, + -1, -1, 92, 92, -1, -1, 54, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 54, 54, -1, -1, -1, -1, 54, 54, 54, 54, 54, 54, -1, 54, 54, 54, 54, 54, 54, 54, 54, -1 ), - array( -1, -1, -1, 55, -1, 91, 55, 55, - -1, -1, 91, 91, -1, -1, 55, -1, + array( -1, -1, -1, 55, -1, 93, 55, 55, + -1, -1, 93, 93, -1, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 55, 55, -1, -1, -1, -1, 55, 55, 55, 55, 55, 55, -1, 55, 55, 55, 55, 55, 55, 55, 55, -1 ), - array( -1, -1, -1, 58, -1, 92, 58, 58, - -1, -1, 92, 92, -1, -1, 58, -1, + array( -1, -1, -1, 58, -1, 94, 58, 58, + -1, -1, 94, 94, -1, -1, 58, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 58, -1, -1, -1, -1, 58, 58, 58, 58, 58, 58, @@ -659,20 +661,20 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, 61, 94, 94, 61, 61, - -1, -1, 94, 94, -1, -1, 61, -1, + array( -1, -1, -1, 61, 96, 96, 61, 61, + -1, -1, 96, 96, -1, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 61, 61, -1, -1, -1, -1, 61, 61, 61, 61, 61, 61, -1, 61, 61, 61, 61, 61, 61, 61, 61, -1 ), - array( 1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 108, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( 1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 110, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, -1, 64, 64, 64, 64, 64, 64, 64, @@ -682,11 +684,18 @@ 64, 64 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 155, -1, -1, -1, -1, -1, -1, -1, + 157, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), + array( -1, -1, -1, 71, -1, -1, 71, 71, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 71, 71, -1, 71, + -1, -1, 71, 71, 71, 71, 71, 71, + -1, 71, 71, 71, 71, 71, 71, 71, + 71, -1 ), array( -1, -1, -1, 7, -1, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -695,131 +704,131 @@ -1, 8, 8, 8, 8, 8, 7, 8, 8, -1 ), array( -1, -1, -1, -1, -1, 3, 5, -1, - -1, 107, 3, 3, 6, 109, -1, 3, - 3, 110, 3, -1, 3, -1, -1, -1, + -1, 109, 3, 3, 6, 111, -1, 3, + 3, 112, 3, -1, 3, -1, -1, -1, 3, -1, -1, 3, 5, 5, -1, 3, 3, -1, 5, 5, 5, 5, 5, 5, -1, 5, 5, 5, 5, 5, -1, 5, 5, -1 ), - array( -1, -1, -1, -1, -1, -1, 111, -1, + array( -1, -1, -1, -1, -1, -1, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 176, 195, -1, -1, - -1, -1, 111, 111, 185, 111, 111, 111, - -1, 111, 111, 111, 111, 111, -1, 111, - 111, -1 ), - array( -1, -1, -1, -1, -1, 77, -1, -1, - -1, -1, 77, 77, -1, -1, -1, -1, + -1, -1, -1, -1, 177, 195, -1, -1, + -1, -1, 113, 113, 185, 113, 113, 113, + -1, 113, 113, 113, 113, 113, -1, 113, + 113, -1 ), + array( -1, -1, -1, -1, -1, 79, -1, -1, + -1, -1, 79, 79, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 80, -1, -1, - -1, 113, 80, 80, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 82, -1, -1, + -1, 115, 82, 82, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 81, -1, -1, - -1, -1, 81, 81, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 83, -1, -1, + -1, -1, 83, 83, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 82, -1, -1, - -1, -1, 82, 82, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 84, -1, -1, + -1, -1, 84, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 84, -1, -1, - -1, -1, 84, 84, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 86, -1, -1, + -1, -1, 86, 86, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 85, -1, -1, - -1, -1, 85, 85, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 87, -1, -1, + -1, -1, 87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 86, -1, -1, - -1, -1, 86, 86, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 88, -1, -1, + -1, -1, 88, 88, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 142, -1, + array( -1, -1, -1, -1, -1, -1, 144, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 142, 142, -1, -1, - -1, -1, 142, 142, 142, 142, 142, 142, - -1, 142, 142, 142, 142, 142, -1, 142, - 142, -1 ), - array( -1, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 59, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150 ), - array( -1, -1, -1, -1, -1, 89, -1, -1, - -1, -1, 89, 89, -1, -1, -1, -1, + -1, -1, -1, -1, 144, 144, -1, -1, + -1, -1, 144, 144, 144, 144, 144, 144, + -1, 144, 144, 144, 144, 144, -1, 144, + 144, -1 ), + array( -1, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 59, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152 ), + array( -1, -1, -1, -1, -1, 91, -1, -1, + -1, -1, 91, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 90, -1, -1, - -1, -1, 90, 90, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 92, -1, -1, + -1, -1, 92, 92, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 91, -1, -1, - -1, -1, 91, 91, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 93, -1, -1, + -1, -1, 93, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 92, -1, -1, - -1, -1, 92, 92, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 94, -1, -1, + -1, -1, 94, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 94, -1, -1, - -1, -1, 94, 94, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 96, -1, -1, + -1, -1, 96, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 152, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), - array( -1, 157, 158, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 154, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), + array( -1, 159, 160, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159 ), array( -1, -1, -1, 3, 3, 3, -1, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, @@ -827,48 +836,48 @@ 3, 3, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, -1, 3, -1, -1, 3 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 15, 3, 3, 3, + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 15, 3, 3, 3, 3, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( 1, 32, 32, 32, 32, 82, 35, 32, - 33, 36, 82, 82, 34, 32, 32, 32, + array( 1, 32, 32, 32, 32, 84, 35, 32, + 33, 36, 84, 84, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 35, 35, 32, 32, 32, 32, 35, 35, 35, 35, 35, 35, 32, 35, 35, 35, 35, 35, 32, 35, 35, 32 ), - array( -1, 39, 39, 100, 39, 86, 100, 100, - 39, 39, 86, 86, -1, 39, 100, 39, + array( -1, 39, 39, 102, 39, 88, 102, 102, + 39, 39, 88, 88, -1, 39, 102, 39, 39, 39, 39, 39, 39, 39, 39, -1, - 39, 39, 39, 39, 100, 100, 39, 39, - 39, 39, 100, 100, 100, 100, 100, 100, - 39, 100, 100, 100, 100, 100, 100, 100, - 100, 39 ), + 39, 39, 39, 39, 102, 102, 39, 39, + 39, 39, 102, 102, 102, 102, 102, 102, + 39, 102, 102, 102, 102, 102, 102, 102, + 102, 39 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 143, -1, + -1, -1, -1, -1, -1, -1, 145, -1, -1, -1 ), - array( -1, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 93, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151 ), - array( -1, -1, -1, 159, -1, -1, 159, 159, + array( -1, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 95, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153 ), + array( -1, -1, -1, 161, -1, -1, 161, 161, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 159, 159, -1, 159, - -1, -1, 159, 159, 159, 159, 159, 159, - 68, 159, 159, 159, 159, 159, 159, 159, - 159, 160 ), + -1, -1, -1, -1, 161, 161, -1, 161, + -1, -1, 161, 161, 161, 161, 161, 161, + 68, 161, 161, 161, 161, 161, 161, 161, + 161, 162 ), array( -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, 3, 3, -1, -1, -1, 3, 3, -1, 3, -1, 3, -1, -1, -1, @@ -886,47 +895,47 @@ array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 161, -1, + -1, -1, -1, -1, -1, -1, 163, -1, 69, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 112, 9, -1, - -1, 113, 112, 112, 10, -1, -1, -1, + array( -1, -1, -1, -1, -1, 114, 9, -1, + -1, 115, 114, 114, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 9, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1, 9, 9, 9, 9, 9, -1, 9, 9, -1 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 153, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 155, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, -1, -1, -1, -1, -1, 11, -1, - -1, -1, -1, -1, 12, -1, 114, 13, + -1, -1, -1, -1, 12, -1, 116, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 11, -1, -1, -1, -1, 11, 11, 11, 11, 11, 11, -1, 11, 11, 11, 11, 11, -1, 11, 11, -1 ), - array( -1, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 14, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, -1, -1, 112, -1, -1, - -1, 113, 112, 112, -1, -1, -1, -1, + array( -1, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 14, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, -1, -1, 114, -1, -1, + -1, 115, 114, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -950,16 +959,16 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + -1, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 118, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 120, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -967,90 +976,90 @@ 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 120, -1, + array( -1, -1, -1, -1, -1, -1, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 120, -1, -1, - -1, -1, 120, 120, 120, 120, 120, 120, - -1, 120, 120, 120, 120, 120, -1, 120, - 120, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 122, 122, -1, -1, + -1, -1, 122, 122, 122, 122, 122, 122, + -1, 122, 122, 122, 122, 122, -1, 122, + 122, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 121, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 120, -1, -1, 120, 120, + -1, -1, -1, -1, 113, 113, 123, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 122, -1, -1, 122, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 120, -1, 120, - 20, 21, 120, 120, 120, 120, 120, 120, - -1, 120, 120, 120, 120, 120, 120, 120, - 120, -1 ), + -1, -1, -1, -1, 122, 122, -1, 122, + 20, 21, 122, 122, 122, 122, 122, 122, + -1, 122, 122, 122, 122, 122, 122, 122, + 122, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 22, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + 22, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 123, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 125, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 23, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + 23, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 125, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, 127, -1, -1, -1, 128, -1, + -1, -1, -1, -1, 113, 113, 127, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, 129, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 128, 128, -1, -1, - -1, -1, 128, 128, 128, 128, 128, 128, - -1, 128, 128, 128, 128, 128, -1, 128, - 128, -1 ), - array( -1, -1, -1, -1, -1, -1, 129, -1, + -1, -1, -1, -1, 130, 130, -1, -1, + -1, -1, 130, 130, 130, 130, 130, 130, + -1, 130, 130, 130, 130, 130, -1, 130, + 130, -1 ), + array( -1, -1, -1, -1, -1, -1, 131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 129, 129, -1, -1, - -1, -1, 129, 129, 129, 129, 129, 129, - -1, 129, 129, 129, 129, 129, -1, 129, - 129, -1 ), - array( -1, 127, 130, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127 ), - array( -1, -1, -1, 128, -1, -1, 128, 128, + -1, -1, -1, -1, 131, 131, -1, -1, + -1, -1, 131, 131, 131, 131, 131, 131, + -1, 131, 131, 131, 131, 131, -1, 131, + 131, -1 ), + array( -1, 129, 132, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129 ), + array( -1, -1, -1, 130, -1, -1, 130, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 128, 128, -1, 128, - 24, -1, 128, 128, 128, 128, 128, 128, - -1, 128, 128, 128, 128, 128, 128, 128, - 128, -1 ), - array( -1, -1, -1, 129, -1, -1, 129, 129, + -1, -1, -1, -1, 130, 130, -1, 130, + 24, -1, 130, 130, 130, 130, 130, 130, + -1, 130, 130, 130, 130, 130, 130, 130, + 130, -1 ), + array( -1, -1, -1, 131, -1, -1, 131, 131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 129, 129, -1, 129, - 25, -1, 129, 129, 129, 129, 129, 129, - 131, 129, 129, 129, 129, 129, 129, 129, - 129, -1 ), + -1, -1, -1, -1, 131, 131, -1, 131, + 25, -1, 131, 131, 131, 131, 131, 131, + 133, 131, 131, 131, 131, 131, 131, 131, + 131, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1058,20 +1067,6 @@ 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 132, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 132, 132, -1, -1, - -1, -1, 132, 132, 132, 132, 132, 132, - -1, 132, 132, 132, 132, 132, -1, 132, - 132, -1 ), - array( -1, -1, -1, 132, -1, -1, 132, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 132, 132, -1, 132, - 27, -1, 132, 132, 132, 132, 132, 132, - 133, 132, 132, 132, 132, 132, 132, 132, - 132, -1 ), array( -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1083,9 +1078,23 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, 134, -1, 134, - 28, -1, 134, 134, 134, 134, 134, 134, - -1, 134, 134, 134, 134, 134, 134, 134, + 27, -1, 134, 134, 134, 134, 134, 134, + 135, 134, 134, 134, 134, 134, 134, 134, 134, -1 ), + array( -1, -1, -1, -1, -1, -1, 136, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 136, 136, -1, -1, + -1, -1, 136, 136, 136, 136, 136, 136, + -1, 136, 136, 136, 136, 136, -1, 136, + 136, -1 ), + array( -1, -1, -1, 136, -1, -1, 136, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 136, 136, -1, 136, + 28, -1, 136, 136, 136, 136, 136, 136, + -1, 136, 136, 136, 136, 136, 136, 136, + 136, -1 ), array( 1, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, -1, -1, 29, 29, -1, -1, 29, 30, 29, @@ -1093,13 +1102,13 @@ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 ), - array( 1, 39, 39, 40, 39, -1, 175, 175, - 83, 41, 32, -1, 42, 39, 175, 39, + array( 1, 39, 39, 40, 39, -1, 176, 176, + 85, 41, 32, -1, 42, 39, 176, 39, 39, 39, 39, 39, 39, 39, 43, 44, - 39, 39, 39, 39, 175, 175, 39, 39, - 39, 39, 175, 175, 175, 175, 175, 175, - 39, 175, 175, 175, 175, 175, 40, 175, - 175, 39 ), + 39, 39, 39, 39, 176, 176, 39, 39, + 39, 39, 176, 176, 176, 176, 176, 176, + 39, 176, 176, 176, 176, 176, 40, 176, + 176, 39 ), array( 1, -1, -1, -1, -1, 45, -1, -1, -1, -1, 45, 45, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1116,8 +1125,8 @@ 46, 46 ), array( 1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, - 48, 48, 87, 48, 141, 48, 48, 49, - 48, 48, 101, 48, 48, 48, 48, 48, + 48, 48, 89, 48, 143, 48, 48, 49, + 48, 48, 103, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), @@ -1128,33 +1137,33 @@ 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), - array( -1, -1, -1, 142, -1, -1, 142, 142, + array( -1, -1, -1, 144, -1, -1, 144, 144, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 144, -1, 142, 142, 145, 142, - 50, 51, 142, 142, 142, 142, 142, 142, - -1, 142, 142, 142, 142, 142, 142, 142, - 142, -1 ), + -1, -1, 146, -1, 144, 144, 147, 144, + 50, 51, 144, 144, 144, 144, 144, 144, + -1, 144, 144, 144, 144, 144, 144, 144, + 144, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 177, + -1, -1, -1, -1, -1, -1, -1, 178, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 146, -1, + -1, -1, -1, -1, -1, -1, 148, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 147, -1, -1, -1, 147, - -1, -1, -1, -1, -1, 147, -1, -1, + -1, -1, -1, 149, -1, -1, -1, 149, + -1, -1, -1, -1, -1, 149, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1166,24 +1175,24 @@ array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 148, -1, -1, -1, -1, -1, + -1, -1, 150, -1, -1, -1, -1, -1, 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), array( 1, 52, 52, 53, 52, -1, 54, 55, 52, 52, 52, -1, 56, 52, 55, 57, - 52, 52, 52, 52, 52, 52, 88, 102, - 52, 52, 105, 52, 54, 54, 52, 52, + 52, 52, 52, 52, 52, 52, 90, 104, + 52, 52, 107, 52, 54, 54, 52, 52, 52, 52, 54, 54, 54, 54, 54, 54, 52, 54, 54, 54, 54, 54, 53, 54, 54, 52 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, -1, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, -1, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1205,24 +1214,24 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( 1, 67, 96, 67, 67, -1, 103, 67, + array( 1, 67, 98, 67, 67, -1, 105, 67, 67, 67, 67, -1, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, - 67, 67, 67, 67, 103, 103, 67, 67, - 67, 67, 103, 103, 103, 103, 103, 103, - 67, 103, 103, 103, 103, 103, 67, 103, - 103, 106 ), + 67, 67, 67, 67, 105, 105, 67, 67, + 67, 67, 105, 105, 105, 105, 105, 105, + 67, 105, 105, 105, 105, 105, 67, 105, + 105, 108 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, - -1, 162 ), + -1, 164 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 179, -1, + -1, -1, -1, -1, -1, -1, 180, -1, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), @@ -1230,8 +1239,8 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 163, -1, -1, -1, 163, - -1, -1, -1, -1, -1, 163, -1, -1, + -1, -1, -1, 165, -1, -1, -1, 165, + -1, -1, -1, -1, -1, 165, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1254,209 +1263,195 @@ 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( 1, -1, 166, -1, -1, -1, 167, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 167, 167, -1, -1, - -1, -1, 167, 167, 167, 167, 167, 167, - -1, 167, 167, 167, 167, 167, -1, 167, - 167, -1 ), - array( -1, 166, 168, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166 ), - array( -1, -1, -1, 167, -1, -1, 167, 167, + array( 1, -1, 168, -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 167, 167, -1, 167, - -1, -1, 167, 167, 167, 167, 167, 167, - 71, 167, 167, 167, 167, 167, 167, 167, - 167, 169 ), + -1, -1, -1, -1, 71, 71, -1, -1, + -1, -1, 71, 71, 71, 71, 71, 71, + -1, 71, 71, 71, 71, 71, -1, 71, + 71, 169 ), + array( -1, 168, 72, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 170, -1, -1, -1, 171, -1, + 73, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 72, -1, -1, -1, -1, -1, -1, -1, - -1, 170 ), + -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 171, -1, -1, -1, -1, -1, - 71, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 172, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 180, -1, -1, -1, -1, -1, - 72, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 173, -1, -1, -1, 173, + -1, -1, -1, -1, -1, 173, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 172, -1, - -1, -1 ), + -1, -1, 73, -1, -1, -1, -1, -1, + 73, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 170, -1, -1, -1, -1, -1, + 73, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 71, -1, -1, -1, -1, -1, - 71, -1 ), - array( -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1 ), + array( 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 72, -1, -1, -1, -1, -1, - 72, -1 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 3, 3, 3, 3, - 98, 3, -1, 3, 3, 3, 3, 3, + 74, -1, -1, -1, -1, -1, -1, -1, + -1, 169 ), + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 3, 3, 3, 3, + 100, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 116, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 193, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 118, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 193, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 126, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 128, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 164, -1, -1, -1, 164, - -1, -1, -1, -1, -1, 164, -1, -1, + -1, -1, -1, 166, -1, -1, -1, 166, + -1, -1, -1, -1, -1, 166, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 173, -1, - -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 121, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 119, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 124, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 122, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 126, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 124, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 179, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 178, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 181, 113, 186, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 181, 111, 186, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 182, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 182, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 183, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 183, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 184, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 184, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 187, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 187, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 188, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 188, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 189, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 189, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 190, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 190, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 191, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 191, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 192, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 192, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 194, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ) + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 194, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ) ); @@ -1512,7 +1507,7 @@ case 2: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 3: { @@ -1541,7 +1536,7 @@ { // <> -- empty start tag */ $this->error(0,"empty tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 7: { @@ -1568,7 +1563,7 @@ { /* </> -- empty end tag */ $this->error(0,"empty end tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 11: { @@ -1581,13 +1576,13 @@ { /* <!> */ $this->error(SGML_ERROR,"empty markup tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 13: { /* <![ -- marked section */ $this->error(SGML_ERROR,"marked section not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 14: { @@ -1601,7 +1596,7 @@ { /* ]]> -- marked section end */ $this->error(SGML_ERROR,"unmatched marked sections end"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 16: { @@ -1622,7 +1617,7 @@ { /* </name < -- unclosed end tag */ $this->error(0,"Unclosed end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 19: { @@ -1709,13 +1704,13 @@ case 32: { $this->error(0,"ERROR: unexpected : character in tag: (".$this->yytext().") 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 33: { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 34: { @@ -1728,14 +1723,14 @@ case 35: { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 36: { $this->yybegin(IN_NETDATA); - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } @@ -1749,7 +1744,7 @@ } case 38: { - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = HTML_Template_Flexy_Token::factory($this->tokenName, array($this->tagName,$this->attributes), $this->yyline); @@ -1776,12 +1771,12 @@ case 41: { $this->error(0,"attribute value missing"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 42: { $this->error(0, "Tag close found where attribute value expected"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 43: { @@ -1806,7 +1801,7 @@ case 46: { $this->error(0,"extraneous character in end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 47: { @@ -1861,9 +1856,9 @@ $this->value = ''; $n = $this->yytext(); if ($n{0} != "{") { - $n = substr($n,3); + $n = substr($n,2); } - $this->flexyMethod = substr($n,0,-1); + $this->flexyMethod = substr($n,1,-1); $this->flexyArgs = array(); $this->flexyMethodState = $this->yy_lexical_state; $this->yybegin(IN_FLEXYMETHODQUOTED); @@ -1872,7 +1867,7 @@ case 52: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 53: { @@ -1958,7 +1953,7 @@ case 67: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 68: { @@ -2004,49 +1999,53 @@ } case 71: { - $t = $this->yytext(); - if ($t{strlen($t-1)} == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } - $this->flexyArgs[] = substr($t,0,-2); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); - $this->yybegin($this->flexyMethodState); + $t = substr($this->yytext(),0,-1); + // add argument + $this->flexyArgs[] = $t; + $this->yybegin(IN_FLEXYMETHODQUOTED_END); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 72: { $t = $this->yytext(); - if ($t{ strlen($t-1) } == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } $this->flexyArgs[] = substr($t,0,-1); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); + $this->yybegin(IN_FLEXYMETHODQUOTED_END); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} +case 73: +{ + $t = $this->yytext(); + if ($p = strpos($t,':')) { + $this->flexyMethod .= substr($t,$p,2); + } + $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); $this->yybegin($this->flexyMethodState); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 74: { + $this->yybegin(IN_FLEXYMETHODQUOTED); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} +case 76: +{ $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 75: +case 77: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 76: +case 78: { // &abc; $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 77: +case 79: { //<name -- start tag */ $this->tagName = strtoupper(trim(substr($this->yytext(),1))); @@ -2056,19 +2055,19 @@ $this->yybegin(IN_ATTR); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 78: +case 80: { // { $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 79: +case 81: { // &#abc; $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 80: +case 82: { /* </title> -- end tag */ $this->tagName = strtoupper(trim(substr($this->yytext(),1))); @@ -2077,32 +2076,32 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 81: +case 83: { /* <!DOCTYPE -- markup declaration */ $this->value = HTML_Template_Flexy_Token::factory('Doctype',$this->yytext(),$this->yyline); $this->yybegin(IN_MD); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 82: +case 84: { $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 83: +case 85: { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 84: +case 86: { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 85: +case 87: { // <a href = ^http://foo/> -- unquoted literal HACK */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2111,7 +2110,7 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 86: +case 88: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2119,72 +2118,72 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 87: +case 89: { //echo "GOT DATA:".$this->yytext(); $this->attrVal[] = $this->yytext(); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 88: +case 90: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 89: +case 91: { $this->value = HTML_Template_Flexy_Token::factory('Number',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 90: +case 92: { $this->value = HTML_Template_Flexy_Token::factory('Name',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 91: +case 93: { $this->value = HTML_Template_Flexy_Token::factory('NameT',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 92: +case 94: { $this->value = HTML_Template_Flexy_Token::factory('NumberT',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 93: +case 95: { $this->value = HTML_Template_Flexy_Token::factory('Literal',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 94: +case 96: { // <!doctype ^%foo;> -- parameter entity reference */ $this->value = HTML_Template_Flexy_Token::factory('EntityRef',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 95: +case 97: { // <!^--...--> -- comment */ $this->value = HTML_Template_Flexy_Token::factory('Comment',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 96: +case 98: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 98: +case 100: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 99: +case 101: { $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 100: +case 102: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2192,45 +2191,45 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 101: +case 103: { //echo "GOT DATA:".$this->yytext(); $this->attrVal[] = $this->yytext(); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 102: +case 104: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 103: +case 105: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 105: +case 107: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 106: +case 108: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 108: +case 110: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 174: +case 175: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 175: +case 176: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); Index: pear/HTML_Template_Flexy/Flexy/Token/If.php diff -u pear/HTML_Template_Flexy/Flexy/Token/If.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/If.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/If.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/If.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: If.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: If.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** @@ -45,7 +45,7 @@ * @see parent::toString(), $this->toVar() */ function toString() { - $ret = "<?php if(@".$this->toVar($this->condition) .") { ?>"; + $ret = "<?php if (".$this->toVar($this->condition) .") { ?>"; $this->pushState(); return $ret; Index: pear/HTML_Template_Flexy/Flexy/Token/Method.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Method.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Method.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: Method.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** * Class to handle method calls @@ -90,6 +90,7 @@ case 'u': $prefix = 'echo urlencode('; $suffix = ')'; + break; default: $prefix = 'echo htmlspecialchars('; // add language ? Index: pear/HTML_Template_Flexy/Flexy/Token/Tag.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.5 pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.6 --- pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.5 Sun Feb 2 04:33:24 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Tag.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Tag.php,v 1.5 2003/02/02 09:33:24 alan_k Exp $ +// $Id: Tag.php,v 1.6 2003/02/02 17:04:57 alan_k Exp $ /** * A standard HTML Tag = eg. Table/Body etc. @@ -105,9 +105,21 @@ * @see parent::toString() */ function toString() { - + + global $_HTML_TEMPLATE_FLEXY_TOKEN; + + $flexyignore = $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore']; + + if ($this->getAttribute('FLEXYIGNORE')) { + + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = true; + unset($this->attributes['FLEXYIGNORE']); + } + + $method = 'parseTag'.ucfirst(strtolower($this->tag)); - if (method_exists($this,$method)) { + + if (!$_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] && method_exists($this,$method)) { $this->$method(); } @@ -122,12 +134,12 @@ $this->close->postfix = array($this->factory("End", '', $this->line)); - + unset($this->attributes['FOREACH']); } $ret .= "<". $this->tag; foreach ($this->attributes as $k=>$v) { - if ($v === null) { + if ($v === true) { $ret .= " $k"; continue; } @@ -168,6 +180,10 @@ if ($this->close) { $ret .= $this->close->toString(); } + // reset flexyignore + + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = $flexyignore; + return $ret; } @@ -329,6 +345,7 @@ $_HTML_TEMPLATE_FLEXY_TOKEN['activeSelect'] = $name; if ($this->getAttribute('STATIC')) { + unset($this->attributes['STATIC']); return; } @@ -370,7 +387,7 @@ $php = '<? '; - if ($this->getAttribute('SELECTED') === null) { + if ($this->getAttribute('SELECTED')) { // then it's the default.. // if no value is available for $this->the_form->the name of the tag... // just leave it allown @@ -429,11 +446,25 @@ // all attribute keys are stored Upper Case, // however just to make sure we have not done a typo :) $key = strtoupper($key); + //echo "looking for $key\n"; + //var_dump($this->attributes); + + // this is weird case isset() returns false on this being null! + + if (@$this->attributes[$key] === true) { + return true; + } if (!isset($this->attributes[$key])) { - return ''; + return; } $v = $this->attributes[$key]; + + // unlikely :) + if ($v=='') { + return $v; + } + switch($v{0}) { case "\"": case "'": Index: pear/HTML_Template_Flexy/Flexy/Token/Var.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Var.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Var.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: Var.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** @@ -52,7 +52,22 @@ */ function toString() { // ignore modifier at present!! - return "<?php echo htmlspecialchars(" . $this->toVar($this->value) . "); ?>"; + $prefix = 'echo '; + $suffix = ''; + switch ($this->modifier) { + case 'h': + break; + case 'u': + $prefix = 'echo urlencode('; + $suffix = ')'; + break; + default: + $prefix = 'echo htmlspecialchars('; + // add language ? + $suffix = ')'; + } + + return "<?php {$prefix}" . $this->toVar($this->value) . "{$suffix}; ?>"; } } Index: pear/HTML_Template_Flexy/examples/example.html diff -u pear/HTML_Template_Flexy/examples/example.html:1.1 pear/HTML_Template_Flexy/examples/example.html:1.2 --- pear/HTML_Template_Flexy/examples/example.html:1.1 Thu Jan 30 12:30:19 2003 +++ pear/HTML_Template_Flexy/examples/example.html Sun Feb 2 12:04:57 2003 @@ -6,18 +6,89 @@ </head> <body> -<p>Example Template for HTML_Template_Flexy</p> -<p>Standard variables {hello} {world:h}</p> -<p>a loop {foreach:loop,a} {a} {end:}</p> +<p>Example Template for HTML_Template_Flexy</p> + +<h2>Variables</H2> + +<p>Standard variables +{hello} +{world:h} +{test:u} +<img src="%7bgetImageDir%7D/someimage.jpg"> +<img src="%7bgetImageDir:h%7D/someimage.jpg"> +<img src="%7bgetImageDir:u%7D/someimage.jpg"> + +<img src="%7bgetImageDir}/someimage.jpg"> +<img src="{getImageDir%7D/someimage.jpg"> +</p> + +<h2>Methods</H2> +<p>Calling a method {a.helloWorld()}</p> +<p>or {includeBody():h}</P> +<img src="%7bgetImageDir()%7D/someimage.jpg"> +<img src="%7bgetImageDir():h%7D/someimage.jpg"> +<img src="%7bgetImageDir():u%7D/someimage.jpg"> + +<img src="%7bgetImageDir()}/someimage.jpg"> +<img src="{getImageDir()%7D/someimage.jpg"> + +<H2>Conditions</H2> <p>a condition {if:condition} hello {else:} world {end:}</p> + + +<h2>Looping</h2> + + +<p>a loop {foreach:loop,a} {a} {end:}</p> +<p>a loop with 2 vars {foreach:loop,a,b} + {a} , + {b} +{end:}</p> + + <p>HTML tags example using foreach="loop,a" or the tr</p> <table width="100%" border="0"> <tr foreach="loop,a"> <td>a is</td> <td>{a}</td> </tr> -</table> -<p>Calling a method {a.helloWorld()}</p> +</table> + +<p>HTML tags example using foreach="loop,a,b" or the tr</p> +<table width="100%" border="0"> + <tr foreach="loop,a,b"> + <td>{a}</td> + <td>{b}</td> + </tr> +</table> + +<h2>Form Not Parsed</h2> + +<form name="test" flexyignore> + <input name=test123> + <select name="aaa"> + <option>bb</option> + </select> +</form> + +<h2>Parsed</h2> + + +<form name="test"> + <input name=test123> + <textarea name="fred">some text</textarea> + <select name="aaa"> + <option>bb</option> + </select> + <select name="aaa" flexyignore> + <option>bb</option> + </select> + <select name="aaa" static> + <option>bb</option> + </select> +</form> + + <p> </p> </body> </html>
Index: pear/HTML_Template_Flexy/Flexy/Test.php diff -u pear/HTML_Template_Flexy/Flexy/Test.php:1.3 pear/HTML_Template_Flexy/Flexy/Test.php:1.4 --- pear/HTML_Template_Flexy/Flexy/Test.php:1.3 Fri Jan 31 11:22:06 2003 +++ pear/HTML_Template_Flexy/Flexy/Test.php Sun Feb 2 12:04:56 2003 @@ -17,7 +17,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Test.php,v 1.3 2003/01/31 16:22:06 alan_k Exp $ +// $Id: Test.php,v 1.4 2003/02/02 17:04:56 alan_k Exp $ // // This is a temporary file - it includes some of the // Code that will have to go in the Engine eventually.. @@ -81,7 +81,9 @@ $data = file_get_contents($file); //echo strlen($data); $tokenizer = new HTML_Template_Flexy_Tokenizer($data); + $tokenizer->debug=1; + //echo "buliding tokens"; $res = HTML_Template_Flexy_Token::buildTokens($tokenizer); Index: pear/HTML_Template_Flexy/Flexy/Token.php diff -u pear/HTML_Template_Flexy/Flexy/Token.php:1.5 pear/HTML_Template_Flexy/Flexy/Token.php:1.6 --- pear/HTML_Template_Flexy/Flexy/Token.php:1.5 Fri Jan 31 12:28:39 2003 +++ pear/HTML_Template_Flexy/Flexy/Token.php Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Token.php,v 1.5 2003/01/31 17:28:39 alan_k Exp $ +// $Id: Token.php,v 1.6 2003/02/02 17:04:56 alan_k Exp $ // // This is the master Token file for The New Token driver Engine. // All the Token output, and building routines are in here. @@ -81,7 +81,10 @@ static $loaded = array(); if (!isset($loaded[$token])) { - @include 'HTML/Template/Flexy/Token/'.$token.'.php'; + // make sure parse errors are picked up - now @ here.. + if (file_exists(dirname(__FILE__)."/Token/{$token}.php")) { + include 'HTML/Template/Flexy/Token/'.$token.'.php'; + } $loaded[$token] = true; } @@ -186,6 +189,7 @@ $_HTML_TEMPLATE_FLEXY_TOKEN['statevars'] = array(); $_HTML_TEMPLATE_FLEXY_TOKEN['state'] = 0; + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = false; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'] = array(new HTML_Template_Flexy_Token); $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][0]->id =0; @@ -195,11 +199,12 @@ // initialize state - this trys to make sure that // you dont do to many elses etc. - + //echo "RUNNING TOKENIZER"; // step one just tokenize it. while ($t = $tokenizer->yylex()) { if ($t == HTML_TEMPLATE_FLEXY_TOKEN_ERROR) { + //echo "ERROR"; PEAR::raiseError('HTML_Template_Flexy::Syntax error in Template line:'. $t->line, null,PEAR_ERROR_DIE); } @@ -210,9 +215,11 @@ $i++; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i] = $tokenizer->value; $_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i]->id = $i; - //print_r($res[$i]); + //print_r($_HTML_TEMPLATE_FLEXY_TOKEN['tokens'][$i]); } + //echo "BUILT TOKENS"; + $res = &$_HTML_TEMPLATE_FLEXY_TOKEN['tokens']; // connect parent and child tags. $stack = array(); Index: pear/HTML_Template_Flexy/Flexy/Tokenizer.lex diff -u pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.6 pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.7 --- pear/HTML_Template_Flexy/Flexy/Tokenizer.lex:1.6 Sun Feb 2 04:33:23 2003 +++ pear/HTML_Template_Flexy/Flexy/Tokenizer.lex Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.lex,v 1.6 2003/02/02 09:33:23 alan_k Exp $ +// $Id: Tokenizer.lex,v 1.7 2003/02/02 17:04:56 alan_k Exp $ // // The Source Lex file. (Tokenizer.lex) and the Generated one (Tokenizer.php) // You should always work with the .lex file and generate by @@ -50,10 +50,9 @@ define("IN_MD" ,8); define("IN_COM" ,9); define("IN_DS" ,10); - define("IN_FLEXYMETHOD" ,11); - -define("IN_FLEXYMETHODQUOTED" ,11); +define("IN_FLEXYMETHODQUOTED" ,12); +define("IN_FLEXYMETHODQUOTED_END" ,13); define('YY_E_INTERNAL', 0); @@ -93,7 +92,7 @@ function error($n,$s) { - echo "Error $n: $s\n"; + echo "Error $n on Line {$this->yyline}: $s\n"; } @@ -105,7 +104,7 @@ %line %full %char -%state IN_SINGLEQUOTE IN_TAG IN_ATTR IN_ATTRVAL IN_NETDATA IN_ENDTAG IN_DOUBLEQUOTE IN_MD IN_COM IN_DS IN_FLEXYMETHOD IN_FLEXYMETHODQUOTED +%state IN_SINGLEQUOTE IN_TAG IN_ATTR IN_ATTRVAL IN_NETDATA IN_ENDTAG IN_DOUBLEQUOTE IN_MD IN_COM IN_DS IN_FLEXYMETHOD IN_FLEXYMETHODQUOTED IN_FLEXYMETHODQUOTED_END @@ -208,7 +207,7 @@ <YYINITIAL>{ETAGO}{NAME}?{WHITESPACE}"/"{STAGO} { /* </name < -- unclosed end tag */ $this->error(0,"Unclosed end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -226,7 +225,7 @@ <YYINITIAL>{ETAGO}{TAGC} { /* </> -- empty end tag */ $this->error(0,"empty end tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } <YYINITIAL>{MDO}{NAME}{WHITESPACE} { @@ -241,7 +240,7 @@ <YYINITIAL>{MDO}{TAGC} { /* <!> */ $this->error(SGML_ERROR,"empty markup tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -258,14 +257,14 @@ <YYINITIAL>{MDO}{DSO}{WHITESPACE} { /* <![ -- marked section */ $this->error(SGML_ERROR,"marked section not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } <YYINITIAL>{MSC}{TAGC} { /* ]]> -- marked section end */ $this->error(SGML_ERROR,"unmatched marked sections end"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -294,7 +293,7 @@ <YYINITIAL>{STAGO}{TAGC} { // <> -- empty start tag */ $this->error(0,"empty tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -329,7 +328,7 @@ <IN_ATTR>{NAME}{WHITESPACE} { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } @@ -435,7 +434,7 @@ // <a name= ^> -- illegal tag close */ <IN_ATTRVAL>{TAGC} { $this->error(0, "Tag close found where attribute value expected"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // <a name=foo ^>,</foo^> -- tag close */ @@ -451,19 +450,19 @@ // <em^/ -- NET tag */ <IN_ATTRVAL>{NET} { $this->error(0,"attribute value missing"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // <em^/ -- NET tag */ <IN_ATTR>{NET} { $this->yybegin(IN_NETDATA); - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } <IN_ATTR>{NET}{WHITESPACE}{TAGC} { - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = HTML_Template_Flexy_Token::factory($this->tokenName, array($this->tagName,$this->attributes), $this->yyline); @@ -476,7 +475,7 @@ <IN_ATTR,IN_ATTRVAL,IN_TAG> {STAGO} { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -501,7 +500,7 @@ <IN_ATTR,IN_ATTRVAL,IN_TAG> . { $this->error(0,"ERROR: unexpected : character in tag: (".$this->yytext().") 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } // end tag -- non-permissive */ @@ -516,7 +515,7 @@ <IN_ENDTAG>. { $this->error(0,"extraneous character in end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -592,7 +591,7 @@ <IN_MD,IN_COM>. { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -662,6 +661,9 @@ return HTML_TEMPLATE_FLEXY_TOKEN_OK; } + +// plan is to remove these - using a object method solves it anyway.. + <YYINITIAL>"{include:"{FLEXY_VAR}"}" { $this->value = HTML_Template_Flexy_Token::factory('Include', substr($this->yytext(),9,-1),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; @@ -773,7 +775,7 @@ } <IN_FLEXYMETHOD> . { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } @@ -785,49 +787,63 @@ $this->value = ''; $n = $this->yytext(); if ($n{0} != "{") { - $n = substr($n,3); + $n = substr($n,2); } - $this->flexyMethod = substr($n,0,-1); + + $this->flexyMethod = substr($n,1,-1); $this->flexyArgs = array(); $this->flexyMethodState = $this->yy_lexical_state; $this->yybegin(IN_FLEXYMETHODQUOTED); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } +// no values in method. -<IN_FLEXYMETHODQUOTED>{FLEXY_VAR}(","|")"{FLEXY_END}) { +<IN_FLEXYMETHODQUOTED,IN_FLEXYMETHODQUOTED_END>(")"|"):"{FLEXY_MODIFIER}){FLEXY_END} { $t = $this->yytext(); - - if ($t{strlen($t-1)} == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + if ($p = strpos($t,':')) { + $this->flexyMethod .= substr($t,$p,2); } - $this->flexyArgs[] = substr($t,0,-2); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); + $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); $this->yybegin($this->flexyMethodState); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -<IN_FLEXYMETHODQUOTED>"#"{FLEXY_LITERAL}("#,"|"#)"{FLEXY_END}) { +<IN_FLEXYMETHODQUOTED_END>"," { + + $this->yybegin(IN_FLEXYMETHODQUOTED); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} + + +<IN_FLEXYMETHODQUOTED>{FLEXY_VAR} { + + $t = substr($this->yytext(),0,-1); + + // add argument + $this->flexyArgs[] = $t; + $this->yybegin(IN_FLEXYMETHODQUOTED_END); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + + +} + + + +<IN_FLEXYMETHODQUOTED>"#"{FLEXY_LITERAL}"#" { $t = $this->yytext(); - if ($t{ strlen($t-1) } == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } $this->flexyArgs[] = substr($t,0,-1); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); - $this->yybegin($this->flexyMethodState); + $this->yybegin(IN_FLEXYMETHODQUOTED_END); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; + + } - <YYINITIAL,IN_TAG,IN_ATTR,IN_ATTRVAL> . { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } Index: pear/HTML_Template_Flexy/Flexy/Tokenizer.php diff -u pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.7 pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.8 --- pear/HTML_Template_Flexy/Flexy/Tokenizer.php:1.7 Sun Feb 2 04:33:23 2003 +++ pear/HTML_Template_Flexy/Flexy/Tokenizer.php Sun Feb 2 12:04:56 2003 @@ -16,7 +16,7 @@ // | Authors: nobody <nobody@localhost> | // +----------------------------------------------------------------------+ // -// $Id: Tokenizer.php,v 1.7 2003/02/02 09:33:23 alan_k Exp $ +// $Id: Tokenizer.php,v 1.8 2003/02/02 17:04:56 alan_k Exp $ // // The Source Lex file. (Tokenizer.lex) and the Generated one (Tokenizer.php) // You should always work with the .lex file and generate by @@ -45,7 +45,8 @@ define("IN_COM" ,9); define("IN_DS" ,10); define("IN_FLEXYMETHOD" ,11); -define("IN_FLEXYMETHODQUOTED" ,11); +define("IN_FLEXYMETHODQUOTED" ,12); +define("IN_FLEXYMETHODQUOTED_END" ,13); define('YY_E_INTERNAL', 0); define('YY_E_MATCH', 1); define('YY_BUFFER_SIZE', 4096); @@ -70,7 +71,7 @@ } } function error($n,$s) { - echo "Error $n: $s\n"; + echo "Error $n on Line {$this->yyline}: $s\n"; } @@ -101,18 +102,19 @@ var $yy_state_dtrans = array ( 0, - 135, - 31, - 99, 137, - 138, + 31, + 101, 139, 140, - 149, + 141, + 142, + 151, 62, - 154, 156, - 165 + 158, + 167, + 174 ); @@ -284,9 +286,9 @@ /* 70 */ YY_NO_ANCHOR, /* 71 */ YY_NO_ANCHOR, /* 72 */ YY_NO_ANCHOR, - /* 73 */ YY_NOT_ACCEPT, + /* 73 */ YY_NO_ANCHOR, /* 74 */ YY_NO_ANCHOR, - /* 75 */ YY_NO_ANCHOR, + /* 75 */ YY_NOT_ACCEPT, /* 76 */ YY_NO_ANCHOR, /* 77 */ YY_NO_ANCHOR, /* 78 */ YY_NO_ANCHOR, @@ -308,20 +310,20 @@ /* 94 */ YY_NO_ANCHOR, /* 95 */ YY_NO_ANCHOR, /* 96 */ YY_NO_ANCHOR, - /* 97 */ YY_NOT_ACCEPT, + /* 97 */ YY_NO_ANCHOR, /* 98 */ YY_NO_ANCHOR, - /* 99 */ YY_NO_ANCHOR, + /* 99 */ YY_NOT_ACCEPT, /* 100 */ YY_NO_ANCHOR, /* 101 */ YY_NO_ANCHOR, /* 102 */ YY_NO_ANCHOR, /* 103 */ YY_NO_ANCHOR, - /* 104 */ YY_NOT_ACCEPT, + /* 104 */ YY_NO_ANCHOR, /* 105 */ YY_NO_ANCHOR, - /* 106 */ YY_NO_ANCHOR, - /* 107 */ YY_NOT_ACCEPT, + /* 106 */ YY_NOT_ACCEPT, + /* 107 */ YY_NO_ANCHOR, /* 108 */ YY_NO_ANCHOR, /* 109 */ YY_NOT_ACCEPT, - /* 110 */ YY_NOT_ACCEPT, + /* 110 */ YY_NO_ANCHOR, /* 111 */ YY_NOT_ACCEPT, /* 112 */ YY_NOT_ACCEPT, /* 113 */ YY_NOT_ACCEPT, @@ -385,9 +387,9 @@ /* 171 */ YY_NOT_ACCEPT, /* 172 */ YY_NOT_ACCEPT, /* 173 */ YY_NOT_ACCEPT, - /* 174 */ YY_NO_ANCHOR, + /* 174 */ YY_NOT_ACCEPT, /* 175 */ YY_NO_ANCHOR, - /* 176 */ YY_NOT_ACCEPT, + /* 176 */ YY_NO_ANCHOR, /* 177 */ YY_NOT_ACCEPT, /* 178 */ YY_NOT_ACCEPT, /* 179 */ YY_NOT_ACCEPT, @@ -456,30 +458,30 @@ 17, 16, 1, 16, 1, 18, 1, 1, 19, 1, 1, 1, 1, 20, 21, 22, 1, 1, 23, 24, 25, 26, 27, 1, - 28, 29, 1, 1, 1, 1, 1, 1, - 1, 30, 31, 32, 1, 33, 1, 1, - 34, 35, 36, 16, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 1, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, - 14, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 95, 99, 41, 54, - 100, 101, 102, 103, 104, 48, 105, 55, - 106, 107, 108, 109, 110, 111, 112, 113, - 114, 115, 116, 117, 118, 119, 120, 52, - 121, 40, 122, 123, 124, 125, 126, 127, - 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139 + 28, 29, 1, 1, 1, 1, 1, 30, + 1, 1, 1, 31, 32, 33, 1, 34, + 1, 1, 35, 36, 37, 16, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 1, + 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, + 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 14, 89, 90, 91, 92, 93, + 94, 95, 96, 97, 98, 99, 96, 100, + 42, 55, 101, 102, 103, 104, 105, 49, + 106, 56, 107, 108, 109, 110, 111, 112, + 113, 114, 115, 116, 117, 118, 119, 120, + 53, 121, 41, 122, 123, 124, 125, 126, + 127, 128, 129, 130, 131, 132, 133, 134, + 135, 136, 137, 138 ); var $yy_nxt = array( array( 1, 2, 3, 3, 3, 3, 3, 3, - 74, 3, 3, 3, 3, 3, 3, 3, - 174, 3, 75, 3, 3, 3, 3, 3, + 76, 3, 3, 3, 3, 3, 3, 3, + 175, 3, 77, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, @@ -491,57 +493,57 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, 73, 3, 3, 3, 4, 3, + array( -1, -1, 75, 3, 3, 3, 4, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 3, 4, 4, 3 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 3, 3, 3, 3, + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 3, 3, 3, 3, 3, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( -1, -1, -1, 4, 76, 76, 4, 4, + array( -1, -1, -1, 4, 78, 78, 4, 4, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4, -1, -1, -1, -1, 4, 4, 4, 4, 4, 4, -1, 4, 4, 4, 4, 4, 4, 4, 4, -1 ), - array( -1, -1, -1, 5, -1, 77, 5, 5, - -1, -1, 77, 77, -1, -1, 5, -1, + array( -1, -1, -1, 5, -1, 79, 5, 5, + -1, -1, 79, 79, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5, 5, -1, -1, -1, -1, 5, 5, 5, 5, 5, 5, -1, 5, 5, 5, 5, 5, 5, 5, 5, -1 ), - array( -1, -1, -1, 7, 78, 78, -1, -1, + array( -1, -1, -1, 7, 80, 80, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7, -1, -1, -1 ), - array( -1, -1, -1, 8, 79, 79, 8, 8, + array( -1, -1, -1, 8, 81, 81, 8, 8, -1, -1, -1, -1, -1, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, 8, -1, -1, -1, -1, 8, 8, 8, 8, 8, 8, -1, 8, 8, 8, 8, 8, 8, 8, 8, -1 ), - array( -1, -1, -1, 9, -1, 80, 9, 9, - -1, 113, 80, 80, -1, -1, 9, -1, + array( -1, -1, -1, 9, -1, 82, 9, 9, + -1, 115, 82, 82, -1, -1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 9, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1, 9, 9, 9, 9, 9, 9, 9, 9, -1 ), - array( -1, -1, -1, 11, -1, 81, 11, 11, - -1, -1, 81, 81, -1, -1, 11, -1, + array( -1, -1, -1, 11, -1, 83, 11, 11, + -1, -1, 83, 83, -1, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 11, -1, -1, -1, -1, 11, 11, 11, 11, 11, 11, @@ -561,22 +563,22 @@ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 ), - array( 1, 32, 32, 32, 32, 82, 32, 32, - 33, 32, 82, 82, 34, 32, 32, 32, + array( 1, 32, 32, 32, 32, 84, 32, 32, + 33, 32, 84, 84, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32 ), - array( -1, -1, -1, 35, -1, 84, 35, 35, - -1, -1, 84, 84, -1, -1, 35, -1, + array( -1, -1, -1, 35, -1, 86, 35, 35, + -1, -1, 86, 86, -1, -1, 35, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, 35, 35, -1, -1, -1, -1, 35, 35, 35, 35, 35, 35, -1, 35, 35, 35, 35, 35, 35, 35, 35, -1 ), - array( -1, -1, -1, -1, -1, 136, -1, -1, - -1, -1, 136, 136, 38, -1, -1, -1, + array( -1, -1, -1, -1, -1, 138, -1, -1, + -1, -1, 138, 138, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -589,15 +591,15 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, 39, 39, 39, 39, 85, 39, 39, - 39, 39, 85, 85, -1, 39, 39, 39, + array( -1, 39, 39, 39, 39, 87, 39, 39, + 39, 39, 87, 87, -1, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, -1, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39 ), - array( -1, 39, 39, 40, 39, 86, 40, 40, - 39, 39, 86, 86, -1, 39, 40, 39, + array( -1, 39, 39, 40, 39, 88, 40, 40, + 39, 39, 88, 88, -1, 39, 40, 39, 39, 39, 39, 39, 39, 39, 39, -1, 39, 39, 39, 39, 40, 40, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, @@ -612,34 +614,34 @@ -1, -1 ), array( -1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, - 48, 48, -1, 48, 141, 48, 48, -1, + 48, 48, -1, 48, 143, 48, 48, -1, 48, 48, -1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), - array( -1, -1, -1, 53, -1, 89, 58, 58, - -1, -1, 89, 89, -1, -1, 58, -1, + array( -1, -1, -1, 53, -1, 91, 58, 58, + -1, -1, 91, 91, -1, -1, 58, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 58, -1, -1, -1, -1, 58, 58, 58, 58, 58, 58, -1, 58, 58, 58, 58, 58, 53, 58, 58, -1 ), - array( -1, -1, -1, 54, -1, 90, 54, 54, - -1, -1, 90, 90, -1, -1, 54, -1, + array( -1, -1, -1, 54, -1, 92, 54, 54, + -1, -1, 92, 92, -1, -1, 54, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 54, 54, -1, -1, -1, -1, 54, 54, 54, 54, 54, 54, -1, 54, 54, 54, 54, 54, 54, 54, 54, -1 ), - array( -1, -1, -1, 55, -1, 91, 55, 55, - -1, -1, 91, 91, -1, -1, 55, -1, + array( -1, -1, -1, 55, -1, 93, 55, 55, + -1, -1, 93, 93, -1, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 55, 55, -1, -1, -1, -1, 55, 55, 55, 55, 55, 55, -1, 55, 55, 55, 55, 55, 55, 55, 55, -1 ), - array( -1, -1, -1, 58, -1, 92, 58, 58, - -1, -1, 92, 92, -1, -1, 58, -1, + array( -1, -1, -1, 58, -1, 94, 58, 58, + -1, -1, 94, 94, -1, -1, 58, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 58, -1, -1, -1, -1, 58, 58, 58, 58, 58, 58, @@ -659,20 +661,20 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, 61, 94, 94, 61, 61, - -1, -1, 94, 94, -1, -1, 61, -1, + array( -1, -1, -1, 61, 96, 96, 61, 61, + -1, -1, 96, 96, -1, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 61, 61, -1, -1, -1, -1, 61, 61, 61, 61, 61, 61, -1, 61, 61, 61, 61, 61, 61, 61, 61, -1 ), - array( 1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 108, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( 1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 110, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, -1, 64, 64, 64, 64, 64, 64, 64, @@ -682,11 +684,18 @@ 64, 64 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 155, -1, -1, -1, -1, -1, -1, -1, + 157, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), + array( -1, -1, -1, 71, -1, -1, 71, 71, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 71, 71, -1, 71, + -1, -1, 71, 71, 71, 71, 71, 71, + -1, 71, 71, 71, 71, 71, 71, 71, + 71, -1 ), array( -1, -1, -1, 7, -1, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -695,131 +704,131 @@ -1, 8, 8, 8, 8, 8, 7, 8, 8, -1 ), array( -1, -1, -1, -1, -1, 3, 5, -1, - -1, 107, 3, 3, 6, 109, -1, 3, - 3, 110, 3, -1, 3, -1, -1, -1, + -1, 109, 3, 3, 6, 111, -1, 3, + 3, 112, 3, -1, 3, -1, -1, -1, 3, -1, -1, 3, 5, 5, -1, 3, 3, -1, 5, 5, 5, 5, 5, 5, -1, 5, 5, 5, 5, 5, -1, 5, 5, -1 ), - array( -1, -1, -1, -1, -1, -1, 111, -1, + array( -1, -1, -1, -1, -1, -1, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 176, 195, -1, -1, - -1, -1, 111, 111, 185, 111, 111, 111, - -1, 111, 111, 111, 111, 111, -1, 111, - 111, -1 ), - array( -1, -1, -1, -1, -1, 77, -1, -1, - -1, -1, 77, 77, -1, -1, -1, -1, + -1, -1, -1, -1, 177, 195, -1, -1, + -1, -1, 113, 113, 185, 113, 113, 113, + -1, 113, 113, 113, 113, 113, -1, 113, + 113, -1 ), + array( -1, -1, -1, -1, -1, 79, -1, -1, + -1, -1, 79, 79, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 80, -1, -1, - -1, 113, 80, 80, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 82, -1, -1, + -1, 115, 82, 82, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 81, -1, -1, - -1, -1, 81, 81, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 83, -1, -1, + -1, -1, 83, 83, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 82, -1, -1, - -1, -1, 82, 82, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 84, -1, -1, + -1, -1, 84, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 84, -1, -1, - -1, -1, 84, 84, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 86, -1, -1, + -1, -1, 86, 86, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 85, -1, -1, - -1, -1, 85, 85, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 87, -1, -1, + -1, -1, 87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 86, -1, -1, - -1, -1, 86, 86, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 88, -1, -1, + -1, -1, 88, 88, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 142, -1, + array( -1, -1, -1, -1, -1, -1, 144, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 142, 142, -1, -1, - -1, -1, 142, 142, 142, 142, 142, 142, - -1, 142, 142, 142, 142, 142, -1, 142, - 142, -1 ), - array( -1, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 59, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150 ), - array( -1, -1, -1, -1, -1, 89, -1, -1, - -1, -1, 89, 89, -1, -1, -1, -1, + -1, -1, -1, -1, 144, 144, -1, -1, + -1, -1, 144, 144, 144, 144, 144, 144, + -1, 144, 144, 144, 144, 144, -1, 144, + 144, -1 ), + array( -1, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 59, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152, 152, 152, 152, 152, 152, 152, + 152, 152 ), + array( -1, -1, -1, -1, -1, 91, -1, -1, + -1, -1, 91, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 90, -1, -1, - -1, -1, 90, 90, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 92, -1, -1, + -1, -1, 92, 92, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 91, -1, -1, - -1, -1, 91, 91, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 93, -1, -1, + -1, -1, 93, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 92, -1, -1, - -1, -1, 92, 92, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 94, -1, -1, + -1, -1, 94, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 94, -1, -1, - -1, -1, 94, 94, -1, -1, -1, -1, + array( -1, -1, -1, -1, -1, 96, -1, -1, + -1, -1, 96, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 152, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), - array( -1, 157, 158, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157, 157, 157, 157, 157, 157, 157, - 157, 157 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 154, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), + array( -1, 159, 160, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159 ), array( -1, -1, -1, 3, 3, 3, -1, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, @@ -827,48 +836,48 @@ 3, 3, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, -1, 3, -1, -1, 3 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 15, 3, 3, 3, + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 15, 3, 3, 3, 3, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( 1, 32, 32, 32, 32, 82, 35, 32, - 33, 36, 82, 82, 34, 32, 32, 32, + array( 1, 32, 32, 32, 32, 84, 35, 32, + 33, 36, 84, 84, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 35, 35, 32, 32, 32, 32, 35, 35, 35, 35, 35, 35, 32, 35, 35, 35, 35, 35, 32, 35, 35, 32 ), - array( -1, 39, 39, 100, 39, 86, 100, 100, - 39, 39, 86, 86, -1, 39, 100, 39, + array( -1, 39, 39, 102, 39, 88, 102, 102, + 39, 39, 88, 88, -1, 39, 102, 39, 39, 39, 39, 39, 39, 39, 39, -1, - 39, 39, 39, 39, 100, 100, 39, 39, - 39, 39, 100, 100, 100, 100, 100, 100, - 39, 100, 100, 100, 100, 100, 100, 100, - 100, 39 ), + 39, 39, 39, 39, 102, 102, 39, 39, + 39, 39, 102, 102, 102, 102, 102, 102, + 39, 102, 102, 102, 102, 102, 102, 102, + 102, 39 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 143, -1, + -1, -1, -1, -1, -1, -1, 145, -1, -1, -1 ), - array( -1, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 93, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, - 151, 151 ), - array( -1, -1, -1, 159, -1, -1, 159, 159, + array( -1, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 95, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153 ), + array( -1, -1, -1, 161, -1, -1, 161, 161, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 159, 159, -1, 159, - -1, -1, 159, 159, 159, 159, 159, 159, - 68, 159, 159, 159, 159, 159, 159, 159, - 159, 160 ), + -1, -1, -1, -1, 161, 161, -1, 161, + -1, -1, 161, 161, 161, 161, 161, 161, + 68, 161, 161, 161, 161, 161, 161, 161, + 161, 162 ), array( -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, 3, 3, -1, -1, -1, 3, 3, -1, 3, -1, 3, -1, -1, -1, @@ -886,47 +895,47 @@ array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 161, -1, + -1, -1, -1, -1, -1, -1, 163, -1, 69, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, 112, 9, -1, - -1, 113, 112, 112, 10, -1, -1, -1, + array( -1, -1, -1, -1, -1, 114, 9, -1, + -1, 115, 114, 114, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 9, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1, 9, 9, 9, 9, 9, -1, 9, 9, -1 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 153, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 155, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, -1, -1, -1, -1, -1, 11, -1, - -1, -1, -1, -1, 12, -1, 114, 13, + -1, -1, -1, -1, 12, -1, 116, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 11, -1, -1, -1, -1, 11, 11, 11, 11, 11, 11, -1, 11, 11, 11, 11, 11, -1, 11, 11, -1 ), - array( -1, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 14, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110, 110, 110, 110, 110, 110, 110, - 110, 110 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, -1, -1, 112, -1, -1, - -1, 113, 112, 112, -1, -1, -1, -1, + array( -1, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 14, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, -1, -1, 114, -1, -1, + -1, 115, 114, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -950,16 +959,16 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + -1, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 118, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 120, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -967,90 +976,90 @@ 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 120, -1, + array( -1, -1, -1, -1, -1, -1, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 120, -1, -1, - -1, -1, 120, 120, 120, 120, 120, 120, - -1, 120, 120, 120, 120, 120, -1, 120, - 120, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 122, 122, -1, -1, + -1, -1, 122, 122, 122, 122, 122, 122, + -1, 122, 122, 122, 122, 122, -1, 122, + 122, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 121, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 120, -1, -1, 120, 120, + -1, -1, -1, -1, 113, 113, 123, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 122, -1, -1, 122, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 120, -1, 120, - 20, 21, 120, 120, 120, 120, 120, 120, - -1, 120, 120, 120, 120, 120, 120, 120, - 120, -1 ), + -1, -1, -1, -1, 122, 122, -1, 122, + 20, 21, 122, 122, 122, 122, 122, 122, + -1, 122, 122, 122, 122, 122, 122, 122, + 122, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 22, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + 22, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 123, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 125, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 23, -1, -1, 117, -1, -1, -1, 117, - -1, -1, -1, -1, -1, 117, -1, -1, + 23, -1, -1, 119, -1, -1, -1, 119, + -1, -1, -1, -1, -1, 119, -1, -1, -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 125, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, 127, -1, -1, -1, 128, -1, + -1, -1, -1, -1, 113, 113, 127, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, 129, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 128, 128, -1, -1, - -1, -1, 128, 128, 128, 128, 128, 128, - -1, 128, 128, 128, 128, 128, -1, 128, - 128, -1 ), - array( -1, -1, -1, -1, -1, -1, 129, -1, + -1, -1, -1, -1, 130, 130, -1, -1, + -1, -1, 130, 130, 130, 130, 130, 130, + -1, 130, 130, 130, 130, 130, -1, 130, + 130, -1 ), + array( -1, -1, -1, -1, -1, -1, 131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 129, 129, -1, -1, - -1, -1, 129, 129, 129, 129, 129, 129, - -1, 129, 129, 129, 129, 129, -1, 129, - 129, -1 ), - array( -1, 127, 130, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127 ), - array( -1, -1, -1, 128, -1, -1, 128, 128, + -1, -1, -1, -1, 131, 131, -1, -1, + -1, -1, 131, 131, 131, 131, 131, 131, + -1, 131, 131, 131, 131, 131, -1, 131, + 131, -1 ), + array( -1, 129, 132, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129 ), + array( -1, -1, -1, 130, -1, -1, 130, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 128, 128, -1, 128, - 24, -1, 128, 128, 128, 128, 128, 128, - -1, 128, 128, 128, 128, 128, 128, 128, - 128, -1 ), - array( -1, -1, -1, 129, -1, -1, 129, 129, + -1, -1, -1, -1, 130, 130, -1, 130, + 24, -1, 130, 130, 130, 130, 130, 130, + -1, 130, 130, 130, 130, 130, 130, 130, + 130, -1 ), + array( -1, -1, -1, 131, -1, -1, 131, 131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 129, 129, -1, 129, - 25, -1, 129, 129, 129, 129, 129, 129, - 131, 129, 129, 129, 129, 129, 129, 129, - 129, -1 ), + -1, -1, -1, -1, 131, 131, -1, 131, + 25, -1, 131, 131, 131, 131, 131, 131, + 133, 131, 131, 131, 131, 131, 131, 131, + 131, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1058,20 +1067,6 @@ 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, 132, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 132, 132, -1, -1, - -1, -1, 132, 132, 132, 132, 132, 132, - -1, 132, 132, 132, 132, 132, -1, 132, - 132, -1 ), - array( -1, -1, -1, 132, -1, -1, 132, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 132, 132, -1, 132, - 27, -1, 132, 132, 132, 132, 132, 132, - 133, 132, 132, 132, 132, 132, 132, 132, - 132, -1 ), array( -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1083,9 +1078,23 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, 134, -1, 134, - 28, -1, 134, 134, 134, 134, 134, 134, - -1, 134, 134, 134, 134, 134, 134, 134, + 27, -1, 134, 134, 134, 134, 134, 134, + 135, 134, 134, 134, 134, 134, 134, 134, 134, -1 ), + array( -1, -1, -1, -1, -1, -1, 136, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 136, 136, -1, -1, + -1, -1, 136, 136, 136, 136, 136, 136, + -1, 136, 136, 136, 136, 136, -1, 136, + 136, -1 ), + array( -1, -1, -1, 136, -1, -1, 136, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 136, 136, -1, 136, + 28, -1, 136, 136, 136, 136, 136, 136, + -1, 136, 136, 136, 136, 136, 136, 136, + 136, -1 ), array( 1, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, -1, -1, 29, 29, -1, -1, 29, 30, 29, @@ -1093,13 +1102,13 @@ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 ), - array( 1, 39, 39, 40, 39, -1, 175, 175, - 83, 41, 32, -1, 42, 39, 175, 39, + array( 1, 39, 39, 40, 39, -1, 176, 176, + 85, 41, 32, -1, 42, 39, 176, 39, 39, 39, 39, 39, 39, 39, 43, 44, - 39, 39, 39, 39, 175, 175, 39, 39, - 39, 39, 175, 175, 175, 175, 175, 175, - 39, 175, 175, 175, 175, 175, 40, 175, - 175, 39 ), + 39, 39, 39, 39, 176, 176, 39, 39, + 39, 39, 176, 176, 176, 176, 176, 176, + 39, 176, 176, 176, 176, 176, 40, 176, + 176, 39 ), array( 1, -1, -1, -1, -1, 45, -1, -1, -1, -1, 45, 45, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1116,8 +1125,8 @@ 46, 46 ), array( 1, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, - 48, 48, 87, 48, 141, 48, 48, 49, - 48, 48, 101, 48, 48, 48, 48, 48, + 48, 48, 89, 48, 143, 48, 48, 49, + 48, 48, 103, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), @@ -1128,33 +1137,33 @@ 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ), - array( -1, -1, -1, 142, -1, -1, 142, 142, + array( -1, -1, -1, 144, -1, -1, 144, 144, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 144, -1, 142, 142, 145, 142, - 50, 51, 142, 142, 142, 142, 142, 142, - -1, 142, 142, 142, 142, 142, 142, 142, - 142, -1 ), + -1, -1, 146, -1, 144, 144, 147, 144, + 50, 51, 144, 144, 144, 144, 144, 144, + -1, 144, 144, 144, 144, 144, 144, 144, + 144, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 177, + -1, -1, -1, -1, -1, -1, -1, 178, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 146, -1, + -1, -1, -1, -1, -1, -1, 148, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 147, -1, -1, -1, 147, - -1, -1, -1, -1, -1, 147, -1, -1, + -1, -1, -1, 149, -1, -1, -1, 149, + -1, -1, -1, -1, -1, 149, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1166,24 +1175,24 @@ array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 148, -1, -1, -1, -1, -1, + -1, -1, 150, -1, -1, -1, -1, -1, 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), array( 1, 52, 52, 53, 52, -1, 54, 55, 52, 52, 52, -1, 56, 52, 55, 57, - 52, 52, 52, 52, 52, 52, 88, 102, - 52, 52, 105, 52, 54, 54, 52, 52, + 52, 52, 52, 52, 52, 52, 90, 104, + 52, 52, 107, 52, 54, 54, 52, 52, 52, 52, 54, 54, 54, 54, 54, 54, 52, 54, 54, 54, 54, 54, 53, 54, 54, 52 ), - array( -1, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, -1, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95 ), + array( -1, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, -1, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1205,24 +1214,24 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( 1, 67, 96, 67, 67, -1, 103, 67, + array( 1, 67, 98, 67, 67, -1, 105, 67, 67, 67, 67, -1, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, - 67, 67, 67, 67, 103, 103, 67, 67, - 67, 67, 103, 103, 103, 103, 103, 103, - 67, 103, 103, 103, 103, 103, 67, 103, - 103, 106 ), + 67, 67, 67, 67, 105, 105, 67, 67, + 67, 67, 105, 105, 105, 105, 105, 105, + 67, 105, 105, 105, 105, 105, 67, 105, + 105, 108 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, - -1, 162 ), + -1, 164 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 179, -1, + -1, -1, -1, -1, -1, -1, 180, -1, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), @@ -1230,8 +1239,8 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 163, -1, -1, -1, 163, - -1, -1, -1, -1, -1, 163, -1, -1, + -1, -1, -1, 165, -1, -1, -1, 165, + -1, -1, -1, -1, -1, 165, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -1254,209 +1263,195 @@ 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ), - array( 1, -1, 166, -1, -1, -1, 167, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 167, 167, -1, -1, - -1, -1, 167, 167, 167, 167, 167, 167, - -1, 167, 167, 167, 167, 167, -1, 167, - 167, -1 ), - array( -1, 166, 168, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166 ), - array( -1, -1, -1, 167, -1, -1, 167, 167, + array( 1, -1, 168, -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 167, 167, -1, 167, - -1, -1, 167, 167, 167, 167, 167, 167, - 71, 167, 167, 167, 167, 167, 167, 167, - 167, 169 ), + -1, -1, -1, -1, 71, 71, -1, -1, + -1, -1, 71, 71, 71, 71, 71, 71, + -1, 71, 71, 71, 71, 71, -1, 71, + 71, 169 ), + array( -1, 168, 72, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 168, + 168, 168 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 170, -1, -1, -1, 171, -1, + 73, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 72, -1, -1, -1, -1, -1, -1, -1, - -1, 170 ), + -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 171, -1, -1, -1, -1, -1, - 71, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 172, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 180, -1, -1, -1, -1, -1, - 72, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 173, -1, -1, -1, 173, + -1, -1, -1, -1, -1, 173, -1, -1, -1, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 172, -1, - -1, -1 ), + -1, -1, 73, -1, -1, -1, -1, -1, + 73, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 170, -1, -1, -1, -1, -1, + 73, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 71, -1, -1, -1, -1, -1, - 71, -1 ), - array( -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1 ), + array( 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 72, -1, -1, -1, -1, -1, - 72, -1 ), - array( -1, 97, 3, 3, 3, 3, 3, 3, - 104, 3, 3, 3, 3, 3, 3, 3, - 98, 3, -1, 3, 3, 3, 3, 3, + 74, -1, -1, -1, -1, -1, -1, -1, + -1, 169 ), + array( -1, 99, 3, 3, 3, 3, 3, 3, + 106, 3, 3, 3, 3, 3, 3, 3, + 100, 3, -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 116, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 193, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 118, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 193, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 126, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), + -1, -1, -1, -1, 113, 113, 128, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 164, -1, -1, -1, 164, - -1, -1, -1, -1, -1, 164, -1, -1, + -1, -1, -1, 166, -1, -1, -1, 166, + -1, -1, -1, -1, -1, 166, -1, -1, -1, -1 ), - array( -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 173, -1, - -1, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 121, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 119, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 124, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 122, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 126, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 124, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 179, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 178, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 181, 113, 186, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 181, 111, 186, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 182, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 182, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 183, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 183, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 184, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 184, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 187, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 187, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 188, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 188, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 113, 113, + -1, 113, 113, 189, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 111, 111, - -1, 111, 111, 189, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 190, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 190, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 113, 113, 113, 191, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 111, 111, 111, 191, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 113, 192, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ), + array( -1, -1, -1, 113, -1, -1, 113, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 111, 192, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ), - array( -1, -1, -1, 111, -1, -1, 111, 111, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 111, 115, 111, - 16, 17, 194, 111, 111, 111, 111, 111, - -1, 111, 111, 111, 111, 111, 111, 111, - 111, -1 ) + -1, -1, -1, -1, 113, 113, 117, 113, + 16, 17, 194, 113, 113, 113, 113, 113, + -1, 113, 113, 113, 113, 113, 113, 113, + 113, -1 ) ); @@ -1512,7 +1507,7 @@ case 2: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 3: { @@ -1541,7 +1536,7 @@ { // <> -- empty start tag */ $this->error(0,"empty tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 7: { @@ -1568,7 +1563,7 @@ { /* </> -- empty end tag */ $this->error(0,"empty end tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 11: { @@ -1581,13 +1576,13 @@ { /* <!> */ $this->error(SGML_ERROR,"empty markup tag not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 13: { /* <![ -- marked section */ $this->error(SGML_ERROR,"marked section not handled"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 14: { @@ -1601,7 +1596,7 @@ { /* ]]> -- marked section end */ $this->error(SGML_ERROR,"unmatched marked sections end"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 16: { @@ -1622,7 +1617,7 @@ { /* </name < -- unclosed end tag */ $this->error(0,"Unclosed end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 19: { @@ -1709,13 +1704,13 @@ case 32: { $this->error(0,"ERROR: unexpected : character in tag: (".$this->yytext().") 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 33: { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 34: { @@ -1728,14 +1723,14 @@ case 35: { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 36: { $this->yybegin(IN_NETDATA); - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } @@ -1749,7 +1744,7 @@ } case 38: { - $this->attributes["/"] = null; + $this->attributes["/"] = true; $this->value = HTML_Template_Flexy_Token::factory($this->tokenName, array($this->tagName,$this->attributes), $this->yyline); @@ -1776,12 +1771,12 @@ case 41: { $this->error(0,"attribute value missing"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 42: { $this->error(0, "Tag close found where attribute value expected"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 43: { @@ -1806,7 +1801,7 @@ case 46: { $this->error(0,"extraneous character in end tag"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 47: { @@ -1861,9 +1856,9 @@ $this->value = ''; $n = $this->yytext(); if ($n{0} != "{") { - $n = substr($n,3); + $n = substr($n,2); } - $this->flexyMethod = substr($n,0,-1); + $this->flexyMethod = substr($n,1,-1); $this->flexyArgs = array(); $this->flexyMethodState = $this->yy_lexical_state; $this->yybegin(IN_FLEXYMETHODQUOTED); @@ -1872,7 +1867,7 @@ case 52: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 53: { @@ -1958,7 +1953,7 @@ case 67: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } case 68: { @@ -2004,49 +1999,53 @@ } case 71: { - $t = $this->yytext(); - if ($t{strlen($t-1)} == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } - $this->flexyArgs[] = substr($t,0,-2); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); - $this->yybegin($this->flexyMethodState); + $t = substr($this->yytext(),0,-1); + // add argument + $this->flexyArgs[] = $t; + $this->yybegin(IN_FLEXYMETHODQUOTED_END); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 72: { $t = $this->yytext(); - if ($t{ strlen($t-1) } == ",") { - // add argument - $this->flexyArgs[] = substr($t,0,-1); - return HTML_TEMPLATE_FLEXY_TOKEN_NONE; - } $this->flexyArgs[] = substr($t,0,-1); - $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); + $this->yybegin(IN_FLEXYMETHODQUOTED_END); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} +case 73: +{ + $t = $this->yytext(); + if ($p = strpos($t,':')) { + $this->flexyMethod .= substr($t,$p,2); + } + $this->attrVal[] = HTML_Template_Flexy_Token::factory('Method' , array($this->flexyMethod,$this->flexyArgs), $this->yyline); $this->yybegin($this->flexyMethodState); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } case 74: { + $this->yybegin(IN_FLEXYMETHODQUOTED); + return HTML_TEMPLATE_FLEXY_TOKEN_NONE; +} +case 76: +{ $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 75: +case 77: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 76: +case 78: { // &abc; $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 77: +case 79: { //<name -- start tag */ $this->tagName = strtoupper(trim(substr($this->yytext(),1))); @@ -2056,19 +2055,19 @@ $this->yybegin(IN_ATTR); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 78: +case 80: { // { $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 79: +case 81: { // &#abc; $this->value = HTML_Template_Flexy_Token::factory('Ref',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 80: +case 82: { /* </title> -- end tag */ $this->tagName = strtoupper(trim(substr($this->yytext(),1))); @@ -2077,32 +2076,32 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 81: +case 83: { /* <!DOCTYPE -- markup declaration */ $this->value = HTML_Template_Flexy_Token::factory('Doctype',$this->yytext(),$this->yyline); $this->yybegin(IN_MD); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 82: +case 84: { $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 83: +case 85: { // <foo^<bar> -- unclosed start tag */ $this->error(0,"Unclosed tags not supported"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 84: +case 86: { // <img src="xxx" ^ismap> -- name */ - $this->attributes[strtoupper(trim($this->yytext()))] = null; + $this->attributes[strtoupper(trim($this->yytext()))] = true; $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 85: +case 87: { // <a href = ^http://foo/> -- unquoted literal HACK */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2111,7 +2110,7 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 86: +case 88: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2119,72 +2118,72 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 87: +case 89: { //echo "GOT DATA:".$this->yytext(); $this->attrVal[] = $this->yytext(); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 88: +case 90: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 89: +case 91: { $this->value = HTML_Template_Flexy_Token::factory('Number',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 90: +case 92: { $this->value = HTML_Template_Flexy_Token::factory('Name',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 91: +case 93: { $this->value = HTML_Template_Flexy_Token::factory('NameT',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 92: +case 94: { $this->value = HTML_Template_Flexy_Token::factory('NumberT',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 93: +case 95: { $this->value = HTML_Template_Flexy_Token::factory('Literal',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 94: +case 96: { // <!doctype ^%foo;> -- parameter entity reference */ $this->value = HTML_Template_Flexy_Token::factory('EntityRef',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 95: +case 97: { // <!^--...--> -- comment */ $this->value = HTML_Template_Flexy_Token::factory('Comment',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 96: +case 98: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 98: +case 100: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 99: +case 101: { $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 100: +case 102: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); @@ -2192,45 +2191,45 @@ $this->value = ''; return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 101: +case 103: { //echo "GOT DATA:".$this->yytext(); $this->attrVal[] = $this->yytext(); return HTML_TEMPLATE_FLEXY_TOKEN_NONE; } -case 102: +case 104: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 103: +case 105: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 105: +case 107: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 106: +case 108: { $this->error(0,"ERROR: unexpected something: (".$this->yytext() .") character: 0x" . dechex(ord($this->yytext()))); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 108: +case 110: { $this->error(0, "illegal character in markup declaration"); - return HTML_TEMPLATE_FLEXY_ERROR; + return HTML_TEMPLATE_FLEXY_TOKEN_ERROR; } -case 174: +case 175: { //abcd -- data characters // { added for flexy $this->value = HTML_Template_Flexy_Token::factory('Text',$this->yytext(),$this->yyline); return HTML_TEMPLATE_FLEXY_TOKEN_OK; } -case 175: +case 176: { // <a name = ^12pt> -- number token */ $this->attributes[$this->attrKey] = trim($this->yytext()); Index: pear/HTML_Template_Flexy/Flexy/Token/If.php diff -u pear/HTML_Template_Flexy/Flexy/Token/If.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/If.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/If.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/If.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: If.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: If.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** @@ -45,7 +45,7 @@ * @see parent::toString(), $this->toVar() */ function toString() { - $ret = "<?php if(@".$this->toVar($this->condition) .") { ?>"; + $ret = "<?php if (".$this->toVar($this->condition) .") { ?>"; $this->pushState(); return $ret; Index: pear/HTML_Template_Flexy/Flexy/Token/Method.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/Method.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Method.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Method.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: Method.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** * Class to handle method calls @@ -90,6 +90,7 @@ case 'u': $prefix = 'echo urlencode('; $suffix = ')'; + break; default: $prefix = 'echo htmlspecialchars('; // add language ? Index: pear/HTML_Template_Flexy/Flexy/Token/Tag.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.5 pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.6 --- pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.5 Sun Feb 2 04:33:24 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Tag.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Tag.php,v 1.5 2003/02/02 09:33:24 alan_k Exp $ +// $Id: Tag.php,v 1.6 2003/02/02 17:04:57 alan_k Exp $ /** * A standard HTML Tag = eg. Table/Body etc. @@ -105,9 +105,21 @@ * @see parent::toString() */ function toString() { - + + global $_HTML_TEMPLATE_FLEXY_TOKEN; + + $flexyignore = $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore']; + + if ($this->getAttribute('FLEXYIGNORE')) { + + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = true; + unset($this->attributes['FLEXYIGNORE']); + } + + $method = 'parseTag'.ucfirst(strtolower($this->tag)); - if (method_exists($this,$method)) { + + if (!$_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] && method_exists($this,$method)) { $this->$method(); } @@ -122,12 +134,12 @@ $this->close->postfix = array($this->factory("End", '', $this->line)); - + unset($this->attributes['FOREACH']); } $ret .= "<". $this->tag; foreach ($this->attributes as $k=>$v) { - if ($v === null) { + if ($v === true) { $ret .= " $k"; continue; } @@ -168,6 +180,10 @@ if ($this->close) { $ret .= $this->close->toString(); } + // reset flexyignore + + $_HTML_TEMPLATE_FLEXY_TOKEN['flexyIgnore'] = $flexyignore; + return $ret; } @@ -329,6 +345,7 @@ $_HTML_TEMPLATE_FLEXY_TOKEN['activeSelect'] = $name; if ($this->getAttribute('STATIC')) { + unset($this->attributes['STATIC']); return; } @@ -370,7 +387,7 @@ $php = '<? '; - if ($this->getAttribute('SELECTED') === null) { + if ($this->getAttribute('SELECTED')) { // then it's the default.. // if no value is available for $this->the_form->the name of the tag... // just leave it allown @@ -429,11 +446,25 @@ // all attribute keys are stored Upper Case, // however just to make sure we have not done a typo :) $key = strtoupper($key); + //echo "looking for $key\n"; + //var_dump($this->attributes); + + // this is weird case isset() returns false on this being null! + + if (@$this->attributes[$key] === true) { + return true; + } if (!isset($this->attributes[$key])) { - return ''; + return; } $v = $this->attributes[$key]; + + // unlikely :) + if ($v=='') { + return $v; + } + switch($v{0}) { case "\"": case "'": Index: pear/HTML_Template_Flexy/Flexy/Token/Var.php diff -u pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.1 pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.2 --- pear/HTML_Template_Flexy/Flexy/Token/Var.php:1.1 Fri Jan 31 11:22:08 2003 +++ pear/HTML_Template_Flexy/Flexy/Token/Var.php Sun Feb 2 12:04:57 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome> | // +----------------------------------------------------------------------+ // -// $Id: Var.php,v 1.1 2003/01/31 16:22:08 alan_k Exp $ +// $Id: Var.php,v 1.2 2003/02/02 17:04:57 alan_k Exp $ // /** @@ -52,7 +52,22 @@ */ function toString() { // ignore modifier at present!! - return "<?php echo htmlspecialchars(" . $this->toVar($this->value) . "); ?>"; + $prefix = 'echo '; + $suffix = ''; + switch ($this->modifier) { + case 'h': + break; + case 'u': + $prefix = 'echo urlencode('; + $suffix = ')'; + break; + default: + $prefix = 'echo htmlspecialchars('; + // add language ? + $suffix = ')'; + } + + return "<?php {$prefix}" . $this->toVar($this->value) . "{$suffix}; ?>"; } } Index: pear/HTML_Template_Flexy/examples/example.html diff -u pear/HTML_Template_Flexy/examples/example.html:1.1 pear/HTML_Template_Flexy/examples/example.html:1.2 --- pear/HTML_Template_Flexy/examples/example.html:1.1 Thu Jan 30 12:30:19 2003 +++ pear/HTML_Template_Flexy/examples/example.html Sun Feb 2 12:04:57 2003 @@ -6,18 +6,89 @@ </head> <body> -<p>Example Template for HTML_Template_Flexy</p> -<p>Standard variables {hello} {world:h}</p> -<p>a loop {foreach:loop,a} {a} {end:}</p> +<p>Example Template for HTML_Template_Flexy</p> + +<h2>Variables</H2> + +<p>Standard variables +{hello} +{world:h} +{test:u} +<img src="%7bgetImageDir%7D/someimage.jpg"> +<img src="%7bgetImageDir:h%7D/someimage.jpg"> +<img src="%7bgetImageDir:u%7D/someimage.jpg"> + +<img src="%7bgetImageDir}/someimage.jpg"> +<img src="{getImageDir%7D/someimage.jpg"> +</p> + +<h2>Methods</H2> +<p>Calling a method {a.helloWorld()}</p> +<p>or {includeBody():h}</P> +<img src="%7bgetImageDir()%7D/someimage.jpg"> +<img src="%7bgetImageDir():h%7D/someimage.jpg"> +<img src="%7bgetImageDir():u%7D/someimage.jpg"> + +<img src="%7bgetImageDir()}/someimage.jpg"> +<img src="{getImageDir()%7D/someimage.jpg"> + +<H2>Conditions</H2> <p>a condition {if:condition} hello {else:} world {end:}</p> + + +<h2>Looping</h2> + + +<p>a loop {foreach:loop,a} {a} {end:}</p> +<p>a loop with 2 vars {foreach:loop,a,b} + {a} , + {b} +{end:}</p> + + <p>HTML tags example using foreach="loop,a" or the tr</p> <table width="100%" border="0"> <tr foreach="loop,a"> <td>a is</td> <td>{a}</td> </tr> -</table> -<p>Calling a method {a.helloWorld()}</p> +</table> + +<p>HTML tags example using foreach="loop,a,b" or the tr</p> +<table width="100%" border="0"> + <tr foreach="loop,a,b"> + <td>{a}</td> + <td>{b}</td> + </tr> +</table> + +<h2>Form Not Parsed</h2> + +<form name="test" flexyignore> + <input name=test123> + <select name="aaa"> + <option>bb</option> + </select> +</form> + +<h2>Parsed</h2> + + +<form name="test"> + <input name=test123> + <textarea name="fred">some text</textarea> + <select name="aaa"> + <option>bb</option> + </select> + <select name="aaa" flexyignore> + <option>bb</option> + </select> + <select name="aaa" static> + <option>bb</option> + </select> +</form> + + <p> </p> </body> </html>