tdwg / ac

Audiovisual Core
http://www.tdwg.org/standards/638
Creative Commons Attribution 4.0 International
11 stars 6 forks source link

AC term that corresponds to HTML img alt attribute? #205

Closed ekrimmel closed 2 years ago

ekrimmel commented 3 years ago

Some colleagues and I are wondering if there are any conventions for what term in AC might correspond to an HTML alt attribute for an image. In a sense all of the Audubon Core fields are alt text, just way more detailed. But for automating accessibility of images (e.g. on the iDigBio or the GBIF website), is there a certain term that typically gets used that way. Maybe dcterms:description or ac:caption? Are you familiar with any examples in practice that use AC to generate HTML image attributes? I'm not sure whether answering this is in scope for the AC maintenance group or not, so feel free to tell me if it's not!

nielsklazenga commented 3 years ago

According to the documentation, ac:caption is displayed together with the resource, while dcterms:description is displayed instead of the resource. That would make that dcterms:description is used for alt attributes in img tags and ac:caption in figcaption elements. I think it would be good to add this to the documentation as an 'e.g.'.

ekrimmel commented 3 years ago

This logic for dcterms:description makes sense to me, thanks, Niels!

baskaufs commented 2 years ago

Fixed and implemented in https://github.com/tdwg/rs.tdwg.org/pull/79 and https://github.com/tdwg/ac/pull/212