char to cell map

This commit is contained in:
ethan merchant 2024-02-03 01:10:33 -05:00
parent 983c8a31a0
commit 11dbf882cd

View file

@ -1,4 +1,4 @@
using System.Security.AccessControl;
using System.Security.AccessControl;
namespace Main;
public class Mono {
@ -30,19 +30,144 @@ public class Mono {
}
}
// braille dots
// {{0, 0,
// 0, 0,
// 0, 0
// }}, // _
// {{1, 0,
// 0, 0,
// 0, 0
// }}, // a
// {{1, 0,
// 1, 0,
// 0, 0
// }}, // b
// key:(string) value:(int[] dots)
Dictionary<string, int[]> char_cell = new Dictionary<string, int[]> {
{ "a", new int[] {
1, 0,
0, 0,
0, 0
} },
{ "b", new int[] {
1, 0,
1, 0,
0, 0
} },
{ "c", new int[] {
1, 1,
0, 0,
0, 0
} },
{ "d", new int[] {
1, 1,
0, 1,
0, 0
} },
{ "e", new int[] {
1, 0,
0, 1,
0, 0
} },
{ "f", new int[] {
1, 1,
1, 0,
0, 0
} },
{ "g", new int[] {
1, 1,
1, 1,
0, 0
} },
{ "h", new int[] {
1, 0,
1, 1,
0, 0
} },
{ "i", new int[] {
0, 1,
1, 0,
0, 0
} },
{ "j", new int[] {
0, 1,
1, 1,
0, 0
} },
{ "k", new int[] {
1, 0,
0, 0,
1, 0
} },
{ "l", new int[] {
1, 0,
1, 0,
1, 0
} },
{ "m", new int[] {
1, 1,
0, 0,
1, 0
} },
{ "n", new int[] {
1, 1,
0, 1,
1, 0
} },
{ "o", new int[] {
1, 0,
0, 1,
1, 0
} },
{ "p", new int[] {
1, 1,
1, 0,
1, 0
} },
{ "q", new int[] {
1, 1,
1, 1,
1, 0
} },
{ "r", new int[] {
1, 0,
1, 1,
1, 0
} },
{ "s", new int[] {
0, 1,
1, 0,
1, 0
} },
{ "t", new int[] {
0, 1,
1, 1,
1, 0
} },
{ "u", new int[] {
1, 0,
0, 0,
1, 1
} },
{ "v", new int[] {
1, 0,
1, 0,
1, 1
} },
{ "w", new int[] {
0, 1,
1, 1,
0, 1
} },
{ "x", new int[] {
1, 1,
0, 0,
1, 1
} },
{ "y", new int[] {
1, 1,
0, 1,
1, 1
} },
{ "z", new int[] {
1, 0,
0, 1,
1, 1
} },
{ " ", new int[] {
0, 0,
0, 0,
0, 0
} },
};
// alphabet a-z
// string[] characters = new string[] {