Fresh Russian layout
This commit is contained in:
committed by
Dorota Czaplejewicz
parent
54ac7511cd
commit
ef85823528
94
data/keyboards/ru.yaml
Normal file
94
data/keyboards/ru.yaml
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
---
|
||||||
|
outlines:
|
||||||
|
default: { width: 32, height: 52 }
|
||||||
|
altline: { width: 32, height: 52 }
|
||||||
|
wide: { width: 57, height: 52 }
|
||||||
|
narrow: { width: 26, height: 52 }
|
||||||
|
spaceline: { width: 107, height: 52 }
|
||||||
|
fill: { width: 159, height: 52 }
|
||||||
|
special: { width: 42, height: 52 }
|
||||||
|
|
||||||
|
views:
|
||||||
|
base:
|
||||||
|
- "й ц у к е н г ш щ з х"
|
||||||
|
- "ф ы в а п р о л д ж э"
|
||||||
|
- "Shift_L я ч с м и т ь б ю BackSpace"
|
||||||
|
- "show_numbers preferences ё space ъ period Return"
|
||||||
|
upper:
|
||||||
|
- "Й Ц У К Е Н Г Ш Щ З Х"
|
||||||
|
- "Ф Ы В А П Р О Л Д Ж Э"
|
||||||
|
- "Shift_L Я Ч С М И Т Ь Б Ю BackSpace"
|
||||||
|
- "show_numbers preferences Ё space Ъ comma Return"
|
||||||
|
numbers:
|
||||||
|
- "1 2 3 4 5 6 7 8 9 0"
|
||||||
|
- "@ # $ % & - _ + ( )"
|
||||||
|
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
||||||
|
- "show_letters preferences space_fill period Return"
|
||||||
|
symbols:
|
||||||
|
- "~ ` | · √ π τ ÷ × ¶"
|
||||||
|
- "© ® £ € ¥ ^ ° * { }"
|
||||||
|
- "show_numbers_from_symbols \\ / < > = [ ] BackSpace"
|
||||||
|
- "show_letters preferences space_fill period Return"
|
||||||
|
|
||||||
|
buttons:
|
||||||
|
Shift_L:
|
||||||
|
action:
|
||||||
|
locking:
|
||||||
|
lock_view: "upper"
|
||||||
|
unlock_view: "base"
|
||||||
|
outline: "altline"
|
||||||
|
icon: "key-shift"
|
||||||
|
BackSpace:
|
||||||
|
outline: "altline"
|
||||||
|
icon: "edit-clear-symbolic"
|
||||||
|
action: erase
|
||||||
|
preferences:
|
||||||
|
action: show_prefs
|
||||||
|
outline: "special"
|
||||||
|
icon: "keyboard-mode-symbolic"
|
||||||
|
show_numbers:
|
||||||
|
action:
|
||||||
|
set_view: "numbers"
|
||||||
|
outline: "wide"
|
||||||
|
label: "123"
|
||||||
|
show_numbers_from_symbols:
|
||||||
|
action:
|
||||||
|
set_view: "numbers"
|
||||||
|
outline: "wide"
|
||||||
|
label: "123"
|
||||||
|
show_letters:
|
||||||
|
action:
|
||||||
|
set_view: "base"
|
||||||
|
outline: "wide"
|
||||||
|
label: "АБВ"
|
||||||
|
show_symbols:
|
||||||
|
action:
|
||||||
|
set_view: "symbols"
|
||||||
|
outline: "wide"
|
||||||
|
label: "*/="
|
||||||
|
period:
|
||||||
|
outline: "special"
|
||||||
|
text: "."
|
||||||
|
comma:
|
||||||
|
outline: "special"
|
||||||
|
text: ","
|
||||||
|
space:
|
||||||
|
outline: "spaceline"
|
||||||
|
text: " "
|
||||||
|
space_fill:
|
||||||
|
outline: "fill"
|
||||||
|
text: " "
|
||||||
|
Return:
|
||||||
|
outline: "wide"
|
||||||
|
icon: "key-enter"
|
||||||
|
keysym: "Return"
|
||||||
|
colon:
|
||||||
|
text: ":"
|
||||||
|
ё:
|
||||||
|
outline: "narrow"
|
||||||
|
Ё:
|
||||||
|
outline: "narrow"
|
||||||
|
ъ:
|
||||||
|
outline: "narrow"
|
||||||
|
Ъ:
|
||||||
|
outline: "narrow"
|
||||||
11
data/langs/ru-RU.txt
Normal file
11
data/langs/ru-RU.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
de Немецкий
|
||||||
|
es Испанский
|
||||||
|
fi Финский
|
||||||
|
gr Греческий
|
||||||
|
it Итальянский
|
||||||
|
no Норвежский
|
||||||
|
pl Польский
|
||||||
|
ru Русский
|
||||||
|
se Шведский
|
||||||
|
terminal Терминал
|
||||||
|
us Английский (США)
|
||||||
@ -27,6 +27,7 @@ const KEYBOARDS: &[(*const str, *const str)] = &[
|
|||||||
("number", include_str!("../data/keyboards/number.yaml")),
|
("number", include_str!("../data/keyboards/number.yaml")),
|
||||||
("pl", include_str!("../data/keyboards/pl.yaml")),
|
("pl", include_str!("../data/keyboards/pl.yaml")),
|
||||||
("pl_wide", include_str!("../data/keyboards/pl_wide.yaml")),
|
("pl_wide", include_str!("../data/keyboards/pl_wide.yaml")),
|
||||||
|
("ru", include_str!("../data/keyboards/ru.yaml")),
|
||||||
("se", include_str!("../data/keyboards/se.yaml")),
|
("se", include_str!("../data/keyboards/se.yaml")),
|
||||||
// layout+overlay
|
// layout+overlay
|
||||||
("terminal", include_str!("../data/keyboards/terminal.yaml")),
|
("terminal", include_str!("../data/keyboards/terminal.yaml")),
|
||||||
@ -68,6 +69,7 @@ const LAYOUT_NAMES: &[(*const str, *const str)] = &[
|
|||||||
("es-ES", include_str!("../data/langs/es-ES.txt")),
|
("es-ES", include_str!("../data/langs/es-ES.txt")),
|
||||||
("ja-JP", include_str!("../data/langs/ja-JP.txt")),
|
("ja-JP", include_str!("../data/langs/ja-JP.txt")),
|
||||||
("pl-PL", include_str!("../data/langs/pl-PL.txt")),
|
("pl-PL", include_str!("../data/langs/pl-PL.txt")),
|
||||||
|
("ru-RU", include_str!("../data/langs/ru-RU.txt")),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn get_layout_names(lang: &str)
|
pub fn get_layout_names(lang: &str)
|
||||||
|
|||||||
@ -59,6 +59,7 @@ foreach layout : [
|
|||||||
'no',
|
'no',
|
||||||
'number',
|
'number',
|
||||||
'pl', 'pl_wide',
|
'pl', 'pl_wide',
|
||||||
|
'ru',
|
||||||
'se',
|
'se',
|
||||||
'terminal',
|
'terminal',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user