@ruari Alt texts should ideally be kept under 125 characters; because JAWS (don’t know about other screen readers) will cut it off at that point. The longdesc attribute is recommended for longer descriptions. Of course, that’s not available in the UI most (any?!) places, so I reckon pasting the whole text in a follow-up toot is sort of a solution.
@feditips Yeah I need to think about this going forward. I often have long alt text and not just because I include a full copy of written words from a screenshot. Now I am thinking about how I should order things, so that the most relevant part is near the front, so when it is too long, they'll at least get something.
Yeah, good point! Maybe the difference in the way different tags are treated is a holdover from the days when alt texts were also used as visual placeholders for sighted people? (In the days when images loaded slowly or not at all...)
@feditips@ruari Thank you for investigating and clearing it up for us! I've always worked with the assumption that alt texts should be short and precise - when it was first implemented in browsers it was to describe images rather than transcribe big blocks of screenshotted text 🤷🏻♂️ There's also the chance that when the alt text replaces a non-loading image, the text might get cut off depending on the width & height of the image it's replacing.
A side note @feditips since you write masto tips. Toot is really nice for automating posting from scripts. My @browserversiontracker and @vivaldiversiontracker are basically just short shell scripts powered by cURL to fetch information and Toot to post it.
With tools like these doing the heavy lifting simple info posting masto bots are pretty straightforward if you have basic command line skils.
You have probably written about these things before but I mention it nonetheless. 🤷🏼
@feditips FWIW I do think a lot of sighted users do use the alt text as well. Images are sometimes deleted from caches on instances. In addition there are extentions and tools built into browsers (including Vivaldi) to prevent loading of images for various reasons. Here is my earlier post, which interestingly shows the entire alt text even though the toltip did not.
@feditips My "bots" (actually just automated posting) are tiny shell scripts run as cron jobs. At set intervals they use cURL to fetch information from the web, extract key values with tools like sed and grep and then post with Toot (if those values have changed since last time).
I know it is not for everyone but the barrier for entry is fairly low if someone is at all command line savvy.
@feditips Well it just makes the posting part really simple as you can just pipe text into it from the command line. Here is a small excerpt from the shell script that posts the @vivaldiversiontracker information.
@feditips I can tweak this old script that I used to use on my watch account that posted hourly updates of the time in binary as Christmas trees (lit and unlit).
Make it into something more useful and embed it in a blog post