Comment by ๐Ÿš€ stack

Re: "We need to talk about preformatted text blocks"

In: s/Gemini

Theoretically you could add the alt text to the preformatted line. It could have a version suitable for the reader -- or some abbreviated readable text such as

With some browsers you should mouse-hover over the table or click on it to see the alt text...

๐Ÿš€ stack

Jan 09 ยท 4 months ago

4 Later Comments โ†“

๐Ÿš€ stack ยท Jan 09 at 19:42:

I hope screen readers are smart enough to detect ASCII Esc characters and not read the text literally.

๐Ÿก Breebee [...] ยท Jan 09 at 20:59:

i also only situationally seen a screen reader but damn those preformatted blocks just read in full. even if there is alt text it's not like any client work with the screen readers to make sure they only read it. so usually i'll hear both the alt text and the "line slash 12 underscores line underscore 10 shashes underscore" with no real way of skipping it.

๐Ÿก Breebee [...] ยท Jan 09 at 21:00:

@stack unfortunately they are not (at least Orca isn't)

๐Ÿ“ป Anchorite [OP] ยท Jan 09 at 21:12:

@stack

I hope screen readers are smart enough to detect ASCII Esc characters and not read the text literally.

Given Gemini's niche status there's little chance screen reader developers will accommodate it. In terminal clients everything is seen as unstructured text, fine for smaller pages but long ones such as the feed on the homepage here would be very tedious to navigate. But that's the case with all terminal apps (try navigating a man page for example).

GUI clients are were the concern lies. Again, I'm not a developer so I don't know how to fix this, only that something needs fixing. A proxy client such as the one I linked to in an earlier post

โ€” Gemini proxy

renders gemtext as HTML because they're in a web browser. I think that would be a good starting point for GUI clients, rendering the gemtext as though it were HTML. Screen readers are very familiar with that format.

Original Post

๐ŸŒ’ s/Gemini

๐Ÿ“ป Anchorite:

We need to talk about preformatted text blocks โ€” When I first discovered Gemini 2 years ago, the video I watched said that preformatted blocks were often used for ASCII art, which is why one can give them alt text, so that screen readers don't parse them as text. But preformatted blocks are just as often used for actual text, whether code or to align sections of text like tables and so on. So we have situations where one would want preformatted text to be presented to a screen reader as an...

๐Ÿ’ฌ 5 comments ยท 2 likes ยท Jan 09 ยท 4 months ago