$MORSE.REX: Difference between revisions

m
added whitespace.
(Move to REXX library routines category)
m (added whitespace.)
 
(4 intermediate revisions by the same user not shown)
Line 1:
The following is the   '''$MORSE.REX'''   (REXX) program.
 
<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).
This program supports the &nbsp; ''International Morse code'' &nbsp; as well as
<br>Some translation is done for unsupported characters such as braces &nbsp; '''{''' &nbsp; '''}''', brackets &nbsp; '''[''' &nbsp; ''']''' &nbsp; and the like.
<br><br>This program supports the ''International Morse code'' as well as the&nbsp; ''USA Morse code'' &nbsp; (the later being primarily used by the North American Railroads).
<br>This REXX program normally shows Morse code words one word to a line before sounding.
North American Railroads).
<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).
Some translation is done for unsupported characters such as
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].
braces &nbsp; '''{''' &nbsp; '''}''',
<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>Thebrackets &nbsp; '''$T.REX[''' &nbsp; REXX program is included here''']''' &nbsp; ──►and &nbsp;the [[$T.REX]]like.
 
<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>This REXX program normally shows Morse code words one word to a line before sounding.
<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 &nbsp; '''SOUND.REX''' &nbsp; REXX program which is used to express sound (via the internal speaker).
This REXX programs only works
<br>The &nbsp; '''SOUND.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[SOUND.REX]].
<br><br>Some older REXXes don't have afor &nbsp; '''changestrRegina''' &nbsp; BIF, soand one&nbsp; is included here'''PC/REXX''', &nbsp; ──►but &nbsp; [[CHANGESTR.REX]].other
REXXes (specifically '''R4''' and '''ROO''') &nbsp; will only display the Morse code,
but not sound it.
 
 
The help for the &nbsp; '''$MORSE.REX''' &nbsp; REXX program is included
here &nbsp; ──► &nbsp; [[$MORSE.HEL]].
 
 
<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).
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 &nbsp; ──► &nbsp; [[LINESIZE.REX]].
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.
program which is used to display text and/or write the text to a file.
 
The &nbsp; '''$T.REX''' &nbsp; REXX program is included
here &nbsp; ──► &nbsp; [[$T.REX]].
 
 
<br>The &nbsp; '''SOUND$T.REX''' &nbsp; REXX program ismakes includeduse hereof &nbsp; ──►'''DELAY.REX''' &nbsp; [[SOUND.REX]].REXX
program which is used to delay (sleep) a specified amount time.
 
The &nbsp; '''DELAY.REX ''' &nbsp; REXX program is included
here &nbsp; ──► &nbsp; [[DELAY.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''').
program which is used to display error messages (via &nbsp; '''$T.REX''').
 
<br>The &nbsp; '''$ERR.REX ''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$ERR.REX]].
here &nbsp; ──► &nbsp; [[$ERR.REX]].
 
 
<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).
program which is used to express sound (via the internal speaker).
 
<br>The help for the &nbsp; '''$MORSESOUND.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$MORSESOUND.HELREX]].
 
 
Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included
here &nbsp; ──► &nbsp; [[CHANGESTR.REX]].
<lang rexx>/*REXX program sounds out (on the PC speaker) Morse code for (almost) any given text.*/
trace off /*suppress non-zero return code message*/