In a discussion about improving French search processing for special characters like ‘œ’, ‘œ’, ‘æ’, and ‘æ’, Canapin highlights that these ligatures are often typed as ‘oe’ or ‘ae’ due to keyboard limitations, yet current search treats them as distinct, causing fragmented results. sam suggests implementing a normalizer via a site setting. zogstrip confirms PostgreSQL’s unaccent function can normalize these ligatures and diacritics, showing examples where it converts ‘œuvre’, ‘œuf’, and ‘æ’ into ‘oeuvr’, ‘oeuf’, and ‘ae’. Canapin adds a lighthearted note about French language complexity. sam proposes replacing the existing search_ignore_accents implementation with unaccent for consistency with PostgreSQL’s behavior. zogstrip agrees, noting unaccent is safe across locales based on its rules file, and tags nbianca to implement the change. nbianca confirms the implementation is complete via a PR replacing the Ruby-based accent handling with PostgreSQL’s unaccent.
Œ, œ, like in œuf (egg) or cœur (heart), œuvre (multiple translations and meanings so I won’t detail here, it doesn’t matter), etc.
Æ, æ, like in nævus (the scientific term for mole (the dot on the skin, not the animal) or others.
æ is rarely used (I think it’s always scientific/medical terms from Latin?), but œ, however, is quite present in the French language.
Sadly, these special characters aren’t present on the French keyboard layout and a lot of people simply write “oe” or “ae” instead.
But some users have custom layouts, and autocorrection from smartphones, or some other writing help systems often automatically correct the words using the proper “merged characters”, like “oeuvre” → “œuvre”.
Currently, the search processes “oe” and “œ” as different strings, which leads to different results that should be common instead.