Hi,
Currently, unaccent extension only allows replacing one source character
with one or more target characters. In Arabic, Hebrew and possibly other
languages, diacritics are standalone characters that are being added to
normal letters. To use unaccent dictionary for these languages, we need
to allow empty targets to remove diacritics instead of replacing them.
The attached patch modfies unaacent.c so that dictionary parser uses
zero-length target when the line has no target.
Best Regards,
Mohammad Alhashash