wdvi

network DVI viewer
Log | Files | Refs

commit 0959598e5774d02628fa74a12f7bc93d3d29960d
parent 15c10b35ba062f92906088d17db9eb0f20d76fad
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Thu, 19 Aug 2021 01:01:01 +0000

xdvizilla wont be needed

Diffstat:
Dxdvi.lsm | 21---------------------
Dxdvizilla | 123-------------------------------------------------------------------------------
Dxdvizilla.1 | 115-------------------------------------------------------------------------------
3 files changed, 0 insertions(+), 259 deletions(-)

diff --git a/xdvi.lsm b/xdvi.lsm @@ -1,21 +0,0 @@ -Cut this out, fill it in, send it to 'lsm@execpc.com' with the subject 'add'. - -Begin3 -Title: xdvi -Version: 21 -Entered-date: 05FEB99 -Description: xdvi is a program for previewing .dvi files, which are - produced by the mathematical typesetting system, TeX. -Keywords: xdvi, dvi, TeX, LaTeX -Author: Many people contributed to this software. See the README file. -Maintained-by: vojta@math.berkeley.edu (Paul Vojta) -Primary-site: ftp.x.org /contrib/applications - 196k xdvi-22.tar.Z -Alternate-site: ctan.tug.org /tex-archive/dviware/xdvi - 196k xdvi-22.tar.gz -Original-site: math.berkeley.edu /pub/Software/TeX - 196k xdvi-latest.tar.Z -Platforms: Linux or Unix (or possibly VMS); X11; TeX fonts; ghostscript - or Display PostScript (optional) -Copying-policy: X Consortium copyright (free from charge) -End diff --git a/xdvizilla b/xdvizilla @@ -1,123 +0,0 @@ -#! /bin/sh -# -# This is a kludge to fix helper apps in mozilla. See mozilla bugs #57420 -# and also #78919. -# -# It's also useful for tar files with Netscape 4.x -# -# Copyright (c) 2002-2003 Paul Vojta -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL PAUL VOJTA OR ANY OTHER AUTHOR OF OR CONTRIBUTOR TO -# THIS SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. - -NO_RM= -TMP_DIR= -progname=xdvizilla - -do_cleanup() -{ - [ -z "$NO_RM" ] && rm -f "$ARG" - [ -n "$TMP_DIR" ] && rm -rf "$TMP_DIR" -} - -do_abort() -{ - xmessage -nearmouse "$progname: $1" - do_cleanup - exit 1 -} - -setup_dir() -{ - if [ -z "$TMP_DIR" ]; then - # Create a temporary directory only read/writable by user - TMP_DIR=${TMP-/tmp}/$progname.$$ - (umask 077; mkdir "$TMP_DIR") || \ - do_abort "Could not create directory \`$TMP_DIR'" - trap 'do_cleanup' 1 2 3 7 13 15 - fi -} - -if [ $# -gt 1 -a "x$1" = "x-no-rm" ]; then - NO_RM=y - shift -fi - -if [ $# -ne 1 ]; then - xmessage -nearmouse "Usage: $progname [-no-rm] <file>" - exit 1 -fi - -DIR=`dirname "$0"` - -if [ "$DIR" = . ]; then - DIR= -elif [ -f "$DIR"/xdvi -a -x "$DIR"/xdvi ]; then - DIR="$DIR"/ -else - DIR= -fi - -ARG=$1 -FILE=$1 -FILETYPE=`file "$FILE"` -UNCOMP= - -case "$FILETYPE" in - - *"gzip compressed data"*) - UNCOMP=gunzip - ;; - - *"compressed data"* | *"compress'd data"*) - UNCOMP=uncompress - ;; - - *": empty") - do_abort "$1 is an empty file -(this is a bug in Mozilla)" - ;; - -esac - -if [ -n "$UNCOMP" ]; then - setup_dir - FILE=$TMP_DIR/uncomp - $UNCOMP -c "$1" > $FILE - FILETYPE=`file "$FILE"` -fi - -case "$FILETYPE" in - - *" tar archive" | *" tar archive "*) - setup_dir - cat "$FILE" | (cd "$TMP_DIR"; tar xf -) - DVINAME=`tar tf "$FILE" | grep '\.dvi$' | head -1` - [ -n "$DVINAME" ] || \ - do_abort "Tar file does not contain a dvi file." - FILE=$TMP_DIR/$DVINAME - ;; - -esac - -"$DIR"xdvi -safer "$FILE" - -do_cleanup - -exit 0 diff --git a/xdvizilla.1 b/xdvizilla.1 @@ -1,115 +0,0 @@ -.\" Copyright (c) 1990-2002 Paul Vojta -.\" -.\" Permission is hereby granted, free of charge, to any person obtaining a copy -.\" of this software and associated documentation files (the "Software"), to -.\" deal in the Software without restriction, including without limitation the -.\" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -.\" sell copies of the Software, and to permit persons to whom the Software is -.\" furnished to do so, subject to the following conditions: -.\" -.\" The above copyright notice and this permission notice shall be included in -.\" all copies or substantial portions of the Software. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -.\" PAUL VOJTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -.\" IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -.\" CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -.\" -.TH XDVIZILLA 1 "11 October 2002" "X Version 11" -.SH NAME -xdvizilla \- Helper application for running xdvi -.SH SYNOPSIS -.B xdvizilla -[\fB\-no\-rm\fP] -.I file -.SH DESCRIPTION -Presently (October 2002), Mozilla has some bugs with helper applications: -it passes gzipped -.RB ( .gz ) -files directly to the helper application without uncompressing, and it -passes compressed -.RB ( .Z ) -files as empty files. -.PP -To work around these problems, -.B xdvizilla -was written to look at files and decompress them correctly (depending on -their file types). -.PP -In addition, some sites produced tarred -.I dvi -files (including the -.I dvi -file as well as some included figures), and -.B xdvizilla -correctly handles those files as well. -.SH OPTIONS -Only one option is supported: -.TP -.B \-no\-rm -Normally -.B xdvizilla -will remove -.I file -before finishing. This option inhibits this behavior. -.SH INSTALLATION -In addition to installing -.B xdvizilla -in a directory on the default search path, it is necessary to set it up -as a helper application within the browser. -.PP -For -.BR "Netscape 4.x" , -add the following lines to the -.B mailcap -file: -.RS 5 -.nf -.ft 3 -.sp 1n -application/x-dvi; xdvi -safer %s -application/x-dvi-tar; xdvizilla -no-rm %s -.sp 1n -.ft -.fi -.RE -.PP -For -.BR "Netscape 6.x" , -.BR "Netscape 7.x" , -or -.BR "Mozilla 1.x" , -add the following lines to the -.B mailcap -file: -.RS 5 -.nf -.ft 3 -.sp 1n -application/x-dvi; xdvizilla %s -application/x-dvi-tar; xdvizilla %s -.sp 1n -.ft -.fi -.RE -.PP -In addition, it would be useful to check that the following line is included -in the -.B mime.types -file: -.RS 5 -.nf -.ft 3 -.sp 1n -type=application/x-dvi exts="dvi" desc="TeX dvi file" -.sp 1n -.ft -.fi -.RE -.SH SEE ALSO -.BR X (1), -.BR xdvi (1). -.SH AUTHOR -Paul Vojta, U.C. Berkeley.