In article <[email protected]>, Eli Zaretskii <[email protected]> writes:
> > This is a feature, not a bug. The point is that, AFAIK, Emacs input
> > method is simply a translation from one character to another. So, for
> > example, when Emacs receives a 'x' character it is translated to
> > Hebrew Samekh. However, the location of the button that sends 'x'
> > depends on the keyboard layout, so the location of the key that will
> > send Hebrew Samekh also depend on the layout.
> I don't think so. I think the Emacs translates a character regardless
> of which key produced it. Take a look at leim/quail/hebrew.el: all it
> tells Emacs is the characters to translate. There's no information
> there regarding the layout of the keyboard.
Sure. All input methods should be written assuming
`quail-keyboard-layout-standard'. Have you seen the help
of `hebrew' input method? It says:
------------------------------------------------------------
...
This input method works by translating individual input characters.
Assuming that your actual keyboard has the `standard' layout,
translation results in the following "virtual" keyboard layout:
- THE FIGURE OF KEYBOARD LAYOUT IS SHOWN HERE -
If your keyboard has a different layout, rearranged from
`standard', the "virtual" keyboard you get with this input method
will be rearranged in the same way.
You can set the variable `quail-keyboard-layout-type' to specify
the physical layout of your keyboard ...
------------------------------------------------------------
So, to use hebrew input method with dvorak keyboard layout,
we must at first register "dvorak" in
quail-keyboard-layout-alist, then each user using dvorak
must customize `quail-keyboard-layout' to `dvorak'.
Please try this with the attached code:
% emacs -l dvorak-test.el
C-h C-\ hebrew RET
and try typing Hebrew letters after turning on hebrew input
method.
Please use the latest trunk code. I've just installed a
minor fix for the output of C-h C-\ (describe-input-method).
---
Kenichi Handa
[email protected]
dvorak-test.el
Description: application/emacs-lisp
_______________________________________________ emacs-bidi mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-bidi
