avim icon indicating copy to clipboard operation
avim copied to clipboard

Map w to ư

Open 1ec5 opened this issue 9 years ago • 4 comments

A reviewer on Mozilla Add-ons requests that AVIM map w to ư, like some desktop IMEs do. That’s tricky because AVIM sits atop whatever keyboard layout is active (QUERTY, AZERTY, etc.). I wonder if the real solution to this issue and #59 is to provide a TCVN keyboard simulation like Google Input Tools does.

1ec5 avatar Aug 01 '14 12:08 1ec5

What does this have to do with layout? I suppose avim receives key press events as unicode characters, am I wrong?

lewtds avatar Aug 01 '14 18:08 lewtds

[ and ] aren’t next to each other on every keyboard layout. I just wasn’t sure if it matters.

1ec5 avatar Aug 01 '14 19:08 1ec5

This issue's name is "Map w to ư". I think you are mistaking it with #59.

lewtds avatar Aug 02 '14 04:08 lewtds

Oops, you’re right. I guess the problem I meant to articulate is that there’s no good way to indicate that a particular word is going to be Vietnamese or non-Vietnamese. (IMEs that use input buffers can interpret an errant Ctrl keypress as a request to temporarily disable the input method, but AVIM doesn’t remember keypresses.) If you mean “w” but AVIM immediately turns it into “ư”, the convention would be to double the letter, i.e. ww. But the desktop IMEs I’m familiar with don’t simply map “w” to “u”; rather, w → “ư” and ww → “ươ”. In that case, you’d either have to escape an intentional “w” as \w or have www → “w”, which would be confusing.

I’d like to keep the off-by-default options to a minimum, but it seems pretty clear to me that we’d want to retain w as “w” by default.

1ec5 avatar Aug 13 '14 08:08 1ec5