Bug 86858 - Wrong keymaps for Russian layout, Mari variant
Summary: Wrong keymaps for Russian layout, Mari variant
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-29 19:05 UTC by Viatcheslav Kileev
Modified: 2014-12-10 22:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
patch to fix Mari variant of Russian layout (1.38 KB, text/plain)
2014-11-29 19:05 UTC, Viatcheslav Kileev
Details
More cleaner patch (1.37 KB, patch)
2014-12-03 18:07 UTC, Viatcheslav Kileev
Details | Splinter Review
updated patch (1.50 KB, patch)
2014-12-10 17:41 UTC, Viatcheslav Kileev
Details | Splinter Review

Description Viatcheslav Kileev 2014-11-29 19:05:57 UTC
Created attachment 110233 [details]
patch to fix Mari variant of Russian layout

I have found some mistakes in Mari variant of Russian keyboard layout. Here is a patch to fix it. Being a native speaker It should be noticed, that Mari language has only 5 additional letters to standart Russian alphabet (but current layout has 7, some of which are wrong). The right symbols are:
* cyrillic a with diaresis,
* cyrillic u with diaresis,
* cyrillic yeru (curillic ui) with diaresis,
* cyrillic o with diaresis
* cyrillic legature en ghe
The patch fixes this problem.
Comment 1 Viatcheslav Kileev 2014-11-30 16:49:15 UTC
The file that should be patched in tree is root/symbols/ru. This file on installed linux machine in filesystem located at /usr/share/X11/xkb/symbols/ru
Comment 2 Benno Schulenberg 2014-12-02 20:14:28 UTC
Hmm.  The patch is not very clean: in some lines it merely makes whitespace changes.  Please don't do that -- it obscures the real changes that you make.  Also please don't change the position of the include line, and don't add back the pointless "based on" comment line.

As for the actual changes, could you discuss with the poster of the current layout (in bug 32532) about why he included the things that you are wrong?

As for getting the patch applied, please be patient -- it can take several days or even weeks for the maintainer of xkeyboard-config to respond or apply stuff.
Comment 3 Avram Lyon 2014-12-03 07:38:06 UTC
Viatcheslav is from the same localization group that I was working with when I submitted the original version, so I defer to their judgment on correctness of layout, although I have asked him privately to provide some explanation here for the change, at least for posterity's sake.

I am also working with him to help him make a clean patch, so that should be resolved shortly.
Comment 4 Viatcheslav Kileev 2014-12-03 18:07:41 UTC
Created attachment 110419 [details] [review]
More cleaner patch
Comment 5 Viatcheslav Kileev 2014-12-03 18:20:27 UTC
I have attached new patch. Now it should be clean. What does this patch changes:
First of all it changes include file.
-    include "ru(common)"
+    include "ru(winkeys)"
Now Mari variant is based on winkeys variant, therefore dot, comma and other such symbols would work proper.
Second change deletes some keymaps that are not from Mari language:
-    key <AC11> { [   Cyrillic_e,   Cyrillic_E,   U04E9,   U04E8  ] };
-    key <AC10> { [  Cyrillic_zhe,  Cyrillic_ZHE, U04EB,   U04EA  ] };
-    key <AC01> { [   Cyrillic_ef,  Cyrillic_EF,  UF537,   UF536  ] };
Letters U04E9 and U04E8 are from Udmurt language, Mari language does not have such letters. And what about UF537 and UF536 - I don't even know what language these letters are from. Being a native speaker I am absolutely certain that Mari language does not have such letters.
And the third change adds one keymap:
+    key <AC07> { [   Cyrillic_o,   Cyrillic_O,   U04E7,   U04E6  ] };
This two letters (U04E7, U04E6) were missed in original layout, though they are used in Mari language and Mari alphabet have them.
Comment 6 Avram Lyon 2014-12-05 08:39:44 UTC
Thanks, Viatcheslav. As the contributor of the previous layout, I have no concerns with the patch and am glad to see the Mari community contributing directly now.
Comment 7 Benno Schulenberg 2014-12-07 20:20:03 UTC
(In reply to Viatcheslav Kileev from comment #5)
Thanks for the detailed explanations, Viatcheslav.  The patch looks nice now.
Except... for the subject line.  It now says just "[PATCH] b", but it should
instead very succinctly describe the change that is made.  I would propose something like: "[PATCH] symbols/ru: remove non-Mari letters from Mari layout and add the missing one".  After a blank line you then add the URL of this bug
(https://bugs.freedesktop.org/show_bug.cgi?id=86858) so interested people can later easily find the full rationale for the change.
Comment 8 Sergey V. Udaltsov 2014-12-09 23:54:20 UTC
> Except... for the subject line.  It now says just "[PATCH] b", but it should
> instead very succinctly describe the change that is made.  I would propose
> something like: "[PATCH] symbols/ru: remove non-Mari letters from Mari
> layout and add the missing one".  After a blank line you then add the URL of
> this bug
> (https://bugs.freedesktop.org/show_bug.cgi?id=86858) so interested people
> can later easily find the full rationale for the change.
Yes please, I would second that request. Let's make that patch absolutely beautiful before I commit it.
Comment 9 Viatcheslav Kileev 2014-12-10 17:41:30 UTC
Created attachment 110684 [details] [review]
updated patch

I'm new in creating patches, so thanks a lot for your attempts in teaching me how to create them. I have added the description to header as Benno suggested. I suppose that patch file should be perfect now.
Comment 10 Sergey V. Udaltsov 2014-12-10 22:58:57 UTC
The patch was nearly perfect:) I had to remove xkeyboard-config from the file paths. Anyway, it is in git now. Thank you!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.