[racket] Scribble experience

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Jan 10 18:46:16 EST 2011

At Mon, 10 Jan 2011 22:12:15 +0100, Jens Axel Søgaard wrote:
> 2011/1/10 Shriram Krishnamurthi <sk at cs.brown.edu>:
> >> On my 64-bit Linux box, Chromium displays the "broken image" icon
> >> for your <img src="...pdf"> elements.
> >
> > Ditto on Windows 7.
> It sounds as if I should look into using svg instead of pdf.

I've added ".svg" as a supported image format for the Scribble HTML
renderer. Scribble generates an `object' tag instead of an `img' tag
for SVG images.

Although it's not directly relevant for you, I've also added `svg-dc%'
to `racket/draw'. Unfortunately, Cairo generates SVG files where the
dimensions are specified as points, which interacts badly with the way
that some browsers seem to interpret `object' dimensions as pixels
(even if "pt" is in the size). Removing the "pt" from the width and
height attributes in the generated SVG avoids the mismatch.

Posted on the users mailing list.