A simple Morse Code translator written in Python.
https://github.com/willy-r/morse-translator.git
morse-translator
directory:$ cd morse-translator
$ pip install -r requirements.txt
To translate normal text to Morse Code use:
$ python morse.py -t TEXT
To translate Morse Code to text use:
$ python morse.py -f MORSE
Note: If the character for both options is not in the morse_tables.json file, the character will be replaced with '#'.
To play the Morse Code sound use the -s
option in both options:
$ python morse.py -s -t TEXT
$ python morse.py -s -f MORSE
Enter $ python morse.py -h
to see all commands.
$ python morse.py -t 'morse code!'
-- --- .-. ... . / -.-. --- -.. . -.-.--
$ python morse.py -t morse
-- --- .-. ... .
$ python morse.py -t 1999
.---- ----. ----. ----.
$ python morse.py -t 'maçã'
-- .- # #
$ python morse.py -f '-- --- .-. ... . / -.-. --- -.. . -.-.--'
MORSE CODE!
$ python morse.py -f '-- --- .-. ... .'
MORSE
$ python morse.py -f '.---- ----. ----. ----.'
1999
$ python morse.py -f '-- .- # #'
MA##
To get started...
Option 1
Option 2
https://github.com/willy-r/morse-translator.git
https://github.com/willy-r/morse-translator/compare
.Reach out to me at one of the following places!
@lliw_r