💾 Archived View for rawtext.club › ~sloum › geminilist › 002684.gmi captured on 2020-11-07 at 03:04:34. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2020-09-24)
-=-=-=-=-=-=-
Nathan Galt mailinglists at ngalt.com
Fri Sep 11 21:22:47 BST 2020
- - - - - - - - - - - - - - - - - - -
On Sep 11, 2020, at 12:57 PM, Sean Conner <sean at conman.org> wrote:
It was thus said that the Great Nathan Galt once stated:
On Sep 11, 2020, at 12:44 AM, Sean Conner <sean at conman.org> wrote:
Okay, check out
gemini://gemini.conman.org/test/preformat-2.gemini
Much better.
I don’t know if “image” before the ASCII-art images is, or would be,
useful to anything.
It would prevent a screen reader from reading "circumflex circumflex next
line slash backslash slash slash backslash nextline …”
Oh, huh. My assumption would be that screenreaders wouldn’t read anything in preformatted-text blocks if there were any alt text available.
(Yes, my assumption is that 99.9999% of the time, the page will download faster than a screenreader can speak.)
Back in HTML land, if an image has no alt attribute at all, the usual screenreader behavior is to read the filename out loud. Because this is time-wasting noise 99.999% of the time, web authors are repeatedly urged to add `alt=“”` (empty alt attributes) to images that blind people don’t need to care about (purely presentational ones, for example).
At any rate, if I were blind, I’d want a “skip past the preformatted block I’m in” if my client were set to read out preformatted-text blocks. I have no idea how hard this would be to program in a GUI-based Gemini client, though, for any OS.
It seems a little weird to see “ code Lua” instead of “lua”, and I don’t
know how easy it would be to adjust syntax-coloring libraries to account
for this, but this nitpick is largely immaterial.
Do you really want a client to have to list all these languages?
Seems doable to me:
bat --list-languages | wc -l 147
…and <https://github.com/sharkdp/bat> is merely a supercharged cat(1) clone.
<https://pygments.org/
boasts support for “over 500” languages/text formats.
At least with the prefix "code" the client can know it's source code, even
if it doesn't what the language is. And having the language can let a
client syntax highlight for those languages it does know. That was my
reasoning.
Good choice.