# Flags for testing a2ps

# Default behavior
Options: -K1Rq -s1 -Xlatin1 -MA4 -o-

# A water mark
Options: '-uTest files'

# Set titles that cannot vary from path to path
# Don't forget to check the tags (hence, use $t1 and $t2)
Options: '--left-title=#?2||%s.|'
Options: '--right-title=#?2|$t2|right|'
Options: '--center-title=#?1|$t1|$n|'
Options: '--footer=%A{Somebody@a machine}' --left-footer=$s. --right-footer=Right  '--header=The room for the header'

Options: --version-control=none --delegate=no

# A macro sequence for table of content
Variable: toc_test \\Keyword{Table of Content}\n\
#-1!f\
|$2# \\keyword{$-.20n} sheets $3s< to $3s> ($2s#) pages $3p<-$3p> $4l# lines\n||\
\\Keyword{End of toc}\n

Variable: sedout \
sed 's/^%%%%For.*/%%%%For: (The one who tests a2ps)/g;s/^%%%%Creator.*/%%%%Creator: a version of a2ps/g;s/^%%%%CreationDate:.*/%%%%CreationDate: once upon a time/g;s!^/td (.*) def!/td (today) def!g'

# The awk options to be run
Variable: awkout \
awk "/^%%%%Page:/, /^%%%%EOF$$/"

Variable: awkin \
awk "/^%%!/, /^%%%%EndSetup/"

# A printer that sed's away some details of the DSC which may
# make look different identical PS programs.
UnknownPrinter: | #{sedout} > #o

Printer: awkin | #{awkin} | #{sedout}
Printer: awkout | #{awkout}
Printer: sedout | #{sedout}
Printer: chk_dir | #{sedout} > ${CHK_DIR}/$N.ps

Delegation: Testing test_delegation:ps echo OK
