Merge branch 'hu' into 'master'

Add Hungarian layout

See merge request World/Phosh/squeekboard!585
This commit is contained in:
dcz
2023-01-05 17:53:45 +00:00
4 changed files with 169 additions and 1 deletions

82
data/keyboards/hu.yaml Normal file
View File

@ -0,0 +1,82 @@
# Maintained by: soyer <soyer@irl.hu>
---
outlines:
default: { width: 35.33, height: 52 }
altline: { width: 52.67, height: 52 }
wide: { width: 62, height: 52 }
spaceline: { width: 99.67, height: 52 }
special: { width: 35.33, 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 show_eschars 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: "éá"
space:
outline: "spaceline"
label: " "
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"

View File

@ -0,0 +1,82 @@
# Maintained by: soyer <soyer@irl.hu>
---
outlines:
default: { width: 48, height: 42 }
altline: { width: 81, height: 42 }
wide: { width: 108, height: 42 }
spaceline: { width: 216, height: 42 }
special: { width: 48, height: 42 }
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 show_eschars 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: "éá"
space:
outline: "spaceline"
label: " "
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"

View File

@ -60,6 +60,9 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[
("gr_wide", include_str!("../data/keyboards/gr_wide.yaml")),
("gr+polytonic", include_str!("../data/keyboards/gr+polytonic.yaml")),
("hu", include_str!("../data/keyboards/hu.yaml")),
("hu_wide", include_str!("../data/keyboards/hu_wide.yaml")),
("il", include_str!("../data/keyboards/il.yaml")),
("ir", include_str!("../data/keyboards/ir.yaml")),

View File

@ -80,6 +80,7 @@ foreach layout : [
'gr', 'gr_wide',
'gr+polytonic',
'fr+bepo', 'fr+bepo_wide',
'hu', 'hu_wide',
'il',
'ir',
'it',
@ -137,4 +138,4 @@ if get_option('find_orphans')
timeout: timeout,
workdir: meson.build_root(),
)
endif
endif