Skip to content

Instantly share code, notes, and snippets.

@GrHalbgott
Created March 16, 2025 01:21
Show Gist options
  • Save GrHalbgott/9fa480cfcd776f67eb286a6e1067c5fd to your computer and use it in GitHub Desktop.
Save GrHalbgott/9fa480cfcd776f67eb286a6e1067c5fd to your computer and use it in GitHub Desktop.
A JSON dictionary for Morse code translation
{
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
"J": ".---",
"K": "-.-",
"L": ".-..",
"M": "--",
"N": "-.",
"O": "---",
"P": ".--.",
"Q": "--.-",
"R": ".-.",
"S": "...",
"T": "-",
"U": "..-",
"V": "...-",
"W": ".--",
"X": "-..-",
"Y": "-.--",
"Z": "--..",
"0": "-----",
"1": ".----",
"2": "..---",
"3": "...--",
"4": "....-",
"5": ".....",
"6": "-....",
"7": "--...",
"8": "---..",
"9": "----.",
" ": "/",
"_": "..--.-",
"-": "-....-",
",": "--..--",
";": "-.-.-",
":": "---...",
"!": "-.-.--",
"?": "..--..",
".": ".-.-.-",
"'": ".----.",
"(": "-.--.",
")": "-.--.-",
"@": ".--.-.",
"*": "-..-.",
"/": "-..-.",
"\"": ".-..-.",
"\n": "\n",
"&": ".-...-",
"#": "--.--",
"%": "---..-",
"+": ".-.-.",
"=": "-...-",
"$": ".-..."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment