[Top][All Lists]

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

RE: An EPS-related bug in lout?

From: Ted Harding
Subject: RE: An EPS-related bug in lout?
Date: Fri, 26 Nov 1999 13:50:42 -0000 (GMT)

On 26-Nov-99 Tamas Papp wrote:
> Following-up to my previous e-mail about eps bounding boxes.
> The files were created on an Apple Macintosh computer. I thought of
> inserting a BoundingBox manually, so I opened them in Xemacs. The
> lines were all mangled, but there was a BoundingBox entry!
> I soon discovered that Macintosh uses LF to indicate the end of the
> line, and lout was not able to cope with that (I don't know if it's a
> bug in lout, it depends whether using LF makes a conforming EPS file,
> but all Mac programs seem to do it). If it's a bug, it should be easy
> to correct.

According to the PostScript Reference Manual, 'CR', 'LF' and 'CRLF' are
valid newline terminators in PostScript. "A CR immediately followed by
an LF are treated together as one newline." 'LFCR' is also valid.

All PS interpreters should treat these different forms equivalently.

None of this changes for EPS files: "Lines must be terminated with
one of the following combinations of characters: CR, LF, CRLF or LFCR."

If Lout fails to recognise all these as equivalent, then it is not
fully respecting the PostScript Language specification, so there
would indeed be a bug.

(By the way: I thought the Mac used CR (hex code 0D) and not NL
(hex code 0A) for end-of-line? Maybe I'm mistaken about that).

Best wishes to all,

E-Mail: (Ted Harding) <address@hidden>
Date: 26-Nov-99                                       Time: 13:50:42
------------------------------ XFMail ------------------------------

reply via email to

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