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:[EMAIL PROTECTED]]
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

Reply via email to