Bug 1076945

Summary: Arabic Lam-Alef
Product: [Fedora] Fedora Reporter: Mosaab Alzoubi <moceap>
Component: ibus-m17nAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: avidseeker7, dueno, i18n-bugs, jwakely, mfabian, mlkkaml852, moceap, pnemade, shawn.p.huang, syrianguy470, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ibus-m17n-1.3.4-21.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-22 16:49: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
test xkb and m17n none

Description Mosaab Alzoubi 2014-03-16 17:40:09 UTC
When letter Alef (ا) goes after letter Lam (ل), they connected in one shape called Lam-Alef and written like (لا) and still 2 letters not one!

Xkb write Lam-Alef as one letter! This big wrong!!!

In IBus we can fix this problem by enable m17n-ar instead of Xkb so it should be primary choose.

Thank You.

Comment 1 fujiwara 2014-03-17 08:42:50 UTC
Do you mean m17n:ar:kbd ?

You could check the loaded engine names with the following command:

% gsettings get org.freedesktop.ibus.general preload-engines
['xkb:us::eng', 'm17n:ar:kbd']

If yes, I think it can be fixed by ibus-m17n to raise the rank of m17n:ar:kbd .

Comment 2 Mosaab Alzoubi 2014-03-19 21:02:41 UTC
No it isn't :

$ gsettings get org.freedesktop.ibus.general preload-engines
@as []



Also m17n:ar isn't enabled in fedora setting !!

Comment 3 fujiwara 2014-03-20 02:42:12 UTC
(In reply to Mosaab Alzoubi from comment #2)
> $ gsettings get org.freedesktop.ibus.general preload-engines
> @as []

It means you don't use any ibus enignes.
Did you run gsettings command after you enable m17n arabic?

> In IBus we can fix this problem by enable m17n-ar instead of Xkb so it
> should be primary choose.

I'm asking which engine you wish to use by gsettings.

Comment 4 Mosaab Alzoubi 2014-03-20 19:25:49 UTC
M17n Arabic isn't listed in Ibus settings , I tried it on old MINT.
When I use Arabic from Ibus , it just offer Xkb one.

Comment 5 fujiwara 2014-03-24 02:25:27 UTC
And then I don't understand which arabic engine you ask.

(In reply to Mosaab Alzoubi from comment #0)
> In IBus we can fix this problem by enable m17n-ar instead of Xkb so it
> should be primary choose.

Comment 6 Mosaab Alzoubi 2014-03-25 00:26:47 UTC
We need to enable m17n-ar by default for Ibus instead of Xkb-ar.

Comment 7 fujiwara 2014-03-25 03:10:39 UTC
(In reply to Mosaab Alzoubi from comment #6)
> We need to enable m17n-ar by default for Ibus instead of Xkb-ar.

So I'm asking what is m17n-ar?
How is the shown in ibus UI?

Comment 8 Jens Petersen 2014-04-08 07:34:04 UTC
Presumably /usr/share/m17n/ar-kbd.mim

I dunno if this should be moved to langtable?

Mosaab are you also saying that xkb does the wrong thing?

Comment 9 Mosaab Alzoubi 2014-04-08 13:08:17 UTC
This problem found in Xkb and its solved in M17n amd Xim.

Comment 10 fujiwara 2014-04-09 01:37:22 UTC
(In reply to Mosaab Alzoubi from comment #9)
> This problem found in Xkb and its solved in M17n amd Xim.

How did you try m17n?
DId you install an external package?

Comment 11 Mosaab Alzoubi 2014-04-10 17:34:16 UTC
I can't try Arabic-M17n in Fedora It isn't listed !!! in IBus settings !!! Even M17n DB is installed !!

I tried it on an old Mint , Xkb (Lam-Alef) General issue , So I used Arabic-M17n on Mint that time .

Comment 12 Mosaab Alzoubi 2014-04-10 17:35:32 UTC
On Fedora I was use Xim , But not in later Fedoras !! no way to enable it after IBus full control !!

Comment 13 fujiwara 2014-04-11 02:27:50 UTC
(In reply to Mosaab Alzoubi from comment #11)
> I tried it on an old Mint , Xkb (Lam-Alef) General issue , So I used
> Arabic-M17n on Mint that time .

OK, I understood how you tried Arabic-M17n.

Can you try the following steps if your problem can be resolved with ibus xkb?

1. Add the following lines in /usr/share/ibus/component/simple.xml with root user:

    <engine>
        <name>xkb:ara:buckwalter:ara</name>
        <language>ara</language>
        <license>GPL</license>
        <author>Peng Huang &lt;shawn.p.huang&gt;</author>
        <layout>ara</layout>
        <layout_variant>buckwalter</layout_variant>
        <longname>Arabic (Buckwalter)</longname>
        <description>Arabic (Buckwalter)</description>
        <icon>ibus-keyboard</icon>
        <rank>0</rank>
    </engine>

2. Restart ibus

% ibus exit
% ibus-daemon --xim --verbose

3. Launch ibus-setup command and choose "Arabic (Buckwalter)".

Comment 14 Mosaab Alzoubi 2014-06-09 19:16:12 UTC
Sorry for late .. (Busy by exams:) )

I do what you wrote .. But Gnome3 doesn't effected by ibus-setup tool ! 

It has its own language switcher !

Comment 15 fujiwara 2014-06-10 02:37:20 UTC
(In reply to Mosaab Alzoubi from comment #14)
> I do what you wrote .. But Gnome3 doesn't effected by ibus-setup tool ! 

If you use GNOME, 'gnome-control-center region' can be used instead of ibus-setup.

Comment 16 Mosaab Alzoubi 2014-06-10 03:09:55 UTC
I can't detect Lam-Alef , because it use another map of keyboard !!

============

Another note :: this output in terminal of command "ibus-daemon --xim --verbose"

(ibus-ui-gtk3:20993): IBUS-WARNING **: ibus_bus_call_sync: org.freedesktop.DBus.Properties.Get: GDBus.Error:org.freedesktop.DBus.Error.Failed: No global engine.
ibus-m17n-Message: skipped m17n:ka:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:sk:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ug:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ru:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:el:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:lo:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:hr:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ko:romaja since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ko:han2 since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ar:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:sr:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:hy:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:my:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:he:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:kk:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:ua:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:cs:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:cmc:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:uz:kbd since its rank is lower than 0
ibus-m17n-Message: skipped m17n:be:kbd since its rank is lower than 0


The problem isn't found in m17n:ar:kbd which is skipped!

Comment 17 fujiwara 2014-06-10 03:49:16 UTC
(In reply to Mosaab Alzoubi from comment #16)
> The problem isn't found in m17n:ar:kbd which is skipped!

No, my suggestion is not m17n:ar:kbd but xkb:ara:buckwalter:ara .
Now I remember gnome_xkb gets layouts only without variants so gnome does not detect buckwalter variant.

Are you able to install another desktop?

I also will set up m17n classic m17n for you.

Comment 18 fujiwara 2014-06-10 10:05:46 UTC
I noticed there is a bug not to show xkb:ara:buckwalter:ara in f20 gnome but it's fixed in f21.

So I'd ask you to install another desktop likes xfce in f20 or install f21 to check the bug fix.

# yum groupinstall xfce

Comment 19 Mosaab Alzoubi 2014-06-10 13:48:55 UTC
There is a big issue that map of "buckwalter" isn't match of Qwerty Arabic map :


Qwerty Map :

http://im58.gulfup.com/K96UaD.jpg
http://im58.gulfup.com/06MCso.png

buckwalter Map : (There is no Lam-Alef Character ! )


http://im58.gulfup.com/8Gxpvp.png

============


I'll try XFCE today ...

Comment 20 Mosaab Alzoubi 2014-06-10 14:44:58 UTC
XFCE like Gnome3 :(

Comment 21 fujiwara 2014-06-11 02:54:14 UTC
OK, thank you for testing xkb:ara:buckwalter:ara.

I prepared m17n:ar:buckwalter.
Could you install the following rpm and restart ibus?

http://fujiwara.fedorapeople.org/ibus/m17n-classical/m17n-classical-0.0.1-1.fc20.noarch.rpm


% ibus restart

xfce% ibus-setup

or

gnome% gnome-control-center region

And then "Arabic buckwalter (m17n)" will be shown.

Comment 22 Mosaab Alzoubi 2014-06-15 13:24:27 UTC
We don't need buckwalter (DIDNT match real keyboard) key board , we need to enable /usr/share/ar-kbd.mim and make it default for all Ibus Arabic keyboards .

Don't use buckwalter due to it's just English keyboards in Arabic letters.

Comment 23 fujiwara 2014-06-16 04:36:54 UTC
Created attachment 909002 [details]
test xkb and m17n

(In reply to Mosaab Alzoubi from comment #22)
> We don't need buckwalter (DIDNT match real keyboard) key board , we need to
> enable /usr/share/ar-kbd.mim and make it default for all Ibus Arabic
> keyboards .
> 
> Don't use buckwalter due to it's just English keyboards in Arabic letters.

OK, that's why I asked what is m17n-ar.
I forgot ibus-m17n hides ar-kbd.mim on ibus-setup.

For the testing, you can delete the following lines in /usr/share/ibus-m17n/default.xml and restart ibus:

        <engine>
                <name>m17n:*:kbd</name>
                <rank>-1</rank>
        </engine>

Can you modify the default.xml and confirm m17n:ar:xkb resolves your problem?

But in my test, when I type ل and ا, 'g' and 'h', both xkb:ara::ara and m17n:ar:xkb outputs two chars but the appearance is U+FEFB .
I attached the screenshot.
How you can output one char with m17n:ar:xkb?

I also noticed m17n:ar:xkb has Ctrl+, Ctrl+. Ctrl+J Ctrl+L and etc which keybindings are not defined in xkb:ara::ara.
Do the keybinding affect this bug?

Comment 24 Mosaab Alzoubi 2014-06-16 11:16:57 UTC
I'll try today :)

g + h = لا (in XKB & M17N)

Shaped لا but they are two letters .. (BackSpace >> ل)

The problem is in :

b = ﻻ

In XKB it's just one letter .. (BackSpace >> nothing) !!!

==================================

Lam-Alef (لا) in Arabic language isn't one letter .. It's just a shape of realtion of Lam (ل) and Alef (ا) letters.

Comment 25 fujiwara 2014-06-17 02:45:27 UTC
Thank you for your explanation.
I have no idea to output two chars with one key in xkb and probably your suggestion is right to enable m17n:ar:kbd .
Transferring to ibus-m17n.

Comment 26 Jaroslav Reznik 2015-03-03 15:35:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 27 Mosaab Alzoubi 2016-05-06 12:23:34 UTC
Still found from FedoraCore 1 to Fedora 24 and rawhide .

Comment 28 Mosaab Alzoubi 2016-05-18 00:30:00 UTC
NEWS ??

Comment 29 fujiwara 2016-05-18 02:40:09 UTC
Sorry, myself do not maintain ibus-m17n.

Comment 30 Jan Kurik 2016-07-26 04:14:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 31 Parag Nemade 2016-12-15 08:59:06 UTC
If I understand this bug correctly then you want to have 2 things
1) Arabic XKB which is represented as just "Arabic" in ibus to provide 2 unicode characters when you press "b".
2) Same for Arabic m17n keymap

I want to give you 2 references here
https://bugs.freedesktop.org/show_bug.cgi?id=25025 and http://xorg-devel.x.narkive.com/0jSeCzxP/adding-multiple-characters-by-a-single-keypress-in-x11-with-xkb

Please read it and find that there is no option to have working conjuct character in XKB keymaps. We can write only single unicode value in xkb keymaps.

Another thing there are many m17n keymaps. Which m17n keymap I should check?

Also note, all kbd keymaps provided by m17n-db are disabled as they are almost similar to their XKB keymaps.

I used Fedora 25 machine to test above.

Comment 32 Mosaab Alzoubi 2016-12-15 09:25:05 UTC
Ibus support m17n well. Ibus don't have this problem.

To solve this problem we must use this keyboard:

/usr/share/m17n/ar-kbd.mim

in all Arabic input methods (Syria, Saudi, Algeria, ....) by default.

Comment 33 fujiwara 2016-12-16 05:52:21 UTC
(In reply to Parag Nemade from comment #31)
> Another thing there are many m17n keymaps. Which m17n keymap I should check?

See comment #23. All you modify is that file.

Comment 34 Parag Nemade 2016-12-17 07:57:44 UTC
so I see that ar-kbd.mim is already using conjuct form. The only remaining issue here is ar-kbd.mim is not in the list to select but there is already a explanation why its not there. The workaround in comment#23 is also given to you on how to enable ar-kbd.mim keymap.

Is there anything remained here to fix?

Comment 35 fujiwara 2016-12-19 02:22:20 UTC
I think Arabic is a major language which we should support and there is no reason not to fix default.xml .
It can show only ar-kbd and exclude other kbd keymaps.

Comment 36 Mosaab Alzoubi 2016-12-19 05:24:19 UTC
Yes we must make m17n Arabic map as (default and only) Arabic input layout.

Comment 37 Fedora Update System 2016-12-20 08:51:58 UTC
ibus-m17n-1.3.4-21.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2a7e8ce177

Comment 38 Fedora Update System 2016-12-20 19:21:11 UTC
ibus-m17n-1.3.4-21.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2a7e8ce177

Comment 39 fujiwara 2016-12-22 02:58:48 UTC
Probably it's better to rename 'kbd' to 'kbd-win' or something in the future since it's different from XKB ara.

Comment 40 Fedora Update System 2016-12-22 16:49:50 UTC
ibus-m17n-1.3.4-21.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 41 Haytham 2021-12-10 17:24:00 UTC Comment hidden (spam)
Comment 42 Haytham 2021-12-10 17:25:17 UTC Comment hidden (spam)
Comment 43 AvidSeeker 2022-08-30 22:30:34 UTC
Just tested the bug on Fedora Workspace 36 (Latest version). Can confirm, bug still persist. (Check video: https://i.imgur.com/mjz9xrc.mp4)

Comment 44 Parag Nemade 2022-08-31 03:20:03 UTC
Open a new bug. This is old bug against Fedora 25.

Comment 45 elkhtany 2023-03-22 12:14:53 UTC Comment hidden (spam)
Comment 46 mrtoxic651 2023-03-26 13:14:55 UTC Comment hidden (spam)
Comment 47 generaluae 2023-04-16 11:29:35 UTC Comment hidden (spam)
Comment 48 3sk 2023-04-18 11:13:19 UTC Comment hidden (spam)
Comment 49 fujiwara 2023-05-05 03:05:53 UTC
Now I remember what this bug tries to describe.

IBus has implemented one compose keys of the Arabic since Fedora 38.
https://gitlab.freedesktop.org/xorg/lib/libx11/-/blob/master/nls/en_US.UTF-8/Compose.pre#L4561

If you enable Arabic XKB keyboards with `ibus-setup` in XFCE desktop, you can output "لا". If you use GNOME desktop, you need to add an input-method source likes ibus-m17n or else using `gnome-control-center keyboard` before you enable Arabic XKB keyboard.

You can confirm the current engine with `ibus engine` command.

Comment 50 Amira Adam 2023-06-05 13:53:01 UTC Comment hidden (spam)
Comment 51 eldamman 2023-08-26 19:34:37 UTC Comment hidden (spam)
Comment 53 ikhles 2023-08-27 08:39:15 UTC Comment hidden (spam)
Comment 54 ikhles 2023-08-27 08:56:12 UTC Comment hidden (spam)
Comment 55 followersincreas4 2023-09-02 18:36:30 UTC Comment hidden (spam)
Comment 56 rashed 2024-09-20 06:00:56 UTC Comment hidden (spam)
Comment 57 Dudueguy 2024-10-22 13:32:38 UTC Comment hidden (spam)
Comment 58 youssef 2025-03-18 23:59:14 UTC Comment hidden (spam)
Comment 59 youssef 2025-03-18 23:59:58 UTC Comment hidden (spam)