Spanish on screen keyboard testing

Hi could someone test this version of the Spanish keyboard?

Just paste the files es.yaml es_wide.yaml /terminal/es.yaml /terminal/es_wide.yaml in /home/purism/.local/share/squeekboard/keyboards/

The changes compared with the one that is installed by default are minimal, you can see them here

Mainly is that if you press shift the Backspace changes to a Delete button and some especial characters are moved to other places, and added the wide and terminal versions.

If you want to come back to the default one, that was made by me years ago just remove theses files.

2 Likes

I wanted to give it a try, but:

purism@pureos:~/guru$ git clone https://gitlab.gnome.org/uzanto/squeekboard/-/tree/keyboard-layout-es/data/keyboards
Cloning into 'keyboards'...
fatal: unable to update url base from redirection:
  asked for: https://gitlab.gnome.org/uzanto/squeekboard/-/tree/keyboard-layout-es/data/keyboards/info/refs?service=git-upload-pack
   redirect: https://gitlab.gnome.org/uzanto/squeekboard/-/tree/keyboard-layout-es
1 Like

I’m not an expert on git, you can try downloading the whole repo and moving the relevant files only.

1 Like

I guess I am using it.
It appears in context menu as
Spanish (dead tilde)

but, how can type the spanish inverted question mark?

Nowadays I got to use C-x 8 bf
on emacs or visit notengoenie.com

and copy/paste it

¿

1 Like

On anything that supports named HTML entities you can enter ¿

and on anything that supports XML/HTML numbered character entities you can enter ¿ (lowercase hex is OK too)

Either will work in this forum ¿ v. ¿

but for a more general solution I think you would need to edit the keyboard layout to add the character if it is missing. Even just examining the keyboard layout should allow you to check whether the character is present or absent in the layout so that you know what the next step is.

2 Likes

@irvinewade Testing here the first solution you proposed: ¿ it works?

now the second option: ¿ it worked?

Edit: both works here on forum.
In Dino doesn’t work.

1 Like

The question is: which Squeekboard-version? On Byzantium we’re heavily outdated. Once Crimson is released we get lot’s of fixes for such apps. So speaking about version is very important here.

1 Like

Hi Tony, I don’t know which one you are using as this is really old, but what I’m actually using are these ones

es.yaml

---
outlines:
    default: { width: 35.33, height: 46 }
    wide: { width: 55, height: 46 }
    spaceline: { width: 180, height: 46 }
    small: { width: 35.33, height: 22 }
    action: { width: 59, height: 46}

views:
    base:
        - "Escs Tabs Ctrl Dashs Slashs Dots ↑ ↓ ← →"
        - "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 preferences      space        show_actions Return"
    upper:
        - "Escs Tabs Ctrl Dashs Slashs Dots PgUp PgDn Home End"
        - "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  DelUp"
        - "show_numbers preferences      space        show_actions Return"
    numbers:
        - "Escs Tabs Ctrl Dashs Slashs Dots ↑ ↓ ← →"
        - "1 2 3 4 5 6 7 8 9 0"
        - "* # € / & - _ + ( )"
        - "show_symbols , \" ' colon ; ¡ !  BackSpace"
        - "show_letters preferences         space        ? Return"
    symbols:
        - "Escs Tabs Ctrl Dashs Slashs Dots ↑ ↓ ← →"
        - "~ ` | · √ π τ ÷ × ¶"
        - "© ® £ $ ¥ ^ ° @ { }"
        - "show_numbers   \\ % < > = [ ]  BackSpace"
        - "show_letters preferences         space        ¿ Return"
    actions:
        - "Escs Tabs Ctrl Alt Slashs Dots PgUp PgDn Home End"
        - "F1  F2  F3  F4  F5  F6"
        - "F7  F8  F9  F10 F11 F12"
        - "Esc Menu Pause Up Insert Del"
        - "show_letters Break Left Down Right Return"

buttons:
    Shift_L:
        action:
            locking:
                lock_view: "upper"
                unlock_view: "base"
        outline: "wide"
        icon: "key-shift"
    BackSpace:
        outline: "wide"
        icon: "edit-clear-symbolic"
        action: erase
    preferences:
        action: "show_prefs"
        outline: "default"
        icon: "keyboard-mode-symbolic"
    show_numbers:
        action:
            set_view: "numbers"
        outline: "wide"
        label: "123"
    show_letters:
        action:
            set_view: "base"
        outline: "wide"
        label: "ABC"
    show_symbols:
        action:
            set_view: "symbols"
        outline: "wide"
        label: "τ=\\"
    show_actions:
        action:
            set_view: "actions"
        outline: "default"
        label: ">:"
    ".":
        outline: "default"
        text: "."
    space:
        outline: "spaceline"
        text: " "
    Return:
        outline: "wide"
        icon: "key-enter"
        keysym: "Return"
    colon:
        text: ":"
    F1:
        outline: "action"
        keysym: "F1"
    F2:
        outline: "action"
        keysym: "F2"
    F3:
        outline: "action"
        keysym: "F3"
    F4:
        outline: "action"
        keysym: "F4"
    F5:
        outline: "action"
        keysym: "F5"
    F6:
        outline: "action"
        keysym: "F6"
    F7:
        outline: "action"
        keysym: "F7"
    F8:
        outline: "action"
        keysym: "F8"
    F9:
        outline: "action"
        keysym: "F9"
    F10:
        outline: "action"
        keysym: "F10"
    F11:
        outline: "action"
        keysym: "F11"
    F12:
        outline: "action"
        keysym: "F12"
    Esc:
        outline: "action"
        keysym: "Escape"
    Tab:
        outline: "action"
        keysym: "Tab"
    Del:
        outline: "action"
        keysym: "Delete"
    DelUp:
        outline: "wide"
        keysym: "Delete"
        label: "Del"
    Insert:
        outline: "action"
        keysym: "Insert"
    Menu:
        outline: "action"
        keysym: "Menu"
    Pause:
        outline: "action"
        keysym: "Pause"
    Break:
        outline: "action"
        keysym: "Break"
    Home:
        outline: "small"
        keysym: "Home"
    End:
        outline: "small"
        keysym: "End"
    PgUp:
        outline: "small"
        keysym: "Page_Up"
    PgDn:
        outline: "small"
        keysym: "Page_Down"
    "↑":
        outline: "small"
        keysym: "Up"
    "↓":
        outline: "small"
        keysym: "Down"
    "←":
        outline: "small"
        keysym: "Left"
    "→":
        outline: "small"
        keysym: "Right"
    Up:
        label: "↑"
        outline: "action"
        keysym: "Up"
    Left:
        label: "←"
        outline: "action"
        keysym: "Left"
    Down:
        label: "↓"
        outline: "action"
        keysym: "Down"
    Right:
        label: "→"
        outline: "action"
        keysym: "Right"
    Ctrl:
        modifier: "Control"
        outline: "small"
        label: "Ctrl"
    Alt:
        modifier: "Alt"
        outline: "small"
        label: "Alt" 
    Escs:
        keysym: "Escape"
        outline: "small"
        label: "Esc"
    Tabs:
        keysym: "Tab"
        outline: "small"
        label: "Tab"
    Dots:
        text: "."
        outline: "small"
    Slashs:
        text: "/"
        outline: "small"
    Dashs:
        text: "-"
        outline: "small"

es_wide.yaml

---
outlines:
    default:   { width: 54,   height: 37 }
    action:    { width: 90,   height: 37 }
    wide:      { width: 82,   height: 37 }
    spaceline: { width: 272,  height: 37 }
    small:     { width: 54, height: 22 }

views:
    base:
        - "EscS TabS Ctrl DashS SlashS DotS ↑ ↓ ← →"
        - "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 preferences    space    show_actions Return"
    upper:
        - "EscS TabS Ctrl DashS SlashS DotS PgUp PgDn Home End"
        - "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  DelUp"
        - "show_numbers preferences      space        show_actions Return"
    numbers:
        - "EscS TabS Ctrl DashS SlashS DotS ↑ ↓ ← →"
        - "1 2 3 4 5 6 7 8 9 0"
        - "* # € / & - _ + ( )"
        - "show_symbols   , \" ' colon ; ¡ !  BackSpace"
        - "show_letters preferences         space        ? Return"
    symbols:
        - "EscS TabS Ctrl DashS SlashS DotS ↑ ↓ ← →"
        - "~ ` | · √ π τ ÷ × ¶"
        - "© ® £ $ ¥ ^ ° @ { }"
        - "show_numbers   \\ % < > = [ ]  BackSpace"
        - "show_letters preferences         space        ¿ Return"
    actions:
        - "EscS TabS Ctrl Alt SlashS DotS PgUp PgDn Home End"
        - "F1  F2  F3  F4  F5  F6"
        - "F7  F8  F9  F10 F11 F12"
        - "Esc Menu Pause Up Insert Del"
        - "show_letters Break Left Down Right Return"

buttons:
    Shift_L:
        action:
            locking:
                lock_view: "upper"
                unlock_view: "base"
        outline: "wide"
        icon: "key-shift"
    BackSpace:
        outline: "wide"
        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_letters:
        action:
            set_view: "base"
        outline: "wide"
        label: "ABC"
    show_symbols:
        action:
            set_view: "symbols"
        outline: "wide"
        label: "τ=\\"
    show_actions:
        action:
            set_view: "actions"
        outline: "default"
        label: ">:"
    ".":
        outline: "default"
        text: "."
    space:
        outline: "spaceline"
        text: " "
    Return:
        outline: "wide"
        icon: "key-enter"
        keysym: "Return"
    colon:
        text: ":"
    F1:
        outline: "action"
        keysym: "F1"
    F2:
        outline: "action"
        keysym: "F2"
    F3:
        outline: "action"
        keysym: "F3"
    F4:
        outline: "action"
        keysym: "F4"
    F5:
        outline: "action"
        keysym: "F5"
    F6:
        outline: "action"
        keysym: "F6"
    F7:
        outline: "action"
        keysym: "F7"
    F8:
        outline: "action"
        keysym: "F8"
    F9:
        outline: "action"
        keysym: "F9"
    F10:
        outline: "action"
        keysym: "F10"
    F11:
        outline: "action"
        keysym: "F11"
    F12:
        outline: "action"
        keysym: "F12"
    Esc:
        outline: "action"
        keysym: "Escape"
    Tab:
        outline: "action"
        keysym: "Tab"
    Del:
        outline: "action"
        keysym: "Delete"
    DelUp:
        outline: "wide"
        keysym: "Delete"
        label: "Del"
    Insert:
        outline: "action"
        keysym: "Insert"
    Menu:
        outline: "action"
        keysym: "Menu"
    Pause:
        outline: "action"
        keysym: "Pause"
    Break:
        outline: "action"
        keysym: "Break"
    Home:
        outline: "small"
        keysym: "Home"
    End:
        outline: "small"
        keysym: "End"
    PgUp:
        outline: "small"
        keysym: "Page_Up"
    PgDn:
        outline: "small"
        keysym: "Page_Down"
    "↑":
        outline: "small"
        keysym: "Up"
    "↓":
        outline: "small"
        keysym: "Down"
    "←":
        outline: "small"
        keysym: "Left"
    "→":
        outline: "small"
        keysym: "Right"
    Up:
        label: "↑"
        outline: "action"
        keysym: "Up"
    Left:
        label: "←"
        outline: "action"
        keysym: "Left"
    Down:
        label: "↓"
        outline: "action"
        keysym: "Down"
    Right:
        label: "→"
        outline: "action"
        keysym: "Right"
    Ctrl:
        modifier: "Control"
        outline: "small"
        label: "Ctrl"
    Alt:
        modifier: "Alt"
        outline: "small"
        label: "Alt"
    EscS:
        keysym: "Escape"
        outline: "small"
        label: "Esc"
    TabS:
    	keysym: "Tab"
        outline: "small"
        label: "Tab"
    DotS:
        text: "."
        outline: "small"
    SlashS:
        text: "/"
        outline: "small"
    DashS:
        text: "-"
        outline: "small"

Mind that I don’t have the Librem5 anymore and I’m using it on a Pinephone Pro with Mobian, this is a heavily modified version and includes a lot more keys, I use it as terminal layout as well, by placing it on the relevant folders.
/home/uzanto/.local/share/squeekboard/keyboards/es.yaml
/home/uzanto/.local/share/squeekboard/keyboards/es_wide.yaml
/home/uzanto/.local/share/squeekboard/keyboards/terminal/es.yaml
/home/uzanto/.local/share/squeekboard/keyboards/terminal/es_wide.yaml

edited - I forgot that I didn’t have the ¡ ¿ here, now it is fixed

1 Like

I’m sure that compatibility is given to all Squeekboard versions (after reading your code). So people can use it with PureOS without issues.

2 Likes

@Ick I am still on Byzantium. I not sure how to know exactly what squeekboard version is installed. apt search squeekboard shows:

apt search squeekboard

purism@pureos:~$ apt search squeekboard
Sorting… Done
Full Text Search… Done
phosh-osk-stub/byzantium-updates 0.34.0-1pureos1~byz arm64
Experimental on screen keyboard for Phosh

phosh-osk-stub-doc/byzantium-updates 0.34.0-1pureos1~byz all
API documentation for Phosh’s OSK stub

squeekboard/byzantium-updates,now 1.22.0-1pureos2~byz1 arm64 [installed,automatic]
On-screen keyboard for Wayland

squeekboard-devel/byzantium-updates 1.22.0-1pureos2~byz1 arm64
Resources for making Squeekboard layouts

@uzanto thanks for your post. I could manage to locate my es.yaml and es_wide.yaml files. Mine has and additional view: eschars.
In numbers view I replaced the dot . with ¿
In eschars view replaced the , with ¡ on fourth line
- “show_numbers ¡ ü ç ï Ü Ç ï BackSpace”

es.yaml

outlines:
default: { width: 35.33, height: 46 }
wide: { width: 55, height: 46 }
spaceline: { width: 125, height: 46 }
small: { width: 59, height: 22 }
action: { width: 59, height: 46}

views:
base:
- “Ctrl Alt ↑ ↓ ← →”
- “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 show_actions Return”
upper:
- “Ctrl Alt PgUp PgDn Home End”
- “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 DelUp”
- “show_numbers show_eschars preferences space show_actions Return”
numbers:
- “Ctrl Alt ↑ ↓ ← →”
- “1 2 3 4 5 6 7 8 9 0”
- “* # € / & - _ + ( )”
- “show_symbols , " ’ colon ; ! ? BackSpace”
- “show_letters show_eschars preferences space . Return”
symbols:
- “Ctrl Alt ↑ ↓ ← →”
- “~ ` | · √ π τ ÷ × ¶”
- “© ® £ $ ¥ ^ ° @ { }”
- “show_numbers \ % < > = BackSpace”
- “show_letters show_eschars preferences space ¿ Return”
eschars:
- “Ctrl Alt ↑ ↓ ← →”
- “á é í ó ú Á É Í Ó Ú”
- “à è ì ò ù À È Ì Ò Ù”
- “show_numbers ¡ ü ç ï Ü Ç ï BackSpace”
- “show_letters show_symbols preferences space show_actions Return”
actions:
- “Ctrl Alt PgUp PgDn Home End”
- “F1 F2 F3 F4 F5 F6”
- “F7 F8 F9 F10 F11 F12”
- “Esc Tab Pause Insert Up Del”
- “show_letters Menu Break Left Down Right”

buttons:
Shift_L:
action:
locking:
lock_view: “upper”
unlock_view: “base”
outline: “wide”
icon: “key-shift”
BackSpace:
outline: “wide”
icon: “edit-clear-symbolic”
action: erase
preferences:
action: “show_prefs”
outline: “default”
icon: “keyboard-mode-symbolic”
show_numbers:
action:
set_view: “numbers”
outline: “wide”
label: “123”
show_letters:
action:
set_view: “base”
outline: “wide”
label: “ABC”
show_symbols:
action:
set_view: “symbols”
outline: “wide”
label: “τ=\”
show_eschars:
action:
set_view: “eschars”
outline: “wide”
label: “áÁ”
show_actions:
action:
set_view: “actions”
outline: “default”
label: “>:”
“.”:
outline: “default”
text: “.”
space:
outline: “spaceline”
text: " "
Return:
outline: “wide”
icon: “key-enter”
keysym: “Return”
colon:
text: “:”
F1:
outline: “action”
keysym: “F1”
F2:
outline: “action”
keysym: “F2”
F3:
outline: “action”
keysym: “F3”
F4:
outline: “action”
keysym: “F4”
F5:
outline: “action”
keysym: “F5”
F6:
outline: “action”
keysym: “F6”
F7:
outline: “action”
keysym: “F7”
F8:
outline: “action”
keysym: “F8”
F9:
outline: “action”
keysym: “F9”
F10:
outline: “action”
keysym: “F10”
F11:
outline: “action”
keysym: “F11”
F12:
outline: “action”
keysym: “F12”
Esc:
outline: “action”
keysym: “Escape”
Tab:
outline: “action”
keysym: “Tab”
Del:
outline: “action”
keysym: “Delete”
DelUp:
outline: “wide”
keysym: “Delete”
label: “Del”
Insert:
outline: “action”
keysym: “Insert”
Menu:
outline: “action”
keysym: “Menu”
Pause:
outline: “action”
keysym: “Pause”
Break:
outline: “action”
keysym: “Break”
Home:
outline: “small”
keysym: “Home”
End:
outline: “small”
keysym: “End”
PgUp:
outline: “small”
keysym: “Page_Up”
PgDn:
outline: “small”
keysym: “Page_Down”
“↑”:
outline: “small”
keysym: “Up”
“↓”:
outline: “small”
keysym: “Down”
“←”:
outline: “small”
keysym: “Left”
“→”:
outline: “small”
keysym: “Right”
Up:
label: “↑”
outline: “action”
keysym: “Up”
Left:
label: “←”
outline: “action”
keysym: “Left”
Down:
label: “↓”
outline: “action”
keysym: “Down”
Right:
label: “→”
outline: “action”
keysym: “Right”
Ctrl:
modifier: “Control”
outline: “small”
label: “Ctrl”
Alt:
modifier: “Alt”
outline: “small”
label: “Alt”

In es_wide.yaml
I did replace one repeated character on views with the lacking ¡ and ¿

es_wide

outlines:
default: { width: 54, height: 37 }
action: { width: 90, height: 37 }
wide: { width: 81, height: 37 }
spaceline: { width: 185, height: 37 }
small: { width: 67.4, height: 22 }

views:
base:
- “EscSmall TabSmall Ctrl Alt ↑ ↓ ← →”
- “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 show_actions Return”
upper:
- “EscSmall TabSmall Ctrl Alt PgUp PgDn Home End”
- “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 DelUp”
- “show_numbers show_eschars preferences space show_actions Return”
numbers:
- “EscSmall TabSmall Ctrl Alt ↑ ↓ ← →”
- “1 2 3 4 5 6 7 8 9 0”
- “* # $ / & - _ + ( )”
- “show_symbols , " ’ colon ; ! ? BackSpace”
- “show_letters show_eschars preferences space . Return”
symbols:
- “EscSmall TabSmall Ctrl Alt ↑ ↓ ← →”
- “~ ` | · √ π τ ÷ × ¶”
- “© ® £ € ¥ ^ ° @ { }”
- “show_numbers \ % < > = BackSpace”
- “show_letters show_eschars preferences space ¿ Return”
eschars:
- “EscSmall TabSmall Ctrl Alt ↑ ↓ ← →”
- “á é í ó ú Á É Í Ó Ú”
- “à è ì ò ù À È Ì Ò Ù”
- “show_numbers ´ ü ç ï Ü Ç Ï BackSpace”
- “show_letters show_symbols preferences space ¡ show_actions Return”
actions:
- “EscSmall TabSmall Ctrl Alt PgUp PgDn Home End”
- “F1 F2 F3 F4 F5 F6”
- “F7 F8 F9 F10 F11 F12”
- “Esc Tab Pause Insert Up Del”
- “show_letters Menu Break Left Down Right”

buttons:
Shift_L:
action:
locking:
lock_view: “upper”
unlock_view: “base”
outline: “wide”
icon: “key-shift”
BackSpace:
outline: “wide”
icon: “edit-clear-symbolic”
action: erase
preferences:
action: “show_prefs”
outline: “default”
icon: “keyboard-mode-symbolic”
show_numbers:
action:
set_view: “numbers”
outline: “wide”
label: “123”
show_letters:
action:
set_view: “base”
outline: “wide”
label: “ABC”
show_symbols:
action:
set_view: “symbols”
outline: “wide”
label: “τ=\”
show_eschars:
action:
set_view: “eschars”
outline: “wide”
label: “áÁ”
show_actions:
action:
set_view: “actions”
outline: “default”
label: “>:”
“.”:
outline: “default”
text: “.”
space:
outline: “spaceline”
text: " "
Return:
outline: “wide”
icon: “key-enter”
keysym: “Return”
colon:
text: “:”
F1:
outline: “action”
keysym: “F1”
F2:
outline: “action”
keysym: “F2”
F3:
outline: “action”
keysym: “F3”
F4:
outline: “action”
keysym: “F4”
F5:
outline: “action”
keysym: “F5”
F6:
outline: “action”
keysym: “F6”
F7:
outline: “action”
keysym: “F7”
F8:
outline: “action”
keysym: “F8”
F9:
outline: “action”
keysym: “F9”
F10:
outline: “action”
keysym: “F10”
F11:
outline: “action”
keysym: “F11”
F12:
outline: “action”
keysym: “F12”
Esc:
outline: “action”
keysym: “Escape”
EscSmall:
outline: “small”
keysym: “Escape”
label: “Esc”
Tab:
outline: “action”
keysym: “Tab”
TabSmall:
outline: “small”
keysym: “Tab”
label: “Tab”
Del:
outline: “action”
keysym: “Delete”
DelUp:
outline: “wide”
keysym: “Delete”
label: “Del”
Insert:
outline: “action”
keysym: “Insert”
Menu:
outline: “action”
keysym: “Menu”
Pause:
outline: “action”
keysym: “Pause”
Break:
outline: “action”
keysym: “Break”
Home:
outline: “small”
keysym: “Home”
End:
outline: “small”
keysym: “End”
PgUp:
outline: “small”
keysym: “Page_Up”
PgDn:
outline: “small”
keysym: “Page_Down”
“↑”:
outline: “small”
keysym: “Up”
“↓”:
outline: “small”
keysym: “Down”
“←”:
outline: “small”
keysym: “Left”
“→”:
outline: “small”
keysym: “Right”
Up:
label: “↑”
outline: “action”
keysym: “Up”
Left:
label: “←”
outline: “action”
keysym: “Left”
Down:
label: “↓”
outline: “action”
keysym: “Down”
Right:
label: “→”
outline: “action”
keysym: “Right”
Ctrl:
modifier: “Control”
outline: “small”
label: “Ctrl”
Alt:
modifier: “Alt”
outline: “small”
label: “Alt”

1 Like

There it is. You also can write apt list squeekboard to get the version.

1 Like

byzantiym 1.22.0-1pureos1 arm64

apt list squeekboard

squeekboard/byzantium-updates,now 1.22.0-1pureos2~byz1 arm64 [installed,automatic]
N: There is 1 additional version. Please use the ‘-a’ switch to see it

apt list squeekboard -a

squeekboard/byzantium-updates,now 1.22.0-1pureos2~byz1 arm64 [installed,automatic]
squeekboard/byzantium 1.22.0-1pureos1 arm64

1 Like

Look what I quoted in my previous post. You already wrote it. I just gave you an alternative command that you know it for yourself. :slight_smile:

1 Like