repo.or.cz
/
ccbib.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Proofreading Content
[ccbib.git]
/
psutils
/
fixwwps.pl
blob
a0096998b830d381b0336aa781a4ce159ba0163f
1
@PERL
@
2
# fixwwps: get semi-conforming PostScript out of Windows Write file
3
#
4
# Copyright (C) Angus J. C. Duggan 1991-1995
5
# See file LICENSE for details.
6
7
$page
=
1
;
8
9
while
(<>) {
10
if
(
/^(%!.*) EPSF-\d.\d/
) {
11
print
$1
,
"
\n
"
;
12
}
elsif
(
/^SS/
) {
13
print
"%
%Page
:
$page
$page
\n
"
;
14
print
$_
;
15
$page
++;
16
}
else
{
17
print
$_
;
18
}
19
}
20
@END
@