From 59a0f20650d60052c44af92112fe9ec07ebf9703 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 16 Jul 2022 15:25:24 +0200 Subject: [PATCH] [doc] Notes about DGI --- doc/dgi.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/dgi.txt diff --git a/doc/dgi.txt b/doc/dgi.txt new file mode 100644 index 000000000..1410eceb4 --- /dev/null +++ b/doc/dgi.txt @@ -0,0 +1,21 @@ +DOS Gateway Interface +--------------------- + +DOS Gateway Interface (DGI) introduced by Arachne browser is similar to +CGI scripts and mailcap. DGI programs usually take input from command line +or files and write output to temporary files. Similarity to mailcap +is config file. You can assign various file externsions with DGI, and +run to get output. + +See Arachne documentation for details of configuration file mime.cfg. + +Note, that not all options were implemented in ELinks, and not all were tested. + + +Sample mime.cfg +~~~~~~~~~~~~~~~ + +------------------------------------------------------------------------------- +file/cdplayer.dgi |$ecdplayer.exe $s +application/pdf pdf>txt|$epdftotext $1 $2 +-------------------------------------------------------------------------------