This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Can't create alt-tag from textobject
- From: "Billard, Trish" <trish dot billard at hp dot com>
- To: Scott dot Hudson at Sun dot COM,Lars Bjørndal <lars dot bjorndal at grieg dot uib dot no>
- Cc: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 11 Feb 2003 09:03:52 -0800
- Subject: RE: DOCBOOK-APPS: Can't create alt-tag from textobject
Hi there,
From what I can tell, you can get alt text comes from <phrase>, when <phrase> is part of a <textobject> that is then part of a <mediaobject>.
Here's a sample:
<figure>
<title>The Pythagorean Theorum Illustrated</title>
<mediaobject><imageobject><imagedata fileref="art/pythag.gif" format="gif"/>
</imageobject><textobject><phrase>The Pythagorean theorum illustrated with
rectangles.</phrase></textobject></mediaobject>
</figure>
Hope this helps.
--Trish
-----Original Message-----
From: Scott Hudson [mailto:Scott.Hudson@Sun.COM]
Sent: Tuesday, February 11, 2003 8:47 AM
To: Lars Bjørndal
Cc: docbook-apps
Subject: Re: DOCBOOK-APPS: Can't create alt-tag from textobject
Lars,
I've been able to get alt text using <figure>, but I don't know if that's exactly what you are looking for...
<figure>
<title>Logo</title>
<mediaobject>
<imageobject>
<imagedata fileref="Pictures/fig2_platform_arch.png" format="PNG"
scale="75" width=" " />
</imageobject>
</mediaobject>
</figure>
Perhaps something similar could be done with:
<imageobject>
<objectinfo><title>Logo</title></objectinfo>
<imagedata fileref="./logo.png" align="center" />
</imageobject>
Don't know if this is a customization or should be an RFE, but the 2nd sample doesn't generate alt text for me either.
HTH,
--Scott
Lars Bjørndal wrote:
>
> Look at this, please:
>
> <!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
> <Article lang="no">
>
> <articleinfo>
> <mediaobject>
> <imageobject>
> <imagedata Fileref="./logo.png" align="center">
> </imageobject>
> <textobject>
> <phrase>Logo</phrase>
> </textobject>
> </mediaobject>
> ...
>
> While producing html, I can't get the alt-tag. I have also tried to
> place this sequence at another location in the document, but it gives the
> same result. What can I do to get the alt-tag?
>
> Lars