From: imiyazaki Date: Sun, 5 Oct 2003 09:01:14 +0000 (+0000) Subject: use adobe CID information. X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fomega.git;a=commitdiff_plain;h=832606f23cafbf92b539eae80eb27178ab43bb43 use adobe CID information. --- diff --git a/chise2otf/chise2otf b/chise2otf/chise2otf index 306e939..50ca42b 100755 --- a/chise2otf/chise2otf +++ b/chise2otf/chise2otf @@ -277,20 +277,31 @@ sub get_output_char{ }else{ foreach $out_cs (@order){ if($out_cs eq 'UniJIS'){ - if($out_char=&get_char_attribute($char,'=ucs@jis')){ + if($out_char=&get_char_attribute($char,'=ucs@jis') + or ($out_char=&get_char_attribute($char,'=ucs')and + &get_char_attribute($char,"adobe-unijis-ucs2-h")) + ){ return "\\UTF{".sprintf("%X",$out_char)."}"; } }elsif($out_cs eq 'UniGB'){ if($out_char=&get_char_attribute($char,'=ucs@gb') - or $out_char=&get_char_attribute($char,'=ucs')){ + or ($out_char=&get_char_attribute($char,'=ucs')and + &get_char_attribute($char,"adobe-unigb-ucs2-h")) + ){ return "\\UTFC{".sprintf("%X",$out_char)."}"; } }elsif($out_cs eq 'UniCNS'){ - if($out_char=&get_char_attribute($char,'=ucs@cns')){ + if($out_char=&get_char_attribute($char,'=ucs@cns') + or ($out_char=&get_char_attribute($char,'=ucs')and + &get_char_attribute($char,"adobe-unicns-ucs2-h")) + ){ return "\\UTFT{".sprintf("%X",$out_char)."}"; } }elsif($out_cs eq 'UniKS'){ - if($out_char=&get_char_attribute($char,'=ucs@ks')){ + if($out_char=&get_char_attribute($char,'=ucs@ks') + or ($out_char=&get_char_attribute($char,'=ucs')and + &get_char_attribute($char,"adobe-uniks-ucs2-h")) + ){ return "\\UTFK{".sprintf("%X",$out_char)."}"; } }elsif($out_cs eq 'GT'){