BUG: Dead keys with spurious character

4 views
Skip to first unread message

Cosmic Chaos

unread,
Jul 29, 2022, 6:58:22 AM7/29/22
to vim...@vim.org
Hi there! My name is Leonardo Alvaro from Mexico, and I've been a Vim user for almost a year now... I started my journey with Vim 8.2 for Windows 10 and it was quite a struggle to get everything working as I wanted, so after I had some basic understanding I moved to NeoVim. That's when I started learning vimscript and more advanced stuff. After I heard about the 9.0 release of Vim I wondered if it would have solved some issues I had back then, and to my surprise it actually did. So I decided to give Vim 9.0 a try.

Now, here's where the problems come again. I have found this bug when I was trying to type normally with the Spanish keyboard layout. I was so disconcerted by this that I decided it would be a fairly worthwhile bug report.

Also, in my search to overcome this issue I discovered the 'keymap' functionality and I found that the spanish-qwerty layout was missing, so I made one that matches precisely the behavior of the standard Latin American keyboard layout. I attached that file to this email.

And now, here's the little report I wrote for the bug. I hope everything's clear enough.

----------------------------------------------------------------------

BUG: Dead keys with spurious character

NOTES:
    * MS-Windows 64-bit console version exclusive issue
    * It has been tested with the following keyboard layouts:
        - Latin American

DESCRIPTION:

    An additional spurious character is added when a dead key
    combination is tried.

    With the Latin American keyboard layout:
    Dead keys: [´¨]
    Spurious characters: [;:]

    For the sake of an example, here's the contrast between the
    expected and the obtained output when typing 'linguistics' in
    Spanish:
    Expected: lingüística
    Obtained: ling:ü;ística

    To make it even clearer here's a table contrasting the keyboard
    input, the obtained output, and the expected output:

    KEYBOAD INPUT   OBTAINED      EXPECTED
    --------------- ------------- ---------
    ´<Space>        ;´            ´
    ´´              ;´´           ´´
    ´a´e´i´o´u´     ;á;é;í;ó;ú    áéíóú
    ´A´E´I´O´U´     ;Á;É;Í;Ó;Ú    ÁÉÍÓÚ
    ¨<Space>        :¨            ¨
    ¨¨              :¨¨           ¨¨
    ¨u¨U            :ü:Ü          üÜ

    * Even though it may seem so, they are not composite characters,
    they all form part of the extended ASCII.

----------------------------------------------------------------------

In fact, I have more bugs to report, and even a typo in the documentation, but I don't want to bloat this email with a bunch of unrelated issues.
spanish-qwerty.vim
Reply all
Reply to author
Forward
0 new messages