Tajik keyboard layout: put 'щ' in place of the letter 'o' for Russian words

Bug #67051 reported by Liever Onbekend
4
Affects Status Importance Assigned to Milestone
xkeyboard-config
Fix Released
Medium
xkeyboard-config (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Specific Tajik characters are not produced by the Tajik keyboard provided in Ubuntu. They should be made by typing the letter 'o' followed by the character, e.g. o + x to make the ҳ but instead a , is produced.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

What version of Ubuntu are you using?

Revision history for this message
trollord (trollenlord) wrote :

As far as we can guess this was fixed at Feisty. (Most of these accented character input problems were fixed as part of the UTF8 transition.)

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Revision history for this message
Liever Onbekend (emnej) wrote : Re: [Bug 67051] Re: Tajik keyboard not working correctly

You are right that the bug was fixed in Feisty. I can type the extra
Tajik letters now.

However, it still looks a bit interesting becaus of the following
(examples using US keyboard):

The original Tajik keyboard layout was based on using the letter 'o' for
making the extra letters. For example: typing o and then x produces Tajik h.

In the current system the letter o doesn't do anything, but the Tajik
letters can be made by using RightAlt. For example RightAlt + o produces
Tajik h.

The 'o' on the keyboard is dead and does not have any function. In
Russian (the Tajik keyboard is based on the Russian keyboard), the 'o'
produces the 'щ'.

Because Russian words are often used in Tajik, I would suggest putting
the 'щ' back in place of the letter 'o' so that the one keyboard layout
can be used for typing Tajik and Russian.

Erik

trollord wrote:
> As far as we can guess this was fixed at Feisty. (Most of these accented
> character input problems were fixed as part of the UTF8 transition.)
>
> We are closing this bug report because it lacks the information we need
> to investigate the problem, as described in the previous comments.
> Please reopen it if you can give us the missing information, and don't
> hesitate to submit bug reports in the future. To reopen the bug report
> you can click on the current status, under the Status column, and change
> the Status back to "New". Thanks again!
>
> ** Changed in: ubuntu
> Status: Incomplete => Invalid
>

Revision history for this message
trollord (trollenlord) wrote : Re: Tajik keyboard not working correctly

Ok, I believe that must be still handled by someone who understands whether changing that behavior conflicts with expected behaviour elsewhere etc.

I will attempt to set a sane package that is better than nothing - please bump forward if you have better knowledge of where keyboard layouts belong.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

I'm not familiar with Tajik or Russian keyboard layouts but this looks like something that probably can be configured and therefore likely is a support question.
Did you try to ask your question on any of the support channels like IRC or ubuntuforums.org ?

Can you provide your current xkb model, layout, variant and options settings by running the following command on a terminal:
$ xprop -root | grep XKB

Changed in xserver-xorg-input-keyboard:
importance: Undecided → Wishlist
Revision history for this message
Liever Onbekend (emnej) wrote : Re: [Bug 67051] Re: Tajik keyboard not working correctly

I don't think that it's a configuration option, but I do not know enough
about it to be sure.

The Tajik keyboard has several letters that are similar to Russian
letters, but that have an added '-' or ',' eg: 'x' and 'ҳ' . Years ago,
when I was running Mandrake, the Tajik keyboard would work in the
following way: The 'o' on my US keyboard would function as a dead key.
Typing the o and then a Russian letter without the - or the , would
produce the Tajik letter with the - or the ,

In Ubuntu this didn't work.

In Feisty, the Tajik keyboard works again, but I now can produce the
Tajik letter by using a combination of RightAlt and the Russian letter
that looks like it. The 'o' doesn't do anything.

To me it seems that the following happened:
1. There was a working keyboard
2. It broke
3. Someone fixed it but used a different system, replacing the o with
RightAlt. He forgot to give the o back its original function.

This is ok, but it looks strange that the o doesn't produce any letter
and that the щ (the letter that is normally produced by the o on the
Russian keyboard) is missing. This also makes it difficult to type some
Russian words in Tajik.

I may be totally wrong. It's maybe just speculation by someone who
doesn't understand the system.

Here is the output of the command you gave me:

xprop -root | grep XKB

_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "us", "intl", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc105", "us,tj", "intl,",
"grp:alts_toggle"

Thanks for looking into this,

Erik

Pascal De Vuyst wrote:
> I'm not familiar with Tajik or Russian keyboard layouts but this looks like something that probably can be configured and therefore likely is a support question.
> Did you try to ask your question on any of the support channels like IRC or ubuntuforums.org ?
>
> Can you provide your current xkb model, layout, variant and options settings by running the following command on a terminal:
> $ xprop -root | grep XKB
>
>
> ** Summary changed:
>
> - Tajik keyboard not working correctly
> + Tajik keyboard layout: put 'щ' in place of the letter 'o' for Russian words
>
> ** Changed in: xserver-xorg-input-keyboard (Ubuntu)
> Importance: Undecided => Wishlist
>

Revision history for this message
Liever Onbekend (emnej) wrote : Re: [Bug 67051] Changed tj xkb file
Download full text (3.9 KiB)

I changed the file usr/share/X11/xkb/symbols/tj so that the AD09 key is
no longer dead, but produces cyrillic_shcha. The changed file is
attached. When using this it is possible to type all Tajik and Russian
words on the tj keyboard without having a dead key.

Erik

// $XKeyboardConfig: xkbdesc/symbols/tj,v 1.9 2005/08/01 22:11:07 svu Exp $

// based on
// Tajik keyboard
// it is a Russian layout keyboard, with SHCHA replaced with
// dead_cedilla/dead_macron
// that allows to type the SHCHA with dead_cedilla + SHA
// and all the extra Tajik keys:
// dead_cedilla + KA, HA --> KA descender, HA descender
// dead_macron + I, U, GHE --> I macron, U macron, GHE horizontal stroke
// it requires proper dead_cedilla and dead_macron entries in Compose file
// it also allows to use Mode_switch when in cyrillic mode to enter
// special letters by doing Mode_switch + base letter
//
// AEN <email address hidden> (for the Russian layout)
// Pablo Saratxaga <pablo@mandrakesoft> (for the dead keys changes)
//
// August 2007
// Changed so that RightAlt allows to type the extra Tajik keys and that
// SHCHA is back to normal again

partial default alphanumeric_keys
xkb_symbols "basic" {

    name[Group1]= "Tajikistan";

    key <TLDE> { [ Cyrillic_io, Cyrillic_IO ] };
    key <LSGT> { [ bar, brokenbar ] };
    key <AD01> { [ Cyrillic_shorti, Cyrillic_SHORTI ] };
    key <AE01> { [ 1, exclam ] };
    key <AB01> { [ Cyrillic_ya, Cyrillic_YA ] };
    key <AC02> { [ Cyrillic_yeru, Cyrillic_YERU ] };
    key <AC01> { [ Cyrillic_ef, Cyrillic_EF ] };
    key <AD02> { [ Cyrillic_tse, Cyrillic_TSE ] };
    key <AE02> { [ 2, quotedbl ] };
    key <AB03> { [ Cyrillic_es, Cyrillic_ES ] };
    key <AB02> { [ Cyrillic_che, Cyrillic_CHE, 0x010004b7, 0x010004b6 ] };
    key <AC03> { [ Cyrillic_ve, Cyrillic_VE ] };
    key <AD03> { [ Cyrillic_u, Cyrillic_U, 0x010004ef, 0x010004ee ] };
    key <AE04> { [ 4, asterisk ] };
    key <AE03> { [ 3, apostrophe ] };
    key <AB04> { [ Cyrillic_em, Cyrillic_EM ] };
    key <AC04> { [ Cyrillic_a, Cyrillic_A ] };
    key <AD05> { [ Cyrillic_ie, Cyrillic_IE ] };
    key <AD04> { [ Cyrillic_ka, Cyrillic_KA, 0x0100049b, 0x0100049a ] };
    key <AE05> { [ 5, colon ] };
    key <AB06> { [ Cyrillic_te, Cyrillic_TE ] };
    key <AB05> { [ Cyrillic_i, Cyrillic_I, 0x010004e3, 0x010004e2 ] };
    key <AC06> { [ Cyrillic_er, Cyrillic_ER ] };
    key <AC05> { [ Cyrillic_pe, Cyrillic_PE ] };
    key <AD06> { [ Cyrillic_en, Cyrillic_EN ] };
    key <AE06> { [ 6, comma ] };
    key <AB07> { [Cyrillic_softsign,Cyrillic_SOFTSIGN ] };
    key <AC07> { [ Cyrillic_o, Cyrillic_O ] };
    key <AD07> { [ Cyrillic_ghe, Cyrillic_GHE, 0x01000493, 0x01000492 ] };
    key <AE07> { [ 7, period ] };
    key <AE08> { [ 8, semicolon ] };
    key <AB08> { [ Cyrillic_be, Cyrillic_BE ] };
    key <AC08> { [ Cyrillic_el, Cyrillic_EL ] };
    key <AD08> { [ Cyrillic_sha, Cyrillic_SHA, Cyrillic_shcha, Cyrillic_SHCHA] ...

Read more...

Changed in xserver-xorg-input-keyboard:
assignee: pascal-devuyst → nobody
status: Incomplete → New
Changed in xserver-xorg-input-keyboard:
importance: Wishlist → Low
importance: Low → Undecided
Revision history for this message
Liever Onbekend (emnej) wrote : Re: [Bug 67051] Re: Tajik keyboard layout: put 'щ' in place of the letter 'o' for Russian words

Pascal,

I'm probably not sufficiently aware of the open source process of fixing
bugs, but it is really easy to fix this bug by using the file I supplied
a few months ago for the Tajik keyboard lay-out. That's all that needs
to be done.

Erik

Pascal De Vuyst wrote:
> ** Changed in: xserver-xorg-input-keyboard (Ubuntu)
> Importance: Wishlist => Low
>
> ** Changed in: xserver-xorg-input-keyboard (Ubuntu)
> Importance: Low => Undecided
>
>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

You should report such changes upstream, see:

http://freedesktop.org/wiki/Software/XKeyboardConfig

Revision history for this message
In , Jean-Baptiste Lallement (jibel) wrote :

I'm reporting this for a Ubuntu user:

"The original Tajik keyboard layout was based on using the letter 'o' for
making the extra letters. For example: typing o and then x produces Tajik h.

In the current system the letter o doesn't do anything, but the Tajik
letters can be made by using RightAlt. For example RightAlt + o produces
Tajik h.

The 'o' on the keyboard is dead and does not have any function. In
Russian (the Tajik keyboard is based on the Russian keyboard), the 'o'
produces the 'щ'.

Because Russian words are often used in Tajik, I would suggest putting
the 'щ' back in place of the letter 'o' so that the one keyboard layout
can be used for typing Tajik and Russian."

then

"I changed the file usr/share/X11/xkb/symbols/tj so that the AD09 key is
no longer dead, but produces cyrillic_shcha. The changed file is
attached. When using this it is possible to type all Tajik and Russian
words on the tj keyboard without having a dead key."

See https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-keyboard/+bug/67051/comments/7 for proposed solution

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. Your suggestion has been submitted upstream.

Changed in xserver-xorg-input-keyboard:
status: New → Confirmed
Changed in xkeyboard-config:
status: Unknown → Confirmed
Revision history for this message
In , Sergey V. Udaltsov (svu) wrote :

Could you please make a small patch against the current version? Also, I'd appreciate if you sort the keys in that file alphabetically (by the keycode name). Currently tj file is a bit messy...

Thanks.

Revision history for this message
In , Jean-Baptiste Lallement (jibel) wrote :

Created an attachment (id=17288)
Patch against current version of tj layout keyboard

Here is the patch. It remaps key AD09 and the keys are now sorted alphabetically.
Feel free to change it the way you want. I'll report back to the original reporter.

Revision history for this message
In , Sergey V. Udaltsov (svu) wrote :

That's lovely, committed!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

A patch has been submitted upstream.

Liever, can you review it and confirm that it's what you're expecting ? ( it should, because it's a remap of key AD09 and keys have been sorted by keycode)

Thanks

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fix commited upstream.

Changed in xserver-xorg-input-keyboard:
status: Confirmed → Fix Committed
Changed in xkeyboard-config:
status: Confirmed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Fixed in intrepid.

Changed in xserver-xorg-input-keyboard:
status: Fix Committed → Fix Released
Changed in xkeyboard-config:
importance: Unknown → Medium
Changed in xkeyboard-config:
importance: Medium → Unknown
Changed in xkeyboard-config:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.