下载新版本,解决redhat linux9.0下xpdf的中文乱码问题

Redhat linux9.0自有的xpdf不能显示中文,如我转在强烈推荐一本很不错的linux电子教程 (0篇)这篇帖子中的linux中文教程。

按照网上的办法把一个叫作好像是add-to-xpdfrc文件中的内容加到/etc/.xpdfrc中,依然不能正确中文,报错:找不到“adobe identity”(大概是这个名字)字符集。我懒得再去修复这个问题了。

用命令: rpm -e xpdf卸载了原来的xpdf。然后到http://www.foolabs.com/xpdf/download.html处下载了一个:x86, Linux  (glibc 2.2, staticly linked to Motif, t1lib, and FreeType):

xpdf-3.01pl2-linux.tar.gz (5604272 bytes)

解压后,按照里面INSTALL文件的说明拷贝几个文件到相应的目录。执行命令xpdf 文件名。能正常显示中文了。

不知是怎么一回事,我并没有安装下载地提供的中文支持语言包就能显示中文了,也许是卸载老版本的文件时并没有去掉中文支持包?

如果你像上面那样安装了xpdf-3.0.1pl2后仍然不能显示中文,不妨下载安装上述页面的两个中文语言支持包。

如下:


Language Support Packages

The Xpdf language support packages include CMap files, text encodings, and various other configuration information necessary or useful for specific character sets. (They do not include any fonts.) Any or all of these can be installed by simply unpacking the tar file and adding a few lines to your xpdfrc configuration file (see the README file inside each package for details).

The following packages are available:

    * Arabic: xpdf-arabic.tar.gz (1058 bytes)

    * Chinese/simplified: xpdf-chinese-simplified.tar.gz (835807 bytes)

    * Chinese/traditional: xpdf-chinese-traditional.tar.gz (794568 bytes)

...