The ~ (toggle case) command doesn't always work correctly with composed 
characters.

When the spacing character is ASCII, it seems all right:

Á  (U+0041 LATIN CAPITAL LETTER A + U+0301 COMBINING ACUTE ACCENT) <=> á 
  (U+0061 LATIN SMALL LETTER A + U+0301 COMBINING ACUTE ACCENT).

But when it isn't, the story is different:

И́  (U+0418 CYRILLIC CAPITAL LETTER I + U+0301 COMBINING ACUTE ACCENT) => 
иИ (U+0438 CYRILLIC SMALL LETTER I + U+0418 CYRILLIC CAPITAL LETTER I)

и́  (U+0438 CYRILLIC SMALL LETTER I + U+0301 COMBINING ACUTE ACCENT) => 
Ии (U+0418 CYRILLIC CAPITAL LETTER I + U+0438 CYRILLIC SMALL LETTER I).

(The acute accent is used in Cyrillic to indicate word stress in 
dictionaries, reading books, or in any text in case of ambiguity. The 
only way to write Cyrillic letters with acute accent in Unicode AFAIK is 
by means of a combining accent.)

Apparently Vim knows the correct case pairing, but gets confused about 
how to replace what when a combining character is present.

Using gvim 7.2.130 (Huge) with GTK2/Gnome2 GUI.


Best regards,
Tony.
-- 
Support your local police force -- steal!!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui