TTS should read the alt tag of img

Hello,

Would it be difficult to have the alt tag of img read by {{tts}} ? It seems to be the normal usage of alt tag. I put a lot of logos in my cards to resort to my visual memory but now I regret because I would like to use TTS. For instance :

image

How to generate keys with <img src="Gnupg_logo.svg" alt="GnuPG" style="width: 100px; display: inline-block;vertical-align:bottom;margin-bottom:-1px;">?

If the alt tag was read, the sentence would still make sense. Otherwise not.

In all cases, thanks for your work for which I regularly donate :slight_smile:

Hi, we try and maintain full compatibility with Anki Desktop when it comes to functionality.

This sounds like a good idea, could you check:

  • Is this a problem in Anki, in which case can you report it there? I can move this thread.
  • If this is a bug in AnkiDroid, I’ll get to it ASAP, please ping me.

Cheers,
David

Maintainer @ AnkiDroid

Until this suggestion is added, you can use find & replace with regex to copy the alt text outside and surround it with a hidden span.

With the “change note type feature”, you can also make a new field with text only.