Package: texlive-binaries,texlive-base,tex-common Version: 2009-5 Severity: important Tags: patch Hello, dvipdfmx shipped in this package does not work with some DVI files, for example, an attached one, with a following error $ dvipdfmx test.dvi test.dvi -> test.pdf ** WARNING ** Failed to load AGL file "pdfglyphlist.txt"... ** WARNING ** Failed to load AGL file "glyphlist.txt"... [1 kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+555/600 --dpi 555 rml-jis mktexpk: don't know how to create bitmap font for rml-jis. kpathsea: Appending font creation commands to missfont.log. ** WARNING ** Could not locate a virtual/physical font for TFM "rml-jis". ** WARNING ** >> There are no valid font mapping entry for this font. ** WARNING ** >> Font file name "rml-jis" was assumed but failed to locate that font. ** ERROR ** Cannot proceed without .vf or "physical" font for PDF output... Output file removed. where the DVI file uses a jis font "rml-jis". In Japanese pTeX environment this is specified by /etc/texmf/dvipdfm/jis-cjk.map in ptex-jisfonts package. In Debian's old dvipdfmx package, dvipdfmx configuration to look for the jis-cjk.map file was done using /etc/texmf/dvipdfm/fontmapsx file, which is generated by the packages (like ptex-jisfonts) needed to add another map file to dvipdfmx's configuration. fontmapsx was introduced since dvipdfmx does not have "update-dvipdfmx" or something for multiple configuration files; see #351525, which has been closed but I think still applies to this package. (I'm not sure other Chinese/Korean packages currently generate fontmapsx, though.) However, Debian-specific fontmapsx support has been dropped when dvipdfmx was integrated into TeX Live. So the errors above occur. Appending a map file entry to /etc/texmf/dvipdfmx/dvipdfmx.cfg like f jis-cjk.map fixes this problem. If other packages generate additional fontmapsx entries, they also need to be appended to dvipdfmx.cfg. Note that dvipdfmx users who do not use jis fonts will get a following warning, but not an error, nothing will be broken and a normal PDF file will be produced: ** WARNING ** Couldn't open font map file "jis-cjk.map". Attached a patch to texlive-base to fix dvipdfmx.cfg. In addition, /etc/texmf/texmf.d/80DVIPDFMx.cnf which was shipped in the old dvipdfmx package has also been dropped. This file adds a directory /usr/share/fonts/cmap for dvipdfmx to look for cmap files which are installed by Debian's cmap-adobe-* packages. So even if cmap-adobe-* packages are installed (and the previously mentioned problem addressed) some DVI files using CJK characters will get, for example, a following error: $ dvipdfmx test.dvi test.dvi -> test.pdf ** WARNING ** Failed to load AGL file "pdfglyphlist.txt"... ** WARNING ** Failed to load AGL file "glyphlist.txt"... [1 ** ERROR ** Could not find encoding file "H". Output file removed. Restoring the 80DVIPDFMx.cnf and call update-texmf will fix this problem. Attached a patch to tex-common to fix 80DVIPDFMx.cnf. Regards, -- YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages texlive-binaries depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libfontconfig1 2.8.0-2 generic font configuration library ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib ii libgcc1 1:4.4.3-2 GCC support library ii libkpathsea5 2009-5 TeX Live: path search library for ii libncurses5 5.7+20090803-2 shared libraries for terminal hand ii libpng12-0 1.2.42-2 PNG library - runtime ii libpoppler5 0.12.2-2.1 PDF rendering library ii libstdc++6 4.4.3-2 The GNU Standard C++ Library v3 ii libx11-6 2:1.3.3-1 X11 client-side library ii libxaw7 2:1.0.7-1 X11 Athena Widget library ii libxmu6 2:1.0.5-1 X11 miscellaneous utility library ii libxpm4 1:3.5.8-1 X11 pixmap library ii libxt6 1:1.0.7-1 X11 toolkit intrinsics library ii tex-common 2.06 common infrastructure for building ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime texlive-binaries recommends no packages. texlive-binaries suggests no packages. -- no debconf information
Attachment:
test.dvi
Description: TeX dvi file
diff -urN texlive-base-2009/debian/patches/dvipdfmx-add-jis-cjk texlive-base-2009.new/debian/patches/dvipdfmx-add-jis-cjk --- texlive-base-2009/debian/patches/dvipdfmx-add-jis-cjk 1970-01-01 09:00:00.000000000 +0900 +++ texlive-base-2009.new/debian/patches/dvipdfmx-add-jis-cjk 2010-02-22 12:19:10.000000000 +0900 @@ -0,0 +1,8 @@ +--- texlive-base-2009.orig/texmf/dvipdfmx/dvipdfmx.cfg 2009-09-06 02:11:24.000000000 +0900 ++++ texlive-base-2009/texmf/dvipdfmx/dvipdfmx.cfg 2010-02-22 12:16:54.000000000 +0900 +@@ -190,3 +190,5 @@ + + %% Put additonal fontmap files here (usually for Type0 fonts) + f cid-x.map ++ ++f jis-cjk.map diff -urN texlive-base-2009/debian/patches/series texlive-base-2009.new/debian/patches/series --- texlive-base-2009/debian/patches/series 2010-02-22 12:23:11.000000000 +0900 +++ texlive-base-2009.new/debian/patches/series 2010-02-22 12:20:41.000000000 +0900 @@ -9,6 +9,7 @@ fix-info-dir-sections fix-pgf2pdf-script dvipdfm-config-no-rungs +dvipdfmx-add-jis-cjk fix-xyframe.tex.patch texdoc-update texdoc-viewer-use-see
diff -urN tex-common-2.06/conf/texmf.d/80DVIPDFMx.cnf tex-common-2.06.new/conf/texmf.d/80DVIPDFMx.cnf --- tex-common-2.06/conf/texmf.d/80DVIPDFMx.cnf 1970-01-01 09:00:00.000000000 +0900 +++ tex-common-2.06.new/conf/texmf.d/80DVIPDFMx.cnf 2010-02-22 04:36:32.000000000 +0900 @@ -0,0 +1,3 @@ +% dvipdfmx +CMAPINPUTS = .;/usr/share/fonts/cmap// + diff -urN tex-common-2.06/debian/common.variables tex-common-2.06.new/debian/common.variables --- tex-common-2.06/debian/common.variables 2009-05-10 22:38:40.000000000 +0900 +++ tex-common-2.06.new/debian/common.variables 2010-02-22 12:54:36.000000000 +0900 @@ -26,7 +26,7 @@ EOL $TEXMF_CNF="/etc/texmf/texmf.cnf"; @TEXMF_PARTS=qw(05TeXMF 15Plain 45TeXinputs 55Fonts 65BibTeX 75DviPS - 85Misc 90TeXDoc 95NonPath); + 80DVIPDFMx 85Misc 90TeXDoc 95NonPath); @TEXMF_PARTS_FULLNAME = map { "texmf.d/$_.cnf"; } @TEXMF_PARTS; $TEX_COMMON_UCF_FILES="@TEXMF_PARTS_FULLNAME updmap.d/00updmap.cfg"; #$confstatedir="/var/lib/tetex"; diff -urN tex-common-2.06/debian/md5sums/80DVIPDFMx.cnf.md5sum tex-common-2.06.new/debian/md5sums/80DVIPDFMx.cnf.md5sum --- tex-common-2.06/debian/md5sums/80DVIPDFMx.cnf.md5sum 1970-01-01 09:00:00.000000000 +0900 +++ tex-common-2.06.new/debian/md5sums/80DVIPDFMx.cnf.md5sum 2010-02-22 04:59:01.000000000 +0900 @@ -0,0 +1 @@ +7ae52efac46feb97010986e57877d12e 1:20050831-0.1