$MORSE.REX: Difference between revisions

m
added whitespace.
m (added highlighting.)
m (added whitespace.)
 
Line 2:
 
 
This program supports the   ''International Morse code'' as well as the ''USA Morse code''   (theas laterwell being primarily used by the North American Railroads).as
the   ''USA Morse code''   (the later being primarily used by the
North American Railroads).
 
Some translation is done for unsupported characters such as braces   '''{'''   '''}''', brackets   '''['''   ''']'''   and the like.
braces   '''{'''   '''}''',
brackets   '''['''   ''']'''   and the like.
 
This REXX program normally shows Morse code words one word to a line before sounding.
 
This REXX programs only works
This REXX programs only works for   '''Regina'''   and   '''PC/REXX''',   but   other REXXes (specifically '''R4''' and '''ROO''')   will only display the Morse code, but not sound it.
for   '''Regina'''   and   '''PC/REXX''',   but   other
REXXes (specifically '''R4''' and '''ROO''')   will only display the Morse code,
but not sound it.
 
 
The help for the   '''$MORSE.REX'''   REXX program is included here   ──►   [[$MORSE.HEL]].
here   ──►   [[$MORSE.HEL]].
 
 
The   '''$MORSE.REX'''   REXX program makes use of   '''LINESIZE'''   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).
 
The   '''LINESIZE.REX'''   REXX program is included here   ──►   [[LINESIZE.REX]].
here   ──►   [[LINESIZE.REX]].
 
 
The   '''$MORSE.REX'''   REXX program makes use of   '''$T.REX'''   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   '''$T.REX'''   REXX program is included here   ──►   [[$T.REX]].
here   ──►   [[$T.REX]].
 
 
The   '''$T.REX'''   REXX program makes use of   '''DELAY.REX'''   REXX program which is used to delay (sleep) a specified amount time.
program which is used to delay (sleep) a specified amount time.
 
The   '''DELAY.REX '''   REXX program is included here   ──►   [[DELAY.REX]].
here   ──►   [[DELAY.REX]].
 
 
The   '''$MORSE.REX'''   REXX program makes use of   '''$ERR.REX'''   REXX program which is used to display error messages (via   '''$T.REX''').
program which is used to display error messages (via   '''$T.REX''').
 
The   '''$ERR.REX '''   REXX program is included here   ──►   [[$ERR.REX]].
here   ──►   [[$ERR.REX]].
 
 
The   '''$MORSE.REX'''   REXX program makes use of   '''SOUND.REX'''   REXX program which is used to express sound (via the internal speaker).
program which is used to express sound (via the internal speaker).
 
The   '''SOUND.REX'''   REXX program is included here   ──►   [[SOUND.REX]].
 
 
Some older REXXes don't have a   '''changestr'''   BIF, so one is included here   ──►   [[CHANGESTR.REX]].
here   ──►   [[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*/