(Aaargh [EMAIL PROTECTED]@¼½^!!  Stupid Mew...)

From: Werner LEMBERG <[EMAIL PROTECTED]>

> > I currently need four hlatex2agl.pl commands, one for each .sfd
> > file: UKS-HLaTeX.sfd, UKS-HLaTeX-Hangul.sfd,
> > UKS-HLaTeX-Hangul_Hanja.sfd and UKS-HLaTeX-Hangul_Symbol.sfd.  So it
> > would be nice if hlatex2agl.pl could also have an extra argument to
> > choose which .sfd is to be used.
> 
> Patch, please :-)

See attachment.
It includes your patch as well.

This patch will only modify the comments; it won't change anything
substantial.  It will also allow a third argument, $sfdfile.
The u*00.pfb and u*00.afm still aren't processed properly by
hlatex2agl.pl.

I am also including v0.90 of my HLaTeX Makefile.  If you could try it
out, and see whether you also get the warnings with dn, dnl and pga?
You can ignore most of the comments; they are only there for my
memory.

P.S.: my CJK packages for Debian have been accepted, and will be
available in about a week.  It uses the CVS branch of 2006-07-14.
Any idea when anonymous CVS will be back up?  It makes my work a lot
easier. =)

P.P.S.: hurray for 4.7.0!


Cheers



Danai SAE-HAN
韓達耐

-- 
題目:《和子由澠池懷舊》
作者:蘇軾(1036-1101)

人生到處知何似,應似飛鴻踏雪泥:
泥上偶然留指爪,鴻飛那復計東西。
老僧已死成新塔,壞壁無由見舊題。
往日崎嶇還記否,路上人困蹇驢嘶。
--- hlatex2agl.pl.orig  2006-08-24 18:53:55.654163791 +0200
+++ hlatex2agl.pl       2006-08-24 18:50:54.017305260 +0200
@@ -26,7 +26,7 @@
 #
 # Example:
 #
-#   perl hlatex2agl.pl wmj umj
+#   perl hlatex2agl.pl wmj umj UKS-HLaTeX.sfd
 
 # Copyright (C) 1994-2006  Werner Lemberg <[EMAIL PROTECTED]>
 #
@@ -50,12 +50,13 @@
 my $prog = $0;
 $prog =~ [EMAIL PROTECTED]/@@;
 
-if ($#ARGV != 1) {
-  die("usage: $prog virtual_namestem real_namestem\n");  
+if ($#ARGV != 2) {
+  die("usage: $prog virtual_namestem real_namestem sfd_file\n");  
 }
  
 my $virtnamestem = $ARGV[0];
 my $realnamestem = $ARGV[1];
+my $sfdfile = $ARGV[2];
 
 
 # Read UKS-HLaTeX.sfd.
@@ -63,7 +64,7 @@
 my @sfd;
 my @virtsubfonts;
 
-read_sfdfile("UKS-HLaTeX.sfd", [EMAIL PROTECTED], [EMAIL PROTECTED]);
+read_sfdfile($sfdfile, [EMAIL PROTECTED], [EMAIL PROTECTED]);
 
 
 # Read AGL file.
@@ -397,11 +398,12 @@
 
     # Update version number.
     s/001\.000/001.001/;
+    s/Altsys\ Fontographer\ 4\.1\ 1\/10\/95$/001.001/;
 
     print(OUTFILE $_);
 
     # Add comment.
-    if (/^Comment/) {
+    if (/^Comment\ UniqueID/ || /^Comment\ Generated/) {
       print(OUTFILE "Comment AGL compliant glyph names added "
                     . "by script $prog 2005-Jul-27.\n");
     }
@@ -455,7 +457,7 @@
     print(OUTFILE $_);
 
     # Add comment.
-    if (/^% Generated/) {
+    if (/^%%CreationDate/) {
       print(OUTFILE "% AGL compliant glyph names added "
                     . "by script $prog 2005-Jul-27.\n");
     }
#!/usr/bin/make -f
# -*- makefile -*-

# Version 0.90
# Script to build Unicode fonts from HLaTeX, compatible with CJK.

# This Makefile expects a directory "latex-cjk/" with the following contents:
# - aglfn13.txt 
(http://partners.adobe.com/public/developer/en/opentype/aglfn13.txt)
# - hlatex2agl.pl (from the CJK package; with patch to enable a third argument)
# - makefdx.pl (from the CJK package)
# - sfd2uni.pl (idem)
# - UKS-HLaTeX.sfd (from the Freetype1-tools package))
# - UKS-HLaTeX-Hangul_Hanja.sfd (use UKS-HLaTeX.sfd and remove some blocks)
# - UKS-HLaTeX-Hangul.sfd (idem)
# - UKS-HLaTeX-Hangul_Symbol.sfd (idem)

# Copyright (C) 2006  Danai SAE-HAN (韓達耐) <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in /usr/share/common-licenses/GPL-2;
# if not, write to the Free Software Foundation, Inc., 51 Franklin St,
# Fifth Floor, Boston, MA 02110-1301 USA.
#
# You can find a copy of the GNU General Public License online at
# http://www.gnu.org/licenses/gpl.txt or on Debian systems under
# /usr/share/common-licenses/GPL-2 (part of the "base-files" package).


# General variables:

# All font directories that need to be cleaned.  Don't change this.
allfonts = bom dinaru gothic graphic gungseo jamo myoungjo pen pilgi pilgia 
shinmun taza vada yetgul
# Fonts to build.  You may change this.
# To get all the fonts, use: fonts = bm dn dnl gt gr gs jgt jmj jnv jsr mj ph 
pn pg pga sh tt vd yt
fonts = dn dnl pga
variants = o c co x xo u uo
texmf = /usr/share/texmf
sfdfile_hangul = UKS-HLaTeX-Hangul.sfd
sfdfile_hangul_symbol = UKS-HLaTeX-Hangul_Symbol.sfd
sfdfile_hangul_hanja = UKS-HLaTeX-Hangul_Hanja.sfd
sfdfile_hangul_symbol_hanja = UKS-HLaTeX.sfd
sfdfile = $(sfdfile_$($(abbrev)_sfd))
fdfile = $(fontname)/c70$(namestem).fd


# Font options:

# Bom 봄글씨
bm_fontname = bom
bm_namestem = bm
bm_virtual_namestem = wbm
bm_real_namestem = ubm
bm_bold = no
bm_sfd = hangul

# Dinaru 디나루
dn_fontname = dinaru
dn_namestem = dn
dn_virtual_namestem = wdn
dn_real_namestem = udn
dn_bold = yes
dn_sfd = hangul

# Dinaru light
dnl_fontname = dinaru
dnl_namestem = dnl
dnl_virtual_namestem = wdnl
dnl_real_namestem = udnl
dnl_bold = no
dnl_sfd = hangul

# Problems with dvips.  pdflatex also shows warnings about these fonts.
#
# Strange, no warnings in the log.  Perhaps because the original .pfb file has 
CR/LF lines (^M) and the new .pfb just LF lines?  -- No.  Other fonts also 
exhibit this "feature", and show no warnings at all.
# Or perhaps because the new .pfb names are exactly the same as those in the 
original UHC directory?
# The new .pfb files below don't have "AGL compliant glyph names added by 
script hlatex2agl.pl 2005-Jul-27." at the beginning of the file; others, like 
Myoungjo, have this line.
#
# It seems that some of the new .pfb files are just the same as the old ones; 
hlatex2agl didn't process them apparently.  Curious.  Check out the naming 
scheme.
#
# udn00.afm isn't processed.  udn12.afm is, but has no uni names; only ks.  
udn1{0,1}.afm are processed and have uni names.
#
# EUC-KR codes are changed with Unicode ones.
#
# dinaru and pilgia are the only ones made with FontForge instead of
# Fontographer.
#
# Koaunghi doesn't know.  No particular reason why he chose
# Fontlab or FontForge; he just needs either of them to make
# font hintings.
#
# Extra but unrelated:
# type1/uhc/taza/utt10.pfb: refers to Utt10
# type1/uhc/taza/utt04.pfb: refers to Umj04
#
# The warnings are:
#
# dvips: Checksum mismatch in udn10
# dvips: Checksum mismatch in udn11
# dvips: Checksum mismatch in udnbx10
# dvips: Checksum mismatch in udnbx11
# dvips: Checksum mismatch in udno10
# dvips: Checksum mismatch in udno11
# dvips: Checksum mismatch in udnbxo10
# dvips: Checksum mismatch in udnbxo11
# dvips: Checksum mismatch in udnl10
# dvips: Checksum mismatch in udnl11
# dvips: Checksum mismatch in udnlx10
# dvips: Checksum mismatch in udnlx11
# dvips: Checksum mismatch in udnlo10
# dvips: Checksum mismatch in udnlo11
# dvips: Checksum mismatch in udnlxo10
# dvips: Checksum mismatch in udnlxo11
# dvips: Checksum mismatch in upga10
# dvips: Checksum mismatch in upga11
# dvips: Checksum mismatch in upgax10
# dvips: Checksum mismatch in upgax11
# dvips: Checksum mismatch in upgao10
# dvips: Checksum mismatch in upgao11
# dvips: Checksum mismatch in upgaxo10
# dvips: Checksum mismatch in upgaxo11

# Gothic 고딕
gt_fontname = gothic
gt_namestem = gt
gt_virtual_namestem = wgt
gt_real_namestem = ugt
gt_bold = yes
gt_dep_vf = umj04
gt_bad_vf = 05 06
gt_sfd = hangul_symbol_hanja

# Graphic 그래픽
gr_fontname = graphic
gr_namestem = gr
gr_virtual_namestem = wgr
gr_real_namestem = ugr
gr_bold = yes
gr_dep_vf = ugt00 ugt01 ugt03 umj04
gr_bad_vf = 04 05 06 07
gr_sfd = hangul_symbol

# Problem disappeared.  I probably ran hlatex2agl too many times.
# Creating virtual property list file `wgr07.vf.vpl'...
# Illegal hexadecimal digit 'g' ignored at hlatex2agl-hangul_symbol.pl line 
392, <INFILE> line 128.
# Illegal hexadecimal digit 'p' ignored at hlatex2agl-hangul_symbol.pl line 
392, <INFILE> line 200.
# Reading `wgr07.vf.vpl'...

# Another problem, but only appears in a few fonts.  Need to grep again, 
because the frequency has diminished.
# Problem has vanished now.
# Processing 'ugr00.pfb'...
# Illegal hexadecimal digit 'g' ignored at hlatex2agl-hangul_symbol.pl line 
446, <INFILE> line 165.
# Illegal hexadecimal digit 'g' ignored at hlatex2agl-hangul_symbol.pl line 
446, <INFILE> line 2520.
# Processing `ugr01.pfb'...
# Illegal hexadecimal digit 'p' ignored at hlatex2agl-hangul_symbol.pl line 
446, <INFILE> line 217.
# Illegal hexadecimal digit 'p' ignored at hlatex2agl-hangul_symbol.pl line 
446, <INFILE> line 4560.
# Processing `ugr02.pfb'...

# Gungseo 궁서
gs_fontname = gungseo
gs_namestem = gs
gs_virtual_namestem = wgs
gs_real_namestem = ugs
gs_bold = no
gs_dep_vf = umjb00 umjb01 umjb03 umjb04
gs_bad_vf = 04 05 06 07
gs_sfd = hangul_symbol_hanja

# Jamo Gothic 자모 고딕
jgt_fontname = jamo
jgt_namestem = jgt
jgt_virtual_namestem = wjgt
jgt_real_namestem = jgt
jgt_bold = no
jgt_sfd = hangul

# Jamo Myoungjo 자모 명조
jmj_fontname = jamo
jmj_namestem = jmj
jmj_virtual_namestem = wjmj
jmj_real_namestem = jmj
jmj_bold = no
jmj_sfd = hangul

# Jamo Novel 자모 노벨
jnv_fontname = jamo
jnv_namestem = jnv
jnv_virtual_namestem = wjnv
jnv_real_namestem = jnv
jnv_bold = no
jnv_sfd = hangul

# Jamo Sora 자모 소라
jsr_fontname = jamo
jsr_namestem = jsr
jsr_virtual_namestem = wjsr
jsr_real_namestem = jsr
jsr_bold = no
jsr_sfd = hangul

# Myoungjo 명조
mj_fontname = myoungjo
mj_namestem = mj
mj_virtual_namestem = wmj
mj_real_namestem = umj
mj_bold = yes
mj_sfd = hangul_symbol_hanja

# Pen 펜글씨
pn_fontname = pen
pn_namestem = pn
pn_virtual_namestem = wpn
pn_real_namestem = upn
pn_bold = no
pn_sfd = hangul

# Pen Heulim 펜흘림
ph_fontname = pen
ph_namestem = ph
ph_virtual_namestem = wph
ph_real_namestem = uph
ph_bold = no
ph_sfd = hangul

# Pilgi 필기
pg_fontname = pilgi
pg_namestem = pg
pg_virtual_namestem = wpg
pg_real_namestem = upg
pg_bold = yes
pg_sfd = hangul

# Pilgi A 필기a
pga_fontname = pilgia
pga_namestem = pga
pga_virtual_namestem = wpga
pga_real_namestem = upga
pga_bold = no
pga_sfd = hangul

# Shinmun 신문 명조
sh_fontname = shinmun
sh_namestem = sh
sh_virtual_namestem = wsh
sh_real_namestem = ush
sh_bold = no
sh_dep_vf = umj00 umj01 umj03 umj04
sh_bad_vf = 04 05 06 07
sh_sfd = hangul_symbol_hanja

# Taza 타자 (Typewriter)
tt_fontname = taza
tt_namestem = tt
tt_virtual_namestem = wtt
tt_real_namestem = utt
tt_bold = no
tt_dep_vf = umj04 ugt01 ugt02 ugt03 ugt05 ugt20 ugt21 ugt22 ugt23 ugt24 ugt25 
ugt26 ugt27 ugt28 ugt29 ugt30 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt38
tt_bad_vf = 04 05 06 07 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 
28 29
tt_sfd = hangul_symbol_hanja

# Vada 바다
vd_fontname = vada
vd_namestem = vd
vd_virtual_namestem = wvd
vd_real_namestem = uvd
vd_bold = no
vd_sfd = hangul

# Yetgul 옛글
yt_fontname = yetgul
yt_namestem = yt
yt_virtual_namestem = wyt
yt_real_namestem = uyt
yt_bold = no
yt_sfd = hangul_hanja


# Variable substitutions:

fontname = $($(abbrev)_fontname)
namestem = $($(abbrev)_namestem)
virtual_namestem = $($(abbrev)_virtual_namestem)
real_namestem = $($(abbrev)_real_namestem)
bold = $($(abbrev)_bold)
dep_vf = $($(abbrev)_dep_vf)
bad_vf = $($(abbrev)_bad_vf)
fix_vf_namestems = $(shell for i in $(dep_vf); do printf $$i|cut -c -3 -; done)
sfd = $($(abbrev)_sfd)
build-stamp_fonts = $(addprefix build-stamp.,$(fonts))
clean_fonts = $(addprefix clean_,$(fonts))
fdfile_fonts = $(addprefix fdfile_,$(fonts))
install_fonts = $(addprefix install_,$(fonts))
install2_fonts = $(addprefix install2_,$(fonts))


all: clean build fdfile install

clean:
        rm -f build-stamp
        @for i in $(allfonts);\
          do echo "Removing $$i/"; rm -rf $$i; done

build: build-stamp
build-stamp: $(build-stamp_fonts)
        touch build-stamp

$(build-stamp_fonts): abbrev = $(patsubst build-stamp.%,%,$@)
$(build-stamp_fonts):
        ### Starting to build "$(fontname) ($(abbrev))".
        # Copying the necessary files to $(fontname)/.
        mkdir -p $(fontname)
        cp $(texmf)/fonts/{afm,tfm,type1}/uhc/$(fontname)/$(real_namestem)* 
$(fontname)/
        cp $(texmf)/fonts/{tfm,vf}/uhc/$(fontname)/$(virtual_namestem)* 
$(fontname)/
        cp latex-cjk/{sfd2uni.pl,hlatex2agl.pl,aglfn13.txt,$(sfdfile)} 
$(fontname)/
        @echo

        # Make some .vf files refer to one's own font instead of others'.
        if [[ -n "$(bad_vf)" ]];\
          then cd $(fontname);\
          for i in $(dep_vf);\
            do cp $(texmf)/fonts/{afm,tfm,type1}/uhc/*/$$i* .;\
              rename -f 's/^u../$(real_namestem)/' $$i*;\
          done;\
          for i in $(bad_vf);\
            do vftovp 
$(texmf)/fonts/vf/uhc/$(fontname)/$(virtual_namestem)$$i.vf 
$(virtual_namestem)$$i.tfm $(virtual_namestem)$$i.vpl;\
            for j in $(fix_vf_namestems);\
              do sed -i -e 's/'$$j'/$(real_namestem)/g' 
$(virtual_namestem)$$i.vpl;\
            done;\
            vptovf $(virtual_namestem)$$i.vpl $(virtual_namestem)$$i.vf 
$(virtual_namestem)$$i.tfm;\
          done;\
        if [[ $(bold) = yes ]];\
          then for i in $(dep_vf);\
            do j=`echo $$i|cut -c -3 -`b`echo $$i|cut -c 4- -`;\
              cp $(texmf)/fonts/{afm,tfm,type1}/uhc/*/$$j* .;\
              rename -f 's/^u../$(real_namestem)/' $$j*;\
          done;\
          for i in $(bad_vf);\
            do vftovp 
$(texmf)/fonts/vf/uhc/$(fontname)/$(virtual_namestem)b$$i.vf 
$(virtual_namestem)b$$i.tfm $(virtual_namestem)b$$i.vpl;\
            for j in $(fix_vf_namestems);\
              do sed -i -e 's/'$$j'/$(real_namestem)/g' 
$(virtual_namestem)b$$i.vpl;\
            done;\
            vptovf $(virtual_namestem)b$$i.vpl $(virtual_namestem)b$$i.vf 
$(virtual_namestem)b$$i.tfm;\
          done;\
        fi;\
        fi
        @echo

        # sfd -> Unicode
        cd $(fontname);\
         perl sfd2uni.pl $(sfdfile) $(virtual_namestem) u$(virtual_namestem) 
HLATEX &> log;\
         for i in $(variants);\
          do perl sfd2uni.pl $(sfdfile) $(virtual_namestem)$$i 
u$(virtual_namestem)$$i HLATEX >> log 2>&1;\
           if [[ $(bold) = "yes" ]];\
            then perl sfd2uni.pl $(sfdfile) $(virtual_namestem)b$$i 
u$(virtual_namestem)b$$i HLATEX >> log 2>&1;\
          fi;\
        done
        @echo

        # Adding AGL compliant glyph names to fonts from the HLaTeX package.
        cd $(fontname);\
        perl hlatex2agl.pl $(virtual_namestem) $(real_namestem) $(sfdfile) >> 
log 2>&1;\
        if [[ $(bold) = "yes" ]];\
          then perl hlatex2agl.pl $(virtual_namestem)b $(real_namestem)b 
$(sfdfile) >> log 2>&1;\
        fi
        @echo


fdfile: $(fdfile_fonts)
$(fdfile_fonts): abbrev = $(patsubst fdfile_%,%,$@)
$(fdfile_fonts):
        @echo "Create $(fontname)/c70$(namestem).fd"
        @echo -e "% This is the file c70$(namestem).fd of the CJK package\n\
        %   for using Asian logographs (Chinese/Japanese/Korean) with LaTeX2e\n\
        %\n\
        % created by Werner Lemberg <[EMAIL PROTECTED]>\n\
        %\n\
        % Version 4.6.0 (11-Aug-2005)\n\n\
        \\def\\\\fileversion{4.6.0}\n\
        \\def\\\\filedate{2005/08/11}\n\
        
\\ProvidesFile{c70$(namestem).fd}[\\\\filedate\\space\\\\fileversion]\n\n\n\
        % character set: KS X 1001\n\
        % font encoding: Unicode\n\n\
        \\DeclareFontFamily{C70}{$(namestem)}{\\hyphenchar [EMAIL PROTECTED]" > 
$(fdfile)

        @echo "\\DeclareFontShape{C70}{$(namestem)}{m}{n}{<-> CJK * 
u$(virtual_namestem)}{}" >> $(fdfile)
        @if [[ $(bold) = "yes" ]];\
          then echo "\\DeclareFontShape{C70}{$(namestem)}{b}{n}{<-> CJK * 
u$(virtual_namestem)b}{}" >> $(fdfile);\
          else echo "\\DeclareFontShape{C70}{$(namestem)}{b}{n}{<-> CJKb * 
u$(virtual_namestem)}{\\CJKbold}" >> $(fdfile);\
        fi

        @for i in $(variants);\
        do case $$i in \
                "o") echo "\DeclareFontShape{C70}{$(namestem)}{m}{sl}{<-> CJK * 
u$(virtual_namestem)o}{}" >> $(fdfile);\
                     if [[ $(bold) = "yes" ]]; then \
                       echo "\\DeclareFontShape{C70}{$(namestem)}{b}{sl}{<-> 
CJK * u$(virtual_namestem)bo}{}" >> $(fdfile);\
                     else echo "\DeclareFontShape{C70}{$(namestem)}{b}{sl}{<-> 
CJKb * u$(virtual_namestem)o}{\CJKbold}" >> $(fdfile);\
                     fi;\
                     echo "\DeclareFontShape{C70}{$(namestem)}{m}{it}{<-> 
CJKssub * $(namestem)/m/sl}{}" >> $(fdfile);\
                     echo "\DeclareFontShape{C70}{$(namestem)}{b}{it}{<-> 
CJKssub * $(namestem)/b/sl}{}" >> $(fdfile);\
                     echo >> $(fdfile) ;;\
                "c") echo "\DeclareFontShape{C70}{$(namestem)}{c}{n}{<-> CJK * 
u$(virtual_namestem)c}{}" >> $(fdfile);\
                     if [[ $(bold) = "yes" ]]; then \
                       echo "\\DeclareFontShape{C70}{$(namestem)}{bc}{n}{<-> 
CJK * u$(virtual_namestem)bc}{}" >> $(fdfile);\
                     else echo "\DeclareFontShape{C70}{$(namestem)}{bc}{n}{<-> 
CJKb * u$(virtual_namestem)c}{\CJKbold}" >> $(fdfile);\
                     fi ;;\
                "co") echo "\DeclareFontShape{C70}{$(namestem)}{c}{sl}{<-> CJK 
* u$(virtual_namestem)co}{}" >> $(fdfile);\
                      if [[ $(bold) = "yes" ]]; then \
                        echo "\\DeclareFontShape{C70}{$(namestem)}{bc}{sl}{<-> 
CJK * u$(virtual_namestem)bco}{}" >> $(fdfile);\
                        else echo 
"\DeclareFontShape{C70}{$(namestem)}{bc}{sl}{<-> CJKb * 
u$(virtual_namestem)co}{\CJKbold}" >> $(fdfile);\
                      fi;\
                    echo "\DeclareFontShape{C70}{$(namestem)}{c}{it}{<-> 
CJKssub * $(namestem)/c/sl}{}" >> $(fdfile);\
                    echo "\DeclareFontShape{C70}{$(namestem)}{bc}{it}{<-> 
CJKssub * $(namestem)/bc/sl}{}" >> $(fdfile);\
                    echo >> $(fdfile) ;;\
                "x") echo "\DeclareFontShape{C70}{$(namestem)}{x}{n}{<-> CJK * 
u$(virtual_namestem)x}{}" >> $(fdfile);\
                      if [[ $(bold) = "yes" ]]; then \
                        echo "\\DeclareFontShape{C70}{$(namestem)}{bx}{n}{<-> 
CJK * u$(virtual_namestem)bx}{}" >> $(fdfile);\
                        else echo 
"\DeclareFontShape{C70}{$(namestem)}{bx}{n}{<-> CJKb * 
u$(virtual_namestem)x}{\CJKbold}" >> $(fdfile);\
                      fi ;;\
                "xo") \
                    echo "\DeclareFontShape{C70}{$(namestem)}{x}{sl}{<-> CJK * 
u$(virtual_namestem)xo}{}" >> $(fdfile);\
                    if [[ $(bold) = "yes" ]]; then \
                        echo "\\DeclareFontShape{C70}{$(namestem)}{bx}{sl}{<-> 
CJK * u$(virtual_namestem)bxo}{}" >> $(fdfile);\
                    else echo "\DeclareFontShape{C70}{$(namestem)}{bx}{sl}{<-> 
CJKb * u$(virtual_namestem)xo}{\CJKbold}" >> $(fdfile);\
                    fi;\
                    echo "\DeclareFontShape{C70}{$(namestem)}{x}{it}{<-> 
CJKssub * $(namestem)/x/sl}{}" >> $(fdfile);\
                    echo "\DeclareFontShape{C70}{$(namestem)}{bx}{it}{<-> 
CJKssub * $(namestem)/bx/sl}{}" >> $(fdfile);\
                    echo >> $(fdfile) ;;\
                "u") \
                    echo "\DeclareFontShape{C70}{$(namestem)}{ux}{n}{<-> CJK * 
u$(virtual_namestem)u}{}" >> $(fdfile);\
                    if [[ $(bold) = "yes" ]]; then \
                        echo "\\DeclareFontShape{C70}{$(namestem)}{bux}{n}{<-> 
CJK * u$(virtual_namestem)bu}{}" >> $(fdfile);\
                    else echo "\DeclareFontShape{C70}{$(namestem)}{bux}{n}{<-> 
CJKb * u$(virtual_namestem)u}{\CJKbold}" >> $(fdfile);\
                    fi ;;\
                "uo") \
                    echo "\DeclareFontShape{C70}{$(namestem)}{ux}{sl}{<-> CJK * 
u$(virtual_namestem)uo}{}" >> $(fdfile);\
                    if [[ $(bold) = "yes" ]]; then \
                        echo "\\DeclareFontShape{C70}{$(namestem)}{bux}{sl}{<-> 
CJK * u$(virtual_namestem)buo}{}" >> $(fdfile);\
                    else echo "\DeclareFontShape{C70}{$(namestem)}{bux}{sl}{<-> 
CJKb * u$(virtual_namestem)uo}{\CJKbold}" >> $(fdfile);\
                    fi;\
                    echo "\DeclareFontShape{C70}{$(namestem)}{ux}{it}{<-> 
CJKssub * $(namestem)/ux/sl}{}" >> $(fdfile);\
                    echo "\DeclareFontShape{C70}{$(namestem)}{bux}{it}{<-> 
CJKssub * $(namestem)/bux/sl}{}" >> $(fdfile);\
                    echo >> $(fdfile) ;;\
                *) \
                    echo "Oops, don't know this variant" ;;\
            esac;\
        done
        @echo "\endinput" >> $(fdfile)

# Temporary target
install2: $(install_fonts)
$(install2_fonts): abbrev = $(patsubst install2_%,%,$@)
$(install2_fonts):
        mkdir -p $(fontname)/{afm,tfm,type1,vf}
        mv $(fontname)/*.afm $(fontname)/afm/
        mv $(fontname)/u$(virtual_namestem)*.tfm $(fontname)/tfm/
        mv $(fontname)/*.pfb $(fontname)/type1/
        mv $(fontname)/u$(virtual_namestem)*.vf $(fontname)/vf/

# Temporary target
install: $(install_fonts)
        texhash ~/texmf
$(install_fonts): abbrev = $(patsubst install_%,%,$@)
$(install_fonts):
        # Be careful.  pen and jamo have multiple fonts in their directories.
        # I need a better way to clean these directories.
        # rm -rf ~/texmf/fonts/{afm,tfm,type1,vf}/$(fontname)
        mkdir -p ~/texmf/fonts/{afm,tfm,type1,vf}/uhc/$(fontname)
        cp $(fontname)/$(real_namestem)*.afm ~/texmf/fonts/afm/uhc/$(fontname)
        cp $(fontname)/u$(virtual_namestem)*.tfm 
~/texmf/fonts/tfm/uhc/$(fontname)
        cp $(fontname)/$(real_namestem)*.pfb ~/texmf/fonts/type1/uhc/$(fontname)
        cp $(fontname)/u$(virtual_namestem)*.vf ~/texmf/fonts/vf/uhc/$(fontname)
        cp -f $(fontname)/c70$(namestem).fd ~/texmf/tex/latex/CJK/UTF8/
        @echo

.PHONY: all build clean fdfile install2


# Warnings

# 1.
# gothic/log:Use of uninitialized value in hash element at hlatex2agl.pl line 
359.
# graphic/log:Use of uninitialized value in hash element at 
hlatex2agl-hangul_symbol.pl line 359.
# jamo/log:Use of uninitialized value in array element at hlatex2agl-hangul.pl 
line 341.
# jamo/log:Use of uninitialized value in sprintf at hlatex2agl-hangul.pl line 
348.
# jamo/log:Use of uninitialized value in array element at hlatex2agl-hangul.pl 
line 349.


# 2. (for Koaung Hi)
# vftovp gothic/wgt04.vf gothic/wgtb04.vf gothic/wgtbc04.vf gothic/wgtbco04.vf 
gothic/wgtbo04.vf gothic/wgtbu04.vf gothic/wgtbuo04.vf gothic/wgtbx04.vf 
gothic/wgtbxo04.vf gothic/wgtc04.vf gothic/wgtco04.vf gothic/wgto04.vf 
gothic/wgtu04.vf gothic/wgtuo04.vf gothic/wgtx04.vf gothic/wgtxo04.vf 
graphic/wgr04.vf graphic/wgrb04.vf graphic/wgrbco04.vf graphic/wgrbo04.vf 
graphic/wgrbu04.vf graphic/wgrbuo04.vf graphic/wgrbx04.vf graphic/wgrbxo04.vf 
graphic/wgrc04.vf graphic/wgrco04.vf graphic/wgro04.vf graphic/wgru04.vf 
graphic/wgruo04.vf graphic/wgrx04.vf graphic/wgrxo04.vf gungseo/wgs04.vf 
gungseo/wgsc04.vf gungseo/wgsco04.vf gungseo/wgso04.vf gungseo/wgsu04.vf 
gungseo/wgsuo04.vf gungseo/wgsx04.vf gungseo/wgsxo04.vf myoungjo/wmj04.vf 
myoungjo/wmjb04.vf myoungjo/wmjbc04.vf myoungjo/wmjbco04.vf 
myoungjo/wmjbco04.vf myoungjo/wmjbo04.vf myoungjo/wmjbu04.vf 
myoungjo/wmjbuo04.vf myoungjo/wmjbx04.vf myoungjo/wmjbxo04.vf 
myoungjo/wmjc04.vf myoungjo/wmjco04.vf myoungjo/wmjo04.vf myoungjo/wmju04.vf 
myoungjo/wmjuo04.vf myoungjo/wmjx04.vf myoungjo/wmjxo04.vf shinmun/wsh04.vf 
shinmun/wshc04.vf shinmun/wshco04.vf shinmun/wsho04.vf shinmun/wshu04.vf 
shinmun/wshuo04.vf shinmun/wshx04.vf shinmun/wshxo04.vf 
# Bad VF file: Character 251 in font 0 will be ignored
# Bad VF file: Character 252 in font 0 will be ignored
# Bad VF file: Character 253 in font 0 will be ignored
# Bad VF file: Character 254 in font 0 will be ignored

# vftovp gothic/wgtb05.vf gothic/wgtbc05.vf gothic/wgtbco05.vf 
gothic/wgtbo05.vf gothic/wgtbu05.vf gothic/wgtbuo05.vf gothic/wgtbx05.vf 
gothic/wgtbxo05.vf graphic/wgrbc05.vf graphic/wgrbco05.vf graphic/wgrbo05.vf 
graphic/wgrbu05.vf graphic/wgrbuo05.vf graphic/wgrbx05.vf graphic/wgrbxo05.vf 
# Bad VF file: Character 173 in font 1 will be ignored

# jamo/wjgt9.vf jamo/wjgtc9.vf jamo/wjgtco9.vf jamo/wjgto9.vf jamo/wjgtu9.vf 
jamo/wjgtuo9.vf jamo/wjgtx9.vf jamo/wjgtxo9.vf jamo/wjmj9.vf jamo/wjmjc9.vf 
jamo/wjmjco9.vf jamo/wjmjo9.vf jamo/wjmju9.vf jamo/wjmjuo9.vf jamo/wjmjx9.vf 
jamo/wjmjxo9.vf jamo/wjnv9.vf jamo/wjnvc9.vf jamo/wjnvco9.vf jamo/wjnvo9.vf 
jamo/wjnvu9.vf jamo/wjnvuo9.vf jamo/wjnvx9.vf jamo/wjnvxo9.vf jamo/wjsr9.vf 
jamo/wjsrc9.vf jamo/wjsrco9.vf jamo/wjsro9.vf jamo/wjsru9.vf jamo/wjsruo9.vf 
jamo/wjsrx9.vf jamo/wjsrxo9.vf 
# Bad VF file: Character 228 in font 0 will be ignored
# Bad VF file: Character 229 in font 0 will be ignored
# Bad VF file: Character 230 in font 0 will be ignored
# Bad VF file: Character 231 in font 0 will be ignored
# Bad VF file: Character 232 in font 0 will be ignored
# Bad VF file: Character 233 in font 0 will be ignored
# Bad VF file: Character 234 in font 0 will be ignored
# Bad VF file: Character 235 in font 0 will be ignored
# Bad VF file: Character 236 in font 0 will be ignored
# Bad VF file: Character 237 in font 0 will be ignored
# Bad VF file: Character 238 in font 0 will be ignored
# Bad VF file: Character 239 in font 0 will be ignored
# Bad VF file: Character 240 in font 0 will be ignored
# Bad VF file: Character 241 in font 0 will be ignored
# Bad VF file: Character 242 in font 0 will be ignored
# Bad VF file: Character 243 in font 0 will be ignored
# Bad VF file: Character 244 in font 0 will be ignored
# Bad VF file: Character 245 in font 0 will be ignored
# Bad VF file: Character 246 in font 0 will be ignored
# Bad VF file: Character 247 in font 0 will be ignored
# Bad VF file: Character 248 in font 0 will be ignored
# Bad VF file: Character 249 in font 0 will be ignored
# Bad VF file: Character 250 in font 0 will be ignored
# Bad VF file: Character 251 in font 0 will be ignored
# Bad VF file: Character 252 in font 0 will be ignored
# Bad VF file: Character 253 in font 0 will be ignored
# Bad VF file: Character 254 in font 0 will be ignored

# pilgi/wpg9.vf pilgi/wpgb9.vf pilgi/wpgbc9.vf pilgi/wpgbco9.vf pilgi/wpgbo9.vf 
pilgi/wpgbu9.vf pilgi/wpgbuo9.vf pilgi/wpgbx9.vf pilgi/wpgbxo9.vf 
pilgi/wpgc9.vf pilgi/wpgco9.vf pilgi/wpgo9.vf pilgi/wpgu9.vf pilgi/wpguo9.vf 
pilgi/wpgx9.vf pilgi/wpgxo9.vf 
# Bad VF file: Character 200 in font 0 will be ignored
# Bad VF file: Character 209 in font 0 will be ignored
# Bad VF file: Character 210 in font 0 will be ignored
# Bad VF file: Character 211 in font 0 will be ignored
# Bad VF file: Character 212 in font 0 will be ignored
# Bad VF file: Character 213 in font 0 will be ignored
# Bad VF file: Character 214 in font 0 will be ignored
# Bad VF file: Character 215 in font 0 will be ignored
# Bad VF file: Character 216 in font 0 will be ignored
# Bad VF file: Character 217 in font 0 will be ignored
# Bad VF file: Character 218 in font 0 will be ignored
# Bad VF file: Character 219 in font 0 will be ignored
# Bad VF file: Character 220 in font 0 will be ignored
# Bad VF file: Character 221 in font 0 will be ignored
# Bad VF file: Character 222 in font 0 will be ignored
# Bad VF file: Character 223 in font 0 will be ignored
# Bad VF file: Character 224 in font 0 will be ignored
# Bad VF file: Character 225 in font 0 will be ignored
# Bad VF file: Character 226 in font 0 will be ignored
# Bad VF file: Character 227 in font 0 will be ignored
# Bad VF file: Character 228 in font 0 will be ignored
# Bad VF file: Character 229 in font 0 will be ignored
# Bad VF file: Character 230 in font 0 will be ignored
# Bad VF file: Character 231 in font 0 will be ignored
# Bad VF file: Character 232 in font 0 will be ignored
# Bad VF file: Character 233 in font 0 will be ignored
# Bad VF file: Character 234 in font 0 will be ignored
# Bad VF file: Character 235 in font 0 will be ignored
# Bad VF file: Character 236 in font 0 will be ignored
# Bad VF file: Character 237 in font 0 will be ignored
# Bad VF file: Character 238 in font 0 will be ignored
# Bad VF file: Character 239 in font 0 will be ignored
# Bad VF file: Character 240 in font 0 will be ignored
# Bad VF file: Character 241 in font 0 will be ignored
# Bad VF file: Character 242 in font 0 will be ignored
# Bad VF file: Character 243 in font 0 will be ignored
# Bad VF file: Character 244 in font 0 will be ignored
# Bad VF file: Character 245 in font 0 will be ignored
# Bad VF file: Character 246 in font 0 will be ignored
# Bad VF file: Character 247 in font 0 will be ignored
# Bad VF file: Character 248 in font 0 will be ignored
# Bad VF file: Character 249 in font 0 will be ignored
# Bad VF file: Character 250 in font 0 will be ignored
# Bad VF file: Character 251 in font 0 will be ignored
# Bad VF file: Character 252 in font 0 will be ignored
# Bad VF file: Character 253 in font 0 will be ignored
# Bad VF file: Character 254 in font 0 will be ignored

# That's why I use three arguments after vftovp instead of a simple redirect &>.
# >> might also be a solution.
#
# Koaunghi is looking into it.  Perhaps a mismatch between the .pfb and the
# .vf files.
_______________________________________________
Cjk maillist  -  [email protected]
http://lists.ffii.org/mailman/listinfo/cjk

Reply via email to