hhmx.de

Eystein

· Föderation EN Fr 01.09.2023 13:03:13

@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.

FediTips has moved!

Föderation EN Fr 01.09.2023 13:07:54

@eys @ruari

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...)

Velocipede Rider

Föderation EN Fr 01.09.2023 13:09:11

@feditips I now eagerly await a future post on best tips when alt texting from you. πŸ˜†

@eys

Velocipede Rider

Föderation EN Fr 01.09.2023 13:12:24

@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.

@eys

Screenshot of earlier post in the thread showing the complete alt text displayed with no cut off.

(Medien: 1)

Velocipede Rider

Föderation EN Fr 01.09.2023 13:15:54

@feditips I also sometimes use @ihabunek's wonderful Toot TUI masto client from the terminal and appreciate the alt text greatly myself.

Here is my older post as an example

github.com/ihabunek/toot

@eys

My earlier post showing the post with alt text displayed on a terminal using Toot TUI masto client.

(Medien: 1)

Velocipede Rider

Föderation EN Fr 01.09.2023 13:27:32

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. 🀷🏼

@ihabunek

FediTips has moved!

Föderation EN Fr 01.09.2023 13:42:48

@ruari @browserversiontracker @vivaldiversiontracker @ihabunek

I've mentioned Toot as a command line app, didn't know about the script side of things. Thanks! πŸ™

Velocipede Rider

Föderation EN Fr 01.09.2023 13:46:31

@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.

@ihabunek

  cat <<EOF | toot post -u "$PUBLISHER_USERNAME" -v public
Vivaldi Stable :vivaldi_red:
• Desktop πŸ–₯️: $POST_DESKTOP_STABLE_VERSION
• Android πŸ“±: $POST_ANDROID_STABLE_VERSION

Vivaldi Snapshot :vivaldi_gray:
• Desktop πŸ–₯️: $POST_DESKTOP_SNAPSHOT_VERSION
• Android πŸ“±: $POST_ANDROID_SNAPSHOT_VERSION
EOF
else
  printf "\nNo new builds\n\n" >&2
  exit
fi

(Medien: 1)

Velocipede Rider

Föderation EN Fr 01.09.2023 14:27:48

@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 has moved!

Föderation EN Fr 01.09.2023 14:31:21

@ruari

Do you have a post about this somewhere I could link to? πŸ˜ƒ

Velocipede Rider

Föderation EN Fr 01.09.2023 14:33:31

@feditips I guess I could write a short blog post about it with maybe an example script.

Velocipede Rider

Föderation EN Fr 01.09.2023 14:37:36

@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

gist.github.com/ruario/dcbb5a4

FediTips has moved!

Föderation EN Fr 01.09.2023 14:39:23

@ruari

Hahaha, I knew you would bring unusual watches into it 😁

Even a quick blog post summarising what you've posted in this thread would do!

Velocipede Rider

Föderation EN Fr 01.09.2023 14:40:06

@feditips I mean it was that or unicycles…right!? πŸ˜†

Velocipede Rider

Föderation EN Fr 01.09.2023 13:27:32

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. 🀷🏼

@ihabunek

FediTips has moved!

Föderation EN Fr 01.09.2023 13:42:48

@ruari @browserversiontracker @vivaldiversiontracker @ihabunek

I've mentioned Toot as a command line app, didn't know about the script side of things. Thanks! πŸ™

Velocipede Rider

Föderation EN Fr 01.09.2023 13:15:54

@feditips I also sometimes use @ihabunek's wonderful Toot TUI masto client from the terminal and appreciate the alt text greatly myself.

Here is my older post as an example

github.com/ihabunek/toot

@eys

My earlier post showing the post with alt text displayed on a terminal using Toot TUI masto client.

(Medien: 1)

Velocipede Rider

Föderation EN Fr 01.09.2023 13:27:32

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. 🀷🏼

@ihabunek

FediTips has moved!

Föderation EN Fr 01.09.2023 13:42:48

@ruari @browserversiontracker @vivaldiversiontracker @ihabunek

I've mentioned Toot as a command line app, didn't know about the script side of things. Thanks! πŸ™

FediTips has moved!

Föderation EN Fr 01.09.2023 13:10:39

@eys @ruari

Tried to have a look if this issue had been raised before, apparently longdesc is deprecated?

github.com/mastodon/mastodon/i

Eystein

Föderation EN Fr 01.09.2023 13:17:11

@feditips @ruari ops, it's deprecated yes! I have to admit i've never made use of it myself. But luckily, as it says, we can use aria-describedby, which when I think about it, I've seen more used.

Eystein

Föderation EN Fr 01.09.2023 13:14:53

@feditips @ruari Just be aware that there are still a lot of images not loading, often because of broken image URLs as a result of moving servers, or someone "cleaning up" a media library - deleting photos. Or javascript used to load, but the javascript is broken. Or a poor mobile connection. The list goes on…

The size cropping issue is dependent on how responsive the CSS is.