add Georgian layout

This commit is contained in:
Sam Bowlby 2021-12-06 05:32:42 -06:00 committed by John Sullivan
parent 780a83dba5
commit c541c7dbd6
3 changed files with 1530 additions and 4 deletions

View File

@ -21,7 +21,7 @@ struct clr_scheme scheme1 = {
/* layers is an ordered list of layouts, used to cycle through */
static enum layout_id layers[] = {
Full, // First layout is the default layout on startup
Special, Emoji, Simple, SimpleGrid, Nav, Dialer, Cyrillic, Arabic,
Special, Emoji, Simple, SimpleGrid, Nav, Dialer, Cyrillic, Arabic, Georgian,
NumLayouts // signals the last item, may not be omitted
};

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@ enum layout_id {
Dialer,
Cyrillic,
Arabic,
Georgian,
Emoji,
Nav,
Landscape,
@ -66,7 +67,7 @@ enum layout_id {
};
static struct key keys_full[], keys_special[], keys_simple[], keys_simplegrid[],
keys_cyrillic[], keys_arabic[], keys_emoji[], keys_nav[], keys_landscape[],
keys_cyrillic[], keys_arabic[], keys_georgian[], keys_emoji[], keys_nav[], keys_landscape[],
keys_compose_a[], keys_compose_e[], keys_compose_y[], keys_compose_u[],
keys_compose_i[], keys_compose_o[], keys_compose_w[], keys_compose_r[],
keys_compose_t[], keys_compose_p[], keys_compose_s[], keys_compose_d[],
@ -88,6 +89,7 @@ static struct layout layouts[NumLayouts] = {
[Cyrillic] = {keys_cyrillic, "cyrillic", "cyrillic"},
[Dialer] = {keys_dialer, "latin", "dialer"},
[Arabic] = {keys_arabic, "arabic", "arabic"},
[Georgian] = {keys_georgian, "georgian", "georgian"},
[Emoji] = {keys_emoji, "latin", "emoji"},
[Nav] = {keys_nav, "latin", "nav"},
[Landscape] = {keys_landscape, "latin", "landscape"},
@ -548,6 +550,66 @@ static struct key keys_arabic[] = {
{"", "", 0.0, Last},
};
static struct key keys_georgian[] = {
{"1", "!", 1.0, Code, KEY_1},
{"2", "@", 1.0, Code, KEY_2},
{"3", "#", 1.0, Code, KEY_3},
{"4", ";", 1.0, Code, KEY_4},
{"5", "%", 1.0, Code, KEY_5},
{"6", ":", 1.0, Code, KEY_6},
{"7", "&", 1.0, Code, KEY_7},
{"8", "*", 1.0, Code, KEY_8},
{"9", "(", 1.0, Code, KEY_9},
{"0", ")", 1.0, Code, KEY_0},
{"", "", 0.0, EndRow},
{"", "Q", 1.0, Code, KEY_Q},
{"", "", 1.0, Code, KEY_W},
{"", "E", 1.0, Code, KEY_E},
{"", "", 1.0, Code, KEY_R},
{"", "", 1.0, Code, KEY_T},
{"", "Y", 1.0, Code, KEY_Y},
{"", "U", 1.0, Code, KEY_U},
{"", "I", 1.0, Code, KEY_I},
{"", "O", 1.0, Code, KEY_O},
{"", "P", 1.0, Code, KEY_P},
{"", "", 0.0, EndRow},
{"", "A", 1.0, Code, KEY_A},
{"", "", 1.0, Code, KEY_S},
{"", "D", 1.0, Code, KEY_D},
{"", "F", 1.0, Code, KEY_F},
{"", "G", 1.0, Code, KEY_G},
{"", "H", 1.0, Code, KEY_H},
{"", "", 1.0, Code, KEY_J},
{"", "K", 1.0, Code, KEY_K},
{"", "L", 1.0, Code, KEY_L},
{";", ":", 1.0, Code, KEY_SEMICOLON},
{"", "", 0.0, EndRow},
{"", "", 1.0, Code, KEY_Z},
{"", "X", 1.0, Code, KEY_X},
{"", "", 1.0, Code, KEY_C},
{"", "V", 1.0, Code, KEY_V},
{"", "B", 1.0, Code, KEY_B},
{"", "N", 1.0, Code, KEY_N},
{"", "M", 1.0, Code, KEY_M},
{",", "<", 1.0, Code, KEY_COMMA},
{".", ">", 1.0, Code, KEY_DOT},
{"", "", 1.0, Code, KEY_BACKSPACE, .scheme = 1},
{"", "", 0.0, EndRow},
{"Abc", "Abc", 1.0, NextLayer, .scheme = 1},
{"", "", 1.0, Mod, Shift, .scheme = 1},
{"Cmp", "Cmp", 1.0, Compose, .scheme = 1},
{"", "", 5.0, Code, KEY_SPACE},
{"Enter", "Enter", 2.0, Code, KEY_ENTER, .scheme = 1},
/* end of layout */
{"", "", 0.0, Last},
};
static struct key keys_compose_a[] = {
{"à", "À", 1.0, Copy, 0x00E0, 0, 0x00C0},
{"á", "Á", 1.0, Copy, 0x00E1, 0, 0x00C1},