From ac5940be9df4d40ab27d3280fcb9b0eb499ccb89 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Fri, 20 Feb 2004 11:55:38 +0000 Subject: [PATCH] Add some missing punctuation symbols, in particular @ which (according to a recent Press Association release) was added to Morse code by the ITU in December. @ was previously used for the SK prosign, which is now spelt &. Obtained from: http://en.wikipedia.org/wiki/Morse_code --- games/morse/morse.6 | 2 +- games/morse/morse.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/games/morse/morse.6 b/games/morse/morse.6 index 21be6c9a2087..74aa5eb3faa4 100644 --- a/games/morse/morse.6 +++ b/games/morse/morse.6 @@ -102,7 +102,7 @@ Not all prosigns have corresponding characters. Use .Ql # for .Em AS , -.Ql @ +.Ql & for .Em SK , .Ql * diff --git a/games/morse/morse.c b/games/morse/morse.c index 3b7a4048f1e2..f02e80719a58 100644 --- a/games/morse/morse.c +++ b/games/morse/morse.c @@ -120,6 +120,8 @@ static const struct morsetab mtab[] = { {',', "--..--"}, {'.', ".-.-.-"}, + {'"', ".-..-."}, + {'!', "..--."}, {'?', "..--.."}, {'/', "-..-."}, {'-', "-....-"}, @@ -130,11 +132,12 @@ static const struct morsetab mtab[] = { {')', "-.--.-"}, {'$', "...-..-"}, {'+', ".-.-."}, /* AR */ + {'@', ".--.-."} /* prosigns without already assigned values */ {'#', ".-..."}, /* AS */ - {'@', "...-.-"}, /* SK */ + {'&', "...-.-"}, /* SK */ {'*', "...-."}, /* VE */ {'%', "-...-.-"}, /* BK */