@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - /********************************************************************* |
|
| 2 | + /********************************************************************* |
|
| 3 | 3 | * FPDF easyTable * |
| 4 | 4 | * * |
| 5 | 5 | * Version: 2.0 * |
@@ -10,584 +10,584 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class EasyTable |
| 12 | 12 | { |
| 13 | - const LP=0.4; |
|
| 14 | - const XPadding=1; |
|
| 15 | - const YPadding=1; |
|
| 16 | - const IMGPadding=0.5; |
|
| 17 | - const PBThreshold=30; |
|
| 18 | - static private $table_counter=false; |
|
| 19 | - static private $style=array('width'=>false, 'border'=>false, 'border-color'=>false, |
|
| 20 | - 'border-width'=>false, 'line-height'=>false, |
|
| 21 | - 'align'=>'', 'valign'=>'', 'bgcolor'=>false, 'split-row'=>false, 'l-margin'=>false, |
|
| 22 | - 'font-family'=>false, 'font-style'=>false,'font-size'=>false, 'font-color'=>false, |
|
| 23 | - 'paddingX'=>false, 'paddingY'=>false); |
|
| 24 | - private $pdf_obj; |
|
| 25 | - private $document_style; |
|
| 26 | - private $table_style; |
|
| 27 | - private $col_num; |
|
| 28 | - private $col_width; |
|
| 29 | - private $baseX; |
|
| 30 | - private $row_style_def; |
|
| 31 | - private $row_style; |
|
| 32 | - private $row_heights; |
|
| 33 | - private $row_data; |
|
| 34 | - private $rows; |
|
| 35 | - private $total_rowspan; |
|
| 36 | - private $col_counter; |
|
| 37 | - private $grid; |
|
| 38 | - private $blocks; |
|
| 39 | - private $overflow; |
|
| 40 | - private $header_row; |
|
| 41 | - private $new_table; |
|
| 13 | + const LP=0.4; |
|
| 14 | + const XPadding=1; |
|
| 15 | + const YPadding=1; |
|
| 16 | + const IMGPadding=0.5; |
|
| 17 | + const PBThreshold=30; |
|
| 18 | + static private $table_counter=false; |
|
| 19 | + static private $style=array('width'=>false, 'border'=>false, 'border-color'=>false, |
|
| 20 | + 'border-width'=>false, 'line-height'=>false, |
|
| 21 | + 'align'=>'', 'valign'=>'', 'bgcolor'=>false, 'split-row'=>false, 'l-margin'=>false, |
|
| 22 | + 'font-family'=>false, 'font-style'=>false,'font-size'=>false, 'font-color'=>false, |
|
| 23 | + 'paddingX'=>false, 'paddingY'=>false); |
|
| 24 | + private $pdf_obj; |
|
| 25 | + private $document_style; |
|
| 26 | + private $table_style; |
|
| 27 | + private $col_num; |
|
| 28 | + private $col_width; |
|
| 29 | + private $baseX; |
|
| 30 | + private $row_style_def; |
|
| 31 | + private $row_style; |
|
| 32 | + private $row_heights; |
|
| 33 | + private $row_data; |
|
| 34 | + private $rows; |
|
| 35 | + private $total_rowspan; |
|
| 36 | + private $col_counter; |
|
| 37 | + private $grid; |
|
| 38 | + private $blocks; |
|
| 39 | + private $overflow; |
|
| 40 | + private $header_row; |
|
| 41 | + private $new_table; |
|
| 42 | 42 | |
| 43 | - private function get_available($colspan, $rowspan){ |
|
| 44 | - static $k=0; |
|
| 45 | - if(count($this->grid)==0){ |
|
| 46 | - $k=0; |
|
| 47 | - } |
|
| 48 | - while(isset($this->grid[$k])){ |
|
| 49 | - $k++; |
|
| 50 | - } |
|
| 51 | - for($i=0; $i<=$colspan; $i++){ |
|
| 52 | - for($j=0; $j<=$rowspan; $j++){ |
|
| 43 | + private function get_available($colspan, $rowspan){ |
|
| 44 | + static $k=0; |
|
| 45 | + if(count($this->grid)==0){ |
|
| 46 | + $k=0; |
|
| 47 | + } |
|
| 48 | + while(isset($this->grid[$k])){ |
|
| 49 | + $k++; |
|
| 50 | + } |
|
| 51 | + for($i=0; $i<=$colspan; $i++){ |
|
| 52 | + for($j=0; $j<=$rowspan; $j++){ |
|
| 53 | 53 | $this->grid[$k+$i+$j*$this->col_num]=true; |
| 54 | - } |
|
| 55 | - } |
|
| 56 | - return $k; |
|
| 57 | - } |
|
| 54 | + } |
|
| 55 | + } |
|
| 56 | + return $k; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - private function get_style($str, $c){ |
|
| 60 | - $result=self::$style; |
|
| 61 | - if($c=='C'){ |
|
| 62 | - $result['colspan']=0; |
|
| 63 | - $result['rowspan']=0; |
|
| 64 | - $result['img']=false; |
|
| 65 | - } |
|
| 66 | - if($c=='C' || $c=='R'){ |
|
| 67 | - unset($result['width']); |
|
| 68 | - unset($result['border-width']); |
|
| 69 | - unset($result['split-row']); |
|
| 70 | - unset($result['l-margin']); |
|
| 71 | - } |
|
| 72 | - if($c=='R' || $c=='T'){ |
|
| 73 | - if($c=='R'){ |
|
| 59 | + private function get_style($str, $c){ |
|
| 60 | + $result=self::$style; |
|
| 61 | + if($c=='C'){ |
|
| 62 | + $result['colspan']=0; |
|
| 63 | + $result['rowspan']=0; |
|
| 64 | + $result['img']=false; |
|
| 65 | + } |
|
| 66 | + if($c=='C' || $c=='R'){ |
|
| 67 | + unset($result['width']); |
|
| 68 | + unset($result['border-width']); |
|
| 69 | + unset($result['split-row']); |
|
| 70 | + unset($result['l-margin']); |
|
| 71 | + } |
|
| 72 | + if($c=='R' || $c=='T'){ |
|
| 73 | + if($c=='R'){ |
|
| 74 | 74 | $result['c-align']=array_pad(array(), $this->col_num, 'L'); |
| 75 | - } |
|
| 76 | - else{ |
|
| 75 | + } |
|
| 76 | + else{ |
|
| 77 | 77 | $result['c-align']=array(); |
| 78 | - } |
|
| 79 | - } |
|
| 80 | - if($c=='R'){ |
|
| 81 | - $result['min-height']=false; |
|
| 82 | - } |
|
| 83 | - $tmp=explode(';', $str); |
|
| 84 | - foreach($tmp as $x){ |
|
| 85 | - if($x && strpos($x,':')>0){ |
|
| 78 | + } |
|
| 79 | + } |
|
| 80 | + if($c=='R'){ |
|
| 81 | + $result['min-height']=false; |
|
| 82 | + } |
|
| 83 | + $tmp=explode(';', $str); |
|
| 84 | + foreach($tmp as $x){ |
|
| 85 | + if($x && strpos($x,':')>0){ |
|
| 86 | 86 | $r=explode(':',$x); |
| 87 | 87 | $r[0]=trim($r[0]); |
| 88 | 88 | $r[1]=trim($r[1]); |
| 89 | 89 | if(isset($result[$r[0]])){ |
| 90 | - $result[$r[0]]=$r[1]; |
|
| 90 | + $result[$r[0]]=$r[1]; |
|
| 91 | + } |
|
| 91 | 92 | } |
| 92 | - } |
|
| 93 | - } |
|
| 94 | - return $result; |
|
| 95 | - } |
|
| 93 | + } |
|
| 94 | + return $result; |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | - private function inherating(&$sty, $setting, $c){ |
|
| 98 | - if($c=='C'){ |
|
| 99 | - $sty[$setting]=$this->row_style[$setting]; |
|
| 100 | - } |
|
| 101 | - elseif($c=='R'){ |
|
| 102 | - $sty[$setting]=$this->table_style[$setting]; |
|
| 103 | - } |
|
| 104 | - else{ |
|
| 105 | - $sty[$setting]=$this->document_style[$setting]; |
|
| 106 | - } |
|
| 107 | - } |
|
| 97 | + private function inherating(&$sty, $setting, $c){ |
|
| 98 | + if($c=='C'){ |
|
| 99 | + $sty[$setting]=$this->row_style[$setting]; |
|
| 100 | + } |
|
| 101 | + elseif($c=='R'){ |
|
| 102 | + $sty[$setting]=$this->table_style[$setting]; |
|
| 103 | + } |
|
| 104 | + else{ |
|
| 105 | + $sty[$setting]=$this->document_style[$setting]; |
|
| 106 | + } |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | 109 | |
| 110 | - private function set_style($str, $c, $pos=''){ |
|
| 111 | - $sty=$this->get_style($str, $c); |
|
| 112 | - if($c=='T'){ |
|
| 113 | - if(is_numeric($sty['width'])){ |
|
| 110 | + private function set_style($str, $c, $pos=''){ |
|
| 111 | + $sty=$this->get_style($str, $c); |
|
| 112 | + if($c=='T'){ |
|
| 113 | + if(is_numeric($sty['width'])){ |
|
| 114 | 114 | $sty['width']=min(abs($sty['width']),$this->document_style['document_width']); |
| 115 | 115 | if($sty['width']==0){ |
| 116 | - $sty['width']=$this->document_style['document_width']; |
|
| 116 | + $sty['width']=$this->document_style['document_width']; |
|
| 117 | + } |
|
| 117 | 118 | } |
| 118 | - } |
|
| 119 | - else{ |
|
| 119 | + else{ |
|
| 120 | 120 | $x=strpos($sty['width'], '%'); |
| 121 | 121 | if($x!=false){ |
| 122 | - $x=min(abs(substr($sty['width'], 0, $x)), 100); |
|
| 123 | - if($x){ |
|
| 124 | - $sty['width']=$x*$this->document_style['document_width']/100.0; |
|
| 125 | - } |
|
| 126 | - else{ |
|
| 127 | - $sty['width']=$this->document_style['document_width']; |
|
| 128 | - } |
|
| 122 | + $x=min(abs(substr($sty['width'], 0, $x)), 100); |
|
| 123 | + if($x){ |
|
| 124 | + $sty['width']=$x*$this->document_style['document_width']/100.0; |
|
| 125 | + } |
|
| 126 | + else{ |
|
| 127 | + $sty['width']=$this->document_style['document_width']; |
|
| 128 | + } |
|
| 129 | 129 | } |
| 130 | 130 | else{ |
| 131 | - $sty['width']=$this->document_style['document_width']; |
|
| 131 | + $sty['width']=$this->document_style['document_width']; |
|
| 132 | + } |
|
| 132 | 133 | } |
| 133 | - } |
|
| 134 | - if(!is_numeric($sty['l-margin'])){ |
|
| 134 | + if(!is_numeric($sty['l-margin'])){ |
|
| 135 | 135 | $sty['l-margin']=0; |
| 136 | - } |
|
| 137 | - else{ |
|
| 136 | + } |
|
| 137 | + else{ |
|
| 138 | 138 | $sty['l-margin']=abs($sty['l-margin']); |
| 139 | - } |
|
| 140 | - if(is_numeric($sty['border-width'])){ |
|
| 139 | + } |
|
| 140 | + if(is_numeric($sty['border-width'])){ |
|
| 141 | 141 | $sty['border-width']=abs($sty['border-width']); |
| 142 | - } |
|
| 143 | - else{ |
|
| 142 | + } |
|
| 143 | + else{ |
|
| 144 | 144 | $sty['border-width']=false; |
| 145 | - } |
|
| 146 | - if($sty['split-row']=='false'){ |
|
| 145 | + } |
|
| 146 | + if($sty['split-row']=='false'){ |
|
| 147 | 147 | $sty['split-row']=false; |
| 148 | - } |
|
| 149 | - elseif($sty['split-row']!==false){ |
|
| 148 | + } |
|
| 149 | + elseif($sty['split-row']!==false){ |
|
| 150 | 150 | $sty['split-row']=true; |
| 151 | - } |
|
| 152 | - } |
|
| 153 | - if($c=='R'){ |
|
| 154 | - if(!is_numeric($sty['min-height']) || $sty['min-height']<0){ |
|
| 151 | + } |
|
| 152 | + } |
|
| 153 | + if($c=='R'){ |
|
| 154 | + if(!is_numeric($sty['min-height']) || $sty['min-height']<0){ |
|
| 155 | 155 | $sty['min-height']=0; |
| 156 | - } |
|
| 157 | - } |
|
| 158 | - if(!is_numeric($sty['paddingX'])){ |
|
| 159 | - if($c=='C' || $c=='R'){ |
|
| 156 | + } |
|
| 157 | + } |
|
| 158 | + if(!is_numeric($sty['paddingX'])){ |
|
| 159 | + if($c=='C' || $c=='R'){ |
|
| 160 | 160 | $this->inherating($sty, 'paddingX', $c); |
| 161 | - } |
|
| 162 | - else{ |
|
| 161 | + } |
|
| 162 | + else{ |
|
| 163 | 163 | $sty['paddingX']=self::XPadding; |
| 164 | - } |
|
| 165 | - } |
|
| 166 | - $sty['paddingX']=abs($sty['paddingX']); |
|
| 167 | - if(!is_numeric($sty['paddingY'])){ |
|
| 168 | - if($c=='C' || $c=='R'){ |
|
| 164 | + } |
|
| 165 | + } |
|
| 166 | + $sty['paddingX']=abs($sty['paddingX']); |
|
| 167 | + if(!is_numeric($sty['paddingY'])){ |
|
| 168 | + if($c=='C' || $c=='R'){ |
|
| 169 | 169 | $this->inherating($sty, 'paddingY', $c); |
| 170 | - } |
|
| 171 | - else{ |
|
| 170 | + } |
|
| 171 | + else{ |
|
| 172 | 172 | $sty['paddingY']=self::YPadding; |
| 173 | - } |
|
| 174 | - } |
|
| 175 | - $sty['paddingY']=abs($sty['paddingY']); |
|
| 176 | - if($sty['border']===false && ($c=='C' || $c=='R')){ |
|
| 177 | - $this->inherating($sty, 'border', $c); |
|
| 178 | - } |
|
| 179 | - else{ |
|
| 180 | - $border=array('T'=>1, 'R'=>1, 'B'=>1, 'L'=>1); |
|
| 181 | - if(!(is_numeric($sty['border']) && $sty['border']==1)){ |
|
| 173 | + } |
|
| 174 | + } |
|
| 175 | + $sty['paddingY']=abs($sty['paddingY']); |
|
| 176 | + if($sty['border']===false && ($c=='C' || $c=='R')){ |
|
| 177 | + $this->inherating($sty, 'border', $c); |
|
| 178 | + } |
|
| 179 | + else{ |
|
| 180 | + $border=array('T'=>1, 'R'=>1, 'B'=>1, 'L'=>1); |
|
| 181 | + if(!(is_numeric($sty['border']) && $sty['border']==1)){ |
|
| 182 | 182 | foreach($border as $k=>$v){ |
| 183 | - $border[$k]=0; |
|
| 184 | - if(strpos($sty['border'], $k)!==false){ |
|
| 185 | - $border[$k]=1; |
|
| 186 | - } |
|
| 187 | - } |
|
| 188 | - } |
|
| 189 | - $sty['border']=$border; |
|
| 190 | - } |
|
| 191 | - $color_settings=array('bgcolor', 'font-color', 'border-color'); |
|
| 192 | - foreach($color_settings as $setting){ |
|
| 193 | - if($sty[$setting]===false || !($this->pdf_obj->is_hex($sty[$setting]) || $this->pdf_obj->is_rgb($sty[$setting]))){ |
|
| 183 | + $border[$k]=0; |
|
| 184 | + if(strpos($sty['border'], $k)!==false){ |
|
| 185 | + $border[$k]=1; |
|
| 186 | + } |
|
| 187 | + } |
|
| 188 | + } |
|
| 189 | + $sty['border']=$border; |
|
| 190 | + } |
|
| 191 | + $color_settings=array('bgcolor', 'font-color', 'border-color'); |
|
| 192 | + foreach($color_settings as $setting){ |
|
| 193 | + if($sty[$setting]===false || !($this->pdf_obj->is_hex($sty[$setting]) || $this->pdf_obj->is_rgb($sty[$setting]))){ |
|
| 194 | 194 | if($c=='C' || $c=='R'){ |
| 195 | - $this->inherating($sty, $setting, $c); |
|
| 195 | + $this->inherating($sty, $setting, $c); |
|
| 196 | 196 | } |
| 197 | 197 | elseif($setting=='font-color'){ |
| 198 | - $sty[$setting]=$this->document_style[$setting]; |
|
| 198 | + $sty[$setting]=$this->document_style[$setting]; |
|
| 199 | + } |
|
| 199 | 200 | } |
| 200 | - } |
|
| 201 | - else{ |
|
| 201 | + else{ |
|
| 202 | 202 | $sty[$setting]=$sty[$setting]; |
| 203 | - } |
|
| 204 | - } |
|
| 205 | - $font_settings=array('font-family', 'font-style', 'font-size'); |
|
| 206 | - foreach($font_settings as $setting){ |
|
| 207 | - if($sty[$setting]===false){ |
|
| 203 | + } |
|
| 204 | + } |
|
| 205 | + $font_settings=array('font-family', 'font-style', 'font-size'); |
|
| 206 | + foreach($font_settings as $setting){ |
|
| 207 | + if($sty[$setting]===false){ |
|
| 208 | 208 | $this->inherating($sty, $setting, $c); |
| 209 | - } |
|
| 210 | - } |
|
| 211 | - if(is_numeric($sty['line-height'])){ |
|
| 212 | - $sty['line-height']=self::LP*abs($sty['line-height']); |
|
| 213 | - } |
|
| 214 | - else{ |
|
| 215 | - if($c=='C' || $c=='R'){ |
|
| 209 | + } |
|
| 210 | + } |
|
| 211 | + if(is_numeric($sty['line-height'])){ |
|
| 212 | + $sty['line-height']=self::LP*abs($sty['line-height']); |
|
| 213 | + } |
|
| 214 | + else{ |
|
| 215 | + if($c=='C' || $c=='R'){ |
|
| 216 | 216 | $this->inherating($sty,'line-height', $c); |
| 217 | - } |
|
| 218 | - else{ |
|
| 217 | + } |
|
| 218 | + else{ |
|
| 219 | 219 | $sty['line-height']=self::LP; |
| 220 | - } |
|
| 221 | - } |
|
| 222 | - if($c=='C'){ |
|
| 223 | - if($sty['img']){ |
|
| 220 | + } |
|
| 221 | + } |
|
| 222 | + if($c=='C'){ |
|
| 223 | + if($sty['img']){ |
|
| 224 | 224 | $tmp=explode(',', $sty['img']); |
| 225 | 225 | if(file_exists($tmp[0])){ |
| 226 | - $sty['img']=array('path'=>'', 'h'=>0, 'w'=>0); |
|
| 227 | - $img=@ getimagesize($tmp[0]); |
|
| 228 | - $sty['img']['path']=$tmp[0]; |
|
| 229 | - for($i=1; $i<3; $i++){ |
|
| 230 | - if(isset($tmp[$i])){ |
|
| 231 | - $tmp[$i]=trim(strtolower($tmp[$i])); |
|
| 232 | - if($tmp[$i][0]=='w' || $tmp[$i][0]=='h'){ |
|
| 226 | + $sty['img']=array('path'=>'', 'h'=>0, 'w'=>0); |
|
| 227 | + $img=@ getimagesize($tmp[0]); |
|
| 228 | + $sty['img']['path']=$tmp[0]; |
|
| 229 | + for($i=1; $i<3; $i++){ |
|
| 230 | + if(isset($tmp[$i])){ |
|
| 231 | + $tmp[$i]=trim(strtolower($tmp[$i])); |
|
| 232 | + if($tmp[$i][0]=='w' || $tmp[$i][0]=='h'){ |
|
| 233 | 233 | $t=substr($tmp[$i],1); |
| 234 | 234 | if(is_numeric($t)){ |
| 235 | - $sty['img'][$tmp[$i][0]]=abs($t); |
|
| 235 | + $sty['img'][$tmp[$i][0]]=abs($t); |
|
| 236 | + } |
|
| 236 | 237 | } |
| 237 | - } |
|
| 238 | - } |
|
| 239 | - } |
|
| 240 | - $ration=$img[0]/$img[1]; |
|
| 241 | - if($sty['img']['w']+$sty['img']['h']==0){ |
|
| 242 | - $sty['img']['w']=$img[0]; |
|
| 243 | - $sty['img']['h']=$img[1]; |
|
| 244 | - } |
|
| 245 | - elseif($sty['img']['w']==0){ |
|
| 246 | - $sty['img']['w']=$sty['img']['h']*$ration; |
|
| 247 | - } |
|
| 248 | - elseif($sty['img']['h']==0){ |
|
| 249 | - $sty['img']['h']=$sty['img']['w']/$ration; |
|
| 250 | - } |
|
| 238 | + } |
|
| 239 | + } |
|
| 240 | + $ration=$img[0]/$img[1]; |
|
| 241 | + if($sty['img']['w']+$sty['img']['h']==0){ |
|
| 242 | + $sty['img']['w']=$img[0]; |
|
| 243 | + $sty['img']['h']=$img[1]; |
|
| 244 | + } |
|
| 245 | + elseif($sty['img']['w']==0){ |
|
| 246 | + $sty['img']['w']=$sty['img']['h']*$ration; |
|
| 247 | + } |
|
| 248 | + elseif($sty['img']['h']==0){ |
|
| 249 | + $sty['img']['h']=$sty['img']['w']/$ration; |
|
| 250 | + } |
|
| 251 | 251 | } |
| 252 | 252 | else{ |
| 253 | - $sty['img']='failed to open stream: file ' . $tmp[0] .' does not exist'; |
|
| 253 | + $sty['img']='failed to open stream: file ' . $tmp[0] .' does not exist'; |
|
| 254 | + } |
|
| 254 | 255 | } |
| 255 | - } |
|
| 256 | - if(is_numeric($sty['colspan']) && $sty['colspan']>0){ |
|
| 256 | + if(is_numeric($sty['colspan']) && $sty['colspan']>0){ |
|
| 257 | 257 | $sty['colspan']--; |
| 258 | - } |
|
| 259 | - else{ |
|
| 258 | + } |
|
| 259 | + else{ |
|
| 260 | 260 | $sty['colspan']=0; |
| 261 | - } |
|
| 262 | - if(is_numeric($sty['rowspan']) && $sty['rowspan']>0){ |
|
| 261 | + } |
|
| 262 | + if(is_numeric($sty['rowspan']) && $sty['rowspan']>0){ |
|
| 263 | 263 | $sty['rowspan']--; |
| 264 | - } |
|
| 265 | - else{ |
|
| 264 | + } |
|
| 265 | + else{ |
|
| 266 | 266 | $sty['rowspan']=0; |
| 267 | - } |
|
| 268 | - if($sty['valign']==false && ($sty['rowspan']>0 || $sty['img']!==false)){ |
|
| 267 | + } |
|
| 268 | + if($sty['valign']==false && ($sty['rowspan']>0 || $sty['img']!==false)){ |
|
| 269 | 269 | $sty['valign']='M'; |
| 270 | - } |
|
| 271 | - if($sty['align']==false && $sty['img']!==false){ |
|
| 270 | + } |
|
| 271 | + if($sty['align']==false && $sty['img']!==false){ |
|
| 272 | 272 | $sty['align']='C'; |
| 273 | - } |
|
| 274 | - } |
|
| 275 | - if($c=='T' || $c=='R'){ |
|
| 276 | - $tmp=explode('{',$sty['align']); |
|
| 277 | - if($c=='T'){ |
|
| 273 | + } |
|
| 274 | + } |
|
| 275 | + if($c=='T' || $c=='R'){ |
|
| 276 | + $tmp=explode('{',$sty['align']); |
|
| 277 | + if($c=='T'){ |
|
| 278 | 278 | $sty['align']=trim($tmp[0]); |
| 279 | - } |
|
| 280 | - if(isset($tmp[1])){ |
|
| 279 | + } |
|
| 280 | + if(isset($tmp[1])){ |
|
| 281 | 281 | $tmp[1]=trim($tmp[1], '}'); |
| 282 | 282 | if(strlen($tmp[1])){ |
| 283 | - for($i=0; $i<strlen($tmp[1]); $i++){ |
|
| 284 | - if(preg_match("/[LCRJ]/", $tmp[1][$i])!=0){ |
|
| 285 | - $sty['c-align'][$i]=$tmp[1][$i]; |
|
| 286 | - } |
|
| 287 | - else{ |
|
| 288 | - $sty['c-align'][$i]='L'; |
|
| 289 | - } |
|
| 290 | - } |
|
| 283 | + for($i=0; $i<strlen($tmp[1]); $i++){ |
|
| 284 | + if(preg_match("/[LCRJ]/", $tmp[1][$i])!=0){ |
|
| 285 | + $sty['c-align'][$i]=$tmp[1][$i]; |
|
| 286 | + } |
|
| 287 | + else{ |
|
| 288 | + $sty['c-align'][$i]='L'; |
|
| 289 | + } |
|
| 290 | + } |
|
| 291 | 291 | } |
| 292 | 292 | if($c=='R'){ |
| 293 | - $sty['align']='L'; |
|
| 294 | - $sty['c-align']=array_slice($sty['c-align'],0,$this->col_num); |
|
| 293 | + $sty['align']='L'; |
|
| 294 | + $sty['c-align']=array_slice($sty['c-align'],0,$this->col_num); |
|
| 295 | 295 | } |
| 296 | - } |
|
| 297 | - } |
|
| 298 | - if($sty['align']!='L' && $sty['align']!='C' && $sty['align']!='R' && $sty['align']!='J'){ |
|
| 299 | - if($c=='C'){ |
|
| 296 | + } |
|
| 297 | + } |
|
| 298 | + if($sty['align']!='L' && $sty['align']!='C' && $sty['align']!='R' && $sty['align']!='J'){ |
|
| 299 | + if($c=='C'){ |
|
| 300 | 300 | $sty['align']=$this->row_style['c-align'][$pos]; |
| 301 | - } |
|
| 302 | - elseif($c=='R'){ |
|
| 301 | + } |
|
| 302 | + elseif($c=='R'){ |
|
| 303 | 303 | $sty['align']='L'; |
| 304 | 304 | $sty['c-align']=$this->table_style['c-align']; |
| 305 | - } |
|
| 306 | - else{ |
|
| 305 | + } |
|
| 306 | + else{ |
|
| 307 | + $sty['align']='C'; |
|
| 308 | + } |
|
| 309 | + } |
|
| 310 | + elseif($c=='T' && $sty['align']=='J'){ |
|
| 307 | 311 | $sty['align']='C'; |
| 308 | - } |
|
| 309 | - } |
|
| 310 | - elseif($c=='T' && $sty['align']=='J'){ |
|
| 311 | - $sty['align']='C'; |
|
| 312 | - } |
|
| 313 | - if($sty['valign']!='T' && $sty['valign']!='M' && $sty['valign']!='B'){ |
|
| 314 | - if($c=='C' || $c=='R'){ |
|
| 312 | + } |
|
| 313 | + if($sty['valign']!='T' && $sty['valign']!='M' && $sty['valign']!='B'){ |
|
| 314 | + if($c=='C' || $c=='R'){ |
|
| 315 | 315 | $this->inherating($sty, 'valign', $c); |
| 316 | - } |
|
| 317 | - else{ |
|
| 316 | + } |
|
| 317 | + else{ |
|
| 318 | 318 | $sty['valign']='T'; |
| 319 | - } |
|
| 320 | - } |
|
| 321 | - return $sty; |
|
| 322 | - } |
|
| 319 | + } |
|
| 320 | + } |
|
| 321 | + return $sty; |
|
| 322 | + } |
|
| 323 | 323 | |
| 324 | - private function row_content_loop($counter, $f){ |
|
| 325 | - $t=0; |
|
| 326 | - if($counter>0){ |
|
| 327 | - $t=$this->rows[$counter-1]; |
|
| 328 | - } |
|
| 329 | - for($index=$t; $index<$this->rows[$counter]; $index++){ |
|
| 330 | - $f($index); |
|
| 331 | - } |
|
| 332 | - } |
|
| 324 | + private function row_content_loop($counter, $f){ |
|
| 325 | + $t=0; |
|
| 326 | + if($counter>0){ |
|
| 327 | + $t=$this->rows[$counter-1]; |
|
| 328 | + } |
|
| 329 | + for($index=$t; $index<$this->rows[$counter]; $index++){ |
|
| 330 | + $f($index); |
|
| 331 | + } |
|
| 332 | + } |
|
| 333 | 333 | |
| 334 | - private function mk_border($i, $y, $split){ |
|
| 335 | - $w=$this->row_data[$i][2]; |
|
| 336 | - $h=$this->row_data[$i][5]; |
|
| 337 | - if($split){ |
|
| 338 | - $h=$this->pdf_obj->PageBreak()-$y; |
|
| 339 | - } |
|
| 340 | - if($this->row_data[$i][1]['border-color']!=false){ |
|
| 341 | - $this->pdf_obj->resetColor($this->row_data[$i][1]['border-color'], 'D'); |
|
| 342 | - } |
|
| 343 | - $a=array(1, 1, 1, 0); |
|
| 344 | - $borders=array('L'=>3, 'T'=>0, 'R'=>1, 'B'=>2); |
|
| 345 | - foreach($borders as $border=>$j){ |
|
| 346 | - if($this->row_data[$i][1]['border'][$border]){ |
|
| 334 | + private function mk_border($i, $y, $split){ |
|
| 335 | + $w=$this->row_data[$i][2]; |
|
| 336 | + $h=$this->row_data[$i][5]; |
|
| 337 | + if($split){ |
|
| 338 | + $h=$this->pdf_obj->PageBreak()-$y; |
|
| 339 | + } |
|
| 340 | + if($this->row_data[$i][1]['border-color']!=false){ |
|
| 341 | + $this->pdf_obj->resetColor($this->row_data[$i][1]['border-color'], 'D'); |
|
| 342 | + } |
|
| 343 | + $a=array(1, 1, 1, 0); |
|
| 344 | + $borders=array('L'=>3, 'T'=>0, 'R'=>1, 'B'=>2); |
|
| 345 | + foreach($borders as $border=>$j){ |
|
| 346 | + if($this->row_data[$i][1]['border'][$border]){ |
|
| 347 | 347 | if($border=='B'){ |
| 348 | - if($split==0){ |
|
| 349 | - $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 350 | - } |
|
| 348 | + if($split==0){ |
|
| 349 | + $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 350 | + } |
|
| 351 | 351 | } |
| 352 | 352 | else{ |
| 353 | - $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 353 | + $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 354 | 354 | } |
| 355 | - } |
|
| 356 | - } |
|
| 355 | + } |
|
| 356 | + } |
|
| 357 | 357 | |
| 358 | - if($this->row_data[$i][1]['border-color']!=false){ |
|
| 359 | - $this->pdf_obj->resetColor($this->document_style['bgcolor'], 'D'); |
|
| 360 | - } |
|
| 361 | - if($split){ |
|
| 362 | - $this->pdf_obj->row_data[$i][1]['border']['T']=0; |
|
| 363 | - } |
|
| 364 | - } |
|
| 358 | + if($this->row_data[$i][1]['border-color']!=false){ |
|
| 359 | + $this->pdf_obj->resetColor($this->document_style['bgcolor'], 'D'); |
|
| 360 | + } |
|
| 361 | + if($split){ |
|
| 362 | + $this->pdf_obj->row_data[$i][1]['border']['T']=0; |
|
| 363 | + } |
|
| 364 | + } |
|
| 365 | 365 | |
| 366 | - private function print_text($i, $y, $split){ |
|
| 367 | - $padding=$this->row_data[$i][1]['padding-y']; |
|
| 368 | - $k=$padding; |
|
| 369 | - if($this->row_data[$i][1]['img']!==false){ |
|
| 370 | - if($this->row_data[$i][1]['valign']=='B'){ |
|
| 366 | + private function print_text($i, $y, $split){ |
|
| 367 | + $padding=$this->row_data[$i][1]['padding-y']; |
|
| 368 | + $k=$padding; |
|
| 369 | + if($this->row_data[$i][1]['img']!==false){ |
|
| 370 | + if($this->row_data[$i][1]['valign']=='B'){ |
|
| 371 | 371 | $k+=$this->row_data[$i][1]['img']['h']+self::IMGPadding; |
| 372 | - } |
|
| 373 | - } |
|
| 374 | - $l=0; |
|
| 375 | - if(count($this->row_data[$i][0])){ |
|
| 376 | - $x=$this->row_data[$i][6]+$this->row_data[$i][1]['paddingX']; |
|
| 377 | - $xpadding=2*$this->row_data[$i][1]['paddingX']; |
|
| 378 | - $l=count($this->row_data[$i][0])* $this->row_data[$i][1]['line-height']*$this->row_data[$i][1]['font-size']; |
|
| 379 | - $this->pdf_obj->SetXY($x, $y+$k); |
|
| 380 | - $this->pdf_obj->CellBlock($this->row_data[$i][2]-$xpadding, $this->row_data[$i][1]['line-height'], $this->row_data[$i][0], $this->row_data[$i][1]['align']); |
|
| 381 | - $this->pdf_obj->resetFont($this->document_style['font-family'], $this->document_style['font-style'], $this->document_style['font-size']); |
|
| 382 | - $this->pdf_obj->resetColor($this->document_style['font-color'], 'T'); |
|
| 383 | - } |
|
| 384 | - if($this->row_data[$i][1]['img']!==false ){ |
|
| 385 | - $x=$this->row_data[$i][6]; |
|
| 386 | - $k=$padding; |
|
| 387 | - if($this->row_data[$i][1]['valign']!='B'){ |
|
| 372 | + } |
|
| 373 | + } |
|
| 374 | + $l=0; |
|
| 375 | + if(count($this->row_data[$i][0])){ |
|
| 376 | + $x=$this->row_data[$i][6]+$this->row_data[$i][1]['paddingX']; |
|
| 377 | + $xpadding=2*$this->row_data[$i][1]['paddingX']; |
|
| 378 | + $l=count($this->row_data[$i][0])* $this->row_data[$i][1]['line-height']*$this->row_data[$i][1]['font-size']; |
|
| 379 | + $this->pdf_obj->SetXY($x, $y+$k); |
|
| 380 | + $this->pdf_obj->CellBlock($this->row_data[$i][2]-$xpadding, $this->row_data[$i][1]['line-height'], $this->row_data[$i][0], $this->row_data[$i][1]['align']); |
|
| 381 | + $this->pdf_obj->resetFont($this->document_style['font-family'], $this->document_style['font-style'], $this->document_style['font-size']); |
|
| 382 | + $this->pdf_obj->resetColor($this->document_style['font-color'], 'T'); |
|
| 383 | + } |
|
| 384 | + if($this->row_data[$i][1]['img']!==false ){ |
|
| 385 | + $x=$this->row_data[$i][6]; |
|
| 386 | + $k=$padding; |
|
| 387 | + if($this->row_data[$i][1]['valign']!='B'){ |
|
| 388 | 388 | $k+=$l+self::IMGPadding; |
| 389 | - } |
|
| 390 | - if($this->imgbreak($i, $y)==0 && $y+$k+$this->row_data[$i][1]['img']['h']<$this->pdf_obj->PageBreak()){ |
|
| 389 | + } |
|
| 390 | + if($this->imgbreak($i, $y)==0 && $y+$k+$this->row_data[$i][1]['img']['h']<$this->pdf_obj->PageBreak()){ |
|
| 391 | 391 | $x+=$this->row_data[$i][1]['paddingX']; |
| 392 | 392 | if($this->row_data[$i][2]>$this->row_data[$i][1]['img']['w']){ |
| 393 | - if($this->row_data[$i][1]['align']=='C'){ |
|
| 394 | - $x-=$this->row_data[$i][1]['paddingX']; |
|
| 395 | - $x+=($this->row_data[$i][2]-$this->row_data[$i][1]['img']['w'])/2; |
|
| 396 | - } |
|
| 397 | - elseif($this->row_data[$i][1]['align']=='R'){ |
|
| 398 | - $x+=$this->row_data[$i][2]-$this->row_data[$i][1]['img']['w']; |
|
| 399 | - $x-=2*$this->row_data[$i][1]['paddingX']; |
|
| 400 | - } |
|
| 393 | + if($this->row_data[$i][1]['align']=='C'){ |
|
| 394 | + $x-=$this->row_data[$i][1]['paddingX']; |
|
| 395 | + $x+=($this->row_data[$i][2]-$this->row_data[$i][1]['img']['w'])/2; |
|
| 396 | + } |
|
| 397 | + elseif($this->row_data[$i][1]['align']=='R'){ |
|
| 398 | + $x+=$this->row_data[$i][2]-$this->row_data[$i][1]['img']['w']; |
|
| 399 | + $x-=2*$this->row_data[$i][1]['paddingX']; |
|
| 400 | + } |
|
| 401 | 401 | } |
| 402 | 402 | $this->pdf_obj->Image($this->row_data[$i][1]['img']['path'], $x, $y+$k, $this->row_data[$i][1]['img']['w'], $this->row_data[$i][1]['img']['h']); |
| 403 | - } |
|
| 404 | - } |
|
| 405 | - } |
|
| 403 | + } |
|
| 404 | + } |
|
| 405 | + } |
|
| 406 | 406 | |
| 407 | 407 | |
| 408 | - private function mk_bg($i, $T, $split){ |
|
| 409 | - $h=$this->row_data[$i][5]; |
|
| 410 | - if($split){ |
|
| 411 | - $h=$this->pdf_obj->PageBreak()-$T; |
|
| 412 | - } |
|
| 413 | - if($this->row_data[$i][1]['bgcolor']!=false){ |
|
| 414 | - $this->pdf_obj->resetColor($this->row_data[$i][1]['bgcolor']); |
|
| 415 | - $this->pdf_obj->Rect($this->row_data[$i][6], $T, $this->row_data[$i][2], $h, 'F'); |
|
| 416 | - $this->pdf_obj->resetColor($this->document_style['bgcolor']); |
|
| 417 | - } |
|
| 418 | - } |
|
| 408 | + private function mk_bg($i, $T, $split){ |
|
| 409 | + $h=$this->row_data[$i][5]; |
|
| 410 | + if($split){ |
|
| 411 | + $h=$this->pdf_obj->PageBreak()-$T; |
|
| 412 | + } |
|
| 413 | + if($this->row_data[$i][1]['bgcolor']!=false){ |
|
| 414 | + $this->pdf_obj->resetColor($this->row_data[$i][1]['bgcolor']); |
|
| 415 | + $this->pdf_obj->Rect($this->row_data[$i][6], $T, $this->row_data[$i][2], $h, 'F'); |
|
| 416 | + $this->pdf_obj->resetColor($this->document_style['bgcolor']); |
|
| 417 | + } |
|
| 418 | + } |
|
| 419 | 419 | |
| 420 | - private function printing_loop($swap=false){ |
|
| 421 | - $this->swap_data($swap); |
|
| 422 | - $y=$this->pdf_obj->GetY(); |
|
| 423 | - $tmp=array(); |
|
| 424 | - $rw=array(); |
|
| 425 | - $ztmp=array(); |
|
| 426 | - $total_cells=count($this->row_data); |
|
| 427 | - while(count($tmp)!=$total_cells){ |
|
| 428 | - $a=count($this->rows); |
|
| 429 | - $h=0; |
|
| 430 | - $y=$this->pdf_obj->GetY(); |
|
| 431 | - for($j=0; $j<count($this->rows); $j++){ |
|
| 420 | + private function printing_loop($swap=false){ |
|
| 421 | + $this->swap_data($swap); |
|
| 422 | + $y=$this->pdf_obj->GetY(); |
|
| 423 | + $tmp=array(); |
|
| 424 | + $rw=array(); |
|
| 425 | + $ztmp=array(); |
|
| 426 | + $total_cells=count($this->row_data); |
|
| 427 | + while(count($tmp)!=$total_cells){ |
|
| 428 | + $a=count($this->rows); |
|
| 429 | + $h=0; |
|
| 430 | + $y=$this->pdf_obj->GetY(); |
|
| 431 | + for($j=0; $j<count($this->rows); $j++){ |
|
| 432 | 432 | $T=$y+$h; |
| 433 | 433 | if($T<$this->pdf_obj->PageBreak()){ |
| 434 | 434 | |
| 435 | - $this->row_content_loop($j, function($index)use($T, $tmp){ |
|
| 436 | - if(!isset($tmp[$index])){ |
|
| 437 | - $split_cell=$this->scan_for_breaks($index,$T, false); |
|
| 438 | - $this->mk_bg($index, $T, $split_cell); |
|
| 439 | - } |
|
| 440 | - }); |
|
| 441 | - if(!isset($rw[$j])){ |
|
| 442 | - if($this->pdf_obj->PageBreak()-($T+$this->row_heights[$j])>=0){ |
|
| 443 | - $h+=$this->row_heights[$j]; |
|
| 444 | - } |
|
| 445 | - else{ |
|
| 446 | - $a=$j+1; |
|
| 447 | - break; |
|
| 448 | - } |
|
| 449 | - } |
|
| 435 | + $this->row_content_loop($j, function($index)use($T, $tmp){ |
|
| 436 | + if(!isset($tmp[$index])){ |
|
| 437 | + $split_cell=$this->scan_for_breaks($index,$T, false); |
|
| 438 | + $this->mk_bg($index, $T, $split_cell); |
|
| 439 | + } |
|
| 440 | + }); |
|
| 441 | + if(!isset($rw[$j])){ |
|
| 442 | + if($this->pdf_obj->PageBreak()-($T+$this->row_heights[$j])>=0){ |
|
| 443 | + $h+=$this->row_heights[$j]; |
|
| 444 | + } |
|
| 445 | + else{ |
|
| 446 | + $a=$j+1; |
|
| 447 | + break; |
|
| 448 | + } |
|
| 449 | + } |
|
| 450 | 450 | } |
| 451 | 451 | else{ |
| 452 | - $a=$j+1; |
|
| 453 | - break; |
|
| 452 | + $a=$j+1; |
|
| 453 | + break; |
|
| 454 | + } |
|
| 454 | 455 | } |
| 455 | - } |
|
| 456 | - $h=0; |
|
| 457 | - for($j=0; $j<$a; $j++){ |
|
| 456 | + $h=0; |
|
| 457 | + for($j=0; $j<$a; $j++){ |
|
| 458 | 458 | $T=$y+$h; |
| 459 | 459 | if($T<$this->pdf_obj->PageBreak()){ |
| 460 | 460 | |
| 461 | - $this->row_content_loop($j, function($index)use($T, &$tmp, &$ztmp){ |
|
| 462 | - if(!isset($tmp[$index])){ |
|
| 463 | - $split_cell=$this->scan_for_breaks($index,$T); |
|
| 464 | - $this->mk_border($index, $T, $split_cell); |
|
| 465 | - $this->print_text($index, $T, $split_cell); |
|
| 466 | - if($split_cell==0){ |
|
| 461 | + $this->row_content_loop($j, function($index)use($T, &$tmp, &$ztmp){ |
|
| 462 | + if(!isset($tmp[$index])){ |
|
| 463 | + $split_cell=$this->scan_for_breaks($index,$T); |
|
| 464 | + $this->mk_border($index, $T, $split_cell); |
|
| 465 | + $this->print_text($index, $T, $split_cell); |
|
| 466 | + if($split_cell==0){ |
|
| 467 | 467 | $tmp[$index]=$index; |
| 468 | - } |
|
| 469 | - else{ |
|
| 468 | + } |
|
| 469 | + else{ |
|
| 470 | 470 | $ztmp[]=$index; |
| 471 | - } |
|
| 472 | - } |
|
| 473 | - }); |
|
| 474 | - if(!isset($rw[$j])){ |
|
| 475 | - $tw=$this->pdf_obj->PageBreak()-($T+$this->row_heights[$j]); |
|
| 476 | - if($tw>=0){ |
|
| 477 | - $h+=$this->row_heights[$j]; |
|
| 478 | - $rw[$j]=$j; |
|
| 479 | - } |
|
| 480 | - else{ |
|
| 481 | - $this->row_heights[$j]=$this->overflow-$tw; |
|
| 482 | - } |
|
| 483 | - } |
|
| 484 | - } |
|
| 485 | - } |
|
| 486 | - if(count($tmp)!=$total_cells){ |
|
| 471 | + } |
|
| 472 | + } |
|
| 473 | + }); |
|
| 474 | + if(!isset($rw[$j])){ |
|
| 475 | + $tw=$this->pdf_obj->PageBreak()-($T+$this->row_heights[$j]); |
|
| 476 | + if($tw>=0){ |
|
| 477 | + $h+=$this->row_heights[$j]; |
|
| 478 | + $rw[$j]=$j; |
|
| 479 | + } |
|
| 480 | + else{ |
|
| 481 | + $this->row_heights[$j]=$this->overflow-$tw; |
|
| 482 | + } |
|
| 483 | + } |
|
| 484 | + } |
|
| 485 | + } |
|
| 486 | + if(count($tmp)!=$total_cells){ |
|
| 487 | 487 | foreach($ztmp as $index){ |
| 488 | - $this->row_data[$index][5]=$this->row_data[$index][7]+$this->overflow; |
|
| 489 | - if(isset($this->row_data[$index][8])){ |
|
| 490 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][8]; |
|
| 491 | - unset($this->row_data[$index][8]); |
|
| 492 | - } |
|
| 488 | + $this->row_data[$index][5]=$this->row_data[$index][7]+$this->overflow; |
|
| 489 | + if(isset($this->row_data[$index][8])){ |
|
| 490 | + $this->row_data[$index][1]['padding-y']=$this->row_data[$index][8]; |
|
| 491 | + unset($this->row_data[$index][8]); |
|
| 492 | + } |
|
| 493 | 493 | } |
| 494 | 494 | $this->overflow=0; |
| 495 | 495 | $ztmp=array(); |
| 496 | 496 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 497 | - } |
|
| 498 | - else{ |
|
| 497 | + } |
|
| 498 | + else{ |
|
| 499 | 499 | $y+=$h; |
| 500 | - } |
|
| 501 | - } |
|
| 502 | - $this->pdf_obj->SetXY($this->baseX, $y); |
|
| 503 | - $this->swap_data($swap); |
|
| 504 | - } |
|
| 500 | + } |
|
| 501 | + } |
|
| 502 | + $this->pdf_obj->SetXY($this->baseX, $y); |
|
| 503 | + $this->swap_data($swap); |
|
| 504 | + } |
|
| 505 | 505 | |
| 506 | - private function imgbreak($i, $y){ |
|
| 507 | - $li=$y+$this->row_data[$i][1]['padding-y']; |
|
| 508 | - $ls=$this->row_data[$i][1]['img']['h']; |
|
| 509 | - if($this->row_data[$i][1]['valign']=='B'){ |
|
| 510 | - $ls+=$li; |
|
| 511 | - } |
|
| 512 | - else{ |
|
| 513 | - $li+=$this->row_data[$i][3]-$this->row_data[$i][1]['img']['h']; |
|
| 514 | - $ls+=$li; |
|
| 515 | - } |
|
| 516 | - $result=0; |
|
| 517 | - if($li<$this->pdf_obj->PageBreak() && $this->pdf_obj->PageBreak()<$ls){ |
|
| 518 | - $result=$this->pdf_obj->PageBreak()-$li; |
|
| 519 | - } |
|
| 520 | - return $result; |
|
| 521 | - } |
|
| 506 | + private function imgbreak($i, $y){ |
|
| 507 | + $li=$y+$this->row_data[$i][1]['padding-y']; |
|
| 508 | + $ls=$this->row_data[$i][1]['img']['h']; |
|
| 509 | + if($this->row_data[$i][1]['valign']=='B'){ |
|
| 510 | + $ls+=$li; |
|
| 511 | + } |
|
| 512 | + else{ |
|
| 513 | + $li+=$this->row_data[$i][3]-$this->row_data[$i][1]['img']['h']; |
|
| 514 | + $ls+=$li; |
|
| 515 | + } |
|
| 516 | + $result=0; |
|
| 517 | + if($li<$this->pdf_obj->PageBreak() && $this->pdf_obj->PageBreak()<$ls){ |
|
| 518 | + $result=$this->pdf_obj->PageBreak()-$li; |
|
| 519 | + } |
|
| 520 | + return $result; |
|
| 521 | + } |
|
| 522 | 522 | |
| 523 | - private function scan_for_breaks($index, $H, $l=true){ |
|
| 524 | - $print_cell=0; |
|
| 525 | - $h=($H+$this->row_data[$index][5])-$this->pdf_obj->PageBreak(); |
|
| 526 | - if($h>0){ |
|
| 527 | - if($l){ |
|
| 523 | + private function scan_for_breaks($index, $H, $l=true){ |
|
| 524 | + $print_cell=0; |
|
| 525 | + $h=($H+$this->row_data[$index][5])-$this->pdf_obj->PageBreak(); |
|
| 526 | + if($h>0){ |
|
| 527 | + if($l){ |
|
| 528 | 528 | $rr=$this->pdf_obj->PageBreak()-($H+$this->row_data[$index][1]['padding-y']); |
| 529 | 529 | if($rr>0){ |
| 530 | - $mx=0; |
|
| 531 | - if(count($this->row_data[$index][0]) && $this->row_data[$index][1]['img']!==false){ |
|
| 532 | - $mx=$this->imgbreak($index, $H); |
|
| 533 | - if($mx==0){ |
|
| 534 | - if($this->row_data[$index][1]['valign']=='B'){ |
|
| 530 | + $mx=0; |
|
| 531 | + if(count($this->row_data[$index][0]) && $this->row_data[$index][1]['img']!==false){ |
|
| 532 | + $mx=$this->imgbreak($index, $H); |
|
| 533 | + if($mx==0){ |
|
| 534 | + if($this->row_data[$index][1]['valign']=='B'){ |
|
| 535 | 535 | $rr-=$this->row_data[$index][1]['img']['h']; |
| 536 | - } |
|
| 537 | - } |
|
| 538 | - } |
|
| 539 | - $nh=0; |
|
| 540 | - $keys=array_keys($this->row_data[$index][0]); |
|
| 541 | - foreach($keys as $i){ |
|
| 542 | - $nh+=$this->row_data[$index][0][$i]['height']; |
|
| 543 | - } |
|
| 544 | - $nh*=$this->row_data[$index][1]['line-height']; |
|
| 545 | - if($mx==0 && $rr<$nh){ |
|
| 546 | - $nw=0; |
|
| 547 | - foreach($keys as $i){ |
|
| 548 | - $nw+=$this->row_data[$index][0][$i]['height']*$this->row_data[$index][1]['line-height']; |
|
| 549 | - if($nw>$rr){ |
|
| 536 | + } |
|
| 537 | + } |
|
| 538 | + } |
|
| 539 | + $nh=0; |
|
| 540 | + $keys=array_keys($this->row_data[$index][0]); |
|
| 541 | + foreach($keys as $i){ |
|
| 542 | + $nh+=$this->row_data[$index][0][$i]['height']; |
|
| 543 | + } |
|
| 544 | + $nh*=$this->row_data[$index][1]['line-height']; |
|
| 545 | + if($mx==0 && $rr<$nh){ |
|
| 546 | + $nw=0; |
|
| 547 | + foreach($keys as $i){ |
|
| 548 | + $nw+=$this->row_data[$index][0][$i]['height']*$this->row_data[$index][1]['line-height']; |
|
| 549 | + if($nw>$rr){ |
|
| 550 | 550 | $nw-=$this->row_data[$index][0][$i]['height']*$this->row_data[$index][1]['line-height']; |
| 551 | 551 | $mx=$rr-$nw; |
| 552 | 552 | break; |
| 553 | - } |
|
| 554 | - } |
|
| 555 | - } |
|
| 556 | - $this->overflow=max($this->overflow, $mx); |
|
| 557 | - $this->row_data[$index][8]=1; |
|
| 553 | + } |
|
| 554 | + } |
|
| 555 | + } |
|
| 556 | + $this->overflow=max($this->overflow, $mx); |
|
| 557 | + $this->row_data[$index][8]=1; |
|
| 558 | 558 | } |
| 559 | 559 | else{ |
| 560 | - $this->row_data[$index][8]=-1*$rr; |
|
| 560 | + $this->row_data[$index][8]=-1*$rr; |
|
| 561 | 561 | } |
| 562 | 562 | $this->row_data[$index][7]=$h; |
| 563 | - } |
|
| 564 | - $print_cell=1; |
|
| 565 | - } |
|
| 566 | - return $print_cell; |
|
| 567 | - } |
|
| 563 | + } |
|
| 564 | + $print_cell=1; |
|
| 565 | + } |
|
| 566 | + return $print_cell; |
|
| 567 | + } |
|
| 568 | 568 | |
| 569 | - private function swap_data($swap){ |
|
| 570 | - if($swap==false){ |
|
| 571 | - return; |
|
| 572 | - } |
|
| 573 | - static $data=array(); |
|
| 574 | - if(count($data)==0){ |
|
| 575 | - $data=array('header_data'=>$this->header_row['row_data'], 'row_heights'=>&$this->row_heights, 'row_data'=>&$this->row_data, 'rows'=>&$this->rows); |
|
| 576 | - unset($this->row_heights, $this->row_data, $this->rows); |
|
| 577 | - $this->row_heights=&$this->header_row['row_heights']; |
|
| 578 | - $this->row_data=&$this->header_row['row_data']; |
|
| 579 | - $this->rows=&$this->header_row['rows']; |
|
| 580 | - } |
|
| 581 | - else{ |
|
| 582 | - $this->header_row['row_data']=$data['header_data']; |
|
| 583 | - unset($this->row_heights, $this->row_data, $this->rows); |
|
| 584 | - $this->row_heights=$data['row_heights']; |
|
| 585 | - $this->row_data=$data['row_data']; |
|
| 586 | - $this->rows=$data['rows']; |
|
| 587 | - $data=array(); |
|
| 588 | - } |
|
| 589 | - } |
|
| 590 | - /******************************************************************** |
|
| 569 | + private function swap_data($swap){ |
|
| 570 | + if($swap==false){ |
|
| 571 | + return; |
|
| 572 | + } |
|
| 573 | + static $data=array(); |
|
| 574 | + if(count($data)==0){ |
|
| 575 | + $data=array('header_data'=>$this->header_row['row_data'], 'row_heights'=>&$this->row_heights, 'row_data'=>&$this->row_data, 'rows'=>&$this->rows); |
|
| 576 | + unset($this->row_heights, $this->row_data, $this->rows); |
|
| 577 | + $this->row_heights=&$this->header_row['row_heights']; |
|
| 578 | + $this->row_data=&$this->header_row['row_data']; |
|
| 579 | + $this->rows=&$this->header_row['rows']; |
|
| 580 | + } |
|
| 581 | + else{ |
|
| 582 | + $this->header_row['row_data']=$data['header_data']; |
|
| 583 | + unset($this->row_heights, $this->row_data, $this->rows); |
|
| 584 | + $this->row_heights=$data['row_heights']; |
|
| 585 | + $this->row_data=$data['row_data']; |
|
| 586 | + $this->rows=$data['rows']; |
|
| 587 | + $data=array(); |
|
| 588 | + } |
|
| 589 | + } |
|
| 590 | + /******************************************************************** |
|
| 591 | 591 | |
| 592 | 592 | function __construct( FPDF-object $fpdf_obj, Mix $num_cols[, string $style = '' ]) |
| 593 | 593 | ----------------------------------------------------- |
@@ -628,110 +628,110 @@ discard block |
||
| 628 | 628 | An easyTable object |
| 629 | 629 | ***********************************************************************/ |
| 630 | 630 | |
| 631 | - public function __construct($fpdf_obj, $num_cols, $style=''){ |
|
| 632 | - if(self::$table_counter){ |
|
| 633 | - error_log('Please use the end_table method to terminate the last table'); |
|
| 634 | - exit(); |
|
| 635 | - } |
|
| 636 | - self::$table_counter=true; |
|
| 637 | - $this->pdf_obj=&$fpdf_obj; |
|
| 638 | - $this->document_style['bgcolor']=$this->pdf_obj->get_color('fill'); |
|
| 639 | - $this->document_style['font-family']=$this->pdf_obj->current_font('family'); |
|
| 640 | - $this->document_style['font-style']=$this->pdf_obj->current_font('style'); |
|
| 641 | - $this->document_style['font-size']=$this->pdf_obj->current_font('size'); |
|
| 642 | - $this->document_style['font-color']=$this->pdf_obj->get_color('text'); |
|
| 643 | - $this->document_style['document_width']=$this->pdf_obj->GetPageWidth()-$this->pdf_obj->get_margin('l')-$this->pdf_obj->get_margin('r'); |
|
| 644 | - $this->document_style['orientation']=$this->pdf_obj->get_orientation(); |
|
| 645 | - $this->document_style['line-width']=$this->pdf_obj->get_linewidth(); |
|
| 646 | - $this->table_style=$this->set_style($style, 'T'); |
|
| 647 | - $this->col_num=false; |
|
| 648 | - $this->col_width=array(); |
|
| 649 | - if(is_int($num_cols) && $num_cols!=0){ |
|
| 650 | - $this->col_num=abs($num_cols); |
|
| 651 | - $this->col_width=array_pad(array(), abs($num_cols), $this->table_style['width']/abs($num_cols)); |
|
| 652 | - } |
|
| 653 | - elseif(is_string($num_cols)){ |
|
| 654 | - $num_cols=trim($num_cols, '}, '); |
|
| 655 | - if($num_cols[0]!='{' && $num_cols[0]!='%'){ |
|
| 631 | + public function __construct($fpdf_obj, $num_cols, $style=''){ |
|
| 632 | + if(self::$table_counter){ |
|
| 633 | + error_log('Please use the end_table method to terminate the last table'); |
|
| 634 | + exit(); |
|
| 635 | + } |
|
| 636 | + self::$table_counter=true; |
|
| 637 | + $this->pdf_obj=&$fpdf_obj; |
|
| 638 | + $this->document_style['bgcolor']=$this->pdf_obj->get_color('fill'); |
|
| 639 | + $this->document_style['font-family']=$this->pdf_obj->current_font('family'); |
|
| 640 | + $this->document_style['font-style']=$this->pdf_obj->current_font('style'); |
|
| 641 | + $this->document_style['font-size']=$this->pdf_obj->current_font('size'); |
|
| 642 | + $this->document_style['font-color']=$this->pdf_obj->get_color('text'); |
|
| 643 | + $this->document_style['document_width']=$this->pdf_obj->GetPageWidth()-$this->pdf_obj->get_margin('l')-$this->pdf_obj->get_margin('r'); |
|
| 644 | + $this->document_style['orientation']=$this->pdf_obj->get_orientation(); |
|
| 645 | + $this->document_style['line-width']=$this->pdf_obj->get_linewidth(); |
|
| 646 | + $this->table_style=$this->set_style($style, 'T'); |
|
| 647 | + $this->col_num=false; |
|
| 648 | + $this->col_width=array(); |
|
| 649 | + if(is_int($num_cols) && $num_cols!=0){ |
|
| 650 | + $this->col_num=abs($num_cols); |
|
| 651 | + $this->col_width=array_pad(array(), abs($num_cols), $this->table_style['width']/abs($num_cols)); |
|
| 652 | + } |
|
| 653 | + elseif(is_string($num_cols)){ |
|
| 654 | + $num_cols=trim($num_cols, '}, '); |
|
| 655 | + if($num_cols[0]!='{' && $num_cols[0]!='%'){ |
|
| 656 | 656 | error_log('Bad format for columns in Table constructor'); |
| 657 | 657 | exit(); |
| 658 | - } |
|
| 659 | - $tmp=explode('{', $num_cols); |
|
| 660 | - $tp=trim($tmp[0]); |
|
| 661 | - $num_cols=explode(',', $tmp[1]); |
|
| 662 | - $w=0; |
|
| 663 | - foreach($num_cols as $c){ |
|
| 658 | + } |
|
| 659 | + $tmp=explode('{', $num_cols); |
|
| 660 | + $tp=trim($tmp[0]); |
|
| 661 | + $num_cols=explode(',', $tmp[1]); |
|
| 662 | + $w=0; |
|
| 663 | + foreach($num_cols as $c){ |
|
| 664 | 664 | if(!is_numeric($c)){ |
| 665 | - error_log('Bad parameter format for columns in Table constructor'); |
|
| 666 | - exit(); |
|
| 665 | + error_log('Bad parameter format for columns in Table constructor'); |
|
| 666 | + exit(); |
|
| 667 | 667 | } |
| 668 | 668 | if(abs($c)){ |
| 669 | - $w+=abs($c); |
|
| 670 | - $this->col_width[]=abs($c); |
|
| 669 | + $w+=abs($c); |
|
| 670 | + $this->col_width[]=abs($c); |
|
| 671 | 671 | } |
| 672 | 672 | else{ |
| 673 | - error_log('Column width can not be zero'); |
|
| 673 | + error_log('Column width can not be zero'); |
|
| 674 | + } |
|
| 674 | 675 | } |
| 675 | - } |
|
| 676 | - $this->col_num=count($this->col_width); |
|
| 677 | - if($tp=='%'){ |
|
| 676 | + $this->col_num=count($this->col_width); |
|
| 677 | + if($tp=='%'){ |
|
| 678 | 678 | if($w!=100){ |
| 679 | - error_log('The sum of the percentages of the columns is not 100'); |
|
| 680 | - exit(); |
|
| 679 | + error_log('The sum of the percentages of the columns is not 100'); |
|
| 680 | + exit(); |
|
| 681 | 681 | } |
| 682 | 682 | foreach($this->col_width as $i=>$c){ |
| 683 | - $this->col_width[$i]=$c*$this->table_style['width']/100; |
|
| 683 | + $this->col_width[$i]=$c*$this->table_style['width']/100; |
|
| 684 | + } |
|
| 684 | 685 | } |
| 685 | - } |
|
| 686 | - elseif($w!=$this->table_style['width'] && $w){ |
|
| 686 | + elseif($w!=$this->table_style['width'] && $w){ |
|
| 687 | 687 | if($w<$this->document_style['document_width']){ |
| 688 | - $this->table_style['width']=$w; |
|
| 688 | + $this->table_style['width']=$w; |
|
| 689 | 689 | } |
| 690 | 690 | else{ |
| 691 | - $this->table_style['width']=$this->document_style['document_width']; |
|
| 692 | - $d=$this->table_style['width']/$w; |
|
| 693 | - for($i=0; $i<count($num_cols); $i++){ |
|
| 694 | - $this->col_width[$i]*=$d; |
|
| 695 | - } |
|
| 696 | - } |
|
| 697 | - } |
|
| 698 | - } |
|
| 699 | - if($this->col_num==false){ |
|
| 700 | - error_log('Unspecified number of columns in Table constructor'); |
|
| 701 | - exit(); |
|
| 702 | - } |
|
| 703 | - $this->table_style['c-align']=array_pad($this->table_style['c-align'], $this->col_num, 'L'); |
|
| 704 | - if($this->table_style['l-margin']){ |
|
| 705 | - $this->baseX=$this->pdf_obj->get_margin('l')+min($this->table_style['l-margin'],$this->document_style['document_width']-$this->table_style['width']); |
|
| 706 | - } |
|
| 707 | - else{ |
|
| 708 | - if($this->table_style['align']=='L'){ |
|
| 691 | + $this->table_style['width']=$this->document_style['document_width']; |
|
| 692 | + $d=$this->table_style['width']/$w; |
|
| 693 | + for($i=0; $i<count($num_cols); $i++){ |
|
| 694 | + $this->col_width[$i]*=$d; |
|
| 695 | + } |
|
| 696 | + } |
|
| 697 | + } |
|
| 698 | + } |
|
| 699 | + if($this->col_num==false){ |
|
| 700 | + error_log('Unspecified number of columns in Table constructor'); |
|
| 701 | + exit(); |
|
| 702 | + } |
|
| 703 | + $this->table_style['c-align']=array_pad($this->table_style['c-align'], $this->col_num, 'L'); |
|
| 704 | + if($this->table_style['l-margin']){ |
|
| 705 | + $this->baseX=$this->pdf_obj->get_margin('l')+min($this->table_style['l-margin'],$this->document_style['document_width']-$this->table_style['width']); |
|
| 706 | + } |
|
| 707 | + else{ |
|
| 708 | + if($this->table_style['align']=='L'){ |
|
| 709 | 709 | $this->baseX=$this->pdf_obj->get_margin('l'); |
| 710 | - } |
|
| 711 | - elseif($this->table_style['align']=='R'){ |
|
| 710 | + } |
|
| 711 | + elseif($this->table_style['align']=='R'){ |
|
| 712 | 712 | $this->baseX=$this->pdf_obj->get_margin('l')+$this->document_style['document_width']-$this->table_style['width']; |
| 713 | - } |
|
| 714 | - else{ |
|
| 713 | + } |
|
| 714 | + else{ |
|
| 715 | 715 | $this->baseX=$this->pdf_obj->get_margin('l')+($this->document_style['document_width']-$this->table_style['width'])/2; |
| 716 | - } |
|
| 717 | - } |
|
| 718 | - $this->row_style_def=$this->set_style('', 'R'); |
|
| 719 | - $this->row_style=$this->row_style_def; |
|
| 720 | - $this->row_heights=array(); |
|
| 721 | - $this->row_data=array(); |
|
| 722 | - $this->rows=array(); |
|
| 723 | - $this->total_rowspan=0; |
|
| 724 | - $this->col_counter=0; |
|
| 725 | - $this->grid=array(); |
|
| 726 | - $this->blocks=array(); |
|
| 727 | - $this->overflow=0; |
|
| 728 | - if($this->table_style['border-width']!=false){ |
|
| 729 | - $this->pdf_obj->SetLineWidth($this->table_style['border-width']); |
|
| 730 | - } |
|
| 731 | - $this->header_row=array(); |
|
| 732 | - $this->new_table=true; |
|
| 733 | - } |
|
| 734 | - /*********************************************************************** |
|
| 716 | + } |
|
| 717 | + } |
|
| 718 | + $this->row_style_def=$this->set_style('', 'R'); |
|
| 719 | + $this->row_style=$this->row_style_def; |
|
| 720 | + $this->row_heights=array(); |
|
| 721 | + $this->row_data=array(); |
|
| 722 | + $this->rows=array(); |
|
| 723 | + $this->total_rowspan=0; |
|
| 724 | + $this->col_counter=0; |
|
| 725 | + $this->grid=array(); |
|
| 726 | + $this->blocks=array(); |
|
| 727 | + $this->overflow=0; |
|
| 728 | + if($this->table_style['border-width']!=false){ |
|
| 729 | + $this->pdf_obj->SetLineWidth($this->table_style['border-width']); |
|
| 730 | + } |
|
| 731 | + $this->header_row=array(); |
|
| 732 | + $this->new_table=true; |
|
| 733 | + } |
|
| 734 | + /*********************************************************************** |
|
| 735 | 735 | |
| 736 | 736 | function rowStyle( string $style ) |
| 737 | 737 | ------------------------------------------------------------- |
@@ -749,10 +749,10 @@ discard block |
||
| 749 | 749 | This function should be called before the first cell of the current row |
| 750 | 750 | ***********************************************************************/ |
| 751 | 751 | |
| 752 | - public function rowStyle($style){ |
|
| 753 | - $this->row_style=$this->set_style($style, 'R'); |
|
| 754 | - } |
|
| 755 | - /*********************************************************************** |
|
| 752 | + public function rowStyle($style){ |
|
| 753 | + $this->row_style=$this->set_style($style, 'R'); |
|
| 754 | + } |
|
| 755 | + /*********************************************************************** |
|
| 756 | 756 | |
| 757 | 757 | function easyCell( string $data [, string $style = '' ]) |
| 758 | 758 | ------------------------------------------------------------------------ |
@@ -768,62 +768,62 @@ discard block |
||
| 768 | 768 | void |
| 769 | 769 | ***********************************************************************/ |
| 770 | 770 | |
| 771 | - public function easyCell($data, $style=''){ |
|
| 772 | - if($this->col_counter<$this->col_num){ |
|
| 773 | - $sty=$this->set_style($style, 'C', $this->col_counter); |
|
| 774 | - $this->col_counter++; |
|
| 775 | - $row_number=count($this->rows); |
|
| 776 | - $cell_index=count($this->row_data); |
|
| 777 | - $cell_pos=$this->get_available($sty['colspan'], $sty['rowspan']); |
|
| 778 | - $colm=$cell_pos %$this->col_num; |
|
| 779 | - if($sty['img']!=false && $data!='' && $sty['valign']=='M'){ |
|
| 771 | + public function easyCell($data, $style=''){ |
|
| 772 | + if($this->col_counter<$this->col_num){ |
|
| 773 | + $sty=$this->set_style($style, 'C', $this->col_counter); |
|
| 774 | + $this->col_counter++; |
|
| 775 | + $row_number=count($this->rows); |
|
| 776 | + $cell_index=count($this->row_data); |
|
| 777 | + $cell_pos=$this->get_available($sty['colspan'], $sty['rowspan']); |
|
| 778 | + $colm=$cell_pos %$this->col_num; |
|
| 779 | + if($sty['img']!=false && $data!='' && $sty['valign']=='M'){ |
|
| 780 | 780 | $sty['valign']=$this->row_style['valign']; |
| 781 | - } |
|
| 782 | - if($sty['rowspan']){ |
|
| 781 | + } |
|
| 782 | + if($sty['rowspan']){ |
|
| 783 | 783 | $this->total_rowspan=max($this->total_rowspan, $sty['rowspan']); |
| 784 | 784 | $this->blocks[$cell_index]=array($cell_index, $row_number, $sty['rowspan']); |
| 785 | - } |
|
| 786 | - $w=$this->col_width[$colm]; |
|
| 787 | - $r=0; |
|
| 788 | - while($r<$sty['colspan'] && $this->col_counter<$this->col_num){ |
|
| 785 | + } |
|
| 786 | + $w=$this->col_width[$colm]; |
|
| 787 | + $r=0; |
|
| 788 | + while($r<$sty['colspan'] && $this->col_counter<$this->col_num){ |
|
| 789 | 789 | $this->col_counter++; |
| 790 | 790 | $colm++; |
| 791 | 791 | $w+=$this->col_width[$colm]; |
| 792 | 792 | $r++; |
| 793 | - } |
|
| 794 | - $w-=2*$sty['paddingX']; |
|
| 795 | - if($sty['img']!==false && is_string($sty['img'])){ |
|
| 793 | + } |
|
| 794 | + $w-=2*$sty['paddingX']; |
|
| 795 | + if($sty['img']!==false && is_string($sty['img'])){ |
|
| 796 | 796 | $data=$sty['img']; |
| 797 | 797 | $sty['img']=false; |
| 798 | - } |
|
| 799 | - $data=& $this->pdf_obj->extMultiCell($sty['font-family'], $sty['font-style'], $sty['font-size'], $sty['font-color'], $w, $data); |
|
| 800 | - $h=0; |
|
| 801 | - $rn=count($data); |
|
| 802 | - for($ri=0; $ri<$rn; $ri++){ |
|
| 798 | + } |
|
| 799 | + $data=& $this->pdf_obj->extMultiCell($sty['font-family'], $sty['font-style'], $sty['font-size'], $sty['font-color'], $w, $data); |
|
| 800 | + $h=0; |
|
| 801 | + $rn=count($data); |
|
| 802 | + for($ri=0; $ri<$rn; $ri++){ |
|
| 803 | 803 | $h+=$data[$ri]['height']*$sty['line-height']; |
| 804 | - } |
|
| 805 | - if($sty['img']){ |
|
| 804 | + } |
|
| 805 | + if($sty['img']){ |
|
| 806 | 806 | if($sty['img']['w']>$w){ |
| 807 | - $sty['img']['h']=$w*$sty['img']['h']/$sty['img']['w']; |
|
| 808 | - $sty['img']['w']=$w; |
|
| 807 | + $sty['img']['h']=$w*$sty['img']['h']/$sty['img']['w']; |
|
| 808 | + $sty['img']['w']=$w; |
|
| 809 | 809 | } |
| 810 | 810 | if($h){ |
| 811 | - $h+=self::IMGPadding; |
|
| 811 | + $h+=self::IMGPadding; |
|
| 812 | 812 | } |
| 813 | 813 | $h+=$sty['img']['h']; |
| 814 | - } |
|
| 815 | - $w+=2*$sty['paddingX']; |
|
| 814 | + } |
|
| 815 | + $w+=2*$sty['paddingX']; |
|
| 816 | 816 | |
| 817 | - $posx=$this->baseX; |
|
| 818 | - $d=$cell_pos %$this->col_num; |
|
| 819 | - for($k=0; $k<$d; $k++){ |
|
| 817 | + $posx=$this->baseX; |
|
| 818 | + $d=$cell_pos %$this->col_num; |
|
| 819 | + for($k=0; $k<$d; $k++){ |
|
| 820 | 820 | $posx+=$this->col_width[$k]; |
| 821 | - } |
|
| 822 | - $this->row_data[$cell_index]=array($data, $sty, $w, $h, $cell_pos, 0, $posx, 0); |
|
| 821 | + } |
|
| 822 | + $this->row_data[$cell_index]=array($data, $sty, $w, $h, $cell_pos, 0, $posx, 0); |
|
| 823 | 823 | |
| 824 | - } |
|
| 825 | - } |
|
| 826 | - /*********************************************************************** |
|
| 824 | + } |
|
| 825 | + } |
|
| 826 | + /*********************************************************************** |
|
| 827 | 827 | |
| 828 | 828 | function printRow ( [ bool $setAsHeader = false ] ) |
| 829 | 829 | ------------------------------------------------------------------------ |
@@ -848,98 +848,98 @@ discard block |
||
| 848 | 848 | total_rowspan=max(total_rowspan, max(rowspan of cell in the current row))-1; |
| 849 | 849 | ***********************************************************************/ |
| 850 | 850 | |
| 851 | - public function printRow($setAsHeader=false){ |
|
| 852 | - $this->col_counter=0; |
|
| 853 | - $row_number=count($this->rows); |
|
| 854 | - $this->rows[$row_number]=count($this->row_data); |
|
| 855 | - $mx=$this->row_style['min-height']; |
|
| 851 | + public function printRow($setAsHeader=false){ |
|
| 852 | + $this->col_counter=0; |
|
| 853 | + $row_number=count($this->rows); |
|
| 854 | + $this->rows[$row_number]=count($this->row_data); |
|
| 855 | + $mx=$this->row_style['min-height']; |
|
| 856 | 856 | |
| 857 | - $this->row_content_loop($row_number, function($index)use(&$mx){ |
|
| 858 | - if($this->row_data[$index][1]['rowspan']==0){ |
|
| 857 | + $this->row_content_loop($row_number, function($index)use(&$mx){ |
|
| 858 | + if($this->row_data[$index][1]['rowspan']==0){ |
|
| 859 | 859 | $mx=max($mx, $this->row_data[$index][3]+2*$this->row_data[$index][1]['paddingY']); |
| 860 | - } |
|
| 861 | - }); |
|
| 862 | - $this->row_heights[$row_number]=$mx; |
|
| 860 | + } |
|
| 861 | + }); |
|
| 862 | + $this->row_heights[$row_number]=$mx; |
|
| 863 | 863 | |
| 864 | - if($this->total_rowspan>0){ |
|
| 865 | - $this->total_rowspan--; |
|
| 866 | - } |
|
| 867 | - else{ |
|
| 868 | - $row_number=count($this->rows); |
|
| 869 | - if(count($this->blocks)>0){ |
|
| 864 | + if($this->total_rowspan>0){ |
|
| 865 | + $this->total_rowspan--; |
|
| 866 | + } |
|
| 867 | + else{ |
|
| 868 | + $row_number=count($this->rows); |
|
| 869 | + if(count($this->blocks)>0){ |
|
| 870 | 870 | |
| 871 | 871 | foreach($this->blocks as $bk_id=>$block){ |
| 872 | - $h=0; |
|
| 873 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 874 | - $h+=$this->row_heights[$i]; |
|
| 875 | - } |
|
| 876 | - $t=$this->row_data[$block[0]][3]+2*$this->row_data[$block[0]][1]['paddingY']; |
|
| 877 | - if($h>0 && $h<$t){ |
|
| 878 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 879 | - $this->row_heights[$i]*=$t/$h; |
|
| 880 | - } |
|
| 881 | - } |
|
| 872 | + $h=0; |
|
| 873 | + for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 874 | + $h+=$this->row_heights[$i]; |
|
| 875 | + } |
|
| 876 | + $t=$this->row_data[$block[0]][3]+2*$this->row_data[$block[0]][1]['paddingY']; |
|
| 877 | + if($h>0 && $h<$t){ |
|
| 878 | + for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 879 | + $this->row_heights[$i]*=$t/$h; |
|
| 880 | + } |
|
| 881 | + } |
|
| 882 | 882 | } |
| 883 | 883 | foreach($this->blocks as $j=>$block){ |
| 884 | - $h=0; |
|
| 885 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 886 | - $h+=$this->row_heights[$i]; |
|
| 887 | - } |
|
| 888 | - $this->row_data[$j][5]=$h; |
|
| 889 | - } |
|
| 890 | - } |
|
| 891 | - $block_height=0; |
|
| 892 | - for($j=0; $j<$row_number; $j++){ |
|
| 884 | + $h=0; |
|
| 885 | + for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 886 | + $h+=$this->row_heights[$i]; |
|
| 887 | + } |
|
| 888 | + $this->row_data[$j][5]=$h; |
|
| 889 | + } |
|
| 890 | + } |
|
| 891 | + $block_height=0; |
|
| 892 | + for($j=0; $j<$row_number; $j++){ |
|
| 893 | 893 | |
| 894 | - $this->row_content_loop($j, function($index)use($j, $block_height){ |
|
| 895 | - if($this->row_data[$index][1]['rowspan']==0){ |
|
| 896 | - $this->row_data[$index][5]=$this->row_heights[$j]; |
|
| 897 | - } |
|
| 898 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][1]['paddingY']; |
|
| 899 | - if($this->row_data[$index][1]['valign']=='M' || ($this->row_data[$index][1]['img'] && count($this->row_data[$index][0]))){ |
|
| 900 | - $this->row_data[$index][1]['padding-y']=($this->row_data[$index][5]-$this->row_data[$index][3])/2; |
|
| 901 | - } |
|
| 902 | - elseif($this->row_data[$index][1]['valign']=='B'){ |
|
| 903 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][5]-($this->row_data[$index][3]+$this->row_data[$index][1]['paddingY']); |
|
| 904 | - } |
|
| 894 | + $this->row_content_loop($j, function($index)use($j, $block_height){ |
|
| 895 | + if($this->row_data[$index][1]['rowspan']==0){ |
|
| 896 | + $this->row_data[$index][5]=$this->row_heights[$j]; |
|
| 897 | + } |
|
| 898 | + $this->row_data[$index][1]['padding-y']=$this->row_data[$index][1]['paddingY']; |
|
| 899 | + if($this->row_data[$index][1]['valign']=='M' || ($this->row_data[$index][1]['img'] && count($this->row_data[$index][0]))){ |
|
| 900 | + $this->row_data[$index][1]['padding-y']=($this->row_data[$index][5]-$this->row_data[$index][3])/2; |
|
| 901 | + } |
|
| 902 | + elseif($this->row_data[$index][1]['valign']=='B'){ |
|
| 903 | + $this->row_data[$index][1]['padding-y']=$this->row_data[$index][5]-($this->row_data[$index][3]+$this->row_data[$index][1]['paddingY']); |
|
| 904 | + } |
|
| 905 | 905 | }); |
| 906 | 906 | $block_height+=$this->row_heights[$j]; |
| 907 | - } |
|
| 908 | - if($setAsHeader===true){ |
|
| 907 | + } |
|
| 908 | + if($setAsHeader===true){ |
|
| 909 | 909 | if(count($this->header_row)==0){ |
| 910 | - $this->header_row['row_heights']=$this->row_heights; |
|
| 911 | - $this->header_row['row_data']=$this->row_data; |
|
| 912 | - $this->header_row['rows']=$this->rows; |
|
| 910 | + $this->header_row['row_heights']=$this->row_heights; |
|
| 911 | + $this->header_row['row_data']=$this->row_data; |
|
| 912 | + $this->header_row['rows']=$this->rows; |
|
| 913 | + } |
|
| 913 | 914 | } |
| 914 | - } |
|
| 915 | - if($this->table_style['split-row']==false && $this->pdf_obj->PageBreak()<$this->pdf_obj->GetY()+max($block_height,$this->row_heights[0])){ |
|
| 915 | + if($this->table_style['split-row']==false && $this->pdf_obj->PageBreak()<$this->pdf_obj->GetY()+max($block_height,$this->row_heights[0])){ |
|
| 916 | 916 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 917 | 917 | if(count($this->header_row)>0){ |
| 918 | - $this->printing_loop(true); |
|
| 918 | + $this->printing_loop(true); |
|
| 919 | + } |
|
| 919 | 920 | } |
| 920 | - } |
|
| 921 | 921 | |
| 922 | - if($this->new_table){ |
|
| 922 | + if($this->new_table){ |
|
| 923 | 923 | if(count($this->header_row)>0){ |
| 924 | - $r=$this->pdf_obj->PageBreak()-($this->pdf_obj->GetY()+$block_height); |
|
| 925 | - if($r<0 || $r<self::PBThreshold){ |
|
| 926 | - $this->pdf_obj->addPage($this->document_style['orientation']); |
|
| 927 | - } |
|
| 924 | + $r=$this->pdf_obj->PageBreak()-($this->pdf_obj->GetY()+$block_height); |
|
| 925 | + if($r<0 || $r<self::PBThreshold){ |
|
| 926 | + $this->pdf_obj->addPage($this->document_style['orientation']); |
|
| 927 | + } |
|
| 928 | 928 | } |
| 929 | 929 | $this->new_table=false; |
| 930 | - } |
|
| 931 | - $this->printing_loop(); |
|
| 932 | - $this->grid=array(); |
|
| 933 | - $this->row_data=array(); |
|
| 934 | - $this->rows=array(); |
|
| 935 | - $this->row_heights=array(); |
|
| 936 | - $this->blocks=array(); |
|
| 937 | - $this->overflow=0; |
|
| 938 | - $this->new_table=false; |
|
| 939 | - } |
|
| 940 | - $this->row_style=$this->row_style_def; |
|
| 941 | - } |
|
| 942 | - /*********************************************************************** |
|
| 930 | + } |
|
| 931 | + $this->printing_loop(); |
|
| 932 | + $this->grid=array(); |
|
| 933 | + $this->row_data=array(); |
|
| 934 | + $this->rows=array(); |
|
| 935 | + $this->row_heights=array(); |
|
| 936 | + $this->blocks=array(); |
|
| 937 | + $this->overflow=0; |
|
| 938 | + $this->new_table=false; |
|
| 939 | + } |
|
| 940 | + $this->row_style=$this->row_style_def; |
|
| 941 | + } |
|
| 942 | + /*********************************************************************** |
|
| 943 | 943 | |
| 944 | 944 | function endTable( [int $bottomMargin=2]) |
| 945 | 945 | ------------------------------------------ |
@@ -955,32 +955,32 @@ discard block |
||
| 955 | 955 | Void |
| 956 | 956 | ***********************************************************************/ |
| 957 | 957 | |
| 958 | - public function endTable($bottomMargin=2){ |
|
| 959 | - self::$table_counter=false; |
|
| 960 | - if($this->table_style['border-width']!=false){ |
|
| 961 | - $this->pdf_obj->SetLineWidth($this->document_style['line-width']); |
|
| 962 | - } |
|
| 963 | - $this->pdf_obj->SetX($this->pdf_obj->get_margin('l')); |
|
| 964 | - $this->pdf_obj->Ln($bottomMargin); |
|
| 965 | - $this->pdf_obj->resetStaticData(); |
|
| 966 | - unset($this->pdf_obj); |
|
| 967 | - unset($this->document_style); |
|
| 968 | - unset($this->table_style); |
|
| 969 | - unset($this->col_num); |
|
| 970 | - unset($this->col_width); |
|
| 971 | - unset($this->baseX); |
|
| 972 | - unset($this->row_style_def); |
|
| 973 | - unset($this->row_style); |
|
| 974 | - unset($this->row_heights); |
|
| 975 | - unset($this->row_data); |
|
| 976 | - unset($this->rows); |
|
| 977 | - unset($this->total_rowspan); |
|
| 978 | - unset($this->col_counter); |
|
| 979 | - unset($this->grid); |
|
| 980 | - unset($this->blocks); |
|
| 981 | - unset($this->overflow); |
|
| 982 | - unset($this->header_row); |
|
| 983 | - } |
|
| 958 | + public function endTable($bottomMargin=2){ |
|
| 959 | + self::$table_counter=false; |
|
| 960 | + if($this->table_style['border-width']!=false){ |
|
| 961 | + $this->pdf_obj->SetLineWidth($this->document_style['line-width']); |
|
| 962 | + } |
|
| 963 | + $this->pdf_obj->SetX($this->pdf_obj->get_margin('l')); |
|
| 964 | + $this->pdf_obj->Ln($bottomMargin); |
|
| 965 | + $this->pdf_obj->resetStaticData(); |
|
| 966 | + unset($this->pdf_obj); |
|
| 967 | + unset($this->document_style); |
|
| 968 | + unset($this->table_style); |
|
| 969 | + unset($this->col_num); |
|
| 970 | + unset($this->col_width); |
|
| 971 | + unset($this->baseX); |
|
| 972 | + unset($this->row_style_def); |
|
| 973 | + unset($this->row_style); |
|
| 974 | + unset($this->row_heights); |
|
| 975 | + unset($this->row_data); |
|
| 976 | + unset($this->rows); |
|
| 977 | + unset($this->total_rowspan); |
|
| 978 | + unset($this->col_counter); |
|
| 979 | + unset($this->grid); |
|
| 980 | + unset($this->blocks); |
|
| 981 | + unset($this->overflow); |
|
| 982 | + unset($this->header_row); |
|
| 983 | + } |
|
| 984 | 984 | |
| 985 | 985 | } |
| 986 | 986 | ?> |
@@ -10,16 +10,16 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class EasyTable |
| 12 | 12 | { |
| 13 | - const LP=0.4; |
|
| 14 | - const XPadding=1; |
|
| 15 | - const YPadding=1; |
|
| 16 | - const IMGPadding=0.5; |
|
| 17 | - const PBThreshold=30; |
|
| 18 | - static private $table_counter=false; |
|
| 19 | - static private $style=array('width'=>false, 'border'=>false, 'border-color'=>false, |
|
| 13 | + const LP = 0.4; |
|
| 14 | + const XPadding = 1; |
|
| 15 | + const YPadding = 1; |
|
| 16 | + const IMGPadding = 0.5; |
|
| 17 | + const PBThreshold = 30; |
|
| 18 | + static private $table_counter = false; |
|
| 19 | + static private $style = array('width'=>false, 'border'=>false, 'border-color'=>false, |
|
| 20 | 20 | 'border-width'=>false, 'line-height'=>false, |
| 21 | 21 | 'align'=>'', 'valign'=>'', 'bgcolor'=>false, 'split-row'=>false, 'l-margin'=>false, |
| 22 | - 'font-family'=>false, 'font-style'=>false,'font-size'=>false, 'font-color'=>false, |
|
| 22 | + 'font-family'=>false, 'font-style'=>false, 'font-size'=>false, 'font-color'=>false, |
|
| 23 | 23 | 'paddingX'=>false, 'paddingY'=>false); |
| 24 | 24 | private $pdf_obj; |
| 25 | 25 | private $document_style; |
@@ -40,551 +40,551 @@ discard block |
||
| 40 | 40 | private $header_row; |
| 41 | 41 | private $new_table; |
| 42 | 42 | |
| 43 | - private function get_available($colspan, $rowspan){ |
|
| 44 | - static $k=0; |
|
| 45 | - if(count($this->grid)==0){ |
|
| 46 | - $k=0; |
|
| 43 | + private function get_available($colspan, $rowspan) { |
|
| 44 | + static $k = 0; |
|
| 45 | + if (count($this->grid) == 0) { |
|
| 46 | + $k = 0; |
|
| 47 | 47 | } |
| 48 | - while(isset($this->grid[$k])){ |
|
| 48 | + while (isset($this->grid[$k])) { |
|
| 49 | 49 | $k++; |
| 50 | 50 | } |
| 51 | - for($i=0; $i<=$colspan; $i++){ |
|
| 52 | - for($j=0; $j<=$rowspan; $j++){ |
|
| 53 | - $this->grid[$k+$i+$j*$this->col_num]=true; |
|
| 51 | + for ($i = 0; $i <= $colspan; $i++) { |
|
| 52 | + for ($j = 0; $j <= $rowspan; $j++) { |
|
| 53 | + $this->grid[$k + $i + $j * $this->col_num] = true; |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | return $k; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - private function get_style($str, $c){ |
|
| 60 | - $result=self::$style; |
|
| 61 | - if($c=='C'){ |
|
| 62 | - $result['colspan']=0; |
|
| 63 | - $result['rowspan']=0; |
|
| 64 | - $result['img']=false; |
|
| 65 | - } |
|
| 66 | - if($c=='C' || $c=='R'){ |
|
| 59 | + private function get_style($str, $c) { |
|
| 60 | + $result = self::$style; |
|
| 61 | + if ($c == 'C') { |
|
| 62 | + $result['colspan'] = 0; |
|
| 63 | + $result['rowspan'] = 0; |
|
| 64 | + $result['img'] = false; |
|
| 65 | + } |
|
| 66 | + if ($c == 'C' || $c == 'R') { |
|
| 67 | 67 | unset($result['width']); |
| 68 | 68 | unset($result['border-width']); |
| 69 | 69 | unset($result['split-row']); |
| 70 | 70 | unset($result['l-margin']); |
| 71 | 71 | } |
| 72 | - if($c=='R' || $c=='T'){ |
|
| 73 | - if($c=='R'){ |
|
| 74 | - $result['c-align']=array_pad(array(), $this->col_num, 'L'); |
|
| 72 | + if ($c == 'R' || $c == 'T') { |
|
| 73 | + if ($c == 'R') { |
|
| 74 | + $result['c-align'] = array_pad(array(), $this->col_num, 'L'); |
|
| 75 | 75 | } |
| 76 | - else{ |
|
| 77 | - $result['c-align']=array(); |
|
| 76 | + else { |
|
| 77 | + $result['c-align'] = array(); |
|
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | - if($c=='R'){ |
|
| 81 | - $result['min-height']=false; |
|
| 80 | + if ($c == 'R') { |
|
| 81 | + $result['min-height'] = false; |
|
| 82 | 82 | } |
| 83 | - $tmp=explode(';', $str); |
|
| 84 | - foreach($tmp as $x){ |
|
| 85 | - if($x && strpos($x,':')>0){ |
|
| 86 | - $r=explode(':',$x); |
|
| 87 | - $r[0]=trim($r[0]); |
|
| 88 | - $r[1]=trim($r[1]); |
|
| 89 | - if(isset($result[$r[0]])){ |
|
| 90 | - $result[$r[0]]=$r[1]; |
|
| 83 | + $tmp = explode(';', $str); |
|
| 84 | + foreach ($tmp as $x) { |
|
| 85 | + if ($x && strpos($x, ':') > 0) { |
|
| 86 | + $r = explode(':', $x); |
|
| 87 | + $r[0] = trim($r[0]); |
|
| 88 | + $r[1] = trim($r[1]); |
|
| 89 | + if (isset($result[$r[0]])) { |
|
| 90 | + $result[$r[0]] = $r[1]; |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | return $result; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - private function inherating(&$sty, $setting, $c){ |
|
| 98 | - if($c=='C'){ |
|
| 99 | - $sty[$setting]=$this->row_style[$setting]; |
|
| 97 | + private function inherating(&$sty, $setting, $c) { |
|
| 98 | + if ($c == 'C') { |
|
| 99 | + $sty[$setting] = $this->row_style[$setting]; |
|
| 100 | 100 | } |
| 101 | - elseif($c=='R'){ |
|
| 102 | - $sty[$setting]=$this->table_style[$setting]; |
|
| 101 | + elseif ($c == 'R') { |
|
| 102 | + $sty[$setting] = $this->table_style[$setting]; |
|
| 103 | 103 | } |
| 104 | - else{ |
|
| 105 | - $sty[$setting]=$this->document_style[$setting]; |
|
| 104 | + else { |
|
| 105 | + $sty[$setting] = $this->document_style[$setting]; |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | |
| 110 | - private function set_style($str, $c, $pos=''){ |
|
| 111 | - $sty=$this->get_style($str, $c); |
|
| 112 | - if($c=='T'){ |
|
| 113 | - if(is_numeric($sty['width'])){ |
|
| 114 | - $sty['width']=min(abs($sty['width']),$this->document_style['document_width']); |
|
| 115 | - if($sty['width']==0){ |
|
| 116 | - $sty['width']=$this->document_style['document_width']; |
|
| 117 | - } |
|
| 118 | - } |
|
| 119 | - else{ |
|
| 120 | - $x=strpos($sty['width'], '%'); |
|
| 121 | - if($x!=false){ |
|
| 122 | - $x=min(abs(substr($sty['width'], 0, $x)), 100); |
|
| 123 | - if($x){ |
|
| 124 | - $sty['width']=$x*$this->document_style['document_width']/100.0; |
|
| 110 | + private function set_style($str, $c, $pos = '') { |
|
| 111 | + $sty = $this->get_style($str, $c); |
|
| 112 | + if ($c == 'T') { |
|
| 113 | + if (is_numeric($sty['width'])) { |
|
| 114 | + $sty['width'] = min(abs($sty['width']), $this->document_style['document_width']); |
|
| 115 | + if ($sty['width'] == 0) { |
|
| 116 | + $sty['width'] = $this->document_style['document_width']; |
|
| 117 | + } |
|
| 118 | + } |
|
| 119 | + else { |
|
| 120 | + $x = strpos($sty['width'], '%'); |
|
| 121 | + if ($x != false) { |
|
| 122 | + $x = min(abs(substr($sty['width'], 0, $x)), 100); |
|
| 123 | + if ($x) { |
|
| 124 | + $sty['width'] = $x * $this->document_style['document_width'] / 100.0; |
|
| 125 | 125 | } |
| 126 | - else{ |
|
| 127 | - $sty['width']=$this->document_style['document_width']; |
|
| 126 | + else { |
|
| 127 | + $sty['width'] = $this->document_style['document_width']; |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | - else{ |
|
| 131 | - $sty['width']=$this->document_style['document_width']; |
|
| 130 | + else { |
|
| 131 | + $sty['width'] = $this->document_style['document_width']; |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | - if(!is_numeric($sty['l-margin'])){ |
|
| 135 | - $sty['l-margin']=0; |
|
| 134 | + if (!is_numeric($sty['l-margin'])) { |
|
| 135 | + $sty['l-margin'] = 0; |
|
| 136 | 136 | } |
| 137 | - else{ |
|
| 138 | - $sty['l-margin']=abs($sty['l-margin']); |
|
| 137 | + else { |
|
| 138 | + $sty['l-margin'] = abs($sty['l-margin']); |
|
| 139 | 139 | } |
| 140 | - if(is_numeric($sty['border-width'])){ |
|
| 141 | - $sty['border-width']=abs($sty['border-width']); |
|
| 140 | + if (is_numeric($sty['border-width'])) { |
|
| 141 | + $sty['border-width'] = abs($sty['border-width']); |
|
| 142 | 142 | } |
| 143 | - else{ |
|
| 144 | - $sty['border-width']=false; |
|
| 143 | + else { |
|
| 144 | + $sty['border-width'] = false; |
|
| 145 | 145 | } |
| 146 | - if($sty['split-row']=='false'){ |
|
| 147 | - $sty['split-row']=false; |
|
| 146 | + if ($sty['split-row'] == 'false') { |
|
| 147 | + $sty['split-row'] = false; |
|
| 148 | 148 | } |
| 149 | - elseif($sty['split-row']!==false){ |
|
| 150 | - $sty['split-row']=true; |
|
| 149 | + elseif ($sty['split-row'] !== false) { |
|
| 150 | + $sty['split-row'] = true; |
|
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | - if($c=='R'){ |
|
| 154 | - if(!is_numeric($sty['min-height']) || $sty['min-height']<0){ |
|
| 155 | - $sty['min-height']=0; |
|
| 153 | + if ($c == 'R') { |
|
| 154 | + if (!is_numeric($sty['min-height']) || $sty['min-height'] < 0) { |
|
| 155 | + $sty['min-height'] = 0; |
|
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | - if(!is_numeric($sty['paddingX'])){ |
|
| 159 | - if($c=='C' || $c=='R'){ |
|
| 158 | + if (!is_numeric($sty['paddingX'])) { |
|
| 159 | + if ($c == 'C' || $c == 'R') { |
|
| 160 | 160 | $this->inherating($sty, 'paddingX', $c); |
| 161 | 161 | } |
| 162 | - else{ |
|
| 163 | - $sty['paddingX']=self::XPadding; |
|
| 162 | + else { |
|
| 163 | + $sty['paddingX'] = self::XPadding; |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | - $sty['paddingX']=abs($sty['paddingX']); |
|
| 167 | - if(!is_numeric($sty['paddingY'])){ |
|
| 168 | - if($c=='C' || $c=='R'){ |
|
| 166 | + $sty['paddingX'] = abs($sty['paddingX']); |
|
| 167 | + if (!is_numeric($sty['paddingY'])) { |
|
| 168 | + if ($c == 'C' || $c == 'R') { |
|
| 169 | 169 | $this->inherating($sty, 'paddingY', $c); |
| 170 | 170 | } |
| 171 | - else{ |
|
| 172 | - $sty['paddingY']=self::YPadding; |
|
| 171 | + else { |
|
| 172 | + $sty['paddingY'] = self::YPadding; |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | - $sty['paddingY']=abs($sty['paddingY']); |
|
| 176 | - if($sty['border']===false && ($c=='C' || $c=='R')){ |
|
| 175 | + $sty['paddingY'] = abs($sty['paddingY']); |
|
| 176 | + if ($sty['border'] === false && ($c == 'C' || $c == 'R')) { |
|
| 177 | 177 | $this->inherating($sty, 'border', $c); |
| 178 | 178 | } |
| 179 | - else{ |
|
| 180 | - $border=array('T'=>1, 'R'=>1, 'B'=>1, 'L'=>1); |
|
| 181 | - if(!(is_numeric($sty['border']) && $sty['border']==1)){ |
|
| 182 | - foreach($border as $k=>$v){ |
|
| 183 | - $border[$k]=0; |
|
| 184 | - if(strpos($sty['border'], $k)!==false){ |
|
| 185 | - $border[$k]=1; |
|
| 179 | + else { |
|
| 180 | + $border = array('T'=>1, 'R'=>1, 'B'=>1, 'L'=>1); |
|
| 181 | + if (!(is_numeric($sty['border']) && $sty['border'] == 1)) { |
|
| 182 | + foreach ($border as $k=>$v) { |
|
| 183 | + $border[$k] = 0; |
|
| 184 | + if (strpos($sty['border'], $k) !== false) { |
|
| 185 | + $border[$k] = 1; |
|
| 186 | 186 | } |
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | - $sty['border']=$border; |
|
| 189 | + $sty['border'] = $border; |
|
| 190 | 190 | } |
| 191 | - $color_settings=array('bgcolor', 'font-color', 'border-color'); |
|
| 192 | - foreach($color_settings as $setting){ |
|
| 193 | - if($sty[$setting]===false || !($this->pdf_obj->is_hex($sty[$setting]) || $this->pdf_obj->is_rgb($sty[$setting]))){ |
|
| 194 | - if($c=='C' || $c=='R'){ |
|
| 191 | + $color_settings = array('bgcolor', 'font-color', 'border-color'); |
|
| 192 | + foreach ($color_settings as $setting) { |
|
| 193 | + if ($sty[$setting] === false || !($this->pdf_obj->is_hex($sty[$setting]) || $this->pdf_obj->is_rgb($sty[$setting]))) { |
|
| 194 | + if ($c == 'C' || $c == 'R') { |
|
| 195 | 195 | $this->inherating($sty, $setting, $c); |
| 196 | 196 | } |
| 197 | - elseif($setting=='font-color'){ |
|
| 198 | - $sty[$setting]=$this->document_style[$setting]; |
|
| 197 | + elseif ($setting == 'font-color') { |
|
| 198 | + $sty[$setting] = $this->document_style[$setting]; |
|
| 199 | 199 | } |
| 200 | 200 | } |
| 201 | - else{ |
|
| 202 | - $sty[$setting]=$sty[$setting]; |
|
| 201 | + else { |
|
| 202 | + $sty[$setting] = $sty[$setting]; |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | - $font_settings=array('font-family', 'font-style', 'font-size'); |
|
| 206 | - foreach($font_settings as $setting){ |
|
| 207 | - if($sty[$setting]===false){ |
|
| 205 | + $font_settings = array('font-family', 'font-style', 'font-size'); |
|
| 206 | + foreach ($font_settings as $setting) { |
|
| 207 | + if ($sty[$setting] === false) { |
|
| 208 | 208 | $this->inherating($sty, $setting, $c); |
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | - if(is_numeric($sty['line-height'])){ |
|
| 212 | - $sty['line-height']=self::LP*abs($sty['line-height']); |
|
| 211 | + if (is_numeric($sty['line-height'])) { |
|
| 212 | + $sty['line-height'] = self::LP * abs($sty['line-height']); |
|
| 213 | 213 | } |
| 214 | - else{ |
|
| 215 | - if($c=='C' || $c=='R'){ |
|
| 216 | - $this->inherating($sty,'line-height', $c); |
|
| 214 | + else { |
|
| 215 | + if ($c == 'C' || $c == 'R') { |
|
| 216 | + $this->inherating($sty, 'line-height', $c); |
|
| 217 | 217 | } |
| 218 | - else{ |
|
| 219 | - $sty['line-height']=self::LP; |
|
| 218 | + else { |
|
| 219 | + $sty['line-height'] = self::LP; |
|
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | - if($c=='C'){ |
|
| 223 | - if($sty['img']){ |
|
| 224 | - $tmp=explode(',', $sty['img']); |
|
| 225 | - if(file_exists($tmp[0])){ |
|
| 226 | - $sty['img']=array('path'=>'', 'h'=>0, 'w'=>0); |
|
| 227 | - $img=@ getimagesize($tmp[0]); |
|
| 228 | - $sty['img']['path']=$tmp[0]; |
|
| 229 | - for($i=1; $i<3; $i++){ |
|
| 230 | - if(isset($tmp[$i])){ |
|
| 231 | - $tmp[$i]=trim(strtolower($tmp[$i])); |
|
| 232 | - if($tmp[$i][0]=='w' || $tmp[$i][0]=='h'){ |
|
| 233 | - $t=substr($tmp[$i],1); |
|
| 234 | - if(is_numeric($t)){ |
|
| 235 | - $sty['img'][$tmp[$i][0]]=abs($t); |
|
| 222 | + if ($c == 'C') { |
|
| 223 | + if ($sty['img']) { |
|
| 224 | + $tmp = explode(',', $sty['img']); |
|
| 225 | + if (file_exists($tmp[0])) { |
|
| 226 | + $sty['img'] = array('path'=>'', 'h'=>0, 'w'=>0); |
|
| 227 | + $img = @ getimagesize($tmp[0]); |
|
| 228 | + $sty['img']['path'] = $tmp[0]; |
|
| 229 | + for ($i = 1; $i < 3; $i++) { |
|
| 230 | + if (isset($tmp[$i])) { |
|
| 231 | + $tmp[$i] = trim(strtolower($tmp[$i])); |
|
| 232 | + if ($tmp[$i][0] == 'w' || $tmp[$i][0] == 'h') { |
|
| 233 | + $t = substr($tmp[$i], 1); |
|
| 234 | + if (is_numeric($t)) { |
|
| 235 | + $sty['img'][$tmp[$i][0]] = abs($t); |
|
| 236 | 236 | } |
| 237 | 237 | } |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | - $ration=$img[0]/$img[1]; |
|
| 241 | - if($sty['img']['w']+$sty['img']['h']==0){ |
|
| 242 | - $sty['img']['w']=$img[0]; |
|
| 243 | - $sty['img']['h']=$img[1]; |
|
| 240 | + $ration = $img[0] / $img[1]; |
|
| 241 | + if ($sty['img']['w'] + $sty['img']['h'] == 0) { |
|
| 242 | + $sty['img']['w'] = $img[0]; |
|
| 243 | + $sty['img']['h'] = $img[1]; |
|
| 244 | 244 | } |
| 245 | - elseif($sty['img']['w']==0){ |
|
| 246 | - $sty['img']['w']=$sty['img']['h']*$ration; |
|
| 245 | + elseif ($sty['img']['w'] == 0) { |
|
| 246 | + $sty['img']['w'] = $sty['img']['h'] * $ration; |
|
| 247 | 247 | } |
| 248 | - elseif($sty['img']['h']==0){ |
|
| 249 | - $sty['img']['h']=$sty['img']['w']/$ration; |
|
| 248 | + elseif ($sty['img']['h'] == 0) { |
|
| 249 | + $sty['img']['h'] = $sty['img']['w'] / $ration; |
|
| 250 | 250 | } |
| 251 | 251 | } |
| 252 | - else{ |
|
| 253 | - $sty['img']='failed to open stream: file ' . $tmp[0] .' does not exist'; |
|
| 252 | + else { |
|
| 253 | + $sty['img'] = 'failed to open stream: file '.$tmp[0].' does not exist'; |
|
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | - if(is_numeric($sty['colspan']) && $sty['colspan']>0){ |
|
| 256 | + if (is_numeric($sty['colspan']) && $sty['colspan'] > 0) { |
|
| 257 | 257 | $sty['colspan']--; |
| 258 | 258 | } |
| 259 | - else{ |
|
| 260 | - $sty['colspan']=0; |
|
| 259 | + else { |
|
| 260 | + $sty['colspan'] = 0; |
|
| 261 | 261 | } |
| 262 | - if(is_numeric($sty['rowspan']) && $sty['rowspan']>0){ |
|
| 262 | + if (is_numeric($sty['rowspan']) && $sty['rowspan'] > 0) { |
|
| 263 | 263 | $sty['rowspan']--; |
| 264 | 264 | } |
| 265 | - else{ |
|
| 266 | - $sty['rowspan']=0; |
|
| 265 | + else { |
|
| 266 | + $sty['rowspan'] = 0; |
|
| 267 | 267 | } |
| 268 | - if($sty['valign']==false && ($sty['rowspan']>0 || $sty['img']!==false)){ |
|
| 269 | - $sty['valign']='M'; |
|
| 268 | + if ($sty['valign'] == false && ($sty['rowspan'] > 0 || $sty['img'] !== false)) { |
|
| 269 | + $sty['valign'] = 'M'; |
|
| 270 | 270 | } |
| 271 | - if($sty['align']==false && $sty['img']!==false){ |
|
| 272 | - $sty['align']='C'; |
|
| 271 | + if ($sty['align'] == false && $sty['img'] !== false) { |
|
| 272 | + $sty['align'] = 'C'; |
|
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | - if($c=='T' || $c=='R'){ |
|
| 276 | - $tmp=explode('{',$sty['align']); |
|
| 277 | - if($c=='T'){ |
|
| 278 | - $sty['align']=trim($tmp[0]); |
|
| 275 | + if ($c == 'T' || $c == 'R') { |
|
| 276 | + $tmp = explode('{', $sty['align']); |
|
| 277 | + if ($c == 'T') { |
|
| 278 | + $sty['align'] = trim($tmp[0]); |
|
| 279 | 279 | } |
| 280 | - if(isset($tmp[1])){ |
|
| 281 | - $tmp[1]=trim($tmp[1], '}'); |
|
| 282 | - if(strlen($tmp[1])){ |
|
| 283 | - for($i=0; $i<strlen($tmp[1]); $i++){ |
|
| 284 | - if(preg_match("/[LCRJ]/", $tmp[1][$i])!=0){ |
|
| 285 | - $sty['c-align'][$i]=$tmp[1][$i]; |
|
| 280 | + if (isset($tmp[1])) { |
|
| 281 | + $tmp[1] = trim($tmp[1], '}'); |
|
| 282 | + if (strlen($tmp[1])) { |
|
| 283 | + for ($i = 0; $i < strlen($tmp[1]); $i++) { |
|
| 284 | + if (preg_match("/[LCRJ]/", $tmp[1][$i]) != 0) { |
|
| 285 | + $sty['c-align'][$i] = $tmp[1][$i]; |
|
| 286 | 286 | } |
| 287 | - else{ |
|
| 288 | - $sty['c-align'][$i]='L'; |
|
| 287 | + else { |
|
| 288 | + $sty['c-align'][$i] = 'L'; |
|
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | - if($c=='R'){ |
|
| 293 | - $sty['align']='L'; |
|
| 294 | - $sty['c-align']=array_slice($sty['c-align'],0,$this->col_num); |
|
| 292 | + if ($c == 'R') { |
|
| 293 | + $sty['align'] = 'L'; |
|
| 294 | + $sty['c-align'] = array_slice($sty['c-align'], 0, $this->col_num); |
|
| 295 | 295 | } |
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | - if($sty['align']!='L' && $sty['align']!='C' && $sty['align']!='R' && $sty['align']!='J'){ |
|
| 299 | - if($c=='C'){ |
|
| 300 | - $sty['align']=$this->row_style['c-align'][$pos]; |
|
| 298 | + if ($sty['align'] != 'L' && $sty['align'] != 'C' && $sty['align'] != 'R' && $sty['align'] != 'J') { |
|
| 299 | + if ($c == 'C') { |
|
| 300 | + $sty['align'] = $this->row_style['c-align'][$pos]; |
|
| 301 | 301 | } |
| 302 | - elseif($c=='R'){ |
|
| 303 | - $sty['align']='L'; |
|
| 304 | - $sty['c-align']=$this->table_style['c-align']; |
|
| 302 | + elseif ($c == 'R') { |
|
| 303 | + $sty['align'] = 'L'; |
|
| 304 | + $sty['c-align'] = $this->table_style['c-align']; |
|
| 305 | 305 | } |
| 306 | - else{ |
|
| 307 | - $sty['align']='C'; |
|
| 306 | + else { |
|
| 307 | + $sty['align'] = 'C'; |
|
| 308 | 308 | } |
| 309 | 309 | } |
| 310 | - elseif($c=='T' && $sty['align']=='J'){ |
|
| 311 | - $sty['align']='C'; |
|
| 310 | + elseif ($c == 'T' && $sty['align'] == 'J') { |
|
| 311 | + $sty['align'] = 'C'; |
|
| 312 | 312 | } |
| 313 | - if($sty['valign']!='T' && $sty['valign']!='M' && $sty['valign']!='B'){ |
|
| 314 | - if($c=='C' || $c=='R'){ |
|
| 313 | + if ($sty['valign'] != 'T' && $sty['valign'] != 'M' && $sty['valign'] != 'B') { |
|
| 314 | + if ($c == 'C' || $c == 'R') { |
|
| 315 | 315 | $this->inherating($sty, 'valign', $c); |
| 316 | 316 | } |
| 317 | - else{ |
|
| 318 | - $sty['valign']='T'; |
|
| 317 | + else { |
|
| 318 | + $sty['valign'] = 'T'; |
|
| 319 | 319 | } |
| 320 | 320 | } |
| 321 | 321 | return $sty; |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | - private function row_content_loop($counter, $f){ |
|
| 325 | - $t=0; |
|
| 326 | - if($counter>0){ |
|
| 327 | - $t=$this->rows[$counter-1]; |
|
| 324 | + private function row_content_loop($counter, $f) { |
|
| 325 | + $t = 0; |
|
| 326 | + if ($counter > 0) { |
|
| 327 | + $t = $this->rows[$counter - 1]; |
|
| 328 | 328 | } |
| 329 | - for($index=$t; $index<$this->rows[$counter]; $index++){ |
|
| 329 | + for ($index = $t; $index < $this->rows[$counter]; $index++) { |
|
| 330 | 330 | $f($index); |
| 331 | 331 | } |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | - private function mk_border($i, $y, $split){ |
|
| 335 | - $w=$this->row_data[$i][2]; |
|
| 336 | - $h=$this->row_data[$i][5]; |
|
| 337 | - if($split){ |
|
| 338 | - $h=$this->pdf_obj->PageBreak()-$y; |
|
| 334 | + private function mk_border($i, $y, $split) { |
|
| 335 | + $w = $this->row_data[$i][2]; |
|
| 336 | + $h = $this->row_data[$i][5]; |
|
| 337 | + if ($split) { |
|
| 338 | + $h = $this->pdf_obj->PageBreak() - $y; |
|
| 339 | 339 | } |
| 340 | - if($this->row_data[$i][1]['border-color']!=false){ |
|
| 340 | + if ($this->row_data[$i][1]['border-color'] != false) { |
|
| 341 | 341 | $this->pdf_obj->resetColor($this->row_data[$i][1]['border-color'], 'D'); |
| 342 | 342 | } |
| 343 | - $a=array(1, 1, 1, 0); |
|
| 344 | - $borders=array('L'=>3, 'T'=>0, 'R'=>1, 'B'=>2); |
|
| 345 | - foreach($borders as $border=>$j){ |
|
| 346 | - if($this->row_data[$i][1]['border'][$border]){ |
|
| 347 | - if($border=='B'){ |
|
| 348 | - if($split==0){ |
|
| 349 | - $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 343 | + $a = array(1, 1, 1, 0); |
|
| 344 | + $borders = array('L'=>3, 'T'=>0, 'R'=>1, 'B'=>2); |
|
| 345 | + foreach ($borders as $border=>$j) { |
|
| 346 | + if ($this->row_data[$i][1]['border'][$border]) { |
|
| 347 | + if ($border == 'B') { |
|
| 348 | + if ($split == 0) { |
|
| 349 | + $this->pdf_obj->Line($this->row_data[$i][6] + (1 + $a[($j + 2) % 4]) % 2 * $w, $y + (1 + $a[($j + 1) % 4]) % 2 * $h, $this->row_data[$i][6] + $a[$j % 4] * $w, $y + ($a[($j + 3) % 4]) % 2 * $h); |
|
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | - else{ |
|
| 353 | - $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
|
| 352 | + else { |
|
| 353 | + $this->pdf_obj->Line($this->row_data[$i][6] + (1 + $a[($j + 2) % 4]) % 2 * $w, $y + (1 + $a[($j + 1) % 4]) % 2 * $h, $this->row_data[$i][6] + $a[$j % 4] * $w, $y + ($a[($j + 3) % 4]) % 2 * $h); |
|
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | - if($this->row_data[$i][1]['border-color']!=false){ |
|
| 358 | + if ($this->row_data[$i][1]['border-color'] != false) { |
|
| 359 | 359 | $this->pdf_obj->resetColor($this->document_style['bgcolor'], 'D'); |
| 360 | 360 | } |
| 361 | - if($split){ |
|
| 362 | - $this->pdf_obj->row_data[$i][1]['border']['T']=0; |
|
| 361 | + if ($split) { |
|
| 362 | + $this->pdf_obj->row_data[$i][1]['border']['T'] = 0; |
|
| 363 | 363 | } |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | - private function print_text($i, $y, $split){ |
|
| 367 | - $padding=$this->row_data[$i][1]['padding-y']; |
|
| 368 | - $k=$padding; |
|
| 369 | - if($this->row_data[$i][1]['img']!==false){ |
|
| 370 | - if($this->row_data[$i][1]['valign']=='B'){ |
|
| 371 | - $k+=$this->row_data[$i][1]['img']['h']+self::IMGPadding; |
|
| 372 | - } |
|
| 373 | - } |
|
| 374 | - $l=0; |
|
| 375 | - if(count($this->row_data[$i][0])){ |
|
| 376 | - $x=$this->row_data[$i][6]+$this->row_data[$i][1]['paddingX']; |
|
| 377 | - $xpadding=2*$this->row_data[$i][1]['paddingX']; |
|
| 378 | - $l=count($this->row_data[$i][0])* $this->row_data[$i][1]['line-height']*$this->row_data[$i][1]['font-size']; |
|
| 379 | - $this->pdf_obj->SetXY($x, $y+$k); |
|
| 380 | - $this->pdf_obj->CellBlock($this->row_data[$i][2]-$xpadding, $this->row_data[$i][1]['line-height'], $this->row_data[$i][0], $this->row_data[$i][1]['align']); |
|
| 366 | + private function print_text($i, $y, $split) { |
|
| 367 | + $padding = $this->row_data[$i][1]['padding-y']; |
|
| 368 | + $k = $padding; |
|
| 369 | + if ($this->row_data[$i][1]['img'] !== false) { |
|
| 370 | + if ($this->row_data[$i][1]['valign'] == 'B') { |
|
| 371 | + $k += $this->row_data[$i][1]['img']['h'] + self::IMGPadding; |
|
| 372 | + } |
|
| 373 | + } |
|
| 374 | + $l = 0; |
|
| 375 | + if (count($this->row_data[$i][0])) { |
|
| 376 | + $x = $this->row_data[$i][6] + $this->row_data[$i][1]['paddingX']; |
|
| 377 | + $xpadding = 2 * $this->row_data[$i][1]['paddingX']; |
|
| 378 | + $l = count($this->row_data[$i][0]) * $this->row_data[$i][1]['line-height'] * $this->row_data[$i][1]['font-size']; |
|
| 379 | + $this->pdf_obj->SetXY($x, $y + $k); |
|
| 380 | + $this->pdf_obj->CellBlock($this->row_data[$i][2] - $xpadding, $this->row_data[$i][1]['line-height'], $this->row_data[$i][0], $this->row_data[$i][1]['align']); |
|
| 381 | 381 | $this->pdf_obj->resetFont($this->document_style['font-family'], $this->document_style['font-style'], $this->document_style['font-size']); |
| 382 | 382 | $this->pdf_obj->resetColor($this->document_style['font-color'], 'T'); |
| 383 | 383 | } |
| 384 | - if($this->row_data[$i][1]['img']!==false ){ |
|
| 385 | - $x=$this->row_data[$i][6]; |
|
| 386 | - $k=$padding; |
|
| 387 | - if($this->row_data[$i][1]['valign']!='B'){ |
|
| 388 | - $k+=$l+self::IMGPadding; |
|
| 389 | - } |
|
| 390 | - if($this->imgbreak($i, $y)==0 && $y+$k+$this->row_data[$i][1]['img']['h']<$this->pdf_obj->PageBreak()){ |
|
| 391 | - $x+=$this->row_data[$i][1]['paddingX']; |
|
| 392 | - if($this->row_data[$i][2]>$this->row_data[$i][1]['img']['w']){ |
|
| 393 | - if($this->row_data[$i][1]['align']=='C'){ |
|
| 394 | - $x-=$this->row_data[$i][1]['paddingX']; |
|
| 395 | - $x+=($this->row_data[$i][2]-$this->row_data[$i][1]['img']['w'])/2; |
|
| 384 | + if ($this->row_data[$i][1]['img'] !== false) { |
|
| 385 | + $x = $this->row_data[$i][6]; |
|
| 386 | + $k = $padding; |
|
| 387 | + if ($this->row_data[$i][1]['valign'] != 'B') { |
|
| 388 | + $k += $l + self::IMGPadding; |
|
| 389 | + } |
|
| 390 | + if ($this->imgbreak($i, $y) == 0 && $y + $k + $this->row_data[$i][1]['img']['h'] < $this->pdf_obj->PageBreak()) { |
|
| 391 | + $x += $this->row_data[$i][1]['paddingX']; |
|
| 392 | + if ($this->row_data[$i][2] > $this->row_data[$i][1]['img']['w']) { |
|
| 393 | + if ($this->row_data[$i][1]['align'] == 'C') { |
|
| 394 | + $x -= $this->row_data[$i][1]['paddingX']; |
|
| 395 | + $x += ($this->row_data[$i][2] - $this->row_data[$i][1]['img']['w']) / 2; |
|
| 396 | 396 | } |
| 397 | - elseif($this->row_data[$i][1]['align']=='R'){ |
|
| 398 | - $x+=$this->row_data[$i][2]-$this->row_data[$i][1]['img']['w']; |
|
| 399 | - $x-=2*$this->row_data[$i][1]['paddingX']; |
|
| 397 | + elseif ($this->row_data[$i][1]['align'] == 'R') { |
|
| 398 | + $x += $this->row_data[$i][2] - $this->row_data[$i][1]['img']['w']; |
|
| 399 | + $x -= 2 * $this->row_data[$i][1]['paddingX']; |
|
| 400 | 400 | } |
| 401 | 401 | } |
| 402 | - $this->pdf_obj->Image($this->row_data[$i][1]['img']['path'], $x, $y+$k, $this->row_data[$i][1]['img']['w'], $this->row_data[$i][1]['img']['h']); |
|
| 402 | + $this->pdf_obj->Image($this->row_data[$i][1]['img']['path'], $x, $y + $k, $this->row_data[$i][1]['img']['w'], $this->row_data[$i][1]['img']['h']); |
|
| 403 | 403 | } |
| 404 | 404 | } |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | |
| 408 | - private function mk_bg($i, $T, $split){ |
|
| 409 | - $h=$this->row_data[$i][5]; |
|
| 410 | - if($split){ |
|
| 411 | - $h=$this->pdf_obj->PageBreak()-$T; |
|
| 408 | + private function mk_bg($i, $T, $split) { |
|
| 409 | + $h = $this->row_data[$i][5]; |
|
| 410 | + if ($split) { |
|
| 411 | + $h = $this->pdf_obj->PageBreak() - $T; |
|
| 412 | 412 | } |
| 413 | - if($this->row_data[$i][1]['bgcolor']!=false){ |
|
| 413 | + if ($this->row_data[$i][1]['bgcolor'] != false) { |
|
| 414 | 414 | $this->pdf_obj->resetColor($this->row_data[$i][1]['bgcolor']); |
| 415 | 415 | $this->pdf_obj->Rect($this->row_data[$i][6], $T, $this->row_data[$i][2], $h, 'F'); |
| 416 | 416 | $this->pdf_obj->resetColor($this->document_style['bgcolor']); |
| 417 | 417 | } |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | - private function printing_loop($swap=false){ |
|
| 420 | + private function printing_loop($swap = false) { |
|
| 421 | 421 | $this->swap_data($swap); |
| 422 | - $y=$this->pdf_obj->GetY(); |
|
| 423 | - $tmp=array(); |
|
| 424 | - $rw=array(); |
|
| 425 | - $ztmp=array(); |
|
| 426 | - $total_cells=count($this->row_data); |
|
| 427 | - while(count($tmp)!=$total_cells){ |
|
| 428 | - $a=count($this->rows); |
|
| 429 | - $h=0; |
|
| 430 | - $y=$this->pdf_obj->GetY(); |
|
| 431 | - for($j=0; $j<count($this->rows); $j++){ |
|
| 432 | - $T=$y+$h; |
|
| 433 | - if($T<$this->pdf_obj->PageBreak()){ |
|
| 422 | + $y = $this->pdf_obj->GetY(); |
|
| 423 | + $tmp = array(); |
|
| 424 | + $rw = array(); |
|
| 425 | + $ztmp = array(); |
|
| 426 | + $total_cells = count($this->row_data); |
|
| 427 | + while (count($tmp) != $total_cells) { |
|
| 428 | + $a = count($this->rows); |
|
| 429 | + $h = 0; |
|
| 430 | + $y = $this->pdf_obj->GetY(); |
|
| 431 | + for ($j = 0; $j < count($this->rows); $j++) { |
|
| 432 | + $T = $y + $h; |
|
| 433 | + if ($T < $this->pdf_obj->PageBreak()) { |
|
| 434 | 434 | |
| 435 | 435 | $this->row_content_loop($j, function($index)use($T, $tmp){ |
| 436 | - if(!isset($tmp[$index])){ |
|
| 437 | - $split_cell=$this->scan_for_breaks($index,$T, false); |
|
| 436 | + if (!isset($tmp[$index])) { |
|
| 437 | + $split_cell = $this->scan_for_breaks($index, $T, false); |
|
| 438 | 438 | $this->mk_bg($index, $T, $split_cell); |
| 439 | 439 | } |
| 440 | 440 | }); |
| 441 | - if(!isset($rw[$j])){ |
|
| 442 | - if($this->pdf_obj->PageBreak()-($T+$this->row_heights[$j])>=0){ |
|
| 443 | - $h+=$this->row_heights[$j]; |
|
| 441 | + if (!isset($rw[$j])) { |
|
| 442 | + if ($this->pdf_obj->PageBreak() - ($T + $this->row_heights[$j]) >= 0) { |
|
| 443 | + $h += $this->row_heights[$j]; |
|
| 444 | 444 | } |
| 445 | - else{ |
|
| 446 | - $a=$j+1; |
|
| 445 | + else { |
|
| 446 | + $a = $j + 1; |
|
| 447 | 447 | break; |
| 448 | 448 | } |
| 449 | 449 | } |
| 450 | 450 | } |
| 451 | - else{ |
|
| 452 | - $a=$j+1; |
|
| 451 | + else { |
|
| 452 | + $a = $j + 1; |
|
| 453 | 453 | break; |
| 454 | 454 | } |
| 455 | 455 | } |
| 456 | - $h=0; |
|
| 457 | - for($j=0; $j<$a; $j++){ |
|
| 458 | - $T=$y+$h; |
|
| 459 | - if($T<$this->pdf_obj->PageBreak()){ |
|
| 456 | + $h = 0; |
|
| 457 | + for ($j = 0; $j < $a; $j++) { |
|
| 458 | + $T = $y + $h; |
|
| 459 | + if ($T < $this->pdf_obj->PageBreak()) { |
|
| 460 | 460 | |
| 461 | 461 | $this->row_content_loop($j, function($index)use($T, &$tmp, &$ztmp){ |
| 462 | - if(!isset($tmp[$index])){ |
|
| 463 | - $split_cell=$this->scan_for_breaks($index,$T); |
|
| 462 | + if (!isset($tmp[$index])) { |
|
| 463 | + $split_cell = $this->scan_for_breaks($index, $T); |
|
| 464 | 464 | $this->mk_border($index, $T, $split_cell); |
| 465 | 465 | $this->print_text($index, $T, $split_cell); |
| 466 | - if($split_cell==0){ |
|
| 467 | - $tmp[$index]=$index; |
|
| 466 | + if ($split_cell == 0) { |
|
| 467 | + $tmp[$index] = $index; |
|
| 468 | 468 | } |
| 469 | - else{ |
|
| 470 | - $ztmp[]=$index; |
|
| 469 | + else { |
|
| 470 | + $ztmp[] = $index; |
|
| 471 | 471 | } |
| 472 | 472 | } |
| 473 | 473 | }); |
| 474 | - if(!isset($rw[$j])){ |
|
| 475 | - $tw=$this->pdf_obj->PageBreak()-($T+$this->row_heights[$j]); |
|
| 476 | - if($tw>=0){ |
|
| 477 | - $h+=$this->row_heights[$j]; |
|
| 478 | - $rw[$j]=$j; |
|
| 474 | + if (!isset($rw[$j])) { |
|
| 475 | + $tw = $this->pdf_obj->PageBreak() - ($T + $this->row_heights[$j]); |
|
| 476 | + if ($tw >= 0) { |
|
| 477 | + $h += $this->row_heights[$j]; |
|
| 478 | + $rw[$j] = $j; |
|
| 479 | 479 | } |
| 480 | - else{ |
|
| 481 | - $this->row_heights[$j]=$this->overflow-$tw; |
|
| 480 | + else { |
|
| 481 | + $this->row_heights[$j] = $this->overflow - $tw; |
|
| 482 | 482 | } |
| 483 | 483 | } |
| 484 | 484 | } |
| 485 | 485 | } |
| 486 | - if(count($tmp)!=$total_cells){ |
|
| 487 | - foreach($ztmp as $index){ |
|
| 488 | - $this->row_data[$index][5]=$this->row_data[$index][7]+$this->overflow; |
|
| 489 | - if(isset($this->row_data[$index][8])){ |
|
| 490 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][8]; |
|
| 486 | + if (count($tmp) != $total_cells) { |
|
| 487 | + foreach ($ztmp as $index) { |
|
| 488 | + $this->row_data[$index][5] = $this->row_data[$index][7] + $this->overflow; |
|
| 489 | + if (isset($this->row_data[$index][8])) { |
|
| 490 | + $this->row_data[$index][1]['padding-y'] = $this->row_data[$index][8]; |
|
| 491 | 491 | unset($this->row_data[$index][8]); |
| 492 | 492 | } |
| 493 | 493 | } |
| 494 | - $this->overflow=0; |
|
| 495 | - $ztmp=array(); |
|
| 494 | + $this->overflow = 0; |
|
| 495 | + $ztmp = array(); |
|
| 496 | 496 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 497 | 497 | } |
| 498 | - else{ |
|
| 499 | - $y+=$h; |
|
| 498 | + else { |
|
| 499 | + $y += $h; |
|
| 500 | 500 | } |
| 501 | 501 | } |
| 502 | 502 | $this->pdf_obj->SetXY($this->baseX, $y); |
| 503 | 503 | $this->swap_data($swap); |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | - private function imgbreak($i, $y){ |
|
| 507 | - $li=$y+$this->row_data[$i][1]['padding-y']; |
|
| 508 | - $ls=$this->row_data[$i][1]['img']['h']; |
|
| 509 | - if($this->row_data[$i][1]['valign']=='B'){ |
|
| 510 | - $ls+=$li; |
|
| 506 | + private function imgbreak($i, $y) { |
|
| 507 | + $li = $y + $this->row_data[$i][1]['padding-y']; |
|
| 508 | + $ls = $this->row_data[$i][1]['img']['h']; |
|
| 509 | + if ($this->row_data[$i][1]['valign'] == 'B') { |
|
| 510 | + $ls += $li; |
|
| 511 | 511 | } |
| 512 | - else{ |
|
| 513 | - $li+=$this->row_data[$i][3]-$this->row_data[$i][1]['img']['h']; |
|
| 514 | - $ls+=$li; |
|
| 512 | + else { |
|
| 513 | + $li += $this->row_data[$i][3] - $this->row_data[$i][1]['img']['h']; |
|
| 514 | + $ls += $li; |
|
| 515 | 515 | } |
| 516 | - $result=0; |
|
| 517 | - if($li<$this->pdf_obj->PageBreak() && $this->pdf_obj->PageBreak()<$ls){ |
|
| 518 | - $result=$this->pdf_obj->PageBreak()-$li; |
|
| 516 | + $result = 0; |
|
| 517 | + if ($li < $this->pdf_obj->PageBreak() && $this->pdf_obj->PageBreak() < $ls) { |
|
| 518 | + $result = $this->pdf_obj->PageBreak() - $li; |
|
| 519 | 519 | } |
| 520 | 520 | return $result; |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | - private function scan_for_breaks($index, $H, $l=true){ |
|
| 524 | - $print_cell=0; |
|
| 525 | - $h=($H+$this->row_data[$index][5])-$this->pdf_obj->PageBreak(); |
|
| 526 | - if($h>0){ |
|
| 527 | - if($l){ |
|
| 528 | - $rr=$this->pdf_obj->PageBreak()-($H+$this->row_data[$index][1]['padding-y']); |
|
| 529 | - if($rr>0){ |
|
| 530 | - $mx=0; |
|
| 531 | - if(count($this->row_data[$index][0]) && $this->row_data[$index][1]['img']!==false){ |
|
| 532 | - $mx=$this->imgbreak($index, $H); |
|
| 533 | - if($mx==0){ |
|
| 534 | - if($this->row_data[$index][1]['valign']=='B'){ |
|
| 535 | - $rr-=$this->row_data[$index][1]['img']['h']; |
|
| 523 | + private function scan_for_breaks($index, $H, $l = true) { |
|
| 524 | + $print_cell = 0; |
|
| 525 | + $h = ($H + $this->row_data[$index][5]) - $this->pdf_obj->PageBreak(); |
|
| 526 | + if ($h > 0) { |
|
| 527 | + if ($l) { |
|
| 528 | + $rr = $this->pdf_obj->PageBreak() - ($H + $this->row_data[$index][1]['padding-y']); |
|
| 529 | + if ($rr > 0) { |
|
| 530 | + $mx = 0; |
|
| 531 | + if (count($this->row_data[$index][0]) && $this->row_data[$index][1]['img'] !== false) { |
|
| 532 | + $mx = $this->imgbreak($index, $H); |
|
| 533 | + if ($mx == 0) { |
|
| 534 | + if ($this->row_data[$index][1]['valign'] == 'B') { |
|
| 535 | + $rr -= $this->row_data[$index][1]['img']['h']; |
|
| 536 | 536 | } |
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | - $nh=0; |
|
| 540 | - $keys=array_keys($this->row_data[$index][0]); |
|
| 541 | - foreach($keys as $i){ |
|
| 542 | - $nh+=$this->row_data[$index][0][$i]['height']; |
|
| 539 | + $nh = 0; |
|
| 540 | + $keys = array_keys($this->row_data[$index][0]); |
|
| 541 | + foreach ($keys as $i) { |
|
| 542 | + $nh += $this->row_data[$index][0][$i]['height']; |
|
| 543 | 543 | } |
| 544 | - $nh*=$this->row_data[$index][1]['line-height']; |
|
| 545 | - if($mx==0 && $rr<$nh){ |
|
| 546 | - $nw=0; |
|
| 547 | - foreach($keys as $i){ |
|
| 548 | - $nw+=$this->row_data[$index][0][$i]['height']*$this->row_data[$index][1]['line-height']; |
|
| 549 | - if($nw>$rr){ |
|
| 550 | - $nw-=$this->row_data[$index][0][$i]['height']*$this->row_data[$index][1]['line-height']; |
|
| 551 | - $mx=$rr-$nw; |
|
| 544 | + $nh *= $this->row_data[$index][1]['line-height']; |
|
| 545 | + if ($mx == 0 && $rr < $nh) { |
|
| 546 | + $nw = 0; |
|
| 547 | + foreach ($keys as $i) { |
|
| 548 | + $nw += $this->row_data[$index][0][$i]['height'] * $this->row_data[$index][1]['line-height']; |
|
| 549 | + if ($nw > $rr) { |
|
| 550 | + $nw -= $this->row_data[$index][0][$i]['height'] * $this->row_data[$index][1]['line-height']; |
|
| 551 | + $mx = $rr - $nw; |
|
| 552 | 552 | break; |
| 553 | 553 | } |
| 554 | 554 | } |
| 555 | 555 | } |
| 556 | - $this->overflow=max($this->overflow, $mx); |
|
| 557 | - $this->row_data[$index][8]=1; |
|
| 556 | + $this->overflow = max($this->overflow, $mx); |
|
| 557 | + $this->row_data[$index][8] = 1; |
|
| 558 | 558 | } |
| 559 | - else{ |
|
| 560 | - $this->row_data[$index][8]=-1*$rr; |
|
| 559 | + else { |
|
| 560 | + $this->row_data[$index][8] = -1 * $rr; |
|
| 561 | 561 | } |
| 562 | - $this->row_data[$index][7]=$h; |
|
| 562 | + $this->row_data[$index][7] = $h; |
|
| 563 | 563 | } |
| 564 | - $print_cell=1; |
|
| 564 | + $print_cell = 1; |
|
| 565 | 565 | } |
| 566 | 566 | return $print_cell; |
| 567 | 567 | } |
| 568 | 568 | |
| 569 | - private function swap_data($swap){ |
|
| 570 | - if($swap==false){ |
|
| 569 | + private function swap_data($swap) { |
|
| 570 | + if ($swap == false) { |
|
| 571 | 571 | return; |
| 572 | 572 | } |
| 573 | - static $data=array(); |
|
| 574 | - if(count($data)==0){ |
|
| 575 | - $data=array('header_data'=>$this->header_row['row_data'], 'row_heights'=>&$this->row_heights, 'row_data'=>&$this->row_data, 'rows'=>&$this->rows); |
|
| 573 | + static $data = array(); |
|
| 574 | + if (count($data) == 0) { |
|
| 575 | + $data = array('header_data'=>$this->header_row['row_data'], 'row_heights'=>&$this->row_heights, 'row_data'=>&$this->row_data, 'rows'=>&$this->rows); |
|
| 576 | 576 | unset($this->row_heights, $this->row_data, $this->rows); |
| 577 | - $this->row_heights=&$this->header_row['row_heights']; |
|
| 578 | - $this->row_data=&$this->header_row['row_data']; |
|
| 579 | - $this->rows=&$this->header_row['rows']; |
|
| 577 | + $this->row_heights = &$this->header_row['row_heights']; |
|
| 578 | + $this->row_data = &$this->header_row['row_data']; |
|
| 579 | + $this->rows = &$this->header_row['rows']; |
|
| 580 | 580 | } |
| 581 | - else{ |
|
| 582 | - $this->header_row['row_data']=$data['header_data']; |
|
| 581 | + else { |
|
| 582 | + $this->header_row['row_data'] = $data['header_data']; |
|
| 583 | 583 | unset($this->row_heights, $this->row_data, $this->rows); |
| 584 | - $this->row_heights=$data['row_heights']; |
|
| 585 | - $this->row_data=$data['row_data']; |
|
| 586 | - $this->rows=$data['rows']; |
|
| 587 | - $data=array(); |
|
| 584 | + $this->row_heights = $data['row_heights']; |
|
| 585 | + $this->row_data = $data['row_data']; |
|
| 586 | + $this->rows = $data['rows']; |
|
| 587 | + $data = array(); |
|
| 588 | 588 | } |
| 589 | 589 | } |
| 590 | 590 | /******************************************************************** |
@@ -628,108 +628,108 @@ discard block |
||
| 628 | 628 | An easyTable object |
| 629 | 629 | ***********************************************************************/ |
| 630 | 630 | |
| 631 | - public function __construct($fpdf_obj, $num_cols, $style=''){ |
|
| 632 | - if(self::$table_counter){ |
|
| 631 | + public function __construct($fpdf_obj, $num_cols, $style = '') { |
|
| 632 | + if (self::$table_counter) { |
|
| 633 | 633 | error_log('Please use the end_table method to terminate the last table'); |
| 634 | 634 | exit(); |
| 635 | 635 | } |
| 636 | - self::$table_counter=true; |
|
| 637 | - $this->pdf_obj=&$fpdf_obj; |
|
| 638 | - $this->document_style['bgcolor']=$this->pdf_obj->get_color('fill'); |
|
| 639 | - $this->document_style['font-family']=$this->pdf_obj->current_font('family'); |
|
| 640 | - $this->document_style['font-style']=$this->pdf_obj->current_font('style'); |
|
| 641 | - $this->document_style['font-size']=$this->pdf_obj->current_font('size'); |
|
| 642 | - $this->document_style['font-color']=$this->pdf_obj->get_color('text'); |
|
| 643 | - $this->document_style['document_width']=$this->pdf_obj->GetPageWidth()-$this->pdf_obj->get_margin('l')-$this->pdf_obj->get_margin('r'); |
|
| 644 | - $this->document_style['orientation']=$this->pdf_obj->get_orientation(); |
|
| 645 | - $this->document_style['line-width']=$this->pdf_obj->get_linewidth(); |
|
| 646 | - $this->table_style=$this->set_style($style, 'T'); |
|
| 647 | - $this->col_num=false; |
|
| 648 | - $this->col_width=array(); |
|
| 649 | - if(is_int($num_cols) && $num_cols!=0){ |
|
| 650 | - $this->col_num=abs($num_cols); |
|
| 651 | - $this->col_width=array_pad(array(), abs($num_cols), $this->table_style['width']/abs($num_cols)); |
|
| 652 | - } |
|
| 653 | - elseif(is_string($num_cols)){ |
|
| 654 | - $num_cols=trim($num_cols, '}, '); |
|
| 655 | - if($num_cols[0]!='{' && $num_cols[0]!='%'){ |
|
| 636 | + self::$table_counter = true; |
|
| 637 | + $this->pdf_obj = &$fpdf_obj; |
|
| 638 | + $this->document_style['bgcolor'] = $this->pdf_obj->get_color('fill'); |
|
| 639 | + $this->document_style['font-family'] = $this->pdf_obj->current_font('family'); |
|
| 640 | + $this->document_style['font-style'] = $this->pdf_obj->current_font('style'); |
|
| 641 | + $this->document_style['font-size'] = $this->pdf_obj->current_font('size'); |
|
| 642 | + $this->document_style['font-color'] = $this->pdf_obj->get_color('text'); |
|
| 643 | + $this->document_style['document_width'] = $this->pdf_obj->GetPageWidth() - $this->pdf_obj->get_margin('l') - $this->pdf_obj->get_margin('r'); |
|
| 644 | + $this->document_style['orientation'] = $this->pdf_obj->get_orientation(); |
|
| 645 | + $this->document_style['line-width'] = $this->pdf_obj->get_linewidth(); |
|
| 646 | + $this->table_style = $this->set_style($style, 'T'); |
|
| 647 | + $this->col_num = false; |
|
| 648 | + $this->col_width = array(); |
|
| 649 | + if (is_int($num_cols) && $num_cols != 0) { |
|
| 650 | + $this->col_num = abs($num_cols); |
|
| 651 | + $this->col_width = array_pad(array(), abs($num_cols), $this->table_style['width'] / abs($num_cols)); |
|
| 652 | + } |
|
| 653 | + elseif (is_string($num_cols)) { |
|
| 654 | + $num_cols = trim($num_cols, '}, '); |
|
| 655 | + if ($num_cols[0] != '{' && $num_cols[0] != '%') { |
|
| 656 | 656 | error_log('Bad format for columns in Table constructor'); |
| 657 | 657 | exit(); |
| 658 | 658 | } |
| 659 | - $tmp=explode('{', $num_cols); |
|
| 660 | - $tp=trim($tmp[0]); |
|
| 661 | - $num_cols=explode(',', $tmp[1]); |
|
| 662 | - $w=0; |
|
| 663 | - foreach($num_cols as $c){ |
|
| 664 | - if(!is_numeric($c)){ |
|
| 659 | + $tmp = explode('{', $num_cols); |
|
| 660 | + $tp = trim($tmp[0]); |
|
| 661 | + $num_cols = explode(',', $tmp[1]); |
|
| 662 | + $w = 0; |
|
| 663 | + foreach ($num_cols as $c) { |
|
| 664 | + if (!is_numeric($c)) { |
|
| 665 | 665 | error_log('Bad parameter format for columns in Table constructor'); |
| 666 | 666 | exit(); |
| 667 | 667 | } |
| 668 | - if(abs($c)){ |
|
| 669 | - $w+=abs($c); |
|
| 670 | - $this->col_width[]=abs($c); |
|
| 668 | + if (abs($c)) { |
|
| 669 | + $w += abs($c); |
|
| 670 | + $this->col_width[] = abs($c); |
|
| 671 | 671 | } |
| 672 | - else{ |
|
| 672 | + else { |
|
| 673 | 673 | error_log('Column width can not be zero'); |
| 674 | 674 | } |
| 675 | 675 | } |
| 676 | - $this->col_num=count($this->col_width); |
|
| 677 | - if($tp=='%'){ |
|
| 678 | - if($w!=100){ |
|
| 676 | + $this->col_num = count($this->col_width); |
|
| 677 | + if ($tp == '%') { |
|
| 678 | + if ($w != 100) { |
|
| 679 | 679 | error_log('The sum of the percentages of the columns is not 100'); |
| 680 | 680 | exit(); |
| 681 | 681 | } |
| 682 | - foreach($this->col_width as $i=>$c){ |
|
| 683 | - $this->col_width[$i]=$c*$this->table_style['width']/100; |
|
| 682 | + foreach ($this->col_width as $i=>$c) { |
|
| 683 | + $this->col_width[$i] = $c * $this->table_style['width'] / 100; |
|
| 684 | 684 | } |
| 685 | 685 | } |
| 686 | - elseif($w!=$this->table_style['width'] && $w){ |
|
| 687 | - if($w<$this->document_style['document_width']){ |
|
| 688 | - $this->table_style['width']=$w; |
|
| 686 | + elseif ($w != $this->table_style['width'] && $w) { |
|
| 687 | + if ($w < $this->document_style['document_width']) { |
|
| 688 | + $this->table_style['width'] = $w; |
|
| 689 | 689 | } |
| 690 | - else{ |
|
| 691 | - $this->table_style['width']=$this->document_style['document_width']; |
|
| 692 | - $d=$this->table_style['width']/$w; |
|
| 693 | - for($i=0; $i<count($num_cols); $i++){ |
|
| 694 | - $this->col_width[$i]*=$d; |
|
| 690 | + else { |
|
| 691 | + $this->table_style['width'] = $this->document_style['document_width']; |
|
| 692 | + $d = $this->table_style['width'] / $w; |
|
| 693 | + for ($i = 0; $i < count($num_cols); $i++) { |
|
| 694 | + $this->col_width[$i] *= $d; |
|
| 695 | 695 | } |
| 696 | 696 | } |
| 697 | 697 | } |
| 698 | 698 | } |
| 699 | - if($this->col_num==false){ |
|
| 699 | + if ($this->col_num == false) { |
|
| 700 | 700 | error_log('Unspecified number of columns in Table constructor'); |
| 701 | 701 | exit(); |
| 702 | 702 | } |
| 703 | - $this->table_style['c-align']=array_pad($this->table_style['c-align'], $this->col_num, 'L'); |
|
| 704 | - if($this->table_style['l-margin']){ |
|
| 705 | - $this->baseX=$this->pdf_obj->get_margin('l')+min($this->table_style['l-margin'],$this->document_style['document_width']-$this->table_style['width']); |
|
| 703 | + $this->table_style['c-align'] = array_pad($this->table_style['c-align'], $this->col_num, 'L'); |
|
| 704 | + if ($this->table_style['l-margin']) { |
|
| 705 | + $this->baseX = $this->pdf_obj->get_margin('l') + min($this->table_style['l-margin'], $this->document_style['document_width'] - $this->table_style['width']); |
|
| 706 | 706 | } |
| 707 | - else{ |
|
| 708 | - if($this->table_style['align']=='L'){ |
|
| 709 | - $this->baseX=$this->pdf_obj->get_margin('l'); |
|
| 707 | + else { |
|
| 708 | + if ($this->table_style['align'] == 'L') { |
|
| 709 | + $this->baseX = $this->pdf_obj->get_margin('l'); |
|
| 710 | 710 | } |
| 711 | - elseif($this->table_style['align']=='R'){ |
|
| 712 | - $this->baseX=$this->pdf_obj->get_margin('l')+$this->document_style['document_width']-$this->table_style['width']; |
|
| 711 | + elseif ($this->table_style['align'] == 'R') { |
|
| 712 | + $this->baseX = $this->pdf_obj->get_margin('l') + $this->document_style['document_width'] - $this->table_style['width']; |
|
| 713 | 713 | } |
| 714 | - else{ |
|
| 715 | - $this->baseX=$this->pdf_obj->get_margin('l')+($this->document_style['document_width']-$this->table_style['width'])/2; |
|
| 714 | + else { |
|
| 715 | + $this->baseX = $this->pdf_obj->get_margin('l') + ($this->document_style['document_width'] - $this->table_style['width']) / 2; |
|
| 716 | 716 | } |
| 717 | 717 | } |
| 718 | - $this->row_style_def=$this->set_style('', 'R'); |
|
| 719 | - $this->row_style=$this->row_style_def; |
|
| 720 | - $this->row_heights=array(); |
|
| 721 | - $this->row_data=array(); |
|
| 722 | - $this->rows=array(); |
|
| 723 | - $this->total_rowspan=0; |
|
| 724 | - $this->col_counter=0; |
|
| 725 | - $this->grid=array(); |
|
| 726 | - $this->blocks=array(); |
|
| 727 | - $this->overflow=0; |
|
| 728 | - if($this->table_style['border-width']!=false){ |
|
| 718 | + $this->row_style_def = $this->set_style('', 'R'); |
|
| 719 | + $this->row_style = $this->row_style_def; |
|
| 720 | + $this->row_heights = array(); |
|
| 721 | + $this->row_data = array(); |
|
| 722 | + $this->rows = array(); |
|
| 723 | + $this->total_rowspan = 0; |
|
| 724 | + $this->col_counter = 0; |
|
| 725 | + $this->grid = array(); |
|
| 726 | + $this->blocks = array(); |
|
| 727 | + $this->overflow = 0; |
|
| 728 | + if ($this->table_style['border-width'] != false) { |
|
| 729 | 729 | $this->pdf_obj->SetLineWidth($this->table_style['border-width']); |
| 730 | 730 | } |
| 731 | - $this->header_row=array(); |
|
| 732 | - $this->new_table=true; |
|
| 731 | + $this->header_row = array(); |
|
| 732 | + $this->new_table = true; |
|
| 733 | 733 | } |
| 734 | 734 | /*********************************************************************** |
| 735 | 735 | |
@@ -749,8 +749,8 @@ discard block |
||
| 749 | 749 | This function should be called before the first cell of the current row |
| 750 | 750 | ***********************************************************************/ |
| 751 | 751 | |
| 752 | - public function rowStyle($style){ |
|
| 753 | - $this->row_style=$this->set_style($style, 'R'); |
|
| 752 | + public function rowStyle($style) { |
|
| 753 | + $this->row_style = $this->set_style($style, 'R'); |
|
| 754 | 754 | } |
| 755 | 755 | /*********************************************************************** |
| 756 | 756 | |
@@ -768,58 +768,58 @@ discard block |
||
| 768 | 768 | void |
| 769 | 769 | ***********************************************************************/ |
| 770 | 770 | |
| 771 | - public function easyCell($data, $style=''){ |
|
| 772 | - if($this->col_counter<$this->col_num){ |
|
| 773 | - $sty=$this->set_style($style, 'C', $this->col_counter); |
|
| 771 | + public function easyCell($data, $style = '') { |
|
| 772 | + if ($this->col_counter < $this->col_num) { |
|
| 773 | + $sty = $this->set_style($style, 'C', $this->col_counter); |
|
| 774 | 774 | $this->col_counter++; |
| 775 | - $row_number=count($this->rows); |
|
| 776 | - $cell_index=count($this->row_data); |
|
| 777 | - $cell_pos=$this->get_available($sty['colspan'], $sty['rowspan']); |
|
| 778 | - $colm=$cell_pos %$this->col_num; |
|
| 779 | - if($sty['img']!=false && $data!='' && $sty['valign']=='M'){ |
|
| 780 | - $sty['valign']=$this->row_style['valign']; |
|
| 781 | - } |
|
| 782 | - if($sty['rowspan']){ |
|
| 783 | - $this->total_rowspan=max($this->total_rowspan, $sty['rowspan']); |
|
| 784 | - $this->blocks[$cell_index]=array($cell_index, $row_number, $sty['rowspan']); |
|
| 785 | - } |
|
| 786 | - $w=$this->col_width[$colm]; |
|
| 787 | - $r=0; |
|
| 788 | - while($r<$sty['colspan'] && $this->col_counter<$this->col_num){ |
|
| 775 | + $row_number = count($this->rows); |
|
| 776 | + $cell_index = count($this->row_data); |
|
| 777 | + $cell_pos = $this->get_available($sty['colspan'], $sty['rowspan']); |
|
| 778 | + $colm = $cell_pos % $this->col_num; |
|
| 779 | + if ($sty['img'] != false && $data != '' && $sty['valign'] == 'M') { |
|
| 780 | + $sty['valign'] = $this->row_style['valign']; |
|
| 781 | + } |
|
| 782 | + if ($sty['rowspan']) { |
|
| 783 | + $this->total_rowspan = max($this->total_rowspan, $sty['rowspan']); |
|
| 784 | + $this->blocks[$cell_index] = array($cell_index, $row_number, $sty['rowspan']); |
|
| 785 | + } |
|
| 786 | + $w = $this->col_width[$colm]; |
|
| 787 | + $r = 0; |
|
| 788 | + while ($r < $sty['colspan'] && $this->col_counter < $this->col_num) { |
|
| 789 | 789 | $this->col_counter++; |
| 790 | 790 | $colm++; |
| 791 | - $w+=$this->col_width[$colm]; |
|
| 791 | + $w += $this->col_width[$colm]; |
|
| 792 | 792 | $r++; |
| 793 | 793 | } |
| 794 | - $w-=2*$sty['paddingX']; |
|
| 795 | - if($sty['img']!==false && is_string($sty['img'])){ |
|
| 796 | - $data=$sty['img']; |
|
| 797 | - $sty['img']=false; |
|
| 794 | + $w -= 2 * $sty['paddingX']; |
|
| 795 | + if ($sty['img'] !== false && is_string($sty['img'])) { |
|
| 796 | + $data = $sty['img']; |
|
| 797 | + $sty['img'] = false; |
|
| 798 | 798 | } |
| 799 | - $data=& $this->pdf_obj->extMultiCell($sty['font-family'], $sty['font-style'], $sty['font-size'], $sty['font-color'], $w, $data); |
|
| 800 | - $h=0; |
|
| 801 | - $rn=count($data); |
|
| 802 | - for($ri=0; $ri<$rn; $ri++){ |
|
| 803 | - $h+=$data[$ri]['height']*$sty['line-height']; |
|
| 799 | + $data = & $this->pdf_obj->extMultiCell($sty['font-family'], $sty['font-style'], $sty['font-size'], $sty['font-color'], $w, $data); |
|
| 800 | + $h = 0; |
|
| 801 | + $rn = count($data); |
|
| 802 | + for ($ri = 0; $ri < $rn; $ri++) { |
|
| 803 | + $h += $data[$ri]['height'] * $sty['line-height']; |
|
| 804 | 804 | } |
| 805 | - if($sty['img']){ |
|
| 806 | - if($sty['img']['w']>$w){ |
|
| 807 | - $sty['img']['h']=$w*$sty['img']['h']/$sty['img']['w']; |
|
| 808 | - $sty['img']['w']=$w; |
|
| 805 | + if ($sty['img']) { |
|
| 806 | + if ($sty['img']['w'] > $w) { |
|
| 807 | + $sty['img']['h'] = $w * $sty['img']['h'] / $sty['img']['w']; |
|
| 808 | + $sty['img']['w'] = $w; |
|
| 809 | 809 | } |
| 810 | - if($h){ |
|
| 811 | - $h+=self::IMGPadding; |
|
| 810 | + if ($h) { |
|
| 811 | + $h += self::IMGPadding; |
|
| 812 | 812 | } |
| 813 | - $h+=$sty['img']['h']; |
|
| 813 | + $h += $sty['img']['h']; |
|
| 814 | 814 | } |
| 815 | - $w+=2*$sty['paddingX']; |
|
| 815 | + $w += 2 * $sty['paddingX']; |
|
| 816 | 816 | |
| 817 | - $posx=$this->baseX; |
|
| 818 | - $d=$cell_pos %$this->col_num; |
|
| 819 | - for($k=0; $k<$d; $k++){ |
|
| 820 | - $posx+=$this->col_width[$k]; |
|
| 817 | + $posx = $this->baseX; |
|
| 818 | + $d = $cell_pos % $this->col_num; |
|
| 819 | + for ($k = 0; $k < $d; $k++) { |
|
| 820 | + $posx += $this->col_width[$k]; |
|
| 821 | 821 | } |
| 822 | - $this->row_data[$cell_index]=array($data, $sty, $w, $h, $cell_pos, 0, $posx, 0); |
|
| 822 | + $this->row_data[$cell_index] = array($data, $sty, $w, $h, $cell_pos, 0, $posx, 0); |
|
| 823 | 823 | |
| 824 | 824 | } |
| 825 | 825 | } |
@@ -848,96 +848,96 @@ discard block |
||
| 848 | 848 | total_rowspan=max(total_rowspan, max(rowspan of cell in the current row))-1; |
| 849 | 849 | ***********************************************************************/ |
| 850 | 850 | |
| 851 | - public function printRow($setAsHeader=false){ |
|
| 852 | - $this->col_counter=0; |
|
| 853 | - $row_number=count($this->rows); |
|
| 854 | - $this->rows[$row_number]=count($this->row_data); |
|
| 855 | - $mx=$this->row_style['min-height']; |
|
| 851 | + public function printRow($setAsHeader = false) { |
|
| 852 | + $this->col_counter = 0; |
|
| 853 | + $row_number = count($this->rows); |
|
| 854 | + $this->rows[$row_number] = count($this->row_data); |
|
| 855 | + $mx = $this->row_style['min-height']; |
|
| 856 | 856 | |
| 857 | 857 | $this->row_content_loop($row_number, function($index)use(&$mx){ |
| 858 | - if($this->row_data[$index][1]['rowspan']==0){ |
|
| 859 | - $mx=max($mx, $this->row_data[$index][3]+2*$this->row_data[$index][1]['paddingY']); |
|
| 858 | + if ($this->row_data[$index][1]['rowspan'] == 0) { |
|
| 859 | + $mx = max($mx, $this->row_data[$index][3] + 2 * $this->row_data[$index][1]['paddingY']); |
|
| 860 | 860 | } |
| 861 | 861 | }); |
| 862 | - $this->row_heights[$row_number]=$mx; |
|
| 862 | + $this->row_heights[$row_number] = $mx; |
|
| 863 | 863 | |
| 864 | - if($this->total_rowspan>0){ |
|
| 864 | + if ($this->total_rowspan > 0) { |
|
| 865 | 865 | $this->total_rowspan--; |
| 866 | 866 | } |
| 867 | - else{ |
|
| 868 | - $row_number=count($this->rows); |
|
| 869 | - if(count($this->blocks)>0){ |
|
| 867 | + else { |
|
| 868 | + $row_number = count($this->rows); |
|
| 869 | + if (count($this->blocks) > 0) { |
|
| 870 | 870 | |
| 871 | - foreach($this->blocks as $bk_id=>$block){ |
|
| 872 | - $h=0; |
|
| 873 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 874 | - $h+=$this->row_heights[$i]; |
|
| 871 | + foreach ($this->blocks as $bk_id=>$block) { |
|
| 872 | + $h = 0; |
|
| 873 | + for ($i = $block[1]; $i <= $block[1] + $block[2]; $i++) { |
|
| 874 | + $h += $this->row_heights[$i]; |
|
| 875 | 875 | } |
| 876 | - $t=$this->row_data[$block[0]][3]+2*$this->row_data[$block[0]][1]['paddingY']; |
|
| 877 | - if($h>0 && $h<$t){ |
|
| 878 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 879 | - $this->row_heights[$i]*=$t/$h; |
|
| 876 | + $t = $this->row_data[$block[0]][3] + 2 * $this->row_data[$block[0]][1]['paddingY']; |
|
| 877 | + if ($h > 0 && $h < $t) { |
|
| 878 | + for ($i = $block[1]; $i <= $block[1] + $block[2]; $i++) { |
|
| 879 | + $this->row_heights[$i] *= $t / $h; |
|
| 880 | 880 | } |
| 881 | 881 | } |
| 882 | 882 | } |
| 883 | - foreach($this->blocks as $j=>$block){ |
|
| 884 | - $h=0; |
|
| 885 | - for($i=$block[1]; $i<=$block[1]+$block[2]; $i++){ |
|
| 886 | - $h+=$this->row_heights[$i]; |
|
| 883 | + foreach ($this->blocks as $j=>$block) { |
|
| 884 | + $h = 0; |
|
| 885 | + for ($i = $block[1]; $i <= $block[1] + $block[2]; $i++) { |
|
| 886 | + $h += $this->row_heights[$i]; |
|
| 887 | 887 | } |
| 888 | - $this->row_data[$j][5]=$h; |
|
| 888 | + $this->row_data[$j][5] = $h; |
|
| 889 | 889 | } |
| 890 | 890 | } |
| 891 | - $block_height=0; |
|
| 892 | - for($j=0; $j<$row_number; $j++){ |
|
| 891 | + $block_height = 0; |
|
| 892 | + for ($j = 0; $j < $row_number; $j++) { |
|
| 893 | 893 | |
| 894 | 894 | $this->row_content_loop($j, function($index)use($j, $block_height){ |
| 895 | - if($this->row_data[$index][1]['rowspan']==0){ |
|
| 896 | - $this->row_data[$index][5]=$this->row_heights[$j]; |
|
| 895 | + if ($this->row_data[$index][1]['rowspan'] == 0) { |
|
| 896 | + $this->row_data[$index][5] = $this->row_heights[$j]; |
|
| 897 | 897 | } |
| 898 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][1]['paddingY']; |
|
| 899 | - if($this->row_data[$index][1]['valign']=='M' || ($this->row_data[$index][1]['img'] && count($this->row_data[$index][0]))){ |
|
| 900 | - $this->row_data[$index][1]['padding-y']=($this->row_data[$index][5]-$this->row_data[$index][3])/2; |
|
| 898 | + $this->row_data[$index][1]['padding-y'] = $this->row_data[$index][1]['paddingY']; |
|
| 899 | + if ($this->row_data[$index][1]['valign'] == 'M' || ($this->row_data[$index][1]['img'] && count($this->row_data[$index][0]))) { |
|
| 900 | + $this->row_data[$index][1]['padding-y'] = ($this->row_data[$index][5] - $this->row_data[$index][3]) / 2; |
|
| 901 | 901 | } |
| 902 | - elseif($this->row_data[$index][1]['valign']=='B'){ |
|
| 903 | - $this->row_data[$index][1]['padding-y']=$this->row_data[$index][5]-($this->row_data[$index][3]+$this->row_data[$index][1]['paddingY']); |
|
| 902 | + elseif ($this->row_data[$index][1]['valign'] == 'B') { |
|
| 903 | + $this->row_data[$index][1]['padding-y'] = $this->row_data[$index][5] - ($this->row_data[$index][3] + $this->row_data[$index][1]['paddingY']); |
|
| 904 | 904 | } |
| 905 | 905 | }); |
| 906 | - $block_height+=$this->row_heights[$j]; |
|
| 906 | + $block_height += $this->row_heights[$j]; |
|
| 907 | 907 | } |
| 908 | - if($setAsHeader===true){ |
|
| 909 | - if(count($this->header_row)==0){ |
|
| 910 | - $this->header_row['row_heights']=$this->row_heights; |
|
| 911 | - $this->header_row['row_data']=$this->row_data; |
|
| 912 | - $this->header_row['rows']=$this->rows; |
|
| 908 | + if ($setAsHeader === true) { |
|
| 909 | + if (count($this->header_row) == 0) { |
|
| 910 | + $this->header_row['row_heights'] = $this->row_heights; |
|
| 911 | + $this->header_row['row_data'] = $this->row_data; |
|
| 912 | + $this->header_row['rows'] = $this->rows; |
|
| 913 | 913 | } |
| 914 | 914 | } |
| 915 | - if($this->table_style['split-row']==false && $this->pdf_obj->PageBreak()<$this->pdf_obj->GetY()+max($block_height,$this->row_heights[0])){ |
|
| 915 | + if ($this->table_style['split-row'] == false && $this->pdf_obj->PageBreak() < $this->pdf_obj->GetY() + max($block_height, $this->row_heights[0])) { |
|
| 916 | 916 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 917 | - if(count($this->header_row)>0){ |
|
| 917 | + if (count($this->header_row) > 0) { |
|
| 918 | 918 | $this->printing_loop(true); |
| 919 | 919 | } |
| 920 | 920 | } |
| 921 | 921 | |
| 922 | - if($this->new_table){ |
|
| 923 | - if(count($this->header_row)>0){ |
|
| 924 | - $r=$this->pdf_obj->PageBreak()-($this->pdf_obj->GetY()+$block_height); |
|
| 925 | - if($r<0 || $r<self::PBThreshold){ |
|
| 922 | + if ($this->new_table) { |
|
| 923 | + if (count($this->header_row) > 0) { |
|
| 924 | + $r = $this->pdf_obj->PageBreak() - ($this->pdf_obj->GetY() + $block_height); |
|
| 925 | + if ($r < 0 || $r < self::PBThreshold) { |
|
| 926 | 926 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 927 | 927 | } |
| 928 | 928 | } |
| 929 | - $this->new_table=false; |
|
| 929 | + $this->new_table = false; |
|
| 930 | 930 | } |
| 931 | 931 | $this->printing_loop(); |
| 932 | - $this->grid=array(); |
|
| 933 | - $this->row_data=array(); |
|
| 934 | - $this->rows=array(); |
|
| 935 | - $this->row_heights=array(); |
|
| 936 | - $this->blocks=array(); |
|
| 937 | - $this->overflow=0; |
|
| 938 | - $this->new_table=false; |
|
| 939 | - } |
|
| 940 | - $this->row_style=$this->row_style_def; |
|
| 932 | + $this->grid = array(); |
|
| 933 | + $this->row_data = array(); |
|
| 934 | + $this->rows = array(); |
|
| 935 | + $this->row_heights = array(); |
|
| 936 | + $this->blocks = array(); |
|
| 937 | + $this->overflow = 0; |
|
| 938 | + $this->new_table = false; |
|
| 939 | + } |
|
| 940 | + $this->row_style = $this->row_style_def; |
|
| 941 | 941 | } |
| 942 | 942 | /*********************************************************************** |
| 943 | 943 | |
@@ -955,9 +955,9 @@ discard block |
||
| 955 | 955 | Void |
| 956 | 956 | ***********************************************************************/ |
| 957 | 957 | |
| 958 | - public function endTable($bottomMargin=2){ |
|
| 959 | - self::$table_counter=false; |
|
| 960 | - if($this->table_style['border-width']!=false){ |
|
| 958 | + public function endTable($bottomMargin = 2) { |
|
| 959 | + self::$table_counter = false; |
|
| 960 | + if ($this->table_style['border-width'] != false) { |
|
| 961 | 961 | $this->pdf_obj->SetLineWidth($this->document_style['line-width']); |
| 962 | 962 | } |
| 963 | 963 | $this->pdf_obj->SetX($this->pdf_obj->get_margin('l')); |
@@ -72,8 +72,7 @@ discard block |
||
| 72 | 72 | if($c=='R' || $c=='T'){ |
| 73 | 73 | if($c=='R'){ |
| 74 | 74 | $result['c-align']=array_pad(array(), $this->col_num, 'L'); |
| 75 | - } |
|
| 76 | - else{ |
|
| 75 | + } else{ |
|
| 77 | 76 | $result['c-align']=array(); |
| 78 | 77 | } |
| 79 | 78 | } |
@@ -97,11 +96,9 @@ discard block |
||
| 97 | 96 | private function inherating(&$sty, $setting, $c){ |
| 98 | 97 | if($c=='C'){ |
| 99 | 98 | $sty[$setting]=$this->row_style[$setting]; |
| 100 | - } |
|
| 101 | - elseif($c=='R'){ |
|
| 99 | + } elseif($c=='R'){ |
|
| 102 | 100 | $sty[$setting]=$this->table_style[$setting]; |
| 103 | - } |
|
| 104 | - else{ |
|
| 101 | + } else{ |
|
| 105 | 102 | $sty[$setting]=$this->document_style[$setting]; |
| 106 | 103 | } |
| 107 | 104 | } |
@@ -115,38 +112,32 @@ discard block |
||
| 115 | 112 | if($sty['width']==0){ |
| 116 | 113 | $sty['width']=$this->document_style['document_width']; |
| 117 | 114 | } |
| 118 | - } |
|
| 119 | - else{ |
|
| 115 | + } else{ |
|
| 120 | 116 | $x=strpos($sty['width'], '%'); |
| 121 | 117 | if($x!=false){ |
| 122 | 118 | $x=min(abs(substr($sty['width'], 0, $x)), 100); |
| 123 | 119 | if($x){ |
| 124 | 120 | $sty['width']=$x*$this->document_style['document_width']/100.0; |
| 125 | - } |
|
| 126 | - else{ |
|
| 121 | + } else{ |
|
| 127 | 122 | $sty['width']=$this->document_style['document_width']; |
| 128 | 123 | } |
| 129 | - } |
|
| 130 | - else{ |
|
| 124 | + } else{ |
|
| 131 | 125 | $sty['width']=$this->document_style['document_width']; |
| 132 | 126 | } |
| 133 | 127 | } |
| 134 | 128 | if(!is_numeric($sty['l-margin'])){ |
| 135 | 129 | $sty['l-margin']=0; |
| 136 | - } |
|
| 137 | - else{ |
|
| 130 | + } else{ |
|
| 138 | 131 | $sty['l-margin']=abs($sty['l-margin']); |
| 139 | 132 | } |
| 140 | 133 | if(is_numeric($sty['border-width'])){ |
| 141 | 134 | $sty['border-width']=abs($sty['border-width']); |
| 142 | - } |
|
| 143 | - else{ |
|
| 135 | + } else{ |
|
| 144 | 136 | $sty['border-width']=false; |
| 145 | 137 | } |
| 146 | 138 | if($sty['split-row']=='false'){ |
| 147 | 139 | $sty['split-row']=false; |
| 148 | - } |
|
| 149 | - elseif($sty['split-row']!==false){ |
|
| 140 | + } elseif($sty['split-row']!==false){ |
|
| 150 | 141 | $sty['split-row']=true; |
| 151 | 142 | } |
| 152 | 143 | } |
@@ -158,8 +149,7 @@ discard block |
||
| 158 | 149 | if(!is_numeric($sty['paddingX'])){ |
| 159 | 150 | if($c=='C' || $c=='R'){ |
| 160 | 151 | $this->inherating($sty, 'paddingX', $c); |
| 161 | - } |
|
| 162 | - else{ |
|
| 152 | + } else{ |
|
| 163 | 153 | $sty['paddingX']=self::XPadding; |
| 164 | 154 | } |
| 165 | 155 | } |
@@ -167,16 +157,14 @@ discard block |
||
| 167 | 157 | if(!is_numeric($sty['paddingY'])){ |
| 168 | 158 | if($c=='C' || $c=='R'){ |
| 169 | 159 | $this->inherating($sty, 'paddingY', $c); |
| 170 | - } |
|
| 171 | - else{ |
|
| 160 | + } else{ |
|
| 172 | 161 | $sty['paddingY']=self::YPadding; |
| 173 | 162 | } |
| 174 | 163 | } |
| 175 | 164 | $sty['paddingY']=abs($sty['paddingY']); |
| 176 | 165 | if($sty['border']===false && ($c=='C' || $c=='R')){ |
| 177 | 166 | $this->inherating($sty, 'border', $c); |
| 178 | - } |
|
| 179 | - else{ |
|
| 167 | + } else{ |
|
| 180 | 168 | $border=array('T'=>1, 'R'=>1, 'B'=>1, 'L'=>1); |
| 181 | 169 | if(!(is_numeric($sty['border']) && $sty['border']==1)){ |
| 182 | 170 | foreach($border as $k=>$v){ |
@@ -193,12 +181,10 @@ discard block |
||
| 193 | 181 | if($sty[$setting]===false || !($this->pdf_obj->is_hex($sty[$setting]) || $this->pdf_obj->is_rgb($sty[$setting]))){ |
| 194 | 182 | if($c=='C' || $c=='R'){ |
| 195 | 183 | $this->inherating($sty, $setting, $c); |
| 196 | - } |
|
| 197 | - elseif($setting=='font-color'){ |
|
| 184 | + } elseif($setting=='font-color'){ |
|
| 198 | 185 | $sty[$setting]=$this->document_style[$setting]; |
| 199 | 186 | } |
| 200 | - } |
|
| 201 | - else{ |
|
| 187 | + } else{ |
|
| 202 | 188 | $sty[$setting]=$sty[$setting]; |
| 203 | 189 | } |
| 204 | 190 | } |
@@ -210,12 +196,10 @@ discard block |
||
| 210 | 196 | } |
| 211 | 197 | if(is_numeric($sty['line-height'])){ |
| 212 | 198 | $sty['line-height']=self::LP*abs($sty['line-height']); |
| 213 | - } |
|
| 214 | - else{ |
|
| 199 | + } else{ |
|
| 215 | 200 | if($c=='C' || $c=='R'){ |
| 216 | 201 | $this->inherating($sty,'line-height', $c); |
| 217 | - } |
|
| 218 | - else{ |
|
| 202 | + } else{ |
|
| 219 | 203 | $sty['line-height']=self::LP; |
| 220 | 204 | } |
| 221 | 205 | } |
@@ -241,28 +225,23 @@ discard block |
||
| 241 | 225 | if($sty['img']['w']+$sty['img']['h']==0){ |
| 242 | 226 | $sty['img']['w']=$img[0]; |
| 243 | 227 | $sty['img']['h']=$img[1]; |
| 244 | - } |
|
| 245 | - elseif($sty['img']['w']==0){ |
|
| 228 | + } elseif($sty['img']['w']==0){ |
|
| 246 | 229 | $sty['img']['w']=$sty['img']['h']*$ration; |
| 247 | - } |
|
| 248 | - elseif($sty['img']['h']==0){ |
|
| 230 | + } elseif($sty['img']['h']==0){ |
|
| 249 | 231 | $sty['img']['h']=$sty['img']['w']/$ration; |
| 250 | 232 | } |
| 251 | - } |
|
| 252 | - else{ |
|
| 233 | + } else{ |
|
| 253 | 234 | $sty['img']='failed to open stream: file ' . $tmp[0] .' does not exist'; |
| 254 | 235 | } |
| 255 | 236 | } |
| 256 | 237 | if(is_numeric($sty['colspan']) && $sty['colspan']>0){ |
| 257 | 238 | $sty['colspan']--; |
| 258 | - } |
|
| 259 | - else{ |
|
| 239 | + } else{ |
|
| 260 | 240 | $sty['colspan']=0; |
| 261 | 241 | } |
| 262 | 242 | if(is_numeric($sty['rowspan']) && $sty['rowspan']>0){ |
| 263 | 243 | $sty['rowspan']--; |
| 264 | - } |
|
| 265 | - else{ |
|
| 244 | + } else{ |
|
| 266 | 245 | $sty['rowspan']=0; |
| 267 | 246 | } |
| 268 | 247 | if($sty['valign']==false && ($sty['rowspan']>0 || $sty['img']!==false)){ |
@@ -283,8 +262,7 @@ discard block |
||
| 283 | 262 | for($i=0; $i<strlen($tmp[1]); $i++){ |
| 284 | 263 | if(preg_match("/[LCRJ]/", $tmp[1][$i])!=0){ |
| 285 | 264 | $sty['c-align'][$i]=$tmp[1][$i]; |
| 286 | - } |
|
| 287 | - else{ |
|
| 265 | + } else{ |
|
| 288 | 266 | $sty['c-align'][$i]='L'; |
| 289 | 267 | } |
| 290 | 268 | } |
@@ -298,23 +276,19 @@ discard block |
||
| 298 | 276 | if($sty['align']!='L' && $sty['align']!='C' && $sty['align']!='R' && $sty['align']!='J'){ |
| 299 | 277 | if($c=='C'){ |
| 300 | 278 | $sty['align']=$this->row_style['c-align'][$pos]; |
| 301 | - } |
|
| 302 | - elseif($c=='R'){ |
|
| 279 | + } elseif($c=='R'){ |
|
| 303 | 280 | $sty['align']='L'; |
| 304 | 281 | $sty['c-align']=$this->table_style['c-align']; |
| 305 | - } |
|
| 306 | - else{ |
|
| 282 | + } else{ |
|
| 307 | 283 | $sty['align']='C'; |
| 308 | 284 | } |
| 309 | - } |
|
| 310 | - elseif($c=='T' && $sty['align']=='J'){ |
|
| 285 | + } elseif($c=='T' && $sty['align']=='J'){ |
|
| 311 | 286 | $sty['align']='C'; |
| 312 | 287 | } |
| 313 | 288 | if($sty['valign']!='T' && $sty['valign']!='M' && $sty['valign']!='B'){ |
| 314 | 289 | if($c=='C' || $c=='R'){ |
| 315 | 290 | $this->inherating($sty, 'valign', $c); |
| 316 | - } |
|
| 317 | - else{ |
|
| 291 | + } else{ |
|
| 318 | 292 | $sty['valign']='T'; |
| 319 | 293 | } |
| 320 | 294 | } |
@@ -348,8 +322,7 @@ discard block |
||
| 348 | 322 | if($split==0){ |
| 349 | 323 | $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
| 350 | 324 | } |
| 351 | - } |
|
| 352 | - else{ |
|
| 325 | + } else{ |
|
| 353 | 326 | $this->pdf_obj->Line($this->row_data[$i][6]+(1+$a[($j+2)%4])%2*$w, $y+(1+$a[($j+1)%4])%2 * $h, $this->row_data[$i][6]+$a[$j%4]*$w, $y+($a[($j+3)%4])%2 *$h); |
| 354 | 327 | } |
| 355 | 328 | } |
@@ -393,8 +366,7 @@ discard block |
||
| 393 | 366 | if($this->row_data[$i][1]['align']=='C'){ |
| 394 | 367 | $x-=$this->row_data[$i][1]['paddingX']; |
| 395 | 368 | $x+=($this->row_data[$i][2]-$this->row_data[$i][1]['img']['w'])/2; |
| 396 | - } |
|
| 397 | - elseif($this->row_data[$i][1]['align']=='R'){ |
|
| 369 | + } elseif($this->row_data[$i][1]['align']=='R'){ |
|
| 398 | 370 | $x+=$this->row_data[$i][2]-$this->row_data[$i][1]['img']['w']; |
| 399 | 371 | $x-=2*$this->row_data[$i][1]['paddingX']; |
| 400 | 372 | } |
@@ -441,14 +413,12 @@ discard block |
||
| 441 | 413 | if(!isset($rw[$j])){ |
| 442 | 414 | if($this->pdf_obj->PageBreak()-($T+$this->row_heights[$j])>=0){ |
| 443 | 415 | $h+=$this->row_heights[$j]; |
| 444 | - } |
|
| 445 | - else{ |
|
| 416 | + } else{ |
|
| 446 | 417 | $a=$j+1; |
| 447 | 418 | break; |
| 448 | 419 | } |
| 449 | 420 | } |
| 450 | - } |
|
| 451 | - else{ |
|
| 421 | + } else{ |
|
| 452 | 422 | $a=$j+1; |
| 453 | 423 | break; |
| 454 | 424 | } |
@@ -465,8 +435,7 @@ discard block |
||
| 465 | 435 | $this->print_text($index, $T, $split_cell); |
| 466 | 436 | if($split_cell==0){ |
| 467 | 437 | $tmp[$index]=$index; |
| 468 | - } |
|
| 469 | - else{ |
|
| 438 | + } else{ |
|
| 470 | 439 | $ztmp[]=$index; |
| 471 | 440 | } |
| 472 | 441 | } |
@@ -476,8 +445,7 @@ discard block |
||
| 476 | 445 | if($tw>=0){ |
| 477 | 446 | $h+=$this->row_heights[$j]; |
| 478 | 447 | $rw[$j]=$j; |
| 479 | - } |
|
| 480 | - else{ |
|
| 448 | + } else{ |
|
| 481 | 449 | $this->row_heights[$j]=$this->overflow-$tw; |
| 482 | 450 | } |
| 483 | 451 | } |
@@ -494,8 +462,7 @@ discard block |
||
| 494 | 462 | $this->overflow=0; |
| 495 | 463 | $ztmp=array(); |
| 496 | 464 | $this->pdf_obj->addPage($this->document_style['orientation']); |
| 497 | - } |
|
| 498 | - else{ |
|
| 465 | + } else{ |
|
| 499 | 466 | $y+=$h; |
| 500 | 467 | } |
| 501 | 468 | } |
@@ -508,8 +475,7 @@ discard block |
||
| 508 | 475 | $ls=$this->row_data[$i][1]['img']['h']; |
| 509 | 476 | if($this->row_data[$i][1]['valign']=='B'){ |
| 510 | 477 | $ls+=$li; |
| 511 | - } |
|
| 512 | - else{ |
|
| 478 | + } else{ |
|
| 513 | 479 | $li+=$this->row_data[$i][3]-$this->row_data[$i][1]['img']['h']; |
| 514 | 480 | $ls+=$li; |
| 515 | 481 | } |
@@ -555,8 +521,7 @@ discard block |
||
| 555 | 521 | } |
| 556 | 522 | $this->overflow=max($this->overflow, $mx); |
| 557 | 523 | $this->row_data[$index][8]=1; |
| 558 | - } |
|
| 559 | - else{ |
|
| 524 | + } else{ |
|
| 560 | 525 | $this->row_data[$index][8]=-1*$rr; |
| 561 | 526 | } |
| 562 | 527 | $this->row_data[$index][7]=$h; |
@@ -577,8 +542,7 @@ discard block |
||
| 577 | 542 | $this->row_heights=&$this->header_row['row_heights']; |
| 578 | 543 | $this->row_data=&$this->header_row['row_data']; |
| 579 | 544 | $this->rows=&$this->header_row['rows']; |
| 580 | - } |
|
| 581 | - else{ |
|
| 545 | + } else{ |
|
| 582 | 546 | $this->header_row['row_data']=$data['header_data']; |
| 583 | 547 | unset($this->row_heights, $this->row_data, $this->rows); |
| 584 | 548 | $this->row_heights=$data['row_heights']; |
@@ -649,8 +613,7 @@ discard block |
||
| 649 | 613 | if(is_int($num_cols) && $num_cols!=0){ |
| 650 | 614 | $this->col_num=abs($num_cols); |
| 651 | 615 | $this->col_width=array_pad(array(), abs($num_cols), $this->table_style['width']/abs($num_cols)); |
| 652 | - } |
|
| 653 | - elseif(is_string($num_cols)){ |
|
| 616 | + } elseif(is_string($num_cols)){ |
|
| 654 | 617 | $num_cols=trim($num_cols, '}, '); |
| 655 | 618 | if($num_cols[0]!='{' && $num_cols[0]!='%'){ |
| 656 | 619 | error_log('Bad format for columns in Table constructor'); |
@@ -668,8 +631,7 @@ discard block |
||
| 668 | 631 | if(abs($c)){ |
| 669 | 632 | $w+=abs($c); |
| 670 | 633 | $this->col_width[]=abs($c); |
| 671 | - } |
|
| 672 | - else{ |
|
| 634 | + } else{ |
|
| 673 | 635 | error_log('Column width can not be zero'); |
| 674 | 636 | } |
| 675 | 637 | } |
@@ -682,12 +644,10 @@ discard block |
||
| 682 | 644 | foreach($this->col_width as $i=>$c){ |
| 683 | 645 | $this->col_width[$i]=$c*$this->table_style['width']/100; |
| 684 | 646 | } |
| 685 | - } |
|
| 686 | - elseif($w!=$this->table_style['width'] && $w){ |
|
| 647 | + } elseif($w!=$this->table_style['width'] && $w){ |
|
| 687 | 648 | if($w<$this->document_style['document_width']){ |
| 688 | 649 | $this->table_style['width']=$w; |
| 689 | - } |
|
| 690 | - else{ |
|
| 650 | + } else{ |
|
| 691 | 651 | $this->table_style['width']=$this->document_style['document_width']; |
| 692 | 652 | $d=$this->table_style['width']/$w; |
| 693 | 653 | for($i=0; $i<count($num_cols); $i++){ |
@@ -703,15 +663,12 @@ discard block |
||
| 703 | 663 | $this->table_style['c-align']=array_pad($this->table_style['c-align'], $this->col_num, 'L'); |
| 704 | 664 | if($this->table_style['l-margin']){ |
| 705 | 665 | $this->baseX=$this->pdf_obj->get_margin('l')+min($this->table_style['l-margin'],$this->document_style['document_width']-$this->table_style['width']); |
| 706 | - } |
|
| 707 | - else{ |
|
| 666 | + } else{ |
|
| 708 | 667 | if($this->table_style['align']=='L'){ |
| 709 | 668 | $this->baseX=$this->pdf_obj->get_margin('l'); |
| 710 | - } |
|
| 711 | - elseif($this->table_style['align']=='R'){ |
|
| 669 | + } elseif($this->table_style['align']=='R'){ |
|
| 712 | 670 | $this->baseX=$this->pdf_obj->get_margin('l')+$this->document_style['document_width']-$this->table_style['width']; |
| 713 | - } |
|
| 714 | - else{ |
|
| 671 | + } else{ |
|
| 715 | 672 | $this->baseX=$this->pdf_obj->get_margin('l')+($this->document_style['document_width']-$this->table_style['width'])/2; |
| 716 | 673 | } |
| 717 | 674 | } |
@@ -863,8 +820,7 @@ discard block |
||
| 863 | 820 | |
| 864 | 821 | if($this->total_rowspan>0){ |
| 865 | 822 | $this->total_rowspan--; |
| 866 | - } |
|
| 867 | - else{ |
|
| 823 | + } else{ |
|
| 868 | 824 | $row_number=count($this->rows); |
| 869 | 825 | if(count($this->blocks)>0){ |
| 870 | 826 | |
@@ -898,8 +854,7 @@ discard block |
||
| 898 | 854 | $this->row_data[$index][1]['padding-y']=$this->row_data[$index][1]['paddingY']; |
| 899 | 855 | if($this->row_data[$index][1]['valign']=='M' || ($this->row_data[$index][1]['img'] && count($this->row_data[$index][0]))){ |
| 900 | 856 | $this->row_data[$index][1]['padding-y']=($this->row_data[$index][5]-$this->row_data[$index][3])/2; |
| 901 | - } |
|
| 902 | - elseif($this->row_data[$index][1]['valign']=='B'){ |
|
| 857 | + } elseif($this->row_data[$index][1]['valign']=='B'){ |
|
| 903 | 858 | $this->row_data[$index][1]['padding-y']=$this->row_data[$index][5]-($this->row_data[$index][3]+$this->row_data[$index][1]['paddingY']); |
| 904 | 859 | } |
| 905 | 860 | }); |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, |
|
| 9 | - ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, |
|
| 11 | - 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, |
|
| 12 | - 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | - chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, |
|
| 18 | - chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 7 | + chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, |
|
| 9 | + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, |
|
| 10 | + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, |
|
| 11 | + 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, |
|
| 12 | + 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, |
|
| 15 | + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | + chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, |
|
| 18 | + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, |
|
| 9 | - ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, |
|
| 11 | - 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, |
|
| 12 | - 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | - chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, |
|
| 18 | - chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 7 | + chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250, |
|
| 8 | + chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>555, '#'=>500, '$'=>500, '%'=>1000, '&'=>833, '\''=>278, '('=>333, ')'=>333, '*'=>500, '+'=>570, |
|
| 9 | + ','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>333, ';'=>333, '<'=>570, '='=>570, '>'=>570, '?'=>500, '@'=>930, 'A'=>722, |
|
| 10 | + 'B'=>667, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>778, 'I'=>389, 'J'=>500, 'K'=>778, 'L'=>667, 'M'=>944, 'N'=>722, 'O'=>778, 'P'=>611, 'Q'=>778, 'R'=>722, 'S'=>556, 'T'=>667, 'U'=>722, 'V'=>722, 'W'=>1000, |
|
| 11 | + 'X'=>722, 'Y'=>722, 'Z'=>667, '['=>333, '\\'=>278, ']'=>333, '^'=>581, '_'=>500, '`'=>333, 'a'=>500, 'b'=>556, 'c'=>444, 'd'=>556, 'e'=>444, 'f'=>333, 'g'=>500, 'h'=>556, 'i'=>278, 'j'=>333, 'k'=>556, 'l'=>278, 'm'=>833, |
|
| 12 | + 'n'=>556, 'o'=>500, 'p'=>556, 'q'=>556, 'r'=>444, 's'=>389, 't'=>333, 'u'=>556, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>444, '{'=>394, '|'=>220, '}'=>394, '~'=>520, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500, |
|
| 13 | + chr(132)=>500, chr(133)=>1000, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>556, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>667, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>500, chr(148)=>500, chr(149)=>350, chr(150)=>500, chr(151)=>1000, chr(152)=>333, chr(153)=>1000, |
|
| 14 | + chr(154)=>389, chr(155)=>333, chr(156)=>722, chr(157)=>350, chr(158)=>444, chr(159)=>722, chr(160)=>250, chr(161)=>333, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>220, chr(167)=>500, chr(168)=>333, chr(169)=>747, chr(170)=>300, chr(171)=>500, chr(172)=>570, chr(173)=>333, chr(174)=>747, chr(175)=>333, |
|
| 15 | + chr(176)=>400, chr(177)=>570, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>556, chr(182)=>540, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>330, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>500, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722, |
|
| 16 | + chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>389, chr(205)=>389, chr(206)=>389, chr(207)=>389, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>570, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722, |
|
| 17 | + chr(220)=>722, chr(221)=>722, chr(222)=>611, chr(223)=>556, chr(224)=>500, chr(225)=>500, chr(226)=>500, chr(227)=>500, chr(228)=>500, chr(229)=>500, chr(230)=>722, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>556, |
|
| 18 | + chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>570, chr(248)=>500, chr(249)=>556, chr(250)=>556, chr(251)=>556, chr(252)=>556, chr(253)=>500, chr(254)=>556, chr(255)=>500); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | -$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
|
| 20 | +$uv = array(0=>array(0, 128), 128=>8364, 130=>8218, 131=>402, 132=>8222, 133=>8230, 134=>array(8224, 2), 136=>710, 137=>8240, 138=>352, 139=>8249, 140=>338, 142=>381, 145=>array(8216, 2), 147=>array(8220, 2), 149=>8226, 150=>array(8211, 2), 152=>732, 153=>8482, 154=>353, 155=>8250, 156=>339, 158=>382, 159=>376, 160=>array(160, 96)); |
|
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, |
|
| 9 | - ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, |
|
| 10 | - 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, |
|
| 11 | - 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, |
|
| 12 | - 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | - chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, |
|
| 14 | - chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, |
|
| 16 | - chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, |
|
| 18 | - chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); |
|
| 7 | + chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, |
|
| 9 | + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, |
|
| 10 | + 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, |
|
| 11 | + 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, |
|
| 12 | + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | + chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, |
|
| 14 | + chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, |
|
| 15 | + chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, |
|
| 16 | + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | + chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, |
|
| 18 | + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, |
|
| 9 | - ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, |
|
| 10 | - 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, |
|
| 11 | - 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, |
|
| 12 | - 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, |
|
| 13 | - chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, |
|
| 14 | - chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, |
|
| 16 | - chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, |
|
| 18 | - chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); |
|
| 7 | + chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250, |
|
| 8 | + chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>420, '#'=>500, '$'=>500, '%'=>833, '&'=>778, '\''=>214, '('=>333, ')'=>333, '*'=>500, '+'=>675, |
|
| 9 | + ','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>333, ';'=>333, '<'=>675, '='=>675, '>'=>675, '?'=>500, '@'=>920, 'A'=>611, |
|
| 10 | + 'B'=>611, 'C'=>667, 'D'=>722, 'E'=>611, 'F'=>611, 'G'=>722, 'H'=>722, 'I'=>333, 'J'=>444, 'K'=>667, 'L'=>556, 'M'=>833, 'N'=>667, 'O'=>722, 'P'=>611, 'Q'=>722, 'R'=>611, 'S'=>500, 'T'=>556, 'U'=>722, 'V'=>611, 'W'=>833, |
|
| 11 | + 'X'=>611, 'Y'=>556, 'Z'=>556, '['=>389, '\\'=>278, ']'=>389, '^'=>422, '_'=>500, '`'=>333, 'a'=>500, 'b'=>500, 'c'=>444, 'd'=>500, 'e'=>444, 'f'=>278, 'g'=>500, 'h'=>500, 'i'=>278, 'j'=>278, 'k'=>444, 'l'=>278, 'm'=>722, |
|
| 12 | + 'n'=>500, 'o'=>500, 'p'=>500, 'q'=>500, 'r'=>389, 's'=>389, 't'=>278, 'u'=>500, 'v'=>444, 'w'=>667, 'x'=>444, 'y'=>444, 'z'=>389, '{'=>400, '|'=>275, '}'=>400, '~'=>541, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500, |
|
| 13 | + chr(132)=>556, chr(133)=>889, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>500, chr(139)=>333, chr(140)=>944, chr(141)=>350, chr(142)=>556, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>556, chr(148)=>556, chr(149)=>350, chr(150)=>500, chr(151)=>889, chr(152)=>333, chr(153)=>980, |
|
| 14 | + chr(154)=>389, chr(155)=>333, chr(156)=>667, chr(157)=>350, chr(158)=>389, chr(159)=>556, chr(160)=>250, chr(161)=>389, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>275, chr(167)=>500, chr(168)=>333, chr(169)=>760, chr(170)=>276, chr(171)=>500, chr(172)=>675, chr(173)=>333, chr(174)=>760, chr(175)=>333, |
|
| 15 | + chr(176)=>400, chr(177)=>675, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>500, chr(182)=>523, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>310, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>500, chr(192)=>611, chr(193)=>611, chr(194)=>611, chr(195)=>611, chr(196)=>611, chr(197)=>611, |
|
| 16 | + chr(198)=>889, chr(199)=>667, chr(200)=>611, chr(201)=>611, chr(202)=>611, chr(203)=>611, chr(204)=>333, chr(205)=>333, chr(206)=>333, chr(207)=>333, chr(208)=>722, chr(209)=>667, chr(210)=>722, chr(211)=>722, chr(212)=>722, chr(213)=>722, chr(214)=>722, chr(215)=>675, chr(216)=>722, chr(217)=>722, chr(218)=>722, chr(219)=>722, |
|
| 17 | + chr(220)=>722, chr(221)=>556, chr(222)=>611, chr(223)=>500, chr(224)=>500, chr(225)=>500, chr(226)=>500, chr(227)=>500, chr(228)=>500, chr(229)=>500, chr(230)=>667, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>500, |
|
| 18 | + chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>675, chr(248)=>500, chr(249)=>500, chr(250)=>500, chr(251)=>500, chr(252)=>500, chr(253)=>444, chr(254)=>500, chr(255)=>444); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | -$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
|
| 20 | +$uv = array(0=>array(0, 128), 128=>8364, 130=>8218, 131=>402, 132=>8222, 133=>8230, 134=>array(8224, 2), 136=>710, 137=>8240, 138=>352, 139=>8249, 140=>338, 142=>381, 145=>array(8216, 2), 147=>array(8220, 2), 149=>8226, 150=>array(8211, 2), 152=>732, 153=>8482, 154=>353, 155=>8250, 156=>339, 158=>382, 159=>376, 160=>array(160, 96)); |
|
| 21 | 21 | ?> |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, |
|
| 9 | - ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, |
|
| 11 | - 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, |
|
| 12 | - 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, |
|
| 13 | - chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, |
|
| 14 | - chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, |
|
| 15 | - chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, |
|
| 16 | - chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, |
|
| 17 | - chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, |
|
| 18 | - chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); |
|
| 7 | + chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, |
|
| 9 | + ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, |
|
| 10 | + 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, |
|
| 11 | + 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, |
|
| 12 | + 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, |
|
| 13 | + chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, |
|
| 14 | + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, |
|
| 15 | + chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, |
|
| 16 | + chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, |
|
| 17 | + chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, |
|
| 18 | + chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); |
|
| 19 | 19 | $uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9)); |
| 20 | 20 | ?> |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, |
|
| 8 | - chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, |
|
| 9 | - ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, |
|
| 11 | - 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, |
|
| 12 | - 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, |
|
| 13 | - chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, |
|
| 14 | - chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, |
|
| 15 | - chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, |
|
| 16 | - chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, |
|
| 17 | - chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, |
|
| 18 | - chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); |
|
| 19 | -$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9)); |
|
| 7 | + chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250, |
|
| 8 | + chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>713, '#'=>500, '$'=>549, '%'=>833, '&'=>778, '\''=>439, '('=>333, ')'=>333, '*'=>500, '+'=>549, |
|
| 9 | + ','=>250, '-'=>549, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>278, ';'=>278, '<'=>549, '='=>549, '>'=>549, '?'=>444, '@'=>549, 'A'=>722, |
|
| 10 | + 'B'=>667, 'C'=>722, 'D'=>612, 'E'=>611, 'F'=>763, 'G'=>603, 'H'=>722, 'I'=>333, 'J'=>631, 'K'=>722, 'L'=>686, 'M'=>889, 'N'=>722, 'O'=>722, 'P'=>768, 'Q'=>741, 'R'=>556, 'S'=>592, 'T'=>611, 'U'=>690, 'V'=>439, 'W'=>768, |
|
| 11 | + 'X'=>645, 'Y'=>795, 'Z'=>611, '['=>333, '\\'=>863, ']'=>333, '^'=>658, '_'=>500, '`'=>500, 'a'=>631, 'b'=>549, 'c'=>549, 'd'=>494, 'e'=>439, 'f'=>521, 'g'=>411, 'h'=>603, 'i'=>329, 'j'=>603, 'k'=>549, 'l'=>549, 'm'=>576, |
|
| 12 | + 'n'=>521, 'o'=>549, 'p'=>549, 'q'=>521, 'r'=>549, 's'=>603, 't'=>439, 'u'=>576, 'v'=>713, 'w'=>686, 'x'=>493, 'y'=>686, 'z'=>494, '{'=>480, '|'=>200, '}'=>480, '~'=>549, chr(127)=>0, chr(128)=>0, chr(129)=>0, chr(130)=>0, chr(131)=>0, |
|
| 13 | + chr(132)=>0, chr(133)=>0, chr(134)=>0, chr(135)=>0, chr(136)=>0, chr(137)=>0, chr(138)=>0, chr(139)=>0, chr(140)=>0, chr(141)=>0, chr(142)=>0, chr(143)=>0, chr(144)=>0, chr(145)=>0, chr(146)=>0, chr(147)=>0, chr(148)=>0, chr(149)=>0, chr(150)=>0, chr(151)=>0, chr(152)=>0, chr(153)=>0, |
|
| 14 | + chr(154)=>0, chr(155)=>0, chr(156)=>0, chr(157)=>0, chr(158)=>0, chr(159)=>0, chr(160)=>750, chr(161)=>620, chr(162)=>247, chr(163)=>549, chr(164)=>167, chr(165)=>713, chr(166)=>500, chr(167)=>753, chr(168)=>753, chr(169)=>753, chr(170)=>753, chr(171)=>1042, chr(172)=>987, chr(173)=>603, chr(174)=>987, chr(175)=>603, |
|
| 15 | + chr(176)=>400, chr(177)=>549, chr(178)=>411, chr(179)=>549, chr(180)=>549, chr(181)=>713, chr(182)=>494, chr(183)=>460, chr(184)=>549, chr(185)=>549, chr(186)=>549, chr(187)=>549, chr(188)=>1000, chr(189)=>603, chr(190)=>1000, chr(191)=>658, chr(192)=>823, chr(193)=>686, chr(194)=>795, chr(195)=>987, chr(196)=>768, chr(197)=>768, |
|
| 16 | + chr(198)=>823, chr(199)=>768, chr(200)=>768, chr(201)=>713, chr(202)=>713, chr(203)=>713, chr(204)=>713, chr(205)=>713, chr(206)=>713, chr(207)=>713, chr(208)=>768, chr(209)=>713, chr(210)=>790, chr(211)=>790, chr(212)=>890, chr(213)=>823, chr(214)=>549, chr(215)=>250, chr(216)=>713, chr(217)=>603, chr(218)=>603, chr(219)=>1042, |
|
| 17 | + chr(220)=>987, chr(221)=>603, chr(222)=>987, chr(223)=>603, chr(224)=>494, chr(225)=>329, chr(226)=>790, chr(227)=>790, chr(228)=>786, chr(229)=>713, chr(230)=>384, chr(231)=>384, chr(232)=>384, chr(233)=>384, chr(234)=>384, chr(235)=>384, chr(236)=>494, chr(237)=>494, chr(238)=>494, chr(239)=>494, chr(240)=>0, chr(241)=>329, |
|
| 18 | + chr(242)=>274, chr(243)=>686, chr(244)=>686, chr(245)=>686, chr(246)=>384, chr(247)=>384, chr(248)=>384, chr(249)=>384, chr(250)=>384, chr(251)=>384, chr(252)=>494, chr(253)=>494, chr(254)=>494, chr(255)=>0); |
|
| 19 | +$uv = array(32=>160, 33=>33, 34=>8704, 35=>35, 36=>8707, 37=>array(37, 2), 39=>8715, 40=>array(40, 2), 42=>8727, 43=>array(43, 2), 45=>8722, 46=>array(46, 18), 64=>8773, 65=>array(913, 2), 67=>935, 68=>array(916, 2), 70=>934, 71=>915, 72=>919, 73=>921, 74=>977, 75=>array(922, 4), 79=>array(927, 2), 81=>920, 82=>929, 83=>array(931, 3), 86=>962, 87=>937, 88=>926, 89=>936, 90=>918, 91=>91, 92=>8756, 93=>93, 94=>8869, 95=>95, 96=>63717, 97=>array(945, 2), 99=>967, 100=>array(948, 2), 102=>966, 103=>947, 104=>951, 105=>953, 106=>981, 107=>array(954, 4), 111=>array(959, 2), 113=>952, 114=>961, 115=>array(963, 3), 118=>982, 119=>969, 120=>958, 121=>968, 122=>950, 123=>array(123, 3), 126=>8764, 160=>8364, 161=>978, 162=>8242, 163=>8804, 164=>8725, 165=>8734, 166=>402, 167=>9827, 168=>9830, 169=>9829, 170=>9824, 171=>8596, 172=>array(8592, 4), 176=>array(176, 2), 178=>8243, 179=>8805, 180=>215, 181=>8733, 182=>8706, 183=>8226, 184=>247, 185=>array(8800, 2), 187=>8776, 188=>8230, 189=>array(63718, 2), 191=>8629, 192=>8501, 193=>8465, 194=>8476, 195=>8472, 196=>8855, 197=>8853, 198=>8709, 199=>array(8745, 2), 201=>8835, 202=>8839, 203=>8836, 204=>8834, 205=>8838, 206=>array(8712, 2), 208=>8736, 209=>8711, 210=>63194, 211=>63193, 212=>63195, 213=>8719, 214=>8730, 215=>8901, 216=>172, 217=>array(8743, 2), 219=>8660, 220=>array(8656, 4), 224=>9674, 225=>9001, 226=>array(63720, 3), 229=>8721, 230=>array(63723, 10), 241=>9002, 242=>8747, 243=>8992, 244=>63733, 245=>8993, 246=>array(63734, 9)); |
|
| 20 | 20 | ?> |
@@ -5,18 +5,18 @@ |
||
| 5 | 5 | $up = -68; |
| 6 | 6 | $ut = 103; |
| 7 | 7 | $cw = array( |
| 8 | - chr(0)=>1000,chr(1)=>1000,chr(2)=>1000,chr(3)=>1000,chr(4)=>1000,chr(5)=>1000,chr(6)=>1000,chr(7)=>1000,chr(8)=>1000,chr(9)=>1000,chr(10)=>1000,chr(11)=>1000,chr(12)=>1000,chr(13)=>1000,chr(14)=>1000,chr(15)=>1000,chr(16)=>1000,chr(17)=>1000,chr(18)=>1000,chr(19)=>1000,chr(20)=>1000,chr(21)=>1000, |
|
| 9 | - chr(22)=>1000,chr(23)=>1000,chr(24)=>1000,chr(25)=>1000,chr(26)=>1000,chr(27)=>1000,chr(28)=>1000,chr(29)=>1000,chr(30)=>1000,chr(31)=>1000,' '=>342,'!'=>402,'"'=>587,'#'=>867,'$'=>711,'%'=>1272,'&'=>862,'\''=>332,'('=>543,')'=>543,'*'=>711,'+'=>867, |
|
| 10 | - ','=>361,'-'=>480,'.'=>361,'/'=>689,'0'=>711,'1'=>711,'2'=>711,'3'=>711,'4'=>711,'5'=>711,'6'=>711,'7'=>711,'8'=>711,'9'=>711,':'=>402,';'=>402,'<'=>867,'='=>867,'>'=>867,'?'=>617,'@'=>964,'A'=>776, |
|
| 11 | - 'B'=>762,'C'=>724,'D'=>830,'E'=>683,'F'=>650,'G'=>811,'H'=>837,'I'=>546,'J'=>555,'K'=>771,'L'=>637,'M'=>948,'N'=>847,'O'=>850,'P'=>733,'Q'=>850,'R'=>782,'S'=>710,'T'=>682,'U'=>812,'V'=>764,'W'=>1128, |
|
| 12 | - 'X'=>764,'Y'=>737,'Z'=>692,'['=>543,'\\'=>689,']'=>543,'^'=>867,'_'=>711,'`'=>711,'a'=>668,'b'=>699,'c'=>588,'d'=>699,'e'=>664,'f'=>422,'g'=>699,'h'=>712,'i'=>342,'j'=>403,'k'=>671,'l'=>342,'m'=>1058, |
|
| 13 | - 'n'=>712,'o'=>687,'p'=>699,'q'=>699,'r'=>497,'s'=>593,'t'=>456,'u'=>712,'v'=>650,'w'=>979,'x'=>669,'y'=>651,'z'=>597,'{'=>711,'|'=>543,'}'=>711,'~'=>867,chr(127)=>1000,chr(128)=>711,chr(129)=>1000,chr(130)=>332,chr(131)=>711, |
|
| 14 | - chr(132)=>587,chr(133)=>1049,chr(134)=>711,chr(135)=>711,chr(136)=>711,chr(137)=>1777,chr(138)=>710,chr(139)=>543,chr(140)=>1135,chr(141)=>1000,chr(142)=>692,chr(143)=>1000,chr(144)=>1000,chr(145)=>332,chr(146)=>332,chr(147)=>587,chr(148)=>587,chr(149)=>711,chr(150)=>711,chr(151)=>1000,chr(152)=>711,chr(153)=>964, |
|
| 15 | - chr(154)=>593,chr(155)=>543,chr(156)=>1068,chr(157)=>1000,chr(158)=>597,chr(159)=>737,chr(160)=>342,chr(161)=>402,chr(162)=>711,chr(163)=>711,chr(164)=>711,chr(165)=>711,chr(166)=>543,chr(167)=>711,chr(168)=>711,chr(169)=>964,chr(170)=>598,chr(171)=>850,chr(172)=>867,chr(173)=>480,chr(174)=>964,chr(175)=>711, |
|
| 16 | - chr(176)=>587,chr(177)=>867,chr(178)=>598,chr(179)=>598,chr(180)=>711,chr(181)=>721,chr(182)=>711,chr(183)=>361,chr(184)=>711,chr(185)=>598,chr(186)=>598,chr(187)=>850,chr(188)=>1182,chr(189)=>1182,chr(190)=>1182,chr(191)=>617,chr(192)=>776,chr(193)=>776,chr(194)=>776,chr(195)=>776,chr(196)=>776,chr(197)=>776, |
|
| 17 | - chr(198)=>1094,chr(199)=>724,chr(200)=>683,chr(201)=>683,chr(202)=>683,chr(203)=>683,chr(204)=>546,chr(205)=>546,chr(206)=>546,chr(207)=>546,chr(208)=>830,chr(209)=>847,chr(210)=>850,chr(211)=>850,chr(212)=>850,chr(213)=>850,chr(214)=>850,chr(215)=>867,chr(216)=>850,chr(217)=>812,chr(218)=>812,chr(219)=>812, |
|
| 18 | - chr(220)=>812,chr(221)=>737,chr(222)=>735,chr(223)=>713,chr(224)=>668,chr(225)=>668,chr(226)=>668,chr(227)=>668,chr(228)=>668,chr(229)=>668,chr(230)=>1018,chr(231)=>588,chr(232)=>664,chr(233)=>664,chr(234)=>664,chr(235)=>664,chr(236)=>342,chr(237)=>342,chr(238)=>342,chr(239)=>342,chr(240)=>679,chr(241)=>712, |
|
| 19 | - chr(242)=>687,chr(243)=>687,chr(244)=>687,chr(245)=>687,chr(246)=>687,chr(247)=>867,chr(248)=>687,chr(249)=>712,chr(250)=>712,chr(251)=>712,chr(252)=>712,chr(253)=>651,chr(254)=>699,chr(255)=>651); |
|
| 8 | + chr(0)=>1000,chr(1)=>1000,chr(2)=>1000,chr(3)=>1000,chr(4)=>1000,chr(5)=>1000,chr(6)=>1000,chr(7)=>1000,chr(8)=>1000,chr(9)=>1000,chr(10)=>1000,chr(11)=>1000,chr(12)=>1000,chr(13)=>1000,chr(14)=>1000,chr(15)=>1000,chr(16)=>1000,chr(17)=>1000,chr(18)=>1000,chr(19)=>1000,chr(20)=>1000,chr(21)=>1000, |
|
| 9 | + chr(22)=>1000,chr(23)=>1000,chr(24)=>1000,chr(25)=>1000,chr(26)=>1000,chr(27)=>1000,chr(28)=>1000,chr(29)=>1000,chr(30)=>1000,chr(31)=>1000,' '=>342,'!'=>402,'"'=>587,'#'=>867,'$'=>711,'%'=>1272,'&'=>862,'\''=>332,'('=>543,')'=>543,'*'=>711,'+'=>867, |
|
| 10 | + ','=>361,'-'=>480,'.'=>361,'/'=>689,'0'=>711,'1'=>711,'2'=>711,'3'=>711,'4'=>711,'5'=>711,'6'=>711,'7'=>711,'8'=>711,'9'=>711,':'=>402,';'=>402,'<'=>867,'='=>867,'>'=>867,'?'=>617,'@'=>964,'A'=>776, |
|
| 11 | + 'B'=>762,'C'=>724,'D'=>830,'E'=>683,'F'=>650,'G'=>811,'H'=>837,'I'=>546,'J'=>555,'K'=>771,'L'=>637,'M'=>948,'N'=>847,'O'=>850,'P'=>733,'Q'=>850,'R'=>782,'S'=>710,'T'=>682,'U'=>812,'V'=>764,'W'=>1128, |
|
| 12 | + 'X'=>764,'Y'=>737,'Z'=>692,'['=>543,'\\'=>689,']'=>543,'^'=>867,'_'=>711,'`'=>711,'a'=>668,'b'=>699,'c'=>588,'d'=>699,'e'=>664,'f'=>422,'g'=>699,'h'=>712,'i'=>342,'j'=>403,'k'=>671,'l'=>342,'m'=>1058, |
|
| 13 | + 'n'=>712,'o'=>687,'p'=>699,'q'=>699,'r'=>497,'s'=>593,'t'=>456,'u'=>712,'v'=>650,'w'=>979,'x'=>669,'y'=>651,'z'=>597,'{'=>711,'|'=>543,'}'=>711,'~'=>867,chr(127)=>1000,chr(128)=>711,chr(129)=>1000,chr(130)=>332,chr(131)=>711, |
|
| 14 | + chr(132)=>587,chr(133)=>1049,chr(134)=>711,chr(135)=>711,chr(136)=>711,chr(137)=>1777,chr(138)=>710,chr(139)=>543,chr(140)=>1135,chr(141)=>1000,chr(142)=>692,chr(143)=>1000,chr(144)=>1000,chr(145)=>332,chr(146)=>332,chr(147)=>587,chr(148)=>587,chr(149)=>711,chr(150)=>711,chr(151)=>1000,chr(152)=>711,chr(153)=>964, |
|
| 15 | + chr(154)=>593,chr(155)=>543,chr(156)=>1068,chr(157)=>1000,chr(158)=>597,chr(159)=>737,chr(160)=>342,chr(161)=>402,chr(162)=>711,chr(163)=>711,chr(164)=>711,chr(165)=>711,chr(166)=>543,chr(167)=>711,chr(168)=>711,chr(169)=>964,chr(170)=>598,chr(171)=>850,chr(172)=>867,chr(173)=>480,chr(174)=>964,chr(175)=>711, |
|
| 16 | + chr(176)=>587,chr(177)=>867,chr(178)=>598,chr(179)=>598,chr(180)=>711,chr(181)=>721,chr(182)=>711,chr(183)=>361,chr(184)=>711,chr(185)=>598,chr(186)=>598,chr(187)=>850,chr(188)=>1182,chr(189)=>1182,chr(190)=>1182,chr(191)=>617,chr(192)=>776,chr(193)=>776,chr(194)=>776,chr(195)=>776,chr(196)=>776,chr(197)=>776, |
|
| 17 | + chr(198)=>1094,chr(199)=>724,chr(200)=>683,chr(201)=>683,chr(202)=>683,chr(203)=>683,chr(204)=>546,chr(205)=>546,chr(206)=>546,chr(207)=>546,chr(208)=>830,chr(209)=>847,chr(210)=>850,chr(211)=>850,chr(212)=>850,chr(213)=>850,chr(214)=>850,chr(215)=>867,chr(216)=>850,chr(217)=>812,chr(218)=>812,chr(219)=>812, |
|
| 18 | + chr(220)=>812,chr(221)=>737,chr(222)=>735,chr(223)=>713,chr(224)=>668,chr(225)=>668,chr(226)=>668,chr(227)=>668,chr(228)=>668,chr(229)=>668,chr(230)=>1018,chr(231)=>588,chr(232)=>664,chr(233)=>664,chr(234)=>664,chr(235)=>664,chr(236)=>342,chr(237)=>342,chr(238)=>342,chr(239)=>342,chr(240)=>679,chr(241)=>712, |
|
| 19 | + chr(242)=>687,chr(243)=>687,chr(244)=>687,chr(245)=>687,chr(246)=>687,chr(247)=>867,chr(248)=>687,chr(249)=>712,chr(250)=>712,chr(251)=>712,chr(252)=>712,chr(253)=>651,chr(254)=>699,chr(255)=>651); |
|
| 20 | 20 | $enc = 'cp1252'; |
| 21 | 21 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
| 22 | 22 | $file = 'verdanab.z'; |
@@ -1,24 +1,24 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $type = 'TrueType'; |
| 3 | 3 | $name = 'Verdana-Bold'; |
| 4 | -$desc = array('Ascent'=>765,'Descent'=>-207,'CapHeight'=>765,'Flags'=>32,'FontBBox'=>'[-73 -208 1707 1000]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>1000); |
|
| 4 | +$desc = array('Ascent'=>765, 'Descent'=>-207, 'CapHeight'=>765, 'Flags'=>32, 'FontBBox'=>'[-73 -208 1707 1000]', 'ItalicAngle'=>0, 'StemV'=>120, 'MissingWidth'=>1000); |
|
| 5 | 5 | $up = -68; |
| 6 | 6 | $ut = 103; |
| 7 | 7 | $cw = array( |
| 8 | - chr(0)=>1000,chr(1)=>1000,chr(2)=>1000,chr(3)=>1000,chr(4)=>1000,chr(5)=>1000,chr(6)=>1000,chr(7)=>1000,chr(8)=>1000,chr(9)=>1000,chr(10)=>1000,chr(11)=>1000,chr(12)=>1000,chr(13)=>1000,chr(14)=>1000,chr(15)=>1000,chr(16)=>1000,chr(17)=>1000,chr(18)=>1000,chr(19)=>1000,chr(20)=>1000,chr(21)=>1000, |
|
| 9 | - chr(22)=>1000,chr(23)=>1000,chr(24)=>1000,chr(25)=>1000,chr(26)=>1000,chr(27)=>1000,chr(28)=>1000,chr(29)=>1000,chr(30)=>1000,chr(31)=>1000,' '=>342,'!'=>402,'"'=>587,'#'=>867,'$'=>711,'%'=>1272,'&'=>862,'\''=>332,'('=>543,')'=>543,'*'=>711,'+'=>867, |
|
| 10 | - ','=>361,'-'=>480,'.'=>361,'/'=>689,'0'=>711,'1'=>711,'2'=>711,'3'=>711,'4'=>711,'5'=>711,'6'=>711,'7'=>711,'8'=>711,'9'=>711,':'=>402,';'=>402,'<'=>867,'='=>867,'>'=>867,'?'=>617,'@'=>964,'A'=>776, |
|
| 11 | - 'B'=>762,'C'=>724,'D'=>830,'E'=>683,'F'=>650,'G'=>811,'H'=>837,'I'=>546,'J'=>555,'K'=>771,'L'=>637,'M'=>948,'N'=>847,'O'=>850,'P'=>733,'Q'=>850,'R'=>782,'S'=>710,'T'=>682,'U'=>812,'V'=>764,'W'=>1128, |
|
| 12 | - 'X'=>764,'Y'=>737,'Z'=>692,'['=>543,'\\'=>689,']'=>543,'^'=>867,'_'=>711,'`'=>711,'a'=>668,'b'=>699,'c'=>588,'d'=>699,'e'=>664,'f'=>422,'g'=>699,'h'=>712,'i'=>342,'j'=>403,'k'=>671,'l'=>342,'m'=>1058, |
|
| 13 | - 'n'=>712,'o'=>687,'p'=>699,'q'=>699,'r'=>497,'s'=>593,'t'=>456,'u'=>712,'v'=>650,'w'=>979,'x'=>669,'y'=>651,'z'=>597,'{'=>711,'|'=>543,'}'=>711,'~'=>867,chr(127)=>1000,chr(128)=>711,chr(129)=>1000,chr(130)=>332,chr(131)=>711, |
|
| 14 | - chr(132)=>587,chr(133)=>1049,chr(134)=>711,chr(135)=>711,chr(136)=>711,chr(137)=>1777,chr(138)=>710,chr(139)=>543,chr(140)=>1135,chr(141)=>1000,chr(142)=>692,chr(143)=>1000,chr(144)=>1000,chr(145)=>332,chr(146)=>332,chr(147)=>587,chr(148)=>587,chr(149)=>711,chr(150)=>711,chr(151)=>1000,chr(152)=>711,chr(153)=>964, |
|
| 15 | - chr(154)=>593,chr(155)=>543,chr(156)=>1068,chr(157)=>1000,chr(158)=>597,chr(159)=>737,chr(160)=>342,chr(161)=>402,chr(162)=>711,chr(163)=>711,chr(164)=>711,chr(165)=>711,chr(166)=>543,chr(167)=>711,chr(168)=>711,chr(169)=>964,chr(170)=>598,chr(171)=>850,chr(172)=>867,chr(173)=>480,chr(174)=>964,chr(175)=>711, |
|
| 16 | - chr(176)=>587,chr(177)=>867,chr(178)=>598,chr(179)=>598,chr(180)=>711,chr(181)=>721,chr(182)=>711,chr(183)=>361,chr(184)=>711,chr(185)=>598,chr(186)=>598,chr(187)=>850,chr(188)=>1182,chr(189)=>1182,chr(190)=>1182,chr(191)=>617,chr(192)=>776,chr(193)=>776,chr(194)=>776,chr(195)=>776,chr(196)=>776,chr(197)=>776, |
|
| 17 | - chr(198)=>1094,chr(199)=>724,chr(200)=>683,chr(201)=>683,chr(202)=>683,chr(203)=>683,chr(204)=>546,chr(205)=>546,chr(206)=>546,chr(207)=>546,chr(208)=>830,chr(209)=>847,chr(210)=>850,chr(211)=>850,chr(212)=>850,chr(213)=>850,chr(214)=>850,chr(215)=>867,chr(216)=>850,chr(217)=>812,chr(218)=>812,chr(219)=>812, |
|
| 18 | - chr(220)=>812,chr(221)=>737,chr(222)=>735,chr(223)=>713,chr(224)=>668,chr(225)=>668,chr(226)=>668,chr(227)=>668,chr(228)=>668,chr(229)=>668,chr(230)=>1018,chr(231)=>588,chr(232)=>664,chr(233)=>664,chr(234)=>664,chr(235)=>664,chr(236)=>342,chr(237)=>342,chr(238)=>342,chr(239)=>342,chr(240)=>679,chr(241)=>712, |
|
| 19 | - chr(242)=>687,chr(243)=>687,chr(244)=>687,chr(245)=>687,chr(246)=>687,chr(247)=>867,chr(248)=>687,chr(249)=>712,chr(250)=>712,chr(251)=>712,chr(252)=>712,chr(253)=>651,chr(254)=>699,chr(255)=>651); |
|
| 8 | + chr(0)=>1000, chr(1)=>1000, chr(2)=>1000, chr(3)=>1000, chr(4)=>1000, chr(5)=>1000, chr(6)=>1000, chr(7)=>1000, chr(8)=>1000, chr(9)=>1000, chr(10)=>1000, chr(11)=>1000, chr(12)=>1000, chr(13)=>1000, chr(14)=>1000, chr(15)=>1000, chr(16)=>1000, chr(17)=>1000, chr(18)=>1000, chr(19)=>1000, chr(20)=>1000, chr(21)=>1000, |
|
| 9 | + chr(22)=>1000, chr(23)=>1000, chr(24)=>1000, chr(25)=>1000, chr(26)=>1000, chr(27)=>1000, chr(28)=>1000, chr(29)=>1000, chr(30)=>1000, chr(31)=>1000, ' '=>342, '!'=>402, '"'=>587, '#'=>867, '$'=>711, '%'=>1272, '&'=>862, '\''=>332, '('=>543, ')'=>543, '*'=>711, '+'=>867, |
|
| 10 | + ','=>361, '-'=>480, '.'=>361, '/'=>689, '0'=>711, '1'=>711, '2'=>711, '3'=>711, '4'=>711, '5'=>711, '6'=>711, '7'=>711, '8'=>711, '9'=>711, ':'=>402, ';'=>402, '<'=>867, '='=>867, '>'=>867, '?'=>617, '@'=>964, 'A'=>776, |
|
| 11 | + 'B'=>762, 'C'=>724, 'D'=>830, 'E'=>683, 'F'=>650, 'G'=>811, 'H'=>837, 'I'=>546, 'J'=>555, 'K'=>771, 'L'=>637, 'M'=>948, 'N'=>847, 'O'=>850, 'P'=>733, 'Q'=>850, 'R'=>782, 'S'=>710, 'T'=>682, 'U'=>812, 'V'=>764, 'W'=>1128, |
|
| 12 | + 'X'=>764, 'Y'=>737, 'Z'=>692, '['=>543, '\\'=>689, ']'=>543, '^'=>867, '_'=>711, '`'=>711, 'a'=>668, 'b'=>699, 'c'=>588, 'd'=>699, 'e'=>664, 'f'=>422, 'g'=>699, 'h'=>712, 'i'=>342, 'j'=>403, 'k'=>671, 'l'=>342, 'm'=>1058, |
|
| 13 | + 'n'=>712, 'o'=>687, 'p'=>699, 'q'=>699, 'r'=>497, 's'=>593, 't'=>456, 'u'=>712, 'v'=>650, 'w'=>979, 'x'=>669, 'y'=>651, 'z'=>597, '{'=>711, '|'=>543, '}'=>711, '~'=>867, chr(127)=>1000, chr(128)=>711, chr(129)=>1000, chr(130)=>332, chr(131)=>711, |
|
| 14 | + chr(132)=>587, chr(133)=>1049, chr(134)=>711, chr(135)=>711, chr(136)=>711, chr(137)=>1777, chr(138)=>710, chr(139)=>543, chr(140)=>1135, chr(141)=>1000, chr(142)=>692, chr(143)=>1000, chr(144)=>1000, chr(145)=>332, chr(146)=>332, chr(147)=>587, chr(148)=>587, chr(149)=>711, chr(150)=>711, chr(151)=>1000, chr(152)=>711, chr(153)=>964, |
|
| 15 | + chr(154)=>593, chr(155)=>543, chr(156)=>1068, chr(157)=>1000, chr(158)=>597, chr(159)=>737, chr(160)=>342, chr(161)=>402, chr(162)=>711, chr(163)=>711, chr(164)=>711, chr(165)=>711, chr(166)=>543, chr(167)=>711, chr(168)=>711, chr(169)=>964, chr(170)=>598, chr(171)=>850, chr(172)=>867, chr(173)=>480, chr(174)=>964, chr(175)=>711, |
|
| 16 | + chr(176)=>587, chr(177)=>867, chr(178)=>598, chr(179)=>598, chr(180)=>711, chr(181)=>721, chr(182)=>711, chr(183)=>361, chr(184)=>711, chr(185)=>598, chr(186)=>598, chr(187)=>850, chr(188)=>1182, chr(189)=>1182, chr(190)=>1182, chr(191)=>617, chr(192)=>776, chr(193)=>776, chr(194)=>776, chr(195)=>776, chr(196)=>776, chr(197)=>776, |
|
| 17 | + chr(198)=>1094, chr(199)=>724, chr(200)=>683, chr(201)=>683, chr(202)=>683, chr(203)=>683, chr(204)=>546, chr(205)=>546, chr(206)=>546, chr(207)=>546, chr(208)=>830, chr(209)=>847, chr(210)=>850, chr(211)=>850, chr(212)=>850, chr(213)=>850, chr(214)=>850, chr(215)=>867, chr(216)=>850, chr(217)=>812, chr(218)=>812, chr(219)=>812, |
|
| 18 | + chr(220)=>812, chr(221)=>737, chr(222)=>735, chr(223)=>713, chr(224)=>668, chr(225)=>668, chr(226)=>668, chr(227)=>668, chr(228)=>668, chr(229)=>668, chr(230)=>1018, chr(231)=>588, chr(232)=>664, chr(233)=>664, chr(234)=>664, chr(235)=>664, chr(236)=>342, chr(237)=>342, chr(238)=>342, chr(239)=>342, chr(240)=>679, chr(241)=>712, |
|
| 19 | + chr(242)=>687, chr(243)=>687, chr(244)=>687, chr(245)=>687, chr(246)=>687, chr(247)=>867, chr(248)=>687, chr(249)=>712, chr(250)=>712, chr(251)=>712, chr(252)=>712, chr(253)=>651, chr(254)=>699, chr(255)=>651); |
|
| 20 | 20 | $enc = 'cp1252'; |
| 21 | -$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
|
| 21 | +$uv = array(0=>array(0, 128), 128=>8364, 130=>8218, 131=>402, 132=>8222, 133=>8230, 134=>array(8224, 2), 136=>710, 137=>8240, 138=>352, 139=>8249, 140=>338, 142=>381, 145=>array(8216, 2), 147=>array(8220, 2), 149=>8226, 150=>array(8211, 2), 152=>732, 153=>8482, 154=>353, 155=>8250, 156=>339, 158=>382, 159=>376, 160=>array(160, 96)); |
|
| 22 | 22 | $file = 'verdanab.z'; |
| 23 | 23 | $originalsize = 42392; |
| 24 | 24 | $subsetted = true; |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | - chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 10 | - 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 12 | - 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, |
|
| 13 | - chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, |
|
| 18 | - chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); |
|
| 7 | + chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 10 | + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 12 | + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, |
|
| 13 | + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, |
|
| 18 | + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | - chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 10 | - 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 12 | - 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, |
|
| 13 | - chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, |
|
| 18 | - chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); |
|
| 7 | + chr(0)=>278, chr(1)=>278, chr(2)=>278, chr(3)=>278, chr(4)=>278, chr(5)=>278, chr(6)=>278, chr(7)=>278, chr(8)=>278, chr(9)=>278, chr(10)=>278, chr(11)=>278, chr(12)=>278, chr(13)=>278, chr(14)=>278, chr(15)=>278, chr(16)=>278, chr(17)=>278, chr(18)=>278, chr(19)=>278, chr(20)=>278, chr(21)=>278, |
|
| 8 | + chr(22)=>278, chr(23)=>278, chr(24)=>278, chr(25)=>278, chr(26)=>278, chr(27)=>278, chr(28)=>278, chr(29)=>278, chr(30)=>278, chr(31)=>278, ' '=>278, '!'=>333, '"'=>474, '#'=>556, '$'=>556, '%'=>889, '&'=>722, '\''=>238, '('=>333, ')'=>333, '*'=>389, '+'=>584, |
|
| 9 | + ','=>278, '-'=>333, '.'=>278, '/'=>278, '0'=>556, '1'=>556, '2'=>556, '3'=>556, '4'=>556, '5'=>556, '6'=>556, '7'=>556, '8'=>556, '9'=>556, ':'=>333, ';'=>333, '<'=>584, '='=>584, '>'=>584, '?'=>611, '@'=>975, 'A'=>722, |
|
| 10 | + 'B'=>722, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>722, 'I'=>278, 'J'=>556, 'K'=>722, 'L'=>611, 'M'=>833, 'N'=>722, 'O'=>778, 'P'=>667, 'Q'=>778, 'R'=>722, 'S'=>667, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>944, |
|
| 11 | + 'X'=>667, 'Y'=>667, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>584, '_'=>556, '`'=>333, 'a'=>556, 'b'=>611, 'c'=>556, 'd'=>611, 'e'=>556, 'f'=>333, 'g'=>611, 'h'=>611, 'i'=>278, 'j'=>278, 'k'=>556, 'l'=>278, 'm'=>889, |
|
| 12 | + 'n'=>611, 'o'=>611, 'p'=>611, 'q'=>611, 'r'=>389, 's'=>556, 't'=>333, 'u'=>611, 'v'=>556, 'w'=>778, 'x'=>556, 'y'=>556, 'z'=>500, '{'=>389, '|'=>280, '}'=>389, '~'=>584, chr(127)=>350, chr(128)=>556, chr(129)=>350, chr(130)=>278, chr(131)=>556, |
|
| 13 | + chr(132)=>500, chr(133)=>1000, chr(134)=>556, chr(135)=>556, chr(136)=>333, chr(137)=>1000, chr(138)=>667, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>278, chr(146)=>278, chr(147)=>500, chr(148)=>500, chr(149)=>350, chr(150)=>556, chr(151)=>1000, chr(152)=>333, chr(153)=>1000, |
|
| 14 | + chr(154)=>556, chr(155)=>333, chr(156)=>944, chr(157)=>350, chr(158)=>500, chr(159)=>667, chr(160)=>278, chr(161)=>333, chr(162)=>556, chr(163)=>556, chr(164)=>556, chr(165)=>556, chr(166)=>280, chr(167)=>556, chr(168)=>333, chr(169)=>737, chr(170)=>370, chr(171)=>556, chr(172)=>584, chr(173)=>333, chr(174)=>737, chr(175)=>333, |
|
| 15 | + chr(176)=>400, chr(177)=>584, chr(178)=>333, chr(179)=>333, chr(180)=>333, chr(181)=>611, chr(182)=>556, chr(183)=>278, chr(184)=>333, chr(185)=>333, chr(186)=>365, chr(187)=>556, chr(188)=>834, chr(189)=>834, chr(190)=>834, chr(191)=>611, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722, |
|
| 16 | + chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>278, chr(205)=>278, chr(206)=>278, chr(207)=>278, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>584, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722, |
|
| 17 | + chr(220)=>722, chr(221)=>667, chr(222)=>667, chr(223)=>611, chr(224)=>556, chr(225)=>556, chr(226)=>556, chr(227)=>556, chr(228)=>556, chr(229)=>556, chr(230)=>889, chr(231)=>556, chr(232)=>556, chr(233)=>556, chr(234)=>556, chr(235)=>556, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>611, chr(241)=>611, |
|
| 18 | + chr(242)=>611, chr(243)=>611, chr(244)=>611, chr(245)=>611, chr(246)=>611, chr(247)=>584, chr(248)=>611, chr(249)=>611, chr(250)=>611, chr(251)=>611, chr(252)=>611, chr(253)=>556, chr(254)=>611, chr(255)=>556); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | -$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
|
| 20 | +$uv = array(0=>array(0, 128), 128=>8364, 130=>8218, 131=>402, 132=>8222, 133=>8230, 134=>array(8224, 2), 136=>710, 137=>8240, 138=>352, 139=>8249, 140=>338, 142=>381, 145=>array(8216, 2), 147=>array(8220, 2), 149=>8226, 150=>array(8211, 2), 152=>732, 153=>8482, 154=>353, 155=>8250, 156=>339, 158=>382, 159=>376, 160=>array(160, 96)); |
|
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | - chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, |
|
| 12 | - 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, |
|
| 13 | - chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, |
|
| 18 | - chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 7 | + chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, |
|
| 10 | + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, |
|
| 12 | + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, |
|
| 13 | + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, |
|
| 16 | + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, |
|
| 18 | + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | 20 | $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
| 21 | 21 | ?> |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | 6 | $cw = array( |
| 7 | - chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, |
|
| 8 | - chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 9 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, |
|
| 10 | - 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 11 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, |
|
| 12 | - 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, |
|
| 13 | - chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, |
|
| 14 | - chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, |
|
| 15 | - chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, |
|
| 16 | - chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, |
|
| 17 | - chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, |
|
| 18 | - chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); |
|
| 7 | + chr(0)=>278, chr(1)=>278, chr(2)=>278, chr(3)=>278, chr(4)=>278, chr(5)=>278, chr(6)=>278, chr(7)=>278, chr(8)=>278, chr(9)=>278, chr(10)=>278, chr(11)=>278, chr(12)=>278, chr(13)=>278, chr(14)=>278, chr(15)=>278, chr(16)=>278, chr(17)=>278, chr(18)=>278, chr(19)=>278, chr(20)=>278, chr(21)=>278, |
|
| 8 | + chr(22)=>278, chr(23)=>278, chr(24)=>278, chr(25)=>278, chr(26)=>278, chr(27)=>278, chr(28)=>278, chr(29)=>278, chr(30)=>278, chr(31)=>278, ' '=>278, '!'=>278, '"'=>355, '#'=>556, '$'=>556, '%'=>889, '&'=>667, '\''=>191, '('=>333, ')'=>333, '*'=>389, '+'=>584, |
|
| 9 | + ','=>278, '-'=>333, '.'=>278, '/'=>278, '0'=>556, '1'=>556, '2'=>556, '3'=>556, '4'=>556, '5'=>556, '6'=>556, '7'=>556, '8'=>556, '9'=>556, ':'=>278, ';'=>278, '<'=>584, '='=>584, '>'=>584, '?'=>556, '@'=>1015, 'A'=>667, |
|
| 10 | + 'B'=>667, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>722, 'I'=>278, 'J'=>500, 'K'=>667, 'L'=>556, 'M'=>833, 'N'=>722, 'O'=>778, 'P'=>667, 'Q'=>778, 'R'=>722, 'S'=>667, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>944, |
|
| 11 | + 'X'=>667, 'Y'=>667, 'Z'=>611, '['=>278, '\\'=>278, ']'=>278, '^'=>469, '_'=>556, '`'=>333, 'a'=>556, 'b'=>556, 'c'=>500, 'd'=>556, 'e'=>556, 'f'=>278, 'g'=>556, 'h'=>556, 'i'=>222, 'j'=>222, 'k'=>500, 'l'=>222, 'm'=>833, |
|
| 12 | + 'n'=>556, 'o'=>556, 'p'=>556, 'q'=>556, 'r'=>333, 's'=>500, 't'=>278, 'u'=>556, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>500, '{'=>334, '|'=>260, '}'=>334, '~'=>584, chr(127)=>350, chr(128)=>556, chr(129)=>350, chr(130)=>222, chr(131)=>556, |
|
| 13 | + chr(132)=>333, chr(133)=>1000, chr(134)=>556, chr(135)=>556, chr(136)=>333, chr(137)=>1000, chr(138)=>667, chr(139)=>333, chr(140)=>1000, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>222, chr(146)=>222, chr(147)=>333, chr(148)=>333, chr(149)=>350, chr(150)=>556, chr(151)=>1000, chr(152)=>333, chr(153)=>1000, |
|
| 14 | + chr(154)=>500, chr(155)=>333, chr(156)=>944, chr(157)=>350, chr(158)=>500, chr(159)=>667, chr(160)=>278, chr(161)=>333, chr(162)=>556, chr(163)=>556, chr(164)=>556, chr(165)=>556, chr(166)=>260, chr(167)=>556, chr(168)=>333, chr(169)=>737, chr(170)=>370, chr(171)=>556, chr(172)=>584, chr(173)=>333, chr(174)=>737, chr(175)=>333, |
|
| 15 | + chr(176)=>400, chr(177)=>584, chr(178)=>333, chr(179)=>333, chr(180)=>333, chr(181)=>556, chr(182)=>537, chr(183)=>278, chr(184)=>333, chr(185)=>333, chr(186)=>365, chr(187)=>556, chr(188)=>834, chr(189)=>834, chr(190)=>834, chr(191)=>611, chr(192)=>667, chr(193)=>667, chr(194)=>667, chr(195)=>667, chr(196)=>667, chr(197)=>667, |
|
| 16 | + chr(198)=>1000, chr(199)=>722, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>278, chr(205)=>278, chr(206)=>278, chr(207)=>278, chr(208)=>722, chr(209)=>722, chr(210)=>778, chr(211)=>778, chr(212)=>778, chr(213)=>778, chr(214)=>778, chr(215)=>584, chr(216)=>778, chr(217)=>722, chr(218)=>722, chr(219)=>722, |
|
| 17 | + chr(220)=>722, chr(221)=>667, chr(222)=>667, chr(223)=>611, chr(224)=>556, chr(225)=>556, chr(226)=>556, chr(227)=>556, chr(228)=>556, chr(229)=>556, chr(230)=>889, chr(231)=>500, chr(232)=>556, chr(233)=>556, chr(234)=>556, chr(235)=>556, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>556, chr(241)=>556, |
|
| 18 | + chr(242)=>556, chr(243)=>556, chr(244)=>556, chr(245)=>556, chr(246)=>556, chr(247)=>584, chr(248)=>611, chr(249)=>556, chr(250)=>556, chr(251)=>556, chr(252)=>556, chr(253)=>500, chr(254)=>556, chr(255)=>500); |
|
| 19 | 19 | $enc = 'cp1252'; |
| 20 | -$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); |
|
| 20 | +$uv = array(0=>array(0, 128), 128=>8364, 130=>8218, 131=>402, 132=>8222, 133=>8230, 134=>array(8224, 2), 136=>710, 137=>8240, 138=>352, 139=>8249, 140=>338, 142=>381, 145=>array(8216, 2), 147=>array(8220, 2), 149=>8226, 150=>array(8211, 2), 152=>732, 153=>8482, 154=>353, 155=>8250, 156=>339, 158=>382, 159=>376, 160=>array(160, 96)); |
|
| 21 | 21 | ?> |
@@ -1,22 +1,22 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $type = 'TrueType'; |
| 3 | 3 | $name = 'Verdana'; |
| 4 | -$desc = array('Ascent'=>765,'Descent'=>-207,'CapHeight'=>727,'Flags'=>32,'FontBBox'=>'[-560 -303 1447 1051]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>1000); |
|
| 4 | +$desc = array('Ascent'=>765, 'Descent'=>-207, 'CapHeight'=>727, 'Flags'=>32, 'FontBBox'=>'[-560 -303 1447 1051]', 'ItalicAngle'=>0, 'StemV'=>70, 'MissingWidth'=>1000); |
|
| 5 | 5 | $up = -88; |
| 6 | 6 | $ut = 59; |
| 7 | 7 | $cw = array( |
| 8 | - chr(0)=>1000,chr(1)=>1000,chr(2)=>1000,chr(3)=>1000,chr(4)=>1000,chr(5)=>1000,chr(6)=>1000,chr(7)=>1000,chr(8)=>1000,chr(9)=>1000,chr(10)=>1000,chr(11)=>1000,chr(12)=>1000,chr(13)=>1000,chr(14)=>1000,chr(15)=>1000,chr(16)=>1000,chr(17)=>1000,chr(18)=>1000,chr(19)=>1000,chr(20)=>1000,chr(21)=>1000, |
|
| 9 | - chr(22)=>1000,chr(23)=>1000,chr(24)=>1000,chr(25)=>1000,chr(26)=>1000,chr(27)=>1000,chr(28)=>1000,chr(29)=>1000,chr(30)=>1000,chr(31)=>1000,' '=>352,'!'=>394,'"'=>459,'#'=>818,'$'=>636,'%'=>1076,'&'=>727,'\''=>269,'('=>454,')'=>454,'*'=>636,'+'=>818, |
|
| 10 | - ','=>364,'-'=>454,'.'=>364,'/'=>454,'0'=>636,'1'=>636,'2'=>636,'3'=>636,'4'=>636,'5'=>636,'6'=>636,'7'=>636,'8'=>636,'9'=>636,':'=>454,';'=>454,'<'=>818,'='=>818,'>'=>818,'?'=>545,'@'=>1000,'A'=>684, |
|
| 11 | - 'B'=>686,'C'=>698,'D'=>771,'E'=>632,'F'=>575,'G'=>775,'H'=>751,'I'=>421,'J'=>455,'K'=>693,'L'=>557,'M'=>843,'N'=>748,'O'=>787,'P'=>603,'Q'=>787,'R'=>695,'S'=>684,'T'=>616,'U'=>732,'V'=>684,'W'=>989, |
|
| 12 | - 'X'=>685,'Y'=>615,'Z'=>685,'['=>454,'\\'=>454,']'=>454,'^'=>818,'_'=>636,'`'=>636,'a'=>601,'b'=>623,'c'=>521,'d'=>623,'e'=>596,'f'=>352,'g'=>623,'h'=>633,'i'=>274,'j'=>344,'k'=>592,'l'=>274,'m'=>973, |
|
| 13 | - 'n'=>633,'o'=>607,'p'=>623,'q'=>623,'r'=>427,'s'=>521,'t'=>394,'u'=>633,'v'=>592,'w'=>818,'x'=>592,'y'=>592,'z'=>525,'{'=>635,'|'=>454,'}'=>635,'~'=>818,chr(127)=>1000,chr(128)=>1000,chr(129)=>1000,chr(130)=>1000,chr(131)=>1000, |
|
| 14 | - chr(132)=>1000,chr(133)=>1000,chr(134)=>1000,chr(135)=>1000,chr(136)=>1000,chr(137)=>1000,chr(138)=>1000,chr(139)=>1000,chr(140)=>1000,chr(141)=>1000,chr(142)=>1000,chr(143)=>1000,chr(144)=>1000,chr(145)=>1000,chr(146)=>1000,chr(147)=>1000,chr(148)=>1000,chr(149)=>1000,chr(150)=>1000,chr(151)=>1000,chr(152)=>1000,chr(153)=>1000, |
|
| 15 | - chr(154)=>1000,chr(155)=>1000,chr(156)=>1000,chr(157)=>1000,chr(158)=>1000,chr(159)=>1000,chr(160)=>352,chr(161)=>394,chr(162)=>636,chr(163)=>636,chr(164)=>636,chr(165)=>636,chr(166)=>454,chr(167)=>636,chr(168)=>636,chr(169)=>1000,chr(170)=>545,chr(171)=>645,chr(172)=>818,chr(173)=>454,chr(174)=>1000,chr(175)=>636, |
|
| 16 | - chr(176)=>542,chr(177)=>818,chr(178)=>542,chr(179)=>542,chr(180)=>636,chr(181)=>642,chr(182)=>636,chr(183)=>364,chr(184)=>636,chr(185)=>542,chr(186)=>545,chr(187)=>645,chr(188)=>1000,chr(189)=>1000,chr(190)=>1000,chr(191)=>545,chr(192)=>684,chr(193)=>684,chr(194)=>684,chr(195)=>684,chr(196)=>684,chr(197)=>684, |
|
| 17 | - chr(198)=>984,chr(199)=>698,chr(200)=>632,chr(201)=>632,chr(202)=>632,chr(203)=>632,chr(204)=>421,chr(205)=>421,chr(206)=>421,chr(207)=>421,chr(208)=>775,chr(209)=>748,chr(210)=>787,chr(211)=>787,chr(212)=>787,chr(213)=>787,chr(214)=>787,chr(215)=>818,chr(216)=>787,chr(217)=>732,chr(218)=>732,chr(219)=>732, |
|
| 18 | - chr(220)=>732,chr(221)=>615,chr(222)=>605,chr(223)=>620,chr(224)=>601,chr(225)=>601,chr(226)=>601,chr(227)=>601,chr(228)=>601,chr(229)=>601,chr(230)=>955,chr(231)=>521,chr(232)=>596,chr(233)=>596,chr(234)=>596,chr(235)=>596,chr(236)=>274,chr(237)=>274,chr(238)=>274,chr(239)=>274,chr(240)=>612,chr(241)=>633, |
|
| 19 | - chr(242)=>607,chr(243)=>607,chr(244)=>607,chr(245)=>607,chr(246)=>607,chr(247)=>818,chr(248)=>607,chr(249)=>633,chr(250)=>633,chr(251)=>633,chr(252)=>633,chr(253)=>592,chr(254)=>623,chr(255)=>592); |
|
| 8 | + chr(0)=>1000, chr(1)=>1000, chr(2)=>1000, chr(3)=>1000, chr(4)=>1000, chr(5)=>1000, chr(6)=>1000, chr(7)=>1000, chr(8)=>1000, chr(9)=>1000, chr(10)=>1000, chr(11)=>1000, chr(12)=>1000, chr(13)=>1000, chr(14)=>1000, chr(15)=>1000, chr(16)=>1000, chr(17)=>1000, chr(18)=>1000, chr(19)=>1000, chr(20)=>1000, chr(21)=>1000, |
|
| 9 | + chr(22)=>1000, chr(23)=>1000, chr(24)=>1000, chr(25)=>1000, chr(26)=>1000, chr(27)=>1000, chr(28)=>1000, chr(29)=>1000, chr(30)=>1000, chr(31)=>1000, ' '=>352, '!'=>394, '"'=>459, '#'=>818, '$'=>636, '%'=>1076, '&'=>727, '\''=>269, '('=>454, ')'=>454, '*'=>636, '+'=>818, |
|
| 10 | + ','=>364, '-'=>454, '.'=>364, '/'=>454, '0'=>636, '1'=>636, '2'=>636, '3'=>636, '4'=>636, '5'=>636, '6'=>636, '7'=>636, '8'=>636, '9'=>636, ':'=>454, ';'=>454, '<'=>818, '='=>818, '>'=>818, '?'=>545, '@'=>1000, 'A'=>684, |
|
| 11 | + 'B'=>686, 'C'=>698, 'D'=>771, 'E'=>632, 'F'=>575, 'G'=>775, 'H'=>751, 'I'=>421, 'J'=>455, 'K'=>693, 'L'=>557, 'M'=>843, 'N'=>748, 'O'=>787, 'P'=>603, 'Q'=>787, 'R'=>695, 'S'=>684, 'T'=>616, 'U'=>732, 'V'=>684, 'W'=>989, |
|
| 12 | + 'X'=>685, 'Y'=>615, 'Z'=>685, '['=>454, '\\'=>454, ']'=>454, '^'=>818, '_'=>636, '`'=>636, 'a'=>601, 'b'=>623, 'c'=>521, 'd'=>623, 'e'=>596, 'f'=>352, 'g'=>623, 'h'=>633, 'i'=>274, 'j'=>344, 'k'=>592, 'l'=>274, 'm'=>973, |
|
| 13 | + 'n'=>633, 'o'=>607, 'p'=>623, 'q'=>623, 'r'=>427, 's'=>521, 't'=>394, 'u'=>633, 'v'=>592, 'w'=>818, 'x'=>592, 'y'=>592, 'z'=>525, '{'=>635, '|'=>454, '}'=>635, '~'=>818, chr(127)=>1000, chr(128)=>1000, chr(129)=>1000, chr(130)=>1000, chr(131)=>1000, |
|
| 14 | + chr(132)=>1000, chr(133)=>1000, chr(134)=>1000, chr(135)=>1000, chr(136)=>1000, chr(137)=>1000, chr(138)=>1000, chr(139)=>1000, chr(140)=>1000, chr(141)=>1000, chr(142)=>1000, chr(143)=>1000, chr(144)=>1000, chr(145)=>1000, chr(146)=>1000, chr(147)=>1000, chr(148)=>1000, chr(149)=>1000, chr(150)=>1000, chr(151)=>1000, chr(152)=>1000, chr(153)=>1000, |
|
| 15 | + chr(154)=>1000, chr(155)=>1000, chr(156)=>1000, chr(157)=>1000, chr(158)=>1000, chr(159)=>1000, chr(160)=>352, chr(161)=>394, chr(162)=>636, chr(163)=>636, chr(164)=>636, chr(165)=>636, chr(166)=>454, chr(167)=>636, chr(168)=>636, chr(169)=>1000, chr(170)=>545, chr(171)=>645, chr(172)=>818, chr(173)=>454, chr(174)=>1000, chr(175)=>636, |
|
| 16 | + chr(176)=>542, chr(177)=>818, chr(178)=>542, chr(179)=>542, chr(180)=>636, chr(181)=>642, chr(182)=>636, chr(183)=>364, chr(184)=>636, chr(185)=>542, chr(186)=>545, chr(187)=>645, chr(188)=>1000, chr(189)=>1000, chr(190)=>1000, chr(191)=>545, chr(192)=>684, chr(193)=>684, chr(194)=>684, chr(195)=>684, chr(196)=>684, chr(197)=>684, |
|
| 17 | + chr(198)=>984, chr(199)=>698, chr(200)=>632, chr(201)=>632, chr(202)=>632, chr(203)=>632, chr(204)=>421, chr(205)=>421, chr(206)=>421, chr(207)=>421, chr(208)=>775, chr(209)=>748, chr(210)=>787, chr(211)=>787, chr(212)=>787, chr(213)=>787, chr(214)=>787, chr(215)=>818, chr(216)=>787, chr(217)=>732, chr(218)=>732, chr(219)=>732, |
|
| 18 | + chr(220)=>732, chr(221)=>615, chr(222)=>605, chr(223)=>620, chr(224)=>601, chr(225)=>601, chr(226)=>601, chr(227)=>601, chr(228)=>601, chr(229)=>601, chr(230)=>955, chr(231)=>521, chr(232)=>596, chr(233)=>596, chr(234)=>596, chr(235)=>596, chr(236)=>274, chr(237)=>274, chr(238)=>274, chr(239)=>274, chr(240)=>612, chr(241)=>633, |
|
| 19 | + chr(242)=>607, chr(243)=>607, chr(244)=>607, chr(245)=>607, chr(246)=>607, chr(247)=>818, chr(248)=>607, chr(249)=>633, chr(250)=>633, chr(251)=>633, chr(252)=>633, chr(253)=>592, chr(254)=>623, chr(255)=>592); |
|
| 20 | 20 | $enc = 'ISO-8859-1'; |
| 21 | 21 | $diff = '128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef'; |
| 22 | 22 | $file = 'verdana.z'; |
@@ -5,18 +5,18 @@ |
||
| 5 | 5 | $up = -106; |
| 6 | 6 | $ut = 105; |
| 7 | 7 | $cw = array( |
| 8 | - chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750, |
|
| 9 | - chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 10 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 11 | - 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 12 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 13 | - 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>750,chr(128)=>708,chr(129)=>625,chr(130)=>708,chr(131)=>708, |
|
| 14 | - chr(132)=>708,chr(133)=>708,chr(134)=>708,chr(135)=>708,chr(136)=>708,chr(137)=>708,chr(138)=>708,chr(139)=>708,chr(140)=>708,chr(141)=>708,chr(142)=>708,chr(143)=>708,chr(144)=>708,chr(145)=>708,chr(146)=>729,chr(147)=>604,chr(148)=>604,chr(149)=>278,chr(150)=>549,chr(151)=>549,chr(152)=>549,chr(153)=>549, |
|
| 15 | - chr(154)=>278,chr(155)=>604,chr(156)=>400,chr(157)=>333,chr(158)=>333,chr(159)=>549,chr(160)=>708,chr(161)=>708,chr(162)=>708,chr(163)=>556,chr(164)=>708,chr(165)=>708,chr(166)=>708,chr(167)=>708,chr(168)=>708,chr(169)=>708,chr(170)=>708,chr(171)=>708,chr(172)=>708,chr(173)=>708,chr(174)=>708,chr(175)=>708, |
|
| 16 | - chr(176)=>708,chr(177)=>708,chr(178)=>708,chr(179)=>667,chr(180)=>708,chr(181)=>708,chr(182)=>708,chr(183)=>708,chr(184)=>708,chr(185)=>708,chr(186)=>708,chr(187)=>708,chr(188)=>708,chr(189)=>708,chr(190)=>708,chr(191)=>737,chr(192)=>865,chr(193)=>556,chr(194)=>619,chr(195)=>646,chr(196)=>618,chr(197)=>556, |
|
| 17 | - chr(198)=>885,chr(199)=>534,chr(200)=>556,chr(201)=>611,chr(202)=>611,chr(203)=>507,chr(204)=>622,chr(205)=>740,chr(206)=>604,chr(207)=>611,chr(208)=>611,chr(209)=>589,chr(210)=>611,chr(211)=>556,chr(212)=>889,chr(213)=>556,chr(214)=>736,chr(215)=>604,chr(216)=>594,chr(217)=>854,chr(218)=>510,chr(219)=>889, |
|
| 18 | - chr(220)=>552,chr(221)=>935,chr(222)=>583,chr(223)=>707,chr(224)=>1042,chr(225)=>722,chr(226)=>708,chr(227)=>729,chr(228)=>722,chr(229)=>667,chr(230)=>781,chr(231)=>614,chr(232)=>667,chr(233)=>719,chr(234)=>719,chr(235)=>615,chr(236)=>687,chr(237)=>833,chr(238)=>722,chr(239)=>778,chr(240)=>719,chr(241)=>729, |
|
| 19 | - chr(242)=>667,chr(243)=>722,chr(244)=>611,chr(245)=>677,chr(246)=>927,chr(247)=>722,chr(248)=>708,chr(249)=>1000,chr(250)=>643,chr(251)=>979,chr(252)=>719,chr(253)=>989,chr(254)=>708,chr(255)=>854); |
|
| 8 | + chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750, |
|
| 9 | + chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 10 | + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 11 | + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 12 | + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 13 | + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>750,chr(128)=>708,chr(129)=>625,chr(130)=>708,chr(131)=>708, |
|
| 14 | + chr(132)=>708,chr(133)=>708,chr(134)=>708,chr(135)=>708,chr(136)=>708,chr(137)=>708,chr(138)=>708,chr(139)=>708,chr(140)=>708,chr(141)=>708,chr(142)=>708,chr(143)=>708,chr(144)=>708,chr(145)=>708,chr(146)=>729,chr(147)=>604,chr(148)=>604,chr(149)=>278,chr(150)=>549,chr(151)=>549,chr(152)=>549,chr(153)=>549, |
|
| 15 | + chr(154)=>278,chr(155)=>604,chr(156)=>400,chr(157)=>333,chr(158)=>333,chr(159)=>549,chr(160)=>708,chr(161)=>708,chr(162)=>708,chr(163)=>556,chr(164)=>708,chr(165)=>708,chr(166)=>708,chr(167)=>708,chr(168)=>708,chr(169)=>708,chr(170)=>708,chr(171)=>708,chr(172)=>708,chr(173)=>708,chr(174)=>708,chr(175)=>708, |
|
| 16 | + chr(176)=>708,chr(177)=>708,chr(178)=>708,chr(179)=>667,chr(180)=>708,chr(181)=>708,chr(182)=>708,chr(183)=>708,chr(184)=>708,chr(185)=>708,chr(186)=>708,chr(187)=>708,chr(188)=>708,chr(189)=>708,chr(190)=>708,chr(191)=>737,chr(192)=>865,chr(193)=>556,chr(194)=>619,chr(195)=>646,chr(196)=>618,chr(197)=>556, |
|
| 17 | + chr(198)=>885,chr(199)=>534,chr(200)=>556,chr(201)=>611,chr(202)=>611,chr(203)=>507,chr(204)=>622,chr(205)=>740,chr(206)=>604,chr(207)=>611,chr(208)=>611,chr(209)=>589,chr(210)=>611,chr(211)=>556,chr(212)=>889,chr(213)=>556,chr(214)=>736,chr(215)=>604,chr(216)=>594,chr(217)=>854,chr(218)=>510,chr(219)=>889, |
|
| 18 | + chr(220)=>552,chr(221)=>935,chr(222)=>583,chr(223)=>707,chr(224)=>1042,chr(225)=>722,chr(226)=>708,chr(227)=>729,chr(228)=>722,chr(229)=>667,chr(230)=>781,chr(231)=>614,chr(232)=>667,chr(233)=>719,chr(234)=>719,chr(235)=>615,chr(236)=>687,chr(237)=>833,chr(238)=>722,chr(239)=>778,chr(240)=>719,chr(241)=>729, |
|
| 19 | + chr(242)=>667,chr(243)=>722,chr(244)=>611,chr(245)=>677,chr(246)=>927,chr(247)=>722,chr(248)=>708,chr(249)=>1000,chr(250)=>643,chr(251)=>979,chr(252)=>719,chr(253)=>989,chr(254)=>708,chr(255)=>854); |
|
| 20 | 20 | $enc = 'KOI8-R'; |
| 21 | 21 | $diff = '128 /SF100000 /SF110000 /SF010000 /SF030000 /SF020000 /SF040000 /SF080000 /SF090000 /SF060000 /SF070000 /SF050000 /upblock /dnblock /block /lfblock /rtblock /ltshade /shade /dkshade /integraltp /filledbox /periodcentered /radical /approxequal /lessequal /greaterequal /space /integralbt /degree /twosuperior /periodcentered /divide /SF430000 /SF240000 /SF510000 /afii10071 /SF520000 /SF390000 /SF220000 /SF210000 /SF250000 /SF500000 /SF490000 /SF380000 /SF280000 /SF270000 /SF260000 /SF360000 /SF370000 /SF420000 /SF190000 /afii10023 /SF200000 /SF230000 /SF470000 /SF480000 /SF410000 /SF450000 /SF460000 /SF400000 /SF540000 /SF530000 /SF440000 /copyright /afii10096 /afii10065 /afii10066 /afii10088 /afii10069 /afii10070 /afii10086 /afii10068 /afii10087 /afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080 /afii10081 /afii10097 /afii10082 /afii10083 /afii10084 /afii10085 /afii10072 /afii10067 /afii10094 /afii10093 /afii10073 /afii10090 /afii10095 /afii10091 /afii10089 /afii10092 /afii10048 /afii10017 /afii10018 /afii10040 /afii10021 /afii10022 /afii10038 /afii10020 /afii10039 /afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032 /afii10033 /afii10049 /afii10034 /afii10035 /afii10036 /afii10037 /afii10024 /afii10019 /afii10046 /afii10045 /afii10025 /afii10042 /afii10047 /afii10043 /afii10041 /afii10044'; |
| 22 | 22 | $uv = array(0=>array(0,128),128=>9472,129=>9474,130=>9484,131=>9488,132=>9492,133=>9496,134=>9500,135=>9508,136=>9516,137=>9524,138=>9532,139=>9600,140=>9604,141=>9608,142=>9612,143=>array(9616,4),147=>8992,148=>9632,149=>array(8729,2),151=>8776,152=>array(8804,2),154=>160,155=>8993,156=>176,157=>178,158=>183,159=>247,160=>array(9552,3),163=>1105,164=>array(9555,15),179=>1025,180=>array(9570,11),191=>169,192=>1102,193=>array(1072,2),195=>1094,196=>array(1076,2),198=>1092,199=>1075,200=>1093,201=>array(1080,8),209=>1103,210=>array(1088,4),214=>1078,215=>1074,216=>1100,217=>1099,218=>1079,219=>1096,220=>1101,221=>1097,222=>1095,223=>1098,224=>1070,225=>array(1040,2),227=>1062,228=>array(1044,2),230=>1060,231=>1043,232=>1061,233=>array(1048,8),241=>1071,242=>array(1056,4),246=>1046,247=>1042,248=>1068,249=>1067,250=>1047,251=>1064,252=>1069,253=>1065,254=>1063,255=>1066); |
@@ -1,25 +1,25 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $type = 'TrueType'; |
| 3 | 3 | $name = 'Arimo-BoldItalic'; |
| 4 | -$desc = array('Ascent'=>728,'Descent'=>-210,'CapHeight'=>688,'Flags'=>96,'FontBBox'=>'[-477 -376 1357 1030]','ItalicAngle'=>-12,'StemV'=>120,'MissingWidth'=>750); |
|
| 4 | +$desc = array('Ascent'=>728, 'Descent'=>-210, 'CapHeight'=>688, 'Flags'=>96, 'FontBBox'=>'[-477 -376 1357 1030]', 'ItalicAngle'=>-12, 'StemV'=>120, 'MissingWidth'=>750); |
|
| 5 | 5 | $up = -106; |
| 6 | 6 | $ut = 105; |
| 7 | 7 | $cw = array( |
| 8 | - chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750, |
|
| 9 | - chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, |
|
| 10 | - ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, |
|
| 11 | - 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, |
|
| 12 | - 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, |
|
| 13 | - 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>750,chr(128)=>708,chr(129)=>625,chr(130)=>708,chr(131)=>708, |
|
| 14 | - chr(132)=>708,chr(133)=>708,chr(134)=>708,chr(135)=>708,chr(136)=>708,chr(137)=>708,chr(138)=>708,chr(139)=>708,chr(140)=>708,chr(141)=>708,chr(142)=>708,chr(143)=>708,chr(144)=>708,chr(145)=>708,chr(146)=>729,chr(147)=>604,chr(148)=>604,chr(149)=>278,chr(150)=>549,chr(151)=>549,chr(152)=>549,chr(153)=>549, |
|
| 15 | - chr(154)=>278,chr(155)=>604,chr(156)=>400,chr(157)=>333,chr(158)=>333,chr(159)=>549,chr(160)=>708,chr(161)=>708,chr(162)=>708,chr(163)=>556,chr(164)=>708,chr(165)=>708,chr(166)=>708,chr(167)=>708,chr(168)=>708,chr(169)=>708,chr(170)=>708,chr(171)=>708,chr(172)=>708,chr(173)=>708,chr(174)=>708,chr(175)=>708, |
|
| 16 | - chr(176)=>708,chr(177)=>708,chr(178)=>708,chr(179)=>667,chr(180)=>708,chr(181)=>708,chr(182)=>708,chr(183)=>708,chr(184)=>708,chr(185)=>708,chr(186)=>708,chr(187)=>708,chr(188)=>708,chr(189)=>708,chr(190)=>708,chr(191)=>737,chr(192)=>865,chr(193)=>556,chr(194)=>619,chr(195)=>646,chr(196)=>618,chr(197)=>556, |
|
| 17 | - chr(198)=>885,chr(199)=>534,chr(200)=>556,chr(201)=>611,chr(202)=>611,chr(203)=>507,chr(204)=>622,chr(205)=>740,chr(206)=>604,chr(207)=>611,chr(208)=>611,chr(209)=>589,chr(210)=>611,chr(211)=>556,chr(212)=>889,chr(213)=>556,chr(214)=>736,chr(215)=>604,chr(216)=>594,chr(217)=>854,chr(218)=>510,chr(219)=>889, |
|
| 18 | - chr(220)=>552,chr(221)=>935,chr(222)=>583,chr(223)=>707,chr(224)=>1042,chr(225)=>722,chr(226)=>708,chr(227)=>729,chr(228)=>722,chr(229)=>667,chr(230)=>781,chr(231)=>614,chr(232)=>667,chr(233)=>719,chr(234)=>719,chr(235)=>615,chr(236)=>687,chr(237)=>833,chr(238)=>722,chr(239)=>778,chr(240)=>719,chr(241)=>729, |
|
| 19 | - chr(242)=>667,chr(243)=>722,chr(244)=>611,chr(245)=>677,chr(246)=>927,chr(247)=>722,chr(248)=>708,chr(249)=>1000,chr(250)=>643,chr(251)=>979,chr(252)=>719,chr(253)=>989,chr(254)=>708,chr(255)=>854); |
|
| 8 | + chr(0)=>750, chr(1)=>750, chr(2)=>750, chr(3)=>750, chr(4)=>750, chr(5)=>750, chr(6)=>750, chr(7)=>750, chr(8)=>750, chr(9)=>750, chr(10)=>750, chr(11)=>750, chr(12)=>750, chr(13)=>750, chr(14)=>750, chr(15)=>750, chr(16)=>750, chr(17)=>750, chr(18)=>750, chr(19)=>750, chr(20)=>750, chr(21)=>750, |
|
| 9 | + chr(22)=>750, chr(23)=>750, chr(24)=>750, chr(25)=>750, chr(26)=>750, chr(27)=>750, chr(28)=>750, chr(29)=>750, chr(30)=>750, chr(31)=>750, ' '=>278, '!'=>333, '"'=>474, '#'=>556, '$'=>556, '%'=>889, '&'=>722, '\''=>238, '('=>333, ')'=>333, '*'=>389, '+'=>584, |
|
| 10 | + ','=>278, '-'=>333, '.'=>278, '/'=>278, '0'=>556, '1'=>556, '2'=>556, '3'=>556, '4'=>556, '5'=>556, '6'=>556, '7'=>556, '8'=>556, '9'=>556, ':'=>333, ';'=>333, '<'=>584, '='=>584, '>'=>584, '?'=>611, '@'=>975, 'A'=>722, |
|
| 11 | + 'B'=>722, 'C'=>722, 'D'=>722, 'E'=>667, 'F'=>611, 'G'=>778, 'H'=>722, 'I'=>278, 'J'=>556, 'K'=>722, 'L'=>611, 'M'=>833, 'N'=>722, 'O'=>778, 'P'=>667, 'Q'=>778, 'R'=>722, 'S'=>667, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>944, |
|
| 12 | + 'X'=>667, 'Y'=>667, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>584, '_'=>556, '`'=>333, 'a'=>556, 'b'=>611, 'c'=>556, 'd'=>611, 'e'=>556, 'f'=>333, 'g'=>611, 'h'=>611, 'i'=>278, 'j'=>278, 'k'=>556, 'l'=>278, 'm'=>889, |
|
| 13 | + 'n'=>611, 'o'=>611, 'p'=>611, 'q'=>611, 'r'=>389, 's'=>556, 't'=>333, 'u'=>611, 'v'=>556, 'w'=>778, 'x'=>556, 'y'=>556, 'z'=>500, '{'=>389, '|'=>280, '}'=>389, '~'=>584, chr(127)=>750, chr(128)=>708, chr(129)=>625, chr(130)=>708, chr(131)=>708, |
|
| 14 | + chr(132)=>708, chr(133)=>708, chr(134)=>708, chr(135)=>708, chr(136)=>708, chr(137)=>708, chr(138)=>708, chr(139)=>708, chr(140)=>708, chr(141)=>708, chr(142)=>708, chr(143)=>708, chr(144)=>708, chr(145)=>708, chr(146)=>729, chr(147)=>604, chr(148)=>604, chr(149)=>278, chr(150)=>549, chr(151)=>549, chr(152)=>549, chr(153)=>549, |
|
| 15 | + chr(154)=>278, chr(155)=>604, chr(156)=>400, chr(157)=>333, chr(158)=>333, chr(159)=>549, chr(160)=>708, chr(161)=>708, chr(162)=>708, chr(163)=>556, chr(164)=>708, chr(165)=>708, chr(166)=>708, chr(167)=>708, chr(168)=>708, chr(169)=>708, chr(170)=>708, chr(171)=>708, chr(172)=>708, chr(173)=>708, chr(174)=>708, chr(175)=>708, |
|
| 16 | + chr(176)=>708, chr(177)=>708, chr(178)=>708, chr(179)=>667, chr(180)=>708, chr(181)=>708, chr(182)=>708, chr(183)=>708, chr(184)=>708, chr(185)=>708, chr(186)=>708, chr(187)=>708, chr(188)=>708, chr(189)=>708, chr(190)=>708, chr(191)=>737, chr(192)=>865, chr(193)=>556, chr(194)=>619, chr(195)=>646, chr(196)=>618, chr(197)=>556, |
|
| 17 | + chr(198)=>885, chr(199)=>534, chr(200)=>556, chr(201)=>611, chr(202)=>611, chr(203)=>507, chr(204)=>622, chr(205)=>740, chr(206)=>604, chr(207)=>611, chr(208)=>611, chr(209)=>589, chr(210)=>611, chr(211)=>556, chr(212)=>889, chr(213)=>556, chr(214)=>736, chr(215)=>604, chr(216)=>594, chr(217)=>854, chr(218)=>510, chr(219)=>889, |
|
| 18 | + chr(220)=>552, chr(221)=>935, chr(222)=>583, chr(223)=>707, chr(224)=>1042, chr(225)=>722, chr(226)=>708, chr(227)=>729, chr(228)=>722, chr(229)=>667, chr(230)=>781, chr(231)=>614, chr(232)=>667, chr(233)=>719, chr(234)=>719, chr(235)=>615, chr(236)=>687, chr(237)=>833, chr(238)=>722, chr(239)=>778, chr(240)=>719, chr(241)=>729, |
|
| 19 | + chr(242)=>667, chr(243)=>722, chr(244)=>611, chr(245)=>677, chr(246)=>927, chr(247)=>722, chr(248)=>708, chr(249)=>1000, chr(250)=>643, chr(251)=>979, chr(252)=>719, chr(253)=>989, chr(254)=>708, chr(255)=>854); |
|
| 20 | 20 | $enc = 'KOI8-R'; |
| 21 | 21 | $diff = '128 /SF100000 /SF110000 /SF010000 /SF030000 /SF020000 /SF040000 /SF080000 /SF090000 /SF060000 /SF070000 /SF050000 /upblock /dnblock /block /lfblock /rtblock /ltshade /shade /dkshade /integraltp /filledbox /periodcentered /radical /approxequal /lessequal /greaterequal /space /integralbt /degree /twosuperior /periodcentered /divide /SF430000 /SF240000 /SF510000 /afii10071 /SF520000 /SF390000 /SF220000 /SF210000 /SF250000 /SF500000 /SF490000 /SF380000 /SF280000 /SF270000 /SF260000 /SF360000 /SF370000 /SF420000 /SF190000 /afii10023 /SF200000 /SF230000 /SF470000 /SF480000 /SF410000 /SF450000 /SF460000 /SF400000 /SF540000 /SF530000 /SF440000 /copyright /afii10096 /afii10065 /afii10066 /afii10088 /afii10069 /afii10070 /afii10086 /afii10068 /afii10087 /afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080 /afii10081 /afii10097 /afii10082 /afii10083 /afii10084 /afii10085 /afii10072 /afii10067 /afii10094 /afii10093 /afii10073 /afii10090 /afii10095 /afii10091 /afii10089 /afii10092 /afii10048 /afii10017 /afii10018 /afii10040 /afii10021 /afii10022 /afii10038 /afii10020 /afii10039 /afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032 /afii10033 /afii10049 /afii10034 /afii10035 /afii10036 /afii10037 /afii10024 /afii10019 /afii10046 /afii10045 /afii10025 /afii10042 /afii10047 /afii10043 /afii10041 /afii10044'; |
| 22 | -$uv = array(0=>array(0,128),128=>9472,129=>9474,130=>9484,131=>9488,132=>9492,133=>9496,134=>9500,135=>9508,136=>9516,137=>9524,138=>9532,139=>9600,140=>9604,141=>9608,142=>9612,143=>array(9616,4),147=>8992,148=>9632,149=>array(8729,2),151=>8776,152=>array(8804,2),154=>160,155=>8993,156=>176,157=>178,158=>183,159=>247,160=>array(9552,3),163=>1105,164=>array(9555,15),179=>1025,180=>array(9570,11),191=>169,192=>1102,193=>array(1072,2),195=>1094,196=>array(1076,2),198=>1092,199=>1075,200=>1093,201=>array(1080,8),209=>1103,210=>array(1088,4),214=>1078,215=>1074,216=>1100,217=>1099,218=>1079,219=>1096,220=>1101,221=>1097,222=>1095,223=>1098,224=>1070,225=>array(1040,2),227=>1062,228=>array(1044,2),230=>1060,231=>1043,232=>1061,233=>array(1048,8),241=>1071,242=>array(1056,4),246=>1046,247=>1042,248=>1068,249=>1067,250=>1047,251=>1064,252=>1069,253=>1065,254=>1063,255=>1066); |
|
| 22 | +$uv = array(0=>array(0, 128), 128=>9472, 129=>9474, 130=>9484, 131=>9488, 132=>9492, 133=>9496, 134=>9500, 135=>9508, 136=>9516, 137=>9524, 138=>9532, 139=>9600, 140=>9604, 141=>9608, 142=>9612, 143=>array(9616, 4), 147=>8992, 148=>9632, 149=>array(8729, 2), 151=>8776, 152=>array(8804, 2), 154=>160, 155=>8993, 156=>176, 157=>178, 158=>183, 159=>247, 160=>array(9552, 3), 163=>1105, 164=>array(9555, 15), 179=>1025, 180=>array(9570, 11), 191=>169, 192=>1102, 193=>array(1072, 2), 195=>1094, 196=>array(1076, 2), 198=>1092, 199=>1075, 200=>1093, 201=>array(1080, 8), 209=>1103, 210=>array(1088, 4), 214=>1078, 215=>1074, 216=>1100, 217=>1099, 218=>1079, 219=>1096, 220=>1101, 221=>1097, 222=>1095, 223=>1098, 224=>1070, 225=>array(1040, 2), 227=>1062, 228=>array(1044, 2), 230=>1060, 231=>1043, 232=>1061, 233=>array(1048, 8), 241=>1071, 242=>array(1056, 4), 246=>1046, 247=>1042, 248=>1068, 249=>1067, 250=>1047, 251=>1064, 252=>1069, 253=>1065, 254=>1063, 255=>1066); |
|
| 23 | 23 | $file = 'Arimo-BoldItalic.z'; |
| 24 | 24 | $originalsize = 45912; |
| 25 | 25 | $subsetted = true; |