Morse code interpreter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
morse.py
morse.rkt
requirements.txt

README.md

Morse

A simple morse code interpreter. Currently a naive, lookup-table implementation. I use mypy for type checking, 'cause it's fun..

Setup

Make sure you have Python 3.4, pip, and virtualenv. Then:

$ git clone git@github.com:bsima/morse.git && cd morse
$ virtualenv env
$ source env/bin/activate
(env)$ pip install -r requirements.txt
(env)$ python morse.py -h # Show usage information

Example

Morse will automatically detect the input method, just be sure to wrap <msg> in quotes:

(env)$ python morse.py "github"
--. .. - .... ..- -...
(env)$ python morse.py "--. .. - .... ..- -..."
github

Todo:

Implement the Boyer-Moore algorithm (or similar).