Hi!
The (still unfinished) Makefile that I have now included, works fine with bm, dn, gt, gr, gs, jgt, jmj, jnv, jsr, mj, ph, pn, pg, pga, sh, tt, vd and yt, IOW all HLaTeX fonts that I know of. The building command would be: $ make clean build fdfile install (or just "$ make all") It will install everything in ~/texmf. The fonts can be downloaded from ftp://ctan.tug.org/tex-archive/fonts/korean/HLaTeX/ . They need to be installed before the Makefile will work. It also expects a directory called "latex-cjk/" that contains aglfn13.txt hlatex2agl-hangul.pl hlatex2agl-hangul_hanja.pl hlatex2agl-hangul_symbol.pl hlatex2agl.pl sfd2uni.pl UKS-HLaTeX-Hangul.sfd UKS-HLaTeX-Hangul_Hanja.sfd UKS-HLaTeX-Hangul_Symbol.sfd UKS-HLaTeX.sfd I need to clean it up, perhaps use "sed" to generate the .fd files. At least ItWorks(tm)! Ahem, I think it does. If there are some remarks, please let me know. I've only access to a teTeX distribution on Debian GNU/Linux. 2. 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. 3. In an earlier post, namely http://lists.ffii.org/pipermail/cjk/2006-June/001455.html sub 4, you mention this: >> Shinmun, Taza, Vada and Yetgul do not have EUC-KR encoded .afm or .pfb >> fonts that begin with a "w". Do I need to run uni2sfd.pl instead? > No. But you have to do the same game as with gothic: The files > 'umj0{0,1,3,4}' must be copied to 'ush0{0,1,3,4}', and the references > in the virtual fonts (e.g. in 'wsh07') must be updated accordingly. > Then you can run hlatex2agl and sfd2uni as usual. I haven't copied anything, but it works. And I don't know where I got that question from: none of the fonts have EUC-KR encoded files in either type1/ and afm/. In fact, these four fonts do have u* .afm and .pfb fonts. I wonder why I posed the question in the first place. Perhaps I was looking in the vf/ directory. Silly me. 4. The u??.pfb files created by hlatex2agl have exactly the same name as the original HLaTeX counterparts. Do I have to overwrite the original fonts? Or do I put them in a different directory in the $TEXMF tree? If so, won't this cause conflicts? (Cfr. following question.) 5. I have problems with dinaru and pilgia when I run dvips or pdflatex. Well, warnings actually. With dvips I get: 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 I noticed that hlatex2agl didn't put a comment in the dinaru and pilgia .pfb fonts. I think the reason is that these two fonts were the only two not created by Fontographer 4.1 but by FontForge 1.0. Perhaps hlatex2agl botches something up? Or perhaps dvips is confused because between the original udn10.pfb file and the new udn10.pfb file? I'll write an email to Koaunghi if he knows what the difference between the two font programs is. 6. I get the following warnings: 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. I don't know what this is. It didn't break any fonts though. 7. Currently each font is its own "italics" and its own "typewriter" font. Only the glue would be different. Would you prefer to have for example every \texttt{} use Tada, or should the user himself be smart enough to use \CJKfamily{tt} and to reconfigure \texttt and \tt if s/he wishes so? We might have to rethink how the .fd files are configured. 8. You can find a gzipped PostScript file of a testfile temporarily at http://users.skynet.be/so000618/cjk/KS-UTF8.ps.gz . I have numbered my questions and remarks, so it would be easier to reply in pieces. I know, I'm writing too longish emails, it's a bad habit. =D Best regards! Danai SAE-HAN 韓達耐 -- 题目:《梅花绝句》 作者:陆游(1125-1210) 闻道梅花坼晓风,雪堆遍满四山中。 何方可化身千亿,一树梅花一放翁。
#!/usr/bin/make -f # -*- makefile -*- # 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. #fonts = bm dn gt gr gs jgt jmj jnv jsr mj ph pn pg pga sh tt vd yt fonts = bm dn gt gr gs jgt jmj jnv jsr mj ph pn pg pga sh tt vd yt 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)) hlatex2agl_hangul = hlatex2agl-hangul.pl hlatex2agl_hangul_symbol = hlatex2agl-hangul_symbol.pl hlatex2agl_hangul_hanja = hlatex2agl-hangul_hanja.pl hlatex2agl_hangul_symbol_hanja = hlatex2agl.pl hlatex2agl = $(hlatex2agl_$($(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 the new .pfb files are just the same as the old ones; hlatex2agl didn't process them apparently. Curious. Check out the naming scheme. # # EUC-KR codes are changed with Unicode ones. # # No AGL headline! It seems that most files were made with Fontographer. # dinaru and pilgia are not. Could it be that Werner's hlatex2agl.pl Perl # script has a bug? # # type1/uhc/taza/utt10.pfb: refers to Utt10 # type1/taza/utt04.pfb: refers to Umj04 # # The warnings were: # # 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. # 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 #original: ugt05 ugt02 ugt03 ugt02 ugt03 ugt01 umj04 ugt05 umj04 ugt01 ugt03 ugt05 ugt01 ugt20 ugt21 ugt22 ugt23 ugt26 ugt27 ugt29 ugt30 ugt31 ugt33 ugt34 ugt35 ugt37 ugt24 ugt32 ugt36 ugt25 ugt28 ugt38 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt20 ugt22 ugt23 ugt24 ugt25 ugt26 ugt27 ugt28 ugt30 ugt21 ugt29 ugt37 ugt38 ugt22 ugt23 ugt33 ugt21 ugt31 ugt32 ugt34 ugt35 ugt36 ugt25 ugt24 ugt20 ugt27 ugt28 ugt30 ugt29 ugt26 ugt32 ugt21 ugt22 ugt24 ugt25 ugt31 ugt23 ugt27 ugt29 ugt30 ugt33 ugt35 ugt37 ugt36 ugt34 ugt28 ugt26 ugt20 ugt31 ugt33 ugt34 ugt36 ugt37 ugt22 ugt25 ugt30 ugt32 ugt35 ugt27 ugt28 ugt29 ugt20 ugt21 ugt23 ugt24 ugt26 ugt38 ugt23 ugt24 ugt26 ugt27 ugt28 ugt29 ugt30 ugt31 ugt32 ugt33 ugt34 ugt36 ugt37 ugt21 ugt35 ugt25 ugt20 ugt22 ugt25 ugt26 ugt27 ugt28 ugt29 ugt32 ugt36 ugt23 ugt34 ugt21 ugt30 ugt31 ugt33 ugt35 ugt37 ugt20 ugt22 ugt24 ugt38 ugt26 ugt28 ugt29 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt21 ugt22 ugt24 ugt25 ugt27 ugt30 ugt20 ugt23 ugt22 ugt23 ugt24 ugt25 ugt26 ugt27 ugt29 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt28 ugt30 ugt20 ugt21 ugt38 ugt37 ugt21 ugt22 ugt23 ugt28 ugt29 ugt30 ugt32 ugt33 ugt24 ugt26 ugt27 ugt31 ugt34 ugt36 ugt25 ugt35 ugt20 ugt38 ugt33 ugt35 ugt20 ugt21 ugt22 ugt23 ugt24 ugt25 ugt26 ugt27 ugt28 ugt29 ugt30 ugt31 ugt32 ugt34 ugt36 ugt37 ugt38 ugt26 ugt27 ugt28 ugt29 ugt31 ugt33 ugt34 ugt37 ugt23 ugt36 ugt30 ugt32 ugt20 ugt22 ugt25 ugt35 ugt24 ugt21 ugt38 ugt20 ugt21 ugt22 ugt23 ugt24 ugt25 ugt26 ugt27 ugt28 ugt29 ugt30 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt28 ugt29 ugt32 ugt33 ugt36 ugt37 ugt23 ugt27 ugt30 ugt26 ugt31 ugt34 ugt20 ugt21 ugt22 ugt24 ugt25 ugt35 ugt38 ugt28 ugt31 ugt32 ugt33 ugt34 ugt35 ugt36 ugt37 ugt20 ugt21 ugt22 ugt24 ugt25 ugt26 ugt27 ugt29 ugt30 ugt23 ugt31 ugt32 ugt33 ugt35 ugt26 ugt20 ugt22 ugt28 ugt36 ugt24 ugt25 ugt21 ugt23 ugt27 ugt30 ugt38 ugt29 ugt34 ugt37 ugt33 ugt34 ugt35 ugt36 ugt37 ugt20 ugt30 ugt31 ugt32 ugt26 ugt27 ugt29 ugt21 ugt24 ugt22 ugt23 ugt28 ugt38 ugt25 ugt37 ugt35 ugt22 ugt24 ugt26 ugt33 ugt34 ugt21 ugt23 ugt32 ugt36 ugt20 ugt25 ugt28 ugt30 ugt29 ugt27 ugt31 ugt28 ugt29 ugt33 ugt34 ugt35 ugt36 ugt37 ugt21 ugt24 ugt26 ugt20 ugt22 ugt23 ugt25 ugt27 ugt30 ugt31 ugt32 ugt28 ugt32 ugt20 ugt21 ugt22 ugt23 ugt24 ugt25 ugt26 ugt29 ugt31 ugt34 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): # 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,UKS-HLaTeX*.sfd} $(fontname)/ # 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 cd $(fontname);\ 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) $(virtual_namestem) $(real_namestem) >> log 2>&1;\ if [[ $(bold) = "yes" ]];\ then perl $(hlatex2agl) $(virtual_namestem)b $(real_namestem)b >> log 2>&1;\ fi @echo # for i in $(variants);\ # do perl $(hlatex2agl) $(virtual_namestem)$$i $(real_namestem)$$i >> log 2>&1;\ # done;\ # for i in $(variants);\ # do perl $(hlatex2agl) $(virtual_namestem)b$$i $(real_namestem)b$$i >> log 2>&1;\ # done;\ # 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. # 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.
_______________________________________________ Cjk maillist - [email protected] http://lists.ffii.org/mailman/listinfo/cjk
