This is an interactive application that translates raw morse code into readable text and even speaks it back to you on your computer speakers via the Mac OS X 'say' command. It supports the entire alphabet A-Z, and numbers 0-9. It also supports colorized output via the rainbow gem.
You *MUST install the rainbow gem for the pretty colorized output:
gem install rainbow
require 'rainbow'
./morse_code.rb
- Shell / Commandline (CLI) application allowing:
- Translation of the International Morse Code to text
- Supports the entire alphabet A-Z
- Supports numbers 0-9
- Speaks back the translated morse code to you on your speakers via the Mac OS X say command. cool huh...
- Tested on ruby version/s:
-
ruby 2.0.0p0 (2013-02-24 revision 39474)
-
ruby 1.9.3
-
-
05/14/2013 - Simple code updates by Rick Flores Added the feature for the translated morse code to be played back to the user via his speakers after program executes. Fixed the extra white-space issue with help from Mark Thorson. Made other cosmetic, and code refactoring improvements as well.
-
05/12/2013 - Simple code updates by Rick Flores Added the acceptance of user input vs requiring the morse code string hardcoded into the prgoram. Added the ability to include numbers 0..9 in the script as well. Made it more user friendly
-
05/09/2013 - Updated README.md
- Possible Rails UI in the future
- Rick Flores (nanotechz9l) -- 0xnanoquetz9l[--at--]gmail.com
This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.
http://basgys.tumblr.com/post/19888399588/a-ruby-morse-code-interpreter