A Morse Code Training Application. https://bits.sigpipe.me/projects/cutecw/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

163 lines
1.9 KiB

intCode = 0x12;
inverseCode[intCode] = 'a';
intCode = 0x2111;
inverseCode[intCode] = 'b';
intCode = 0x2121;
inverseCode[intCode] = 'c';
intCode = 0x211;
inverseCode[intCode] = 'd';
intCode = 0x1;
inverseCode[intCode] = 'e';
intCode = 0x1121;
inverseCode[intCode] = 'f';
intCode = 0x221;
inverseCode[intCode] = 'g';
intCode = 0x1111;
inverseCode[intCode] = 'h';
intCode = 0x11;
inverseCode[intCode] = 'i';
intCode = 0x1222;
inverseCode[intCode] = 'j';
intCode = 0x212;
inverseCode[intCode] = 'k';
intCode = 0x1211;
inverseCode[intCode] = 'l';
intCode = 0x22;
inverseCode[intCode] = 'm';
intCode = 0x21;
inverseCode[intCode] = 'n';
intCode = 0x222;
inverseCode[intCode] = 'o';
intCode = 0x1221;
inverseCode[intCode] = 'p';
intCode = 0x2212;
inverseCode[intCode] = 'q';
intCode = 0x121;
inverseCode[intCode] = 'r';
intCode = 0x111;
inverseCode[intCode] = 's';
intCode = 0x2;
inverseCode[intCode] = 't';
intCode = 0x112;
inverseCode[intCode] = 'u';
intCode = 0x1112;
inverseCode[intCode] = 'v';
intCode = 0x122;
inverseCode[intCode] = 'w';
intCode = 0x2112;
inverseCode[intCode] = 'x';
intCode = 0x2122;
inverseCode[intCode] = 'y';
intCode = 0x2211;
inverseCode[intCode] = 'z';
intCode = 0x22222;
inverseCode[intCode] = '0';
intCode = 0x12222;
inverseCode[intCode] = '1';
intCode = 0x11222;
inverseCode[intCode] = '2';
intCode = 0x11122;
inverseCode[intCode] = '3';
intCode = 0x11112;
inverseCode[intCode] = '4';
intCode = 0x11111;
inverseCode[intCode] = '5';
intCode = 0x21111;
inverseCode[intCode] = '6';
intCode = 0x22111;
inverseCode[intCode] = '7';
intCode = 0x22211;
inverseCode[intCode] = '8';
intCode = 0x22221;
inverseCode[intCode] = '9';
intCode = 0x121212;
inverseCode[intCode] = '.';
intCode = 0x221122;
inverseCode[intCode] = ',';
intCode = 0x21121;
inverseCode[intCode] = '/';
intCode = 0x112211;
inverseCode[intCode] = '?';
intCode = 0x21112;
inverseCode[intCode] = '=';