Please note that your font might not be able to display all characters.
"; echo ""; } if ($part[1] == kTraditionalVariant) { echo ""; echo ""; } } function strip($to_strip) { $to_strip=ereg_replace("[U+]|\n","",$to_strip); $to_strip="&#x".$to_strip.";"; return $to_strip; } function get_trad($tradvar) { $trad=preg_split('/ /',$tradvar); for ($i = 0; $i < sizeof($trad); $i++) { $trad[$i]=strip($trad[$i]); $result=$result.$trad[$i]; } return $result; } function get_simp($simpvar) { $simp=preg_split('/ /',$simpvar); for ($i = 0; $i < sizeof($simp); $i++) { $simp[$i]=strip($simp[$i]); $result=$result.$simp[$i]; } return $result; } ?>
Original Simplified Traditional
".strip($part[0])."".get_simp($part[2])." 
".strip($part[0])." ".get_trad($part[2])."