Escaping in gemtext

colecmac at protonmail.com colecmac at protonmail.com
Tue Nov 10 02:56:48 GMT 2020


> > gemini://gemini.conman.org/test/escape2.gemini
> > that uses " \b" (space, backspace character) which didn't work with
> > cut-n-paste (at least on Firefox on Mac OS-X) but if I viewed the
> > resulting file in a terminal and then did a cut-n-paste, the output
> > was as expected.
>
> Here you're making assumptions about how \b will be rendered, I'm not
> all against your approach, but I'm not also confident that all
> implementations will render this properly.

Agreed. In my client (Amfora), the \b is rendered as a space for some
unknown reason. However this seems to be an issue with terminal UI
toolkit used, as a simple command like

printf '\btest'

renders as expected on the command line, as just the word 'test'.

I find using zero width spaces to be a cool hack, and using separate files
to be an elegant solution.

makeworld



More information about the Gemini mailing list