Re: BUG #15548: Unaccent does not remove combining diacritical characters
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hugh Ranalli <hugh@whtc.ca>
Cc: Daniel Verite <daniel@manitou-mail.org>, pgsql-bugs@lists.postgresql.org
Date: 2018-12-14T22:50:03Z
Lists: pgsql-bugs, pgsql-hackers
Hugh Ranalli <hugh@whtc.ca> writes: > I've attached a patch removes combining diacriticals. As with Latin and > Greek letters, it uses ranges to restrict its activity. Cool. Please add it to the current CF so we don't forget about it: https://commitfest.postgresql.org/21/ > I have not submitted a patch for unaccent.rules, as it seems that a rules > file generated from generate_unaccent_rules.py will actually remove a large > number of rules (even before my changes), such as replacing the copyright > symbol © with (C), as well as other accented characters. It's probably > worth asking if the shipped unaccent.rules should correspond to what the > shipped generation utility produces, or not. I was surprised to see that it > didn't. Me too -- seems like that bears looking into. Perhaps the script's results are platform dependent -- what were you testing on? regards, tom lane
Commits
-
Fix unaccent generation script in Windows
- 0afc0a784188 13.0 landed
-
Add combining characters to unaccent.rules.
- 456e3718e7b7 12.0 landed
-
Update unaccent rules with release 34 of CLDR for Latin-ASCII.xml
- e1c1d5444e43 12.0 landed
-
unaccent: Make generate_unaccent_rules.py Python 3 compatible
- 3d59da9ccdb9 12.0 landed
-
Convert unaccent tests to UTF-8
- b6f3649bba98 12.0 landed