MorseDict is used by the Morse class to look up Morse symbols as defined in the standard Morse alphabet. It can do several kinds of lookups and conversions which may be useful for different
all keys that are defined in the Morse alphabet.
a convenience method to post all keys.
the strings used to transliterate dot, dash, word break.
the dict of all dot-and-dash patterns corresponding to each key in the Morse alphabet. E.g. the pattern for $a is dot-dash, encoded here as [0, 1].
get the signs for a single character or symbol
char |
the char to look up |
get the sequence of signs for a word or text
word |
a string or sequence of chars and symbols |
look up code for single char or symbol
code |
a single char or symbol as defined in the keys |
same as at method
lookup dict from dot-dash patterns to characters or symbols
look up the corresponding letter or symbol for a given dot-dash code.
code |
a string of dots and dashes. |