[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Confused about item-type for PDF files

On Monday 20 August 2018 10:35,
peter garner <peter@petergarner.net> put forth the proposition:
> Hi List,
> My gopher server (running gophernicus) has a wide selection of files
> but very few are in TXT format: I mainly collect PDFs instead as these
> are more easily available.
> However, experimenting with a number of clients recently has
> highlighted some confusion on my part as to which item-type to use for
> PDF: up until recently I've used "P", and the clients I used seemed to
> handle these correctly. If I use the gophernicus-recommended item-type
> of "d" (d document file (ps, pdf, doc etc)) it breaks the original UMN
> gopher client.
> I know that rfc1436 has no mention of PDF format, and that binary files
> should be type "9". I anyone else serving PDFs, and if so, which item-
> type are you using?

According to the elinks source code the P selector is part of gopher+

	GOPHER_PLUS_IMAGE	= ':', /* Addition from Gopher Plus */


I recommend avoiding those as support in clients is not guaranteed.



...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning.
  -- Matt Welsh

                                                            .--.  oo

Reply to: