Re: SVG in HTML

From: J.M. Maurer <uwog_at_uwog.net>
Date: Tue Jul 14 2009 - 17:44:07 CEST

We discussed on IRC to apply a transform="scale(x,y)" to the svg to get
it to display at the proper size in a browser.

However, browsers also totally ignore any scaling transformation.

At this point, the only way I see we can use to export properly sized
images is:

1. by rasterizing them to PNG.

2. by using the previously mentioned hack, which is a total pain to use:

  http://www.unet.univie.ac.at/~a9900479/svg4tom/svg4tom1.html

Unless someone else has a working solution on sizing SVGs, I'm really
tempted to go for 1.

  Marc

On Tue, 2009-07-14 at 09:28 -0400, Dominic Lachowicz wrote:
> That's what Martin's bit of JavaScript is supposed to take care of,
> though. IE doesn't have builtin support for MathML either, and folks
> were fine with throwing that directly into the HTML. So either we need
> to change how we embed both MathML and SVG (maybe using <object>
> tags), or we just throw them into the HTML file and let the JavaScript
> take care of it.
>
> Also, to change a SVG's width and height, all we should need to do is
> to modify the <svg> tag's contents a bit. It has a width and height
> attribute. We'll probably want to munge the SVG a bit anyway, in case
> it has an <?xml?> header.
>
> On Tue, Jul 14, 2009 at 8:40 AM, J.M. Maurer<uwog@uwog.net> wrote:
> > On Tue, 2009-07-14 at 07:41 -0400, Dominic Lachowicz wrote:
> >
> >> We are directly embedding MathML inside of HTML. Why are we trying to
> >> shove SVG into an <object> tag?
> >
> > Because IE can't display that afaik.
> >
> >> XHTML supports embedded SVGs just fine.
> >
> > And we don't just write out XHTML, we also need to support HTMLv4.
> >
> > Marc
> >
> >
>
>
>
Received on Tue Jul 14 17:44:32 2009

This archive was generated by hypermail 2.1.8 : Tue Jul 14 2009 - 17:44:32 CEST