00001
00002 c
00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c All rights reserved.
00007 c
00008 c Redistribution and use in source and binary forms are permitted
00009 c provided that the above copyright notice and this paragraph are
00010 c duplicated in all such forms and that any documentation,
00011 c advertising materials, and other materials related to such
00012 c distribution and use acknowledge that the software was developed
00013 c by the author named above.
00014 c
00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019 c
00020 c
00021 subroutine hp sym out(string,islant)
00022 save
00023 character*(*) string
00024 character*1 ss
00025 parameter (slant=.2)
00026 c
00027 n=len(string)
00028 nn=n
00029 if(islant.eq.0)then
00030 write(6,10)0.,(string(i:i),i=1,n),char(3)
00031 10 format(' SL',f3.1,';LB',80a1)
00032 return
00033 end if
00034 i1=1
00035 15 do 20 i2=i1,n
00036 ss=string(i2:i2)
00037 if((ss.lt.'A'.and.ss.ne.' ').or.(ss.gt.'Z'.and.ss.lt.'a')
00038 + .or.ss.gt.'z')go to 30
00039 20 continue
00040 30 i2=i2-1
00041 nn=i2-i1+1
00042 write(6,10)slant,string(i1:i2),char(3)
00043 i1=i2+1
00044 if(i1.gt.n)return
00045 do 40 i2=i1,n
00046 ss=string(i2:i2)
00047 if((ss.ge.'A'.and.ss.le.'Z')
00048 + .or.(ss.ge.'a'.and.ss.le.'z'))go to 50
00049 40 continue
00050 50 i2=i2-1
00051 nn=i2-i1+1
00052 write(6,10)0.,string(i1:i2),char(3)
00053 i1=i2+1
00054 if(i1.gt.n)return
00055 go to 15
00056 end