Add an additional view for the accents on the Portuguese (Brazil) layout

and add a Portuguese layout based on it.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/649>
This commit is contained in:
MoonlightWave-12
2024-04-28 13:16:07 +02:00
committed by Marge Bot
parent 43f0102905
commit 856ed64a46
6 changed files with 287 additions and 60 deletions

89
data/keyboards/pt.yaml Normal file
View File

@ -0,0 +1,89 @@
# This layout-file is a copy of "br.yaml"
---
outlines:
default: { width: 35.67, height: 52 }
altline: { width: 53, height: 52 }
wide: { width: 53, height: 52 }
change-view: { width: 53, height: 52 }
spaceline: { width: 90, height: 52 }
special: { width: 35.67, height: 52 }
large: { width: 71.34, height: 52 }
views:
base:
- "q w e r t y u i o p"
- "a s d f g h j k l ç"
- "Shift_L z x c v b n m BackSpace"
- "show_numbers show_eschars preferences space .-large Return"
upper:
- "Q W E R T Y U I O P"
- "A S D F G H J K L Ç"
- "Shift_L Z X C V B N M BackSpace"
- "show_numbers show_eschars preferences space ,-large 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: "change-view"
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: "change-view"
label: "123"
show_letters:
action:
set_view: "base"
outline: "change-view"
label: "ABC"
show_symbols:
action:
set_view: "symbols"
outline: "change-view"
label: "*/="
show_eschars:
action:
locking:
lock_view: "eschars"
unlock_view: "base"
outline: "change-view"
label: "Ãã"
.-large:
outline: "large"
text: "."
",-large":
outline: "large"
text: ","
space:
outline: "spaceline"
text: " "
Return:
outline: "wide"
icon: "key-enter"
keysym: "Return"