From 8d43bd594ffe9e035e5fd329aa3d807813ab0b00 Mon Sep 17 00:00:00 2001 From: imiyazaki Date: Sat, 18 Oct 2003 12:51:51 +0000 Subject: [PATCH] make &de_er work. --- chise2otf/chise2otf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chise2otf/chise2otf b/chise2otf/chise2otf index 0c15070..524af71 100755 --- a/chise2otf/chise2otf +++ b/chise2otf/chise2otf @@ -141,10 +141,10 @@ $ids=""; @CDP=("=big5-cdp"); while(<>){ - s/&(.*?);/&de_er($1)/ge; if($in_cs ne 'ucs@mcs'){ s/(.)/pack("U",&get_char_id(unpack("U",$1),$in_cs))/ge; } + s/&(.*?);/&de_er($1)/ge; @chars=split(//); for($i=0;$i<=$#chars;$i++){ $char=$chars[$i]; @@ -286,7 +286,7 @@ sub normalize_ids{ # return: ids or GETA character if ids is invalid for KAGE. my($ids,$out_cs)=@_; $ids = decode('utf8', $ids) if $perl58; - $out_cs=~s/Uni(.+)/"ucs\@".lc($1)/e; + $out_cs=~s/Uni(.+)/'ucs@'.lc($1)/e; my $output_ids=""; my($char,$char_id,$output_char_id); @@ -378,7 +378,7 @@ sub get_ids{ } sub get_char_id_for_ids{ - # argument: + # argument: # return: char-id my($ids)=@_; my($output_char); -- 1.7.10.4