>> Is that possible at all with DocBook? If no, then there's no way, I
>> guess. If yes, then you can probably use escapes.
>
> I think it is possible using DocBook. I will see if I can get it working with
> escapes and if so put  the code up FWIW in case anyone finds it useful.
>
> regards
> Andy Little

FWIW , Docbook seems to simply ignore <alt> tags, so I guess there is little
point in pursing it as far as alt goes (I put my own efforts and results at the
end FWIW), OTOH imagedata can take various attributes such as scaling and
alignment, which might be useful to overrrule any standard formatting.

regards
Andy Little

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

<imagedata> Additional attributes:
  a.. align (enumeration)
    a.. “center”
    b.. “char”
    c.. “justify”
    d.. “left”
    e.. “right”
  b.. contentdepth
  c.. contentwidth
  d.. depth
  e.. Each of:
    a.. format
    b.. Exactly one of:
      a.. fileref (anyURI)
      b.. entityref (ENTITY)
  f.. scale
  g.. scalefit (enumeration)
    a.. “0”
    b.. “1”
  h.. valign (enumeration)
    a.. “bottom”
    b.. “middle”
    c.. “top”
  i.. width

FWIW Heres My Quickbook source macro:

[def sf_logo '''
<ulink url="http://www.sourceforge.net";>
<inlinemediaobject>
<alt>Sourceforge.net Logo</alt>
<imageobject>
<imagedata
fileref="http://sourceforge.net/sflogo.php?group_id=170593&amp;type=4";
width="125" depth="37">
</imagedata>
</imageobject>
</inlinemediaobject>
</ulink>''']

Hers the generated XML:

<para>
<ulink url="http://www.sourceforge.net";>
<inlinemediaobject>
<alt>Sourceforge.net Logo</alt>
<imageobject>
<imagedata
fileref="http://sourceforge.net/sflogo.php?group_id=170593&amp;type=4";
width="125" depth="37"/>
</imageobject>
</inlinemediaobject>
</ulink></para>

Finally the html:

<p>
<a href="http://www.sourceforge.net"; target="_top">
<span class="inlinemediaobject">
<img src="http://sourceforge.net/sflogo.php?group_id=170593&amp;type=4";
height="37">
</span>
</a>
</p>

Which shows that Docbook ignores the alt tags AFAICS.










-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to