Compare commits

...

15 Commits

Author SHA1 Message Date
1d50c2a748 server-main: g_error exits the application, it doesn't need exit(1) later 2021-06-19 13:40:36 +02:00
4efe57cbb4 Merge branch 'layersurface_duplicate' into 'master'
layersurface: avoid duplicate assignment

See merge request Librem5/squeekboard!467
2021-06-18 15:49:31 +00:00
19e22418bd layersurface: avoid duplicate assignment 2021-06-18 17:29:02 +02:00
83942c27b8 Merge branch 'error-on-no-layer-shell' into 'master'
Show error when compositor doesn't support Layer Shell

Closes #284

See merge request Librem5/squeekboard!466
2021-06-05 16:21:30 +00:00
29ef4f5bed Merge branch 'keyboard-layout-bulgarian-bds' into 'master'
Add Bulgarian BDS layout

See merge request Librem5/squeekboard!464
2021-06-05 16:20:39 +00:00
9eb397151f Show error when Layer Shell is not supported 2021-06-03 11:39:45 -07:00
3a1ea69006 Translate more layout names in Bulgarian 2021-05-27 18:30:54 +03:00
5c5475d508 Add 'bg' layout
This is the Bulgarian (BDS) layout. I took the liberty to remove "э"
from the layout, as it is not part of the Bulgarian alphabet and it was
left there for historical reasons, also not to mess with the layouts for
physical keyboards. Removing it gives more space for the shift_l and
backspace keys.

I've also added the letter "small i with grave" to the special symbols, as
it is occasionally used in Bulgarian.
2021-05-27 18:19:27 +03:00
389aedac8d Rename bg to bg+phonetic
The 'bg' layout is actually the 'bg+phonetic' layout.
Mark it as such.
2021-05-26 08:04:44 +03:00
9b52edbf99 Merge branch 'master' into 'master'
Introduce Swiss French keyboard layout

See merge request Librem5/squeekboard!463
2021-05-24 12:29:01 +00:00
080186c18b improve accents layout behavior and code cleaning 2021-05-24 13:42:11 +02:00
7f0749483e Introduce Swiss French keyboard layout 2021-05-23 17:06:26 +02:00
19630334b0 Merge branch '1.14.0' into 'master'
Release 1.14.0 "Swim bladder"

See merge request Librem5/squeekboard!458
2021-05-22 14:08:22 +00:00
7e4487c757 Merge branch 'layouts/arabic' into 'master'
Introduce Arabic keyboard layout

See merge request Librem5/squeekboard!460
2021-05-22 14:07:56 +00:00
ebc8eafa07 Introduce Arabic keyboard layout
Signed-off-by: Khaled Eldoheiri <khalid@kdehairy.com>
2021-05-22 15:39:39 +02:00
10 changed files with 340 additions and 16 deletions

70
data/keyboards/ara.yaml Normal file
View File

@ -0,0 +1,70 @@
# Maintained by: Khaled Eldoheiri <khalid@kdehairy.com>
---
outlines:
default: { width: 32.66, height: 52 }
altline: { width: 48.99, height: 52 }
wide: { width: 62, height: 52 }
spaceline: { width: 195.96, height: 52 }
special: { width: 35.66, height: 52 }
views:
base:
- "ذ ض ص ث ق ف غ ع خ ح ج"
- "ش س ي ب ل ا ت ن م ك ط"
- "Shift_L ء ؤ ر ة و ز ظ د BackSpace"
- "show_numbers preferences space . Return"
extra:
- "ذ ض ص ث ق لإ إ ع خ ح ج"
- "ش س ى ب لأ أ ت ن م ك ط"
- "Shift_L ئ لآ لا ه آ ز ظ د BackSpace"
- "show_numbers preferences space . Return"
numbers:
- "1 2 3 4 5 6 7 8 9 0"
- "@ # € % & - _ + ( )"
- "show_symbols ، \" ' : ؛ ! ؟ BackSpace"
- "show_letters preferences space . Return"
symbols:
- "~ ` | · √ π τ ÷ × ¶"
- "© ® £ € ¥ ^ ° * { }"
- "show_numbers \\ / < > = [ ] BackSpace"
- "show_letters preferences space . Return"
buttons:
Shift_L:
action:
locking:
lock_view: "extra"
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: "altline"
label: "123"
show_letters:
action:
set_view: "base"
outline: "altline"
label: "ض"
show_symbols:
action:
set_view: "symbols"
outline: "altline"
label: "*/="
space:
outline: "spaceline"
label: " "
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"

View File

@ -0,0 +1,70 @@
# Maintained by: Khaled Eldoheiri <khalid@kdehairy.com>
---
outlines:
default: { width: 49, height: 42 }
altline: { width: 73.5, height: 42 }
wide: { width: 108, height: 42 }
spaceline: { width: 324, height: 42 }
special: { width: 49, height: 42 }
views:
base:
- "ذ ض ص ث ق ف غ ع خ ح ج"
- "ش س ي ب ل ا ت ن م ك ط"
- "Shift_L ء ؤ ر ة و ز ظ د BackSpace"
- "show_numbers preferences space . Return"
extra:
- "ذ ض ص ث ق لإ إ ع خ ح ج"
- "ش س ى ب لأ أ ت ن م ك ط"
- "Shift_L ئ لآ لا ه آ ز ظ د BackSpace"
- "show_numbers preferences space . Return"
numbers:
- "1 2 3 4 5 6 7 8 9 0"
- "@ # € % & - _ + ( )"
- "show_symbols ، \" ' : ؛ ! ؟ BackSpace"
- "show_letters preferences space . Return"
symbols:
- "~ ` | · √ π τ ÷ × ¶"
- "© ® £ € ¥ ^ ° * { }"
- "show_numbers \\ / < > = [ ] BackSpace"
- "show_letters preferences space . Return"
buttons:
Shift_L:
action:
locking:
lock_view: "extra"
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: "altline"
label: "123"
show_letters:
action:
set_view: "base"
outline: "altline"
label: "ض"
show_symbols:
action:
set_view: "symbols"
outline: "altline"
label: "*/="
space:
outline: "spaceline"
label: " "
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"

View File

@ -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"

View File

@ -8,19 +8,19 @@ outlines:
views: views:
base: base:
- "я в е р т ъ у и о п ю" - "у е и ш щ к с д з ц б"
- "а с д ф г х й к л ш щ" - "ь я а о ж г т н в м ч"
- "Shift_L з ь ц ж б н м ч BackSpace" - "Shift_L ю й ъ ф х п р л BackSpace"
- "show_numbers preferences space . Return" - "show_numbers preferences space . Return"
upper: upper:
- "Я В Е Р Т Ъ У И О П Ю" - "У Е И Ш Щ К С Д З Ц Б"
- "А С Д Ф Г Х Й К Л Ш Щ" - "Ь Я А О Ж Г Т Н В М Ч"
- "Shift_L З Ь Ц Ж Б Н М Ч BackSpace" - "Shift_L Ю Й Ъ Ф Х П Р Л BackSpace"
- "show_numbers preferences space , Return" - "show_numbers preferences space , Return"
numbers: numbers:
- "1 2 3 4 5 6 7 8 9 0" - "1 2 3 4 5 6 7 8 9 0"
- "@ # € % & - _ + ( )" - "@ # € % & - _ + ( )"
- "show_symbols , \" ' colon ; ! ? BackSpace" - "show_symbols , \" ' colon ; ! ? ѝ BackSpace"
- "show_letters preferences space Return" - "show_letters preferences space Return"
symbols: symbols:
- "~ ` | · √ π τ ÷ × ¶" - "~ ` | · √ π τ ÷ × ¶"

91
data/keyboards/ch+fr.yaml Normal file
View File

@ -0,0 +1,91 @@
# Maintained by: Jordi Bossy <jordi@bossy.space>. No Copyright, enjoy!
---
outlines:
default: { width: 35.33, height: 52 }
altline: { width: 48, height: 52 }
wide: { width: 59, height: 52 }
spaceline: { width: 70, height: 52 }
special: { width: 28, height: 52 }
views:
base:
- "q w e r t z u i o p"
- "a s d f g h j k l ?"
- "Shift_L y x c v b n m BackSpace"
- "show_numbers show_eschars preferences ' space , . Return"
upper:
- "Q W E R T Z U I O P"
- "A S D F G H J K L !"
- "Shift_L Y X C V B N M BackSpace"
- "show_numbers show_eschars preferences \" space , . Return"
numbers:
- "1 2 3 4 5 6 7 8 9 0"
- "@ * + - = ( ) ~ < >"
- "show_symbols # & / \\ √ ; : BackSpace"
- "show_letters show_eschars preferences _ space , . Return"
symbols:
- "€ $ £ ¥ % | § µ [ ]"
- "© ® § ` ^ { } · ¡ ¿"
- "show_numbers « » ÷ × “ ” „ BackSpace"
- "show_letters show_eschars preferences - space , . Return"
eschars:
- "à â ç é è ê î ô ù û"
- "À Â Ç É È Ê Î Ô Ù Û"
- "show_numbers æ œ ä ë ï ö ü BackSpace"
- "show_letters_from_accents 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: "altline"
label: "123"
show_letters:
action:
set_view: "base"
outline: "altline"
label: "abc"
show_symbols:
action:
set_view: "symbols"
outline: "altline"
label: "*/="
show_eschars:
action:
locking:
lock_view: "eschars"
unlock_view: "base"
outline: "altline"
label: "âÂ"
show_letters_from_accents:
action:
locking:
lock_view: "eschars"
unlock_view: "base"
outline: "altline"
label: "âÂ"
space:
outline: "spaceline"
label: " "
text: " "
Return:
outline: "wide"
icon: "key-enter"
keysym: "Return"
"\"":
keysym: "quotedbl"

View File

@ -1,13 +1,22 @@
ara Арабски
be Белгийски
bg Български bg Български
br Бразилски
cz Чешки
de Немски de Немски
dk Датски
es Испански es Испански
emoji Емоджи emoji Емоджи
fi Френски fi Фински
fr Френски
gr Гръцки gr Гръцки
it Италянски it Италиански
no Норевежки jp Японски
no Норвежки
pl Полски pl Полски
ru Руски ru Руски
se Шведски se Шведски
th Тайски
ua Украински
terminal Терминал terminal Терминал
us Английски (САЩ) us Английски (САЩ)

View File

@ -312,7 +312,6 @@ on_phosh_layer_surface_unmapped (PhoshLayerSurface *self, gpointer unused)
PhoshLayerSurfacePrivate *priv; PhoshLayerSurfacePrivate *priv;
g_return_if_fail (PHOSH_IS_LAYER_SURFACE (self)); g_return_if_fail (PHOSH_IS_LAYER_SURFACE (self));
priv = phosh_layer_surface_get_instance_private (self);
priv = phosh_layer_surface_get_instance_private (self); priv = phosh_layer_surface_get_instance_private (self);
if (priv->layer_surface) { if (priv->layer_surface) {

View File

@ -18,12 +18,18 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[
("us_wide", include_str!("../data/keyboards/us_wide.yaml")), ("us_wide", include_str!("../data/keyboards/us_wide.yaml")),
// Language layouts: keep alphabetical. // Language layouts: keep alphabetical.
("ara", include_str!("../data/keyboards/ara.yaml")),
("ara_wide", include_str!("../data/keyboards/ara_wide.yaml")),
("be", include_str!("../data/keyboards/be.yaml")), ("be", include_str!("../data/keyboards/be.yaml")),
("be_wide", include_str!("../data/keyboards/be_wide.yaml")), ("be_wide", include_str!("../data/keyboards/be_wide.yaml")),
("bg", include_str!("../data/keyboards/bg.yaml")), ("bg", include_str!("../data/keyboards/bg.yaml")),
("bg+phonetic", include_str!("../data/keyboards/bg+phonetic.yaml")),
("br", include_str!("../data/keyboards/br.yaml")), ("br", include_str!("../data/keyboards/br.yaml")),
("ch+fr", include_str!("../data/keyboards/ch+fr.yaml")),
("de", include_str!("../data/keyboards/de.yaml")), ("de", include_str!("../data/keyboards/de.yaml")),
("de_wide", include_str!("../data/keyboards/de_wide.yaml")), ("de_wide", include_str!("../data/keyboards/de_wide.yaml")),

View File

@ -83,7 +83,6 @@ on_name_lost (GDBusConnection *connection,
(void)name; (void)name;
(void)user_data; (void)user_data;
g_error("DBus unavailable, unclear how to continue."); g_error("DBus unavailable, unclear how to continue.");
exit (1);
} }
// Wayland // Wayland
@ -264,7 +263,6 @@ main (int argc, char **argv)
if (display == NULL) { if (display == NULL) {
g_error ("Failed to get display: %m\n"); g_error ("Failed to get display: %m\n");
exit(1);
} }
@ -277,11 +275,12 @@ main (int argc, char **argv)
if (!instance.wayland.seat) { if (!instance.wayland.seat) {
g_error("No seat Wayland global available."); g_error("No seat Wayland global available.");
exit(1);
} }
if (!instance.wayland.virtual_keyboard_manager) { if (!instance.wayland.virtual_keyboard_manager) {
g_error("No virtual keyboard manager Wayland global available."); g_error("No virtual keyboard manager Wayland global available.");
exit(1); }
if (!instance.wayland.layer_shell) {
g_error("No layer shell global available.");
} }
if (!instance.wayland.input_method_manager) { if (!instance.wayland.input_method_manager) {
@ -380,7 +379,6 @@ main (int argc, char **argv)
vis_manager); vis_manager);
if (!ui_context) { if (!ui_context) {
g_error("Could not initialize GUI"); g_error("Could not initialize GUI");
exit(1);
} }
instance.ui_context = ui_context; instance.ui_context = ui_context;
squeek_visman_set_ui(vis_manager, instance.ui_context); squeek_visman_set_ui(vis_manager, instance.ui_context);

View File

@ -58,9 +58,12 @@ foreach layout : [
'us', 'us_wide', 'us', 'us_wide',
# Block: Languages # Block: Languages
'ara', 'ara_wide',
'be', 'be_wide', 'be', 'be_wide',
'bg', 'bg',
'bg+phonetic',
'br', 'br',
'ch+fr',
'cz', 'cz_wide', 'cz', 'cz_wide',
'cz+qwerty', 'cz+qwerty_wide', 'cz+qwerty', 'cz+qwerty_wide',
'de', 'de_wide', 'de', 'de_wide',