# Visual Thought 1.4
# File Translator Definitions
# Last modification: Tue Jun 23, 1998 9:00:00 AM PDT
#
# This file is read on program startup.  Any entries you make or change
# by editing this file between program executions will be read and
# become effective the next time the program is started.
#
# Any line starting with '#' is a comment.
#
# All non-comment lines describe file formats or format translator
# commands.  They are of the form:
#
#   format <id> <suffix> <description>
#   format <id> <idlist> <description>
#   translator <input> <output> <executable> <arg> <arg> ...
#
# where the fields are:
#
#   <id>          = format identifier
#   <suffix>      = file name suffix for a single format (e.g., tif)
#                   Use '(none)' to specify an empty suffix.
#   <idlist>      = format <id> list for a multiple format (e.g., tiff+jpeg)
#   <description> = format description
#
#   <input>      = translator input format identifier
#   <output>     = translator output format identifier
#   <executable> = executable performing the translation (e.g., convert_cf)
#   <arg>        = argument to <executable>
#
# The format <id> must be unique for each format.
#
# A format with an <idlist> specifies a multiple format that exports
# multiple single file formats.  The <idlist> contains the <id>
# identifiers of the single formats, separated by '+'.  They must match
# the <id> identifiers for single formats defined elsewhere in this
# file.  No translator line is specified for a multiple format.
#
# The format <description> will appear in the File Type menu in the
# Export file chooser.
#
# The translator <input> and <output> format identifiers must match the
# <id> identifiers for previously defined formats.
#
# Spaces may be included in the <executable> and <arg> fields by enclosing
# the fields in double quotes (").
#
# The <executable> string may be either a command name or the full path to
# an executable.  Environment variables and the '~' symbol (indicating the
# user's home directory) are evaluated in the string.  If the string is a
# command name, the user's command search path is searched to determine the
# full path.
#
# If the <executable> string does not reference an available executable, the
# associated translator is not defined and no warning message is generated.
# If you would like to be informed when translators are left undefined for
# this reason, add the '-informtranslators' option to the command line used
# to start the program.
#
# In the executable arguments, the strings '$INFILE' and '$OUTFILE' are
# replaced by the translator input and output file paths, respectively.
#
# Examples of definitions to accomplish translation from tiff to jpeg
# and multiple export of tiff and jpeg are:
#
#   format tiff  tif   Tagged Image File Format (tif)
#   format jpeg  jpg   JFIF-style JPEG (jpg)
#   format tiff_jpeg  tiff+jpeg  TIFF & JPEG (tif,jpg)
#   translator tiff  jpeg  convert_cf tiff:$INFILE jpeg:$OUTFILE

#----------------------------------------------------------------------
# FORMAT DEFINITIONS
#----------------------------------------------------------------------

# Native vector formats
format eps   eps   Encapsulated PostScript (eps)
format epsi  eps   EPS with bitmap preview (eps)
format epstm eps   EPS with TIFF preview (UNIX/Mac) (eps)
format epstl eps   EPS with TIFF preview (Windows) (eps)
format epswm eps   EPS with WMF preview (UNIX/Mac) (eps)
format epswl eps   EPS with WMF preview (Windows) (eps)
format mif   mif   FrameMaker Interchange Format (mif)
format wmf   wmf   Windows Metafile (wmf)
format emf   emf   Windows Enhanced Metafile (emf)

# Native raster formats
format tiff  tif   Tagged Image File Format (tif)
format gif   gif   CompuServe GIF87a (gif)

# Native Visual Thought document format
format vtx   vtx   Visual Thought Export (vtx)

# Vector formats supported by Perl scripts
format mif5      mif   FrameMaker (mif) [import by ref in FM5]
format imap_ncsa map   NCSA HTTPd server-side imagemap (map)
format imap_spy  map   Spyglass client-side imagemap (map)
format imap_html map   HTML-ready client-side imagemap (map)

# Multiple formats for imagemaps.
format web gif+imap_html GIF87a & HTML-ready imagemap (gif,map)

# Raster formats supported by ImageMagick
format bmp    bmp   Microsoft Windows Bitmap (bmp)
format gif89i gif   CompuServe interlaced GIF89a (gif)
format jpeg   jpg   JFIF-style JPEG (jpg)
format pict   pct   Macintosh PICT (pct)
format pdf    pdf   Portable Document Format (pdf)
format ppm    ppm   Portable Bitmap (ppm)
format sun    ras   Sun Raster (ras)
format sgi    rgb   Irix RGB (rgb)
format tga    tga   TrueVision Targa (tga)
format tiffc  tif   TIFF Compressed (tif)
format xbm    xbm   X11 Bitmap (xbm)
format xpm    xpm   X11 Pixmap (xpm)
format xwd    xwd   X11 Window Dump (xwd)

# Disabled raster formats supported by ImageMagick
# Enable the following formats by removing the leading '#' from the
# corresponding Translator definitions below
format avs   avs   AVS X Image (avs)
format fax   fax   Group 3 FAX (fax)
format gif89 gif   CompuServe GIF89a (gif)
format miff  miff  Magick Image File Format (miff)
format mtv   mtv   MTV Raytracing (mtv)
format pcx   pcx   ZSoft PC Paintbrush (pcx)
format vicar vicar VICAR Image (vicar)

# Other vector formats
format cdr   cdr   CorelDRAW (cdr)
format cgm   cgm   Computer Graphics Metafile (cgm)
format drw   drw   Micrografx Drawing (drw)
format dxf   dxf   AutoCAD Drawing Interchange (dxf)
format fmv   fmv   FrameVector (fmv)
format gem   gem   Graphics Environment Manager (gem)
format hpgl  hpgl  HP Graphics Language (hpgl)
format pcl   pcl   HP PCL (pcl)
format hpdj  hpdj  HP DeskJet (hpdj)
format hppj  hppj  HP PaintJet (hppj)
format iges  iges  Initial Graphics Exchange Spec. (iges)
format vec   vec   Island Draw (vec)
format wpg   wpg   WordPerfect Graphics (wpg)

# Formats for consumers
format xdpy (none) X display

#----------------------------------------------------------------------
# TRANSLATOR DEFINITIONS
#----------------------------------------------------------------------

# Perl script translators
translator mif  mif5      perl_cf -S mifref.bat $INFILE $OUTFILE
translator vtx  imap_ncsa perl_cf -S vtimap.bat -ncsa $INFILE $OUTFILE
translator vtx  imap_spy  perl_cf -S vtimap.bat -spyglass $INFILE $OUTFILE
translator vtx  imap_html perl_cf -S vtimap.bat -html $INFILE $OUTFILE

# ImageMagick translators
# The translator from tiff to gif is used only if native gif is unavailable
# (e.g., on a TrueColor display)
translator tiff  gif    convert_cf tiff:$INFILE gif87:$OUTFILE
translator tiff  bmp    convert_cf tiff:$INFILE bmp:$OUTFILE
translator tiff  gif89i convert_cf -interlace line tiff:$INFILE gif:$OUTFILE
translator tiff  jpeg   convert_cf tiff:$INFILE jpeg:$OUTFILE
translator tiff  pict   convert_cf tiff:$INFILE pict:$OUTFILE
translator tiff  pdf    convert_cf tiff:$INFILE pdf:$OUTFILE
translator tiff  ppm    convert_cf tiff:$INFILE pnm:$OUTFILE
translator tiff  sun    convert_cf tiff:$INFILE sun:$OUTFILE
translator tiff  sgi    convert_cf tiff:$INFILE sgi:$OUTFILE
translator tiff  tga    convert_cf tiff:$INFILE tga:$OUTFILE
translator tiff  tiffc  convert_cf tiff:$INFILE tiff:$OUTFILE
translator tiff  xbm    convert_cf tiff:$INFILE xbm:$OUTFILE
translator tiff  xpm    convert_cf tiff:$INFILE xpm:$OUTFILE
translator tiff  xwd    convert_cf tiff:$INFILE xwd:$OUTFILE

# ImageMagick translators for disabled formats
# Remove the leading '#' from the following Translator definitions
# to enable the corresponding formats defined above
#translator tiff  avs   convert_cf tiff:$INFILE avs:$OUTFILE
#translator tiff  fax   convert_cf tiff:$INFILE fax:$OUTFILE
#translator tiff  gif89 convert_cf tiff:$INFILE gif:$OUTFILE
#translator tiff  miff  convert_cf tiff:$INFILE miff:$OUTFILE
#translator tiff  mtv   convert_cf tiff:$INFILE mtv:$OUTFILE
#translator tiff  pcx   convert_cf tiff:$INFILE pcx:$OUTFILE
#translator tiff  vicar convert_cf tiff:$INFILE vicar:$OUTFILE

# Disabled Translators using xloadimage
# Remove the leading '#' from the following Translator definitions to
# generate these formats with xloadimage instead of ImageMagick
#translator tiff  jpeg  xloadimage -quiet -type tiff -dump jpeg $OUTFILE $INFILE
#translator tiff  ppm   xloadimage -quiet -type tiff -dump pbm $OUTFILE $INFILE

# Island series translators
# pict2vec is not included because only raster images could be generated
translator cgm   vec   cgm2vec $INFILE $OUTFILE
translator eps   vec   ps-to-vec $INFILE $OUTFILE
translator eps   pcl   ps-to-pcl $INFILE $OUTFILE
translator eps   hpdj  ps-to-hpdj $INFILE $OUTFILE
translator eps   hppj  ps-to-hppj $INFILE $OUTFILE

# Frame 4 translators
# picttomif is not included because only raster images could be generated
translator cgm   mif   cgmtomif $INFILE $OUTFILE

# Frame 5 translators
# pict2mif and pict2fmvect are not included because only raster images
# could be generated
translator cdr   fmv   cdr2fmvect $INFILE $OUTFILE
translator cgm   fmv   cgm2fmvect $INFILE $OUTFILE
translator drw   fmv   drw2fmvect $INFILE $OUTFILE
translator dxf   fmv   dxf2fmvect $INFILE $OUTFILE
translator gem   fmv   gem2fmvect $INFILE $OUTFILE
translator hpgl  fmv   hpgl2fmvect $INFILE $OUTFILE
translator iges  fmv   iges2fmvect $INFILE $OUTFILE
translator wmf   fmv   wmf2fmvect $INFILE $OUTFILE
translator wpg   fmv   wpg2fmvect $INFILE $OUTFILE

# Consumers
# These accept input only and do not produce output files.
translator tiff  xdpy  convert_cf tiff:$INFILE x:
