cmorse
cmorse copied to clipboard
A simple text to Morse code converter
trafficstars
The development is currently put on hold - only necessary patches will be applied. No new features will be added, unless I find a new potential project maintainer. If you'd like to become one, please contact me.
cmorse
cmorse is a simple text to Morse code converter.
Screenshot of v1.1
Installing cmorse
- Add PPA to your system -
sudo add-apt-repository ppa:mrjjot/cmorse - Update software lists -
sudo apt-get update - Install
cmorsepackage -sudo apt-get install cmorse
Usage
cmorse [OPTIONS]
Supported command line options:
-a/--append- Append to file instead of overwriting-d/--decrypt- Convert from Morse code to regular text-h/--help- Display help message-i/--input- Specify input file in next argument-o/--output- Specify input file in next argument-p/--prosginsdisabled- Disable automatic prosign insertion (like.-.-instead of new line)-u/--uppercase- Output uppercase text, when decrypting-v/--version- Display software version number
For example, cmorse -i example.txt -o example.morse will encode example.txt and store Morse code in example.morse.
To reverse process use cmorse -d -i example.morse -o decrypted.txt.
When input file is not specified, cmorse will read stdin until EOF or EOT character occurs.
Same applies to output files - when not specified, cmorse will write to stdout.
Building from source
- Clone git repository -
git clone https://github.com/Jacajack/cmorse.git && cd cmorse - Invoke makefile -
make all - To install use
sudo make install, and to uninstall -sudo make uninstall.
Developing cmorse with Docker
- Clone git repository -
git clone https://github.com/Jacajack/cmorse.git && cd cmorse - Build docker image -
docker build -t cmorse . - Run
cmorsebinary using docker container based on the cmorse image -docker run -it cmorse cmorse