case 'default': if (is_array($data)) { $proper .= implode(',', $data) . ' '; } else { $proper .= $data . ' '; } break; case 'file': $source = str_replace('inkscape/', '', $data); break; case 'body': $source = 'built-in'; break; case 'patterns': // $name = implode($data,' '); $name = implode(get_alt_names($data), ' / '); break; case 'doc': // To be deleted, never used break; case 'either': case 'flags': // data for use in parser so don't care, do nothing break; case 'licence': case 'height': case 'width': echo "Warning, obsolete field in {$subtype}\n"; // obsolete soon I hope! break; default:
$svg .= '<g fill="#3F3F3F">'; $svg .= $charge['body']; if ( array_key_exists('features', $charge)) foreach($charge['features'] as $extra) $svg .= $extra['body']; $svg .= '</g>'; $svg .= '</svg>' . "\n"; // file_put_contents('images/charges/' . $id . '.svg',$svg); // $status = exec ( '"C:\Program Files (x86)\java\jre6\bin\java.exe" -jar "C:\Users\K Wilcox\bin\batik-1.7\batik-rasterizer.jar" "J:\Karl\'s Folder\www\include\shield\tools\images\charges' . '\\' . $id . '.svg" ' ); $this_row .= ' || [http://www.karlwilcox.com/images/wiki/charges/' . $id . '.png] ||'; } else $this_row .= " || ||"; */ // Add current row $rows[$main_name] = $this_row; // Add all alternate names $alts = get_alt_names($charge['patterns'], $main_name); foreach ($alts as $alt) { if ($alt != '') { $initial = strtoupper($main_name[0]); $rows[$alt] = "{$alt} <See {$main_name}>"; } } } } } } ksort($rows); $prev = ' '; foreach ($rows as $key => $row) { if ($key[0] != $prev) { $output .= "\n==" . strtoupper($key[0]) . "==\n\n";