Re: BUG #18362: unaccent rules and Old Greek text
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: cees.van.zeeland@freedom.nl, pgsql-bugs@lists.postgresql.org
Date: 2024-02-25T23:15:57Z
Lists: pgsql-bugs
Attachments
- 0001-Add-simple-codepoint-redirections-to-unaccent.rules.patch (text/x-patch) patch 0001
On Sun, Feb 25, 2024 at 4:21 PM Thomas Munro <thomas.munro@gmail.com> wrote: > On Sun, Feb 25, 2024 at 11:14 AM PG Bug reporting form > <noreply@postgresql.org> wrote: > > So, there are reasons to keep the current unaccent.rules as it is, but... > > there are other reasons to add a few lines to it, f.e. after line 955 and > > insert five greek vowels with Oxia > > Please add: > > ά α Oh, I think I see it. "ά" is: 1F71;GREEK SMALL LETTER ALPHA WITH OXIA;Ll;0;L;03AC;;;;N;;;1FBB;;1FBB The Python script is looking for combining sequences that add accents, but this one has just "03AC" in the combining sequence field, so it's a kind of "simple" redirection that points here: 03AC;GREEK SMALL LETTER ALPHA WITH TONOS;Ll;0;L;03B1 0301;;;;N;GREEK SMALL LETTER ALPHA TONOS;;0386;;0386 That has a normal looking sequence that we can understand (α + an accent). If I tell the script to follow such "simple" redirections, I get over a thousand new mappings, including those. See attached. There is probably more correct terminology that I'm using here...
Commits
-
Add simple codepoint redirections to unaccent.rules.
- 18501841bcb4 18.0 landed