my $usage=<<EOF;
Usage: perl $0 <CMAP file> <CHISE DB dir>
- <CMAP file> UniJIS-UCS2-H, etc. available in Adobe Reader Directory.
+ <CMAP file> UniJIS-UTF16-H etc. available in Adobe Reader Directory.
<CHISE DB dir> is directory to store BDB data,
- typically /usr/local/lib/chise/db.
+ typically /usr/local/lib/chise/chise-db.
EOF
#my $db_home="/usr/local/lib/chise/char-db";
$db_home=$db_home."/character/feature";
}elsif(-d "$db_home/system-char-id"){
$db_home=$db_home."/system-char-id";
+ }else{
+ print STDERR $usage;
+ exit 1;
}
($ciddb_filename=$cmapfile)=~s!^.*/(.*)$!"vnd-adobe-cid-".lc($1)!e;
unless(defined($cmapfile) and -f $cmapfile
and $encoding=~/^=ucs\@(cns|gb|jis|ks)$/
and -d $db_home){
- print $usage;
+ print STDERR $usage;
exit 1;
}