$MORSE.REX: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added a link to the LINESIZE.REX program.)
m (added whitespace around links and references to links.)
Line 1: Line 1:
The following is the   '''$MORSE.REX'''   (REXX) program.
The following is the   '''$MORSE.REX'''   (REXX) program.
<br>The help for the &nbsp; '''$MORSE.REX''' &nbsp; REXX program is included here ──► [[$MORSE.HEL]].
<br>The help for the &nbsp; '''$MORSE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$MORSE.HEL]].
<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><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>Some translation is done for unsupported characters such as braces &nbsp; '''{''' &nbsp; '''}''', brackets &nbsp; '''[''' &nbsp; ''']''' &nbsp; and the like.
Line 6: Line 6:
<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>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.REX''' &nbsp; REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here ──► [[LINESIZE.REX]].
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].
<br><br>The &nbsp; '''$MORSE.REX''' &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><br>The &nbsp; '''$MORSE.REX''' &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>The &nbsp; '''$T.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$T.REX]].
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of '''$ERR.REX''' REXX program which is used to display error messages (via &nbsp; '''$T.REX''').
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''$ERR.REX''' &nbsp; REXX program which is used to display error messages (via &nbsp; '''$T.REX''').
<br>The &nbsp; '''$ERR.REX ''' &nbsp; REXX program is included here ──► [[$ERR.REX]].
<br>The &nbsp; '''$ERR.REX ''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$ERR.REX]].
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of '''SOUND.REX''' REXX program which is used to express sound (via the internal speaker).
<br><br>The &nbsp; '''$MORSE.REX''' &nbsp; REXX program makes use of &nbsp; '''SOUND.REX''' &nbsp; 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>The &nbsp; '''SOUND.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[SOUND.REX]].
<br><br>Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included here ──► [[CHANGESTR.REX]].
<br><br>Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[CHANGESTR.REX]].
<lang rexx>/**/trace off; parse arg !; if !all(arg()) then exit
<lang rexx>/**/trace off; parse arg !; if !all(arg()) then exit
if !cms then address ''
if !cms then address ''