After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 684565 - Typing based search for finding a keyboard layout is suboptimal
Typing based search for finding a keyboard layout is suboptimal
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Region & Language
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-21 15:55 UTC by Stef Walter
Modified: 2013-05-09 19:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
common: Show popular languages in their own language (8.15 KB, patch)
2012-12-11 07:18 UTC, Bastien Nocera
none Details | Review
common: Add 2nd column to the region choosers (8.10 KB, patch)
2012-12-11 07:21 UTC, Bastien Nocera
needs-work Details | Review
What it looks like (33.16 KB, image/png)
2012-12-11 07:24 UTC, Bastien Nocera
  Details

Description Stef Walter 2012-09-21 15:55:15 UTC
One of the big use cases for using the Layout tab of the Region and Language is if you can't type with the system selected default keyboard layout, and need to find the one that matches how you type.

In this case presenting the user with a big list of layouts in the 'Select an input source to add:' dialog, and expecting them to type to filter the search and find a specific layout is problematic.

Much better would be to have a categorized or tree based filtering in this case. Even if it is different from other parts of how search is the gnome-control-center is done, it makes sense given the use case.
Comment 1 Matthias Clasen 2012-09-21 16:15:26 UTC
you have a point...
Comment 2 Matthias Clasen 2012-09-21 23:44:20 UTC

*** This bug has been marked as a duplicate of bug 684540 ***
Comment 3 Stef Walter 2012-09-22 05:19:26 UTC
Seems related to that bug but doesn't seem to be a duplicate. The bug noted above is about typing a non-English name for input sources. This bug is about not typing at all.
Comment 4 Rui Matos 2012-09-22 13:38:18 UTC
(In reply to comment #3)
> Seems related to that bug but doesn't seem to be a duplicate. The bug noted
> above is about typing a non-English name for input sources. This bug is about
> not typing at all.

Right, for that we'll need to re-work how we present the input sources. I think a 2 level deep tree would work well with the 1st level being either the language or the country/territory. I'd love some design input here.

On the technical side, to do such a thing, we'll need to

1) add more metadata to the various layouts in xkeyboard-config since they are very incomplete right now in advertising which language/territory/country they apply to;

2) have a library that can be used by the various desktop modules to handle the mapping of ISO language and territory codes to their translated names. This is basically what gdm-languages.c in the g-c-c tree does and I have some proto patches locally that I'll try to move to gnome-desktop for the next cycle if people agree it's a good idea.
Comment 5 Mathieu Bridon 2012-11-29 12:34:09 UTC
(In reply to comment #4)
> Right, for that we'll need to re-work how we present the input sources. I think
> a 2 level deep tree would work well with the 1st level being either the
> language or the country/territory. I'd love some design input here.

Countries/territories often brings their lot of political tensions (e.g would you write « Taiwan, Republic of China » or « Taiwan, Province of the People's Republic of China » ? Don't answer ;) )

That's the same reason why distributions like Fedora have strict policies against showing flags.

Languages is much more neutral, and it seems more related to the action at hand: allowing the input of a language.

> 2) have a library that can be used by the various desktop modules to handle the
> mapping of ISO language and territory codes to their translated names. This is
> basically what gdm-languages.c in the g-c-c tree does and I have some proto
> patches locally that I'll try to move to gnome-desktop for the next cycle if
> people agree it's a good idea.

Could the DB Anish talks about in bug 689269 help here?
Comment 6 Matthias Clasen 2012-11-29 23:49:19 UTC
A new design for the add language dialog is here:
https://live.gnome.org/Design/SystemSettings/RegionAndLanguage#Input_Sources_Updates
Comment 7 Bastien Nocera 2012-12-11 07:18:17 UTC
Created attachment 231239 [details] [review]
common: Show popular languages in their own language

Instead of the current one. In the add dialog, show
two columns, one in their own language, and one in
the current language. Make the filtering match both
columns.
Comment 8 Bastien Nocera 2012-12-11 07:21:35 UTC
Created attachment 231240 [details] [review]
common: Add 2nd column to the region choosers

Show a 2nd column with the region name/language name
in its original language.
Make the filtering match both columns.
Comment 9 Bastien Nocera 2012-12-11 07:22:51 UTC
Comment on attachment 231240 [details] [review]
common: Add 2nd column to the region choosers

Some languages aren't getting translated correctly though, so marking as needs-work.
Comment 10 Bastien Nocera 2012-12-11 07:24:34 UTC
Created attachment 231241 [details]
What it looks like
Comment 11 Matthias Clasen 2012-12-11 11:41:03 UTC
Looks nice. I like it.
Comment 12 Rui Matos 2013-05-09 19:35:13 UTC
This was re-designed for 3.8.