[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[m17n-lib:00405] Re: input with m17n assumes US-like keyboard layout
In article <4536C2EE.6050101@xxxxxxxxxx>, Jens Petersen <petersen@xxxxxxxxxx> writes:
> I received a report from a Swedish user using a Swedish keyboard
> layout that he has difficulty inputting Arabic with scim-m17n and
> ar-kbd.mim. The main problem being the keys to the right of the
> P key ('[' and ']' on a US style keyboard), which map to Swedish letters.
> Since this affects users in many other countries too it would be good
> to find a general solution to this problem.
There are several ways to solve that problem, but what I
think the cleanest way is this:
(1) An input method, if necessary, requires a specific
keyboard to scim. For instance, m17n-lib's XX-kdb.mim
are to simulate various local keyboard on a VT-100 keyboard
that has the following key alignment.
+----------------------------------------------------------------+
| 1! | 2@ | 3# | 4$ | 5% | 6^ | 7& | 8* | 9( | 0) | -_ | =+ | `~ |
+----------------------------------------------------------------+
| qQ | wW | eE | rR | tT | yY | uU | iI | oO | pP | [{ | ]} |
+------------------------------------------------------------+
| aA | sS | dD | fF | gG | hH | jJ | kK | lL | ;: | '" | \| |
+-----------------------------------------------------------+
| zZ | xX | cC | vV | bB | nN | mM | ,< | .> | /? |
+-------------------------------------------------+
+-----------------------------+
| space bar |
+-----------------------------+
(2) If a specific keyboard is requrested by an input method,
scim gets a key symbol on the requested keyboard that is
at the same position as the key typed by a user, and
gives that key symbol to m17n-lib's input method.
But, I don't know if (2) is possible or not.
---
Kenichi Handa
handa@xxxxxxxx