[tech] gmisub2atom

mbays <mbays (a) sdf.org>

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?

Link to individual message.

Luke Emmet <luke (a) marmaladefoo.com>

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

Link to individual message.

---

Previous Thread: A new human language in Gemini: galician

Next Thread: [tech] can git email commit also be archived in mail list?