Gopher 4: Anatomy of a gopermap
A gophermap is a plain text file, with a specific format to tell gopher how to interpret the various elements.
I will try and explain my own gophermap fille below.
Firstly, we have a banner, this can be gernerated from various websites, for example :-
i ______ _____ _ ____ (NULL) 0
i|__ / | | ____| / \ | _ \ (NULL) 0
i / /| | | _| / _ \ | |_) | (NULL) 0
i / /_| |___| |___ / ___ \| __/ (NULL) 0
i/____|_____|_____/_/ \_\_| (NULL) 0
After which I have put a brief introduction and links to text files that are also stored along side the gophermap.
My name is Paul. This is my gopherspace on vern.cc.
INFO
0About me about.txt
0Contact contact.txt
0Blog blog.txt
So two IMPORTANT things here, the 0 at the start of the line tells gopher to link to a text file. See link 1 for an explanation of what to put at the start of a line for linking to different types of resources.
We then have a name of what we are linking to, then a then the filename. You MUST set up your editor so it interprets tabs properly.
Alongside the text files, I have a PDF file and a link to the source LaTeX file (which is plain text), I have also linked to a shell script and a CSV data file.
PROJECTS
Command reference for the Joe Text Editor
9Joe Command Reference(pdf) jcr.pdf
0LaTeX Source for above main.tex
Weather logger, this is a simple bash script, that uses the ascii weather program to obtain weather information, and log this with time and date. I have it running on a Raspberry Pi, so when plugged in, it logs the data to a CSV (comma separated values) file.
0Weather logger bash Script logweather.sh
0Output file (CSV) weather.csv
Note, you will probably need to set permissions on logweather.sh to +x
While we can't display pictures / graphics in gopher, we can link to such files so they can be downloaded. Note below, I have these files in a directory / folder alongside my gophermap. so, need to include the path to the file.
/pictures/tux.jpg
GRAPHICS
ITux /pictures/tux.jpg
ISouth West Map /southwest1.png
We can also link to other gopher sites and resources
GOPHER LINKS
0Vern.cc gopher://vern.cc/ 70
0Why is Gopher Still Relevant? /gopher/relevance.txt gopher.floodgap.com 70
While it is possible to link to a website URL I have decided to link to a markdown file, that has weblinks within. Users will need to copy / paste the url or download and open as a markdown file.
WEB LINKS
I have sorted into categories
0Astronomy & Space AstroSpace.md
0Discussion Forums Discussion.md
Links
1 Structure of a gophermap 2 Vern.cc 3 Vern Matrix
Tags
Mastodon | ShellLabs | Join Mastodon |