Vine Linux (4.1 Lynch Bages 付近)
ps2epsi
- ps→epsの変換
$ ps2epsi test.ps tes.eps $ ps2epsi test.ps # test.epsiが作られる。
update-alternatives
- Vine の update-alternatives は /sbin にあった。フルパスで実行
/sbin/update-alternatives --config gcc
Adobe Reader 9
- Adobe Reader 9 をインストールしたが、以下のようなメッセージが表示され、日本語のゴシックフォントが見れなかった。
このページを正しく表示するには、日本語サポートパッケージが必要です。 現在の設定では、このリソースは使用できません。これは、http:// www.adobe.com/products/acrobat/acrrasianfontpack.html からダウンロー ドできます。
- しかし、このページに行っても、Adobe Reader 9 用のパッケージはなかった。Adobe Reader 8 用のものを無理矢理インストール使用としても、以下のようなメッセージのところで止まってしまう。
$ ./INSTALL Welcome to the Asian Language Kit installation. This installation will not work if you do not have the Unix Adobe Reader version 8.1 installed prior to this installation. If you do not have Adobe Reader version 8.1 already installed on your system please do so before installing this Asian Language Kit. Continue installation? [y]y The font software contained in this package is being licensed to you solely for use with the Adobe Reader product ("Adobe Reader") subject to the terms and conditions of the Electronic End User License Agreement accompanying the Adobe Reader. Please type "accept" to accept the terms and conditions of license agreement; Type "decline" to exit. accept Enter the location where you installed the Adobe Reader [/opt]
- そこで、以下のページを参考にして日本語ゴシックを見れるようにした。
まず、Asian and Extended Language Font Packs for Adobe Reader のページへ行き、
- Adobe Reader Version: Adobe Reader 8
- Font Pack Language: Japanese
- Platform: Linux
と選択し、 download ボタンを押して、 FontPack81_jpn_i486-linux.tar.gz をダウンロードする。
- ダウンロードしたものを展開し、 KozMinProVI-Regular.otf を Adobe Reader 9 の CIDFont ディレクトリコピーする。以下のようなコマンドを打てば良い。
$ tar zxvf FontPack81_jpn_i486-linux.tar.gz $ su パスワード(P): # cp JPNKIT/Adobe/Reader8/Resource/CIDFont/KozGoProVI-Medium.otf /opt/Adobe/Reader9/Resource/CIDFont/ # exit $ rm FontPack81_jpn_i486-linux.tar.gz $ rm -r JPNKIT
- ちなみに、Adobe Reader 9 (Linux) 用の Asian and Extended Language Font Packs がないようなのでこのような方法を用いている。
dvipdfmx
- dvipdfmx を使って pdf ファイルを作り Acrobat Reader で見たとき、 Times-Bold, Times-Italic がないとか言われるときは、dvipdfmx の設定ファイル /usr/share/texmf/dvipdfm/dvipdfmx.cfg を変更。
D "gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o -dNOKANJI -c '.setpdfwrite << /NeverEmbed [/Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique /Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique /Times-Roman /Times-Bold /Times-Italic /Times-BoldItalic /Symbol /ZapfDingbats /Ryumin-Light /GothicBBB-Medium] >> setdistillerparams' -f %i -c quit"
- のうちの/Times-Bold /Times-Italicを削除し、以下のようにする。
D "gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o -dNOKANJI -c '.setpdfwrite << /NeverEmbed [/Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique /Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique /Times-Roman /Times-BoldItalic /Symbol /ZapfDingbats /Ryumin-Light /GothicBBB-Medium] >> setdistillerparams' -f %i -c quit"