Escaping in gemtext
Felix Queißner
felix at masterq32.de
Wed Nov 11 08:25:37 GMT 2020
Hey!
I just tested both of your approaches with Kristall:
> I was about to recommend the zero-width space, and I even created a
> document for this:
>
> gemini://gemini.conman.org/test/escape.gemini
>
> but I did notice that when the text is selected, the zero-width space
> is also selected (as it should).
https://mq32.de/public/05851bad5b5e23d9e24bcaa7f259ab6de55c17d0.png
Looks okay, works as expected
>I have a second file
>
> 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.
https://mq32.de/public/2a35ca5e121d2373f9390315c4857dd58c198ca8.png
I think the zero-width space solution is okay, using
'<SPACE><BACKSPACE>' is not, as it's not rendered correctly in anything
that is not a plain terminal:
vi, vim, and nano display that file as ' ^H'
gedit will display ' ?' where ? is a replacement character:
https://mq32.de/public/be09184d3c095251bf2f31ad2bd0685a8a2f0741.png
castor displays the same replacement character:
https://mq32.de/public/408e8c8b1fdc92c70d601c6def64bb5121d64754.png
Regards
- xq
More information about the Gemini
mailing list