mIRC Home    About    Download    Register    News    Help

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

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: Aug 2003
Posts: 44
C
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 'Ö'

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

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
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 .

Joined: Apr 2003
Posts: 414
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!

Link Copied to Clipboard