Examples
Read a radio call with slash-separated words
The slash is a word separator here, not an encoded slash character.
Input
-.-. --.-/-.. ./--. ....- .- -... -.-.Expected answer
CQ DE G4ABCCQ DE G4ABC
- Letter delimiter
Space- Word delimiter
Forward slash
Read a distress letter sequence
Decoding the letters does not generate audio or transmit a distress signal.
Input
... --- ...Expected answer
SOSSOS
- Letter delimiter
Space- Word delimiter
Line feed
Accept typographic middle dots and en dashes
Alternative dot and dash glyphs normalize to the same Morse alphabet.
Input
·– –··· –·–·Expected answer
ABCABC
- Letter delimiter
Space- Word delimiter
Line feed
Read digit groups separated by a newline
The newline separates the two number groups; output uses one space.
Input
--... ...--
---.. ---..Expected answer
73 8873 88
- Letter delimiter
Space- Word delimiter
Line feed
Decode an email-style address including the at sign
The at sign is a single Morse character, not a word boundary.
Input
.-,.--.-.,-...Expected answer
A@BA@B
- Letter delimiter
Comma- Word delimiter
Forward slash
Format reference: From Morse Code background and specification