From c7ecdfe2e07e2e010de5e2a8d94c001c5dc9fc27 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 1 Aug 2022 03:04:31 +0000 Subject: CTAN sync 202208010304 --- .../japanese/japanese-otf/src/script/mkaltutfvf.pl | 119 --------------------- 1 file changed, 119 deletions(-) delete mode 100644 language/japanese/japanese-otf/src/script/mkaltutfvf.pl (limited to 'language/japanese/japanese-otf/src/script/mkaltutfvf.pl') diff --git a/language/japanese/japanese-otf/src/script/mkaltutfvf.pl b/language/japanese/japanese-otf/src/script/mkaltutfvf.pl deleted file mode 100644 index 470ff2bc91..0000000000 --- a/language/japanese/japanese-otf/src/script/mkaltutfvf.pl +++ /dev/null @@ -1,119 +0,0 @@ -open(GLYPH, "> 4; - $low=$hex_data-($high*16); - &write_cjkt($high); - &write_cjkt($low); - } -} -sub make_uni_vf { - for ($k=0; $k<=1; $k++){#face - if ($k==0) {$face="mr";}elsif ($k==1){$face="gr";}elsif ($k==2){$face="mb";} - elsif ($k==3){$face="gb";}elsif ($k==4){$face="mgr";}elsif ($k==5){$face="ml";} - elsif ($k==6){$face="ge";} - for ($i=0; $i<=1; $i++){#direction - if ($i==0) {$dir="h";}elsif ($i==1){$dir="v";} - for ($first_hex=0x0; $first_hex <= 0xf; $first_hex++){ - $filename="utf$face".sprintf("%x",$first_hex)."-$dir"; - open(OVP, ">ovp/$filename.ovp")||die "$!"; - &fonthead; - for ($l=0; $l<=3; $l++){#language - if ($l==0) {$lang="j";} elsif ($l==1) {$lang="k";} elsif ($l==2) {$lang="c";} elsif ($l==3){$lang="t";} - print OVP "(MAPFONT D $l\n (FONTNAME otf-u$lang$face-$dir)\n"; - &fontfoot; - } - &writechar; - close(OVP); - system("ovp2ovf ovp/$filename.ovp vf/$filename.vf vf/$filename.ofm"); - unlink "vf/$filename.ofm"; - } - } - } -} -sub fonthead { -print OVP <1.0 -sub writechar { - for ($ku=16; $ku <= 79; $ku++){#2002/1/27 120->79 - for ($ten=16; $ten <= 79; $ten++){ - if ($ku>=16 && $ku<=79 && $ten>=16 && $ten<=79){ - &printchar($first_hex,$ku,$ten); -# } else { -# &printgeta($first_hex,$ku,$ten); - } - } - } -} - -sub printchar { - $jiscode=($_[1]+0x20)*256+($_[2]+0x20); - $unicode=$_[0]*4096+($_[1]-16)*64+($_[2]-16); - $wd = ($dir eq 'h' && $unicode>=0xFF61 && $unicode<=0xFF9F) ? '0.5' : '1.0'; - printf OVP "(CHARACTER H %X\n", $jiscode; - print OVP " (CHARWD R $wd)\n";#2003/10/22 CHARWD 0.962216->1.0 - print OVP " (MAP\n"; - &write_map_font; - printf OVP " (SETCHAR H %X)\n", $unicode; - print OVP " )\n"; - print OVP " )\n"; -} - -sub printgeta { - $jiscode=($_[1]+0x20)*256+($_[2]+0x20); - printf OVP "(CHARACTER H %X\n", $jiscode; - print OVP " (CHARWD R 1.0)\n";#2003/10/22 CHARWD 0.962216->1.0 - print OVP " (MAP\n"; - print OVP " (SETCHAR H 3013)\n"; - print OVP " )\n"; - print OVP " )\n"; -} -sub write_map_font{ - if ($glyph_sub_table[$unicode] eq "c"){ - print OVP " (SELECTFONT D 2)\n"; - }elsif($glyph_sub_table[$unicode] eq "t"){ - print OVP " (SELECTFONT D 3)\n"; - }elsif($glyph_sub_table[$unicode] eq "k"){ - print OVP " (SELECTFONT D 1)\n"; - } -} -sub write_cjkt{ - if ($_[0]>=8 || $_[0]==0){ - push(@glyph_sub_table,"j"); - }elsif(4<=$_[0] && $_[0]<8){ - push(@glyph_sub_table,"c"); - }elsif(2<=$_[0] && $_[0]<4){ - push(@glyph_sub_table,"t"); - }elsif($_[0]==1){ - push(@glyph_sub_table,"k"); - } -} -- cgit v1.2.3