$MORSE.REX: Difference between revisions

1,556 bytes added ,  11 years ago
added links to auxiliary REXX programs. -- ~~~~
(added the $MORSE.REX (REXX) program. -- ~~~~)
 
(added links to auxiliary REXX programs. -- ~~~~)
Line 1:
The following is the   '''$MORSE.REX'''   (REXX) program.
<br>The help for the &nbsp; '''$MORSE.REX''' &nbsp; REXX program is included here ──► [[$MORSE.HEL]].
<lang rexx>/**/trace o; parse arg !; if !all(arg()) then exit
<br><br>This program supports the ''International Morse code'' as well as the ''USA Morse code'' &nbsp; (the later being primarily used by the North American Railroads).
<br>Some translation is done for unsupported characters such as braces &nbsp; '''{''' &nbsp; '''}''', brackets &nbsp; '''[''' &nbsp; ''']''' &nbsp; and the like.
<br>This REXX program normally shows Morse code words one word to a line before sounding.
<br><br>This REXX programs only works for Regina and PC/REXX, but other REXXes (specifically R4) will only display the Morse code, but not sound it.
<br><br>The &nbsp; '''$MORSE''' &nbsp; REXX program makes use of &nbsp; '''$T.REX''' &nbsp; REXX program which is used to display text and/or write the text to a file.
<br>The &nbsp; '''$T.REX''' &nbsp; REXX program is included here ──► [[$T.REX]].
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of '''$ERR''' REXX program which is used to display error messages (via '''$T''').
<br>The &nbsp; '''$ERR.REX ''' &nbsp; REXX program is included here ──► [[$ERR.REX]].
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of '''SOUND''' REXX program which is used to express sound (via the internal speaker).
<br>The &nbsp; '''SOUND.REX''' &nbsp; REXX program is included here ──► [[SOUND.REX]].
<br><br>Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included here ──► [[CHANGESTR.REX]].
<lang rexx>/**/trace ooff; parse arg !; if !all(arg()) then exit
if !cms then address ''
signal on halt; signal on novalue; signal on syntax