sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Treeve Jelbert (0ed2281df34456685190c1e8c34678dc3b4995a7)
- From: Treeve Jelbert <scm AT mail.sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (0ed2281df34456685190c1e8c34678dc3b4995a7)
- Date: Mon, 3 Jul 2006 02:53:00 -0500
GIT changes to master grimoire by Treeve Jelbert <treeve AT scarlet.be>:
dev/null |binary
printer/gv/BUILD | 12
printer/gv/DETAILS | 12
printer/gv/HISTORY | 6
printer/gv/asa-0000.gv-3.5.8.patch | 81 --
printer/gv/gv-3.5.8-debian.diff | 1085 ---------------------------------
printer/gv/gv-3.5.8.tar.gz.sig | 0
printer/gv/gv.man | 1214
-------------------------------------
8 files changed, 11 insertions(+), 2399 deletions(-)
New commits:
commit 0ed2281df34456685190c1e8c34678dc3b4995a7
Author: Treeve Jelbert <treeve AT scarlet.be>
Commit: Treeve Jelbert <treeve AT scarlet.be>
gv-3.6.1
diff --git a/printer/gv/BUILD b/printer/gv/BUILD
deleted file mode 100755
index b76d9ae..0000000
--- a/printer/gv/BUILD
+++ /dev/null
@@ -1,12 +0,0 @@
-cp $SCRIPT_DIRECTORY/gv.man doc
-cp $SCRIPT_DIRECTORY/gv.man source
-
-# I'm not sure why this is here -- Jason
-# perl -i -pe 's/ComplexProgramTarget/ComplexProgramTargetNoMan/'
source/Imakefile &&
-
-xmkmf &&
-cd source &&
-./inc_2lit &&
-cd - &&
-make Makefiles &&
-make
diff --git a/printer/gv/DETAILS b/printer/gv/DETAILS
index c746363..dfc6314 100755
--- a/printer/gv/DETAILS
+++ b/printer/gv/DETAILS
@@ -1,15 +1,13 @@
SPELL=gv
- VERSION=3.5.8
+ VERSION=3.6.1
+
SOURCE_HASH=sha512:f4a781802b15b1c320ba225edf32a87c8f012df0bfeff3e490955902b78e3ad171867583f613878b6303f622ec1cb69ddd23ea127b963328c6ddb0b37ecc57ae
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
- SOURCE_URL[0]=ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/$SOURCE
- SOURCE_URL[1]=http://bsd.tucows.stop.hu/files/$SOURCE
- WEB_SITE=http://wino.physik.uni-mainz.de/~plass/gv
+ SOURCE_URL[0]=$GNU_URL/gv/$SOURCE
+ WEB_SITE=http://www.gnu.org/software/gv
LICENSE[0]=GPL
- BUILD_API=2
- SOURCE_GPG="gurus.gpg:${SOURCE}.sig"
+# SOURCE_GPG="gurus.gpg:${SOURCE}.sig"
ENTERED=20020415
- UPDATED=20040812
KEYWORDS="pdf postscript printer"
SHORT="gv is a PDF and PostScript viewer program"
cat << EOF
diff --git a/printer/gv/HISTORY b/printer/gv/HISTORY
index 4dbdbdf..4401e2b 100644
--- a/printer/gv/HISTORY
+++ b/printer/gv/HISTORY
@@ -1,3 +1,9 @@
+2006-07-03 Treeve Jelbert <treeve01 AT pi.be>
+ * DETAILS: version 3.6.1
+ change WEBSITE and URL to gnu
+ * BUILD, gv-3.5.8-debian.diff, gv.man, asa-0000.gv-3.5.8.patch:
+ delete obsolete files
+
2006-05-09 George Sherwood <george AT beernabeer.com>
* gv-3.5.8.tar.gz.sig: Added file. Bug 11791.
diff --git a/printer/gv/asa-0000.gv-3.5.8.patch
b/printer/gv/asa-0000.gv-3.5.8.patch
deleted file mode 100644
index 4be1611..0000000
--- a/printer/gv/asa-0000.gv-3.5.8.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-diff -ur gv-3.5.8.orig/source/file.c gv-3.5.8/source/file.c
---- gv-3.5.8.orig/source/file.c 1997-06-07 00:00:00.000000000 +0200
-+++ gv-3.5.8/source/file.c 2002-09-26 23:56:00.000000000 +0200
-@@ -285,6 +285,22 @@
- }
-
- /*############################################################*/
-+/* file_nameIsDangerous */
-+/*############################################################*/
-+
-+char *file_charsAllowedInName = "+,-./:=@\\^_";
-+
-+int
-+file_nameIsDangerous(fn)
-+ char *fn;
-+{
-+ for (; *fn; fn++)
-+ if (!isalnum(*fn) && !strchr(file_charsAllowedInName, *fn))
-+ return(1);
-+ return(0);
-+}
-+
-+/*############################################################*/
- /* file_pdfname2psname */
- /* If the file ends in .pdf, change this to .ps.*/
- /* Return pointer to temp copy if changed, else to input string. */
-diff -ur gv-3.5.8.orig/source/file.h gv-3.5.8/source/file.h
---- gv-3.5.8.orig/source/file.h 1997-04-26 00:00:00.000000000 +0200
-+++ gv-3.5.8/source/file.h 2002-09-26 23:28:38.000000000 +0200
-@@ -70,6 +70,14 @@
- #endif
- );
-
-+extern char *file_charsAllowedInName;
-+
-+extern int file_nameIsDangerous (
-+#if NeedFunctionPrototypes
-+ char *
-+#endif
-+);
-+
- extern char* file_pdfname2psname (
- #if NeedFunctionPrototypes
- char * /* name */
-diff -ur gv-3.5.8.orig/source/ps.c gv-3.5.8/source/ps.c
---- gv-3.5.8.orig/source/ps.c 1997-06-07 00:00:00.000000000 +0200
-+++ gv-3.5.8/source/ps.c 2002-09-27 00:29:35.000000000 +0200
-@@ -420,6 +420,16 @@
- char cmd[512];
- char s[512];
- filename_unc=file_getTmpFilename(NULL,filename_raw);
-+ if (file_nameIsDangerous(filename))
-+ {
-+ INFMESSAGE(the filename is dangerous)
-+ sprintf(s, "The filename \"%s\" is dangerous: only alphanumeric "
-+ "characters and \"%s\" are allowed.\n",
-+ filename, file_charsAllowedInName);
-+ NotePopupShowMessage(s);
-+ ENDMESSAGE(psscan)
-+ return(NULL);
-+ }
- sprintf(cmd,cmd_uncompress,filename,filename_unc);
- INFMESSAGE(is compressed)
- INFSMESSAGE(uncompress command,cmd)
-@@ -491,6 +501,16 @@
- char cmd[512];
- char s[512];
- filename_dsc=file_getTmpFilename(NULL,filename_raw);
-+ if (file_nameIsDangerous(filename))
-+ {
-+ INFMESSAGE(the filename is dangerous)
-+ sprintf(s, "The filename \"%s\" is dangerous: only alphanumeric "
-+ "characters and \"%s\" are allowed.\n",
-+ filename, file_charsAllowedInName);
-+ NotePopupShowMessage(s);
-+ ENDMESSAGE(psscan)
-+ return(NULL);
-+ }
- sprintf(cmd,cmd_scan_pdf,filename,filename_dsc);
- INFMESSAGE(is PDF)
- INFSMESSAGE(scan command,cmd)
diff --git a/printer/gv/gv-3.5.8-debian.diff b/printer/gv/gv-3.5.8-debian.diff
deleted file mode 100644
index 61b7254..0000000
--- a/printer/gv/gv-3.5.8-debian.diff
+++ /dev/null
@@ -1,1085 +0,0 @@
---- gv-3.5.8.orig/doc/gv-1.html
-+++ gv-3.5.8/doc/gv-1.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Synopsis </TITLE>
---- gv-3.5.8.orig/doc/gv-10.html
-+++ gv-3.5.8/doc/gv-10.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Copyright </TITLE>
---- gv-3.5.8.orig/doc/gv-11.html
-+++ gv-3.5.8/doc/gv-11.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Suggestions and bug reports </TITLE>
-@@ -10,7 +11,7 @@
- <H2><A NAME="Suggestions_and_bug_reports"></A> <A NAME="s11">11.
Suggestions and bug reports </A></H2>
-
- <P>Please send suggestions or bug reports to
--<A
HREF="mailto:plass AT thep.physik.uni-mainz.de";>plass AT thep.physik.uni-mainz.de</A>.
-+<A HREF="mailto:ckesselh AT debian.org";>ckesselh AT debian.org</A>.
- </P>
-
- <HR>
---- gv-3.5.8.orig/doc/gv-12.html
-+++ gv-3.5.8/doc/gv-12.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Acknowledgements </TITLE>
---- gv-3.5.8.orig/doc/gv-13.html
-+++ gv-3.5.8/doc/gv-13.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: References </TITLE>
---- gv-3.5.8.orig/doc/gv-2.html
-+++ gv-3.5.8/doc/gv-2.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Description </TITLE>
---- gv-3.5.8.orig/doc/gv-3.html
-+++ gv-3.5.8/doc/gv-3.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Options </TITLE>
---- gv-3.5.8.orig/doc/gv-4.html
-+++ gv-3.5.8/doc/gv-4.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Resources </TITLE>
-@@ -328,13 +329,13 @@
- GV.gsArguments:
- GV.uncompressCommand: gzip -d -c %s > %s
- GV.printCommand: lpr
--GV.scratchDir: ~/
-+GV.scratchDir: /tmp/
- GV.defaultSaveDir: ~/
- GV.fallbackPageMedia: a4
- GV.useBackingPixmap: True
- GV*dirs: Home\n\
- Tmp\n\
-- /usr/doc\n\
-+ /usr/share/doc\n\
- /usr/local/doc
- GV*filter: no .*
- GV*filters: None\n\
---- gv-3.5.8.orig/doc/gv-5.html
-+++ gv-3.5.8/doc/gv-5.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Mouse and key bindings </TITLE>
---- gv-3.5.8.orig/doc/gv-6.html
-+++ gv-3.5.8/doc/gv-6.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Comments about the user interface </TITLE>
---- gv-3.5.8.orig/doc/gv-8.html
-+++ gv-3.5.8/doc/gv-8.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Availability </TITLE>
-@@ -14,8 +15,6 @@
- <DL>
- <DT><B>World Wide Web:</B><DD><P>
- <A
HREF="http://wwwthep.physik.uni-mainz.de/~plass/gv/">http://wwwthep.physik.uni-mainz.de/~plass/gv/</A></P>
--<DT><B>Anonymous ftp:</B><DD><P>
--<A
HREF="ftp://thep.physik.uni-mainz.de/pub/gv/">ftp://thep.physik.uni-mainz.de/pub/gv/</A></P>
- </DL>
-
- </P>
---- gv-3.5.8.orig/doc/gv-9.html
-+++ gv-3.5.8/doc/gv-9.html
-@@ -1,3 +1,4 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997: Authors </TITLE>
---- gv-3.5.8.orig/doc/gv.html
-+++ gv-3.5.8/doc/gv.html
-@@ -1,20 +1,4 @@
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <HTML>
- <HEAD>
- <TITLE> gv 3.5, June 1997</TITLE>
---- gv-3.5.8.orig/doc/gv.man
-+++ gv-3.5.8/doc/gv.man
-@@ -238,7 +238,7 @@
- \fBa system specific resource file\fP.
- The name of this file is as described by the \*QXFILESEARCHPATH\*U
- environment variable, or, if this variable is not defined,
--implementation dependant. In most cases it is
-+implementation dependent. In most cases it is
- \*Q/usr/X11/lib/X11/app-defaults/GV\*U.
- Administrators may want to modify this file in order
- to set up gv according to the local needs of their system.
-@@ -538,7 +538,7 @@
- .nr bi 1
- .Pp
- Defines the paper-size to be used when automatic orientation
--detetction fails. Valid values are
-+detection fails. Valid values are
- \*Qportrait\*U, \*Qlandscape\*U,\*Qseascape\*U
- and \*Qupside-down\*U.
- .IP "medias"
-@@ -552,7 +552,7 @@
- .nr bi 1
- .Pp
- Sets the paper size.
--Allowd values are as given in the above list of paper-sizes.
-+Allowed values are as given in the above list of paper-sizes.
- Specifying
- \*Qautomatic\*U causes gv to attempt
- to derive the correct paper-size from document structuring
-@@ -561,7 +561,7 @@
- .nr bi 1
- .Pp
- Defines the paper-size to be used when automatic paper-size
--detetction fails. Valid values are as given in the above
-+detection fails. Valid values are as given in the above
- list of paper-sizes.
- .if \n(ll>1 .RE
- .nr ll -1
-@@ -694,13 +694,13 @@
- GV.gsArguments:
- GV.uncompressCommand: gzip -d -c %s > %s
- GV.printCommand: lpr
--GV.scratchDir: ~/
-+GV.scratchDir: /tmp/
- GV.defaultSaveDir: ~/
- GV.fallbackPageMedia: a4
- GV.useBackingPixmap: True
- GV*dirs: Home\\n\\
- Tmp\\n\\
-- /usr/doc\\n\\
-+ /usr/share/doc\\n\\
- /usr/local/doc
- GV*filter: no .*
- GV*filters: None\\n\\
-@@ -859,7 +859,7 @@
- Display the next page.
- .if \n(ll>1 .RE
- .nr ll -1
--.IP "\fBMouse bindings in the ">>" and "<<" button windows\fP"
-+.IP "\fBMouse bindings in the "">>"" and ""<<"" button windows\fP"
- .nr bi 1
- .Pp
- The ">>" and "<<" buttons are used to move
-@@ -1172,10 +1172,6 @@
- .nr bi 1
- .Pp
- http://wwwthep.physik.uni-mainz.de/~plass/gv/
--.IP "Anonymous ftp:"
--.nr bi 1
--.Pp
--ftp://thep.physik.uni-mainz.de/pub/gv/
- .if \n(ll>1 .RE
- .nr ll -1
-
-@@ -1207,7 +1203,7 @@
- .SH Suggestions and bug reports
-
- .Pp
--Please send suggestions or bug reports to plass AT thep.physik.uni-mainz.de.
-+Please send suggestions or bug reports to ckesselh AT debian.org.
- .Pp
- .Pp
- .Pp
---- gv-3.5.8.orig/doc/source/gv.doc
-+++ gv-3.5.8/doc/source/gv.doc
-@@ -757,7 +757,6 @@
- obtained from the following sources:
- <descrip>
- <tag/World Wide
Web:/FTP_ANCHOR(http://wwwthep.physik.uni-mainz.de/˜plass/gv/,http://wwwthep.physik.uni-mainz.de/˜plass/gv/)
--<tag/Anonymous
ftp:/FTP_ANCHOR(ftp://thep.physik.uni-mainz.de/pub/gv/,ftp://thep.physik.uni-mainz.de/pub/gv/)
- </descrip>
- <!--
- #####################################################
---- gv-3.5.8.orig/README
-+++ gv-3.5.8/README
-@@ -19,8 +19,6 @@
-
- The most recent version may be obtained from gv's homepage at
- http://wwwthep.physik.uni-mainz.de/~plass/gv/
--or via anonymous ftp from
-- ftp://thep.physik.uni-mainz.de/pub/gv/
-
- Please send suggestions or bug reports to plass AT thep.physik.uni-mainz.de.
-
---- gv-3.5.8.orig/config.Unix
-+++ gv-3.5.8/config.Unix
-@@ -32,10 +32,10 @@
- XCOMM --------------------------------------------------------------------
- XCOMM Destination directories.
- XCOMM --------------------------------------------------------------------
-- GV_BINDIR = /usr/local/bin/
-- GV_DOCDIR = /usr/local/doc/gv/
-- GV_LIBDIR = /usr/local/lib/gv/
-- GV_MANDIR = /usr/local/man/man1/
-+ GV_BINDIR = /usr/X11R6/bin/
-+ GV_DOCDIR = /usr/share/doc/gv/
-+ GV_LIBDIR = /usr/X11R6/lib/X11/gv/
-+ GV_MANDIR = /usr/X11R6/man/man1/
-
- XCOMM --------------------------------------------------------------------
- XCOMM --- The name of the Xaw3d library.
-@@ -194,7 +194,7 @@
- XCOMM Your temporary directory.
- XCOMM Must be terminated with a trailing '/'.
- XCOMM --------------------------------------------------------------------
-- SCRATCH_DIR = ~/
-+ SCRATCH_DIR = /tmp/
-
- XCOMM --------------------------------------------------------------------
- XCOMM The default directory for saving.
---- gv-3.5.8.orig/source/Imakefile
-+++ gv-3.5.8/source/Imakefile
-@@ -291,7 +291,7 @@
- @echo "GV.useBackingPixmap: $(USE_BACKING_PIXMAP)" >>
$(GV_MAKE_RES_DAT)
- @echo "GV*dirs: Home\n\\" >>
$(GV_MAKE_RES_DAT)
- @echo " Tmp\n\\" >>
$(GV_MAKE_RES_DAT)
-- @echo " /usr/doc\n\\" >>
$(GV_MAKE_RES_DAT)
-+ @echo " /usr/share/doc\n\\" >>
$(GV_MAKE_RES_DAT)
- @echo " /usr/local/doc" >>
$(GV_MAKE_RES_DAT)
- @echo "GV*filter: no .*" >>
$(GV_MAKE_RES_DAT)
- @echo "GV*filters: None\n\\" >>
$(GV_MAKE_RES_DAT)
-@@ -311,8 +311,8 @@
- @echo "!########## gv_intern_res.dat (generated by makefile)" >>
$(GV_INTERN_RES_DAT)
- @echo "" >>
$(GV_INTERN_RES_DAT)
- @echo "GV.gsInterpreter: gs" >> $(GV_INTERN_RES_DAT)
-- @echo "GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s
-sDSCname=%s pdf2dsc.ps -c quit" >> $(GV_INTERN_RES_DAT)
-- @echo "GV.gsCmdConvPDF: gs -dNODISPLAY -dQUIET $(PS_LEVEL) -dNOPAUSE
-sPSFile=%s %s -c quit" >> $(GV_INTERN_RES_DAT)
-+ @echo "GV.gsCmdScanPDF: pdf2dsc %pdf %dsc" >> $(GV_INTERN_RES_DAT)
-+ @echo "GV.gsCmdConvPDF: pdf2ps $(PS_LEVEL) %pdf %ps" >>
$(GV_INTERN_RES_DAT)
- @echo "GV.gsX11Device: -sDEVICE=x11" >> $(GV_INTERN_RES_DAT)
- @echo "GV.gsX11AlphaDevice: -dNOPLATFONTS -sDEVICE=x11alpha" >>
$(GV_INTERN_RES_DAT)
- @echo "GV.gsSafer: True" >> $(GV_INTERN_RES_DAT)
---- gv-3.5.8.orig/source/Vlist.c
-+++ gv-3.5.8/source/Vlist.c
-@@ -623,6 +623,8 @@
- if (y < 0) entry = -1;
- else entry = (vw->vlist.entries*y)/(int)vw->label.label_height;
- }
-+ if (entry >= vw->vlist.entries)
-+ entry = vw->vlist.entries-1;
- IMESSAGE(entry)
- ENDMESSAGE(VlistEntryOfPosition)
- return(entry);
---- gv-3.5.8.orig/source/actions.c
-+++ gv-3.5.8/source/actions.c
-@@ -94,7 +94,7 @@
- }
- if (new_width && new_height) {
- if (width != new_width || height != new_height) {
-- misc_setPageMarker(0,2); /* bring selected in sight */
-+ misc_setPageMarker(0,2,event,True); /* bring selected in sight */
- width = new_width;
- height=new_height;
- }
-@@ -253,7 +253,7 @@
- }
- }
- h = doc_putPageInRange(doc,h);
-- misc_setPageMarker(h,1);
-+ misc_setPageMarker(h,1,event,False);
- }
-
- nx = x = (int)aaa->core.x;
-@@ -428,7 +428,7 @@
- if (!scrolling && toc_text) {
- entry = VlistEntryOfPosition(newtoc,(int)event->xbutton.y);
- if (entry >=0 && entry < doc->numpages) {
-- misc_setPageMarker(entry,0);
-+ misc_setPageMarker(entry,0,event,True);
- show_page(entry,NULL);
- }
- }
---- gv-3.5.8.orig/source/callbacks.c
-+++ gv-3.5.8/source/callbacks.c
-@@ -870,7 +870,7 @@
- char *s;
-
- BEGINMESSAGE(cb_page)
-- if (gv_psfile && client_data) {
-+ if (gv_filename && client_data) {
- s = (char*)client_data;
- if (*s=='-' || *s=='+') {
- k = 1;
-@@ -894,7 +894,7 @@
- np = np + ((k==1) ? cp : 0);
- np=doc_putPageInRange(doc,np);
- IIMESSAGE(np,current_page)
-- misc_setPageMarker(np,0);
-+ misc_setPageMarker(np,0,NULL,True);
- if (np != current_page) show_page(np,NULL);
- } else {
- if (k==1 && np > 0) show_page(np,NULL);
---- gv-3.5.8.orig/source/config.h
-+++ gv-3.5.8/source/config.h
-@@ -40,7 +40,7 @@
- ----------------------------------------------------------
- */
-
--/* #define GV_RESTART_IF_BUSY */
-+/*#define GV_RESTART_IF_BUSY*/
-
- /*
- ##########################################################
---- gv-3.5.8.orig/source/descrip.mms
-+++ gv-3.5.8/source/descrip.mms
-@@ -262,7 +262,7 @@
- @ WRITE_ file ""
- @ WRITE_ file "GV.gsInterpreter: gs"
- @ WRITE_ file "GV.gsCmdScanPDF: gs ""-dNODISPLAY"" ""-dQUIET""
""-sPDFname""=%s ""-sDSCname""=%s pdf2dsc.ps -c quit"
-- @ WRITE_ file "GV.gsCmdConvPDF: gs ""-dNODISPLAY"" ""-dQUIET""
$(PS_LEVEL) ""-dNOPAUSE"" ""-sPSFile""=%s %s -c quit"
-+ @ WRITE_ file "GV.gsCmdConvPDF: gs ""-dNODISPLAY"" ""-dQUIET""
$(PS_LEVEL) ""-dNOPAUSE"" ""-sPSFile""=%s %s -c quit"
- @ WRITE_ file "GV.gsX11Device: ""-sDEVICE=x11"""
- @ WRITE_ file "GV.gsX11AlphaDevice:""-dNOPLATFONTS"" ""-sDEVICE=x11alpha"""
- @ WRITE_ file "GV.gsSafer: True"
---- gv-3.5.8.orig/source/doc_misc.c
-+++ gv-3.5.8/source/doc_misc.c
-@@ -216,8 +216,8 @@
- (dm->width+1==dbb[URX] && dm->height+1==dbb[URY])) media=dm;
- for (j=0; gv_medias[j] && !media ; j++) {
- dm = gv_medias[j];
-- if ((dm->width==dbb[URX] && dm->height==dbb[URY]) ||
-- (dm->width+1==dbb[URX] && dm->height+1==dbb[URY])) media=dm;
-+ if (dm->used==1 && ((dm->width==dbb[URX] && dm->height==dbb[URY]) ||
-+ (dm->width+1==dbb[URX] && dm->height+1==dbb[URY]))) media=dm;
- }
- if (media) found=1;
- }
---- gv-3.5.8.orig/source/file.c
-+++ gv-3.5.8/source/file.c
-@@ -145,6 +145,25 @@
- }
-
- /*############################################################*/
-+/* file_assureDirectory */
-+/*############################################################*/
-+
-+void
-+file_assureDirectory(to,from)
-+ char *to;
-+ char *from;
-+{
-+ int len;
-+ BEGINMESSAGE(file_assureDirectory)
-+ strcpy(to,from);
-+# ifndef VMS
-+ len = strlen(to);
-+ if (to[len-1] != '/') { to[len] = '/'; to[len+1] = '\0'; }
-+# endif
-+ ENDMESSAGE(file_assureDirectory)
-+}
-+
-+/*############################################################*/
- /* file_getTmpFilename */
- /* provide some temporary file name */
- /*############################################################*/
-@@ -164,11 +183,13 @@
-
- BEGINMESSAGE(file_getTmpFilename)
-
-- if (!baseDirectory) baseDirectory = app_res.scratch_dir;
-- strcpy(tmpDirBuf,baseDirectory);
-- pos = file_locateFilename(tmpDirBuf);
-- if (pos) { ++pos; *pos='\0'; }
-- else strcpy(tmpDirBuf,app_res.scratch_dir);
-+ pos = NULL;
-+ if (baseDirectory) {
-+ strcpy(tmpDirBuf,baseDirectory);
-+ pos = file_locateFilename(tmpDirBuf);
-+ }
-+ if (pos) *pos='\0';
-+ else file_assureDirectory(tmpDirBuf,app_res.scratch_dir);
-
- if (!baseFilename) baseFilename= ".";
- strcpy(tmpNameBuf,baseFilename);
---- gv-3.5.8.orig/source/gv_misc_res.dat
-+++ gv-3.5.8/source/gv_misc_res.dat
-@@ -11,7 +11,7 @@
-
- !##### Version (do not modify this resource)
-
--GV.version: gv 3.5.8
-+GV.version: gv 3.5.8 (debian)
-
- !##### Background, Foreground
-
-@@ -525,9 +525,9 @@
- <LeaveWindow>: GV_Toc(unhighlight) \n\
- <Btn1Down>: GV_Toc(scrollon) \n\
- <Btn1Motion>: GV_Toc(scroll) \n\
-- <Btn1Up>: GV_Toc(select) \
-+ <Btn1Up>: GV_Toc(highlight) \
- GV_Toc(scrolloff) \
-- GV_Toc(highlight) \n\
-+ GV_Toc(select) \n\
- <Btn2Down>: GV_Toc(toggleon) \n\
- <Btn2Motion>: GV_Toc(toggleextend) \
- GV_Toc(highlight) \n\
---- gv-3.5.8.orig/source/gv_user_res.dat
-+++ gv-3.5.8/source/gv_user_res.dat
-@@ -8,7 +8,7 @@
- GV.fallbackOrientation: portrait
- GV.swapLandscape: False
- GV.autoCenter: True
--GV.antialias: False
-+GV.antialias: True
- GV.respectDSC: True
- GV.ignoreEOF: True
- GV.confirmPrint: True
---- gv-3.5.8.orig/source/main.c
-+++ gv-3.5.8/source/main.c
-@@ -985,9 +985,9 @@
- main_setInternResource(db,&gv_gs_x11_device,"gsX11Device");
- main_setInternResource(db,&gv_gs_x11_alpha_device,"gsX11AlphaDevice");
- main_setInternResource(db,&gv_gs_arguments,"gsArguments");
-- s = resource_getResource(db,gv_class,gv_class,"gsSafer",NULL);
-+ s = resource_getResource(db,gv_class,gv_name,"gsSafer",NULL);
- if (!strcasecmp(s,"true")) gv_gs_safer = 1; else gv_gs_safer = 0;
-- s = resource_getResource(db,gv_class,gv_class,"gsQuiet",NULL);
-+ s = resource_getResource(db,gv_class,gv_name,"gsQuiet",NULL);
- if (!strcasecmp(s,"true")) gv_gs_quiet = 1; else gv_gs_quiet = 0;
- ENDMESSAGE(main_setGhostscriptResources)
- }
---- gv-3.5.8.orig/source/main_resources.h
-+++ gv-3.5.8/source/main_resources.h
-@@ -285,10 +285,10 @@
- { "-spartan" , ".style" , XrmoptionNoArg
, "gv_spartan.dat"},
- { "-pixmap" , ".useBackingPixmap" , XrmoptionNoArg
, "True" },
- { "-nopixmap" , ".useBackingPixmap" ,
XrmoptionNoArg , "False" },
-- { "-quiet" , ".quiet" , XrmoptionNoArg
, "True" },
-- { "-noquiet" , ".quiet" , XrmoptionNoArg
, "False" },
-- { "-safer" , ".safer" , XrmoptionNoArg
, "True" },
-- { "-nosafer" , ".safer" , XrmoptionNoArg
, "False" },
-+ { "-quiet" , ".gsQuiet" , XrmoptionNoArg
, "True" },
-+ { "-noquiet" , ".gsQuiet" , XrmoptionNoArg
, "False" },
-+ { "-safer" , ".gsSafer" , XrmoptionNoArg
, "True" },
-+ { "-nosafer" , ".gsSafer" , XrmoptionNoArg
, "False" },
- { "-arguments" , ".arguments" ,
XrmoptionSepArg , NULL },
- { "-h" , ".help" ,
XrmoptionNoArg , "?" },
- { "-?" , ".help" ,
XrmoptionNoArg , "?" },
---- gv-3.5.8.orig/source/misc.c
-+++ gv-3.5.8/source/misc.c
-@@ -301,9 +301,11 @@
- /*############################################################*/
-
- void
--misc_setPageMarker(entry,kind)
-+misc_setPageMarker(entry,kind,event,check_toc)
- int entry;
- int kind; /* 0 = selected, 1 = highlighted , 2 = bring selected in sight*/
-+ XEvent *event;
-+ Boolean check_toc;
- {
- int x,y,yl,yu,ny=99999;
- Boolean b = False;
-@@ -330,9 +332,12 @@
- ny = (int)newtocClip->core.height - ((int)newtoc->core.y + yl + 14);
- if (y>ny) b = True;
- }
-- if (b) {
-+ if (event && b) {
- INFIMESSAGE(jumping to,ny)
- ClipWidgetSetCoordinates(newtocClip,x,ny);
-+ entry = VlistEntryOfPosition(newtoc,(int)event->xbutton.y+(y-ny));
-+ if (entry != VlistHighlighted(newtoc) && check_toc)
-+ VlistChangeHighlighted(newtoc,entry,XawVlistSet);
- }
- }
- }
-@@ -689,7 +694,7 @@
- }
- if (toc_text) {
- INFMESSAGE(marking current_page as current)
-- misc_setPageMarker(current_page,0);
-+ misc_setPageMarker(current_page,0,NULL,True);
- }
- }
-
-@@ -1131,7 +1136,11 @@
- }
- s[i] = '\0';
- n=0;
-- XtSetArg(args[n], XtNvlist, s); n++;
-+ if ( (!gv_filename_old) ||
-+ (!olddoc) ||
-+ (strcmp(gv_filename_old, gv_filename)) ||
-+ (doc->numpages != olddoc->numpages) )
-+ XtSetArg(args[n], XtNvlist, s); n++;
- XtSetArg(args[n], XtNlabel, toc_text); n++;
- } else {
- s = NULL;
-@@ -1154,7 +1163,7 @@
- misc_setSensitive(w_printAllPages , show_printAllPages ,
(gv_psfile != NULL));
- misc_setSensitive(w_checkFile , show_checkFile ,
(gv_filename != NULL));
- misc_setSensitive(w_updateFile , show_updateFile ,
(gv_filename != NULL));
-- misc_setSensitive(w_showThisPage , show_showThisPage ,
(gv_filename != NULL));
-+ misc_setSensitive(w_showThisPage , show_showThisPage ,
(gv_psfile != NULL));
- misc_setSensitive(w_prevPage , show_prevPage ,
(toc_text != NULL));
- misc_setSensitive(w_nextPage , show_nextPage ,
(gv_filename != NULL));
- misc_setSensitive(w_toggleCurrentPage , show_toggleCurrentPage ,
(toc_text != NULL));
-@@ -1168,7 +1177,7 @@
- XtSetSensitive(saveAllEntry, (gv_psfile != NULL));
- XtSetSensitive(saveMarkedEntry, (toc_text != NULL));
- XtSetSensitive(nextEntry, (gv_filename != NULL));
-- XtSetSensitive(redisplayEntry, (gv_filename != NULL));
-+ XtSetSensitive(redisplayEntry, (gv_psfile != NULL));
- XtSetSensitive(prevEntry, (toc_text != NULL));
- XtSetSensitive(currentEntry, (toc_text != NULL));
- XtSetSensitive(oddEntry, (toc_text != NULL));
-@@ -1718,3 +1727,51 @@
- ENDMESSAGE(catch_Xerror)
- return 0;
- }
-+
-+/*############################################################*/
-+/* quote_filename */
-+/* Quotes special characters in filenames */
-+/* (taken from bash sources) */
-+/*############################################################*/
-+
-+char *
-+quote_filename (string)
-+ char *string;
-+{
-+ int c;
-+ char *result, *r, *s;
-+
-+ BEGINMESSAGE(quote_filename)
-+
-+ result = (char*) GV_XtMalloc((2 * strlen (string) + 1) * sizeof(char));
-+
-+ for (r = result, s = string; s && (c = *s); s++)
-+ {
-+ switch (c)
-+ {
-+ case ' ': case '\t': case '\n': /* IFS white space */
-+ case '\'': case '"': case '\\': /* quoting chars */
-+ case '|': case '&': case ';': /* shell metacharacters */
-+ case '(': case ')': case '<': case '>':
-+ case '!': case '{': case '}': /* reserved words */
-+ case '*': case '[': case '?': case ']': /* globbing chars */
-+ case '^':
-+ case '$': case '`': /* expansion chars */
-+ *r++ = '\\';
-+ *r++ = c;
-+ break;
-+ case '#': /* comment char */
-+ if (s == string)
-+ *r++ = '\\';
-+ /* FALLTHROUGH */
-+ default:
-+ *r++ = c;
-+ break;
-+ }
-+ }
-+ *r = '\0';
-+
-+ ENDMESSAGE(quote_filename)
-+
-+ return (result);
-+}
---- gv-3.5.8.orig/source/misc.h
-+++ gv-3.5.8/source/misc.h
-@@ -57,7 +57,9 @@
- extern void misc_setPageMarker (
- #if NeedFunctionPrototypes
- int, /* entry */
-- int /* kind */
-+ int, /* kind */
-+ XEvent*,
-+ Boolean
- #endif
- );
-
-@@ -115,6 +117,12 @@
- #endif
- );
-
-+extern char * quote_filename (
-+#if NeedFunctionPrototypes
-+ char*
-+#endif
-+);
-+
- #endif /* _GV_MISC_H_ */
-
-
---- gv-3.5.8.orig/source/miscmenu.c
-+++ gv-3.5.8/source/miscmenu.c
-@@ -60,7 +60,7 @@
-
- static MiscMenuEntryStruct miscmenu_entries[] = {
- { "update",cb_checkFile,(XtPointer)CHECK_FILE_DATE,2 },
-- { "redisplay",cb_redisplay,NULL,2 },
-+ { "redisplay",cb_redisplay,NULL,3 },
- { "toggle_current" , cb_setPageMark,
(XtPointer)(SPM_CURRENT|SPM_TOGGLE),1 },
- { "toggle_even" , cb_setPageMark, (XtPointer)(SPM_EVEN|SPM_TOGGLE),1 },
- { "toggle_odd" , cb_setPageMark, (XtPointer)(SPM_ODD|SPM_TOGGLE),1 },
-@@ -123,7 +123,7 @@
- if (nl) *nl='\0';
- name[0]='\0';
- if (*c == '#' || *c == '!') i=0;
-- else i=sscanf(c," %s ",name);
-+ else i=sscanf(c," %99s ",name);
- if (i==1) {
- for (j=0; miscmenu_entries[j].name; j++)
- if (!strcasecmp(miscmenu_entries[j].name,name)) {
---- gv-3.5.8.orig/source/options_fs.c
-+++ gv-3.5.8/source/options_fs.c
-@@ -105,7 +105,6 @@
- Widget w;
- XtPointer client_data, call_data;
- {
-- BEGINMESSAGE(options_fs_cb_apply)
- Arg args[5];
- Cardinal n;
- static Boolean s_scratch_dir = False;
---- gv-3.5.8.orig/source/paths.h
-+++ gv-3.5.8/source/paths.h
-@@ -34,9 +34,9 @@
- # define INC_XMU(aaa) <XMU_DIRECTORY/aaa>
- # define INC_XAW(aaa) <XAW_DIRECTORY/aaa>
- #else
--# define INC_X11(aaa) <X11/##aaa##>
--# define INC_XMU(aaa) <X11/Xmu/##aaa##>
--# define INC_XAW(aaa) <X11/Xaw3d/##aaa##>
-+# define INC_X11(aaa) <X11/aaa>
-+# define INC_XMU(aaa) <X11/Xmu/aaa>
-+# define INC_XAW(aaa) <X11/Xaw3d/aaa>
- #endif
-
- #endif /* _PATHS_H_ */
---- gv-3.5.8.orig/source/process.c
-+++ gv-3.5.8/source/process.c
-@@ -272,8 +272,7 @@
- pid = fork();
-
- if (pid == 0) { /* child */
-- int argc=0;
-- char *argv[20];
-+ char *argv[4];
- char *c;
-
- INFMESSAGE(child process)
-@@ -286,15 +285,10 @@
- */
- system(c);
- #else
-- while (isspace(*c)) c++;
-- while (*c) {
-- argv[argc++] = c;
-- while (*c && !isspace(*c)) c++;
-- if (*c) *c++ = '\0';
-- while (isspace(*c)) c++;
-- SMESSAGE(argv[argc-1])
-- }
-- argv[argc] = NULL;
-+ argv[0] = "sh";
-+ argv[1] = "-c";
-+ argv[2] = c;
-+ argv[3] = NULL;
-
- INFMESSAGE(spawning conversion process)
- /*
---- gv-3.5.8.orig/source/ps.c
-+++ gv-3.5.8/source/ps.c
-@@ -93,10 +93,35 @@
- #define memset(a,b,c) bzero(a,c)
- #endif
-
-+/* We use this helper function for providing proper */
-+/* case and colon :-) insensitive DSC matching */
-+static int dsc_strncmp(s1, s2, n)
-+ char *s1;
-+ char *s2;
-+ size_t n;
-+{
-+ char *tmp;
-+
-+ if (strncasecmp(s1, s2, n) == 0)
-+ return 0;
-+ if (s2[n-1] == ':'){
-+ tmp = (char *) PS_malloc(n*sizeof(char));
-+ strncpy(tmp, s2, (n-1));
-+ tmp[n-1]=' ';
-+ if (strncasecmp(s1, tmp, n) == 0){
-+ PS_free(tmp);
-+ return 0;
-+ }
-+ PS_free(tmp);
-+ }
-+
-+ return 1;
-+}
-+
- /* length calculates string length at compile time */
- /* can only be used with character constants */
- #define length(a) (sizeof((a))-1)
--#define iscomment(a, b) (strncmp((a), (b), length((b))) == 0)
-+#define iscomment(a, b) (dsc_strncmp((a), (b), length((b))) == 0)
- #define DSCcomment(a) ((a)[0] == '%' && (a)[1] == '%')
-
- /* list of standard paper sizes from Adobe's PPD. */
-@@ -417,6 +417,7 @@
- struct document *retval = NULL;
- FILE *tmpfile = (FILE*)NULL;
- char *filename_unc;
-+ char *quoted_filename, *quoted_filename_unc;
- char cmd[512];
- char s[512];
- filename_unc=file_getTmpFilename(NULL,filename_raw);
-@@ -430,7 +431,11 @@
- ENDMESSAGE(psscan)
- return(NULL);
- }
-- sprintf(cmd,cmd_uncompress,filename,filename_unc);
-+ quoted_filename = quote_filename(filename);
-+ quoted_filename_unc = quote_filename(filename_unc);
-+ sprintf(cmd,cmd_uncompress,quoted_filename,quoted_filename_unc);
-+ GV_XtFree(quoted_filename);
-+ GV_XtFree(quoted_filename_unc);
- INFMESSAGE(is compressed)
- INFSMESSAGE(uncompress command,cmd)
- if (ps_system(cmd) || file_fileIsNotUseful(filename_unc)) {
-@@ -478,7 +508,7 @@
- doc = (struct document *) PS_malloc(sizeof(struct document));
- CHECK_MALLOCED(doc);
- memset(doc, 0, sizeof(struct document));
-- sscanf(line, "%*s %s", text);
-+ sscanf(line, "%*s %256s", text);
- /*###jp###*/
- /*doc->epsf = iscomment(text, "EPSF-");*/
- doc->epsf = iscomment(text, "EPSF");
-@@ -498,6 +498,9 @@
- struct document *retval = NULL;
- FILE *tmpfile = (FILE*)NULL;
- char *filename_dsc;
-+ char *quoted_filename, *quoted_filename_dsc;
-+ char *pdfpos;
-+ char *dscpos;
- char cmd[512];
- char s[512];
- filename_dsc=file_getTmpFilename(NULL,filename_raw);
-@@ -511,7 +514,29 @@
- ENDMESSAGE(psscan)
- return(NULL);
- }
-- sprintf(cmd,cmd_scan_pdf,filename,filename_dsc);
-+ quoted_filename = quote_filename(filename);
-+ quoted_filename_dsc = quote_filename(filename_dsc);
-+ if ((pdfpos = strstr(cmd_scan_pdf,"%pdf")) &&
-+ (dscpos = strstr(cmd_scan_pdf,"%dsc"))) {
-+ cmd[0] = '\0';
-+ if (pdfpos < dscpos) {
-+ strncat(cmd,cmd_scan_pdf,(pdfpos-cmd_scan_pdf));
-+ strcat(cmd,quoted_filename);
-+ strncat(cmd,pdfpos+4,(dscpos-pdfpos-4));
-+ strcat(cmd,quoted_filename_dsc);
-+ strcat(cmd,dscpos+4);
-+ } else {
-+ strncat(cmd,cmd_scan_pdf,(dscpos-cmd_scan_pdf));
-+ strcat(cmd,quoted_filename_dsc);
-+ strncat(cmd,dscpos+4,(pdfpos-dscpos-4));
-+ strcat(cmd,quoted_filename);
-+ strcat(cmd,pdfpos+4);
-+ }
-+ } else {
-+ sprintf(cmd,cmd_scan_pdf,quoted_filename,quoted_filename_dsc);
-+ }
-+ GV_XtFree(quoted_filename);
-+ GV_XtFree(quoted_filename_dsc);
- INFMESSAGE(is PDF)
- INFSMESSAGE(scan command,cmd)
- #ifdef VMS
-@@ -546,7 +601,7 @@
- } else if (doc->date == NULL && iscomment(line+2, "CreationDate:")) {
- doc->date = gettextline(line+length("%%CreationDate:"));
- } else if (bb_set == NONE && iscomment(line+2, "BoundingBox:")) {
-- sscanf(line+length("%%BoundingBox:"), "%s", text);
-+ sscanf(line+length("%%BoundingBox:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- bb_set = ATEND;
- } else {
-@@ -578,7 +633,7 @@
- }
- } else if (orientation_set == NONE &&
- iscomment(line+2, "Orientation:")) {
-- sscanf(line+length("%%Orientation:"), "%s", text);
-+ sscanf(line+length("%%Orientation:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- orientation_set = ATEND;
- } else if (strcmp(text, "Portrait") == 0) {
-@@ -589,7 +644,7 @@
- orientation_set = 1;
- }
- } else if (page_order_set == NONE && iscomment(line+2, "PageOrder:"))
{
-- sscanf(line+length("%%PageOrder:"), "%s", text);
-+ sscanf(line+length("%%PageOrder:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- page_order_set = ATEND;
- } else if (strcmp(text, "Ascend") == 0) {
-@@ -603,7 +658,7 @@
- page_order_set = 1;
- }
- } else if (pages_set == NONE && iscomment(line+2, "Pages:")) {
-- sscanf(line+length("%%Pages:"), "%s", text);
-+ sscanf(line+length("%%Pages:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- pages_set = ATEND;
- } else {
-@@ -823,7 +878,7 @@
- /* Do nothing */
- } else if (doc->default_page_orientation == NONE &&
- iscomment(line+2, "PageOrientation:")) {
-- sscanf(line+length("%%PageOrientation:"), "%s", text);
-+ sscanf(line+length("%%PageOrientation:"), "%256s", text);
- if (strcmp(text, "Portrait") == 0) {
- doc->default_page_orientation = PORTRAIT;
- } else if (strcmp(text, "Landscape") == 0) {
-@@ -945,7 +1000,7 @@
- /* Do nothing */
- } else if (doc->default_page_orientation == NONE &&
- iscomment(line+2, "PageOrientation:")) {
-- sscanf(line+length("%%PageOrientation:"), "%s", text);
-+ sscanf(line+length("%%PageOrientation:"), "%256s", text);
- if (strcmp(text, "Portrait") == 0) {
- doc->default_page_orientation = PORTRAIT;
- } else if (strcmp(text, "Landscape") == 0) {
-@@ -1082,7 +1137,7 @@
- /* Do nothing */
- } else if (doc->pages[doc->numpages].orientation == NONE &&
- iscomment(line+2, "PageOrientation:")) {
-- sscanf(line+length("%%PageOrientation:"), "%s", text);
-+ sscanf(line+length("%%PageOrientation:"), "%256s", text);
- if (strcmp(text, "Portrait") == 0) {
- doc->pages[doc->numpages].orientation = PORTRAIT;
- } else if (strcmp(text, "Landscape") == 0) {
-@@ -1114,7 +1169,7 @@
- PS_free(cp);
- } else if ((page_bb_set == NONE || page_bb_set == ATEND) &&
- iscomment(line+2, "PageBoundingBox:")) {
-- sscanf(line+length("%%PageBoundingBox:"), "%s", text);
-+ sscanf(line+length("%%PageBoundingBox:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- page_bb_set = ATEND;
- } else {
-@@ -1228,14 +1283,14 @@
- }
- } else if (orientation_set == ATEND &&
- iscomment(line+2, "Orientation:")) {
-- sscanf(line+length("%%Orientation:"), "%s", text);
-+ sscanf(line+length("%%Orientation:"), "%256s", text);
- if (strcmp(text, "Portrait") == 0) {
- doc->orientation = PORTRAIT;
- } else if (strcmp(text, "Landscape") == 0) {
- doc->orientation = LANDSCAPE;
- }
- } else if (page_order_set == ATEND && iscomment(line+2,
"PageOrder:")) {
-- sscanf(line+length("%%PageOrder:"), "%s", text);
-+ sscanf(line+length("%%PageOrder:"), "%256s", text);
- if (strcmp(text, "Ascend") == 0) {
- doc->pageorder = ASCEND;
- } else if (strcmp(text, "Descend") == 0) {
-@@ -1738,6 +1793,8 @@
- (DSCcomment(line) && iscomment(line+2,(comment)))
- #define IS_BEGIN(comment) \
- (iscomment(line+7,(comment)))
-+#define IS_END(comment) \
-+ (iscomment(line+5,(comment)))
- #define SKIP_WHILE(cond) \
- while (readline(fd, &line, NULL, &nbytes) && (cond)) *line_lenP +=
nbytes;\
- skipped=1;
-@@ -1773,7 +1830,12 @@
- else
- #endif
- if (!IS_COMMENT("Begin")) {} /* Do nothing */
-- else if IS_BEGIN("Document:") SKIP_UNTIL_1("EndDocument")
-+ else if IS_BEGIN("Document:") { /* Skip the EPS without handling its
content */
-+ while (line && !IS_END("Document")) {
-+ line = ps_io_fgetchars(fd,-1);
-+ if (line) *line_lenP += FD_LINE_LEN;
-+ }
-+ }
- else if IS_BEGIN("Feature:") SKIP_UNTIL_1("EndFeature")
- #ifdef USE_ACROREAD_WORKAROUND
- else if IS_BEGIN("File") SKIP_UNTIL_2("EndFile","EOF")
-@@ -1789,7 +1851,7 @@
- INFMESSAGE(encountered "BeginData:")
- if (FD_LINE_LEN > 100) FD_BUF[100] = '\0';
- text[0] = '\0';
-- if (sscanf(line+length("%%BeginData:"), "%d %*s %s", &num, text) >=
1) {
-+ if (sscanf(line+length("%%BeginData:"), "%d %*s %100s", &num, text)
>= 1) {
- if (strcmp(text, "Lines") == 0) {
- INFIMESSAGE(number of lines to skip:,num)
- while (num) {
-@@ -1888,7 +1950,7 @@
- INFMESSAGE(encountered "BeginData:")
- if (FD_LINE_LEN > 100) FD_BUF[100] = '\0';
- text[0] = '\0';
-- if (sscanf(line+length("%%BeginData:"), "%d %*s %s", &num, text)
>= 1) {
-+ if (sscanf(line+length("%%BeginData:"), "%d %*s %100s", &num,
text) >= 1) {
- if (strcmp(text, "Lines") == 0) {
- INFIMESSAGE(number of lines:,num)
- while (num) {
-@@ -1985,7 +2047,7 @@
- PS_free(comment);
- continue;
- }
-- sscanf(comment+length("%%Pages:"), "%s", text);
-+ sscanf(comment+length("%%Pages:"), "%256s", text);
- if (strcmp(text, "(atend)") == 0) {
- fputs(comment, dest_file);
- pages_atend = True;
---- gv-3.5.8.orig/source/save.c
-+++ gv-3.5.8/source/save.c
-@@ -112,17 +112,19 @@
- String print_filename;
- {
- String error=NULL;
-+ char *print_quoted_filename;
- char *c,*p;
- Cardinal m,n;
- String printfail=GV_ERROR_PRINT_FAIL;
-
- BEGINMESSAGE(print_file)
-
-+ print_quoted_filename = quote_filename(print_filename);
- p = GV_XtNewString(print_command);
- n=0;
- c=p;
- while ((c=strstr(c,"%s"))) { c+=2; n++; }
-- m = (strlen(p)+(n>0?n:1)*strlen(print_filename)+5)*sizeof(char);
-+ m = (strlen(p)+(n>0?n:1)*strlen(print_quoted_filename)+5)*sizeof(char);
- c = (char*) GV_XtMalloc(m);
- if (n>0) {
- char *e,*s;
-@@ -133,13 +135,13 @@
- if (s) *s='\0';
- strcat(c,e);
- if (s) {
-- strcat(c,print_filename);
-+ strcat(c,print_quoted_filename);
- e=s+2;
- }
- else s=NULL;
- }
- } else {
-- sprintf(c, "%s %s",p,print_filename);
-+ sprintf(c, "%s %s",p,print_quoted_filename);
- }
- INFSMESSAGE(printing:,c)
- if (SYSTEM_FAILED_ON(c)) {
-@@ -149,6 +151,7 @@
- }
- GV_XtFree(c);
- GV_XtFree(p);
-+ GV_XtFree(print_quoted_filename);
- ENDMESSAGE(print_file)
- return(error);
- }
-@@ -198,6 +201,9 @@
- char proc_name[256];
- char *error=NULL;
- char *pos;
-+ char *pdfpos;
-+ char *pspos;
-+ char *quoted_src_fn, *quoted_conv_fn;
-
- BEGINMESSAGE(save_forkPDFToPSConversion)
-
-@@ -205,7 +211,30 @@
- strcpy(proc_name,pos);
- strcat(proc_name," conversion");
-
-- sprintf(command,gv_gs_cmd_conv_pdf,sd->conv_fn,sd->src_fn);
-+ quoted_src_fn = quote_filename(sd->src_fn);
-+ quoted_conv_fn = quote_filename(sd->conv_fn);
-+ if ((pdfpos = strstr(gv_gs_cmd_conv_pdf,"%pdf")) &&
-+ (pspos = strstr(gv_gs_cmd_conv_pdf,"%ps"))) {
-+ command[0] = '\0';
-+ if (pdfpos < pspos) {
-+ strncat(command,gv_gs_cmd_conv_pdf,(pdfpos-gv_gs_cmd_conv_pdf));
-+ strcat(command,quoted_src_fn);
-+ strncat(command,pdfpos+4,(pspos-pdfpos-4));
-+ strcat(command,quoted_conv_fn);
-+ strcat(command,pspos+3);
-+ } else {
-+ strncat(command,gv_gs_cmd_conv_pdf,(pspos-gv_gs_cmd_conv_pdf));
-+ strcat(command,quoted_conv_fn);
-+ strncat(command,pspos+3,(pdfpos-pspos-3));
-+ strcat(command,quoted_src_fn);
-+ strcat(command,pdfpos+4);
-+ }
-+ } else {
-+ sprintf(command,gv_gs_cmd_conv_pdf,quoted_conv_fn,quoted_src_fn);
-+ }
-+ GV_XtFree(quoted_src_fn);
-+ GV_XtFree(quoted_conv_fn);
-+
- INFSMESSAGE(starting conversion:,command)
-
process_fork(proc_name,command,save_forkPDFToPSConversionDone,(XtPointer)sd);
- ENDMESSAGE(save_forkPDFToPSConversion)
---- gv-3.5.8.orig/source/versionp.h
-+++ gv-3.5.8/source/versionp.h
-@@ -35,8 +35,8 @@
- #define VERSION_APPLIC_CONTEXT app_con /*
the Application Context */
-
- char *versionIdentification[] = {
-- "gv 3.5.8",
-- "June 1997",
-+ "gv 3.5.8 (debian)",
-+ "February 2002",
- 0
- };
-
-@@ -84,7 +84,7 @@
- FAX: (608)262-9777 Madison, WI 53706\
- ",
- "\
-- Please send error reports to: plass AT thep.physik.uni-mainz.de \n\
-+ Please send error reports to: ckesselh AT debian.org \n\
- ",
- 0
- };
diff --git a/printer/gv/gv-3.5.8.tar.gz.sig b/printer/gv/gv-3.5.8.tar.gz.sig
deleted file mode 100644
index 4c49e64..0000000
Binary files a/printer/gv/gv-3.5.8.tar.gz.sig and /dev/null differ
diff --git a/printer/gv/gv.man b/printer/gv/gv.man
deleted file mode 100644
index f67b1b5..0000000
--- a/printer/gv/gv.man
+++ /dev/null
@@ -1,1214 +0,0 @@
-.if n .ds Q \&"
-.if t .ds Q ``
-.if n .ds U \&"
-.if t .ds U ''
-.TH "gv" 1
-.tr \&
-.nr bi 0
-.nr ll 0
-.nr el 0
-.de DS
-..
-.de DE
-..
-.de Pp
-.ie \\n(ll>0 \{\
-.ie \\n(bi=1 \{\
-.nr bi 0
-.if \\n(t\\n(ll=0 \{.IP \\(bu\}
-.if \\n(t\\n(ll=1 \{.IP \\n+(e\\n(el.\}
-.\}
-.el .sp
-.\}
-.el \{\
-.ie \\nh=1 \{\
-.LP
-.nr h 0
-.\}
-.el .PP
-.\}
-..
-.SH Name
-gv - a PostScript and PDF previewer
-
-
-.SH Synopsis
-
-.Pp
-.DS
-.sp
-.ft RR
-.nf
-gv [ filename ]
- [-monochrome] [-grayscale] [-color]
- [-[no]safer] [-[no]quiet] [-arguments <arguments>]
- [-page <label>] [-[no]center]
- [-media <media>]
- [-portrait] [-landscape] [-upsidedown] [-seascape]
- [-scale <n>] [-scalebase <n>]
- [-swap] [-noswap]
- [-antialias] [-noantialias]
- [-dsc] [-nodsc]
- [-eof] [-noeof]
- [-pixmap] [-nopixmap]
- [-watch] [-nowatch]
- [-?] [-h] [-help] [-v]
- [-resize] [-noresize]
- [-geometry [<width>][x<height>][{+-}<xoffset>{+-}<yoffset>]
- [-ad <resource file>]
- [-style <resource file>]
- [-spartan]
- [<other toolkit options>]
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-.SH Description
-
-.Pp
-.Pp
-gv allows to view and navigate through
-PostScript and PDF documents on an X display
-by providing a user interface for the ghostscript interpreter.
-.Pp
-Please note that gv is derived from Tim Theisen's
-ghostview 1.5.
-.Pp
-.SH Options
-
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fBfilename\fP"
-.nr bi 1
-.Pp
-The name of the file to be displayed.
-The file ending \*Q.ps\*U may be omitted.
-\*Qfilename\*U may point to a compressed file
-(gzipped, zipped or compressed).
-Viewing PDF files requires at least ghostscript version 4.x.
-.IP "\fB-ad <resource file>\fP"
-.nr bi 1
-.Pp
-Read and use additional resources from the file
-<resource file>.
-These resources have higher priority than those provided
-in the context of the -style <resource file> option.
-.IP "\fB-antialias\fP, \fB-noantialias\fP"
-.nr bi 1
-.Pp
-Whether to use antialiasing.
-.IP "\fB-arguments <arguments>\fP"
-.nr bi 1
-.Pp
-Start ghostscript with additional options as specified by the
-string <arguments>.
-.IP "\fB-center\fP, \fB-nocenter\fP"
-.nr bi 1
-.Pp
-Whether the page should be centered automatically.
-.IP "\fB-dsc\fP, \fB-nodsc\fP"
-.nr bi 1
-.Pp
-Determines if document structuring convention (DSC) comments
-should be respected or ignored.
-If -nodsc is used gv will not attempt to examine
-the structure of the document but will pass the file
-to the ghostscript interpreter as a whole. In this case no page numbers
-are shown and freely moving around in the document is not possible.
-This option may help when viewing files not conforming
-to the document structuring conventions.
-.IP "\fB-eof\fP, \fB-noeof\fP"
-.nr bi 1
-.Pp
-Defines the behaviour of the postscript scanner used to
-examine the structure of the document.
-If -noeof is used the scanner will ignore end of file (EOF)
-comments. This may help when viewing documents which import other
-documents without enclosing them within the proper
-"BeginDocument" and "EndDocument" comments.
-If -eof is used, the scanner treats an EOF comment as
-marking the end of the file.
-.IP "\fB-pixmap\fP, \fB-nopixmap\fP"
-.nr bi 1
-.Pp
-If -pixmap is used gv tries to maintain off-screen regions
-of the displayed page by allocating a sufficiently large pixmap.
-If -nopixmap is used the X Server is responsible for
-maintaining obscured portions of the displayed page
-(see also the \*QuseBackingPixmap\*U resource).
-.IP "\fB-v\fP "
-.nr bi 1
-.Pp
-Print the version number of gv to standard output and exit.
-.IP "\fB-h\fP, \fB-?\fP "
-.nr bi 1
-.Pp
-Display a short help message and exit.
-.IP "\fB-help\fP"
-.nr bi 1
-.Pp
-Display a more explicit help message and exit.
-.IP "\fB-scale <n>\fP"
-.nr bi 1
-.Pp
-Selects the scale entry <n> relative to the scale 1.0.
-<n> must be an integer.
-.IP "\fB-scalebase <n>\fP"
-.nr bi 1
-.Pp
-Selects the scale base <n>.
-.IP "\fB-monochrome\fP, \fB-grayscale\fP, \fB-color\fP"
-.nr bi 1
-.Pp
-Sets the color palette to be used.
-.IP "\fB-media <media>\fP"
-.nr bi 1
-.Pp
-Selects the paper size to be used. Valid values are names of
-paper sizes that appear in the list of page medias as given
-by the medias resource.
-.IP "\fB-page <label>\fP"
-.nr bi 1
-.Pp
-Display the page with label <label> first.
-.IP "\fB-portrait\fP, \fB-landscape\fP, \fB-seascape\fP, \fB-upsidedown\fP"
-.nr bi 1
-.Pp
-Sets the orientation.
-.IP "\fB-quiet\fP, \fB-noquiet\fP"
-.nr bi 1
-.Pp
-Whether to start ghostscript with the -dQUIET option.
-.IP "\fB-resize\fP, \fB-noresize\fP"
-.nr bi 1
-.Pp
-Whether gv is allowed to automatically fit the
-size of its window to the size of the displayed page.
-.IP "\fB-safer\fP, \fB-nosafer\fP"
-.nr bi 1
-.Pp
-Whether to start ghostscript with the -dSAFER option.
-.IP "\fB-spartan\fP"
-.nr bi 1
-.Pp
-This is a shortcut for \*Q-style gv_spartan.dat\*U.
-.IP "\fB-style <resource file>\fP"
-.nr bi 1
-.Pp
-Read and use additional resources from the file <resource file>.
-These resources have lower priority than those provided
-in the context of the -ad <resource file> option.
-.IP "\fB-swap\fP, \fB-noswap\fP"
-.nr bi 1
-.Pp
-Whether to interchange the meaning of the orientations
-landscape and seascape.
-.IP "\fB-watch\fP, \fB-nowatch\fP"
-.nr bi 1
-.Pp
-The -watch option causes gv to check the document
-periodically. If changes are detected gv will
-automatically display the newer version of the file.
-The document is by default checked once every second.
-This can be changed via the watchFileFrequency resource.
-Note that sending gv the SIGHUP signal also causes
-an update of the displayed document. This method
-may be used by document creators to trigger gv
-remotely.
-.if \n(ll>1 .RE
-.nr ll -1
-
-.SH Resources
-
-.Pp
-\fBResource files\fP
-.Pp
-In general gv does not depend on any external resource files.
-However, when starting gv, preferences are read from
-.Pp
-.nr ll +1
-.nr t\n(ll 0
-.if \n(ll>1 .RS
-.nr bi 1
-.Pp
-\fBa system specific resource file\fP.
-The name of this file is as described by the \*QXFILESEARCHPATH\*U
-environment variable, or, if this variable is not defined,
-implementation dependant. In most cases it is
-\*Q/usr/X11/lib/X11/app-defaults/GV\*U.
-Administrators may want to modify this file in order
-to set up gv according to the local needs of their system.
-.nr bi 1
-.Pp
-\fBa user specific resource file\fP.
-The name of this file is either \*Q~/.gv\*U or as described
-by the \*QXUSERFILESEARCHPATH\*U environment variable.
-.if \n(ll>1 .RE
-.nr ll -1
-.Pp
-The files \*Qgv_user.ad\*U and \*Qgv_system.ad\*U (located in the library
directory
-of gv, which is most probably either
-\*Q/usr/local/lib/gv/\*U or \*Q/usr/lib/gv/\*U may serve as a basis
-for constructing the user and system specific resource files.
-.Pp
-Note that the user and system specific resource files are not the only
-sources of preferences taken into account when gv is started.
-However, in practice these are the most important.
-.Pp
-\fBResources of gv\fP
-.Pp
-The following describes some of the resources of gv.
-The precise syntax of some of the resource values may be
-inferred from the appended default system specific resource file.
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "antialias"
-.nr bi 1
-.Pp
-Whether antialiasing should be used.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "autoCenter"
-.nr bi 1
-.Pp
-Whether the displayed page should automatically be centered
-(for instance when opening a new file).
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "autoResize"
-.nr bi 1
-.Pp
-Whether gv is allowed to resize the main window
-according to the size of the current page.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "confirmPrint"
-.nr bi 1
-.Pp
-Whether printing requires an extra confirmation.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "confirmQuit"
-.nr bi 1
-.Pp
-Whether leaving gv requires extra confirmation.
-Valid values are \*Q0\*U (Never), \*Q1\*U
-(When processing) and \*Q2\*U (Always).
-The default value is \*Q1\*U, which causes
-a confirmation request when trying to leave gv
-in the presence of pending PDF to Postscript conversions.
-.IP "scrollingEyeGuide"
-.nr bi 1
-.Pp
-If this resource is \*QTrue\*U scrolling via the
-keyboard causes a temporary border to be drawn around the
-previously visible area of the page.
-Allowed values are \*QTrue\*U and \*QFalse\*U.
-.IP "ignoreEOF"
-.nr bi 1
-.Pp
-Defines the behaviour of the postscript scanner as described
-in the Options section.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "respectDSC"
-.nr bi 1
-.Pp
-Determines whether gv should attempt to respect document
-structuring comments.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "reverseScrolling"
-.nr bi 1
-.Pp
-Defines the interpretation of directions when
-scrolling with the mouse.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "swapLandscape"
-.nr bi 1
-.Pp
-Whether the meaning of \*Qlandscape\*U and \*Qseacape\*U
-should be interchanged.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "scratchDir"
-.nr bi 1
-.Pp
-Specifies a directory used to store temporary data.
-.IP "defaultSaveDir"
-.nr bi 1
-.Pp
-Specifies the default destination directory for files to be saved.
-.IP "useBackingPixmap"
-.nr bi 1
-.Pp
-If the value of this resource is \*QFalse\*U the X Server
-is advised that saving off-screen pixels of the displayed page
-would be beneficial (maintaining backing store). In this case gv
-does not actively maintain the contents of the page but relies
-on the X Server. The server is, however, always free to stop
-maintaining backing backing store.
-If the value of this resource is \*QTrue\*U the X Server
-is advised that maintaining backing store is not useful.
-In this case gv attempts to allocate a sufficiently large pixmap
-to store the contents of the displayed page.
-.IP "watchFile"
-.nr bi 1
-.Pp
-Whether the document should be checked periodically and updated
-automatically if changes are detected.
-Valid values are \*QTrue\*U and \*QFalse\*U.
-.IP "watchFileFrequency"
-.nr bi 1
-.Pp
-Defines the time in milliseconds elapsing between successive
-checks of the document when watchFile is set to \*QTrue\*U.
-Allowed values must be larger than 500.
-.IP "printCommand"
-.nr bi 1
-.Pp
-The command used for printing a file.
-The command may contain multiple '%s' wildcards
-which will be replaced by the name of the file to be
-printed.
-.IP "gsInterpreter"
-.nr bi 1
-.Pp
-The command used to start the ghostscript interpreter.
-.IP "gsCmdScanPDF"
-.nr bi 1
-.Pp
-The command used to extract document structuring comments
-from a PDF file.
-.IP "gsCmdConvPDF"
-.nr bi 1
-.Pp
-The command used to convert a PDF file to PostScript.
-.IP "gsX11Device"
-.nr bi 1
-.Pp
-The ghostscript command line option which activates the
-\*QX11\*U device.
-.IP "gsX11AlphaDevice"
-.nr bi 1
-.Pp
-The ghostscript command line option which activates the
-\*QX11\*U device with antialiasing enabled.
-.IP "gsSafer"
-.nr bi 1
-.Pp
-Determines whether ghostscript should be started with the
-\*Q-dSAFER\*U command line option.
-.IP "gsQuiet"
-.nr bi 1
-.Pp
-Determines whether ghostscript should be started with the
-\*Q-dQUIET\*U command line option.
-.IP "gsArguments"
-.nr bi 1
-.Pp
-May be used to provide additional command line options for the
-ghostscript interpreter.
-Starting gv with the \*Q-arguments <arguments>\*U
-option will override this resource setting.
-.IP "magMenu"
-.nr bi 1
-.Pp
-Describes the menu that pops up when preparing to
-to zoom an area of the displayed page.
-.IP "dirs"
-.nr bi 1
-.Pp
-Defines a list of directories accessible via the Directories
-menu in the file selection window.
-The special value \*QHome\*U corresponds to the users home directory,
-the value \*QTmp\*U corresponds to the scratch directory as defined
-by the scratchDir resource.
-.IP "filter"
-.nr bi 1
-.Pp
-Defines the default filter to be used when displaying a directory
-contents in the file selection window.
-A filter is specified according to the syntax
-.DS
-.sp
-.ft RR
-.nf
- <filter> := [<filespecs>] [no <filespecs>]
- <filespecs> := <filespec> [<filespecs>]
- <filespec> := filename possibly including wildcards '*'
- which match any character.
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-Example: The filter
-.DS
-.sp
-.ft RR
-.nf
- GV*filter: *.ps *.pdf no .*
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-screens out all files with names starting with a dot
-and keeps of the remaining ones only those which end
-on \*Q.ps\*U or \*Q.pdf\*U.
-.IP "filters"
-.nr bi 1
-.Pp
-Defines a list of filters offered in the Filters
-menu of the file selection window.
-The filter \*QNone\*U has a special meaning
-causing all files to be displayed when the corresponding
-menu entry is selected.
-.IP "miscMenuEntries"
-.nr bi 1
-.Pp
-Describes the menu that pops up when clicking with the
-third mouse button on the displayed page.
-The value of this resource is a list of menu entries.
-Allowed entries are
-\*Qupdate\*U,
-\*Qredisplay\*U,
-\*Qtoggle_current\*U,
-\*Qtoggle_even\*U,
-\*Qtoggle_odd\*U,
-\*Qunmark\*U,
-\*Qstop\*U,
-\*Qprint_all\*U,
-\*Qprint_marked\*U,
-\*Qsave_all\*U,
-\*Qsave_marked\*U and
-\*Qline\*U.
-.IP "showTitle"
-.nr bi 1
-.Pp
-Whether the name of the displayed document should be shown in the
-title bar of the window. The name of gv's icon will also change
-accordingly if this resource is set to \*QTrue\*U.
-.IP "maximumWidth, maximumHeight"
-.nr bi 1
-.Pp
-When resizing gv will not attempt to exceed the size specified
-by these resources.
-These resources may be specified as a positive integer
-or as \*Qscreen\*U, optionally combined with
-a positive or negative offset.
-The default values listed above provide examples for this syntax.
-\*Qscreen\*U will automatically be replaced by the size of the
-screen.
-.IP "minimumWidth, minimumHeight"
-.nr bi 1
-.Pp
-Defines a minimum size for the main window.
-Valid values for both resources are positive integers larger
-than 200.
-.IP "scale"
-.nr bi 1
-.Pp
-Sets the initial scale. The value of this resource is the offset
-of the scale to be selected relative to the scale 1.0 in the
-the \*QScale\*U menu.
-.IP "scaleBase"
-.nr bi 1
-.Pp
-Selects the initial scale base. The value of this resource should
-be a positive integer.
-.IP "scales"
-.nr bi 1
-.Pp
-Defines the available scales bases and scales in the \*QScale\*U
-menu.
-.IP "orientation"
-.nr bi 1
-.Pp
-Sets the initial orientation. Valid values are
-\*Qportrait\*U, \*Qlandscape\*U,\*Qseascape\*U,
-\*Qupside-down\*U and
-\*Qautomatic\*U.
-\*Qautomatic\*U causes gv to attempt
-to derive the correct orientation from document structuring
-comments.
-.IP "fallbackOrientation"
-.nr bi 1
-.Pp
-Defines the paper-size to be used when automatic orientation
-detetction fails. Valid values are
-\*Qportrait\*U, \*Qlandscape\*U,\*Qseascape\*U
-and \*Qupside-down\*U.
-.IP "medias"
-.nr bi 1
-.Pp
-A list describing the page medias known to gv.
-List entries starting with \*Q!\*U or \*Q#\*U will not appear in the
-\*QMedia\*U menu but will still be used for automatic paper size
-detection.
-.IP "pagemedia"
-.nr bi 1
-.Pp
-Sets the paper size.
-Allowd values are as given in the above list of paper-sizes.
-Specifying
-\*Qautomatic\*U causes gv to attempt
-to derive the correct paper-size from document structuring
-comments.
-.IP "fallbackPageMedia"
-.nr bi 1
-.Pp
-Defines the paper-size to be used when automatic paper-size
-detetction fails. Valid values are as given in the above
-list of paper-sizes.
-.if \n(ll>1 .RE
-.nr ll -1
-.Pp
-\fBThe default user and system specific resource file\fP
-.DS
-.sp
-.ft RR
-.nf
-GV.pageMedia: automatic
-GV.orientation: automatic
-GV.fallbackOrientation: portrait
-GV.swapLandscape: False
-GV.autoCenter: True
-GV.antialias: False
-GV.respectDSC: True
-GV.ignoreEOF: True
-GV.confirmPrint: True
-GV.reverseScrolling: False
-GV.scrollingEyeGuide: True
-GV.autoResize: True
-GV.maximumWidth: screen-20
-GV.maximumHeight: screen-44
-GV.minimumWidth: 400
-GV.minimumHeight: 430
-GV.confirmQuit: 1
-GV.watchFile: False
-GV.watchFileFrequency: 1000
-GV.showTitle: True
-GV.miscMenuEntries: redisplay \\n\\
- # update \\n\\
- stop \\n\\
- line \\n\\
- toggle_current \\n\\
- toggle_even \\n\\
- toggle_odd \\n\\
- unmark \\n\\
- line \\n\\
- print_all \\n\\
- print_marked \\n\\
- save_all \\n\\
- save_marked
-GV.scale: 0
-GV.scaleBase: 1
-GV.scales: Natural size, 1.000, screen \\n\\
- Pixel based, 1.000, pixel \\n\\
- 0.100, 0.100 \\n\\
- 0.125, 0.125 \\n\\
- 0.250, 0.250 \\n\\
- 0.500, 0.500 \\n\\
- 0.707, 0.707 \\n\\
- 1.000, 1.000 \\n\\
- 1.414, 1.414 \\n\\
- 2.000, 2.000 \\n\\
- 4.000, 4.000 \\n\\
- 8.000, 8.000 \\n\\
- 10.00, 10.00
-GV.medias: Letter, 612 792 \\n\\
- # LetterSmall, 612 792 \\n\\
- Legal, 612 1008 \\n\\
- Statement, 396 612 \\n\\
- Tabloid, 792 1224 \\n\\
- Ledger, 1224 792 \\n\\
- Folio, 612 936 \\n\\
- Quarto, 610 780 \\n\\
- # 7x9, 504 648 \\n\\
- # 9x11, 648 792 \\n\\
- # 9x12, 648 864 \\n\\
- # 10x13, 720 936 \\n\\
- 10x14, 720 1008 \\n\\
- Executive, 540 720 \\n\\
- # A0, 2384 3370 \\n\\
- # A1, 1684 2384 \\n\\
- # A2, 1191 1684 \\n\\
- A3, 842 1191 \\n\\
- A4, 595 842 \\n\\
- # A4Small, 595 842 \\n\\
- A5, 420 595 \\n\\
- # A6, 297 420 \\n\\
- # A7, 210 297 \\n\\
- # A8, 148 210 \\n\\
- # A9, 105 148 \\n\\
- # A10, 73 105 \\n\\
- # B0, 2920 4127 \\n\\
- # B1, 2064 2920 \\n\\
- # B2, 1460 2064 \\n\\
- # B3, 1032 1460 \\n\\
- B4, 729 1032 \\n\\
- B5, 516 729 \\n\\
- # B6, 363 516 \\n\\
- # B7, 258 363 \\n\\
- # B8, 181 258 \\n\\
- # B9, 127 181 \\n\\
- # B10, 91 127 \\n\\
- # ISOB0, 2835 4008 \\n\\
- # ISOB1, 2004 2835 \\n\\
- # ISOB2, 1417 2004 \\n\\
- # ISOB3, 1001 1417 \\n\\
- # ISOB4, 709 1001 \\n\\
- # ISOB5, 499 709 \\n\\
- # ISOB6, 354 499 \\n\\
- # ISOB7, 249 354 \\n\\
- # ISOB8, 176 249 \\n\\
- # ISOB9, 125 176 \\n\\
- # ISOB10, 88 125 \\n\\
- # C0, 2599 3676 \\n\\
- # C1, 1837 2599 \\n\\
- # C2, 1298 1837 \\n\\
- # C3, 918 1296 \\n\\
- # C4, 649 918 \\n\\
- # C5, 459 649 \\n\\
- # C6, 323 459 \\n\\
- # C7, 230 323 \\n\\
- # DL, 312 624
-GV.magMenu: 2, 2 \\n\\
- 4, 4 \\n\\
- 8, 8 \\n\\
- 16, 16 \\n\\
- 32, 32 \\n\\
- 64, 64
-GV*Ghostview.background: white
-GV*Ghostview.foreground: black
-GV.gsInterpreter: gs
-GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s -sDSCname=%s
pdf2dsc.ps -c quit
-GV.gsCmdConvPDF: gs -dNODISPLAY -dQUIET -dNOPAUSE -sPSFile=%s %s -c
quit
-GV.gsX11Device: -sDEVICE=x11
-GV.gsX11AlphaDevice: -dNOPLATFONTS -sDEVICE=x11alpha
-GV.gsSafer: True
-GV.gsQuiet: True
-GV.gsArguments:
-GV.uncompressCommand: gzip -d -c %s > %s
-GV.printCommand: lpr
-GV.scratchDir: ~/
-GV.defaultSaveDir: ~/
-GV.fallbackPageMedia: a4
-GV.useBackingPixmap: True
-GV*dirs: Home\\n\\
- Tmp\\n\\
- /usr/doc\\n\\
- /usr/local/doc
-GV*filter: no .*
-GV*filters: None\\n\\
- *.*ps* *.pdf* no .*\\n\\
- *.*ps* no .*\\n\\
- *.pdf* no .*\\n\\
- no .*
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-.SH Mouse and key bindings
-
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fBMouse bindings in the Main and the Zoom window\fP"
-.nr bi 1
-.Pp
-The following mouse events are defined when the mouse pointer
-is either on the displayed page or on a zoomed area:
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fB-\fP press button 1, move mouse, release button 1"
-.nr bi 1
-.Pp
-Scrolls the displayed page 'proportionally'.
-.IP "\fB-\fP press button 3, move mouse, release button 3"
-.nr bi 1
-.Pp
-Scrolls the displayed page 'absolutely'.
-.IP "\fB-\fP double-click with button 1"
-.nr bi 1
-.Pp
-In the main window this displays the previous/next page
-if the double-click occured in the left/right half of the
-window.
-In a zoom window it does nothing.
-.IP "\fB-\fP press button 2, release button 2"
-.nr bi 1
-.Pp
-Pops up a small menu which allows to choose a magnification
-for a certain area around the current mouse position.
-After selecting a magnification a zoom window pops up
-displaying the area at the chosen scale.
-.IP "\fB-\fP press button 2, move mouse, release button 2"
-.nr bi 1
-.Pp
-This draws and thereby defines a rectangular region which
-can be displayed in a zoom window. The magnification for the
-area can be selected by means of a popup menu which appears after
-releasing button 2.
-.IP " \fB-\fP press button 1, press button 2"
-.nr bi 1
-.Pp
-Redisplays the current page. This event sequence works only
-in the main window.
-.IP "\fB-\fP press button 3, release button 3"
-.nr bi 1
-.Pp
-Pops up a small menu which offers a few standard actions
-like 'Redisplay', 'Mark Page', etc.
-.if \n(ll>1 .RE
-.nr ll -1
-.IP "\fBMouse bindings in the File Selection popup\fP"
-.nr bi 1
-.Pp
-The following mouse events are defined when the mouse pointer is
-in the window of either a file or a directory list:
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fB-\fP press button 1, move mouse, release button 1"
-.nr bi 1
-.Pp
-Scrolls a file or directory list 'proportionally'.
-.IP "\fB-\fP press button 2, move mouse, release button 2"
-.nr bi 1
-.Pp
-Scrolls a file or directory list 'absolutely'.
-.IP "\fB-\fP press button 2, release button 2"
-.nr bi 1
-.Pp
-Scrolls a file or directory list one page up/down
-if the button was pressed in the upper/lower half of the list.
-.IP "\fB-\fP double-click with button 1 on a filename"
-.nr bi 1
-.Pp
-Selects the file and closes the File Selection popup.
-.IP "\fB-\fP click with button 1 on a directory name"
-.nr bi 1
-.Pp
-Causes the contents of this directory to be displayed.
-.if \n(ll>1 .RE
-.nr ll -1
-.IP "\fBMouse bindings in the Table of Contents\fP"
-.nr bi 1
-.Pp
-The following mouse events are defined when the mouse pointer is
-in the window showing a list of page numbers of the
-current file (table of contents):
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fB-\fP press button 1, move mouse, release button 1"
-.nr bi 1
-.Pp
-Scrolls the table of contents.
-.IP "\fB-\fP press button 1 on a page number"
-.nr bi 1
-.Pp
-Go to this page.
-.IP "\fB-\fP press button 2 on a page number"
-.nr bi 1
-.Pp
-Mark this page if it is unmarked, but unmark it if it is marked.
-.IP "\fB-\fP press button 2, move mouse, release button 2"
-.nr bi 1
-.Pp
-Marks/unmarks all unmarked/marked pages in the region
-crossed by the mouse pointer during the movement.
-.if \n(ll>1 .RE
-.nr ll -1
-.IP "\fBMouse bindings in the Panner widget\fP"
-.nr bi 1
-.Pp
-The Panner widget is the rectangular region located close to the
-left edge of the main window. It indicates the size and the
-position of the visible area of the current page relative to the
-total page.
-.Pp
-The following mouse events are defined when the mouse pointer is
-in this region:
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fB-\fP press button 1, move mouse"
-.nr bi 1
-.Pp
-Scrolls the displayed page.
-.IP "\fB-\fP press button 2"
-.nr bi 1
-.Pp
-Display the previous page.
-.IP "\fB-\fP press button 3"
-.nr bi 1
-.Pp
-Display the next page.
-.if \n(ll>1 .RE
-.nr ll -1
-.IP "\fBMouse bindings in the ">>" and "<<" button windows\fP"
-.nr bi 1
-.Pp
-The ">>" and "<<" buttons are used to move
-to another page. The following mouse events are defined:
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "\fB-\fP press button 1"
-.nr bi 1
-.Pp
-Move 1 page forward/backwards.
-.IP "\fB-\fP press button 2"
-.nr bi 1
-.Pp
-Move 5 pages forward/backwards.
-.IP "\fB-\fP press button 3"
-.nr bi 1
-.Pp
-Move 10 pages forward/backwards.
-.if \n(ll>1 .RE
-.nr ll -1
-.IP "\fBKey Bindings\fP"
-.nr bi 1
-.Pp
-The following key events are defined in the main window. Those bindings
-scrolling the page are also defined in zoom popups.
-.DS
-.sp
-.ft RR
-.nf
-=== Notation:
-
-s-X means press "Shift" and key "X"
-c-X means press "Ctrl" and key "X"
-sc-X means press "Shift" or "Ctrl" and key "X"
-
-=== Miscellaneous keys:
-
-A Toggle antialiasing on and off
-O Open a new file
-Q Quit gv
-R Toggle gv's resizing behaviour
-I Respect/Ignore document structuring
-W Watch file / Don't watch file
-S Save the marked pages
-sc-S Save the current file
-P Print the marked pages
-sc-P Print the current file
-c-L Redisplay the current page
-\&. Redisplay the current page
-sc-. Reopen the current file
-M Mark the current page
-N Unmark the current page
-
-=== Orientation:
-
-7 Orientation portrait
-8 Orientation landscape
-9 Orientation upside-down
-0 Orientation seascape
-
-=== Magnification:
-
-sc-6 Select the scale entry -6 relative to the scale 1.0
-sc-5 Select the scale entry -5 relative to the scale 1.0
-sc-4 Select the scale entry -4 relative to the scale 1.0
-sc-3 Select the scale entry -3 relative to the scale 1.0
-sc-2 Select the scale entry -2 relative to the scale 1.0
-sc-1 Select the scale entry -1 relative to the scale 1.0
-^ Select the scale 1.0 (for german keyboard layout)
-` Select the scale 1.0
-1 Select the scale entry 1 relative to the scale 1.0
-2 Select the scale entry 2 relative to the scale 1.0
-3 Select the scale entry 3 relative to the scale 1.0
-4 Select the scale entry 4 relative to the scale 1.0
-5 Select the scale entry 5 relative to the scale 1.0
-6 Select the scale entry 6 relative to the scale 1.0
-+ Select the next scale entry
-= Select the next scale entry
-- Select the previous scale entry
-
-=== Navigating:
-
-Arrow Scroll in the direction of the arrow
-s-Up Scroll columns up or jump -1 pages
-s-Down Scroll columns down or jump 1 pages
-s-Left Scroll rows left or jump -1 pages
-s-Right Scroll rows right or jump 1 pages
-c-Up Jump -1 pages (to top/left corner)
-c-Down Jump 1 pages (to top/left corner)
-c-Left Jump -5 pages (to top/left corner)
-c-Right Jump 5 pages (to top/left corner)
-
-D,X,Z,Y,C Identical to arrow up,down,left,left,right
-V Center the page
-sc-Space Scroll columns up or jump -1 pages
-Space Scroll columns down or jump 1 pages
-
-BackSpace Scroll columns up or jump -1 pages
-Insert Jump -5 pages
-Delete Jump 5 pages
-Home Go to the first page
-End Go to the last page
-Prior Jump -1 pages
-Next Jump 1 pages
-
-Keypad 0-9 Highlight a page number
-Keypad - Highlight previous page number
-Keypad + Highlight next page number
-Keypad Enter Jump to the highlighted page
-
-c-Enter Jump -1 pages
-s-Enter Jump -1 pages
-Enter Jump 1 pages
-B Jump -1 pages
-F Jump 1 pages
-
-
-
-
-
-
-
-
-
-.DE
-.fi
-.ec
-.ft P
-.sp
-.if \n(ll>1 .RE
-.nr ll -1
-
-.SH Comments about the user interface
-
-.Pp
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.Pp
-.IP "\fBScales\fP"
-.nr bi 1
-.Pp
-The \*QScale\*U menu which allows to view the document
-at different sizes is divided into two parts. The first part
-shows a list of available scale bases, the second part,
-separated by a line, lists the relative scales which are applied
-with respect to the selected scale base.
-.Pp
-By default two scales bases are available, the \*QNatural size\*U
-and the \*QPixel based\*U base.
-When choosing the \*QPixel based\*U scale base a relative scale
-of 1.0 causes one postscript point to correspond to one pixel on the
-screen.
-.Pp
-When viewing a document at a relative scale of 1.0
-using the \*QNatural size\*U base the page should appear in its
-real size, as if printed on paper.
-For the \*QNatural size\*U base to work properly gv has to know
-the correct size of the root window. Automatic detection
-of this size unfortunately only provides approximate results, therefore
-it is best if it is provided by the user. To do so the resource
-.DS
-.sp
-.ft RR
-.nf
- GV.screenSize: <width> x <height>
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-should be added to the \*QSCREEN_RESOURCES\*U property of the screen
-the document is viewed on, with <width> and <height>
-describing the width and height of the root window in units of millimeters.
-For instance by using the command
-.DS
-.sp
-.ft RR
-.nf
- echo "GV.screenSize: 396 x 291" | xrdb -override -screen
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-a width of 346 mm and a height of 291 mm will be used for the
-\*QNatural size\*U scale base.
-Alternatively the resource
-.DS
-.sp
-.ft RR
-.nf
- GV.screenSize_<machine>_<disp>_<scr>: <width> x <height>
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-may be added to a resource file read by gv. Here
-<machine> ,<disp> and ANGLED) describe
-the display on which gv displays the document.
-For instance, if the display is set to \*Qtic.tac.toe.wo:0.1\*U
-the resource should be specified as
-.DS
-.sp
-.ft RR
-.nf
- GV.screenSize_tic_0_1: 396 x 291
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-Note that this method doesn't work on VMS.
-As a last alternative the resource
-.DS
-.sp
-.ft RR
-.nf
- GV.screenSize: <width> x <height>
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-may be added to one of the resource files. However, for obvious reasons
-this method should be used only on single user machines.
-.Pp
-.IP "\fBScrolling\fP"
-.nr bi 1
-.Pp
-It is probably a de facto standard for user interfaces
-that windows are supposed to be scrolled by means of
-scrollbars attached to their sides.
-However, for various reasons the use of scrollbars
-has been minimized in gv.
-.Pp
-Instead, in all windows with obscured data, scrolling
-may be performed by
-pressing button1, moving the mouse, then releasing button1
-directly in the window. This includes the displayed page,
-zoom popups, the table of contents and the file and
-directory lists displayed in the file selection popup.
-.Pp
-.IP "\fBDisplaying new versions of a document\fP"
-.nr bi 1
-.Pp
-During document creation it is usually desirable to
-always display the newest version of the document in work.
-.Pp
-Instead of explicitly loading it via the file selection
-popup the most recent version can be displayed by
-pressing the \*QRedisplay\*U button in the main window
-(VMS users should use the \*QUpdate File\*U entry in the
-\*QFile\*U menu).
-Choosing the \*QRedisplay\*U entry in the menu that pops
-up when clicking with the third mouse button anywhere on the
-displayed page certainly has the same effect.
-.Pp
-More comfortable is the "Watch File" feature which may
-be switched on by selecting the corresponding entry in the
-\*QState\*U menu. If activated gv will check
-every now and then if a new version of the displayed
-file exists. If so it will be displayed automatically.
-By default the file is checked about once every
-second.
-.Pp
-Finally it may also be left to the document creating program
-to trigger gv to update its display. To do so the
-program should send the SIGHUP signal to gv.
-For instance at the end of a shell script generating a
-postscript file from latex sources the line
-.DS
-.sp
-.ft RR
-.nf
- kill -SIGHUP <gv_pid>
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-may be added (here \f(CR<gv_pid>\fP is the process id of
-gv). Executing the script and thereby creating a new
-version of the document will then also cause the
-result to be displayed instantaneously.
-Please note that this feature is available only on X11 R6
-based systems.
-.if \n(ll>1 .RE
-.nr ll -1
-
-.Pp
-.SH Availability
-
-.Pp
-The source code of the most recent version of gv may be
-obtained from the following sources:
-.nr ll +1
-.nr t\n(ll 2
-.if \n(ll>1 .RS
-.IP "World Wide Web:"
-.nr bi 1
-.Pp
-http://wwwthep.physik.uni-mainz.de/~plass/gv/
-.IP "Anonymous ftp:"
-.nr bi 1
-.Pp
-ftp://thep.physik.uni-mainz.de/pub/gv/
-.if \n(ll>1 .RE
-.nr ll -1
-
-.SH Authors
-
-.Pp
-.DS
-.sp
-.ft RR
-.nf
-Johannes Plass plass AT thep.physik.uni-mainz.de
- Department of Physics
- Johannes Gutenberg University
- Mainz, Germany
-
-gv is derived from GhostView 1.5, created by
- Tim Theisen Systems Programmer
-Internet: tim AT cs.wisc.edu Department of Computer Sciences
- UUCP: uwvax!tim University of Wisconsin-Madison
- Phone: (608)262-0438 1210 West Dayton Street
- FAX: (608)262-9777 Madison, WI 53706
-.DE
-.fi
-.ec
-.ft P
-.sp
-
-.Pp
-.SH Suggestions and bug reports
-
-.Pp
-Please send suggestions or bug reports to plass AT thep.physik.uni-mainz.de.
-.Pp
-.Pp
-.Pp
-.Pp
- [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (0ed2281df34456685190c1e8c34678dc3b4995a7), Treeve Jelbert, 07/03/2006
Archive powered by MHonArc 2.6.24.