💾 Archived View for gemi.dev › gemini-mailing-list › 000260.gmi captured on 2024-06-16 at 12:50:43. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

[REQ] Element IDs in the web specification

1. Brian Evans (b__m__e (a) mailfence.com)

I would like to link to the `text/gemini` portion of the spec for a 
project I am working on.
However, there are no IDs on any of the elements. This makes it impossible 
to link someone
directly to a section. :(

If this can get updated it would be much appreciated. I am trying to link 
it as additional information
for non-technical users... so linking to the full spec might be overwhelming.

I know it has been brought up before to separate text/gemini from the 
protocol spec, and just thought
I would float that here again...

--?
Sent with https://mailfence.com
Secure and private email

Link to individual message.

2. Sean Conner (sean (a) conman.org)

It was thus said that the Great Brian Evans once stated:
> I would like to link to the `text/gemini` portion of the spec for a
> project I am working on. However, there are no IDs on any of the elements.
> This makes it impossible to link someone directly to a section. :(
> 
> If this can get updated it would be much appreciated. I am trying to link
> it as additional information for non-technical users... so linking to the
> full spec might be overwhelming.
> 
> I know it has been brought up before to separate text/gemini from the
> protocol spec, and just thought I would float that here again...

  On the plus side, there are two RFCs (RFC-5147 and RFC-7111) that define
URI fragment semantics to particular resource types.  Downside, they don't
directly apply to text/gemini.

  One method would be to use verbatim text as the ID, starting from the
start of the line.  So for your use case:

gemini://gemini.circumlunar.space/docs/specification.gmi#%235%20The

the fragment portion, decoded, would be "# 5 The" (note:  the '#' here is
encoded as %23).  The client would then scan through the document in
question looking for a line that starts with "# The" and position the
document accordingly in the window/viewport/terminal.

  The second method would be to adapt the one for text/plain (RFC-5147).

  The two methods have the advantage of not modifying text/gemini and could
be a convention of clients util some method clearly beomces the winner.

  -spc

Link to individual message.

3. Brian Evans (b__m__e (a) mailfence.com)


> From: Sean Conner <sean at conman.org>
>   On the plus side, there are two RFCs (RFC-5147 and RFC-7111) that define
> URI fragment semantics to particular resource types.  Downside, they don't
> directly apply to text/gemini.
> 
>   One method would be to use verbatim text as the ID, starting from the
> start of the line.  So for your use case:
> 
> gemini://gemini.circumlunar.space/docs/specification.gmi#%235%20The
> 
> the fragment portion, decoded, would be "# 5 The" (note:  the '#' here is
> encoded as %23).  The client would then scan through the document in
> question looking for a line that starts with "# The" and position the
> document accordingly in the window/viewport/terminal.
> 
>   The second method would be to adapt the one for text/plain (RFC-5147).
> 
>   The two methods have the advantage of not modifying text/gemini and could
> be a convention of clients util some method clearly beomces the winner.
> 
>   -spc
> 

I'm sorry I wasnt more clear: I had meant for the web version adding ID
attributes would be useful.

That said, I like the idea of using the fragment portion on gemini in the way you
describe. If I get some time I may try to mock this up and see if I can get it to
work. :)

--?
Sent with https://mailfence.com
Secure and private email

Link to individual message.

---

Previous Thread: RTT0

Next Thread: [ANN] Web based gemlog authoring