|
|
发表于 2006-11-3 16:02:33
|
显示全部楼层
改成Bg5还不如直接用UTF8呢,debian源里的中文字体应该是utf8的,别的Bg5等用的是虚拟字体,记得原先的latex-cjk中的big5字体生成脚本是这样的,不知现在的咋样了
tetex已经停止开发了,Thomas Esser应该是累了,在开源的世界里经常碰到德国人做得东东,TeX中仅个人知道的作品还有CJK和beamer
生成字体的话,cjk-current.tar.gz里的cjk-current/utils/subfonts/目录下的几个脚本可以用来生成字体,给个链接,Werner示范了下生成UTF8的字体,对Bg5使用vf字体
http://lists.ffii.org/pipermail/cjk/2005-September/001264.html- [Cjk] fontforge scripts
- Werner LEMBERG wl at gnu.org
- Sun Sep 4 21:15:07 CEST 2005
- * Previous message: [Cjk] fontforge scripts
- * Next message: [Cjk] fontforge scripts
- * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- > From what I've understood, these are the commands that I should use:
- >
- > fontforge -script subfonts.pe bsmi00lp.ttf bsmi \
- > /usr/share/texmf/ttf2tfm/UBig5.sfd
- >
- > perl uni2sfd.pl bsmi /usr/share/texmf/ttf2tfm/UBig5.sfd bsmiu \
- > cjkbig5
- >
- > fontforge -script vertical.pe bsmi00lp.ttf bsmiv
- >
- > perl clonevf.pl bsmiv bsmi
- >
- > fontforge -script vertref.pe bsmi00lp.ttf bsmivr
- >
- > perl makefdx.pl bsmivr.afm /usr/share/texmf/ttf2tfm/UBig5.sfd \
- > c00bsmi.fdx
- This is not correct. For the bsmi00lp font in TeXLive, I've created
- *Unicode* encoded real fonts which are mapped to virtual Big 5 fonts.
- Using the font names from TeXLive, we have
- [color="Magenta"]
- # create Unicode encoded subfonts `bsmiu00' .. `bsmiuff'
- fontforge -script subfonts.pe bsmi00lp.ttf bsmiu Unicode.sfd
- # create font `bsmiuv' with all vertical glyph representation forms
- fontforge -script vertical.pe bsmi00lp.ttf bsmiuv
- # create font `bsmiuvr' which has the same structure as `bsmiuv',
- # but normal glyphs instead of vertical representation forms
- fontforge -script vertref.pe bsmi00lp.ttf bsmiuvr
- # create a virtual font `bsmilpv' which is a clone of `bsmiuv'
- perl clonevf.pl bsmiuv bsmilpv
- # create virtual fonts `bsmilp00' .. `bsmilp55' in Big 5 encoding
- # which use Unicode encoded `bsmiuXX' subfonts as raw fonts
- # and `cjkbig5' as the `CODINGSCHEME' parameter value
- perl uni2sfd.pl bsmiu UBig5.sfd bsmilp cjkbig5
- # create entries for the extended font definition file
- # `c00bsmi.fdx' (which uses Big 5 encoding), with `bsmiuvr' as
- # the reference font
- perl makefdx.pl bsmiuvr.afm UBig5.sfd c00bsmi.fdx
- # create entries for the extended font definition file
- # `c70bsmi.fdx' (which uses Unicode encoding), with `bsmiuvr' as
- # the reference font
- perl makefdx.pl bsmiuvr.afm Unicode.sfd c70bsmi.fdx
- [/color]
- I hope I got it right from memory...
- > Yet I don't get the same fonts as Werner's package at
- > [url]http://www.tug.org/tex-archive/fonts/arphic/bsmi00lp-20050720.tar.gz[/url]
- > Its README file isn't clear: it says that subfonts.pe makes the
- > Unicode encoded files and uni2sfd.pl creates the Big5 files, but
- > reading the script files themselves make me conclude the opposite.
- How do you come to this conclusion?
- > Secundo, I have interchanged namestem and uni_namestem with
- > uni2sfd.pl, otherwise I can't run uni2sfd.pl.
- I hope that the above makes it clear how to use it.
- > Tertio, should vertical.pe have bsmiv or bsmiuv as argument? And
- > should vertref.pe have bsmivr or bsmiuvr as argument? I like to use
- > a straightforward naming scheme.
- In the CJK package, `v' is handled as a plane, so I use `bsmiuv' for
- the vertical glyphs, and `bsmiuvr' for the reference font.
- > Quinto, makefdx.pl only creates \CJKvdef lines, no \CJKvlet lines
- > for boldface. Is there a possibility to add these lines to the Perl[Cjk] fontforge scripts
- Werner LEMBERG wl at gnu.org
- Sun Sep 4 21:15:07 CEST 2005
- * Previous message: [Cjk] fontforge scripts
- * Next message: [Cjk] fontforge scripts
- * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
复制代码 |
|