💾 Archived View for rawtext.club › ~sloum › geminilist › 005771.gmi captured on 2023-09-28 at 17:02:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

Alt text and media types for preformatted text

Alex // nytpu alex at nytpu.com

Mon Mar 1 03:47:11 GMT 2021

- - - - - - - - - - - - - - - - - - - 

On 2021-02-28 10:57PM, Oliver Simmons wrote:

Gemtext is designed so it can be read line-by-line, top-to-bottom and
be completely understood....
I like the ordering of content type first and alt text lastSo the sighted people with fancy syntax highlighting get to triviallyread it line-by-line, but the people writing accessible software have to1) seek forward to find the end of the preformatted text block; 2) readthe alt text; then, if the user wants to display the preformatted block3) jump backwards to the beginning of the preformatted text block andread it; then 4) skip past the last line of the preformatted text blockso it isn't read again; then 5) continue parsing.

I think syntax highlighting deserves an easier implementation thanaccessibility too, so I'm fine with this situation, I'm glad someoneelse finally agrees with me on this.

I mean seriously, I like syntax highlighting as much as anyone butadvanced syntax highlighting has to be context-sensitive and possiblyrequires looking back in the code block anyways, so might as well put itat the end, if you have it at all. But let's just look at the conceptat all for a second: if you really have such a massive block of codethat you need syntax highlighting, just put it in its own file and leteither the browser color it via MIME type or the user can just open itin their editor. If your short snippet of code can't be understoodwithout syntax highlighting then it's probably a problem with your coderather than the presentation...

~nytpu

-- Alex // nytpualex at nytpu.comGPG Key: https://www.nytpu.com/files/pubkey.ascKey fingerprint: 43A5 890C EE85 EA1F 8C88 9492 ECCD C07B 337B 8F5Bhttps://useplaintext.email/-------------- next part --------------A non-text attachment was scrubbed...Name: signature.ascType: application/pgp-signatureSize: 833 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210228/ee93dd08/attachment.sig>