docbook-apps

  • 1.  db5 svg images

    Posted 12-16-2010 13:33

    I have
    <mediaobject >
    <imageobject>
    <imagedata fileref="images/pages.clock.svg" format="SVG"
    width="436" depth="398"/> </imageobject>
    <textobject>
    <phrase>A clock diagram</phrase>
    </textobject>

    </mediaobject>

    It renders well on Firefox 3.6
    Yet when I build I get the message
    [java] Failed to interpret image: images/pages.clock.svg

    Is the message incorrect or ... is it something else?




    regards
    ------------------------
    Dave Pawson
    http://www.dpawson.co.uk
    XSLT, XSL-FO and docbook FAQ



    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 2.  Re: [docbook-apps] db5 svg images

    Posted 12-16-2010 15:34
    If you're outputting to HTML you should consider doing it like this:

    <mediaobject>
    <imageobject role="fo">
    <imagedata format="SVG" scale="75"
    fileref="Graphics/cluster-general.svg" align="center"
    scalefit="1"/></imageobject>
    <imageobject role="html">
    <imagedata format="PNG" scale="90"
    fileref="Graphics/cluster-general.png" align="center"/></imageobject>
    </mediaobject>

    I found that IE8 doesn't render SVG at all and Chrome puts a box around
    each one such that you have horizontal and vertical scroll bars .. but
    that could be due to the fact our HTML must fit into a 600 pixel
    horizontal space.

    You will find the above if you search Stayton's book for "svg".

    On 12/16/2010 7:33 AM, Dave Pawson wrote:
    >
    > I have
    > <mediaobject>
    > <imageobject>
    > <imagedata fileref="images/pages.clock.svg" format="SVG"
    > width="436" depth="398"/> </imageobject>
    > <textobject>
    > <phrase>A clock diagram</phrase>
    > </textobject>
    >
    > </mediaobject>
    >
    > It renders well on Firefox 3.6
    > Yet when I build I get the message
    > [java] Failed to interpret image: images/pages.clock.svg
    >
    > Is the message incorrect or ... is it something else?
    >
    >
    >
    >
    > regards
    > ------------------------
    > Dave Pawson
    > http://www.dpawson.co.uk
    > XSLT, XSL-FO and docbook FAQ
    >
    >
    >

    --

    ------------

    Steve Johnson, Senior Content Developer
    Caringo
    stevej@caringo.com



  • 3.  Re: [docbook-apps] db5 svg images

    Posted 12-16-2010 16:11
    On Thu, 16 Dec 2010 09:33:31 -0600
    Steve Johnson <stevej@caringo.com> wrote:

    > If you're outputting to HTML you should consider doing it like this:
    >
    > <mediaobject>
    > <imageobject role="fo">
    > <imagedata format="SVG" scale="75"
    > fileref="Graphics/cluster-general.svg" align="center"
    > scalefit="1"/></imageobject>
    > <imageobject role="html">
    > <imagedata format="PNG" scale="90"
    > fileref="Graphics/cluster-general.png" align="center"/></imageobject>
    > </mediaobject>
    >
    > I found that IE8 doesn't render SVG at all and Chrome puts a box
    > around each one such that you have horizontal and vertical scroll
    > bars .. but that could be due to the fact our HTML must fit into a
    > 600 pixel horizontal space.
    >
    > You will find the above if you search Stayton's book for "svg".

    I can create the png form if needed, but I'm concerned about
    the error (if it is such).

    I'm wondering if Bobs pages are out of date here?
    http://www.sagehill.net/docbookxsl/SVGimages.html
    I do recall 'prompting' the IE user to get/install the svg viewer from
    Adobe. Not sure if that's still available. Then the reader would know
    something was amiss.


    SVG is so much better than bit-mapped though.

    regards



    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 4.  Re: [docbook-apps] db5 svg images

    Posted 12-16-2010 16:44
    SVG viewer is EOL:

    http://www.adobe.com/svg/viewer/install/

    There could likely be more to it, such as what exact format you do your
    SVG in. Adobe Illustrator has 9 or 10 different combinations of options,
    at least.

    On 12/16/2010 10:11 AM, Dave Pawson wrote:
    > On Thu, 16 Dec 2010 09:33:31 -0600
    > Steve Johnson<stevej@caringo.com> wrote:
    >
    >> If you're outputting to HTML you should consider doing it like this:
    >>
    >> <mediaobject>
    >> <imageobject role="fo">
    >> <imagedata format="SVG" scale="75"
    >> fileref="Graphics/cluster-general.svg" align="center"
    >> scalefit="1"/></imageobject>
    >> <imageobject role="html">
    >> <imagedata format="PNG" scale="90"
    >> fileref="Graphics/cluster-general.png" align="center"/></imageobject>
    >> </mediaobject>
    >>
    >> I found that IE8 doesn't render SVG at all and Chrome puts a box
    >> around each one such that you have horizontal and vertical scroll
    >> bars .. but that could be due to the fact our HTML must fit into a
    >> 600 pixel horizontal space.
    >>
    >> You will find the above if you search Stayton's book for "svg".
    >
    > I can create the png form if needed, but I'm concerned about
    > the error (if it is such).
    >
    > I'm wondering if Bobs pages are out of date here?
    > http://www.sagehill.net/docbookxsl/SVGimages.html
    > I do recall 'prompting' the IE user to get/install the svg viewer from
    > Adobe. Not sure if that's still available. Then the reader would know
    > something was amiss.
    >
    >
    > SVG is so much better than bit-mapped though.
    >
    > regards
    >
    >
    >

    --

    ------------

    Steve Johnson, Senior Content Developer
    Caringo
    stevej@caringo.com



  • 5.  Re: [docbook-apps] db5 svg images

    Posted 12-16-2010 17:13
    On Thu, 16 Dec 2010 10:43:32 -0600
    Steve Johnson <stevej@caringo.com> wrote:

    > SVG viewer is EOL:
    >
    > http://www.adobe.com/svg/viewer/install/
    >
    > There could likely be more to it, such as what exact format you do
    > your SVG in. Adobe Illustrator has 9 or 10 different combinations of
    > options, at least.

    I don't touch Adobe products, I'm on Linux.
    Source is Inkscape, save as plain SVG


    I was surprised how badly Chrome messes it up though. Shows, but in a
    scroll bar fashion vertically.









    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 6.  RE: [docbook-apps] db5 svg images

    Posted 12-16-2010 17:20
    I haven't gotten around to trying out svgweb [1] with DocBook content yet, but it looks to me like the most promising solution to the problem.

    David

    [1] http://code.google.com/p/svgweb/

    > -----Original Message-----
    > From: Steve Johnson [mailto:stevej@caringo.com]
    > Sent: Thursday, December 16, 2010 10:44 AM
    > To: Dave Pawson
    > Cc: docbook-apps@lists.oasis-open.org
    > Subject: Re: [docbook-apps] db5 svg images
    >
    > SVG viewer is EOL:
    >
    > http://www.adobe.com/svg/viewer/install/
    >
    > There could likely be more to it, such as what exact format you do your
    > SVG in. Adobe Illustrator has 9 or 10 different combinations of
    > options,
    > at least.
    >
    > On 12/16/2010 10:11 AM, Dave Pawson wrote:
    > > On Thu, 16 Dec 2010 09:33:31 -0600
    > > Steve Johnson<stevej@caringo.com> wrote:
    > >
    > >> If you're outputting to HTML you should consider doing it like this:
    > >>
    > >> <mediaobject>
    > >> <imageobject role="fo">
    > >> <imagedata format="SVG" scale="75"
    > >> fileref="Graphics/cluster-general.svg" align="center"
    > >> scalefit="1"/></imageobject>
    > >> <imageobject role="html">
    > >> <imagedata format="PNG" scale="90"
    > >> fileref="Graphics/cluster-general.png"
    > align="center"/></imageobject>
    > >> </mediaobject>
    > >>
    > >> I found that IE8 doesn't render SVG at all and Chrome puts a box
    > >> around each one such that you have horizontal and vertical scroll
    > >> bars .. but that could be due to the fact our HTML must fit into a
    > >> 600 pixel horizontal space.
    > >>
    > >> You will find the above if you search Stayton's book for "svg".
    > >
    > > I can create the png form if needed, but I'm concerned about
    > > the error (if it is such).
    > >
    > > I'm wondering if Bobs pages are out of date here?
    > > http://www.sagehill.net/docbookxsl/SVGimages.html
    > > I do recall 'prompting' the IE user to get/install the svg viewer
    > from
    > > Adobe. Not sure if that's still available. Then the reader would know
    > > something was amiss.
    > >
    > >
    > > SVG is so much better than bit-mapped though.
    > >
    > > regards
    > >
    > >
    > >
    >
    > --
    >
    > ------------
    >
    > Steve Johnson, Senior Content Developer
    > Caringo
    > stevej@caringo.com
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




  • 7.  Re: [docbook-apps] db5 svg images

    Posted 12-16-2010 18:00
    On Thu, 16 Dec 2010 11:19:52 -0600
    "Cramer, David W (David)" <dcramer@motive.com> wrote:

    > I haven't gotten around to trying out svgweb [1] with DocBook content
    > yet, but it looks to me like the most promising solution to the
    > problem.
    >
    > David
    >
    > [1] http://code.google.com/p/svgweb/

    Why the heck can't they just do SVG David?
    But yes, as a hack it can't be bad. Or
    does that presume that they all use the
    same ??? of javascript.



    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk