SaveMySugar/python3-savemysugar.git
8 years agoMorseTranslator.py: remove unneeded code in sanitize_morse()
Antonio Ospite [Mon, 14 Dec 2015 17:31:44 +0000 (18:31 +0100)]
MorseTranslator.py: remove unneeded code in sanitize_morse()

The Morse string will never contain a '|' because it would have been
already replaced in a previous sanitization step.

Also we don't define anywhere that '|' can act as an alternative word
separator, so it should be replaced with a space just like any other
invalid character.

8 years agoMorseTranslator.py: fix sanitize_text
Antonio Ospite [Mon, 14 Dec 2015 16:38:35 +0000 (17:38 +0100)]
MorseTranslator.py: fix sanitize_text

Use a regex more adherent to the characters actually translated, also
follow the order in which the characters appear in the signals table.

8 years agoInitial import
Antonio Ospite [Thu, 10 Dec 2015 21:31:04 +0000 (22:31 +0100)]
Initial import