diff --git a/data/keyboards/bg.yaml b/data/keyboards/bg.yaml new file mode 100644 index 00000000..d9a14bd1 --- /dev/null +++ b/data/keyboards/bg.yaml @@ -0,0 +1,78 @@ +--- +outlines: + default: { width: 32.72, height: 52 } + altline: { width: 47, height: 52 } + wide: { width: 49.09, height: 52 } + spaceline: { width: 185, height: 52 } + special: { width: 44, height: 52 } + +views: + base: + - "у е и ш щ к с д з ц б" + - "ь я а о ж г т н в м ч" + - "Shift_L ю й ъ ф х п р л BackSpace" + - "show_numbers preferences space . Return" + upper: + - "У Е И Ш Щ К С Д З Ц Б" + - "Ь Я А О Ж Г Т Н В М Ч" + - "Shift_L Ю Й Ъ Ф Х П Р Л BackSpace" + - "show_numbers preferences space , Return" + numbers: + - "1 2 3 4 5 6 7 8 9 0" + - "@ # € % & - _ + ( )" + - "show_symbols , \" ' colon ; ! ? ѝ BackSpace" + - "show_letters preferences space Return" + symbols: + - "~ ` | · √ π τ ÷ × ¶" + - "© ® £ $ ¥ ^ ° * { }" + - "show_numbers_from_symbols \\ / < > = [ ] BackSpace" + - "show_letters preferences space 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: "altline" + label: "123" + show_letters: + action: + set_view: "base" + outline: "wide" + label: "abc" + show_symbols: + action: + set_view: "symbols" + outline: "altline" + label: "*/=" + space: + outline: "spaceline" + text: " " + Return: + outline: "wide" + icon: "key-enter" + keysym: "Return" + colon: + text: ":" + "\"": + keysym: "quotedbl" diff --git a/src/resources.rs b/src/resources.rs index 1f5e590c..431b3dd3 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -24,6 +24,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ ("be", include_str!("../data/keyboards/be.yaml")), ("be_wide", include_str!("../data/keyboards/be_wide.yaml")), + ("bg", include_str!("../data/keyboards/bg.yaml")), ("bg+phonetic", include_str!("../data/keyboards/bg+phonetic.yaml")), ("br", include_str!("../data/keyboards/br.yaml")), diff --git a/tests/meson.build b/tests/meson.build index adf5273b..16673fbb 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -60,6 +60,7 @@ foreach layout : [ # Block: Languages 'ara', 'ara_wide', 'be', 'be_wide', + 'bg', 'bg+phonetic', 'br', 'ch+fr',