#!/bin/sh
# 
# convert ASCII input to Postscript output
#
# NOTE: Lots of options which could be set will be controlled through
#       another script file which will be source'd here
#
#if [ -f $SPOOLDIR/asc-to-ps.cfg ]; then
#   source $SPOOLDIR/asc-to-ps.cfg
#fi

#
# we can assume that PAPERSIZE has been set by the top level filter
# and exported down the line
#

case "$PAPERSIZE" in
    LETTER|LEGAL|LEDGER )
                   NPAPERSIZE=US;;
    A3|A4 )
                   NPAPERSIZE=A4;;
    * )
                   NPAPERSIZE=US;;
esac

nenscript -T$NPAPERSIZE -ZB -p-

exit 0
