Skip to content

Commit b9e705f

Browse files
committed
[css2] Added idraw->gif tools, regenerated gifs.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%4066
1 parent c666564 commit b9e705f

20 files changed

Lines changed: 8834 additions & 4 deletions

css2/bin/Attic/html2ps

Lines changed: 4352 additions & 0 deletions
Large diffs are not rendered by default.

css2/bin/Attic/mktoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# 1. Some header - and its related comment
66
#
77
# Arnaud Le Hors - lehors@w3.org
8-
# $Id: mktoc,v 1.7 1997-08-14 00:58:09 ian Exp $
8+
# $Id: mktoc,v 1.8 1997-09-12 14:45:36 bbos Exp $
99

1010
$PROGNAME = substr($0, rindex($0, "/") + 1);
1111

@@ -80,6 +80,7 @@ $headingp = "<h([1-6]).*?>(.*?)(?:<!--(.*?)-->)?</h[1-6]>";
8080
open(DBASE, "> $tocdb");
8181
open(OUTPUT, "> $tocf");
8282
hnuminit();
83+
print OUTPUT "<DIV CLASS=\"toc\">";
8384
foreach $file (@ARGV) {
8485
readfile($file);
8586
# compute correct level based on path depth and filename
@@ -107,7 +108,7 @@ foreach $file (@ARGV) {
107108
if ($h lt $tocdepth) {
108109
if ($h == 1) {
109110
print OUTPUT
110-
"<P><a href=\"$url\"$rel><strong>$num $txt</strong></a>\n";
111+
"<P CLASS=\"tocline\"><a href=\"$url\"$rel><strong>$num $txt</strong></a>\n";
111112
} elsif ($h == 2) {
112113
print OUTPUT "<BR><a href=\"$url\"$rel>$num $txt</a>\n";
113114
} elsif ($h == 3) {
@@ -127,6 +128,7 @@ foreach $file (@ARGV) {
127128
$_ = $';
128129
}
129130
}
131+
print OUTPUT "</DIV>";
130132
hnum(0, 0); # close all open lists
131133
close(OUTPUT);
132134
close(DBASE);

css2/bin/Attic/mypstopnm

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/ksh
2+
3+
#set -vx
4+
5+
USAGE="$0 [-r <resolution>] [-landscape] [psfile]"
6+
7+
res=72
8+
outfile=-
9+
10+
if [ $# = 0 ]; then
11+
echo $USAGE >&2; exit 1
12+
fi
13+
14+
while [ $# != 0 ]; do
15+
case "$1" in
16+
-l*)
17+
landscape=true
18+
shift;;
19+
-r)
20+
res=$2
21+
shift 2;;
22+
*)
23+
if [ "$infile" = "" ]; then
24+
infile="$1"
25+
elif [ "$outfile" = "-" ]; then
26+
outfile="$1"
27+
else
28+
echo $USAGE >&2; exit 1
29+
fi
30+
shift;;
31+
esac
32+
done
33+
34+
if [ -z "$infile" ]; then
35+
infile=/tmp/mypstopnm$$
36+
trap "rm $infile" 0
37+
cat >$infile
38+
fi
39+
40+
set -A bb `grep "%%BoundingBox" "$infile"`
41+
42+
if [ ${#bb[*]} != 5 ]; then
43+
echo "No BoundingBox found in EPS file" >&2; exit 2
44+
fi
45+
46+
if [ "$landscape" = "true" ]; then
47+
trans="270 rotate ${bb[3]} neg ${bb[2]} neg translate"
48+
xsize=`expr \( ${bb[4]} - ${bb[2]} \) \* $res / 72`
49+
ysize=`expr \( ${bb[3]} - ${bb[1]} \) \* $res / 72`
50+
else
51+
trans="${bb[1]} neg ${bb[2]} neg translate"
52+
xsize=`expr \( ${bb[3]} - ${bb[1]} \) \* $res / 72`
53+
ysize=`expr \( ${bb[4]} - ${bb[2]} \) \* $res / 72`
54+
fi
55+
56+
echo $trans | gs \
57+
-sDEVICE=ppmraw \
58+
-sOutputFile="$outfile" \
59+
-r${res} \
60+
-g${xsize}x${ysize} \
61+
-dNOPAUSE -dQUIET -dSAFER -q - "$infile" -c showpage -c quit

0 commit comments

Comments
 (0)