lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Version 3.32 - embedded Lout files


From: Jeff Kingston
Subject: Re: Version 3.32 - embedded Lout files
Date: Fri, 03 Nov 2006 07:16:16 +1100

I've received some email from William Bader, who seems to be
the PostScript guru at the place where they found the embedded
EPS files problem.  He tested my fix, pushing a fresh dict
instead of userdict, and it worked for him.  So I think we
are seeing light at the end of the tunnel there.

He also explained his own solution that he adopted long ago
when he hit the same problem with Adobe's recommended code.
He stores the dict stack count on the operand stack, behind
a mark.  I'm not sure where he stores the save object.  And
he pushes userdict, following Adobe's recommendation.

I think my solution has two advantages.  First, it follows
Adobe's recommendations in every respect except just that
one change of pushing a fresh dict; it's closer to their
recommendations, and consequently I think it's more likely
to survive a rogue EPS file.  Second, the more I think
about pushing userdict, the more brain-dead it seems.
It's just setting yourself up for name conflicts -
virtually inviting them, you might say.  A total
error on Adobe's part, with no redeeming qualities,
hence we're better off without it.  (I think I can
see that they adopted it long ago, when dictionaries
were non-expandable, and they knew they needed to
push a sufficiently large dictionary but didn't know
how large, so they went for a nice big one that happened
to be lying around - userdict.  But dictionaries are
expandable now, so this consideration doesn't apply.)

Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]