[OS X TeX] Distiller

Siep Kroonenberg siepo at cybercomm.nl
Mon Jan 30 15:19:29 EST 2006


On Mon, Jan 30, 2006 at 09:25:25AM -0800, mark oilcan wrote:
> 
> 
> --- Siep Kroonenberg <siepo at cybercomm.nl> wrote:
> 
> 
> > 
> > I read the entire eps file in one go, and split the string according
> > to /\r?\n|\n/ and parse all resulting strings. If I see a
> > %%BoundingBox: (atend) string then I scan from the end.
> > 
> 
> Don't forget that old Mac line endings are just \r, which isn't caught by
> your regular expression above.
> 
> Mark A

Thanks for pointing this out; the correct regular expression should
be /\r\n?|\n/

-- 
Siep Kroonenberg
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list