Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PDF] dvipdfmx Could not find encoding file "H" ファイルが見つからない

597 views
Skip to first unread message

Yasushi Shinjo

unread,
May 11, 2009, 12:14:39 AM5/11/09
to
新城@筑波大学情報です。こんにちは。

dvipdfmx を使っていると、次のようなエラーが良く出るみたい。

------------------------------------------------------------
% dvipdfmx main.dvi
xxx.dvi -> xxx.pdf
[1
** ERROR ** Could not find encoding file "H".

Output file removed.
%
------------------------------------------------------------

これなのですが、適当に Web を検索すると、適当な答えが出てき
て、それでまあ適当に解決している人も多いみたいですが、手元の
環境では適当な解決策では Web に出ているような方法ではうまく
いきませんでした。

README の次の所を見て解決しました。

------------------------------------------------------------
* PostScript CMap Resources
Recommended location of CMap files (no suffix or with suffix .cmap) is
$TEXMF/fonts/cmap/
and environmental variable for adding extra search path for this format files
is
CMAPFONTS
You may want to set CMAPFONTS to include GhostScript's Resource path, e.g.,
/usr/share/ghostscript/Resource/CMap//
in your texmf.cnf file as this resource can be used by various programs that
manipulates PS/PDF files. ....
------------------------------------------------------------

というわけで、texmf.cnf の CMAPFONTS の設定に "H" ファイルを
含むディレクトリを追加しました。

------------------------------------------------------------
% diff texmf/web2c/texmf.cnf-2009-05-10
texmf/web2c/texmf.cnf
336c336,337
< CMAPFONTS = .;$TEXMF/fonts/cmap//
---
> %CMAPFONTS = .;$TEXMF/fonts/cmap//
> CMAPFONTS = .;$TEXMF/dvipdfm/CMap//;$TEXMF/fonts/cmap//
% ls -l texmf/dvipdfm/CMap/H
-rw-r--r-- 1 root admin 3778 May 28 1999 texmf/dvipdfm/CMap/H
%
------------------------------------------------------------

dvipdfmx は、texmf/ls-R を見ないというか、そもそも"H" のよう
な1文字ファイル名で見てもどうしようもないのかもしれません。
"CMap" くらいは見てもいいんじゃないかなあ。

答えが分かって Web を探すと、まあいろいろ見つかりますね。
「意味不明だけど成功した」という話が多すぎます。

\\ 新城 靖 (しんじょう やすし) \\
\\ 筑波大学 電子・情報       \\

0 new messages