> To be a little clearer, if we select French, on the LCD screen it is an
> AZERTY keyboard that appears.
> However:
> In France it is the AZERTY keyboard that is used.
> In Canada I think it is the QWERTY
> In Switzerland the QWERTZ (Ich bin auch in der Schweiz!).
>
> So I was wondering if it was possible to have these nuances...
Oh, are you saying that the three examples you mentioned would be what
you'd expect, while you'd always get AZERTY? Then we agree: yes, that's
a limitation in Squeezeplay/JiveLite.
Results 11 to 19 of 19
-
2022-01-15, 02:33 #11
How to change the keyboard layout ?
-
2022-01-15, 02:41 #12
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
-
2022-01-15, 05:15 #13
- Join Date
- Dec 2020
- Posts
- 256
Try this:
Open a (ssh) console and execute the following code block
Code:## * Create script to override language based automatic keyboard layout selection cat > /root/slim-set-kbmap.sh <<EOF #!/bin/sh # # script to override the language based automatic keyboard layout selection in SqueezePlay # - takes an alpha-2 ISO country code as input # - if the input is invalid, empty or unsupported, then the script will restore default behaviour. # # (c) 2022 gordonb3 inputlang="\$1.." if [[ "\${inputlang:0:2}" == "\$1" ]]; then ISOlang=\$(grep -i -m1 -o "'qwerty_\$1'" /usr/share/jive/jive/ui/Keyboard.lua | grep -i -o \$1) newkbdlang="'\${ISOlang}'" else newkbdlang="locale" fi if \$(grep -q "kbType .. '_' .. \${newkbdlang}" /usr/share/jive/jive/ui/Keyboard.lua); then echo "keyboard layout is already set to \${newkbdlang/locale/default}" else echo "setting keyboard layout to \${newkbdlang/locale/default}" sed -e "s/\(local localizedKeyboard\).*$/\\1 = kbType .. '_' .. \${newkbdlang}/" \\ -i /usr/share/jive/jive/ui/Keyboard.lua echo -e "\nNote: you must restart SqueezePlay for the change to take effect" fi EOF ## * Mark the script as executable chmod +x /root/slim-set-kbmap.sh ## * Execute script to set the keyboard map to German (DE) /root/slim-set-kbmap.sh de
Last edited by gordonb3; 2022-01-15 at 10:33.
-
2022-01-15, 09:21 #14
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
Thanks Gordon
I got:
/root/slim-set-kbmap.sh: line 3: syntax error: unexpected "(" (expecting "fi")
-
2022-01-15, 10:33 #15
- Join Date
- Dec 2020
- Posts
- 256
Strange. Line 3 should be a comment line in the created file. Somehow on your system it doesn't appear to generate the correct result. The intended content of /root/slim-set-kbmap.sh is:
Code:#!/bin/sh # # script to override the language based automatic keyboard layout selection in SqueezePlay # - takes an alpha-2 ISO country code as input # - if the input is invalid, empty or unsupported, then the script will restore default behaviour. # # (c) 2022 gordonb3 inputlang="$1.." if [[ "${inputlang:0:2}" == "$1" ]]; then ISOlang=$(grep -i -m1 -o "'qwerty_$1'" /usr/share/jive/jive/ui/Keyboard.lua | grep -i -o $1) newkbdlang="'${ISOlang}'" else newkbdlang="locale" fi if $(grep -q "kbType .. '_' .. ${newkbdlang}" /usr/share/jive/jive/ui/Keyboard.lua); then echo "keyboard layout is already set to ${newkbdlang/locale/default}" else echo "setting keyboard layout to ${newkbdlang/locale/default}" sed -e "s/\(local localizedKeyboard\).*$/\1 = kbType .. '_' .. ${newkbdlang}/" \ -i /usr/share/jive/jive/ui/Keyboard.lua echo -e "\nNote: you must restart SqueezePlay for the change to take effect" fi
-
2022-01-15, 12:16 #16
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
Now my file is the same: but I got:
grep: /usr/share/jive/jive/ui/Keyboard.lua: No such file or directory
setting keyboard layout to default
sed: /usr/share/jive/jive/ui/Keyboard.lua: No such file or directory
and after reboot slim-set-kbmap.sh disappeared (I did however :wq)
Thanks
-
2022-01-15, 12:34 #17
If you are using piCorePlayer? you have to remember piCore is a very unique Linux distribution. RAM based, minimal system so lots of programs/tools missing, different file structure. Very different to Raspberry Pi OS.
-
2022-01-15, 13:05 #18
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
-
2022-01-15, 14:19 #19
- Join Date
- Dec 2020
- Posts
- 256
Ah... I missed that.
Don't have a Pi, so I can't really test any of the following. Quick glimpse seems to indicate that in PCP optional packages have been moved from root to /usr/local, so you probably need to prefix the path to Keyboard.lua with that (i.e. /usr/local/usr/share/jive/jive/ui/Keyboard.lua ). If it's not there try the `find` command.
Another thing, as PCP loads its RAM filesystem from compressed files on the SD card the change you make (if possible) will not persist between boots.
Edit:
Seems I'm missing more as PCP does not include SqueezePlay but SqueezeLite which is headless, i.e. does not provide a user interface. So at this point I'm not sure where the GUI you are seeing on your LCD originates from. It seems plausible that this is the LMS web content?Last edited by gordonb3; 2022-01-16 at 03:51.