Formatting
Morse here is a written code, not a sound file. Letters become dots and dashes separated by spaces, and words are separated by a slash. SOS NOW encodes to ... --- ... / -. --- .-- . The sentence Odd socks in the dryer. encodes to --- -.. -.. / ... --- -.-. -.- ... / .. -. / - .... . / -.. .-. -.-- . .-. .-.-.- because the period has its own pattern, .-.-.-.
The alphabet is a fixed list: A–Z, digits, and a handful of punctuation marks including period, comma, question mark, apostrophe, slash and a few symbols. A character outside that list stops the conversion with the character named, rather than skipping it. Case does not matter on the way to Morse. On the way back, letters come out as capitals.
Direction chooses the way. Decode splits on the slash for words and on spaces for letters. An extra space or a dash that is not in the table is an unknown signal, not a guess.
Direction encode. Text: SOS NOW
... --- ... / -. --- .--
The slash is the word gap. Without it, a run of patterns is one word and will not round-trip into the sentence you typed.
Yes. A period is .-.-.- . The sentence Odd socks in the dryer. ends with that pattern, not with a bare dot.
Only the listed letters, digits and punctuation marks have patterns. é is not in the table, so the page stops instead of dropping the character.
Set Direction to decode. Separate words with a slash and letters with spaces, the same way the encoder writes them.
The page uses a slash between words and a space between letters. It does not emit timing, Farnsworth spacing or audio.