07-17-2024, 06:19 PM | #1 |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
WSL Koreader - External keyboard language selector
Koreader works well under WSL (ubuntu) allowing me to type notes using my computer's keyboard. This massively speeds up book annotation in comparison to onscreen keyboarding. I wonder if anyone tried using foreign language keyboard layouts (I mean with the external keyboard)? Should I install the new keyboard layout under ubuntu or is there anything else that needs to be done in order for this to work?
Last edited by edojan; 07-17-2024 at 07:07 PM. |
07-18-2024, 10:23 AM | #2 |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Different layouts should work fine on the desktop version.
When using a version that runs in a VM (such as KOReader on Windows, via WSL, or KOReader on ChromeOS, via Crostini) you shouldn't need to change layouts for particular deployments. It should be enough to change the layout of the underlying Windows or ChromeOS system. |
Advert | |
|
07-18-2024, 11:52 AM | #3 | |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Quote:
|
|
07-18-2024, 12:20 PM | #4 |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Make sure your settings look similar to https://github.com/microsoft/wslg/is...ent-2201566425
It might be possible that the settings are applied only after a WSL restart. If you're not sure how to do that just reboot windows. Once the settings are correctly applied they should behave the same in all environments installed under the WSL virtual machine. If that's not the case please double check that you can reproduce the same issue in any other linux GUI app. Never discard a regression in WSL |
07-18-2024, 12:50 PM | #5 | |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Quote:
All terminal apps display the languages correctly and respond to the windows keyboard layout changes. Not any of the gui-ed apps I tried (e.g. gedit). All gui-ed apps ignore the language settings. Btw, everything works as supposed to if koreader is installed on ubuntu running under vmware workstation. But then it is not using the windows keyboard layout but one installed under ubuntu... Last edited by edojan; 07-18-2024 at 12:52 PM. |
|
Advert | |
|
07-18-2024, 05:27 PM | #6 |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
That's a bummer!
I think you can workaround it !? If you start the terminal on your ubuntu session on WSL: 1. See your current settings typing: Code:
localectl Code:
localectl list-x11-keymap-layouts 3. Set the layout to one of the supported languages: Code:
localectl set-x11-keymap $LAYOUT Since you also have a proper ubuntu installation on a proper VM you could try compare the output of those commands between WSL and the real thing. |
07-18-2024, 06:16 PM | #7 | |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Quote:
Code:
localectl set-x11-keymap $LAYOUT Code:
sudo localectl set-x11-keymap ru Code:
Setting X11 and console keymaps is not supported in Debian. |
|
07-18-2024, 06:35 PM | #8 | |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
Good to know microsoft sucks doing linux containers :/ Please try https://unix.stackexchange.com/a/744897 instead. |
|
07-19-2024, 01:53 PM | #9 |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Thanks pazos. The setxkbmap command has worked. So now to switch my keyboard to russian phonetic I enter in the CLI the following:
Code:
setxkbmap ru phonetic_winkeys Code:
setxkbmap us Last edited by edojan; 07-19-2024 at 02:59 PM. |
07-22-2024, 02:00 PM | #10 |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Do you know if there is any way to hide the onscreen keyboard under the linux version when using the external keyboard? I know there was some discussion about this but not sure if this has been implemented.
|
07-22-2024, 02:46 PM | #11 |
Wizard
Posts: 1,344
Karma: 4753026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
For now try to manually close it by swiping down on the keyboard with mouse
|
07-22-2024, 02:59 PM | #12 |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
Swiping down doesn't do anything. Clicking outside the onscreen keyboard makes it disappear, while the "edit note" dialog remains visible. The problem is that then then the external keyboard stops working since it loses the focus. Clicking inside the "edit note" dialog returns the focus to the external keyboard but it also brings back the onscreen keyboard.
|
07-23-2024, 07:27 AM | #13 |
Digital Grenadier
Posts: 90
Karma: 750000
Join Date: Jan 2024
Device: Kindle
|
Try: Shift + Home
|
07-23-2024, 09:02 AM | #14 | |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
|
|
07-23-2024, 02:32 PM | #15 |
Enthusiast
Posts: 48
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using external keyboard with KOReader's Text Editor | paperwhite13 | Kindle Developer's Corner | 0 | 03-18-2024 06:32 AM |
External Keyboard | wildcolor | Kindle Developer's Corner | 14 | 06-05-2013 05:35 PM |
Color Use of external keyboard | notaguru | Nook Color & Nook Tablet | 0 | 04-19-2012 02:35 PM |
DR1000 External keyboard | giuseppemag | iRex | 1 | 06-02-2010 04:25 AM |
Cool Reader and key 9 in Hyphenation language selector | CPatrick | OpenInkpot | 6 | 04-19-2010 10:02 AM |