1. James Mitchell
  2. viz

Commits

James Mitchell  committed 4a3227b

fixing some bugs in last, and making Orb a suggested package, to suppress
errors reported by MD. JDM

  • Participants
  • Parent commits a4410db
  • Branches default

Comments (0)

Files changed (3)

File PackageInfo.g

View file
 Dependencies := rec(
  GAP := ">=4.5",
  NeededOtherPackages := [["GAPDoc", ">=1.4"]],
- SuggestedOtherPackages := [["citrus", ">=0.9"] ],
+ SuggestedOtherPackages := [["orb", "4.5"] ],
  ExternalConditions := [],
 ),
 
 TestFile := "test/test.g",
 
 Keywords := ["visualisation"]
-));
+));

File gap/splash.gd

View file
 ## as default.
 #VizViewers := ["xpdf","evince", "okular", "gv"];
 
+if not IsBound(VizViewers) then 
+  if ARCH_IS_MAC_OS_X( ) then
+    BindGlobal("VizViewers", ["xpdf","open","evince", "okular", "gv"]);
+  elif ARCH_IS_UNIX( ) then
+    BindGlobal("VizViewers", ["xpdf","xdg-open","evince", "okular", "gv"]);
+  elif ARCH_IS_WINDOWS( ) then
+    BindGlobal("VizViewers", ["xpdf","evince", "okular", "gv"]);
+  fi;
+fi;
+
 if First(VizViewers, v -> Filename(DirectoriesSystemPrograms(),v) <> fail)= fail then
     Info(InfoWarning,1,"No pdf viewer from the list ", VizViewers, " is installed, thus there will be no output of any image\n");
   fi;

File gap/splash.gi

View file
 # the input is
 # * a record of options (may not be present) and
 # * a string (dot) or a function that applied to the ramaining argument produces a dot string
-
-if not IsBound(Splash) then 
+if not IsBound(VizViewers) then 
   if ARCH_IS_MAC_OS_X( ) then
     BindGlobal("VizViewers", ["xpdf","open","evince", "okular", "gv"]);
   elif ARCH_IS_UNIX( ) then
   elif ARCH_IS_WINDOWS( ) then
     BindGlobal("VizViewers", ["xpdf","evince", "okular", "gv"]);
   fi;
+fi;
 
+if not IsBound(Splash) then 
   BindGlobal("Splash",
   function(arg)
     local opt, dotstring, f, s, path, dir, tdir, file, viewer, tikz, filetype, i,