💾 Archived View for gem.benscraft.info › mailing-list › threads › 185 captured on 2021-12-05 at 23:47:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

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

[tech] gmisub2atom

- mbays <mbays at sdf.org>

@ Sat, 10 Apr 2021 22:40 +0200

In reply to

View Message

────────────────────────────────────────────────────────────────────────────────

I couldn't find an implementation of what is described in the gmisub

spec, i.e. conversion to an atom feed, and I wanted it for use in

newsboat. So I just implemented it myself.

gemini://gemini.thegonz.net/gmisub2atom/

Nothing fancy, just a simpleminded C implementation. For the heavy

lifting of parsing gemini and urls, it uses some code from sircmpwn's

gmni and (like gmni) curl, both of which were quite pleasant to use.

Maybe this has already been done and I just couldn't find it?

════════════════════════════════════════════════════════════════════════════════

Re: [tech] gmisub2atom

- Luke Emmet <luke at marmaladefoo.com>

@ Sat, 10 Apr 2021 22:27 +0100

In reply to mbays <mbays at sdf.org>

View Message

────────────────────────────────────────────────────────────────────────────────

On 10-Apr-2021 21:40, mbays wrote:

I couldn't find an implementation of what is described in the gmisub
spec, i.e. conversion to an atom feed, and I wanted it for use in
newsboat. So I just implemented it myself.
=> gemini://gemini.thegonz.net/gmisub2atom/
Nothing fancy, just a simpleminded C implementation. For the heavy
lifting of parsing gemini and urls, it uses some code from sircmpwn's
gmni and (like gmni) curl, both of which were quite pleasant to use.
Maybe this has already been done and I just couldn't find it?

I made a CGI converter about a year ago before the GMI feed spec became

a thing:

https://github.com/LukeEmmet/GMIToAtomFeed

The idea is that you write a GMI feed on your server and then the script

serves live Atom XML.

The design is quite simple, but in Rebol, which is not everyone's day to

day language. It runs off the same server as the Atom feed is fed from,

so it doesnt have the added feature of retrieving an arbitrary 3rd party

GMI feed.

Works for me, but I'm glad the GMI feed spec became a companion spec, as

that is much more Gemini-native.

- Luke

════════════════════════════════════════════════════════════════════════════════