Bug 211266
Summary: | Arabic input assumes US kbd layout | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Carl-Johan Kjellander <carljohan> | ||||||
Component: | scim-m17n | Assignee: | Jens Petersen <petersen> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6 | CC: | eng-i18n-bugs | ||||||
Target Milestone: | --- | Keywords: | i18n, MoveUpstream, Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | scim-m17n-0.2.1-1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-04-03 03:44:53 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 228947 | ||||||||
Attachments: |
|
Description
Carl-Johan Kjellander
2006-10-18 09:36:39 UTC
Yes, this is a limitation of current scim and m17n. The problem is as you indirectly imply that the m17n map basically assumes a US keyboard layout. Carl-Johan, are you also using scim to input other languages? If you're only using scim to input Arabic you might find it either to switch between Swedish and Arabic xkbd layouts instead as a workaround for now. Alternatively you can edit ar-kbd.mim from the m17n-db package to suit your keyboard layout but of course this is not a portable/ maintainably solution. Mail sent to scim-devel and m17n-lib. Why doesn't scim use the actual keycodes?! That's what it should do. Who cares what the american's keyboard looks like when you are typing arabic? Anyway, for me it's not at problem. I'm only using Japanese, Georgian and Arabic input methods for fun (in windows right now, cause it works, even though I hate it). I have students from all over the world. But making a fix for _real_ should probably be a priority. Portable, and independent of what the american keyboard thinks is the best way to slow people down so the types of the typewriter don't stick together. (note my irony...) So to answer your question, yes, I use scim to try to input more than swedish and arabic. I need japanese since I study it and georgian and russian and greek would be nice. > Why doesn't scim use the actual keycodes?!
I guess the problem is not so easy to solve.
What do you want keys not mapped by the input map to map to for example?
It can get pretty confusing I guess: right now I have a US keyboard connected
to my JP laptop and it is no fun I can reassure you...
Also it is much harder to write maps for keycodes than keysymbols,
but there should be some cleverer solution so I have asked upstream
on this for ideas.
Adding patch from upstream in scim-m17n-0.2.1-1.fc7. Carl, are you able to test that? I tested it a few days ago. $ rpm -q scim-m17n scim-m17n-0.2.1-1.fc7 I installed to rpm and logged out and in again. Setting it to arabic still produces åäö instead of the correct arabic characters. And ^ is still a dead key. It should be enough to log out of X right? Sorry, could you try setting the scim keyboard type to Swedish too please? With Swedish, åäö works fine, but dead keys ^~'` and so forth are broken. Impossible to input. And pressing 'e' produces a line that follows the last e which is very confusing. And I just realized there is something wrong with the sv-latin keymap. I can't produce the '¨' even when scim is off, by pressing CTRL-SPACE. Here is xev output: KeyPress event, serial 28, synthetic NO, window 0x4c00001, root 0x4d, subw 0x0, time 2596938031, (150,144), root:(1563,698), state 0x10, keycode 35 (keysym 0xfe57, dead_diaeresis), same_screen YES, XLookupString gives 2 bytes: (c2 a8) "¨" XmbLookupString gives 0 bytes: XFilterEvent returns: True KeyRelease event, serial 31, synthetic NO, window 0x4c00001, root 0x4d, subw 0x0, time 2596938171, (150,144), root:(1563,698), state 0x10, keycode 35 (keysym 0xfe57, dead_diaeresis), same_screen YES, XLookupString gives 2 bytes: (c2 a8) "¨" XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x4c00001, root 0x4d, subw 0x0, time 2596939617, (150,144), root:(1563,698), state 0x10, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XmbLookupString gives 1 bytes: (20) " " XFilterEvent returns: True KeyPress event, serial 31, synthetic NO, window 0x4c00001, root 0x4d, subw 0x0, time 2596939617, (150,144), root:(1563,698), state 0x10, keycode 0 (keysym 0x22, quotedbl), same_screen YES, XKeysymToKeycode returns keycode: 11 XLookupString gives 0 bytes: XmbLookupString gives 1 bytes: (22) """ XFilterEvent returns: False Pressing it and space produces a '"' instead. BTW how to set the Swedish kbd with setxkbmap? (Last time I did it with the gnome panel applet I think.) System/Preferences/Keyboard/Layout system-config-keyboard does it as well. Thanks for testing. I tried too and agree it doesn't fix the problem. I retested this today after some discussion on scim-devel and now it is working for me: perhaps rebooting helped. Just for reference: one can switch to Swedish layout with "setxkbmap se". Created attachment 145721 [details]
scim arabic input
Arabic input works fine, as shown in the attached figure. attached are both the
sequences for arabic, scim-arabic and arabic -kdb
Ramakrishna: Were those pictures taken with "setxkbmap se" or not? I want to see some "åäö" being input at the same time as the three arabic letters that I can't produce. Try to enter 'Mötley Crüe' for instance. Created attachment 145775 [details]
the svlatin1 and arabic keysequences
Steps to reproduce
1. Alt F2 or gnome-terminal
2. system-config-keyboard
3. Select the Sweden Northan Saami
4. Add the Arabic Qwerty and azerty keyboard from layout options
4. Toggle between US <->SWE <-> Arabic The sequences are shown in the attached
screenshot
The keymaps work fine. This bug can be resolved
I beg to differ. Yes, by adding arabic as a keyboard layout you can work around the bug, but it doesn't solve the underlying problem, that scim assumes everyone lives in the US and has ;'[ instead of öäå on some keys. And using scim was supposed be a fix all system to solve all keyboard problems. Having as it is now two ways of selecting the keyboard is very confusing. And still, if you have Swedish selected, scim is fundamentaly broken, and you have to use both the keyboard switcher applet and scims toolbar. Carl-Johan, I retested the fix now, and I find that is works with the scim immodule, but not with scim-bridge. I agree that this is important issue and want to backport the fixes to FC6 when ready. And thanks for reporting it. :-) I cloned a bug for scim-bridge. Update for scim-bridge has been pushed for FC6. I built scim-m17n-0.2.1-1.fc6 for FC6 updates. scim-m17n-0.2.1-1.fc6 has been pushed for fc6, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report. |