mIRC Homepage

BUG mIRC 6.14 isupper/islower (rus)

Posted By: shoot

BUG mIRC 6.14 isupper/islower (rus) - 15/03/04 01:47 PM

isupper/islower works with english text, but it doesn't works with russian text. frown It's very,very bad.
Posted By: Raccoon

Re: BUG mIRC 6.14 isupper/islower (rus) - 16/03/04 01:25 PM

is the russian text multibyte? or is there a character set from the standard 256 ASCII table that defines uppercase and lowercase russian letters?

i can help you script an alternative.

- Raccoon
Posted By: ChosenOne

Re: BUG mIRC 6.14 isupper/islower (rus) - 16/03/04 03:35 PM

Also true with german umlauts:
//echo -a- $iif( isupper,yes,no) - yes
//echo -a $iif( isupper,yes,no) - yes
As well as $upper() gives me '' instead of ''
Posted By: zfr

Re: BUG mIRC 6.14 isupper/islower (rus) - 17/03/04 05:23 AM

$upper/ $lower identifiers seem to work only for English letters, and isupper / islower if comparisons return $true for all characters except English letters.

We have 6 non-English letters in the Turkish language, so we use alternate ways to achieve desired results.

And, you won't believe me but, the letter I is not the capital of i in Turkish, they are different letters. smile
Posted By: Raccoon

Re: BUG mIRC 6.14 isupper/islower (rus) - 18/03/04 01:26 AM

Indeed, i've noticed this from a turkish friend on Yahoo... you guys have a weird un-dotted i.

Why? How's it sound different? laugh
Posted By: zfr

Re: BUG mIRC 6.14 isupper/islower (rus) - 19/03/04 08:21 AM

We have a lot of weird things here in Turkey. We also have a dotted I .

And everyone is a millionaire here. Take a look at this .
Posted By: Adrenalin

Re: BUG mIRC 6.14 isupper/islower (rus) - 19/03/04 05:14 PM

Raccoon <- yap.. russian chars is in the 256 ascii table..
shoot <- here is a scripted alternative.. It will work correctly with the russian chars and with latin chars for other it will return $false.
Code:
/*
$chr(192) - &amp;#1040;
$chr(223) - &amp;#1071;
$chr(224) - &amp;#1072;
$chr(255) - &amp;#1103;
syntax: $IsUpperFixed(Char)
*/
Alias IsUpperFixed {
  var %asc = $asc($1)
  if ((%asc &gt;= 192) &amp;&amp; (%asc &lt;= 223)) return $true
  elseif ((%asc &gt;= 65) &amp;&amp; (%asc &lt;= 90)) return $true
  else return $false
}

;syntax: $IsLowerFixed(Char)
Alias IsLowerFixed {
  var %asc = $asc($1)
  if ((%asc &gt;= 224) &amp;&amp; (%asc &lt;= 255)) return $true
  elseif ((%asc &gt;= 97) &amp;&amp; (%asc &lt;= 122)) return $true
  else return $false
}
© 2021 mIRC Discussion Forums