The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8eb8d67
)
Can now open gophermap files with file:.
author
plugd
<plugd@thelambdalab.xyz>
Mon, 9 Aug 2021 14:45:23 +0000
(16:45 +0200)
committer
plugd
<plugd@thelambdalab.xyz>
Mon, 9 Aug 2021 14:45:23 +0000
(16:45 +0200)
elpher.el
patch
|
blob
|
history
elpher.texi
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
1dfdded
..
c6627df
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-1687,6
+1687,8
@@
Assumes UTF-8 encoding for all text files."
(elpher-render-text (decode-coding-string body 'utf-8)))
((or "jpg" "jpeg" "gif" "png" "bmp" "tif" "tiff")
(elpher-render-image body))
(elpher-render-text (decode-coding-string body 'utf-8)))
((or "jpg" "jpeg" "gif" "png" "bmp" "tif" "tiff")
(elpher-render-image body))
+ ((or "gopher" "gophermap")
+ (elpher-render-index (elpher-decode body)))
(_
(elpher-render-download body))))
(elpher-restore-pos))))
(_
(elpher-render-download body))))
(elpher-restore-pos))))
diff --git
a/elpher.texi
b/elpher.texi
index
5892db3
..
3b54a31
100644
(file)
--- a/
elpher.texi
+++ b/
elpher.texi
@@
-683,6
+683,11
@@
particular their extension. The current mappings are as follows:
Plain text documents. All local text files are assumed to be
UTF-8-encoded.
Plain text documents. All local text files are assumed to be
UTF-8-encoded.
+@item @samp{gophermap},@samp{gopher}
+
+Gophermap files, i.e. files containing a valid directory list as specified
+by RFC 1436.
+
@item @samp{gemini},@samp{gmi}
Gemini documents (i.e. documents of MIME type ``text/gemini''). All
@item @samp{gemini},@samp{gmi}
Gemini documents (i.e. documents of MIME type ``text/gemini''). All
@@
-703,10
+708,6
@@
much that elpher can sensibly do with unknown binary files.)
@end table
@end table
-Gophermap files (i.e. files containing literally the intended output of
-querying a directory selector according to RFC 1436) cannot yet rendered
-using @samp{file:}.
-
@node About pages, Customization, Local files, Top
@chapter About pages
@node About pages, Customization, Local files, Top
@chapter About pages