[racket] Generating svg-images rather than png-images from Scribble

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Oct 15 13:15:31 EDT 2013

On Tue, Oct 15, 2013 at 12:07 PM, Jens Axel Søgaard
<jensaxel at soegaard.net>wrote:

> 2013/10/15 Robby Findler <robby at eecs.northwestern.edu>:
> > Oh, right! Silly me. I've fixed 2htdp/image images so they can be
> converted
> > to svgs.
> >
> > I've also adjusted the scribble html renderer so that it treats the
> > current-render-pict-as parameter as a suggestion on an ordering (png
> first
> > or svg first) instead of insisting that all convertible things render as
> one
> > or the other.
> >
> > But now that I write this message, I'm thinking that it probably makes
> more
> > sense to have a parameter whose value is a list of suggested conversions
> > (the importance being the order) and ...
>
> This makes sense.
>
> > ... that the parameters names should be based around the
> > word 'convertible' instead of 'pict'.
>
> I see what you mean. In my case I just need picts to become svgs.
> Although bitmaps are in principle convertible to svgs, they should stay
> bitmaps.
>
>
Ah, okay. I'll note that the code doesn't actually do that, tho.

Maybe the parameter should really be a function from the value to a list of
symbols (specifying what to try to convert it into). Hm. This seems to be
getting kind of complex, tho.



> > Does that seem okay to you?
>
> Yes.
>
> /Jens Axel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131015/d5820094/attachment.html>

Posted on the users mailing list.