This commit is contained in:
ethan merchant 2024-02-03 01:23:28 -05:00
parent 11dbf882cd
commit ecb00fad07

View file

@ -167,152 +167,46 @@ public class Mono {
0, 0,
0, 0
} },
};
// alphabet a-z
// string[] characters = new string[] {
// "_", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
// "k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
// "u", "v", "w", "x", "y", "z"
// };
Character[] characters = new Character[] {
new Character("_", new int[] {
{ ",", new int[] {
0, 0,
1, 0,
0, 0
} },
{ ".", new int[] {
0, 0,
0, 0
}),
new Character("a", new int[] {
1, 0,
0, 0,
0, 0
}),
new Character("b", new int[] {
1, 0,
1, 0,
0, 0
}),
new Character("c", new int[] {
1, 1,
0, 0,
0, 0
}),
new Character("d", new int[] {
1, 1,
0, 1,
0, 0
}),
new Character("e", new int[] {
1, 0,
0, 1,
0, 0
}),
new Character("f", new int[] {
1, 1,
1, 0,
0, 0
}),
new Character("g", new int[] {
1, 1,
1, 1,
0, 0
}),
new Character("h", new int[] {
1, 0,
1, 1,
0, 0
}),
new Character("i", new int[] {
0, 1,
1, 0,
0, 0
}),
new Character("j", new int[] {
0, 1,
1, 1,
0, 0
}),
new Character("k", new int[] {
1, 0,
0, 0,
1, 0
}),
new Character("l", new int[] {
1, 0,
1, 0,
1, 0
}),
new Character("m", new int[] {
1, 1,
0, 0,
1, 0
}),
new Character("n", new int[] {
1, 1,
0, 1,
1, 0
}),
new Character("o", new int[] {
1, 0,
0, 1,
1, 0
}),
new Character("p", new int[] {
1, 1,
1, 0,
1, 0
}),
new Character("q", new int[] {
1, 1,
1, 1,
1, 0
}),
new Character("r", new int[] {
1, 0,
1, 1,
1, 0
}),
new Character("s", new int[] {
0, 1,
1, 0,
1, 0
}),
new Character("t", new int[] {
0, 1,
1, 1,
1, 0
}),
new Character("u", new int[] {
1, 0,
0, 0,
1, 1
}),
new Character("v", new int[] {
1, 0,
1, 0,
1, 1
}),
new Character("w", new int[] {
0, 1,
1, 1,
0, 1
}),
new Character("x", new int[] {
1, 1,
} },
{ "/", new int[] {
0, 1,
0, 0,
1, 0
} },
{ ";", new int[] {
0, 0,
1, 1
}),
new Character("y", new int[] {
1, 1,
0, 1,
1, 1
}),
new Character("z", new int[] {
1, 0,
0, 1,
1, 1
})
1, 0
} },
};
// enum of layouts
public enum Layout {
Qwerty,
Colemak
}
Dictionary<Layout, string[]> layouts = new Dictionary<Layout, string[]> {
{ Layout.Colemak, new string[] {
"q", "w", "f", "p", "g", "j", "l", "u", "y", ";",
"a", "r", "s", "t", "d", "h", "n", "e", "i", "o",
"z", "x", "c", "v", "b", "k", "m", ",", ".", "/",
} },
{ Layout.Qwerty, new string[] {
"q", "w", "e", "r", "t", "y", "u", "i", "o", "p",
"a", "s", "d", "f", "g", "h", "j", "k", "l", ";",
"z", "x", "c", "v", "b", "n", "m", ",", ".", "/",
} },
};