enable &de_er() to work.
authorimiyazaki <imiyazaki>
Wed, 22 Oct 2003 16:58:46 +0000 (16:58 +0000)
committerimiyazaki <imiyazaki>
Wed, 22 Oct 2003 16:58:46 +0000 (16:58 +0000)
add IDC escape.

chise2otf/chise2otf

index 17ee581..ab1274c 100755 (executable)
@@ -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];