Writings Photos Code Contact Resume
Hunting For The "Lam-Alef"!

You are here

Submitted by msameer on Sun, 15/08/2004 - 2:17pm

So, Alaa was always complaining that katoob can't convert UTF-8 text to cp1256, And iconv outputs: "Invalid byte sequence in conversion input", Trying to know what's happening, We noticed that this is happening with the hindi digits, The unicode control characters and the lam-alef letter. Great! I do strip the unicode characters.
Now, I have to convert Hindi digits to Arabic digits, And also to convert the lam-alef character into lam+alef. Easy!
The 1st one was done with no problem, However I tried to find the unicode value for the "lam-alef" character with no success, I spent 4 days googling but no way! I tried whatever i can but i didn't come to anything. Capturing the gtk keypress events, looking at the gdkkeysyms.h file, the Xfree equivalent one, looking at the UnicodeData.txt file, looking at the unicode charts, I found the lam-alef presentation forms, And they were what i obtained from the gtk keyvalues, But I didn't find the character itself.
Panic ? smash the wall ? destroy your keyboard ? Cut your head and die happily ? Nothing. No way. Guys DAMN! How come this shit is not there!
Until Isam Bayazidi came to the rescue. Now I know where the problem is.
There is no such character, The unicode standard defines only presentation forms, And since there is no way to map 2 characters to a key in Xfree86, He had to map the keys to the isolated presentation forms, holyshit! Thanks Isam, You rescued me, You did well, But it's time to fix this thing in Xfree86/X.org.

Comments

Submitted by Walid (not verified) on Fri, 17/08/2007 - 12:51am

Hello Mohamed
I think that Lamalef key should not map to lamalef presentation form as what I notice in GTK+ now!! It's a defect and it should be fixed.
The right way that the lamalef key (as in MS Windows) should be as if the user press "lam" key then "alef" key .. So the user can press backspace and delete alef then press it again and delete lam.

Please let me know what do you think and let's discuss this with GTK guyes ..
Waleed

Submitted by msameer on Fri, 17/08/2007 - 9:55am

It's not a Gtk+ problem. It's an X problem. I can say that all the applications running under X except katoob are suffering from this (katoob explicitely checks for those presentation forms but that's because I know about them).

So Gtk+, Qt, firefox, OpenOffice, ... are exhibiting this behavior IMHO

Freedesktop bug #8195 has been submittet. Feel like fixing it ?

Add new comment

Subscribe to /  digg  bookmark