[sword-devel] Linked in audio files

Chris Little chrislit at crosswire.org
Wed Aug 25 22:19:49 MST 2010

On 8/25/2010 5:20 AM, Karl Kleinpaste wrote:
> Chris Little<chrislit at crosswire.org>  writes:
>> If you mean to embed the audio in-line, I would recommend using the
>> <figure>  element. There's nothing specifically image-oriented about the
>> element, aside from implications made by its name.
> Yes, there is: The XXXhtmlhref filters wrap the resulting HTML<img>
> element in<a href="passagestudy.jsp?action=showImage...">  for the sake
> of letting the application kick off a standard external viewer, if it
> knows how to do so.

No, there is nothing specifically image-oriented about the <figure> 
element. That Sword filters always interpret it as an image is 
irrelevant to my point.

Moving forward, we can mandate that (for Sword) non-image data embedded 
with <figure> be tagged with an attribute (e.g. type="x-audio") or we 
can add the tag ourselves in the importer by reading filename 
extensions. Then the OSISHTMLHREF filter can watch for type="x-audio" 
and generate <audio> or whatever (depending on whether we're targeting 
HTML5 or something else).


More information about the sword-devel mailing list