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

Re: Confused about item-type for PDF files



On 2018-08-20 12:29 +0100, David Woodfall wrote:
> On Monday 20 August 2018 10:35,
> peter garner <peter@petergarner.net> put forth the proposition:
> >
> > 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 */
> 	GOPHER_PLUS_MOVIE	= ';',
> 	GOPHER_PLUS_SOUND	= '<',
> 	GOPHER_PLUS_PDF		= 'P',
> 
> http://dawoodfall.net/files/scripts/elinks/entity-types.txt

All these types are mentioned in the gopher+ specification[0]... except
the PDF one. It seems it was added to the UMN gopher client in 1994[1].

The "Updated Gopher Specification"[2] only lists p and d for PDF.

[0] gopher://gopher.floodgap.com/0/gopher/tech/gopherplus.txt
[1] defined in line 151, changelog entry in line 43:
https://raw.githubusercontent.com/jgoerzen/gopher/11bb183670c5a7a8094784fb4ae90fd01b9a9ea7/object/GSgopherobj.h
[2] https://docs.google.com/document/export?format=pdf&id=1etZFoaDuKpWWoG0MUcj9Pk4osc9jobzvL0a6TCnz22o


-- 
Nuno Silva


Reply to: