This is the mail archive of the docbook-tools-discuss@sources.redhat.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: alt= in HTML


Peter Toft wrote:
> 
> wanted to transfer my Docbook->HTML generated book for
> blind people. They have a speach synthesis, but need
> the pictures to have the alt-tag set in the HTML code.
> 
> I normally make a Docbook picture by
> 
> <FIGURE ID="pto-fig" FLOAT="1">
> <TITLE>Peter Toft</TITLE>
> <GRAPHIC FILEREF="pto" SCALE="80"></GRAPHIC>
> </FIGURE>
> 
> but this does not allow me to get an HTML code
> 
> <IMG src="pto.png" alt="Peter Toft">
> 
> which I need - I would accept, if I have to add the
> alt-text again - or something like that, but I need
> clues whether it is possible to get the alt-tag
> automagically :-)

Have you tried a <mediaobject>? It is specifically done to support
several formats for the same "object". So the user can view/hear/read a
picture, a sound, and a text, depending on how the people can/want to
see it.

BTW, it also solves the old problem "I want a PNG in HTML, and an EPS in
PostScript"

-- 
 Éric Bischoff   -   mailto:ebisch@cybercable.tm.fr
 __________________________________________________
                                           \^o~_.
     .~.                           ______  /( __ )
     /V\         Toys story         \__  \/  (  V
   //   \\                            \__| (__=v
  /(     )\                        |\___/     )
    ^^-^^                           \_____(  )
     Tux                        Konqui     \__=v
 __________________________________________________

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]