From: Kip Cole <kipcole9@gmail.com>
To: Philip Semanchuk <philip@americanefficient.com>
Cc: Celia McInnis <celia.mcinnis@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Uppercase version of ß desired
Date: Tue, 14 Mar 2023 21:20:03 +0800
Message-ID: <BBF1E979-703E-49BC-833A-81BEF7C50AA8@gmail.com> (raw)
In-Reply-To: <05800C0F-FCDE-4269-BFD7-D5B7740C5B68@americanefficient.com>
References: <CAGD6t7+327nPb4QgGQGwqqLn7ys95PfycSRsQ4+Sd8Dz4sqBuA@mail.gmail.com>
<05800C0F-FCDE-4269-BFD7-D5B7740C5B68@americanefficient.com>
The relevant Unicode reference is https://unicode.org/faq/casemap_charprop.html#11
Which basically says that since Unicode 5.0 (its now at Unicode 15.0) stability is guaranteed and the upper-casing to (U+1E9E ẞ LATIN CAPITAL LETTER SHARP S) is optional.
> On 14 Mar 2023, at 9:12 pm, Philip Semanchuk <philip@americanefficient.com> wrote:
>
>
>
>> On Mar 13, 2023, at 5:38 PM, Celia McInnis <celia.mcinnis@gmail.com> wrote:
>>
>> HI:
>>
>> I would be really happy if postgresql had an upper case version of the ß german character. The wiki page
>> https://en.wikipedia.org/wiki/%C3%9F
>>
>> indicates that the capital (U+1E9E ẞ LATIN CAPITAL LETTER SHARP S) was encoded by ISO 10646 in 2008.
>>
>> BTW the reason that I'd like upper('ß') to give something different than 'ß' is because I have written a simple substitution puzzle for a large number of languages where I show the encrypted lower case words in upper case and the successful letter substitution submissions in lower case - so I need the upper and lower case versions of each letter to be different!
>>
>> Thanks for any assistance! Maybe I can hack what I want in python (which is what I am using for the puzzle).
>
> Hi Celia,
> I ran into this too back when we were transitioning from Python 2 to 3 (2 behaved differently from 3). While researching it I discovered this Python issue which maybe sheds some additional light on the subject: https://github.com/python/cpython/issues/74993 <https://github.com/python/cpython/issues/74993;
>
> We ultimately found 90 characters that (under Python 3) grew longer when uppercased.
>
> python -c "print([c for c in range(0x80, 0x22ff) if len(chr(c)) != len(chr(c).upper())])”
>
>
> I hope this is at least interesting. :-)
>
> Cheers
> Philip
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kipcole9@gmail.com, philip@americanefficient.com, celia.mcinnis@gmail.com
Subject: Re: Uppercase version of ß desired
In-Reply-To: <BBF1E979-703E-49BC-833A-81BEF7C50AA8@gmail.com>
References: <CAGD6t7+327nPb4QgGQGwqqLn7ys95PfycSRsQ4+Sd8Dz4sqBuA@mail.gmail.com> <05800C0F-FCDE-4269-BFD7-D5B7740C5B68@americanefficient.com> <BBF1E979-703E-49BC-833A-81BEF7C50AA8@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox