Re: Just curious: who is using Pike for what?
Henrik Grubbström <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Organization | Roxen Internet Software AB |
| Message-ID | <[email protected]> |
On Tue, 13 Dec 2016, Chris Angelico wrote:
> Pike doesn't handle things like eszett:
>
>> upper_case("ß") == "ß";
> (1) Result: 1
>
> Python does:
>
>>>> "ß".upper()
> 'SS'
That must be some Python-specific stuff; UnicodeData.txt from
Unicode 8.0.0 contains just the following entry:
00DF;LATIN SMALL LETTER SHARP S;Ll;0;L;;;;;N;;;;;
ie no indication of an upper case variant. cf
00E0;LATIN SMALL LETTER A WITH GRAVE;Ll;0;L;0061 0300;;;;N;LATIN SMALL LETTER A GRAVE;;00C0;;00C0
where the upper case variant is listed as 00C0.
> Also, Python has a 'unicodedata' module that allows name lookups and
> such, although that's not a language feature. That's why I said
> "marginally". I may have been slightly inaccurate about "acknowledge
> the Unicode tables", as Pike's case conversions do seem to follow part
> of them, but there are parts that aren't followed, so I'm not sure
> what is and what isn't.
Hmm.. adding support for looking up symbols by name to the Unicode module
wouldn't be hard.
/grubba
--
Henrik Grubbström [email protected]
Roxen Internet Software AB