On Tue, Jun 19, 2018 at 11:42 AM, Christian Brabandt
<[email protected]> wrote:
> Hm, the macro that is responsible for the langmap feature is LANGMAP_ADJUST.
> I noticed it works on single bytes, e.g. what is in the input queue buffer.
> However the cyrillic character о ('о' U+043E Dec:1086 CYRILLIC SMALL LETTER
> O (o=) о) is stored inside the input buffer as the two bytes 0xd0 0xbe. And
> then the macro LANGMAP_ADJUST is called for each of that byte, however it
> won't find anything, since the code that parses and stores the langmap
> option, stores the unicode value 1086.
>
> It's a bit tricky to make this work, since the macro is called all over the
> code base and the getchar.c code is a bit fragile.
>

…And yet the very example about 'langmap' in
$VIMRUNTIME/doc/options.txt is in Unicode with Greek letters
represented in UTF-8 (Alpha 0xCE 0x91, Beta 0xCE 0x92, Psi 0xCE 0xA8,
etc.). I bet that a Greek user with a Greek keyboard would have the
same problems as Maxim if he tried to use the example in the help.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui