Jefferson
 Lab
Jefferson Lab Home Search Contact JLab
CLAS-Notes Help
----------------------

    How to view gzipped PostScript files with Netscape

    In order to view gzipped PostScript files with Netscape, you need to tell it how to deal with them. Netscape uses external viewers for this purpose, but it doesn't know a priori how to use them, or when. Unix systems use two files for this purpose: .mime.types and .mailcap.

    .mime.types tells Netscape what type of file it's dealing with, based on the file extension (for example, "ps" for a PostScript file). Netscape already has all the types we need for this, so you don't need to create this file. Here are the types for the files in this archive:

    Netscape predefined MIME types
    Type Extension Description
    encoding/x-gzip gz GNU gzip-compressed file
    application/postscript ps PostScript file

    .mailcap is another matter. Although Netscape may know that a file ending with .gz is a gzipped file, it still needs to know what to do with it. Here's an excerpt from my .mailcap:

    encoding/x-gzip;        /usr/site2/gnu/bin/gunzip %s
    application/postscript; ghostview %s
    
    Note the two lines starting with "encoding/x-gzip" and "application/postscript". The next item in those lines is the application to be used to deal with such files. The "%s" is replaced by the file you're downloading.



    content by Elton Smith
    maintained by webmaster@jlab.org
    updated January 29, 2002