Re: possible bug: lowercase dotless i and langmap

2007-04-27 Thread Bram Moolenaar

Ali Polatel wrote:

 Hi everyone,
   I was playing around with langmap and found out there is a problem with
 characters
 'ı'[1] - 0131;LATIN SMALL LETTER DOTLESS I - and
 'ğ'[2] - 011F;LATIN SMALL LETTER G WITH BREVE
   The Turkish keyboard looks like this[3] for those who don't know about
 it.
   The problem is when I set langmap=ıi small dotless I doesn't work as
 expected. I'm using tr_TR.UTF-8 locale and I tried it both on the
 console,with consoles on X and with gvim. The same is true
 for g with breve. The other turkish keys work fine with langmap. I wasn't sure
 if this was about my system or vim so I made some people with turkish 
 keyboards
 try this:
 [EMAIL PROTECTED] ~ $ vim -c set lmap=ıi
  execute \normal ıhi\Esc\
  let line = getline(1)
  if line =~ \hi\
 echo \The dotless small I works as expected\
  else
 echo \The dotless small I doesn't work with langmap\
  endif 
 - - there is probably a shorter way but anyway :) -
 and they could reproduce the problem. 
   Internationalizing dotted and dotless letter I has always been a
   problem[4] but I don't think this is the issue here because the same
   problem exists for g with breve.

From :help 'langmap':

This only works for 8-bit characters.  The value of 'langmap' may be
specified with multi-byte characters (e.g., UTF-8), but only the lower
8 bits of each character will be used.

I guess most Turkish characters are in latin1, only the ones that are
not won't work with 'langmap'.

-- 
How To Keep A Healthy Level Of Insanity:
3. Every time someone asks you to do something, ask if they want fries
   with that.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- 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///


Re: possible bug: lowercase dotless i and langmap

2007-04-27 Thread A.J.Mechelynck

Bram Moolenaar wrote:
[...]

I guess most Turkish characters are in latin1, only the ones that are
not won't work with 'langmap'.



small undotted i, g-breve, s-cedilla, ...


Best regards,
Tony.
--
The primary requisite for any new tax law is for it to exempt enough
voters to win the next election.


possible bug: lowercase dotless i and langmap

2007-04-26 Thread Ali Polatel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone,
  I was playing around with langmap and found out there is a problem with
characters
'ı'[1] - 0131;LATIN SMALL LETTER DOTLESS I - and
'ğ'[2] - 011F;LATIN SMALL LETTER G WITH BREVE
  The Turkish keyboard looks like this[3] for those who don't know about
it.
  The problem is when I set langmap=ıi small dotless I doesn't work as
expected. I'm using tr_TR.UTF-8 locale and I tried it both on the
console,with consoles on X and with gvim. The same is true
for g with breve. The other turkish keys work fine with langmap. I wasn't sure
if this was about my system or vim so I made some people with turkish keyboards
try this:
[EMAIL PROTECTED] ~ $ vim -c set lmap=ıi
 execute \normal ıhi\Esc\
 let line = getline(1)
 if line =~ \hi\
echo \The dotless small I works as expected\
 else
echo \The dotless small I doesn't work with langmap\
 endif 
- - there is probably a shorter way but anyway :) -
and they could reproduce the problem. 
  Internationalizing dotted and dotless letter I has always been a problem[4]
but I don't think this is the issue here because the same problem exists for g 
with
breve.

  Regards,

[1] http://www.fileformat.info/info/unicode/char/0131/index.htm
[2] http://www.fileformat.info/info/unicode/char/011f/index.htm
[3] 
http://upload.wikimedia.org/wikipedia/commons/thumb/6/63/KB_Turkey.svg/540px-KB_Turkey.svg.png
[4] http://www.i18nguy.com/unicode/turkish-i18n.html

- -- 
Ali Polatel (hawking) [EMAIL PROTECTED]
http://hawking.nonlogic.org/
gpg: 0x8E724EDC fp: DBC2 2BC7 95B8 6D6C 8BC3  37EC CA00 CFC1 8E72 4EDC
()  ascii ribbon campaign - against html mail
/\
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.3 (GNU/Linux)

iD8DBQFGMRvFygDPwY5yTtwRAl34AKCR03ale9/J1wTZHd+iC2T4Jykl/ACgkoqE
NaEI8m12uXStnfwAZdt/MG8=
=pI61
-END PGP SIGNATURE-