On Tue, Oct 15, 2013 at 12:07 PM, Jens Axel Søgaard <jensa...@soegaard.net>wrote:
> 2013/10/15 Robby Findler <ro...@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 >
____________________ Racket Users list: http://lists.racket-lang.org/users