CIPP
view release on metacpan or search on metacpan
doc/html2ps view on Meta::CPAN
font-weight: normal;
color: black;
alternate: 1;
}
footer {
left: "";
center: "";
right: "";
odd-left: "";
odd-center: "";
odd-right: "";
even-left: "";
even-center: "";
even-right: "";
font-family: Helvetica;
font-size: 8pt;
font-style: normal;
font-weight: normal;
color: black;
alternate: 1;
}
frame {
width: 0.6pt;
margin: 0.5cm;
color: black;
}
justify {
word: 15pt;
letter: 0pt;
}
draft {
text: DRAFT;
print: "";
dir: 0;
font-family: Helvetica;
font-style: normal;
font-weight: bold;
color: F0F0F0;
}
colour {
black: 000000;
green: 008000;
silver: C0C0C0;
lime: 00FF00;
gray: 808080;
olive: 808000;
white: FFFFFF;
yellow: FFFF00;
maroon: 800000;
navy: 000080;
red: FF0000;
blue: 0000FF;
purple: 800080;
teal: 008080;
fuchsia: FF00FF;
aqua: 00FFFF;
}
html2psrc: "$HOME/.html2psrc";
imgalt: "[IMAGE]";
datefmt: "%e %b %Y %R";
locale: "";
doc-sep: "<!--NewPage-->";
ball-radius: 0.25em;
numbstyle: 0;
showurl: 0;
seq-number: 0;
forms: 1;
textarea-data: 1;
page-break: 1;
expand-acronyms: 0;
collapse-br: 1;
spoof: "";
}
BODY {
font-family: Times;
font-size: 11pt;
text-align: left;
background: white;
}
H1, H2, H3, H4, H5, H6 {
font-weight: bold;
margin-top: 0.8em;
margin-bottom: 0.5em;
}
H1 { font-size: 19pt }
H2 { font-size: 17pt }
H3 { font-size: 15pt }
H4 { font-size: 13pt }
H5 { font-size: 12pt }
H6 { font-size: 11pt }
P, OL, UL, DL, BLOCKQUOTE, PRE {
margin-top: 1em;
margin-bottom: 1em;
}
P {
line-height: 1.2em;
text-indent: 0;
}
OL, UL, DD { margin-left: 2em }
TT, KBD, PRE { font-family: Courier }
PRE { font-size: 9pt }
BLOCKQUOTE {
margin-left: 1em;
margin-right: 1em;
}
ADDRESS {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
TABLE {
margin-top: 1.3em;
doc/html2ps view on Meta::CPAN
}
last S;
}
}
&dbg("Error opening resource file: $rc\n") if($opt_f && !$found);
}
chdir $cwd;
$user=2;
&getconf($opt_S) if($opt_S);
print DBG "*****\n" if($opt_d);
require Image::Magick if($package{'PerlMagick'});
$geturl=$package{'geturl'};
$ulanch="f";
$f=72/2.54;
$giftopm="giftopnm" if($package{'netpbm'});
$giftopm="giftoppm" if($package{'pbmplus'});
for(keys %option){eval "\$opt_$_='$option{$_}' if(!defined \$opt_$_)"};
($scr=POSIX::tmpnam())=~/\w+$/;
$tempdir=$`;
die $usage if $opt_h;
&dbg("$version\n") if ($opt_v||$opt_d);
for ('left','right','top','bottom') {
$body{"margin-$_"}=$margin{$_} if(!defined $body{"margin-$_"});
}
if($opt_u) {$ulanch="t"};
if(defined $opt_x && $opt_x!~/^[0-2]$/) {
die "Illegal duplex value: $opt_x\n";
}
$V='(-?\d+\.?\d*|-?\d*\.?\d+)';
for $o ($opt_s,$opt_i,$opt_m,$opt_N) {
die "Non numeric: $o\n" if(defined($o) && $o!~/^$V$/);
}
$twoup=$opt_2?"t":"f";
$xp=$toc{'extrapage'}?"t":"f";
die "Invalid option: -W $opt_W\n" if($opt_W!~/^[abflprsL\d]*$/);
$tocdoc=$opt_C=~/[ft]/;
if($tocdoc && !defined $opt_W) {$opt_W=4};
$mult=$#ARGV>0 || $opt_W;
$maxlev=$opt_W=~/(\d+)/?$1:4;
$link=$opt_W=~/l/;
$local=$opt_W=~/s/;
$rel=$opt_W=~/r/;
$below=$opt_W=~/b/;
$layer=$opt_W=~/L/;
$prompt=$opt_W=~/p/;
if($opt_C && $opt_C!~/^(b?[ft]|[ft]b?|b?h|hb?)$/)
{die "Invalid option: -C $opt_C\n"};
$tc=$opt_C?"t":"f";
$rev=$opt_C=~/t/;
$first=$opt_C=~/b/ || $opt_R;
$th=$tocdoc?"f":"t";
$oeh=0;
$oef=0;
@now=localtime;
POSIX::setlocale(&POSIX::LC_TIME,$locale);
$R='(\s*>|[^a-zA-Z0-9>][^>]*>)';
$S='([\w.:/%-]+)|"([^"]*)"|\'([^\']*)\'';
$X='[\da-fA-F]';
$IM='(gif|jpeg|jpg|png|xbm|xpm|ps|eps)';
for('odd-left','odd-center','odd-right','even-left','even-center','even-right')
{
$oeh=1 if defined $header{$_};
$oef=1 if defined $footer{$_};
}
for $a ('left','center','right') {
if(defined $header{"odd-$a"} || defined $header{"even-$a"}) {
$oeh=1;
}
if(defined $footer{"odd-$a"} || defined $footer{"even-$a"}) {
$oef=1;
}
for('','odd-','even-') {
$apa=$header{$_.$a};
$numb=1 if($apa=~/(^|[^\$])\$N/);
$header{$_.$a}="($apa)";
$apa=$footer{$_.$a};
$numb=1 if($apa=~/(^|[^\$])\$N/);
$footer{$_.$a}="($apa)";
&varsub($header{$_.$a},$footer{$_.$a});
}
}
if($oeh) {
$yz="/YY [[{$header{'odd-left'}}{$header{'even-left'}}]"
."[{$header{'odd-right'}}{$header{'even-right'}}]"
."[{$header{'odd-center'}}{$header{'even-center'}}]] D\n";
} else {
$ind=$header{'alternate'};
$yz="/YY [[{$header{'left'}}$ind][{$header{'right'}}".(1-$ind)
."][{$header{'center'}}2]] D\n";
}
if($oef) {
$yz.="/ZZ [[{$footer{'odd-left'}}{$footer{'even-left'}}]"
."[{$footer{'odd-right'}}{$footer{'even-right'}}]"
."[{$footer{'odd-center'}}{$footer{'even-center'}}]] D";
} else {
$ind=$footer{'alternate'};
$yz.="/ZZ [[{$footer{'left'}}$ind][{$footer{'right'}}".(1-$ind)
."][{$footer{'center'}}2]] D";
}
$number=$opt_n || !$numb && ($opt_C || $opt_N || $opt_R)?"t":"f";
for ($imgalt,$xref{'text'},$toc{'heading'},$draft{'text'}) {&spec($_)};
for ($paper{'height'},$paper{'width'},$body{'margin-left'},
$body{'margin-right'},$body{'margin-top'},$body{'margin-bottom'},
$margin{'middle'},$frame{'margin'}) {
&getval($_,1);
}
$opt_s*=0.65 if($opt_2 && $opt_L);
$opt_N=1 if(!defined $opt_N);
$opt_N=int($opt_N-1);
$mm=int($margin{'middle'}*$f);
$is=0.8*$opt_i;
$msc=1/$opt_s;
( run in 0.415 second using v1.01-cache-2.11-cpan-ceb78f64989 )