Text vs. Non-Text vs. PostScript

1. Text vs. Non-Text

Text files, also referred to as plain text or ASCII, consists of normal words/numbers/punctuation. You can edit such files with the simplest text editors (vi, emacs, pico, nedit). Email messages are text, Fortran source code is text, shell scripts are text, even the following ``ASCII art'' is text;
      _____         .    _  .
     /#  /_\_       |\_|/__/|
    |   |/o\o\     / / \/ \  \
    |   \\_/_/    /__|o||o|__ \
   /  |_   |    |/_  \_/\_/ _\ |
  |   ||\_ ~|   | |  (____) | ||
  |   ||| \/    \/\____/\__/  //
  |   |||_      (_/          ||
   \_//  |       |           ||
     ||  |       |           ||\
     ||_  \       \         //_/
     \_|  o|       \_______//
     /\___/        __ || __||
    /  ||||__     (____(____)
      (____)_)    /***********\
     ----------------------
      Happy Happy Joy Joy

In short, if you can type it on a keyboard or typewriter, it's text.

The following image is NOT text;

nor is the file ``a.out'' that I get when compiling a C++ or Fortran program. Such nontext files are also called binary files.

Here's what you do with a plain text file;

2. PostScript Files

PostScript files are, strictly speaking, text files, but a special kind of text file containing commands in the PostScript page-description language. Unless you learn the PostScript language, the contents of such a file may bewilder you; however, here are some simple tips.

3. Non-Text Files

Non-text or binary files, neither plain text nor PostScript, cannot be printed directly. Many binary files, like compiled programs or audio files, do not have visual content and are never intended to be printed. Others, like image files in JPG or PNG format, can only be printed from within graphics/viewing software, unless they are explicitly converted to PostScript and the resulting file printed with the lp command.

JPEG and PNG images can be converted to PostScript, on Unix computers, by commands like convert or xv. Also, heavy-duty software like IDL or Mathematica or Matlab can read and display images from JPG and PNG files; from there you can convert and/or print according to that software's usual methods.