* Marc Horowitz <[EMAIL PROTECTED]> [060922 21:33]:
> "Bernhard R. Link" <[EMAIL PROTECTED]> writes:
>
> >> I've only looked at it in the sarge versions of a2ps and gc, but
> >> they show the symptoms you described and are definitly a bug in
> >> a2ps.
>
> I'm still not sure where the bug is, but one thing about your
> explanation still leave me wondering.
>
> >> Fixing this one via:
> >> --- uc.ps 2006-09-22 10:30:05.599386080 +0200
> >> +++ ucfixed.ps 2006-09-22 10:33:26.115902936 +0200
> >> @@ -770,6 +770,7 @@
> >> end % of iso1dict
> >> pagesave restore
> >> showpage
> >> +%%Page (2) 2
> >> BeginInclude
> >> %%BeginDocument: c.txt.gz
> >> %!PS-Adobe-3.0
> >>
> >> causes gv to show pages as one would guess them, so this definitly
> >> looks like a a2ps book. (At least using sarge, but I'd be suprised
> >> to have it so much reversed in sid.)
>
> If the included document had two pages, where should a2ps put the
> "%%Page (3) 3" comment? A quick read of DSC 3.0 doesn't give any
> specific recommendation here, but I think that gv should be parsing
> %%Page: comments in included documents.
Indeed, the DSC is not so clear about it, and all examples for
BeginDocument I found deal with eps files. The only thing not
coping with eps is the "Merging Files from different sources"
chapter of the green book. That states that the outer file
is responsible to redefine showpage for the inner file.
Thus I see no way for gv to distinguish an illustration embedded
into an image (as listing 11-1 in greenbk.pdf uses a
%!PS-Adobe-2.0 file as such an image. It sadly does not list the whole
file, but a %!PS-Adobe-2.0 is supposed to have %%Page: headers, I'd
guess.) from multiple real pages embedded.
Also what part of the postscript code should gv feed into gs to jump
directly to a particular page? To get the same context as when feeding it
linear it would need the the stuff after EndComments from the outer file till
%%EndSetup, but where further? Obviously the "BeginInclude" command
before the %%BeginDocument should be executed before continuing with
prelude and setup of the included document, but how should gv know that?
it is by no header seperated from the previous page, it could be as
good some restore command of the previous page that causes errors when
executed without the appropiate saving code of this page.
To make a long story short: Even if gv interpreted page headers within
beginDocument (and thus breaking files following the standard books
to embed files within a page (while those standards do not speak about
page headers in those, but also do not forbid them)), there'd be no way
I can see how gv could theoretically use that information in the case of
files generated by a2ps.
Hochachtungsvoll,
Bernhard R. Link
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]