Jean-Marc Lasgouttes wrote:
"Dov" == Dov Feldstern <dfeldstern-rhxOsnTko2JWk0Htik3J/[EMAIL PROTECTED]> 
writes:

Dov> 1) As I said, this issue has come up on a few separate occasions
Dov> in the past few months (mainly in connection with RTL languages),
Dov> and each time there have been voices dismissing the keymap as
Dov> unimportant, or even calling for abolishment of the keymap --- so
Dov> I just want to explain why in my opinion it is very necessary,
Dov> and make sure that we keep support for the keymap.

I agree that we should keep them, but a lot of work is needed to
improve them.

Dov> So, I would like to (at some point, I may not get to it right
Dov> away) implement the following: *) Every language can optionally
Dov> have a keymap associated with it (this would require one more
Dov> column in lib/languages). If the "use keyboard map" option in the
Dov> preferences is on, then switching the language will automatically
Dov> switch to the associated keymap.
What about the opposite: allow keymaps to define an associated
language, or even a list of languages. Then, when the cursor is on a
text with a given language, change to a keymap that supports this
language (with some algorithm that remains to determine). I am not
sure why, but I prefer this option :) Maybe because it allows the user
to pick the keymaps he wants to activate.

It's funny, also Andrei (a.k.a. GoogleGuy) said the same thing --- that language should follow keymap. It seems backwards to me, though...

I think that as much as possible, we should force users to choose a *language*, and not a keymap. See my response just now to Christian.

For languages which have multiple keymaps (I don't know how common this is today, but there used to be different standards for Hebrew, for example), we'll have to think of some solution (probably the user will just have to edit lib/languages; or we can provide some frontend to that). But generally speaking, I think it would also be easier to determine a keymap given a language, than to determine a language given a keymap. And again, determining the language *is* important.

Dov

Reply via email to