diff --git a/frontend/ui/data/keyboardlayouts/el_keyboard.lua b/frontend/ui/data/keyboardlayouts/el_keyboard.lua index 66ea2e6e9..9d10c3ee7 100644 --- a/frontend/ui/data/keyboardlayouts/el_keyboard.lua +++ b/frontend/ui/data/keyboardlayouts/el_keyboard.lua @@ -1,3 +1,115 @@ +local en_popup = require("ui/data/keyboardlayouts/keypopup/en_popup") +local com = en_popup.com -- comma (,) +local prd = en_popup.prd -- period (.) +local _at = en_popup._at +local _eq = en_popup._eq -- equals sign (=) +local _A_ = en_popup._A_ +local _a_ = en_popup._a_ +local _B_ = en_popup._B_ +local _b_ = en_popup._b_ +local _C_ = en_popup._C_ +local _c_ = en_popup._c_ +local _D_ = en_popup._D_ +local _d_ = en_popup._d_ +local _E_ = en_popup._E_ +local _e_ = en_popup._e_ +local _F_ = en_popup._F_ +local _f_ = en_popup._f_ +local _G_ = en_popup._G_ +local _g_ = en_popup._g_ +local _H_ = en_popup._H_ +local _h_ = en_popup._h_ +local _I_ = en_popup._I_ +local _i_ = en_popup._i_ +local _J_ = en_popup._J_ +local _j_ = en_popup._j_ +local _K_ = en_popup._K_ +local _k_ = en_popup._k_ +local _L_ = en_popup._L_ +local _l_ = en_popup._l_ +local _M_ = en_popup._M_ +local _m_ = en_popup._m_ +local _N_ = en_popup._N_ +local _n_ = en_popup._n_ +local _O_ = en_popup._O_ +local _o_ = en_popup._o_ +local _P_ = en_popup._P_ +local _p_ = en_popup._p_ +local _Q_ = en_popup._Q_ +local _q_ = en_popup._q_ +local _R_ = en_popup._R_ +local _r_ = en_popup._r_ +local _S_ = en_popup._S_ +local _s_ = en_popup._s_ +local _T_ = en_popup._T_ +local _t_ = en_popup._t_ +local _U_ = en_popup._U_ +local _u_ = en_popup._u_ +local _V_ = en_popup._V_ +local _v_ = en_popup._v_ +local _W_ = en_popup._W_ +local _w_ = en_popup._w_ +local _X_ = en_popup._X_ +local _x_ = en_popup._x_ +local _Y_ = en_popup._Y_ +local _y_ = en_popup._y_ +local _Z_ = en_popup._Z_ +local _z_ = en_popup._z_ + +local el_popup = require("ui/data/keyboardlayouts/keypopup/el_popup") +local _A_el = el_popup._A_el +local _a_el = el_popup._a_el +local _B_el = el_popup._B_el +local _b_el = el_popup._b_el +local _C_el = el_popup._C_el +local _c_el = el_popup._c_el +local _D_el = el_popup._D_el +local _d_el = el_popup._d_el +local _E_el = el_popup._E_el +local _e_el = el_popup._e_el +local _F_el = el_popup._F_el +local _f_el = el_popup._f_el +local _G_el = el_popup._G_el +local _g_el = el_popup._g_el +local _H_el = el_popup._H_el +local _h_el = el_popup._h_el +local _I_el = el_popup._I_el +local _i_el = el_popup._i_el +local _J_el = el_popup._J_el +local _j_el = el_popup._j_el +local _K_el = el_popup._K_el +local _k_el = el_popup._k_el +local _L_el = el_popup._L_el +local _l_el = el_popup._l_el +local _M_el = el_popup._M_el +local _m_el = el_popup._m_el +local _N_el = el_popup._N_el +local _n_el = el_popup._n_el +local _O_el = el_popup._O_el +local _o_el = el_popup._o_el +local _P_el = el_popup._P_el +local _p_el = el_popup._p_el +--local _Q_el = el_popup._Q_el +--local _q_el = el_popup._q_el +local _R_el = el_popup._R_el +local _r_el = el_popup._r_el +local _S_el = el_popup._S_el +local _s_el = el_popup._s_el +local _T_el = el_popup._T_el +local _t_el = el_popup._t_el +local _U_el = el_popup._U_el +local _u_el = el_popup._u_el +local _V_el = el_popup._V_el +local _v_el = el_popup._v_el +--local _W_el = el_popup._W_el +--local _w_el = el_popup._w_el +local _X_el = el_popup._X_el +local _x_el = el_popup._x_el +local _Y_el = el_popup._Y_el +local _y_el = el_popup._y_el +local _Z_el = el_popup._Z_el +local _z_el = el_popup._z_el + return { shiftmode_keys = {["Shift"] = true}, symbolmode_keys = {["Sym"] = true, ["ABC"] = true}, @@ -6,28 +118,28 @@ return { keys = { -- first row { -- 1 2 3 4 5 6 7 8 9 10 11 12 - { "Q", "q", "„", "0", ":", ";", "1", "!", "Ä", "ä", "1", "ª", }, - { "W", "w", "!", "1", "|", "ς", "2", "?", "Ö", "ö", "2", "º", }, - { "E", "e", "@", "2", "Ε", "ε", "Έ", "έ", "Ü", "ü", "3", "¡", }, - { "R", "r", "#", "3", "Ρ", "ρ", "4", ";", "ß", "ß", "4", "¿", }, - { "T", "t", "+", "=", "Τ", "τ", "5", ":", "À", "à", "5", "¼", }, - { "Y", "y", "€", "(", "Υ", "υ", "Ύ", "ύ", "Â", "â", "6", "½", }, - { "U", "u", "‰", ")", "Θ", "θ", "7", "(", "Æ", "æ", "7", "¾", }, - { "I", "i", "|", "\\", "Ι", "ι", "Ί", "ί", "Ç", "ç", "8", "©", }, - { "O", "o", "?", "/", "Ο", "ο", "9", "ό", "È", "è", "9", "®", }, - { "P", "p", "~", "`", "Π", "π", "Ό", ")", "É", "é", "0", "™", }, + { _Q_, _q_, "„", "0", ":", ";", "1", "!", "Ä", "ä", "1", "ª", }, + { _W_, _w_, "!", "1", "|", "ς", "2", "?", "Ö", "ö", "2", "º", }, + { _E_, _e_, _at, "2", _E_el, _e_el, "Έ", "έ", "Ü", "ü", "3", "¡", }, + { _R_, _r_, "#", "3", _R_el, _r_el, "4", ";", "ß", "ß", "4", "¿", }, + { _T_, _t_, "+", _eq, _T_el, _t_el, "5", ":", "À", "à", "5", "¼", }, + { _Y_, _y_, "€", "(", _Y_el, _y_el, "Ύ", "ύ", "Â", "â", "6", "½", }, + { _U_, _u_, "‰", ")", _U_el, _u_el, "7", "(", "Æ", "æ", "7", "¾", }, + { _I_, _i_, "|", "\\", _I_el, _i_el, "Ί", "ί", "Ç", "ç", "8", "©", }, + { _O_, _o_, "?", "/", _O_el, _o_el, "9", "ό", "È", "è", "9", "®", }, + { _P_, _p_, "~", "`", _P_el, _p_el, "Ό", ")", "É", "é", "0", "™", }, }, -- second row { -- 1 2 3 4 5 6 7 8 9 10 11 12 - { "A", "a", "…", "@", "Α", "α", "Ά", "ά", "Ê", "ê", "Ş", "ş", }, - { "S", "s", "$", "4", "Σ", "σ", "Ѕ", "ѕ", "Ë", "ë", "İ", "ı", }, - { "D", "d", "%", "5", "Δ", "δ", "Э", "«", "Î", "î", "Ğ", "ğ", }, - { "F", "f", "^", "6", "Φ", "φ", "Ю", "»", "Ï", "ï", "Ć", "ć", }, - { "G", "g", ":", ";", "Γ", "γ", "Ґ", "ґ", "Ô", "ô", "Č", "č", }, - { "H", "h", "\"", "'", "Η", "η", "Ή", "ή", "Œ", "œ", "Đ", "đ", }, - { "J", "j", "{", "[", "Ξ", "ξ", "Ί", "ί", "Ù", "ù", "Š", "š", }, - { "K", "k", "}", "]", "Κ", "κ", "Ќ", "ќ", "Û", "û", "Ž", "ž", }, - { "L", "l", "_", "-", "Λ", "λ", "Љ", "љ", "Ÿ", "ÿ", "Ő", "ő", }, + { _A_, _a_, "…", _at, _A_el, _a_el, "Ά", "ά", "Ê", "ê", "Ş", "ş", }, + { _S_, _s_, "$", "4", _S_el, _s_el, "Ѕ", "ѕ", "Ë", "ë", "İ", "ı", }, + { _D_, _d_, "%", "5", _D_el, _d_el, "Э", "«", "Î", "î", "Ğ", "ğ", }, + { _F_, _f_, "^", "6", _F_el, _f_el, _eq, "»", "Ï", "ï", "Ć", "ć", }, + { _G_, _g_, ":", ";", _G_el, _g_el, "Ґ", "ґ", "Ô", "ô", "Č", "č", }, + { _H_, _h_, '"', "'", _H_el, _h_el, "Ή", "ή", "Œ", "œ", "Đ", "đ", }, + { _J_, _j_, "{", "[", _J_el, _j_el, "Ί", "ί", "Ù", "ù", "Š", "š", }, + { _K_, _k_, "}", "]", _K_el, _k_el, "Ќ", "ќ", "Û", "û", "Ž", "ž", }, + { _L_, _l_, "_", "-", _L_el, _l_el, "Љ", "љ", "Ÿ", "ÿ", "Ő", "ő", }, }, -- third row { -- 1 2 3 4 5 6 7 8 9 10 11 12 @@ -35,13 +147,13 @@ return { icon = "resources/icons/appbar.arrow.shift.png", width = 1.5 }, - { "Z", "z", "&", "7", "Ζ", "ζ", "Щ", "щ", "Á", "á", "Ű", "ű", }, - { "X", "x", "*", "8", "Χ", "χ", "№", "@", "É", "é", "Ø", "ø", }, - { "C", "c", "£", "9", "Ψ", "ψ", "Џ", "џ", "Í", "í", "Þ", "þ", }, - { "V", "v", "<", "‚", "Ω", "ω", "Ώ", "ώ", "Ñ", "ñ", "Ý", "ý", }, - { "B", "b", ">", ".", "Β", "β", "Ћ", "ћ", "Ó", "ó", "†", "‡", }, - { "N", "n", "‘", "↑", "Ν", "ν", "Њ", "њ", "Ú", "ú", "–", "—", }, - { "M", "m", "’", "↓", "Μ", "μ", "Ї", "ї", "Ç", "ç", "…", "¨", }, + { _Z_, _z_, "&", "7", _Z_el, _z_el, "Щ", "щ", "Á", "á", "Ű", "ű", }, + { _X_, _x_, "*", "8", _X_el, _x_el, "№", "@", "É", "é", "Ø", "ø", }, + { _C_, _c_, "£", "9", _C_el, _c_el, "Џ", "џ", "Í", "í", "Þ", "þ", }, + { _V_, _v_, "<", com, _V_el, _v_el, "Ώ", "ώ", "Ñ", "ñ", "Ý", "ý", }, + { _B_, _b_, ">", prd, _B_el, _b_el, "Ћ", "ћ", "Ó", "ó", "†", "‡", }, + { _N_, _n_, "‘", "↑", _N_el, _n_el, "Њ", "њ", "Ú", "ú", "–", "—", }, + { _M_, _m_, "’", "↓", _M_el, _m_el, "Ї", "ї", "Ç", "ç", "…", "¨", }, { label = "Backspace", icon = "resources/icons/appbar.clear.reflect.horizontal.png", width = 1.5 @@ -58,8 +170,8 @@ return { { label = "space", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", width = 3.0}, - { ",", ",", "“", "←", ",", ",", "Є", "є", ",", ",", ",", ",", }, - { ".", ".", "”", "→", ".", ".", "Ё", "ё", ".", ".", ".", ".", }, + { com, com, "“", "←", com, com, "Ё", "ё", "Ũ", "ũ", com, com, }, + { prd, prd, "”", "→", prd, prd, prd, prd, "Ĩ", "ĩ", prd, prd, }, { label = "Enter", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", icon = "resources/icons/appbar.arrow.enter.png", diff --git a/frontend/ui/data/keyboardlayouts/en_keyboard.lua b/frontend/ui/data/keyboardlayouts/en_keyboard.lua index 335055dd2..c1bda1e96 100644 --- a/frontend/ui/data/keyboardlayouts/en_keyboard.lua +++ b/frontend/ui/data/keyboardlayouts/en_keyboard.lua @@ -96,7 +96,7 @@ return { { _Z_, _z_, "&", "7", "Я", "я", ":", "7", "Á", "á", "Ű", "ű", }, { _X_, _x_, "*", "8", "Ч", "ч", ";", "8", "Ø", "ø", "Ã", "ã", }, { _C_, _c_, "£", "9", "С", "с", "'", "9", "Í", "í", "Þ", "þ", }, - { _V_, _v_, "<", "‚", "М", "м", "Ө", "ө", "Ñ", "ñ", "Ý", "ý", }, + { _V_, _v_, "<", com, "М", "м", "Ө", "ө", "Ñ", "ñ", "Ý", "ý", }, { _B_, _b_, ">", prd, "И", "и", "Һ", "һ", "Ó", "ó", "†", "‡", }, { _N_, _n_, "‘", "↑", "Т", "т", "Б", "б", "Ú", "ú", "–", "—", }, { _M_, _m_, "’", "↓", "Ь", "ь", "Ю", "ю", "Ç", "ç", "…", "¨", }, diff --git a/frontend/ui/data/keyboardlayouts/keypopup/el_popup.lua b/frontend/ui/data/keyboardlayouts/keypopup/el_popup.lua new file mode 100644 index 000000000..eb1f603a2 --- /dev/null +++ b/frontend/ui/data/keyboardlayouts/keypopup/el_popup.lua @@ -0,0 +1,245 @@ +return { + _A_el = { + "Α", + east = "Ά", + west = "A", + north = "@", + }, + _a_el = { + "α", + east = "ά", + west = "a", + north = "@", + }, + _B_el = { + "Β", + east = "♭", + west = "B", + }, + _b_el = { + "β", + east = "♭", + west = "b", + }, + _C_el = { + "Ψ", + east = "©", + west = "C", + }, + _c_el = { + "ψ", + east = "©", + west = "c", + }, + _D_el = { + "Δ", + west = "D", + }, + _d_el = { + "δ", + west = "d", + }, + _E_el = { + "Ε", + northeast = "€", + east = "Έ", + west = "E", + }, + _e_el = { + "ε", + northeast = "€", + east = "έ", + west = "e", + }, + _F_el = { + "Φ", + east = "ƒ", -- Guilder/Florin + west = "F", + }, + _f_el = { + "φ", + east = "ƒ", -- Guilder/Florin + west = "f", + }, + _G_el = { + "Γ", + west = "G", + }, + _g_el = { + "γ", + west = "g", + }, + _H_el = { + "Η", + east = "Ή", + west = "H", + }, + _h_el = { + "η", + east = "ή", + west = "h", + }, + _I_el = { + "Ι", + east = "Ί", + west = "I", + south = "Ϊ", + }, + _i_el = { + "ι", + east = "ί", + west = "i", + southwest = "ΐ", + south = "ϊ", + }, + _J_el = { + "Ξ", + west = "J", + }, + _j_el = { + "ξ", + west = "j", + }, + _K_el = { + "Κ", + northeast = "—", -- em dash + northwest = "–", -- en dash + north = "–", -- hyphen minus + east = '"', + west = "K", + }, + _k_el = { + "κ", + northeast = "—", -- em dash + northwest = "–", -- en dash + north = "–", -- hyphen minus + east = '"', + west = "k", + }, + _L_el = { + "Λ", + north = "'", + northwest = "£", + east = "+", + west = "L", + }, + _l_el = { + "λ", + north = "'", + northwest = "£", + east = "+", + west = "l", + }, + _M_el = { + "Μ", + west = "M", + }, + _m_el = { + "μ", + west = "m", + }, + _N_el = { + "Ν", + west = "N", + }, + _n_el = { + "ν", + west = "n", + }, + _O_el = { + "Ο", + southwest = "Ø", + east = "Ό", + west = "O", + }, + _o_el = { + "ο", + southwest = "ø", + east = "ό", + west = "o", + }, + _P_el = { + "Π", + west = "P", + }, + _p_el = { + "π", + west = "p", + }, + _R_el = { + "Ρ", + west = "R", + }, + _r_el = { + "ρ", + west = "r", + }, + _S_el = { + "Σ", + west = "S", + north = "$", + }, + _s_el = { + "σ", + east = "ς", + west = "s", + north = "$", + }, + _T_el = { + "Τ", + west = "T", + }, + _t_el = { + "τ", + west = "t", + }, + _U_el = { + "Θ", + west = "U", + }, + _u_el = { + "θ", + west = "u", + }, + _V_el = { + "Ω", + east = "Ώ", + west = "V", + }, + _v_el = { + "ω", + east = "ώ", + west = "v", + }, + _X_el = { + "Χ", + west = "X", + }, + _x_el = { + "χ", + west = "x", + }, + _Y_el = { + "Υ", + east = "Ύ", + west = "Y", + south = "Ϋ", + }, + _y_el = { + "υ", + east = "ύ", + west = "Y", + southwest = "ΰ", + south = "ϋ", + }, + _Z_el = { + "Ζ", + northwest = "Ζ", -- zeta uppercase + west = "Z", + }, + _z_el = { + "ζ", + northwest = "ζ", -- zeta lowercase + west = "z", + }, +}