Re: [slim] How to change the keyboard layout ?
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. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Greg Erskine wrote: > 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. Yes, PcP ! PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
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. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
gordonb3 wrote: > 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 > > > > > If you can find your way in the editor (vi) create the file manually > instead. 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 PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
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 If you can find your way in the editor (vi) create the file manually instead. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Thanks Gordon I got: /root/slim-set-kbmap.sh: line 3: syntax error: unexpected "(" (expecting "fi") PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
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
Re: [slim] How to change the keyboard layout ?
mherger wrote: > >>> In theory it should be possible to select both of them > independent[color=blue][color=green] > I just tested this again, > and living in Switzerland, running LMS on a Mac set up with > German/Switzerland, Squeezeplay set to French would use AZERTY. I'm not > > sure what input PaulH is referring to if he gets QWERTZ. I don't have QWERTZ; I would like to have QWERTZ instead of AZERTY on my Pi with LCD display. PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
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. ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
In theory it should be possible to select both of them independent from[/color] What theory? This is not physics, but some logic decision which was taken many years ago. Lost in translation. What I meant is that there is no technical limitation to have a different language setting on input devices or special formatting (decimal sign, datetime, etc) from the chosen display language. The limitation stems from what the programmer chose to expose to the user, which in this case means that it cannot be done from the (G)UI. Exactly. And from what I understand "the programmer" (or product manager or whomever) decided to keep things simple. I just tested this again, and living in Switzerland, running LMS on a Mac set up with German/Switzerland, Squeezeplay set to French would use AZERTY. I'm not sure what input PaulH is referring to if he gets QWERTZ. ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
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!). Now that's rather surprising... Can you send a screenshot so I'm sure what we're talking about? ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
mherger wrote: > > > In theory it should be possible to select both of them independent > from[/color] > > What theory? This is not physics, but some logic decision which was > taken many years ago. Lost in translation. What I meant is that there is no technical limitation to have a different language setting on input devices or special formatting (decimal sign, datetime, etc) from the chosen display language. The limitation stems from what the programmer chose to expose to the user, which in this case means that it cannot be done from the (G)UI. Since however you pointed out that the selection is done in the LUA part of the code a user may still manipulate this behaviour through CLI. It needs to be noted here however that this is a `permanent` change and thus will need to be undone if user choses to select a different display language in the UI. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Thank you for your answer mherger! 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... PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Heheh... I think you should recognize QWERTZ from your own keyboard? It's German layout. What I wanted to say is that you can't have a non-French keyboard while using French as the application's locale. Whether this is English or German doesn't really matter, does it? In theory it should be possible to select both of them independent from What theory? This is not physics, but some logic decision which was taken many years ago. And it's rather simplistic: use the application's language setting string (FR, DE, EN, ...), append it to the 'qwerty_' prefix and see whether that keyboard is defined. There aren't many, I think it's basically qwerty, qwertz, azerty. And the latter would be chose if jivelite's language was French. https://github.com/ralph-irving/jivelite/blob/a1307c523a7f70e28ecde3a1e238132b23323a77/share/jive/jive/ui/Keyboard.lua#L474 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
mherger wrote: > > Picoreplayer > > I guess that means JiveLite? I believe the keyboard is tied to the UI's > > language. You can't have French menus but an English keyboard. Heheh... I think you should recognize QWERTZ from your own keyboard? It's German layout. In theory it should be possible to select both of them independent from one another but of course whatever frontend you are using must support that as well and then the next question becomes how it achieves that - does it translate the input from Clang or actually change the system locale? In the latter case it should be possible to hack into it and override the `xkbmap` through the logitech user profile. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Picoreplayer I guess that means JiveLite? I believe the keyboard is tied to the UI's language. You can't have French menus but an English keyboard. ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
Paul Webster wrote: > On which system? Picoreplayer PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] How to change the keyboard layout ?
On which system? Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
[slim] How to change the keyboard layout ?
Hello, The keyboard layout on the lcd is according to the language setting. But in some case it's not ok. Example in French it AZERTY but I would like QWERTZ instead. Is it possible to change ? Thanks PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=115763 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss