Loading ...
Sorry, an error occurred while loading the content.

Re: Bug with ~ and composed characters

Expand Messages
  • Bram Moolenaar
    ... I an reproduce the problem. One more for the todo list. -- hundred-and-one symptoms of being an internet addict: 156. You forget your friend s name but
    Message 1 of 2 , Mar 3, 2009
    • 0 Attachment
      Tony Mechelynck wrote:

      > 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.

      I an reproduce the problem. One more for the todo list.

      --
      hundred-and-one symptoms of being an internet addict:
      156. You forget your friend's name but not her e-mail address.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.