Description
There are several possible morse code translators.
- Text in, text/images/font out1
- Text in, sound out
- Sound in, text out (this requires some special receiving equipment)
1Make dots and dashes, images of dots and dashes,
a font, etc.?
Can the pygame module be used to make dit and dah sounds?
Things to think about
- Timing between dots, dashes, characters, words, etc.
- How long should a dot and dash be?
- Is there Python code that can make a "beeping" sound?
- Inputting Morse code signals requires special equipment,
but outputting does not.
- Special fonts are not generally available when interactive
programs run in a terminal window.
- What to do with non-Morse code characters?
- lowercase characters
- Special characters, punctuation, etc
- Start of message, End of message, etc
- ...
How did they do it in the "old" days?
Thoughts on Creating the Translator
- create a list/dictionary containing letters to dots/dashes translation.
- Create functions to make dots and dashes (sound/images/text)?
Create a test program to test the function.
- Create a function to accept user input and output dots and dashes.
Create a test program to test the function.
(Do you need to display a menu first?)
- Combine 1, 2, and 3.
Links
Morse Code (Wikipedia)
Morse Code Fonts
Morse Code Font
Learn Morse Code Online