morse-code.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": "-----", | |
"1": ".----", | |
"2": "..---", | |
"3": "...--", | |
"4": "....-", | |
"5": ".....", | |
"6": "-....", | |
"7": "--...", | |
"8": "---..", | |
"9": "----.", | |
"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": "--..", | |
".": ".-.-.-", | |
",": "--..--", | |
"?": "..--..", | |
"!": "-.-.--", | |
"-": "-....-", | |
"/": "-..-.", | |
"@": ".--.-.", | |
"(": "-.--.", | |
")": "-.--.-" | |
} |
Thanks i used this array to make a morsecode machine in python. Thanks a lot! btw the video of it can be found here .. https://www.youtube.com/watch?v=VXbkl6hj9dY
Thanks, this is very helpful!
Cheers!
Thank you for saving my time
Thanks a lot!
awesome, thanks so much
You just saved me 20 minutes. Thanks much!
thankss, i haddnt the bravour to copy my dict inversed...
thanks, you saved me sooo much time
What a time saver, thanks!
Thank you this is great time saver.
Thank you!
thank you
Thank you!
Thanks Buddy!!!
thanks :)
Reverse :)
{
'-----': '0',
'.----': '1',
'..---': '2',
'...--': '3',
'....-': '4',
'.....': '5',
'-....': '6',
'--...': '7',
'---..': '8',
'----.': '9',
'.-': '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',
'.-.-.-': '.',
'--..--': ',',
'..--..': '?',
'-.-.--': '!',
'-....-': '-',
'-..-.': '/',
'.--.-.': '@',
'-.--.': '(',
'-.--.-': ')',
}
Thanks saved me a bunch of typing.
This is what I built with it: https://github.com/LevaniVashadze/simple_morse_code_decoder_and_encoder
Thank you !
Thanks
Great
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This just saved me about 20 minutes. Thanks.