morrse is a command line tool to encode text into morse and decode morse code
- enc
- dec
- The separator between letters are spaces
- The separator between words while decoding morse is "/" by default but can be "," or ";"
You need to have pyinstaller to compile the source code into binary. You can install it with:
pip3 install pyinstallerClone the repository and create a binary:
git clone https://github.com/1r0nx/morrse
cd morrse
chmod +x build.sh
./build.sh
sudo cp dist/morrse /usr/binYou can now use morrse as a simple linux commands
Or run it as a script:
git clone https://github.com/1r0nx/morrse
cd morrse
chmod +x morrse.py
./morrse.pyβ― morrse enc -s 'this is morse code'
- .... .. ... / .. ... / -- --- .-. ... . / -.-. --- -.. .β― morrse dec -s '- .... .. ... / .. ... / -- --- .-. ... . / -.-. --- -.. .'
THIS IS MORSE CODEβ― morrse dec -s '- .... .. ... , .. ... , -- --- .-. ... . , -.-. --- -.. .'
THIS IS MORSE CODEβ― morrse dec -s '- .... .. ... ; .. ... ; -- --- .-. ... . ; -.-. --- -.. .'
THIS IS MORSE CODEMIT License
Pull Requests and suggestions are welcome. Please follow standard coding practices and document your changes.