Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-02 - 43,50266/txttab.lst
There are no other files named txttab.lst in the archive.




TTTTTTTTT XXX   XXX TTTTTTTTT TTTTTTTTT   AAA     BBBBBBBBB
   TTT     XXX XXX     TTT       TTT    AAA AAA   BBB   BBB
   TTT       XXX       TTT       TTT   AAA   AAA  BBBBBBB
   TTT     XXX XXX     TTT       TTT   AAAAAAAAA  BBB   BBB
   TTT    XXX   XXX    TTT       TTT   AAA   AAA  BBBBBBBBB


TXTTAB column formats tables of text read as data.  The user
specifies  the  number of columns and the number of items in
each column together with its width.  This  information  can
also  precede  the  text.   The  items to be inserted in the
table are read one item per line, starting with the top item
in  the  left  column  through  the  bottom item in the left
column, then the top item in the next  to  the  left  column
through  the bottom item in the next to the left column, and
so on.



                    Instructions for Use
                    ------------ --- ---

When started, TXTTAB will ask the user to supply  the  input
and  output  unit  numbers  and file names.  Since TXTTAB is
written  in  FORTRAN,  file  names  consist  of  at  most  5
characters,  and  will  always  have the DAT name extension.
The user is then asked  whether  the  specification  of  the
column  format  is  to  be  read from the start of the input
file, or to be  supplied  by  him  in  conversational  mode.
Default  answers  are  supplied if requests for unit numbers
are answered with zeroes or if requests for names (or for  a
Y  or N) are answered with blanks (space characters) or with
just a carriage return.  A negative response  to  a  request
for  a  unit  number  will  cause  the  default answer to be
assumed for that request and for those not yet asked.  These
questions and their default answers are as follow:

     Request                                         Default

     INPUT UNIT NUMBER =                             1
     INPUT FILE NAME =                               INPUT
     OUTPUT UNIT NUMBER =                            20
     OUTPUT FILE NAME =                              OUTPU
     IS FORMAT SPECIFIED IN INPUT FILE (Y OR N) =    Y

If the specification of the column format is not to be  read
from  the  start of the input file, the program will proceed
to ask the user for the number of columns to  be  read,  and
for the the number of items in each column and for the width
of each column as a number of characters.  A zero answer  to
the  request  for  the  number  of  columns  will  cause the
conversation and the simultaneous reading  of  columns  from
the  input  file  to  continue until either the width of the
                                                    Page   2



table has been filled to the maximum  of  60  characters  or
until  the  end-of-file  is  read in the input file.  At any
time when the user is  asked  to  specify  a  column  length
(other  than  of  the  first) he can supply a zero answer to
cause the already established pattern to be repeated  across
the  remaining  width  of  the  table.  A zero answer to the
request for the width of a column will cause the  column  to
be  read  without its appearing in the output.  For example,
to get columns of length 50 with odd numbered columns  being
5  characters  wide  and  even  numbered  columns  being  10
characters wide, the following responses could be given.

     NUMBER OF COLUMNS = 0 (or carriage return)
     COLUMN  1 LENGTH = 50
     COLUMN  1 WIDTH  = 5
     COLUMN  2 LENGTH = 50
     COLUMN  2 WIDTH  = 10
     COLUMN  3 LENGTH = 0 (or carriage return)

If conversational mode was not selected, this same data must
appear  at  the  start  of  the  input  file.  The number of
columns would then appear on the first line of the file, and
the lengths and widths would appear on a single new line for
each column until all had been specified  or  until  a  zero
column   length   selected  repetition  of  the  established
pattern.  The specifications supplied in conversational mode
for the previous example could have instead been supplied by
the following lines at the start of the input file.

     0
     50 5
     50 10
     0

The maximum size of the constructed  table  is  set  by  the
dimension  of the array used to store the text read from the
input file.  This array is large enough to store a table  of
66 lines each of 60 characters which is the maximum width of
a line.  The table can contain more lines if these lines are
shorter.

                                 author:  Donald E. Barth
                                          Chemistry Dept.
                                          Harvard University
                                          January, 1973