avian2 / unidecode

ASCII transliterations of Unicode text - GitHub mirror
https://pypi.python.org/pypi/Unidecode
GNU General Public License v2.0
517 stars 62 forks source link

Surround fractions with spaces #19

Closed IamJeffG closed 6 years ago

IamJeffG commented 6 years ago

Goal is to avoid incorrect combination with adjacent numbers, for example unidecode("1¼") = "1 1/4 ", and not "11/4", which reads as a different value.

This change is following the same pattern established with other fractions on master here: https://github.com/avian2/unidecode/blob/master/unidecode/x021.py#L82

avian2 commented 6 years ago

Merged. Thanks,