Following up the last discussion, Graham suggested that Blorb should offer
a way to offer textual descriptions for all images. (Not just the cover
art.)
Seems sensible to me. And we might as well include sounds. I have
therefore written up this addition to the Blorb spec:
---------------
For a game to be fully accessible to visually impaired users, it should
provide textual descriptions to be displayed as alternatives to images.
Similarly, audio resources should have textual descriptions as
alternatives for hearing-impaired users.
The resource description chunk allows the Blorb file to offer this
information.
4 bytes 'RDes' chunk ID
4 bytes 4 chunk length
4 bytes num number of entries
... entries
The entries are variable-length, and look like:
4 bytes usage resource usage
4 bytes number number of resource
4 bytes length length of text (bytes)
length bytes text textual description (UTF-8,
not null-terminated)
There should be at most one entry for each resource -- that is, each
(usage, number) pair.
Resource descriptions are not required, but they are recommended for
significant sounds and images. (Images used for decoration, such as window
borders or text dividers, may not need textual descriptions.) Data and
executable chunks do not need descriptions; if they appear in this chunk,
the interpreter can ignore them.
(An interpreter with a web interface would apply the textual description
of an image as an "alt" attribute on the <img> tag.)
---------------
I note that since the cover art is an image resource, the cover art's
description will appear twice in the Blorb file. (Here, and in the
ifiction record.) This is okay by me.