«前の日記(2009.03.22 / Sunday) 最新 次の日記(2009.03.25 / Wednesday)» 編集

Hena Hena Nikki

2003|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|10|11|12|
2012|01|02|03|04|05|06|07|08|10|12|
2013|01|02|04|06|

2009.03.24 / Tuesday [長年日記]

* [computer] GPL Ghostscript 8.64 を Mac OS X 10.5 にインストールする

事前に zlib, iconv, X11 をインストールしておくと良い。

$ wget -c http://www.ring.gr.jp/pub/text/CTAN/support/ghostscript/GPL/gs864/ghostscript-8.64.tar.bz2
$ bzip2 -cd ghostscript-8.64.tar.bz2 | tar xvf -
$ cd ghostscript-8.64/
$ ./configure --with-x --enable-dynamic
$ make && make check
$ sudo make install

CFLAGS はお好みで。

次にフォントのインストール。 これで英文の PS ファイルを扱えるようになる。

$ wget -c http://www.ring.gr.jp/pub/text/CTAN/support/ghostscript/GPL/gs861/ghostscript-fonts-std-8.11.tar.gz
$ wget -c http://www.ring.gr.jp/pub/text/CTAN/support/ghostscript/GPL/gs850/ghostscript-fonts-other-6.0.tar.gz
$ gzip -cd ghostscript-fonts-*.tar.gz | tar xvf -
$ sudo cp -r fonts /usr/local/share/ghostscript/
$ mkdir work
$ cd work
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uagd8a.pfb -o a010015l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uagdo8a.pfb -o a010035l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uagk8a.pfb -o a010013l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uagko8a.pfb -o a010033l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ubkd8a.pfb -o b018015l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ubkdi8a.pfb -o b018035l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ubkl8a.pfb -o b018012l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ubkli8a.pfb -o b018032l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ucrb8a.pfb -o n022004l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ucrbo8a.pfb -o n022024l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ucrr8a.pfb -o n022003l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/ucrro8a.pfb -o n022023l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvb8a.pfb -o n019004l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvb8ac.pfb -o n019044l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvbo8a.pfb -o n019024l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvbo8ac.pfb -o n019064l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvr8a.pfb -o n019003l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvr8ac.pfb -o n019043l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvro8a.pfb -o n019023l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uhvro8ac.pfb -o n019063l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uncb8a.pfb -o c059016l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uncbi8a.pfb -o c059036l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uncr8a.pfb -o c059013l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uncri8a.pfb -o c059033l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uplb8a.pfb -o p052004l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uplbi8a.pfb -o p052024l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uplr8a.pfb -o p052003l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uplri8a.pfb -o p052023l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/usyr.pfb -o s050000l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/utmb8a.pfb -o n021004l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/utmbi8a.pfb -o n021024l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/utmr8a.pfb -o n021003l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/utmri8a.pfb -o n021023l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uzcmi8a.pfb -o z003034l.pfb
$ curl http://www.ring.gr.jp/pub/text/CTAN/fonts/urw/base35/pfb/uzdr.pfb -o d050000l.pfb
$ sudo cp *.pfb /usr/local/share/ghostscript/fonts/

最後に日本語・韓国語・中国語関連。

$ sudo mkdir /usr/local/share/ghostscript/8.64/Resource/CIDFont
$ cd /usr/local/share/ghostscript/8.64/Resource/CIDFont
$ sudo ln -s "`grep -l HiraMinProN-W3 /System/Library/Fonts/*.otf`" "HiraMinProN-W3"
$ sudo ln -s "`grep -l HiraMinProN-W6 /System/Library/Fonts/*.otf`" "HiraMinProN-W6"
$ sudo ln -s "`grep -l HiraKakuProN-W3 /System/Library/Fonts/*.otf`" "HiraKakuProN-W3"
$ sudo ln -s "`grep -l HiraKakuProN-W6 /System/Library/Fonts/*.otf`" "HiraKakuProN-W6"
$ sudo ln -s "`grep -l HiraKakuStdN-W8 /Library/Fonts/*.otf`" "HiraKakuStdN-W8"
$ sudo ln -s "`grep -l HiraMaruProN-W4 /Library/Fonts/*.otf`" "HiraMaruProN-W4"
$ sudo ln -s "`grep -l HiraMinPro-W3 /Library/Fonts/*.otf`" "HiraMinPro-W3"
$ sudo ln -s "`grep -l HiraMinPro-W6 /Library/Fonts/*.otf`" "HiraMinPro-W6"
$ sudo ln -s "`grep -l HiraKakuPro-W3 /Library/Fonts/*.otf`" "HiraKakuPro-W3"
$ sudo ln -s "`grep -l HiraKakuPro-W6 /Library/Fonts/*.otf`" "HiraKakuPro-W6"
$ sudo ln -s "`grep -l HiraKakuStd-W8 /Library/Fonts/*.otf`" "HiraKakuStd-W8"
$ sudo ln -s "`grep -l HiraMaruPro-W4 /Library/Fonts/*.otf`" "HiraMaruPro-W4"
$ sudo mkdir /usr/local/share/ghostscript/fonts/TrueType
$ cd /usr/local/share/ghostscript/fonts/TrueType
$ sudo ln -s "`grep -l 'STHeiti.*Regular' /System/Library/Fonts/*.ttf`" "STHeiti.ttf"
$ sudo ln -s "`grep -l STXihei /System/Library/Fonts/*.ttf`" "STXihei.ttf"
$ sudo ln -s "`grep -l LiHeiPro /System/Library/Fonts/*.ttf`" "LiHeiPro.ttf"

ついでに MS Office を持っている場合は以下。

$ cd /usr/local/share/ghostscript/fonts/TrueType
$ sudo ln -s "`grep -l 'MS Gothic' /Library/Fonts/Microsoft/*.ttf`" "MS Gothic.ttf"
$ sudo ln -s "`grep -l 'MS Mincho' /Library/Fonts/Microsoft/*.ttf`" "MS Mincho.ttf"
$ sudo ln -s "`grep -l 'MS PGothic' /Library/Fonts/Microsoft/*.ttf`" "MS PGothic.ttf"
$ sudo ln -s "`grep -l 'MS PMincho' /Library/Fonts/Microsoft/*.ttf`" "MS PMincho.ttf"

ここからは明日以降に追記します。


  • この日記には本日 名の方が訪問してくださっているようです。 また、昨日は 名の方が訪問してくださったようです。
  • この日記の更新情報の取得には antenna.lirs を利用するのがおすすめです。