OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook] Using <embed> for SVG


On Thu, 8 Jul 2004, Jamie Echlin wrote:

> Thanks for that Jens,
>  > Instead use Batik
>  > (http://xml.apache.org/batik) to transform all you SVG to e.g. JPG.
> I could do that, but the thing is, I like SVG - I want the zooming and
> panning features, the smooth fonts etc. When I use Batik I find that my
> fonts tend to get jaggy.

I love SVG too, although my artistic ability are almost absent. Using
SVG in CHM files is a nice idea, if your are sure the users have the
SVG plugin installed.

> I'm not sure your comments about M$ are entirely fair (not like me to
> defend them but what the hell)... the htmlhelp browser is IE, and that
> has support for SVG at least through the Adobe plugin. If, after
> translating the Docbook doc to HTML but before running the help
> compiler, I replace the <IMG> tags with <EMBED> tags it works fine in
> the .chm file.

If I am fair might be debatable. However Microsoft have hired some of
the smartest people in the industry, which constantly seems to go the
proprietary way. My prediction on MS support of SVG might even be a bit
optimistic, if you look at Avalon. Don't forget that John Bowler and
Tuan Nguyen (both from MS) participated in the working group behind
SVG 1.0. I wonder why ?

I read a nice article on server based SVG the other day.


among other things the author comes up with a solution to provide
raster versions for clients, which does not support SVG. It is a
pitty, he have to waste time on such issues.

> I guess that is an option, but it seems to be a deficiency in the
> stylesheets...?

Not in my opinion.  Jirka have loyally created stylesheets, which
supports the default CHM files, i.e. using raster images. The beauty
of the DocBook stylesheets and of XSLT, is that it is very easy to
transform your current documents (eventually replacing the IMG element
with an ENBED element.

Just create a stylesheet, which import htmlhelp.xsl, and do whatever
you need to do.

You can also to a certain degree use you SVG images and create PDF
file with FOP.



> thanks, jamie
> Jens Stavnstrup wrote:
> > Jamie,
> >
> > Don't expect any SVG support from Microsoft in the next millenum (which i find
> > very unfortunately if not really annoying). Instead use Batik
> > (http://xml.apache.org/batik) to transform all you SVG to e.g. JPG.
> >
> > That works just fine with for my DocBook document with 100+ SVG pictures.
> >
> > Regards,
> >
> > Jens
> >
> > On Thu, 8 Jul 2004, Jamie Echlin wrote:
> >
> >
> >>Morning,
> >>
> >>First post, be gentle with me. In a nutshell I am trying to include
> >>external SVG files in my compiled HTML help, although I would be happy
> >>enough if it was working in plain HTML.
> >>
> >>My input file contains:
> >>
> >><mediaobject>
> >>     <imageobject>
> >>       <imagedata fileref="/some.svg" type="SVG"/>
> >>     </imageobject>
> >></mediaobject>
> >>
> >>my stylesheet has
> >>
> >>	<xsl:param name="use.svg" select="1"/>
> >>	<xsl:param name="use.embed.for.svg" select="1"/>
> >>
> >>although I'm not sure of the purpose of the former and I have tried
> >>without it. However, my browser is showing broken images, because the
> >>html after conversion has <img src...> tags and not something like:
> >>
> >>		<embed src="some.svg"
> >>			name="SVG1"
> >>			type="image/svg-xml"
> >>			width="800"
> >>			height="600"
> >>			pluginspage="http://www.adobe.com/svg/viewer/install/";
> >>		>
> >>
> >>which is what I am after.
> >>
> >>Also I couldn't find the param "use.embed.for.svg" in the params.xsl for
> >>htmlhelp - does that mean I can't use it?
> >
> >
> >

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]