mIRC Home    About    Download    Register    News    Help

Print Thread
BUG mIRC 6.14 isupper/islower (rus) #75332 15/03/04 01:47 PM
Joined: Mar 2004
Posts: 1
S
shoot Offline OP
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Mar 2004
Posts: 1
isupper/islower works with english text, but it doesn't works with russian text. frown It's very,very bad.

Re: BUG mIRC 6.14 isupper/islower (rus) #75333 16/03/04 01:25 PM
Joined: Feb 2003
Posts: 2,785
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,785
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: BUG mIRC 6.14 isupper/islower (rus) #75334 16/03/04 03:35 PM
Joined: Aug 2003
Posts: 44
C
ChosenOne Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Aug 2003
Posts: 44
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 ''

Re: BUG mIRC 6.14 isupper/islower (rus) #75335 17/03/04 05:23 AM
Joined: Oct 2003
Posts: 51
Z
zfr Offline
Babel fish
Offline
Babel fish
Z
Joined: Oct 2003
Posts: 51
$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

Re: BUG mIRC 6.14 isupper/islower (rus) #75336 18/03/04 01:26 AM
Joined: Feb 2003
Posts: 2,785
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,785
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: BUG mIRC 6.14 isupper/islower (rus) #75337 19/03/04 08:21 AM
Joined: Oct 2003
Posts: 51
Z
zfr Offline
Babel fish
Offline
Babel fish
Z
Joined: Oct 2003
Posts: 51
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 .

Re: BUG mIRC 6.14 isupper/islower (rus) #75338 19/03/04 05:14 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
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
}


mIRC Chm Help 6.16.0.3 Full Anchored!