No glyphs found with the Shift-JIS hex code \"$shiftjis\".\n"; } else { list($page, $subpage)=CodepointToPages($k); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; show_glyph($k); } } $unihex=ass(trim(HexOnly($unihex))); if ($unihex) { $RPT=TRUE; list($page, $subpage)=CodepointToPages($unihex); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; show_glyph(hexpad($unihex)); } $unidecimal=ass(trim($unidecimal)); if ($unidecimal) { $RPT=TRUE; list($page, $subpage)=CodepointToPages(dechex($unidecimal)); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; show_glyph(hexpad(dechex($unidecimal))); } $utf8=ass(trim($utf8)); if ($utf8) { $RPT=TRUE; // Convert the characters, one by one, into codepoints and glyph 'em. $glyph=array(); $decarr=Utf8StringToCodepoints($utf8); foreach ($decarr as $dec) { $glyph[]=hexpad(dechex($dec)); } list($page, $subpage)=CodepointToPages($glyph[0]); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; show_glyph($glyph); } $utf8hex=ass(trim($utf8hex)); if ($utf8hex) { $RPT=TRUE; $hex=Utf8toCodepoint($utf8hex); if ($hex) { list($page, $subpage)=CodepointToPages($hex[0]); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; show_glyph($hex); } else echo "

Invalid UTF8 hex code ($utf8hex).

"; } $desctext=ass(trim($desctext)); if ($desctext) { $RPT=TRUE; $desctext=ss($desctext); echo "Search results for \"$desctext\":

\n"; flush(); descr_search($desctext); list($page, $subpage)=CodepointToPages(FIRST_RESULT); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; } $deftext=ass(trim($deftext)); if ($deftext) { $RPT=TRUE; $deftext=ss($deftext); echo "Search results for \"$deftext\":

\n"; flush(); def_search($deftext); list($page, $subpage)=CodepointToPages(FIRST_RESULT); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; } $prontext=ass(trim($prontext)); if ($prontext) { $RPT=TRUE; $prontext=ss($prontext); echo "Search results for \"$prontext\":

\n"; flush(); pron_search($prontext); list($page, $subpage)=CodepointToPages(FIRST_RESULT); $_GET['page']=$G['page']=$page; $_GET['subpage']=$G['subpage']=$subpage; } $tmp=ob_get_clean(); if ($RPT) $Report=$tmp; if (!is_hex($page)) $page='00'; if (isset($subpage) && !is_hex($subpage)) $subpage='00'; ?>