From b05e86492a6a6c2165ebead8004cdcb2752c7607 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 11 Jan 2007 22:30:38 +0000 Subject: new from vvv git-svn-id: svn://tug.org/texlive/trunk@3346 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/powerpc-aix/afm2pl | Bin 104334 -> 104502 bytes Master/bin/powerpc-aix/afm2tfm | Bin 114658 -> 114826 bytes Master/bin/powerpc-aix/aleph | Bin 545469 -> 545661 bytes Master/bin/powerpc-aix/bbox | Bin 0 -> 6731 bytes Master/bin/powerpc-aix/bg5conv | Bin 2003 -> 2003 bytes Master/bin/powerpc-aix/bibtex | Bin 170513 -> 170681 bytes Master/bin/powerpc-aix/bibtex8 | Bin 203009 -> 203177 bytes Master/bin/powerpc-aix/cef5conv | Bin 3107 -> 3107 bytes Master/bin/powerpc-aix/cefconv | Bin 3019 -> 3019 bytes Master/bin/powerpc-aix/cefsconv | Bin 3123 -> 3123 bytes Master/bin/powerpc-aix/cfftot1 | Bin 505142 -> 505142 bytes Master/bin/powerpc-aix/ctangle | Bin 100730 -> 100922 bytes Master/bin/powerpc-aix/ctie | Bin 73470 -> 73638 bytes Master/bin/powerpc-aix/cweave | Bin 134618 -> 134810 bytes Master/bin/powerpc-aix/detex | Bin 82562 -> 82730 bytes Master/bin/powerpc-aix/devnag | Bin 31828 -> 31828 bytes Master/bin/powerpc-aix/disdvi | Bin 10243 -> 10243 bytes Master/bin/powerpc-aix/dmp | Bin 107736 -> 107904 bytes Master/bin/powerpc-aix/dt2dv | Bin 32867 -> 32867 bytes Master/bin/powerpc-aix/dv2dt | Bin 11283 -> 11283 bytes Master/bin/powerpc-aix/dvi2tty | Bin 20259 -> 20259 bytes Master/bin/powerpc-aix/dvibook | Bin 38306 -> 38306 bytes Master/bin/powerpc-aix/dviconcat | Bin 34022 -> 34022 bytes Master/bin/powerpc-aix/dvicopy | Bin 128246 -> 128406 bytes Master/bin/powerpc-aix/dvidvi | Bin 17215 -> 17215 bytes Master/bin/powerpc-aix/dvilj | Bin 104490 -> 104650 bytes Master/bin/powerpc-aix/dvilj2p | Bin 104834 -> 104994 bytes Master/bin/powerpc-aix/dvilj4 | Bin 112910 -> 113102 bytes Master/bin/powerpc-aix/dvilj4l | Bin 112918 -> 113110 bytes Master/bin/powerpc-aix/dvipdfm | Bin 485053 -> 485213 bytes Master/bin/powerpc-aix/dvipdfmx | Bin 940358 -> 940526 bytes Master/bin/powerpc-aix/dvipng | Bin 1040475 -> 1056471 bytes Master/bin/powerpc-aix/dvipos | Bin 0 -> 106018 bytes Master/bin/powerpc-aix/dvips | Bin 248806 -> 248998 bytes Master/bin/powerpc-aix/dviselect | Bin 36610 -> 36610 bytes Master/bin/powerpc-aix/dvitodvi | Bin 42130 -> 42130 bytes Master/bin/powerpc-aix/dvitomp | Bin 100786 -> 100954 bytes Master/bin/powerpc-aix/dvitype | Bin 101806 -> 101966 bytes Master/bin/powerpc-aix/ebb | Bin 269049 -> 269209 bytes Master/bin/powerpc-aix/epsffit | Bin 7042 -> 7042 bytes Master/bin/powerpc-aix/extconv | Bin 2003 -> 2003 bytes Master/bin/powerpc-aix/gftodvi | Bin 107518 -> 107678 bytes Master/bin/powerpc-aix/gftopk | Bin 91086 -> 91246 bytes Master/bin/powerpc-aix/gftype | Bin 88374 -> 88534 bytes Master/bin/powerpc-aix/gsftopk | Bin 87300 -> 87460 bytes Master/bin/powerpc-aix/hbf2gf | Bin 95386 -> 95554 bytes Master/bin/powerpc-aix/htcontext | 6 +- Master/bin/powerpc-aix/htlatex | 4 +- Master/bin/powerpc-aix/htmex | 4 +- Master/bin/powerpc-aix/httex | 4 +- Master/bin/powerpc-aix/httexi | 4 +- Master/bin/powerpc-aix/info | Bin 206087 -> 206087 bytes Master/bin/powerpc-aix/infokey | Bin 22271 -> 22271 bytes Master/bin/powerpc-aix/install-info | Bin 24397 -> 24397 bytes Master/bin/powerpc-aix/kpseaccess | Bin 3299 -> 3299 bytes Master/bin/powerpc-aix/kpsereadlink | Bin 3123 -> 3123 bytes Master/bin/powerpc-aix/kpsestat | Bin 3803 -> 3803 bytes Master/bin/powerpc-aix/kpsewhich | Bin 77638 -> 77806 bytes Master/bin/powerpc-aix/lacheck | Bin 52391 -> 52391 bytes Master/bin/powerpc-aix/mag | Bin 19526 -> 19526 bytes Master/bin/powerpc-aix/makeindex | Bin 144830 -> 144998 bytes Master/bin/powerpc-aix/makeinfo | Bin 256285 -> 256285 bytes Master/bin/powerpc-aix/makempx | Bin 72578 -> 72738 bytes Master/bin/powerpc-aix/mf | Bin 330538 -> 330698 bytes Master/bin/powerpc-aix/mf-nowin | Bin 323681 -> 323841 bytes Master/bin/powerpc-aix/mft | Bin 107058 -> 107218 bytes Master/bin/powerpc-aix/mk4ht | 10 +- Master/bin/powerpc-aix/mmafm | Bin 522305 -> 522305 bytes Master/bin/powerpc-aix/mmpfb | Bin 526971 -> 526971 bytes Master/bin/powerpc-aix/mpost | Bin 452806 -> 452966 bytes Master/bin/powerpc-aix/mpto | Bin 7631 -> 7631 bytes Master/bin/powerpc-aix/musixflx | Bin 14046 -> 14046 bytes Master/bin/powerpc-aix/newer | Bin 3991 -> 3991 bytes Master/bin/powerpc-aix/odvicopy | Bin 134446 -> 134606 bytes Master/bin/powerpc-aix/odvitype | Bin 103190 -> 103350 bytes Master/bin/powerpc-aix/omega | Bin 558133 -> 558325 bytes Master/bin/powerpc-aix/omfonts | Bin 181038 -> 181206 bytes Master/bin/powerpc-aix/otangle | Bin 57503 -> 57503 bytes Master/bin/powerpc-aix/otfinfo | Bin 594071 -> 594071 bytes Master/bin/powerpc-aix/otftotfm | Bin 1030251 -> 1030443 bytes Master/bin/powerpc-aix/otp2ocp | Bin 86390 -> 86558 bytes Master/bin/powerpc-aix/outocp | Bin 66954 -> 67122 bytes Master/bin/powerpc-aix/patgen | Bin 45435 -> 45435 bytes Master/bin/powerpc-aix/pdfclose | Bin 7269 -> 7269 bytes Master/bin/powerpc-aix/pdfopen | Bin 8141 -> 8141 bytes Master/bin/powerpc-aix/pdftex | Bin 1556517 -> 1555981 bytes Master/bin/powerpc-aix/pdftosrc | Bin 0 -> 507526 bytes Master/bin/powerpc-aix/pfb2pfa | Bin 7183 -> 7183 bytes Master/bin/powerpc-aix/pk2bm | Bin 9531 -> 9531 bytes Master/bin/powerpc-aix/pktogf | Bin 88674 -> 88866 bytes Master/bin/powerpc-aix/pktype | Bin 79278 -> 79438 bytes Master/bin/powerpc-aix/pltotf | Bin 64022 -> 64022 bytes Master/bin/powerpc-aix/pooltype | Bin 24175 -> 24175 bytes Master/bin/powerpc-aix/ps2eps | 929 ++++++++++++++++++++++++++++++++++ Master/bin/powerpc-aix/ps2pk | Bin 205030 -> 205222 bytes Master/bin/powerpc-aix/psbook | Bin 11807 -> 11807 bytes Master/bin/powerpc-aix/psnup | Bin 19875 -> 19875 bytes Master/bin/powerpc-aix/psresize | Bin 18179 -> 18179 bytes Master/bin/powerpc-aix/psselect | Bin 13287 -> 13287 bytes Master/bin/powerpc-aix/pstops | Bin 18719 -> 18719 bytes Master/bin/powerpc-aix/sjisconv | Bin 2027 -> 2027 bytes Master/bin/powerpc-aix/t1ascii | Bin 26999 -> 26999 bytes Master/bin/powerpc-aix/t1asm | Bin 33779 -> 33779 bytes Master/bin/powerpc-aix/t1binary | Bin 26199 -> 26199 bytes Master/bin/powerpc-aix/t1disasm | Bin 32183 -> 32183 bytes Master/bin/powerpc-aix/t1dotlessj | Bin 514605 -> 514605 bytes Master/bin/powerpc-aix/t1lint | Bin 460835 -> 460835 bytes Master/bin/powerpc-aix/t1mac | Bin 36995 -> 36995 bytes Master/bin/powerpc-aix/t1reencode | Bin 529305 -> 529305 bytes Master/bin/powerpc-aix/t1testpage | Bin 487517 -> 487517 bytes Master/bin/powerpc-aix/t1unmac | Bin 33899 -> 33899 bytes Master/bin/powerpc-aix/t4ht | Bin 85994 -> 86818 bytes Master/bin/powerpc-aix/tangle | Bin 110850 -> 111042 bytes Master/bin/powerpc-aix/tcdialog | Bin 158208 -> 158208 bytes Master/bin/powerpc-aix/tex | Bin 346781 -> 346973 bytes Master/bin/powerpc-aix/tex4ht | Bin 150958 -> 151126 bytes Master/bin/powerpc-aix/texconfig | 15 +- Master/bin/powerpc-aix/texindex | Bin 19171 -> 19171 bytes Master/bin/powerpc-aix/tftopl | Bin 98510 -> 98678 bytes Master/bin/powerpc-aix/tie | Bin 8503 -> 8503 bytes Master/bin/powerpc-aix/ttf2afm | Bin 94302 -> 94470 bytes Master/bin/powerpc-aix/ttf2pk | Bin 284154 -> 284314 bytes Master/bin/powerpc-aix/ttf2tfm | Bin 320246 -> 320406 bytes Master/bin/powerpc-aix/ttftotype42 | Bin 531596 -> 531596 bytes Master/bin/powerpc-aix/vftovp | Bin 113182 -> 113342 bytes Master/bin/powerpc-aix/vptovf | Bin 79254 -> 79254 bytes Master/bin/powerpc-aix/weave | Bin 131778 -> 131938 bytes Master/bin/powerpc-aix/xdvi-motif.bin | Bin 1002119 -> 1002279 bytes Master/bin/powerpc-aix/xdvipdfmx | Bin 1584063 -> 1600097 bytes Master/bin/powerpc-aix/xetex | Bin 8616592 -> 8376512 bytes 130 files changed, 956 insertions(+), 20 deletions(-) create mode 100755 Master/bin/powerpc-aix/bbox create mode 100755 Master/bin/powerpc-aix/dvipos create mode 100755 Master/bin/powerpc-aix/pdftosrc create mode 100755 Master/bin/powerpc-aix/ps2eps (limited to 'Master') diff --git a/Master/bin/powerpc-aix/afm2pl b/Master/bin/powerpc-aix/afm2pl index f76974a00ff..263fabe2a75 100755 Binary files a/Master/bin/powerpc-aix/afm2pl and b/Master/bin/powerpc-aix/afm2pl differ diff --git a/Master/bin/powerpc-aix/afm2tfm b/Master/bin/powerpc-aix/afm2tfm index a17550cd36a..1c6ef4c09bb 100755 Binary files a/Master/bin/powerpc-aix/afm2tfm and b/Master/bin/powerpc-aix/afm2tfm differ diff --git a/Master/bin/powerpc-aix/aleph b/Master/bin/powerpc-aix/aleph index 40d922761d7..7d7cce11226 100755 Binary files a/Master/bin/powerpc-aix/aleph and b/Master/bin/powerpc-aix/aleph differ diff --git a/Master/bin/powerpc-aix/bbox b/Master/bin/powerpc-aix/bbox new file mode 100755 index 00000000000..e3af384d6e5 Binary files /dev/null and b/Master/bin/powerpc-aix/bbox differ diff --git a/Master/bin/powerpc-aix/bg5conv b/Master/bin/powerpc-aix/bg5conv index 5f9c60ef05f..74d089a091a 100755 Binary files a/Master/bin/powerpc-aix/bg5conv and b/Master/bin/powerpc-aix/bg5conv differ diff --git a/Master/bin/powerpc-aix/bibtex b/Master/bin/powerpc-aix/bibtex index 2b5a9be6a86..abab57a6ef1 100755 Binary files a/Master/bin/powerpc-aix/bibtex and b/Master/bin/powerpc-aix/bibtex differ diff --git a/Master/bin/powerpc-aix/bibtex8 b/Master/bin/powerpc-aix/bibtex8 index db3f2032aba..74754aeee4c 100755 Binary files a/Master/bin/powerpc-aix/bibtex8 and b/Master/bin/powerpc-aix/bibtex8 differ diff --git a/Master/bin/powerpc-aix/cef5conv b/Master/bin/powerpc-aix/cef5conv index 7857599fabd..52bf68f8586 100755 Binary files a/Master/bin/powerpc-aix/cef5conv and b/Master/bin/powerpc-aix/cef5conv differ diff --git a/Master/bin/powerpc-aix/cefconv b/Master/bin/powerpc-aix/cefconv index add881e190c..03050d4ff12 100755 Binary files a/Master/bin/powerpc-aix/cefconv and b/Master/bin/powerpc-aix/cefconv differ diff --git a/Master/bin/powerpc-aix/cefsconv b/Master/bin/powerpc-aix/cefsconv index bf989271f14..fee3f0ff8a9 100755 Binary files a/Master/bin/powerpc-aix/cefsconv and b/Master/bin/powerpc-aix/cefsconv differ diff --git a/Master/bin/powerpc-aix/cfftot1 b/Master/bin/powerpc-aix/cfftot1 index 3b32c4ec42d..9c01d92bbba 100755 Binary files a/Master/bin/powerpc-aix/cfftot1 and b/Master/bin/powerpc-aix/cfftot1 differ diff --git a/Master/bin/powerpc-aix/ctangle b/Master/bin/powerpc-aix/ctangle index be96915888e..9d400227d08 100755 Binary files a/Master/bin/powerpc-aix/ctangle and b/Master/bin/powerpc-aix/ctangle differ diff --git a/Master/bin/powerpc-aix/ctie b/Master/bin/powerpc-aix/ctie index caac6c65f2c..41efd4c5040 100755 Binary files a/Master/bin/powerpc-aix/ctie and b/Master/bin/powerpc-aix/ctie differ diff --git a/Master/bin/powerpc-aix/cweave b/Master/bin/powerpc-aix/cweave index 0804f0a8bb0..0562bf57068 100755 Binary files a/Master/bin/powerpc-aix/cweave and b/Master/bin/powerpc-aix/cweave differ diff --git a/Master/bin/powerpc-aix/detex b/Master/bin/powerpc-aix/detex index 60284062c13..ef8f56c6fd2 100755 Binary files a/Master/bin/powerpc-aix/detex and b/Master/bin/powerpc-aix/detex differ diff --git a/Master/bin/powerpc-aix/devnag b/Master/bin/powerpc-aix/devnag index 99c97965302..57208285896 100755 Binary files a/Master/bin/powerpc-aix/devnag and b/Master/bin/powerpc-aix/devnag differ diff --git a/Master/bin/powerpc-aix/disdvi b/Master/bin/powerpc-aix/disdvi index 06304975892..8a5e55e1cc1 100755 Binary files a/Master/bin/powerpc-aix/disdvi and b/Master/bin/powerpc-aix/disdvi differ diff --git a/Master/bin/powerpc-aix/dmp b/Master/bin/powerpc-aix/dmp index a124be6c548..9bba187a524 100755 Binary files a/Master/bin/powerpc-aix/dmp and b/Master/bin/powerpc-aix/dmp differ diff --git a/Master/bin/powerpc-aix/dt2dv b/Master/bin/powerpc-aix/dt2dv index b6175c2aa6e..77176a02a41 100755 Binary files a/Master/bin/powerpc-aix/dt2dv and b/Master/bin/powerpc-aix/dt2dv differ diff --git a/Master/bin/powerpc-aix/dv2dt b/Master/bin/powerpc-aix/dv2dt index 8749b800471..4dcf48cf107 100755 Binary files a/Master/bin/powerpc-aix/dv2dt and b/Master/bin/powerpc-aix/dv2dt differ diff --git a/Master/bin/powerpc-aix/dvi2tty b/Master/bin/powerpc-aix/dvi2tty index 57973108250..870a97274ae 100755 Binary files a/Master/bin/powerpc-aix/dvi2tty and b/Master/bin/powerpc-aix/dvi2tty differ diff --git a/Master/bin/powerpc-aix/dvibook b/Master/bin/powerpc-aix/dvibook index 8b4f19aba5c..f5fe85fa6b3 100755 Binary files a/Master/bin/powerpc-aix/dvibook and b/Master/bin/powerpc-aix/dvibook differ diff --git a/Master/bin/powerpc-aix/dviconcat b/Master/bin/powerpc-aix/dviconcat index bca0e3c84d0..31a6ea0c7fc 100755 Binary files a/Master/bin/powerpc-aix/dviconcat and b/Master/bin/powerpc-aix/dviconcat differ diff --git a/Master/bin/powerpc-aix/dvicopy b/Master/bin/powerpc-aix/dvicopy index ee42b5d6067..ec075d70f5b 100755 Binary files a/Master/bin/powerpc-aix/dvicopy and b/Master/bin/powerpc-aix/dvicopy differ diff --git a/Master/bin/powerpc-aix/dvidvi b/Master/bin/powerpc-aix/dvidvi index 88bf6eef7ce..c5c1be1f748 100755 Binary files a/Master/bin/powerpc-aix/dvidvi and b/Master/bin/powerpc-aix/dvidvi differ diff --git a/Master/bin/powerpc-aix/dvilj b/Master/bin/powerpc-aix/dvilj index e6f4a3a8eee..b387868c581 100755 Binary files a/Master/bin/powerpc-aix/dvilj and b/Master/bin/powerpc-aix/dvilj differ diff --git a/Master/bin/powerpc-aix/dvilj2p b/Master/bin/powerpc-aix/dvilj2p index 8a045e11a8f..0902e4babd5 100755 Binary files a/Master/bin/powerpc-aix/dvilj2p and b/Master/bin/powerpc-aix/dvilj2p differ diff --git a/Master/bin/powerpc-aix/dvilj4 b/Master/bin/powerpc-aix/dvilj4 index edd21a047c3..b3861953187 100755 Binary files a/Master/bin/powerpc-aix/dvilj4 and b/Master/bin/powerpc-aix/dvilj4 differ diff --git a/Master/bin/powerpc-aix/dvilj4l b/Master/bin/powerpc-aix/dvilj4l index d33cde07592..8e3a46fb76f 100755 Binary files a/Master/bin/powerpc-aix/dvilj4l and b/Master/bin/powerpc-aix/dvilj4l differ diff --git a/Master/bin/powerpc-aix/dvipdfm b/Master/bin/powerpc-aix/dvipdfm index c6aafd5cbee..b6f185c3b5c 100755 Binary files a/Master/bin/powerpc-aix/dvipdfm and b/Master/bin/powerpc-aix/dvipdfm differ diff --git a/Master/bin/powerpc-aix/dvipdfmx b/Master/bin/powerpc-aix/dvipdfmx index 1c20e6bf465..56126ddb3aa 100755 Binary files a/Master/bin/powerpc-aix/dvipdfmx and b/Master/bin/powerpc-aix/dvipdfmx differ diff --git a/Master/bin/powerpc-aix/dvipng b/Master/bin/powerpc-aix/dvipng index f9fd53f7c8a..f448c3fb640 100755 Binary files a/Master/bin/powerpc-aix/dvipng and b/Master/bin/powerpc-aix/dvipng differ diff --git a/Master/bin/powerpc-aix/dvipos b/Master/bin/powerpc-aix/dvipos new file mode 100755 index 00000000000..b6818ca15a6 Binary files /dev/null and b/Master/bin/powerpc-aix/dvipos differ diff --git a/Master/bin/powerpc-aix/dvips b/Master/bin/powerpc-aix/dvips index 89ec1931bb0..ebaec083742 100755 Binary files a/Master/bin/powerpc-aix/dvips and b/Master/bin/powerpc-aix/dvips differ diff --git a/Master/bin/powerpc-aix/dviselect b/Master/bin/powerpc-aix/dviselect index d3623821588..8db32a0acaa 100755 Binary files a/Master/bin/powerpc-aix/dviselect and b/Master/bin/powerpc-aix/dviselect differ diff --git a/Master/bin/powerpc-aix/dvitodvi b/Master/bin/powerpc-aix/dvitodvi index 9b6faee2d0c..843a46362d8 100755 Binary files a/Master/bin/powerpc-aix/dvitodvi and b/Master/bin/powerpc-aix/dvitodvi differ diff --git a/Master/bin/powerpc-aix/dvitomp b/Master/bin/powerpc-aix/dvitomp index 4eea0d0ccb3..8d7567f26a5 100755 Binary files a/Master/bin/powerpc-aix/dvitomp and b/Master/bin/powerpc-aix/dvitomp differ diff --git a/Master/bin/powerpc-aix/dvitype b/Master/bin/powerpc-aix/dvitype index af97e2ae08d..cb757873993 100755 Binary files a/Master/bin/powerpc-aix/dvitype and b/Master/bin/powerpc-aix/dvitype differ diff --git a/Master/bin/powerpc-aix/ebb b/Master/bin/powerpc-aix/ebb index 8277b7154f2..6f89d98e485 100755 Binary files a/Master/bin/powerpc-aix/ebb and b/Master/bin/powerpc-aix/ebb differ diff --git a/Master/bin/powerpc-aix/epsffit b/Master/bin/powerpc-aix/epsffit index 37c0599dea9..5257585fa7a 100755 Binary files a/Master/bin/powerpc-aix/epsffit and b/Master/bin/powerpc-aix/epsffit differ diff --git a/Master/bin/powerpc-aix/extconv b/Master/bin/powerpc-aix/extconv index dcd50401707..b16b28c0b43 100755 Binary files a/Master/bin/powerpc-aix/extconv and b/Master/bin/powerpc-aix/extconv differ diff --git a/Master/bin/powerpc-aix/gftodvi b/Master/bin/powerpc-aix/gftodvi index c46a066e2e3..3d17dc95227 100755 Binary files a/Master/bin/powerpc-aix/gftodvi and b/Master/bin/powerpc-aix/gftodvi differ diff --git a/Master/bin/powerpc-aix/gftopk b/Master/bin/powerpc-aix/gftopk index 2f6c0eab6f1..a5f4499410e 100755 Binary files a/Master/bin/powerpc-aix/gftopk and b/Master/bin/powerpc-aix/gftopk differ diff --git a/Master/bin/powerpc-aix/gftype b/Master/bin/powerpc-aix/gftype index 1cf2a33b3fb..799245bad19 100755 Binary files a/Master/bin/powerpc-aix/gftype and b/Master/bin/powerpc-aix/gftype differ diff --git a/Master/bin/powerpc-aix/gsftopk b/Master/bin/powerpc-aix/gsftopk index 70ac441c532..e0fcf36b73a 100755 Binary files a/Master/bin/powerpc-aix/gsftopk and b/Master/bin/powerpc-aix/gsftopk differ diff --git a/Master/bin/powerpc-aix/hbf2gf b/Master/bin/powerpc-aix/hbf2gf index adccdd085f9..8bd41ab61b3 100755 Binary files a/Master/bin/powerpc-aix/hbf2gf and b/Master/bin/powerpc-aix/hbf2gf differ diff --git a/Master/bin/powerpc-aix/htcontext b/Master/bin/powerpc-aix/htcontext index 9d6d4549574..9e01fa97f66 100755 --- a/Master/bin/powerpc-aix/htcontext +++ b/Master/bin/powerpc-aix/htcontext @@ -1,7 +1,7 @@ #!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 + texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 diff --git a/Master/bin/powerpc-aix/htlatex b/Master/bin/powerpc-aix/htlatex index 1b8b7cea74a..ebab47dbaa6 100755 --- a/Master/bin/powerpc-aix/htlatex +++ b/Master/bin/powerpc-aix/htlatex @@ -2,8 +2,8 @@ latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 diff --git a/Master/bin/powerpc-aix/htmex b/Master/bin/powerpc-aix/htmex index b4aa3d9a06e..485a7594468 100755 --- a/Master/bin/powerpc-aix/htmex +++ b/Master/bin/powerpc-aix/htmex @@ -2,8 +2,8 @@ mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 diff --git a/Master/bin/powerpc-aix/httex b/Master/bin/powerpc-aix/httex index 44920e72077..4c184897d13 100755 --- a/Master/bin/powerpc-aix/httex +++ b/Master/bin/powerpc-aix/httex @@ -2,8 +2,8 @@ tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 diff --git a/Master/bin/powerpc-aix/httexi b/Master/bin/powerpc-aix/httexi index 0ce3cb4a589..26427698991 100755 --- a/Master/bin/powerpc-aix/httexi +++ b/Master/bin/powerpc-aix/httexi @@ -2,8 +2,8 @@ tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 # texindex ? diff --git a/Master/bin/powerpc-aix/info b/Master/bin/powerpc-aix/info index 31404d70167..e416210182f 100755 Binary files a/Master/bin/powerpc-aix/info and b/Master/bin/powerpc-aix/info differ diff --git a/Master/bin/powerpc-aix/infokey b/Master/bin/powerpc-aix/infokey index e93e2e48a49..f3739af3708 100755 Binary files a/Master/bin/powerpc-aix/infokey and b/Master/bin/powerpc-aix/infokey differ diff --git a/Master/bin/powerpc-aix/install-info b/Master/bin/powerpc-aix/install-info index fffd171c844..8a6538d464b 100755 Binary files a/Master/bin/powerpc-aix/install-info and b/Master/bin/powerpc-aix/install-info differ diff --git a/Master/bin/powerpc-aix/kpseaccess b/Master/bin/powerpc-aix/kpseaccess index 4222930b3d5..468374c7b1f 100755 Binary files a/Master/bin/powerpc-aix/kpseaccess and b/Master/bin/powerpc-aix/kpseaccess differ diff --git a/Master/bin/powerpc-aix/kpsereadlink b/Master/bin/powerpc-aix/kpsereadlink index c859da7a035..2102a771dbf 100755 Binary files a/Master/bin/powerpc-aix/kpsereadlink and b/Master/bin/powerpc-aix/kpsereadlink differ diff --git a/Master/bin/powerpc-aix/kpsestat b/Master/bin/powerpc-aix/kpsestat index cf2731e0fc6..b1ac7add81c 100755 Binary files a/Master/bin/powerpc-aix/kpsestat and b/Master/bin/powerpc-aix/kpsestat differ diff --git a/Master/bin/powerpc-aix/kpsewhich b/Master/bin/powerpc-aix/kpsewhich index aee4bf75d1c..94507cfe928 100755 Binary files a/Master/bin/powerpc-aix/kpsewhich and b/Master/bin/powerpc-aix/kpsewhich differ diff --git a/Master/bin/powerpc-aix/lacheck b/Master/bin/powerpc-aix/lacheck index 765402c54a8..a9f13639ae6 100755 Binary files a/Master/bin/powerpc-aix/lacheck and b/Master/bin/powerpc-aix/lacheck differ diff --git a/Master/bin/powerpc-aix/mag b/Master/bin/powerpc-aix/mag index c032c26d98e..e8a2d2ec89c 100755 Binary files a/Master/bin/powerpc-aix/mag and b/Master/bin/powerpc-aix/mag differ diff --git a/Master/bin/powerpc-aix/makeindex b/Master/bin/powerpc-aix/makeindex index 45d97c19c33..515372ab6a4 100755 Binary files a/Master/bin/powerpc-aix/makeindex and b/Master/bin/powerpc-aix/makeindex differ diff --git a/Master/bin/powerpc-aix/makeinfo b/Master/bin/powerpc-aix/makeinfo index 4d0e71dc331..1c21ef3732c 100755 Binary files a/Master/bin/powerpc-aix/makeinfo and b/Master/bin/powerpc-aix/makeinfo differ diff --git a/Master/bin/powerpc-aix/makempx b/Master/bin/powerpc-aix/makempx index 253c4f3072f..ec24315bda7 100755 Binary files a/Master/bin/powerpc-aix/makempx and b/Master/bin/powerpc-aix/makempx differ diff --git a/Master/bin/powerpc-aix/mf b/Master/bin/powerpc-aix/mf index 0c04772bf33..63dc79dfe0c 100755 Binary files a/Master/bin/powerpc-aix/mf and b/Master/bin/powerpc-aix/mf differ diff --git a/Master/bin/powerpc-aix/mf-nowin b/Master/bin/powerpc-aix/mf-nowin index fa45a1e1b14..0570df06bc1 100755 Binary files a/Master/bin/powerpc-aix/mf-nowin and b/Master/bin/powerpc-aix/mf-nowin differ diff --git a/Master/bin/powerpc-aix/mft b/Master/bin/powerpc-aix/mft index 361921bfbcf..80e444f7c60 100755 Binary files a/Master/bin/powerpc-aix/mft and b/Master/bin/powerpc-aix/mft differ diff --git a/Master/bin/powerpc-aix/mk4ht b/Master/bin/powerpc-aix/mk4ht index 0f4b664506c..2bd1f7e2038 100755 --- a/Master/bin/powerpc-aix/mk4ht +++ b/Master/bin/powerpc-aix/mk4ht @@ -1,7 +1,7 @@ #!/usr/bin/env perl #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -# mk4ht 2006-08-28-20:45 % -# Copyright (C) 2003--2006 Eitan M. Gurari % +# mk4ht 2007-01-04-01:34 % +# Copyright (C) 2003--2007 Eitan M. Gurari % # % # % # This work may be distributed and/or modified under the % @@ -58,6 +58,10 @@ my @options = ( "js", "jstex", "tex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", "js", "jstexi", "texi", "xhtml,jsml", " -cjsmlhtf", "-cjsml", "js", "jscontext", "context", "xhtml,jsml", " -cjsmlhtf", "-cjsml", + "jm", "jmlatex", "latex", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmtex", "tex", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmtexi", "texi", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmcontext", "context", "xhtml,jsmath", " -cmozhtf", "", "tei", "teilatex", "latex", "xhtml,tei", " -cunihtf", "-cvalidate", "tei", "teitex", "tex", "xhtml,tei", " -cunihtf", "-cvalidate", "tei", "teitexi", "texi", "xhtml,tei", " -cunihtf", "-cvalidate", @@ -178,7 +182,7 @@ print " clean.htlatex lg tmp\n"; } -print "mk4ht (2006-08-28-20:45)\n"; +print "mk4ht (2007-01-04-01:34)\n"; if( !@ARGV ){ print "improper command\n"; showInstrucions(); exit(1); diff --git a/Master/bin/powerpc-aix/mmafm b/Master/bin/powerpc-aix/mmafm index 9695dc6c1f6..a2b1a732ebe 100755 Binary files a/Master/bin/powerpc-aix/mmafm and b/Master/bin/powerpc-aix/mmafm differ diff --git a/Master/bin/powerpc-aix/mmpfb b/Master/bin/powerpc-aix/mmpfb index 316807ed9ee..fe3669205d3 100755 Binary files a/Master/bin/powerpc-aix/mmpfb and b/Master/bin/powerpc-aix/mmpfb differ diff --git a/Master/bin/powerpc-aix/mpost b/Master/bin/powerpc-aix/mpost index adddd4adbf7..391b3fc69d3 100755 Binary files a/Master/bin/powerpc-aix/mpost and b/Master/bin/powerpc-aix/mpost differ diff --git a/Master/bin/powerpc-aix/mpto b/Master/bin/powerpc-aix/mpto index 4227f498288..0b2f8b718cb 100755 Binary files a/Master/bin/powerpc-aix/mpto and b/Master/bin/powerpc-aix/mpto differ diff --git a/Master/bin/powerpc-aix/musixflx b/Master/bin/powerpc-aix/musixflx index 18bb846aa9f..5a2d128b02b 100755 Binary files a/Master/bin/powerpc-aix/musixflx and b/Master/bin/powerpc-aix/musixflx differ diff --git a/Master/bin/powerpc-aix/newer b/Master/bin/powerpc-aix/newer index 86f26ca3181..bee0cc0ccad 100755 Binary files a/Master/bin/powerpc-aix/newer and b/Master/bin/powerpc-aix/newer differ diff --git a/Master/bin/powerpc-aix/odvicopy b/Master/bin/powerpc-aix/odvicopy index c471772ce69..aa68529c173 100755 Binary files a/Master/bin/powerpc-aix/odvicopy and b/Master/bin/powerpc-aix/odvicopy differ diff --git a/Master/bin/powerpc-aix/odvitype b/Master/bin/powerpc-aix/odvitype index 165ce146dd0..501af45f0cd 100755 Binary files a/Master/bin/powerpc-aix/odvitype and b/Master/bin/powerpc-aix/odvitype differ diff --git a/Master/bin/powerpc-aix/omega b/Master/bin/powerpc-aix/omega index 1f62c9324bb..530ca585a38 100755 Binary files a/Master/bin/powerpc-aix/omega and b/Master/bin/powerpc-aix/omega differ diff --git a/Master/bin/powerpc-aix/omfonts b/Master/bin/powerpc-aix/omfonts index 421517e95fe..572a2234027 100755 Binary files a/Master/bin/powerpc-aix/omfonts and b/Master/bin/powerpc-aix/omfonts differ diff --git a/Master/bin/powerpc-aix/otangle b/Master/bin/powerpc-aix/otangle index 2b581494ffa..b0a82b03092 100755 Binary files a/Master/bin/powerpc-aix/otangle and b/Master/bin/powerpc-aix/otangle differ diff --git a/Master/bin/powerpc-aix/otfinfo b/Master/bin/powerpc-aix/otfinfo index a9c247b776d..62843afaa8e 100755 Binary files a/Master/bin/powerpc-aix/otfinfo and b/Master/bin/powerpc-aix/otfinfo differ diff --git a/Master/bin/powerpc-aix/otftotfm b/Master/bin/powerpc-aix/otftotfm index 12e53a5a644..84ba836a4c9 100755 Binary files a/Master/bin/powerpc-aix/otftotfm and b/Master/bin/powerpc-aix/otftotfm differ diff --git a/Master/bin/powerpc-aix/otp2ocp b/Master/bin/powerpc-aix/otp2ocp index 584e05a95ef..41f5146e4e7 100755 Binary files a/Master/bin/powerpc-aix/otp2ocp and b/Master/bin/powerpc-aix/otp2ocp differ diff --git a/Master/bin/powerpc-aix/outocp b/Master/bin/powerpc-aix/outocp index 3e00c01fd93..bbf40574072 100755 Binary files a/Master/bin/powerpc-aix/outocp and b/Master/bin/powerpc-aix/outocp differ diff --git a/Master/bin/powerpc-aix/patgen b/Master/bin/powerpc-aix/patgen index 1afc4903735..e9f3eefb41c 100755 Binary files a/Master/bin/powerpc-aix/patgen and b/Master/bin/powerpc-aix/patgen differ diff --git a/Master/bin/powerpc-aix/pdfclose b/Master/bin/powerpc-aix/pdfclose index ba4e319e430..d3f1e63d761 100755 Binary files a/Master/bin/powerpc-aix/pdfclose and b/Master/bin/powerpc-aix/pdfclose differ diff --git a/Master/bin/powerpc-aix/pdfopen b/Master/bin/powerpc-aix/pdfopen index f5ac6bf9a61..67dfbfc4e39 100755 Binary files a/Master/bin/powerpc-aix/pdfopen and b/Master/bin/powerpc-aix/pdfopen differ diff --git a/Master/bin/powerpc-aix/pdftex b/Master/bin/powerpc-aix/pdftex index 4f11ad77b53..883ebfa7059 100755 Binary files a/Master/bin/powerpc-aix/pdftex and b/Master/bin/powerpc-aix/pdftex differ diff --git a/Master/bin/powerpc-aix/pdftosrc b/Master/bin/powerpc-aix/pdftosrc new file mode 100755 index 00000000000..820996e2403 Binary files /dev/null and b/Master/bin/powerpc-aix/pdftosrc differ diff --git a/Master/bin/powerpc-aix/pfb2pfa b/Master/bin/powerpc-aix/pfb2pfa index b1b2f50d42d..e649bf9f2b8 100755 Binary files a/Master/bin/powerpc-aix/pfb2pfa and b/Master/bin/powerpc-aix/pfb2pfa differ diff --git a/Master/bin/powerpc-aix/pk2bm b/Master/bin/powerpc-aix/pk2bm index 69672f0b7d9..69934b4241b 100755 Binary files a/Master/bin/powerpc-aix/pk2bm and b/Master/bin/powerpc-aix/pk2bm differ diff --git a/Master/bin/powerpc-aix/pktogf b/Master/bin/powerpc-aix/pktogf index 51c8fe9ec04..938fb8e86f9 100755 Binary files a/Master/bin/powerpc-aix/pktogf and b/Master/bin/powerpc-aix/pktogf differ diff --git a/Master/bin/powerpc-aix/pktype b/Master/bin/powerpc-aix/pktype index e021b674b07..d80e4630d2b 100755 Binary files a/Master/bin/powerpc-aix/pktype and b/Master/bin/powerpc-aix/pktype differ diff --git a/Master/bin/powerpc-aix/pltotf b/Master/bin/powerpc-aix/pltotf index a16788ee01f..14b75d81d55 100755 Binary files a/Master/bin/powerpc-aix/pltotf and b/Master/bin/powerpc-aix/pltotf differ diff --git a/Master/bin/powerpc-aix/pooltype b/Master/bin/powerpc-aix/pooltype index 878090498c7..cc99f2105fe 100755 Binary files a/Master/bin/powerpc-aix/pooltype and b/Master/bin/powerpc-aix/pooltype differ diff --git a/Master/bin/powerpc-aix/ps2eps b/Master/bin/powerpc-aix/ps2eps new file mode 100755 index 00000000000..aeb0e9a8e43 --- /dev/null +++ b/Master/bin/powerpc-aix/ps2eps @@ -0,0 +1,929 @@ +#!/usr/bin/env perl +# The expression in the previous line replaces the unix specific line +# {#!/usr/bin/perl}. +# ps2eps - convert PostScript to EPS (Encapsulated PostScript) files +# ------------------------------------------------------------------- +# $Id: ps2eps,v 1.61 2006/12/28 16:34:06 bless Exp $ +# ------------------------------------------------------- +# (C)opyright 1999-2006 Roland Bless +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Author: Roland Bless +# Send bug reports to roland bless.de +# ------------------------------------------------------------------- +# Additional filtering is performed when Windows generated PostScript files +# are processed. Some instructions will otherwise lead to bad output +# if EPS-file gets embedded into other PostScript files. +# +# Requirements: +# + perl +# + gs (ghostscript supporting pbm output) +# + bbox (a little C program [ANSI-C - should work on every platform] +# for calculation of the actual BoundingBox) + +use POSIX; + +#use warnings; + +#use Getopt package +use Getopt::Long; +Getopt::Long::Configure("no_ignore_case"); + +$prgname= "ps2eps"; + +if (! -d "/usr/bin") +{ # we assume that we are running under native windows + $ghostscriptname = "gswin32c"; + $NULLDEV = "nul"; +} +else +{ # Unix or cygwin + $ghostscriptname = "gs"; + $NULLDEV = "/dev/null 2>&1"; +} + +$bboxver=`bbox >$NULLDEV -V`; +$bboxname= ($?== -1) ? "" : "bbox"; +$version= '$Id: ps2eps,v 1.61 2006/12/28 16:34:06 bless Exp $'; #' +$insertPScode= 1; # Insert surrounding Postscript code +$infhandle = STDIN; # Standard input is the default input file +$outfhandle = STDOUT; # Standard output is default output if STDIN is input +$infname= '-'; +$outfname= '-'; +$forceoverwrite=0; # do not overwrite existing files +$ignoreBB= 0; # ignore existing Bounding Box comment +$removeDSC= 1; # remove Adobe document structure comments +$removeADO= 1; # remove Adobe printer Driver console Output [Page: ...] +$ignoreEOFDSC= 0; # ignore %%EOF DSC hint +$removePreview= 0; # remove preview +$quiet= 0; # write progress to stdout +$resolution= 144; # resolution for bounding box calculation is 2x72 dpi +$trytofixps= 1; # try to fix postscript code +$forcefixps= 0; # fix postscript code unconditionally if eq 1 +$filterorientation= 1;# filter Orientation line +$looseBB=''; # default: tight bounding box +$clip=0; # do not clip +$warnings=0; # do not print warnings concerning postscript sanity +$debuggs=0; # no debugging of ghostscript call, turn this on if you want to see the gs call +$inch=2.54; # one inch is 2.54cm +$fullcolors= 1; # use ppm format (24-bit full color) +$trailerseen= 0; # Trailer comment seen? +$PSversion="2.0"; # default Postscript Version +$PSDSCversion="2.0"; # default Postscript DSC Version +$translate_x= 0; # translate by x postscript points +$translate_y= 0; # translate by y postscript points + +$defaultext = '(ps|prn)'; # default extension +$defaultoutext = '.eps'; # default output extension +$envname_size = 'PS2EPS_SIZE'; +$envname_gsbbox = 'PS2EPS_GSBBOX'; + +$gpar=""; +$known_papersizes="11x17|ledger|legal|letter(small)?|arch[A-E]|a([0-9]|10)|isob[0-6]|b[0-5]|c[0-6]|jisb[0-6]|fls(a|e)|halfletter"; +$papersize_help="11x17,ledger,legal,letter,lettersmall,archA,archB,archC,archD,archE\ +a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,isob0,isob1,isob2,isob3,isob4,isob5,isob6,\ +b0,b1,b2,b3,b4,b5,c0,c1,c2,c3,c4,c5,c6,\ +jisb0,jisb1,jisb2,jisb3,jisb4,jisb5,jisb6,flsa,flse,halfletter\n"; +$trigger= 0; +$notsane= 0; +$dummy=""; + +@ver= split(/ /,$version); + +# filename for temporary files +if ($^O =~ /MSWin32/i or $^O =~ /cygwin/i) +{ + # it is less trouble to use the current directory if working on + # cygwin and nevertheless using gswin32c. + $tmpfname= "$prgname.$$"; + $win=1; +} +elsif (defined($ENV{'TMP'})) +{ + $tmpdir= $ENV{'TMP'}; + $filesep= ($tmpdir =~ /^?\:\\/) ? '\\' : '/'; + if ($tmpdir =~ /$filesep$/) + { $tmpfname= $tmpdir . "$prgname.$$"; } + else + { $tmpfname= $tmpdir . "$filesep$prgname.$$"; } + $win=1; +} +else #assume we're on a UNIXBOX +{ + $tmpfname= "/tmp/" . "$prgname.$$"; + $win=0; +} + + +$licensetxt= "\ + This program is free software; you can redistribute it and/or modify\ + it under the terms of the GNU General Public License as published by\ + the Free Software Foundation; either version 2 of the License, or\ + (at your option) any later version.\ +\ + This program is distributed in the hope that it will be useful,\ + but WITHOUT ANY WARRANTY; without even the implied warranty of\ + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\ + GNU General Public License for more details.\ +\ + You should have received a copy of the GNU General Public License\ + along with this program; if not, write to the Free Software\ + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n"; + +@prgidtxt= ( "$prgname - convert PostScript to EPS (Encapsulated PostScript) files\n", + "(C)opyright 1998-2006 Roland Bless\n\n" ); + +@helptxt= ("Version: $ver[2]\n", + "Operation:\n", + " Without any argument, $prgname reads from standard input\n", + " and writes to standard output.\n", + " If filenames are given as arguments they are processed\n", + " one by one and output files are written to filenames\n", + " with extension '$defaultoutext'. If input filenames have the extension\n", + " '.ps' or '.prn', this extension is replaced with '$defaultoutext'.\n", + " In all other cases '$defaultoutext' is appended to the input filename.\n", + " Please note that PostScript files for input should contain\n", + " only one single page.\n\n", + " If BoundingBox in output seems to be wrong, please try options --size or --ignoreBB.\n\n" ); + +@usagetxt= ("Syntax:\n", + " $prgname [-f] [-q] [-N] [-O] [-n] [-P] [-c] [-C] [-m] [-B] [-E] [-s ] [-R +|-|^] [-t ] [-l] [-g] [-d] [-H] [-h|--help] [-g] [-W] [-L] [-V|--version] [--] [psfile1] [psfile2] [...]\n", + "Options:\n", + " -f, --force force overwriting existing files\n", + " -q, --quiet quiet operation (no output while processing files)\n", + " -N, --noinsert do not insert any postscript code\n", + " -O, --preserveorientation do not filter Orientation: header comment\n", + " -n, --nofix do not try to fix postscript code\n", + " -P, --removepreview remove preview image (smaller file, but no preview)\n", + " -F, --fixps fix postscript code unconditionally\n", + " -c, --comments preserve document structure comments\n", + " -C, --clip insert postscript code for clipping\n", + " -m, --mono use black/white bitmap as base for calculation\n", + " -s, --size= page size (a0-a10,letter,...) or in format XxY[cm|in] (default:cm), where X and Y are numbers\n", + " use --size=list to list pre-defined page sizes\n", + " -R, --rotate= rotate resulting EPS. : +=+90 (clockw.),-=-90 (counter-clockw.) ^=180 degrees\n", + " -t, --translate specify x,y offset (may be negative) in postscript points (1/72 dpi)\n", + " -r, --resolution specify dpi resolution to render with ghostscript (default 144)", + " -l, --loose expand the original bounding box by one point in each direction\n", + " -B, --ignoreBB do not use existing bounding box as page size for rendering\n", + " -E, --ignoreEOF do not use %%EOF as hint for end of file\n", + " -g, --gsbbox use internal bbox device of ghostscript\n", + " -H, --no-hires do not use a HiResBoundingBox\n", + " -h, --help help information\n", + " -L, --license show licensing information\n", + " -V, --version show version information\n", + " -d, --debuggs show ghostscript call\n", + " -W, --warnings show warnings about sanity of generated eps file\n", + " -- all following arguments are treated as files\n", + " (allows filenames starting with -)\n", + "\n", + "Arguments:\n", + " One or more names of PostScript files for input\n"); + +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +## -- argument checking -- +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +#environment variable for papersize +if (defined($ENV{"$envname_size"})) +{ + $opt_s= $ENV{"$envname_size"}; +} +else +{ + $opt_s = ''; # for s-option +} + +if (defined($ENV{"$envname_gsbbox"})) +{ + $bboxname=""; +} + +$opt_t = ''; # for t-option +$opt_R = ''; # for R-option +$opt_r = ''; # for r-option +$stopnow = 0; +die "Wrong option(s), please check usage with $prgname --help\n" unless +GetOptions('f|force' => \$forceoverwrite, + 'q|quiet' => \$quiet, + 'm|mono' => sub { $fullcolors = 0 }, + 'n|nofix' => sub { $trytofixps = 0 }, + 'F|fixps' => \$forcefixps, + 'N|noinsert' => sub { $insertPScode = 0 }, + 'O|preserveorientation' => sub { $filterorientation= 0 }, + 'P|removepreview' => \$removePreview, + 'c|comments' => sub { $removeDSC = 0 }, + 'C|clip' => \$clip, + 'l|loose' => sub { $looseBB = '-l' }, + 'B|ignoreBB' => \$ignoreBB, + 'E|ignoreEOF'=> \$ignoreEOFDSC, + 's|size=s' => \$opt_s, + 't|translate=s' => \$opt_t, + 'r|resolution=s' => \$opt_r, + 'R|rotate=s' => \$opt_R, + 'g|gsbbox' => sub { $bboxname=""; }, + 'H|nohires' => \$nohires, + 'h|help' => sub { $stopnow = 1; print @prgidtxt,@helptxt,@usagetxt,"\nAuthor: Roland Bless (roland\@bless.de)\n\n"; }, + 'L|license' => sub { $stopnow = 1; print @prgidtxt,$licensetxt,"\nAuthor: Roland Bless (roland\@bless.de)\n\n"; }, + 'd|debuggs' => \$debuggs, + 'W|warnings' => \$warnings, + 'V|version' => sub { $stopnow = 1; print @prgidtxt,"Version: $ver[2]\n"; });exit if ($stopnow); + +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +## -- wildcard processing -- +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +## internal wildcard processing for current directory, +## only used for non UNIX-based OSs (which may lack shell wildcard expansion) +@filenames = (); +foreach $object (@ARGV) { + if ($win && $object =~ m/\*/o) # asterisk is present in filename + { + $wildcard = $object; + $wildcard =~ s/\./\\\./g; # replace . in pattern with \. + $wildcard =~ s/\*/\(\.\*\)/g; # replace * in pattern with (.*) + opendir(DIR,'.') || die 'Unable to open current directory, stopped'; # open current directory + print STDERR $wildcard; + @fid = grep { /$wildcard(\.$defaultext)?/i } readdir(DIR); + foreach (@fid) { push @filenames, $_; } + closedir DIR; + } + else { push @filenames, $object; } +} # end foreach +$filenames[0]= '-' if (scalar(@filenames) == 0); # no file arguments, use STDIN as input + +print STDERR "Input files: @filenames\n" if (!$quiet); + +if ($opt_r ne '') +{ + $resolution=$opt_r; +} + +# papersize stuff +if ($opt_s ne '') +{ + # if explicit size is given, ignore existing BoundingBox always + $ignoreBB = 1; + $pagedimension = $opt_s; + if ($opt_s eq "list") + { + print STDERR "Available paper sizes: $papersize_help"; + exit 0; + } + + #explicit format XxY[cm|in] + if ($pagedimension =~ /(\d*\.?\d+)x(\d*\.?\d+)/) + { + ($x_dim, $dummy, $y_dim, $unit)= split(/(x|cm|in)/,$pagedimension); + if ( $x_dim !~ /^\d*\.?\d+$/ ) + { die "$x_dim in $arg is not a valid number, stopped"; } + if ( $y_dim !~ /^\d*\.?\d+$/ ) + { die "$y_dim in $arg is not a valid number, stopped"; } + + #print STDERR "xdim: $x_dim ydim: $y_dim unit:$unit\n" ; + if (!defined($unit) ) + { + $unit='cm'; + $opt_s=$opt_s . $unit; + } + if ( $unit ne 'in' ) # assume centimeters + { # calculate dimension in pixels (remember: resolution is in dpi) + $xpixels= int(($x_dim * $resolution) / $inch)+1; + $ypixels= int(($y_dim * $resolution) / $inch)+1; + $gpar= "-g${xpixels}x${ypixels}"; + } + else + { + $xpixels= int($x_dim * $resolution)+1; + $ypixels= int($y_dim * $resolution)+1; + $gpar= "-g${xpixels}x${ypixels}"; + } + } #endif XxY in opt_s + else + { + if ($opt_s =~ /$known_papersizes/) + { + $gpar="-sPAPERSIZE=$opt_s"; + } + else + { + print STDERR "Error: Unknown paper size: $opt_s\n Acceptable papersizes are:$papersize_help\n"; + exit 1; + } + } +} + +#translate option +if ($opt_t ne '') +{ + ($translate_x,$translate_y)= split(/\,/,$opt_t); +} + +#rotate +$rotright='-90 rotate'; +$rotleft='90 rotate'; +$rotupsidedown='180 rotate'; +$rotate=''; +if ($opt_R ne '') +{ + if ($opt_R eq '+') { $rotate=$rotright; } + elsif ($opt_R eq '-') { $rotate=$rotleft; } + elsif ($opt_R eq '^') { $rotate=$rotupsidedown; } + else { die "Wrong parameter for option -R: Valid are only +,-,^\n"; }; +} + +$device= $fullcolors ? "ppmraw" : "pbmraw"; + +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +## -- iterate over different input files -- +## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +PROCESSFILE: +while ($infname= (shift @filenames)) +{ + # reset filter definitions for each file + undef $linefilter; + undef $rangefilter_begin; + undef $rangefilter_end; + $fixthisps= $trytofixps; + $fixmsgprinted= 0; + + if (!$quiet) { print STDERR "Processing: $infname\n"; } + unless (open($infhandle,"<$infname")) + { # skip over this file + print STDERR "$prgname: Can't open $infname: $!\n"; + next PROCESSFILE; + } + + # buffer input from stdin into temporary file, because it has to be read twice + # one time for ghostscript processing, the second time for generating output + if ($infname eq '-') # input is stdin + { + $tmpfhandle=''; + open($tmpfhandle,">$tmpfname") or + die "Cannot open temporary file $tmpfname for writing: $!\n"; + } + else # input is not stdin + { + undef $tmpfhandle; + #if filename ends with $defaultext usually .ps or .prn, replace the extension with $defaultoutext + if ($infname =~ /\.$defaultext$/i) + { + $outfname= $infname; $outfname =~ s/\.$defaultext$/$defaultoutext/i; + } + else # otherwise simply append the extension $defaultoutext + { + $outfname= $infname . "$defaultoutext"; + } + if (!$forceoverwrite and -s "$outfname") + { + die "$prgname: Sorry, file named $outfname already exists,", + " will not overwrite it.\n", + " You will have to use the -f option, delete it or rename it", + " before running $prgname again.\n"; + } + else + { + open($outfhandle,">$outfname") or die "Can't open file $outfname for writing: $!\n"; + } + } #end else input is not stdin + + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + ## -- process input file -- + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + $linefilter= '^$'; #'# filter empty lines by default + while (<$infhandle>) + { + # get postscript and DSC version + if (/%!PS-Adobe-(\S+).*EPSF-(\S+)/) + { + $PSversion=$1; + $PSDSCversion=$2; + if (! ($PSversion =~ /\d+\.\d+/)) + { + $PSDSCversion="2.0"; + } + if (! ($PSDSCversion =~ /\d+\.\d+/)) + { + $PSDSCversion="2.0"; + } + } + + # check for existing BoundingBox parameters + if ( /^%%\s*BoundingBox:\s*(.*)/ && !defined($eBBllx) ) + { + $BBarg= $1; + # accept even negative and fractional BBs + if ( $BBarg =~ /(\-?\d+\.?\d*\s+){3,}\d+/ ) # ignore %% BoundingBox: (atend) comments + { + ($eBBllx,$eBBlly,$eBBurx,$eBBury,$dummy)= split /\s/,$BBarg; + #print STDERR "Existing BB: $eBBllx,$eBBlly,$eBBurx,$eBBury\n"; + if (int($eBBllx) < 0) { $translate_x= - int($eBBllx-0.5); } + if (int($eBBlly) < 0) { $translate_y= - int($eBBlly-0.5); } + + $xpixels= int((($eBBurx-$eBBllx) * $resolution)/72)+1; + $ypixels= int((($eBBury-$eBBlly) * $resolution)/72)+1; + if (!$ignoreBB) + { + $gpar= "-g${xpixels}x${ypixels}"; + # check for meaningful values + if (($xpixels <= 1) || ($ypixels <= 1)) + { + $gpar=""; undef $eBBllx; undef $eBBlly; + } + else + { + if (!$quiet) + { + print STDERR "Rendering with existing $_"; + if (int($eBBllx) < 0 || int($eBBlly) < 0) + { + print STDERR "WARNING: existing Bounding Box shows negative values - shifting\n"; + } + } + } + } #endif !$ignoreBB + } #endif $BBarg =~ + } + + + if ($fixthisps) # try to fix bad postscript code + { + # check for Windows 3.x output + if ( /^Win.*Dict/ ) + { + if (!$quiet && !$fixmsgprinted) + { print STDERR "Windows 3.5 generated Postscript file detected, fixing\n"; } + $linefilter= '^(EJ|RS)'; + $rangefilter_begin= '^statusdict'; + $rangefilter_end= 'cvx\ settransfer$'; #' + $fixmsgprinted= 1; # stop printing message + } + else + { + if ( /^%%Creator:\s*Wind.U\s*Xprinter/ ) + { + if (!$quiet && !$fixmsgprinted) + { print STDERR "Star/OpenOffice generated Postscript file detected, fixing\n"; } + $linefilter= '^rs'; + $fixmsgprinted= 1; # stop printing message + } + else + { + if ( $forcefixps || + /^\/NTPS/ || + /Creator:\s*(AdobePS|Pscript|.*Windows)/i ) #check for NT generated output + { + if (!$quiet && !$fixmsgprinted) + { + if ($forcefixps) + { + print STDERR "Postscript filtering requested, fixing\n"; + } + else + { + print STDERR "Windows generated Postscript file detected, fixing\n"; + } + } + $rangefilter_begin= '^((\[\{)|(featurebegin\{))$'; #' + $rangefilter_end= '^(\} stopped cleartomark|\}featurecleanup)'; + $exclude_rangefilter_begin= '^(?i)%%BeginNonPPDFeature'; #' + $exclude_rangefilter_end= '^(?i)%%EndNonPPDFeature'; + #$triggered_rangefilter_begin= ''; #' + #$triggered_rangefilter_end= ''; #' + $fixsearchpat='(^|\s)(initmatrix|initclip|initgraphics)(\s|$)'; + $fixreplacepat=' '; + $fixmsgprinted= 1; # stop printing message + } # end if NTPS + } #end else + } + } #end if trytofixps + + if (defined($tmpfhandle)) + { + print $tmpfhandle $_ or die "$prgname: Failure during writing to temporary file $tmpfname"; + } + + if (/^%%EOF\s*$/) + { + $totalEOFDSC++ + } + } #end while <$infhandle> + + if (defined($tmpfhandle)) + { + close($tmpfhandle); + } + else + { + $tmpfhandle= $infhandle; + $tmpfname= $infname; + } + + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + ## -- calculate the bounding box -- + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + if ($translate_x!=0 || $translate_y!=0) + { + $translation="$translate_x $translate_y translate"; + $translatecmd="-c $translation"; + } + else + { + $translation=""; + $translatecmd=""; + } + + if (!$quiet) + { + print STDERR "Calculating Bounding Box..."; + if ($opt_s) + { + print STDERR "using page size $opt_s..."; + } + } + + $rotatecmd=''; + if ($rotate ne '') + { + $rotatecmd="-c \"$rotate\"" + } + if ($bboxname ne '') + { + $cmdline="$ghostscriptname -dSAFER -dNOPAUSE -q $gpar -r$resolution -sDEVICE=$device -sOutputFile=- $translatecmd -f $tmpfname -c showpage -c quit | $bboxname -r $resolution"; + } + else + { + if (!$quiet) { + print STDERR "...using bbox device of $ghostscriptname..."; + } + $cmdline = "$ghostscriptname -dSAFER -dBATCH -dNOPAUSE -q $gpar -r$resolution -sDEVICE=bbox -sOutputFile=- -c \"/setpagedevice {pop} def\" $translatecmd -f $tmpfname -c quit 2>&1"; + } + + if ($debuggs) { print STDERR "\nCalling: $cmdline\n"; } + + # actual ghostscript call + $boundingbox=`$cmdline`; + if ($debuggs) { print STDERR "Call result: $boundingbox"; } + + # check result of gs call + if ($boundingbox !~ /^%%BoundingBox/m) + { + print STDERR "Error: Could not determine bounding box!\n", + "I suppose $ghostscriptname had some trouble interpreting the postscript-file\n"; + } + + $boundingbox =~ /^%%HiResBoundingBox:\s*(.*)/m; + if (defined($1)) # HiResBoundingBox given + { + ($hcBBllx,$hcBBlly,$hcBBurx,$hcBBury,$dummy)= split(/\s/,$1); + $hiresboundingbox="%%HiResBoundingBox: $hcBBllx $hcBBlly $hcBBurx $hcBBury\n"; + $cBBllx = floor($hcBBllx); + $cBBlly = floor($hcBBlly); + $cBBurx = ceil($hcBBurx); + $cBBury = ceil($hcBBury); + } + else + { #use normal BoundingBox + $boundingbox =~ /^%%.*BoundingBox:\s*(.*)/; + ($cBBllx,$cBBlly,$cBBurx,$cBBury,$dummy)= split(/\s/,$1); + } + # if loose BB should be performed by ps2eps + # apply changes to resulting bounding box if needed + if ($looseBB ne '') + { + if ($cBBllx > 0) { $cBBllx--; } + if ($cBBlly > 0) { $cBBlly--; } + $cBBurx++; $cBBury++; + } + # extend clipping box by 1 point + if ($clip) + { + if ($cBBllx > 0) { $cBBllx--; } + if ($cBBlly > 0) { $cBBlly--; } + $cBBurx++; $cBBury++; + } + if ($cBBllx < 0 || $cBBlly < 0) + { + if (!$quiet) + { + print STDERR "WARNING! Your drawing had a negative Bounding Box which is deprecated and may cause problems!. I'll shift it.\n"; + } + $translate_x= -int($cBBllx); + $translate_y= -int($cBBlly); + $cBBllx=0; + $cBBurx= $cBBurx + $translate_x; + $cBBlly=0; + $cBBury= $cBBury + $translate_y; + + $hcBBurx= $hcBBurx + $hcBBllx; + $hcBBury= $hcBBury + $hcBBlly; + $hcBBllx= 0; + $hcBBlly= 0; + + $hiresboundingbox="%%HiResBoundingBox: $hcBBllx $hcBBlly $hcBBurx $hcBBury\n"; + + $translation="$translate_x $translate_y translate"; + $translatecmd="-c \'$translation\'"; + } + $boundingbox = "%%BoundingBox: $cBBllx $cBBlly $cBBurx $cBBury\n"; + + if (!$quiet) { print STDERR "ready. $boundingbox" }; + + $before_startps= 1; + $inserted_prolog= 0; + $prolog_passed= 0; + + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + ## -- Create output file -- + ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + if (!$quiet) { print STDERR "Creating output file $outfname..."; } + + open($tmpfhandle,"<$tmpfname") or die "Cannot open file $tmpfname for reading"; + CREATEOUTPUT: + while (<$tmpfhandle>) + { + # check whether we are in a binary section + + $binarysection=(/^(%%BeginBinary)|(beginimage)\r?\n?$/ ... /^(%%EndBinary)|^(endimage)/) || + (/^(doNimage)|(doclutimage)\r?\n?$/ ... /(^|~> )Z\r?\n?$/) || # Pscript_Win_Dib_L2 5.0 0 + (/^beginjpeg / ... /~> endjpeg\r?\n?$/) || # Pscript_Win_Dib_L2 5.0 0 + (/^pdfIm/ ... /^%-EOD-/); + + if ( !$binarysection ) + { + s/\r?\n?$//; # remove CR and/or LF at end of line if not in binary section + } + + # check where magic Postscript header starts - skip leading binary stuff, e.g., HP PCL/PJL code + if ($before_startps) + { + if ( /%!/ ) # This is usually the smallest magic sequence + { # Note: Adobe Photoshop generated a binary heading, so ^ is not applicable + if (! /%!PS-Adobe.*/i) # some strange programs use other magics + { + print STDERR "** Warning **: Weird heading line -- ",$_," -- "; + } + $before_startps= 0; + } + next CREATEOUTPUT; + } + else # we are hopefully in regular postscript code now + { + # count %%EOFs as we want to know when we got the last EOF + if ( /^%%EOF\s*$/ ) + { + $seenEOF++; + } + + # We should insert our own prologue including the newly calculated BoundingBox + if (! $inserted_prolog) + { + print $outfhandle "%!PS-Adobe-$PSversion EPSF-$PSDSCversion\n"; + # check if we need to rotate + $transrotcmd=''; + if ($rotatecmd) + { + if ($rotate eq $rotright) + { + $transrotcmd="-$cBBlly $cBBurx translate"; + $boundingbox='%%BoundingBox: 0 0 ' . ($cBBury-$cBBlly) . ' ' . ($cBBurx-$cBBllx) . "\n"; + if ($hiresboundingbox ne "") + { + $hiresboundingbox='%%HiResBoundingBox: 0 0 ' . ($hcBBury-$hcBBlly) . ' ' . ($hcBBurx-$hcBBllx) . "\n"; + } + + } + elsif ($rotate eq $rotleft) + { + $transrotcmd="$cBBury -$cBBllx translate"; + $boundingbox='%%BoundingBox: 0 0 ' . ($cBBury-$cBBlly) . ' ' . ($cBBurx-$cBBllx) . "\n"; + if ($hiresboundingbox ne "") + { + $hiresboundingbox= '%%HiResBoundingBox: 0 0 ' . ($hcBBury-$hcBBlly) . ' ' . ($hcBBurx-$hcBBllx) . "\n"; + } + } + elsif ($rotate eq $rotupsidedown) + { + $transrotcmd="$cBBurx $cBBury translate"; + $boundingbox='%%BoundingBox: 0 0 ' . ($cBBurx-$cBBllx) . ' ' . ($cBBury-$cBBlly) . "\n"; + if ($hiresboundingbox ne "") + { + $hiresboundingbox='%%HiResBoundingBox: 0 0 ' . ($hcBBurx-$hcBBllx) . ' ' . ($hcBBury-$hcBBlly) . "\n"; + } + } + } + print $outfhandle $boundingbox; + if (!defined($hiresboundingbox)) + { + $nohires=1; + } + if (defined($hiresboundingbox) && !defined($nohires)) { print $outfhandle $hiresboundingbox; } + $inserted_prolog= 1; + redo CREATEOUTPUT; + } + else # already inserted_prolog + { + if (! $prolog_passed) + { + #ignore the following lines in the prologue + if ( /^%%(HiRes)?BoundingBox/ || + /^%%Pages/ || + /^%%BeginProlog/ || + /^%%EndProlog/ || + ($filterorientation && /^%%Orientation/) || + ($removeDSC && /^%%.*: \(atend\)/) || + ($removePreview && (/^%%BeginPreview/ ... /^%%EndPreview/)) ) + { + next CREATEOUTPUT; + } + else + { + if ( /^[^%].*/ || + /^%%EndComments/ ) # line is not a comment + { + #output postscript code for proper EPS file + if ($insertPScode) + { + print $outfhandle "%%EndComments\n", + "% EPSF created by ps2eps $ver[2]\n", + "%%BeginProlog\n"; + } + # Insert own postscript code for clipping + if ($clip) + { + if (!defined($nohires)) + { + printf $outfhandle "newpath %f %f moveto %f %f lineto %f %f lineto %f %f lineto closepath clip\n",$hcBBllx-0.1,$hcBBlly-0.1,$hcBBurx+0.1,$hcBBlly-0.1,$hcBBurx+0.1,$hcBBury+0.1,$hcBBllx-0.1,$hcBBury+0.1; + } + else + { + printf $outfhandle "newpath %d %d moveto %d %d lineto %d %d lineto %d %d lineto closepath clip\n",$cBBllx,$cBBlly,$cBBurx,$cBBlly,$cBBurx,$cBBury,$cBBllx,$cBBury; + } + } #endif clip + + if ($rotate ne '') + { + print $outfhandle "$transrotcmd\n"; + print $outfhandle "$rotate\n"; + } + if ($translation ne '') + { + print $outfhandle "$translation\n"; + } + + #insert surrounding postscript code + if ($insertPScode) + { + print $outfhandle "save\n", + "countdictstack\n", + "mark\n", + "newpath\n", + "/showpage {} def\n", + "/setpagedevice {pop} def\n", + "%%EndProlog\n", + "%%Page 1 1\n"; + } + $prolog_passed= 1; + if (/^%%EndComments/) { next CREATEOUTPUT; } + } #endif line is not a comment + } #end else + } #endif (we are in the prologue section) + else #we are in the main part of postscript file + { + #end of postscript file reached? + #Usually the DSC %%EOF signifies the end + if ( eof($tmpfhandle) || + ($ignoreEOFDSC == 0 && /^%%EOF\s*$/ && $seenEOF == $totalEOFDSC) + || ( $trailerseen && /^II\*\000.*/ ) + ) + { + #do not forget to print last line if not terminated by LF + if ( eof($tmpfhandle) && !/^$/ && !/^%%EOF\s*$/ ) # do not insert %%EOF twice + { + print $outfhandle $_,"\n"; + } + #add appropriate trailer + if ($insertPScode) + { + print $outfhandle "%%Trailer\n", + "cleartomark\n", + "countdictstack\n", + "exch sub { end } repeat\n", + "restore\n", + "%%EOF\n"; + } + last CREATEOUTPUT; + } # stop output + + # Trailer comment seen? + if ( /^%%Trailer\s*$/ ) + { + $trailerseen=1; + } + else + { + if (!/^\s*$/) #non empty lines follow + { + $trailerseen=0; + } + } + + # check for trigger + if (defined($triggerstring) && /^$triggerstring$/) + { + $trigger= 1; + }; + + # remove complete lines if one of the expression matches + if ( !$binarysection # only when not in binary section + && + ( + ($removePreview && (/^%%BeginPreview/ ... /^%%EndPreview/)) + || # no preview + (defined($rangefilter_begin) && + (/$rangefilter_begin/ ... /$rangefilter_end/) && + (!(/$exclude_rangefilter_begin/ ... /$exclude_rangefilter_end/)) + ) + || + (defined($triggered_rangefilter_begin) && defined($triggered_rangefilter_end) && + $trigger && + (/$triggered_rangefilter_begin/ ... /$triggered_rangefilter_end/) + ) + || + /$linefilter/ # lines by linefilter + || + ($removeDSC && (/^%( |!)(\w )+/ || /^%%/)) # any type of structured comment + || + ($removeADO && + (/^statusdict begin.*ProductName.*print product print.*flush end\r?\n?$/ || + /^\(%%\[\s*(Page:.*|LastPage)\s*\]%%\)\s*=\s*\w*\s*\r?\n?/ )) + || + /^$/ # empty lines + ) + ) + { + next CREATEOUTPUT; + } + + # replacement + if ( defined($fixsearchpat) ) + { + #if (/$fixsearchpat/) { print STDERR "**filter** before:",$_,"\n"; } + #if (s/$fixsearchpat/$fixreplacepat/) { print STDERR "**filter** after:",$_,"\n";} + s/$fixsearchpat/$fixreplacepat/; + } + + # sanity check for potential dangerous commands + if ( /(^|\s)(clear|erasepage|initmatrix|initclip|initgraphics|startjob|cleardictstack|setmatrix|setpagedevice|copypage|grestoreall|exitserver|quit)(\s|$)/ ) + { + $notsane= 1; + #print STDERR "Warning: dangerous command in line: ",$_,"\n"; + } + } # end else (this is main part) + + # Output the postscript line to result file + print $outfhandle $_; + + if (!$binarysection) + { + print $outfhandle "\n"; # terminate line with LF + } + } # end else prolog_passed + } # end else inserted_prolog + } # end while CREATEOUTPUT + + close($tmpfhandle); + + if ($tmpfname ne $infname) { unlink "$tmpfname"; } #remove temporary file + + close ($outfhandle); + + # print warning if magic sequence not found + if ( $before_startps ) + { + print STDERR "\n ** Error!! **: could not identify begin of postscript code in file $infname, please check header line!\n First line should start with %!. No output generated.\n"; + } + + if (!$quiet) { print STDERR "ready.\n"; } + if ($warnings and $notsane and !$quiet) + { + print STDERR "** Warning **: EPS-output for $infname is not sane, at least one\n", + "of the following commands was still present:\n", + "clear erasepage initmatrix initclip initgraphics startjob\n", + "cleardictstack setmatrix setpagedevice copypage grestoreall\n", + "exitserver quit\n"; + } +} #end while PROCESSFILE + +# ---- end of perl-script ------- diff --git a/Master/bin/powerpc-aix/ps2pk b/Master/bin/powerpc-aix/ps2pk index 865e1a2a3e0..f3731b5fbd8 100755 Binary files a/Master/bin/powerpc-aix/ps2pk and b/Master/bin/powerpc-aix/ps2pk differ diff --git a/Master/bin/powerpc-aix/psbook b/Master/bin/powerpc-aix/psbook index ed30f393928..70bb2817529 100755 Binary files a/Master/bin/powerpc-aix/psbook and b/Master/bin/powerpc-aix/psbook differ diff --git a/Master/bin/powerpc-aix/psnup b/Master/bin/powerpc-aix/psnup index b8660390825..35f61fd3eab 100755 Binary files a/Master/bin/powerpc-aix/psnup and b/Master/bin/powerpc-aix/psnup differ diff --git a/Master/bin/powerpc-aix/psresize b/Master/bin/powerpc-aix/psresize index f5af65967d8..392b538aff5 100755 Binary files a/Master/bin/powerpc-aix/psresize and b/Master/bin/powerpc-aix/psresize differ diff --git a/Master/bin/powerpc-aix/psselect b/Master/bin/powerpc-aix/psselect index 8b081b91c96..b7895a1f1ab 100755 Binary files a/Master/bin/powerpc-aix/psselect and b/Master/bin/powerpc-aix/psselect differ diff --git a/Master/bin/powerpc-aix/pstops b/Master/bin/powerpc-aix/pstops index a16aa55cd26..ff763b4aa97 100755 Binary files a/Master/bin/powerpc-aix/pstops and b/Master/bin/powerpc-aix/pstops differ diff --git a/Master/bin/powerpc-aix/sjisconv b/Master/bin/powerpc-aix/sjisconv index 3cdb6e460c3..249c62d1c82 100755 Binary files a/Master/bin/powerpc-aix/sjisconv and b/Master/bin/powerpc-aix/sjisconv differ diff --git a/Master/bin/powerpc-aix/t1ascii b/Master/bin/powerpc-aix/t1ascii index 14b95fef846..3a34ad5c154 100755 Binary files a/Master/bin/powerpc-aix/t1ascii and b/Master/bin/powerpc-aix/t1ascii differ diff --git a/Master/bin/powerpc-aix/t1asm b/Master/bin/powerpc-aix/t1asm index 3ca7c832acf..f5e73efe407 100755 Binary files a/Master/bin/powerpc-aix/t1asm and b/Master/bin/powerpc-aix/t1asm differ diff --git a/Master/bin/powerpc-aix/t1binary b/Master/bin/powerpc-aix/t1binary index dcd2596af1d..15c0196749d 100755 Binary files a/Master/bin/powerpc-aix/t1binary and b/Master/bin/powerpc-aix/t1binary differ diff --git a/Master/bin/powerpc-aix/t1disasm b/Master/bin/powerpc-aix/t1disasm index bcf18cf6856..0d76ad51ec3 100755 Binary files a/Master/bin/powerpc-aix/t1disasm and b/Master/bin/powerpc-aix/t1disasm differ diff --git a/Master/bin/powerpc-aix/t1dotlessj b/Master/bin/powerpc-aix/t1dotlessj index 9937aa66030..96c2c343d84 100755 Binary files a/Master/bin/powerpc-aix/t1dotlessj and b/Master/bin/powerpc-aix/t1dotlessj differ diff --git a/Master/bin/powerpc-aix/t1lint b/Master/bin/powerpc-aix/t1lint index 74022501fce..939fa96288b 100755 Binary files a/Master/bin/powerpc-aix/t1lint and b/Master/bin/powerpc-aix/t1lint differ diff --git a/Master/bin/powerpc-aix/t1mac b/Master/bin/powerpc-aix/t1mac index 3cac2602aca..89bcaa68d68 100755 Binary files a/Master/bin/powerpc-aix/t1mac and b/Master/bin/powerpc-aix/t1mac differ diff --git a/Master/bin/powerpc-aix/t1reencode b/Master/bin/powerpc-aix/t1reencode index 3f62cb5bab2..3cf2b131adf 100755 Binary files a/Master/bin/powerpc-aix/t1reencode and b/Master/bin/powerpc-aix/t1reencode differ diff --git a/Master/bin/powerpc-aix/t1testpage b/Master/bin/powerpc-aix/t1testpage index 45cebeda103..cb412b44a27 100755 Binary files a/Master/bin/powerpc-aix/t1testpage and b/Master/bin/powerpc-aix/t1testpage differ diff --git a/Master/bin/powerpc-aix/t1unmac b/Master/bin/powerpc-aix/t1unmac index 46ba43343e6..c29338d2dc4 100755 Binary files a/Master/bin/powerpc-aix/t1unmac and b/Master/bin/powerpc-aix/t1unmac differ diff --git a/Master/bin/powerpc-aix/t4ht b/Master/bin/powerpc-aix/t4ht index 3588611f4a2..802469f640d 100755 Binary files a/Master/bin/powerpc-aix/t4ht and b/Master/bin/powerpc-aix/t4ht differ diff --git a/Master/bin/powerpc-aix/tangle b/Master/bin/powerpc-aix/tangle index a6c1cf453e5..c56c2bb93d3 100755 Binary files a/Master/bin/powerpc-aix/tangle and b/Master/bin/powerpc-aix/tangle differ diff --git a/Master/bin/powerpc-aix/tcdialog b/Master/bin/powerpc-aix/tcdialog index c74b37d48a9..46a3880bb96 100755 Binary files a/Master/bin/powerpc-aix/tcdialog and b/Master/bin/powerpc-aix/tcdialog differ diff --git a/Master/bin/powerpc-aix/tex b/Master/bin/powerpc-aix/tex index 5afffaa1553..fb9a257713d 100755 Binary files a/Master/bin/powerpc-aix/tex and b/Master/bin/powerpc-aix/tex differ diff --git a/Master/bin/powerpc-aix/tex4ht b/Master/bin/powerpc-aix/tex4ht index adea4357086..a91c9dd29ce 100755 Binary files a/Master/bin/powerpc-aix/tex4ht and b/Master/bin/powerpc-aix/tex4ht differ diff --git a/Master/bin/powerpc-aix/texconfig b/Master/bin/powerpc-aix/texconfig index 0dc3f753f0b..3f02cebb312 100755 --- a/Master/bin/powerpc-aix/texconfig +++ b/Master/bin/powerpc-aix/texconfig @@ -24,7 +24,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' progname=texconfig # the version string -version=1167506445 # seconds since `00:00:00 1970-01-01 UTC' +version=1168206389 # seconds since `00:00:00 1970-01-01 UTC' # date '+%s' (with GNU date) envVars=" @@ -593,7 +593,7 @@ tcBatch() $progname font rw $progname formats $progname hyphen FORMAT - $progname init [format] + $progname init [formats] $progname mode MODE $progname paper PAPER $progname pdftex [options] @@ -1149,7 +1149,10 @@ $formatsForHyphenFmt" updmap || rc=1 ;; *) - fmtutil --byfmt "$2" || rc=1 + shift 1 + for i in "$@"; do + fmtutil --byfmt "$i" || rc=1 + done ;; esac ;; @@ -1254,7 +1257,7 @@ Valid PAPER settings: set x `getRes "$tcBatchPdftexMode"`; shift fmgrConfigReplace pdftexconfig.tex 'pdfpkresolution' "\\pdfpkresolution=$1" if $fmgrConfigReplaceChanged; then - fmtutil --all + fmtutil --refresh fi else echo "$progname: unknown MODE \`$tcBatchPdftexMode' given as argument for \`$progname pdftex mode'" >&2 @@ -1273,7 +1276,7 @@ Valid PAPER settings: wChanged=$fmgrConfigReplaceChanged fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h" if $wChanged || $fmgrConfigReplaceChanged; then - fmtutil --all + fmtutil --refresh fi ;; a4) @@ -1282,7 +1285,7 @@ Valid PAPER settings: wChanged=$fmgrConfigReplaceChanged fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h" if $wChanged || $fmgrConfigReplaceChanged; then - fmtutil --all + fmtutil --refresh fi ;; "") echo "$help" >&2; rc=1;; diff --git a/Master/bin/powerpc-aix/texindex b/Master/bin/powerpc-aix/texindex index 6e3f36f3e3b..d14524f09ef 100755 Binary files a/Master/bin/powerpc-aix/texindex and b/Master/bin/powerpc-aix/texindex differ diff --git a/Master/bin/powerpc-aix/tftopl b/Master/bin/powerpc-aix/tftopl index d01cb9b5261..49aa8798a75 100755 Binary files a/Master/bin/powerpc-aix/tftopl and b/Master/bin/powerpc-aix/tftopl differ diff --git a/Master/bin/powerpc-aix/tie b/Master/bin/powerpc-aix/tie index e233746afd3..78b7e076bde 100755 Binary files a/Master/bin/powerpc-aix/tie and b/Master/bin/powerpc-aix/tie differ diff --git a/Master/bin/powerpc-aix/ttf2afm b/Master/bin/powerpc-aix/ttf2afm index fe331021e8b..af80c1076a0 100755 Binary files a/Master/bin/powerpc-aix/ttf2afm and b/Master/bin/powerpc-aix/ttf2afm differ diff --git a/Master/bin/powerpc-aix/ttf2pk b/Master/bin/powerpc-aix/ttf2pk index eab791db1ad..de4131b9a8f 100755 Binary files a/Master/bin/powerpc-aix/ttf2pk and b/Master/bin/powerpc-aix/ttf2pk differ diff --git a/Master/bin/powerpc-aix/ttf2tfm b/Master/bin/powerpc-aix/ttf2tfm index 5749baed22a..cdb49fa4d33 100755 Binary files a/Master/bin/powerpc-aix/ttf2tfm and b/Master/bin/powerpc-aix/ttf2tfm differ diff --git a/Master/bin/powerpc-aix/ttftotype42 b/Master/bin/powerpc-aix/ttftotype42 index 6909cc9b028..a9b7a08df6b 100755 Binary files a/Master/bin/powerpc-aix/ttftotype42 and b/Master/bin/powerpc-aix/ttftotype42 differ diff --git a/Master/bin/powerpc-aix/vftovp b/Master/bin/powerpc-aix/vftovp index 2b06bd5daec..28d3d36d9a0 100755 Binary files a/Master/bin/powerpc-aix/vftovp and b/Master/bin/powerpc-aix/vftovp differ diff --git a/Master/bin/powerpc-aix/vptovf b/Master/bin/powerpc-aix/vptovf index 470c009715f..b4f8784d07b 100755 Binary files a/Master/bin/powerpc-aix/vptovf and b/Master/bin/powerpc-aix/vptovf differ diff --git a/Master/bin/powerpc-aix/weave b/Master/bin/powerpc-aix/weave index 03b66197843..571d6c1ded9 100755 Binary files a/Master/bin/powerpc-aix/weave and b/Master/bin/powerpc-aix/weave differ diff --git a/Master/bin/powerpc-aix/xdvi-motif.bin b/Master/bin/powerpc-aix/xdvi-motif.bin index 7fbb220d205..188fa5f9bc0 100755 Binary files a/Master/bin/powerpc-aix/xdvi-motif.bin and b/Master/bin/powerpc-aix/xdvi-motif.bin differ diff --git a/Master/bin/powerpc-aix/xdvipdfmx b/Master/bin/powerpc-aix/xdvipdfmx index 7aa04d3275c..48211b69454 100755 Binary files a/Master/bin/powerpc-aix/xdvipdfmx and b/Master/bin/powerpc-aix/xdvipdfmx differ diff --git a/Master/bin/powerpc-aix/xetex b/Master/bin/powerpc-aix/xetex index 20a1fb48f0c..2db4004786d 100755 Binary files a/Master/bin/powerpc-aix/xetex and b/Master/bin/powerpc-aix/xetex differ -- cgit v1.2.3