>>>>> "Rob" == Rob Lahaye <[EMAIL PROTECTED]> writes:

>> However, eversince I upgraded to gv version 3.6.1, the -swap does
>> not work anymore, and consequently, Postscript viewing with LyX is
>> not working (not working with out-of-the box configuration, that
>> is).

Rob> This could be a possible patch for fixing this for gv:

I am going to apply the following patches, which remove the use of
-swap for gv altogether.

JMarc

Index: status.13x
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/Attic/status.13x,v
retrieving revision 1.1.2.229
diff -u -p -r1.1.2.229 status.13x
--- status.13x	11 Feb 2005 13:47:17 -0000	1.1.2.229
+++ status.13x	17 Feb 2005 13:17:48 -0000
@@ -73,6 +73,10 @@ What's new
 
 - Fix bindings for depth-increment/decrement for LyX/Mac.
 
+- Do not use the -swap option when viewing a Postscript file with gv,
+  since newer versions do not support it. Users that see landscape
+  documents upside-down should delect 'swap landscape' in gv options.
+
 - Fix server function server-get-tip [Bug 1781]
 
 
Index: lib/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/ChangeLog,v
retrieving revision 1.363.2.97
diff -u -p -r1.363.2.97 ChangeLog
--- lib/ChangeLog	8 Feb 2005 10:42:13 -0000	1.363.2.97
+++ lib/ChangeLog	17 Feb 2005 13:17:48 -0000
@@ -1,3 +1,8 @@
+2005-02-17  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* configure.m4: do not use -swap option for gv (it does not work
+	with latest versions).
+
 2005-02-08  Mike Ressler  <[EMAIL PROTECTED]>
 
 	* layouts/aastex.layout: Updated for AASTeX 5.2
Index: lib/configure.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/configure.m4,v
retrieving revision 1.60.2.15
diff -u -p -r1.60.2.15 configure.m4
--- lib/configure.m4	2 Feb 2005 15:37:58 -0000	1.60.2.15
+++ lib/configure.m4	17 Feb 2005 13:17:48 -0000
@@ -270,7 +270,7 @@ LYXRC_PROG([for a Postscript interpreter
 # Search something to preview postscript
 SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview)
 case $GHOSTVIEW in
-  gv|ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
+  ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
   *) PS_VIEWER="$GHOSTVIEW";;
 esac
 EPS_VIEWER=$GHOSTVIEW
Index: lib/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/ChangeLog,v
retrieving revision 1.673
diff -u -p -r1.673 ChangeLog
--- lib/ChangeLog	14 Feb 2005 14:25:17 -0000	1.673
+++ lib/ChangeLog	17 Feb 2005 13:17:34 -0000
@@ -1,3 +1,8 @@
+2005-02-17  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* configure.m4: do not use -swap option for gv (it does not work
+	with latest versions).
+
 2005-02-13  Georg Baum  <[EMAIL PROTECTED]>
 
 	* ui/stdmenus.ui: add more facilities for drawing/deleting partition
Index: lib/configure.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/configure.m4,v
retrieving revision 1.91
diff -u -p -r1.91 configure.m4
--- lib/configure.m4	20 Jan 2005 15:02:15 -0000	1.91
+++ lib/configure.m4	17 Feb 2005 13:17:34 -0000
@@ -295,7 +295,7 @@ test "$latex_to_sxw_command" != "none" &
 # Search something to preview postscript
 SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview kghostview)
 case $GHOSTVIEW in
-  gv|ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
+  ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
   *) PS_VIEWER="$GHOSTVIEW";;
 esac
 EPS_VIEWER=$GHOSTVIEW

Reply via email to