convert Unicode to lower/uppercase?

Martin v. Löwis martin at v.loewis.de
Mon Sep 22 16:30:29 EDT 2003


Peter Otten <__peter__ at web.de> writes:

> # The German es-zed is special--the normal mapping is to SS.
> # Note: the titlecase should never occur in practice. It is equal to
> titlecase(uppercase(<es-zed>))
> 
> 00DF; 00DF; 0053 0073; 0053 0053; # LATIN SMALL LETTER SHARP S
> [...]
> 
> Thus, to comply with the standard, "ß".upper() --> "SS" is required.

No. It would be required if .upper would claim to implement
SpecialCasing - but it makes no such claim.

> My personal impression is that, even before the orthography reform in 1998,
> the SZ variant was seldom used.

There is, of course, the famous "MASSE oder MASZE" example, in particular
in the form "WIR TRINKEN BIER IN MASSEN".

Regards,
Martin




More information about the Python-list mailing list