Text reflow woes (or: I want bullets back!)

Sean Conner sean at conman.org
Sun Aug 18 09:28:12 BST 2019


It was thus said that the Great Michael Lazar once stated:
> On Thu, Aug 15, 2019 at 7:52 PM Sean Conner <sean at conman.org> wrote:
> >
> > It was thus said that the Great solderpunk once stated:
> > > I was surprised and excited today to spot a (beta) web-to-Gemini
> > > portal at https://portal.mozz.us/.
> >
> >   Pretty cool, but it fails on loading any of the proposed RFCs on my site:
> >
> >         gemini://gemini.conman.org/gRFC/
> >
> > I think that's because I send a MIME type of
> >
> >         text/gemini; charset=US-ASCII; format=flowed
> 
> This has now been fixed. I'm not going to do anything with the "format=flowed"
> parameter because it's not in the official spec (yet), but you should now be
> able to specify a charset and it will be respected by the proxy.

  You might want to fix the parser.  I changed gRFC/0002 to return a MIME
type of:

	text/gemini; format=flowed; charset=US-ASCII;

(as the order of parameters is unspecified in proper MIME parsing) and I'm
getting an Internal Server Error.  The other two pages still work.

> >   -spc (It also a decent test for parsing URLs---the gateway doesn't do a
> >         proper job actually ... )
> >
> 
> This should also be fixed now, I wasn't handling relative paths properly.

  I still don't think it's working correctly.  On the page:

	gemini://gemini.conman.org/test/bullet.gemini

The first five links are, in order:

	example:bullet		RFC-7595
	example:bullet
	about:blank		RFC-6694
	-			a non-existant link
	/test/bullet.gemini	self-referential link

The first three *should not* make a reference to my server.  The last two
should.

> Since there are currently only a handful of actual gemini servers to test
> against, it's difficult to discover these types of bugs when writing a client.
> It would be helpful if there was a playground or sandbox server that presented
> all of the different combinations of URL formats, charsets, response codes, etc.
> that are allowed by the Gemini spec. I might take a shot at starting one myself.

  Not a bad idea.

  -spc



More information about the Gemini mailing list