You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when building an HTML <figure> from the implicit figure Markdown extension, pandoc will duplicate the alt attribute as the <figcaption>. I think that, if both attributes are provided, title should be preferred for the <figcaption>.
Recall that the alt attribute is intended for when images can’t be displayed, as in screenreaders, textmode browsers, or broken links. In modern browsers, the the alt content is never given alongside the images; either one or the other will be presented.
The title attribute, by contrast, is intended for supplementary information. In practice it’s normally displayed as a hover tooltip. People use it for things like attribution, comments about the image (clarifications and notes for somebody who can see the image; not a full description that would replace it), little jokes.
So if we are going to display the image and one of the attributes at the same time, it looks like title makes more sense.
Figure captions in academic usage typically will be brief names for the image, like "Figure 1: Average and variance of prototypes." They don’t replace the information of the image (listing, for example, all of the numbers presented in a graph), but rather label it, supplementarily. So they’re more title-y than alt-y. Moreover, many authors include additional, title-y supplementary information in the caption ("Figure 1: Averages. Note the outliers from southern areas.") (cp. Latex short/long caption function.)
Figure captions in common web usage, when they exist, are often used pretty much the same as tooltip titles: attributions, observations, jokes etc.
To support screenreaders and enable accessibility, one should provide full information about the image in the alt, which could stand for it when it can’t be displayed. It’s often the case that the more details the better, resulting in long descriptions. In the current system, these descriptions will then become excessively long captions. Furthermore, these captions will be, by definition, strictly redundant.
The text was updated successfully, but these errors were encountered:
I think this has been discussed quite a bit elsewhere.
To summarize, we can't use title because we need something that supports formatting, and title (in pandoc's AST) is just a plain string. That's why we use alt. But we agree it's not completely satisfactory; #3177 is the way forward.
Currently, when building an HTML
<figure>
from the implicit figure Markdown extension, pandoc will duplicate thealt
attribute as the<figcaption>
. I think that, if both attributes are provided,title
should be preferred for the<figcaption>
.Recall that the
alt
attribute is intended for when images can’t be displayed, as in screenreaders, textmode browsers, or broken links. In modern browsers, the the alt content is never given alongside the images; either one or the other will be presented.The
title
attribute, by contrast, is intended for supplementary information. In practice it’s normally displayed as a hover tooltip. People use it for things like attribution, comments about the image (clarifications and notes for somebody who can see the image; not a full description that would replace it), little jokes.So if we are going to display the image and one of the attributes at the same time, it looks like
title
makes more sense.Figure captions in academic usage typically will be brief names for the image, like "Figure 1: Average and variance of prototypes." They don’t replace the information of the image (listing, for example, all of the numbers presented in a graph), but rather label it, supplementarily. So they’re more
title
-y thanalt
-y. Moreover, many authors include additional,title
-y supplementary information in the caption ("Figure 1: Averages. Note the outliers from southern areas.") (cp. Latex short/long caption function.)Figure captions in common web usage, when they exist, are often used pretty much the same as tooltip
title
s: attributions, observations, jokes etc.To support screenreaders and enable accessibility, one should provide full information about the image in the
alt
, which could stand for it when it can’t be displayed. It’s often the case that the more details the better, resulting in long descriptions. In the current system, these descriptions will then become excessively long captions. Furthermore, these captions will be, by definition, strictly redundant.The text was updated successfully, but these errors were encountered: