[Python-de] großes ß

robert robert at redcor.ch
Fr Jun 30 04:39:23 EDT 2017


On 30.06.2017 10:14, Peter Otten wrote:
> Hermann Riemann wrote:
>
>> http://www.tagesschau.de/inland/eszett-103.html
>>
>> SuSE 42.2
>>
>> python3
>> Python 3.4.6 (default, Mar 22 2017, 12:26:13) [GCC] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>>   >>> c='ẞ'
>>   >>> d='ß'
>>   >>> print(ord(c),ord(d))
>> 7838 223
>>   >>> print(hex(ord(c)),hex(ord(d)))
>> 0x1e9e 0xdf
>>   >>> c.lower()
>> 'ß'
>>   >>> ord(c.lower())
>> 223
>>   >>> d.upper()
>> 'SS'
>>
>> Hermann
>>      der etwas anderes erwartet hat.
>>
> http://unicode.org/faq/casemap_charprop.html#11
>
> """
> Q: Why does ß (U+00DF LATIN SMALL LETTER SHARP S) not uppercase to U+1E9E
> LATIN CAPITAL LETTER SHARP S by default?
>
> A: In standard German orthography, the sharp s ("ß") is uppercased to a
> sequence of two capital S characters. This is a longstanding practice, and
> is reflected in the default case mappings in Unicode. A capital form of ß is
> attested in a number of instances, and has thus been encoded in the Unicode
> Standard. However, this character is not widely used, and is not recognized
> in the official orthography as the uppercase form of ß. Therefore, the
> original mapping to "SS" is retained in the Unicode character properties.
> """
>
> Gibt's überhaupt jemanden, der das große 'ẞ' verwendet?
in Switzerland we did solve this problem even better:
We got rid of these funny characters decades ago :)
Ich meine beide, gross und klein geschrieben ..

> _______________________________________________
> python-de maillist  -  python-de at python.org
> https://mail.python.org/mailman/listinfo/python-de




Mehr Informationen über die Mailingliste python-de