From: Danai SAE-HAN (韓達耐) <[EMAIL PROTECTED]>
> From: Werner LEMBERG <[EMAIL PROTECTED]>
>
> > > # -*- makefile -*-
> > >
> > > # Version 0.90
> > > # Script to build Unicode fonts from HLaTeX, compatible with CJK.
> > >
> > > [...]
> > >
> > > # - UKS-HLaTeX-Hangul_Hanja.sfd (use UKS-HLaTeX.sfd and remove some
> > > blocks)
> > > # - UKS-HLaTeX-Hangul.sfd (idem)
> > > # - UKS-HLaTeX-Hangul_Symbol.sfd (idem)
> >
> > Isn't it possible to write small scripts (probably already embedded
> > into the Makefile) which generate those files from UKS-HLaTeX.sfd?
> > It's probably not worth the work but...
>
> I thought of this as well, but don't really know how I should
> proceed. Should I use sed inside some kind of loop like until to
> remove the specific blocks? Or perhaps I just use "cat << blabla" and
> redirect the output to a file. Or I just use sed with line numbers
> (which is probably the easiest)?
After some thinking, I just used the most simple way: rely on sed and
use line numbers. It's not that UKS-HLaTeX.sfd is constantly
changing anyway.
I made an extra "sfdfiles" target with the following lines:
echo "# $(sfdfile_hangul)" > latex-cjk/$(sfdfile_hangul)
sed -e '1,1 d' -e '258,940 d' latex-cjk/$(sfdfile_hangul_symbol_hanja)
>> latex-cjk/$(sfdfile_hangul)
echo "# $(sfdfile_hangul_symbol)" > latex-cjk/$(sfdfile_hangul_symbol)
sed -e '1,1 d' -e '308,940 d' latex-cjk/$(sfdfile_hangul_symbol_hanja)
>> latex-cjk/$(sfdfile_hangul_symbol)
echo "# $(sfdfile_hangul_hanja)" > latex-cjk/$(sfdfile_hangul_hanja)
sed -e '1,1 d' -e '258,307 d' latex-cjk/$(sfdfile_hangul_symbol_hanja)
>> latex-cjk/$(sfdfile_hangul_hanja)
Cheers!
Danai SAE-HAN
韓達耐
--
題目:《除夜自石湖歸苕溪》其一
作者:姜夔(1155-1221)
細草穿沙雪半銷,吳宮煙冷水迢迢。
梅花竹里無人見,一夜吹香過石橋。
_______________________________________________
Cjk maillist - [email protected]
http://lists.ffii.org/mailman/listinfo/cjk