|
|
e3a4939 |
--- lib/helpdef.gi.orig 2016-03-19 16:17:51.000000000 -0600
|
|
|
e3a4939 |
+++ lib/helpdef.gi 2016-04-02 07:37:36.538132158 -0600
|
|
|
e3a4939 |
@@ -269,6 +269,11 @@ HELP_BOOK_HANDLER.default.ReadSix := fun
|
|
Jerry James |
f93ce6d |
res.pdffile := ShallowCopy(fname);
|
|
Jerry James |
f93ce6d |
Add(res.formats, "pdf");
|
|
Jerry James |
f93ce6d |
fi;
|
|
Jerry James |
f93ce6d |
+ fname{[Length(fname)-5..Length(fname)]} := "dvi.gz";
|
|
Jerry James |
f93ce6d |
+ if IsExistingFile( fname ) = true then
|
|
Jerry James |
f93ce6d |
+ res.dvifile := ShallowCopy(fname);
|
|
Jerry James |
f93ce6d |
+ Add(res.formats, "dvi");
|
|
Jerry James |
f93ce6d |
+ fi;
|
|
Jerry James |
f93ce6d |
fi;
|
|
Jerry James |
f93ce6d |
res.directories := Directory(fname{[1..Length(fname)-10]});
|
|
Jerry James |
f93ce6d |
return res;
|
|
|
e3a4939 |
--- lib/helpview.gi.orig 2016-03-19 16:17:51.000000000 -0600
|
|
|
e3a4939 |
+++ lib/helpview.gi 2016-04-02 07:37:36.540131995 -0600
|
|
|
e3a4939 |
@@ -429,6 +429,27 @@ show := function(file)
|
|
|
574c352 |
end
|
|
|
574c352 |
);
|
|
|
574c352 |
|
|
|
574c352 |
+# View HTML, DVI, or PDF files with xdg-open, which opens documents with the
|
|
|
574c352 |
+# user's preferred application.
|
|
|
574c352 |
+HELP_VIEWER_INFO.xdghtml := rec(
|
|
|
574c352 |
+type := "url",
|
|
|
574c352 |
+show := function(url)
|
|
|
574c352 |
+ Exec(Concatenation("xdg-open \"", url, "\""));
|
|
|
574c352 |
+end
|
|
|
574c352 |
+);
|
|
|
574c352 |
+HELP_VIEWER_INFO.xdgdvi := rec(
|
|
|
574c352 |
+type := "dvi",
|
|
|
574c352 |
+show := function(file)
|
|
|
574c352 |
+ Exec(Concatenation("xdg-open \"", file, "\""));
|
|
|
574c352 |
+end
|
|
|
574c352 |
+);
|
|
|
574c352 |
+HELP_VIEWER_INFO.xdgpdf := rec(
|
|
|
574c352 |
+type := "pdf",
|
|
|
574c352 |
+show := function(file)
|
|
|
574c352 |
+ Exec(Concatenation("xdg-open \"", file, "\""));
|
|
|
574c352 |
+end
|
|
|
574c352 |
+);
|
|
|
574c352 |
+
|
|
|
574c352 |
#############################################################################
|
|
|
574c352 |
##
|
|
|
574c352 |
#F SetHelpViewer(<viewer>): Set the viewer used for help
|