#!/usr/bin/env lua
-- ***********************************************************************
--
-- Returns an SVG image of an Urbit ID.
-- Copyright 2020 by Sean Conner.
--
-- This program is free software: you can redistribute it and/or modify it
-- under the terms of the GNU General Public License as published by the
-- Free Software Foundation, either version 3 of the License, or (at your
-- option) any later version.
--
-- This program is distributed in the hope that it will be useful, but
-- WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-- Public License for more details.
--
-- You should have received a copy of the GNU General Public License along
-- with this program. If not, see .
--
-- Comments, questions and criticisms can be sent to: sean@conman.org
--
-- ***********************************************************************
-- luacheck: ignore 611 631
--
-- NOTE: This is a CGI script that will work under HTTP, GEMINI and GOPHER,
-- provided that $SERVER_PROTOCOL, $REQUEST_METHOD and $QUERY_STRING
-- are supported by the server.
--
-- Lua 5.1 or higher.
local sigil =
{
dal = "",
rym = "",
bal = "",
tob = "",
sep = "",
hoc = "",
fet = "",
lan = "",
hap = "",
leb = "",
lab = "",
lib = "",
dux = "",
feb = "",
lig = "",
tom = "",
tal = "",
sal = "",
ral = "",
dys = "",
lux = "",
son = "",
nal = "",
mal = "",
mud = "",
der = "",
rux = "",
tep = "",
hal = "",
doz = "",
fal = "",
siv = "",
syd = "",
mex = "",
lyt = "",
tyd = "",
wyd = "",
bar = "",
mid = "",
sit = "",
tex = "",
mep = "",
dyt = "",
wex = "",
fog = "",
bid = "",
nep = "",
hec = "",
fit = "",
mec = "",
bep = "",
mel = "",
bit = "",
dun = "",
bex = "",
fun = "",
ryt = "",
nid = "",
fex = "",
syt = "",
hex = "",
dif = "",
dib = "",
tid = "",
han = "",
met = "",
bel = "",
mig = "",
mip = "",
mit = "",
moc = "