I first learned the morse code while going on this website. Then I thought that it would have been fun to create an algorithm that can translate a message from morse code to plaintext anc vice versa. So here it is ! I've taken the internationally used morse code so that anyone could use it. It includes the letters A-Z, numbers 0-9, punctuation and all the prosigns included with this. You may find the table right below, or while using the 3 option in my code.
Some codes are related to other projects that I have done. They are available on the following links :
- Utilities Py - Library intended to facilitate the developer's life
- Adding a led support so that a Raspberry pi can make the led blink in order to transmit a morse code
- Translate Morse code to clear text
- Translate clear text to Morse code
- Contains a dictionary of Morse code
| Letter | Morse code | Number | Morse code |
|---|---|---|---|
| a | .- | 0 | ----- |
| b | -... | 1 | .---- |
| c | -.-. | 2 | ..--- |
| d | -.. | 3 | ...-- |
| e | . | 4 | ....- |
| f | ..-. | 5 | ..... |
| g | --. | 6 | -.... |
| h | .... | 7 | --... |
| i | .. | 8 | ---.. |
| j | .--- | 9 | ----. |
| k | -.- | ||
| l | .-.. | ||
| m | -- | ||
| n | -. | ||
| o | --- | ||
| p | .--. | ||
| q | --.- | ||
| r | .-. | ||
| s | ... | ||
| t | - | ||
| u | ..- | ||
| v | ...- | ||
| w | .-- | ||
| x | -..- | ||
| y | -.-- | ||
| z | --.. |
| Special | Morse code | Prosigns | Morse code |
|---|---|---|---|
| ! | -.-.-- | End of work | ...-.- |
| " | .-..-. | Error | ········ |
| & | .-... | Invitation to transmit | -.- |
| ' | .----. | Starting signal | -.-.- |
| ( | -.--. | New page signal | .-.-. |
| ) | -.--.- | Understood | ...-. |
| + | .-.-. | Wait | .-... |
| , | --..-- | ||
| - | -....- | ||
| . | .-.-.- | ||
| / | -..-. | ||
| : | ---... | ||
| ; | -.-.-. | ||
| = | -...- | ||
| ? | ..--.. | ||
| @ | .--.-. | ||
| _ | ..--.- |

