Browse Source

updates

master
dirkson 5 months ago
parent
commit
bccd90d3c6
1 changed files with 49 additions and 1 deletions
  1. +49
    -1
      src/dict.c

+ 49
- 1
src/dict.c View File

@@ -1,5 +1,5 @@

char colemak[10][3] = {
/* char colemak[10][3] = {
{ 'q', 'a', 'z' }, //0 a
{ 'w', 'r', 'x' }, //1 b
{ 'f', 's', 'c' }, //2 c
@@ -10,8 +10,56 @@ char colemak[10][3] = {
{ 'u', 'e', ',' }, //7 f
{ 'y', 'i', '.' }, //8 g
{ ';', 'o', '/' }, //9 h
}; */

#define GRP_1 1
#define GRP_2 2
#define GRP_3 4
#define GRP_4 8
#define GRP_5 16
#define GRP_6 32
#define GRP_7 64
#define GRP_8 128

unsigned short int colemak[26] = {
GRP_1, //a
GRP_4, //b
GRP_3, //c
GRP_4, //d
GRP_6, //e
GRP_3, //f
GRP_4, //g
GRP_5, //h
GRP_7, //i
GRP_5, //j
GRP_5, //k
GRP_5, //l
GRP_5, //m
GRP_5, //n
GRP_8, //o
GRP_4, //p
GRP_1, //q
GRP_2, //r
GRP_3, //s
GRP_4, //t
GRP_6, //u
GRP_4, //v
GRP_2, //w
GRP_2, //x
GRP_7, //y
GRP_1, //z
};

typedef struct kbd_chord_tree_t
{
char *str;
int len;
struct kbd_chord_tree_t *next;
} kbd_chord_tree_t;





int main(int argc, char* argv[])
{


Loading…
Cancel
Save