@@ -2,68 +2,68 @@ package morse
2
2
3
3
// alphaNumToMorse is a mapping of Alpha numeric characters to Morse code
4
4
var alphaNumToMorse = map [string ]string {
5
- "A" : ".-" ,
6
- "B" : "-..." ,
7
- "C" : "-.-." ,
8
- "D" : "-.." ,
9
- "E" : "." ,
10
- "F" : "..-." ,
11
- "G" : "--." ,
12
- "H" : "...." ,
13
- "I" : ".." ,
14
- "J" : ".---" ,
15
- "K" : "-.-" ,
16
- "L" : ".-.." ,
17
- "M" : "--" ,
18
- "N" : "-." ,
19
- "O" : "---" ,
20
- "P" : ".--." ,
21
- "Q" : "--.-" ,
22
- "R" : ".-." ,
23
- "S" : "..." ,
24
- "T" : "-" ,
25
- "U" : "..-" ,
26
- "V" : "...-" ,
27
- "W" : ".--" ,
28
- "X" : "-..-" ,
29
- "Y" : "-.--" ,
30
- "Z" : "--.." ,
31
- "1" : ".----" ,
32
- "2" : "..---" ,
33
- "3" : "...--" ,
34
- "4" : "....-" ,
35
- "5" : "....." ,
36
- "6" : "-...." ,
37
- "7" : "--..." ,
38
- "8" : "---.." ,
39
- "9" : "----." ,
40
- "0" : "-----" ,
41
- "." : ".-.-.-" , // period
42
- ":" : "---..." , // colon
43
- "," : "--..--" , // comma
44
- ";" : "-.-.-" , // semicolon
45
- "?" : "..--.." , // question
46
- "=" : "-...-" , // equals
47
- "'" : ".----." , // apostrophe
48
- "/" : "-..-." , // slash
49
- "!" : "-.-.--" , // exclamation
50
- "-" : "-....-" , // dash
51
- "_" : "..--.-" , // underline
52
- "\" " : ".-..-." , // quotation marks
53
- "(" : "-.--." , // parenthesis (open)
54
- ")" : "-.--.-" , // parenthesis (close)
55
- "()" : "-.--.-" , // parentheses
56
- "$" : "...-..-" , // dollar
57
- "&" : ".-..." , // ampersand
58
- "@" : ".--.-." , // at
59
- "+" : ".-.-." , // plus
60
- "Á" : ".--.-" , // A with acute accent
61
- "Ä" : ".-.-" , // A with diaeresis
62
- "É" : "..-.." , // E with acute accent
63
- "Ñ" : "--.--" , // N with tilde
64
- "Ö" : "---." , // O with diaeresis
65
- "Ü" : "..--" , // U with diaeresis
66
- " " : "......." , // word interval
5
+ "A" : ".-" ,
6
+ "B" : "-..." ,
7
+ "C" : "-.-." ,
8
+ "D" : "-.." ,
9
+ "E" : "." ,
10
+ "F" : "..-." ,
11
+ "G" : "--." ,
12
+ "H" : "...." ,
13
+ "I" : ".." ,
14
+ "J" : ".---" ,
15
+ "K" : "-.-" ,
16
+ "L" : ".-.." ,
17
+ "M" : "--" ,
18
+ "N" : "-." ,
19
+ "O" : "---" ,
20
+ "P" : ".--." ,
21
+ "Q" : "--.-" ,
22
+ "R" : ".-." ,
23
+ "S" : "..." ,
24
+ "T" : "-" ,
25
+ "U" : "..-" ,
26
+ "V" : "...-" ,
27
+ "W" : ".--" ,
28
+ "X" : "-..-" ,
29
+ "Y" : "-.--" ,
30
+ "Z" : "--.." ,
31
+ "1" : ".----" ,
32
+ "2" : "..---" ,
33
+ "3" : "...--" ,
34
+ "4" : "....-" ,
35
+ "5" : "....." ,
36
+ "6" : "-...." ,
37
+ "7" : "--..." ,
38
+ "8" : "---.." ,
39
+ "9" : "----." ,
40
+ "0" : "-----" ,
41
+ "." : ".-.-.-" , // period
42
+ ":" : "---..." , // colon
43
+ "," : "--..--" , // comma
44
+ ";" : "-.-.-" , // semicolon
45
+ "?" : "..--.." , // question
46
+ "=" : "-...-" , // equals
47
+ "'" : ".----." , // apostrophe
48
+ "/" : "-..-." , // slash
49
+ "!" : "-.-.--" , // exclamation
50
+ "-" : "-....-" , // dash
51
+ "_" : "..--.-" , // underline
52
+ "\" " : ".-..-." , // quotation marks
53
+ "(" : "-.--." , // parenthesis (open)
54
+ ")" : "-.--.-" , // parenthesis (close)
55
+ "()" : "-.--.-" , // parentheses
56
+ "$" : "...-..-" , // dollar
57
+ "&" : ".-..." , // ampersand
58
+ "@" : ".--.-." , // at
59
+ "+" : ".-.-." , // plus
60
+ "Á" : ".--.-" , // A with acute accent
61
+ "Ä" : ".-.-" , // A with diaeresis
62
+ "É" : "..-.." , // E with acute accent
63
+ "Ñ" : "--.--" , // N with tilde
64
+ "Ö" : "---." , // O with diaeresis
65
+ "Ü" : "..--" , // U with diaeresis
66
+ " " : "......." , // word interval
67
67
}
68
68
69
69
// morseToAlphaNum is a mapping of Alpha numeric characters to Morse code
0 commit comments