[HACKERS] Unacccented Fractions

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема [HACKERS] Unacccented Fractions
Дата
Msg-id D2291231-B5C6-4AEE-AA00-18C841642F8D@justatheory.com
обсуждение исходный текст
Ответы Re: [HACKERS] Unacccented Fractions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hello Hackers,

I noticed that unaccent.rules has spaces in front of the unaccented representation of fraction glyphs:

¼     1/4
½     1/2
¾     3/4

Note the space after the tab. In case my client kills what I’ve pasted, those lines match

¼\t[ ]1/4
½\t[ ]1/2
¾\t[ ]3/4

This makes sense to me, as I’d like “1¼”, for example to become “1 1/4”. However, that’s not what seems to happen:

=# SELECT unaccent('1¼');unaccent
----------11/4

Should that space from the rules file be preserved, so that the text doesn’t become eleven fourths?

Thanks,

David

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] scram and \password
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] scram and \password