One of the things vital for accessibility is alt text — a description that is read by screen readers. Mycomarkup should have it.
Note that image descriptions which are already supported by mycomarkup are different from alt text, since they are shown by default. Image descriptions are usually not that helpful for sighted people, since they can just see the picture, instead of reading its description.
Not sure what is handled by this repository and what is handled by the users, but the ideal state of alt text support is:
alt
html attribute (or in any other way depending on the medium)[alt]
button to the image)
Yes, absolutely! I thought about the following syntax before:
img grid { https://bouncepaw.com/mushroom.jpg { Some description here } The alt-text is here until the end of line
https://bouncepaw.com/mushroom.jpg { That's a different picture with no alt-text } }
Not sure how viable it is though.
I think alt-text oftentimes gets somewhat long, so limiting it to only a single line doesn't sound right.
Hmm, yeah, that's right.
In Mycomarkup, {} is often used for multi-line content. For example, multiline table cells:
table { | one line | { multi line } }
img {} already used that for image captions. But what if we use {} twice?:
img { waffle photo { I did this waffle yesterday. } { A photo of a Vienna waffle with some strawberry jam on it. The photo is very detailed. } }
No caption and an alt text:
img { waffle photo {} { A photo of a Vienna waffle with some strawberry jam on it. The photo is very detailed. } }
This is an option, yes. Kind of reminds me of LaTeX :sweat_smile:
It does look a bit weird, but I don't think we can come up with a much nicer scheme.