question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard layout screen should show hints in the current settings language

See original GitHub issue

The UI for adding a new keyboard layout assumes that the user knows the native spelling of the language and that the user has the apropriate keyboard to type those characters. This is not always the case, especially for those who want to learn a new language (or test pull requests like #1681)

I’m not sure what’s the correct solution here, but one approach could be to add translations for the layout languages in the various languages used by the keyboard settings application. And then we could have some sort of hint for each option or use the translation as default and have the hint show the native name of the language.

I saw #1681 and I wanted to validate the changes, just to make sure that it’s not a node-ipc-style vandalism. And while trying to validate the changes I had to use a translation service and send the native language names via an instant messaging application. And at that point I realized that I’ve ran into the samne issue some time ago, when I was trying to add a new keyboard layout for my language learning app.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickgoldcommented, Mar 24, 2022

Regarding the CLDR layouts: During the development of emojicon I discovered that the CLDR had a ton of keyboard layouts for varying sizes, and it may be worth checking out if the default layouts should inherit from these or not. The most interesting thing is that the CLDR combines the symbol layouts to the character layouts, whereas FlorisBoard has completely decoupled them. Tbh I don’t want to ever take away that freedom of combining anything you want. We could add the CLDR layouts as suggested subtype presets though.

I think though before we address the CLDR layouts we should focus on the subtype management process and the layout extension metadata.

1reaction
SchnWaltercommented, Mar 24, 2022

It might not be needed, especially if you have only one layout per language or it’s obvious what you have. But there are situations where it makes sense to add that extra information. For canadian_french you might want to show the layout, because the fr_CA layout is QWERTY and the fr_FR layout is AZERTY.

Currently we have layouts and they have no relation to languages, maybe in the long run, it would be worth looking into what the Unicode CLDR (Common Locale Data Repository) is doing. They group the layouts by language, and they even provide “names” for all these layouts. Here are 3 layouts for small screens (768dpi), it seems that they only add the “layout design” info if it’s not the default: French Canada and not French Canada (QWERTY)

image

More info:

If @patrickgold approves, I could create a python script to extract that “CLDR Layouts” data, similar to the florisboard/emojicon repo for extracting CLDR emoji data. And in the long run, we could have “Standard Layouts” and “Custom Layouts”. Note that this repository seems to lack various layouts available on modern systems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage the input and display language settings in Windows
Add a keyboard · Select the Start > Settings > Time & language > Language & region. · Select the language that has...
Read more >
How to change keyboard layout on Windows 10
Click on Time & Language. Click on Language. Under the "Preferred languages" section, select the current default language (top in the list).
Read more >
Change keyboard layout language for the login screen
Change keyboard layout language for the login screen · Go to the Control Panel, open the Language preferences, and then click Options. ·...
Read more >
Windows 10 How to set the correct Keyboard layout for your ...
Setting the correct Keyboard layout on a PC can be tricky, follow these instructions and you will know where to set up the...
Read more >
How to make the current keyboard layout more obvious in ...
Are there existing settings in Windows, or software I could install, that could help? Examples of what I mean when I'm using a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found