Bug 1337393

Summary: RFE: hide Indian keyboard layouts in the gnome-control-centre by moving them from base.xml to base.extras.xml
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: xkeyboard-configAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: anish.developer, i18n-bugs, mfabian, negativo17, peter.hutterer, petersen, psatpute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-28 06:32:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
move-indian-layouts-to-extra-xml.patch
none
before-and-after-moving-indian-keyboard-layouts-to-base.extras.xml.png
none
0001-Move-Indian-keyboard-layouts-from-base.xml.in-to-bas.patch none

Description Mike FABIAN 2016-05-19 05:53:18 UTC
See: https://fedorahosted.org/i18n/ticket/36
and: https://lists.fedoraproject.org/pipermail/devel/2015-January/206011.html

Apparently the Indian keyboard layouts in xkeyboard-config are not
very useful because of limitations in xkb. In xkb, it is not possible
to output several characters when one key is pressed but that seems
sometimes necessary.

For Indian languages, the input methods supplied by ibus-m17n appear
to be more useful, having the xkb keyboard layouts show up as well in
the gnome-control centre confuse the user because of too many useless
choices.

Therefore, Anish Patil suggested to hide these Indian keyboard layouts
in the gnome-control-centre.

The easiest way to hide them is to move them from
/usr/share/X11/xkb/rules/base.xml to
/usr/share/X11/xkb/rules/base.extras.xml because gnome-control-centre
does not list the layouts from base.extras.xml.

base.extras.xml seems to be for rarely used layouts, so these Indian
layouts seem to fet better there than in base.xml.

Comment 1 Mike FABIAN 2016-05-19 05:59:18 UTC
Created attachment 1159253 [details]
move-indian-layouts-to-extra-xml.patch

Patch to fix this problem.

(Against current master of git://git.freedesktop.org/git/xkeyboard-config).

Comment 2 Mike FABIAN 2016-05-19 06:21:35 UTC
Created attachment 1159254 [details]
before-and-after-moving-indian-keyboard-layouts-to-base.extras.xml.png

screen shots showing the effect of the patch when listing input
methods for Hindi using the gnome-control-centre.

Left: without the patch
Right: with the patch

On the right side, only the ibus input methods are shown for Hindi,
the xkb layouts are hidden.

Comment 3 Mike FABIAN 2016-05-19 06:27:55 UTC
Created attachment 1159256 [details]
0001-Move-Indian-keyboard-layouts-from-base.xml.in-to-bas.patch

Patch for our Fedora rpm package for xkeyboard-config.
Against current master.

Comment 4 Peter Hutterer 2016-06-07 06:08:43 UTC
Filed an upstream bug for feedback: https://bugs.freedesktop.org/show_bug.cgi?id=96418

Comment 5 Pravin Satpute 2016-08-31 06:09:46 UTC
Hi Peter,

   Its long time pending task, even not getting any update in upstream (there are multiple tickets) :(
   Can you see if anything blocker here? 

Thanks :)

Comment 6 Mike FABIAN 2016-08-31 06:11:54 UTC
From: Sergey Udaltsov <sergey.udaltsov>
Subject: Re: Bug 96418 - Move indian layouts to extras
To: Mike FABIAN <maiku.fabian>
Date: Sat, 27 Aug 2016 22:53:14 +0100 (3 days, 8 hours, 16 minutes ago)


Hi Mike

That idea makes sense. The next xk-c release is in September, so most
probably your patch will go in

Cheers

Sergey

On Fri, Aug 26, 2016 at 8:49 AM, Mike FABIAN <maiku.fabian> wrote:

> Hi Sergey,
>
> what do you think about:
>
> Bug 96418 - Move indian layouts to extras:
> https://bugs.freedesktop.org/show_bug.cgi?id=96418
>
> Can we do this?
>
> --
> � Mike FABIAN   <mike.fabian>
> 睡眠不足はいい仕事の敵だ。
>

Comment 7 Peter Hutterer 2016-11-28 06:32:50 UTC
xkeyboard-config 2.19 has this patch applied