Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion app/src/main/java/net/iowaline/dotdash/DotDashIMEService.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void onCreate() {
this.autocommit = this.prefs.getBoolean("autocommit", false);

// TODO Replace this with an XML file
//International morse code 1920
morseMap = new Hashtable<>();
morseMap.put(".-", "a");
morseMap.put("-...", "b");
Expand Down Expand Up @@ -136,6 +137,7 @@ public void onCreate() {
morseMap.put("---..", "8");
morseMap.put("----.", "9");
morseMap.put("-----", "0");
//Punctuation marks and symbols
morseMap.put(".----.", "\'");
morseMap.put(".--.-.", "@");
morseMap.put(".-...", "&");
Expand All @@ -155,6 +157,7 @@ public void onCreate() {
morseMap.put("-.-.-.", ";");
morseMap.put("-..-.", "/");
morseMap.put("..--.-", "_");
morseMap.put("-....-", "—");
// Aaron Wells' custom additions to Morse code
morseMap.put("....--", "#");
morseMap.put("-.-.-", "*");
Expand All @@ -169,7 +172,18 @@ public void onCreate() {
morseMap.put(".--.---", "^");
morseMap.put(".-..-", "\\");
morseMap.put(".--...", "|");

morseMap.put("...-..-", "$");
//special commands
//morseMap.put(".-.-", "UNKNOWN STATION");
morseMap.put(".-.-.", "OUT");
morseMap.put("...-.", "Verified");
morseMap.put("..-.-", "INTERROGATIVE");
morseMap.put("........", "CORRECTION");
//morseMap.put(".-.-.", "TRANSMISSION; OUT");
morseMap.put("-...-", "BREAK");
morseMap.put("-.-.-", "ATTENTION");
morseMap.put("...---...", "SOS");

updateNewlinePref();

// This variable is used in onKey to determine how many
Expand Down