Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:19 PM   #1
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 37
Karma: 10
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; Yesterday at 06:07 PM.
edojan is offline   Reply With Quote
Old Today, 09:23 AM   #2
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,304
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.
pazos is offline   Reply With Quote
Advert
Old Today, 10:52 AM   #3
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by pazos View Post
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.
Unfortunately, this doesn't seem to be the case when running under WSL (see the screenshot). No matter what keyboard language / layout settings is selected under the host OS (in my case windows 11), Koreader remains oblivious to the changes.
Attached Thumbnails
Click image for larger version

Name:	2024-07-18_104200.jpg
Views:	9
Size:	128.5 KB
ID:	209641  
edojan is offline   Reply With Quote
Old Today, 11:20 AM   #4
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,304
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
pazos is offline   Reply With Quote
Old Today, 11:50 AM   #5
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by pazos View Post
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
I have reviewed the github thread above and reset all the language / region settings to default. Unfortunately, this did not help.
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; Today at 11:52 AM.
edojan is offline   Reply With Quote
Advert
Old Today, 04:27 PM   #6
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,304
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
2. See the supported layouts you have available:

Code:
localectl list-x11-keymap-layouts

3. Set the layout to one of the supported languages:

Code:
localectl set-x11-keymap $LAYOUT
Hopefully you'll never need to tweak it again if you're fine with a single key layout on your WSL apps.

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.
pazos is offline   Reply With Quote
Old Today, 05:16 PM   #7
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by pazos View Post
That's a bummer!

3. Set the layout to one of the supported languages:

Code:
localectl set-x11-keymap $LAYOUT
Hopefully you'll never need to tweak it again if you're fine with a single key layout on your WSL apps.

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.
Pazos, thanks for your help. Unfortunately, when I try entering
Code:
localectl set-x11-keymap $LAYOUT
command - e.g.
Code:
sudo localectl set-x11-keymap ru
produces the following error:
Code:
Setting X11 and console keymaps is not supported in Debian.
edojan is offline   Reply With Quote
Old Today, 05:35 PM   #8
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,304
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by edojan View Post
Pazos, thanks for your help. Unfortunately, when I try entering
Code:
localectl set-x11-keymap $LAYOUT
command - e.g.
Code:
sudo localectl set-x11-keymap ru
produces the following error:
Code:
Setting X11 and console keymaps is not supported in Debian.
Both debian and ubuntu come with systemd. It is the wsl thingy that lacks it, it seems.

Good to know microsoft sucks doing linux containers :/

Please try https://unix.stackexchange.com/a/744897 instead.
pazos is offline   Reply With Quote
Reply


Forum Jump

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 05:32 AM
External Keyboard wildcolor Kindle Developer's Corner 14 06-05-2013 04:35 PM
Color Use of external keyboard notaguru Nook Color & Nook Tablet 0 04-19-2012 01:35 PM
DR1000 External keyboard giuseppemag iRex 1 06-02-2010 03:25 AM
Cool Reader and key 9 in Hyphenation language selector CPatrick OpenInkpot 6 04-19-2010 09:02 AM


All times are GMT -4. The time now is 06:41 PM.


MobileRead.com is a privately owned, operated and funded community.