Expand description
Gopher menu engine — parses RFC 1436 gopher menus into a portable document.
A gopher menu is a sequence of tab-delimited lines, each of the form:
<type><display>\t<selector>\t<host>\t<port>\r\nThe first character of each line is the item type. A bare . on its own
line terminates the menu.
Item types this engine handles explicitly:
iinformational text (no resource) — merged into paragraph runs0text file — emitted as link1submenu / directory — emitted as link7full-text search server — emitted as link9binary — emitted as linkg/Iimages — emitted as linkssound — emitted as linkTtelnet — emitted as linkhURL item (selector starts withURL:) — extracted URL emitted as link3server error — folded into informational paragraph text
Unknown types are still emitted as a synthesised gopher:// link so the
menu remains navigable even when the type isn’t in the table above.
References:
- RFC 1436 (The Internet Gopher Protocol)
- RFC 4266 (gopher URI scheme)
Structs§
- Gopher
Engine - Gopher menu engine.
Constants§
- ENGINE_
ID - Stable engine identifier.