PATCH: Allow empty targets in unaccent dictionary

Поиск
Список
Период
Сортировка
От Mohammad Alhashash
Тема PATCH: Allow empty targets in unaccent dictionary
Дата
Msg-id 53530183.6030807@alhashash.net
обсуждение исходный текст
Ответы Re: PATCH: Allow empty targets in unaccent dictionary  (David Fetter <david@fetter.org>)
Re: PATCH: Allow empty targets in unaccent dictionary  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
Список pgsql-hackers
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


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Avoiding deeply nested AND/OR trees in the parser
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Avoiding deeply nested AND/OR trees in the parser