🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #474

Re: psroff generates huge files

#474
From: Vidiot
Date: Sat, 11 Apr 1992 06:42
77 lines
3637 bytes
In article <alfred.702678056@dutepp13> AKayser@dnpap.et.tudelft.nl (Alfred Kayser) writes:
<
<Sorry for the long include, but psroff as it is installed (version
<3.x I believe) does optimize output and outputs data in the form of:
<
<%!PS-Adobe-1.0
< ....... Reasonable long header removed ....
</Times-Bold 9 SetFont
<72 649(DESCRIPTION)Y
</Times-Italic 10 SetFont
<108 637(gif2ps)Y
</Times-Roman 10 SetFont
<137.1(is)X
<148.5(a)X
<157.6(filter)X
<182(which)X
<211.1(converts)X
<249.8(gif)X
<265.6(images)X
<298.8(into)X
<319.1(PostScript.)X
<370.6(The)X
<390.8(option)X
<421('-eps')X
<448.8(enables)X
<483.5(EPSF)X
<510.6(format,)X
<108 625(which)Y
<135.8(can)X
<153.1(be)X
<166(included)X
<204(in)X
<215.1(for)X
<230.1(example)X
<267.6(\(La\)Tex)X
<304(documents.)X
<As you can see, this is really very normal PS code.
<(example is excerpt from psroff-ed manpage of 'gif2ps')


%!PS-Adobe-3.0
%%Creator: groff version 1.05
[... other goodies deleted ...]
(The directory in which temporary \214les will be created.)144 400.8 R .529
(If this is not set and)5.529 F F3(TMPDIR)3.029 E F0 .529(is set, tem-)2.779 F
1.04(porary \214les will be created in that directory)144 412.8 R 6.041(.O)-.65
G 1.041(therwise temporary \214les will be created in)339.413 412.8 R F1(/tmp)
3.541 E F0(.)A(The)144 424.8 Q F1(gr)2.5 E(ops)-.18 E F0(\(@MAN1EXT@\) and)A F1
(gr)2.5 E(efer)-.18 E F0(\(@MAN1EXT@\) commands can create temporary \214les.)A
F3(FILES)72 441.6 Q F1(@HYPHENFILE@)108 453.6 Q F0(Hyphenation patterns)264.93
453.6 Q F1(@MACRODIR@/tmac.)108 470.4 Q F2(name).27 E F0(Macro \214le used by)
264.93 470.4 Q F1<ad6d>2.5 E F2(name).27 E F0(.)A F1(@FONTDIR@/dev)108 487.2 Q
F2(name).27 E F1(/DESC).18 E F0(Device description \214le for device)264.93
487.2 Q F2(name)2.5 E F0(.).18 E F1(@FONTDIR@/dev)108 504 Q F2(name).27 E F1(/)
.18 E F2(F).67 E F0(Font \214le for font)264.93 504 Q F2(F)2.5 E F0(of device)
2.5 E F2(name)2.5 E F0(.).18 E F1(@FONTDIR@/dev)108 520.8 Q F2(name).27 E F1
12.05(/eqnchar geqn).18 F F0(de\214nitions for device)2.5 E F2(name)2.5 E F0(.)
.18 E F3(SEE ALSO)72 537.6 Q F1(gr)108 549.6 Q(og)-.18 E F0(\(@MAN1EXT@\),)A F1
(gtr)220.157 549.6 Q(off)-.18 E F0(\(@MAN1EXT@\),)A F1(gtbl)337.304 549.6 Q F0
(\(@MAN1EXT@\),)A F1(gpic)446.87 549.6 Q F0(\(@MAN1EXT@\),)A F1(geqn)108 561.6
Q F0(\(@MAN1EXT@\),)A F1(gsoelim)9.4 E F0(\(@MAN1EXT@\))A F1 9.4(,g)C -.18(re)
335.28 561.6 S(fer).18 E F0(\(@MAN1EXT@\),)A F1(gr)9.4 E(ops)-.18 E F0
(\(@MAN1EXT@\),)A F1(gr)108 573.6 Q(odvi)-.18 E F0(\(@MAN1EXT@\),)A F1(gr)
265.595 573.6 Q(otty)-.18 E F0(\(@MAN1EXT@\),)A F1(gr)421.51 573.6 Q(off_font)
-.18 E F0(\(@MAN5EXT@\),)A F1(gr)108 585.6 Q(off_out)-.18 E F0(\(@MAN5EXT@\),)A
F1(gr)2.5 E(off_ms)-.18 E F0(\(@MAN7EXT@\),)A F1(gr)2.5 E(off_me)-.18 E F0
(\(@MAN7EXT@\))A F2(Gr)108 597.6 Q(off Character Names)-.37 E F0(Grof)72 768 Q
2.5(fV)-.18 G(ersion @VERSION@)102.64 768 Q(@MDA)279.57 768 Q 200.07(TE@ 2)
-1.11 F EP
%%Trailer
end
%%EOF


The above was the tail of the groff output for groff.man.  As you can see,
many words are placed into the same string output, saving lots of resources
and file size space.
Technical Details
Message-ID: <3247@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!rutgers!uwvax!astroatc!vidiot!brown
References: <1992Apr03.160755.13148@brtph560.bnr.ca> <3234@vidiot.UUCP> <alfred.702678056@dutepp13>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!rutgers!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: psroff generates huge files
Message-ID: <3247@vidiot.UUCP>
Date: 11 Apr 92 06:42:58 GMT
References: <1992Apr03.160755.13148@brtph560.bnr.ca> <3234@vidiot.UUCP> <alfred.702678056@dutepp13>
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout
Lines: 77