LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: debianl

tetex中文环境完美解决UTF-8编码,现放出ebuild

[复制链接]
 楼主| 发表于 2006-9-12 15:49:16 | 显示全部楼层
如果用ebuild安装的instfonts.sh应该不会有这种问题的,以后关于latex-unicode-font-utils的更新就直接放gentoo-china-overlay里了。
回复 支持 反对

使用道具 举报

发表于 2006-9-12 15:50:52 | 显示全部楼层
Post by debianl
你的Unicode.sfd文件位置不对。。如果你生成的配置在$HOME下就复制/usr/share/latex-unicode-font-utils/Unicode.sfd到$HOME/texmf/fonts/sfd下,如果配置文件你是生成到/usr/local/share/texmf也一样,就复制到/usr/lcoal/share/texmf/fonts/sfd目录下。
有这个文件啊。
  1. # ls /usr/local/share/texmf/fonts/sfd
  2. Unicode.sfd
复制代码
我刚用gentoo-china-overlay里的ebuild装的,用了local的use。
回复 支持 反对

使用道具 举报

发表于 2006-9-12 16:09:54 | 显示全部楼层
Post by debianl
如果用ebuild安装的instfonts.sh应该不会有这种问题的,以后关于latex-unicode-font-utils的更新就直接放gentoo-china-overlay里了。

那样就好了,我现在就用这个overlay
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-12 16:14:58 | 显示全部楼层
Post by torres
有这个文件啊。
  1. # ls /usr/local/share/texmf/fonts/sfd
  2. Unicode.sfd
复制代码

我刚用gentoo-china-overlay里的ebuild装的,用了local的use。


呵呵。。可能与你机器上的tetex配置有关。。Lolita兄弟也用这个配置。。我们都没遇到你这样的问题哦。。不行的话你直接将Unicode.sfd搞到你当前目录就肯定可以了:cool:
回复 支持 反对

使用道具 举报

发表于 2006-9-12 16:22:55 | 显示全部楼层
Post by debianl
呵呵。。可能与你机器上的tetex配置有关。。Lolita兄弟也用这个配置。。我们都没遇到你这样的问题哦。。不行的话你直接将Unicode.sfd搞到你当前目录就肯定可以了:cool:
我的tetex沒做过任何配置啊!应做怎样的配置?我将Unicode.sfd拷到当前目录还是不行:
  1. $ dvipdfmx -v test.dvi
  2. test.dvi -> test.pdf
  3. DVI Comment:  TeX output 2006.09.12:1554
  4. [1<cmbx12@17.22pt(TFM:cmbx12)><sun62@17.22pt(TFM:sun62)(ENC:unicode
  5. ** ERROR ** Could not find encoding file "unicode".
  6. Output file removed.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-12 16:46:14 | 显示全部楼层
Post by torres
我的tetex沒做过任何配置啊!应做怎样的配置?我将Unicode.sfd拷到当前目录还是不行:
  1. $ dvipdfmx -v test.dvi
  2. test.dvi -> test.pdf
  3. DVI Comment:  TeX output 2006.09.12:1554
  4. [1<cmbx12@17.22pt(TFM:cmbx12)><sun62@17.22pt(TFM:sun62)(ENC:unicode
  5. ** ERROR ** Could not find encoding file "unicode".
  6. Output file removed.
复制代码

看起来你的dvipdfmx版本有点老了。。也怪我的ebuild里没有加上一个>=app-text/dvipdfmx-20050201。。

下面是官方网站的news:

#
2005-02-01 Important Note

A few bugs were fixed, which occurred either in subfont scheme, e.g., CJK-LaTeX or HLaTeX, or in Truetype fonts with CIDType2 format. We encourage the users to recompile the source in the CVS repository (with the tag DVIPDFMX-20050201). For MiKTeX 2.4 users, see note in the section Binary Packages.
#
2005-08-03 Graphics and Image Support

Experimental embedded ICC profile support for JPEG and PNG format images. BMP image format is supported. Bug fixes on TPIC support.
#
2004-08-03 Unicode Support

[color="Red"]A new encoding keyword "unicode" can be specified in fontmap file for TrueType and Type1 font. TrueType font must have Windows UCS2 (format 4) or UCS4 (format 12) cmap subtable. Glyph list file (PS glyph name to Unicode mapping) is required for Type1 font support. Automatic creation and embedding of ToUnicode CMap is available for Type 1, TrueType, and OpenType font.
回复 支持 反对

使用道具 举报

发表于 2006-9-12 16:49:57 | 显示全部楼层
用instfont.sh脚本装了7、8次了,均无问题

追加字体到font_map.dat时,要记得把已有的字体行删掉,否则又会生成一遍。也就是说 font_map.dat里头的字体就是追加的字体
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-12 16:52:57 | 显示全部楼层
Post by Lolita
用instfont.sh脚本装了7、8次了,均无问题

追加字体到font_map.dat时,要记得把已有的字体行删掉,否则又会生成一遍。


我看了一下dvipdfmx的ebuild脚本。。dvipdfmx-20050201是~x86的包。。我怀疑上面那位兄弟可能比较保守用的是x86的包dvipdfmx-20040411吧。。那时候ENCNAME还没加入unicode这个关键字呢
回复 支持 反对

使用道具 举报

发表于 2006-9-12 17:04:21 | 显示全部楼层
Post by debianl
我看了一下dvipdfmx的ebuild脚本。。dvipdfmx-20050201是~x86的包。。我怀疑上面那位兄弟可能比较保守用的是x86的包dvipdfmx-20040411吧。。那时候ENCNAME还没加入unicode这个关键字呢

升级了dvipdfmx,都解决了!:thank
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-12 17:15:48 | 显示全部楼层
Post by torres
升级了dvipdfmx,都解决了!:thank


哈哈。。我的错。。给ebuild里加上个版本限制。。你就老老实实地装了:cool:
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表