Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2024, 06:19 PM   #1
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
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; 07-17-2024 at 07:07 PM.
edojan is offline   Reply With Quote
Old 07-18-2024, 10: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,325
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 07-18-2024, 11:52 AM   #3
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
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:	76
Size:	128.5 KB
ID:	209641  
edojan is offline   Reply With Quote
Old 07-18-2024, 12:20 PM   #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,325
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 07-18-2024, 12:50 PM   #5
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
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; 07-18-2024 at 12:52 PM.
edojan is offline   Reply With Quote
Advert
Old 07-18-2024, 05: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,325
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 07-18-2024, 06:16 PM   #7
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
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 07-18-2024, 06: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,325
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
Old 07-19-2024, 01:53 PM   #9
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
Karma: 10
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
and to revert back to the US english layout:
Code:
setxkbmap us

Last edited by edojan; 07-19-2024 at 02:59 PM.
edojan is offline   Reply With Quote
Old 07-22-2024, 02:00 PM   #10
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
Karma: 10
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.
edojan is offline   Reply With Quote
Old 07-22-2024, 02:46 PM   #11
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
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
mergen3107 is offline   Reply With Quote
Old 07-22-2024, 02:59 PM   #12
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by mergen3107 View Post
For now try to manually close it by swiping down on the keyboard with mouse
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.
edojan is offline   Reply With Quote
Old 07-23-2024, 07:27 AM   #13
Ebookus
Digital Grenadier
Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.
 
Ebookus's Avatar
 
Posts: 89
Karma: 750000
Join Date: Jan 2024
Device: Kindle
Try: Shift + Home
Ebookus is offline   Reply With Quote
Old 07-23-2024, 09:02 AM   #14
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,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by edojan View Post
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.
Not yet, maybe soon: https://github.com/koreader/koreader/issues/11374
pazos is offline   Reply With Quote
Old 07-23-2024, 02:32 PM   #15
edojan
Enthusiast
edojan began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by Ebookus View Post
Try: Shift + Home
I have tried this too. It has the same effect as clicking outside the virtual keyboard - i.e. the external keyboard loses focus and can no longer be used.
edojan 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 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


All times are GMT -4. The time now is 07:26 PM.


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