Index: mttroot/mtt/bin/trans/mtt_txt2m
==================================================================
--- mttroot/mtt/bin/trans/mtt_txt2m
+++ mttroot/mtt/bin/trans/mtt_txt2m
@@ -13,10 +13,13 @@
 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 # %% Version control history
 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 # %% $Id$
 # %% $Log$
+# %% Revision 1.13.4.1  2001/06/26 01:01:28  geraint
+# %% Makes input and state names available for input rep.
+# %%
 # %% Revision 1.13  2001/02/05 03:33:18  geraint
 # %% Convert user-defined txt to lower-case in translation.
 # %% Required by logic.m (Octave is case sensitive).
 # %%
 # %% Revision 1.12  2000/11/08 11:20:49  peterg
@@ -162,16 +165,23 @@
 esac
 
 # Generate the header
 mtt_header $system $representation m  > $outfile
 
-## Special for logic rep or input rep
-if [ "$representation" = "logic" -o "$representation" = "input" ]; then
+## Special for logic rep
+if [ "$representation" = "logic" ]; then
   echo >> $outfile
   echo "## Inputs" >> $outfile
   mtt_name2array $system input >> $outfile # Set up input by name
   echo >> $outfile
+  echo "## States" >>$outfile
+  mtt_name2array $system state >> $outfile # Set up state by name
+fi
+
+## Special for input rep
+if [ "$representation" = "input" ]; then
+  echo >> $outfile
   echo "## States" >>$outfile
   mtt_name2array $system state >> $outfile # Set up state by name
 fi
 
 # Write out the code from the txt file