From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify a bit the special rules generating unaccent.rules
Date: Tue, 05 Jul 2022 07:19:45 +0000
Message-ID: <E1o8cqW-001HJ4-4B@gemulon.postgresql.org> (raw)
Simplify a bit the special rules generating unaccent.rules
As noted by Thomas Munro, CLDR 36 has added SOUND RECORDING COPYRIGHT
(U+2117), and we use CLDR 41, so this can be removed from the set of
special cases.
The set of regression tests is expanded for degree signs, which are two
of the special cases, and a fancy case with U+210C in Latin-ASCII.xml
that we have discovered about when diving into what could be done for
Cyrillic characters (this last part is material for a future patch, not
tackled yet).
While on it, some of the assertions of generate_unaccent_rules.py are
expanded to report the codepoint on which a failure is found, something
useful for debugging.
Extracted from a larger patch by the same author.
Author: Przemysław Sztoch
Discussion: https://postgr.es/m/8478da0d-3b61-d24f-80b4-ce2f5e971c60@sztoch.pl
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e3dd7c06e62774628e102c3cd47ee46e85519de7
Modified Files
--------------
contrib/unaccent/expected/unaccent.out | 44 +++++++++++++++++++++++++++++
contrib/unaccent/generate_unaccent_rules.py | 5 ++--
contrib/unaccent/sql/unaccent.sql | 10 +++++++
3 files changed, 56 insertions(+), 3 deletions(-)
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-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Simplify a bit the special rules generating unaccent.rules
In-Reply-To: <E1o8cqW-001HJ4-4B@gemulon.postgresql.org>
References: <E1o8cqW-001HJ4-4B@gemulon.postgresql.org>
* 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