diff options
author | Karl Berry <karl@freefriends.org> | 2005-12-28 00:09:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2005-12-28 00:09:08 +0000 |
commit | 63f6de2319e769e12b29379025de08e3395edb31 (patch) | |
tree | d033287cd4de6346c62690498de6602896ebc23c /Master/bin/win32/fixfmps.bat | |
parent | 30dd9f517c9c093ff3319061647a4555264f7914 (diff) |
trunk
git-svn-id: svn://tug.org/texlive/trunk@10 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/fixfmps.bat')
-rwxr-xr-x | Master/bin/win32/fixfmps.bat | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/bin/win32/fixfmps.bat b/Master/bin/win32/fixfmps.bat new file mode 100755 index 00000000000..92b9f2bfeab --- /dev/null +++ b/Master/bin/win32/fixfmps.bat @@ -0,0 +1,21 @@ +@PERL@
+# fixfmps: get conforming PostScript out of FrameMaker version 2 file
+# move all FMDEFINEFONTs to start of pages
+#
+# Copyright (C) Angus J. C. Duggan 1991-1995
+# See file LICENSE for details.
+
+%fonts=();
+
+while (<>) {
+ if (/^([0-9]+) [0-9]+ .* FMDEFINEFONT$/) {
+ $fonts{$1} = $_;
+ } elsif (/^[0-9.]+ [0-9.]+ [0-9]+ FMBEGINPAGE$/) {
+ print $_, join('',values(%fonts));
+ } elsif (m%(.*/PageSize \[paperwidth paperheight\]put )setpagedevice(.*)%) {
+ print "$1pop$2\n";
+ } else {
+ print $_;
+ }
+}
+@END@
|