From b786806fd355cc770c94561c2ec675d273d2313f Mon Sep 17 00:00:00 2001 From: imiyazaki Date: Wed, 22 Oct 2003 16:58:46 +0000 Subject: [PATCH] enable &de_er() to work. add IDC escape. --- chise2otf/chise2otf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chise2otf/chise2otf b/chise2otf/chise2otf index 17ee581..ab1274c 100755 --- a/chise2otf/chise2otf +++ b/chise2otf/chise2otf @@ -158,7 +158,8 @@ while(<>){ if($in_cs ne 'ucs@mcs'){ s/(.)/pack("U",&get_char_id(unpack("U",$1),$in_cs))/ge; } - s/&(.*?);/&de_er($1)/ge; + s/((?:^|[^\\])(?:\\\\)*)(&.*?;)/$1.&de_er($2)/ge; + s/((?:^|[^\\])(?:\\\\)*)\\([$idc])/$1.'\UTFM{'.sprintf("%X",unpack("U",$2)).'}'/ge; @chars=split(//); for($i=0;$i<=$#chars;$i++){ $char=$chars[$i]; -- 1.7.10.4