Three possible uses for IRIs

John Cowan cowan at ccil.org
Tue Dec 8 21:52:38 GMT 2020


On Tue, Dec 8, 2020 at 4:42 PM <colecmac at protonmail.com> wrote:


> (It also defines a list called sub-delims, but that only applies to query
> strings I believe, and is irrelevant to the way Gemini uses them.)
>

Gemini query strings can certainly be formatted like Web query strings if
the client knows that's what the server expects.  Simple free text isn't
the only possibility.  I'm going to talk about that in a posting at some
point.

These characters are reserved because of their use in other parts of
> a URI. But Gemini does not use all those parts, such as userinfo. I
> believe a reserved character list for Gemini could look like this:
>
> ":" / "/" / "#" / "?" / "[" / "]"
>

We still need the square brackets for the rare case when the host-part is
an IPv6 address.  The only character we could leave out with complete
safety is @, and I don't think that's worth special-casing for Gemini.
It's simpler and better to have the same rules for all URIs.

> I left fragments ("#") in, so that clients can add support for them later,
> if/when a header-to-fragment algorithm is defined, like exists for
> Markdown.
>

+1 to leaving # reserved, not only for that reason but for the same reason
as @; it's not worth making a special rule for Gemini to avoid a trivial
amount of %-encoding, especially given that most file names don't have
either one in their names.



John Cowan          http://vrici.lojban.org/~cowan        cowan at ccil.org
weirdo:    When is R7RS coming out?
Riastradh: As soon as the top is a beautiful golden brown and if you
stick a toothpick in it, the toothpick comes out dry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201208/47393bea/attachment.htm>


More information about the Gemini mailing list