[HACKERS] Unacccented Fractions - Mailing list pgsql-hackers

From David E. Wheeler
Subject [HACKERS] Unacccented Fractions
Date
Msg-id D2291231-B5C6-4AEE-AA00-18C841642F8D@justatheory.com
Whole thread Raw
Responses Re: [HACKERS] Unacccented Fractions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] scram and \password
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] scram and \password