$MORSE.REX: Difference between revisions

Content added Content deleted
m (added highlighting.)
m (added whitespace.)
 
Line 2: Line 2:




This program supports the ''International Morse code'' as well as the ''USA Morse code''   (the later being primarily used by the North American Railroads).
This program supports the   ''International Morse code''   as well 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.
Some translation is done for unsupported characters such as
braces   '''{'''   '''}''',
brackets   '''['''   ''']'''   and the like.


This REXX program normally shows Morse code words one word to a line before sounding.
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]].
The help for the   '''$MORSE.REX'''   REXX program is included
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).
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).


The   '''LINESIZE.REX'''   REXX program is included here   ──►   [[LINESIZE.REX]].
The   '''LINESIZE.REX'''   REXX program is included
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.
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.


The   '''$T.REX'''   REXX program is included here   ──►   [[$T.REX]].
The   '''$T.REX'''   REXX program is included
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.
The   '''$T.REX'''   REXX program makes use of   '''DELAY.REX'''   REXX
program which is used to delay (sleep) a specified amount time.


The   '''DELAY.REX '''   REXX program is included here   ──►   [[DELAY.REX]].
The   '''DELAY.REX '''   REXX program is included
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''').
The   '''$MORSE.REX'''   REXX program makes use of   '''$ERR.REX'''   REXX
program which is used to display error messages (via   '''$T.REX''').


The   '''$ERR.REX '''   REXX program is included here   ──►   [[$ERR.REX]].
The   '''$ERR.REX '''   REXX program is included
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).
The   '''$MORSE.REX'''   REXX program makes use of   '''SOUND.REX'''   REXX
program which is used to express sound (via the internal speaker).


The   '''SOUND.REX'''   REXX program is included here   ──►   [[SOUND.REX]].
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]].
Some older REXXes don't have a   '''changestr'''   BIF, so one is included
here   ──►   [[CHANGESTR.REX]].
<lang rexx>/*REXX program sounds out (on the PC speaker) Morse code for (almost) any given text.*/
<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*/
trace off /*suppress non-zero return code message*/