Comments (5)
I have no objection to that change. I do often deal with ranges like "¼–½"
but I'm equally fine to receive "1/4-1/2"
as "1/4 - 1/2"
.
If anyone is out there who's parsing strings like "½¾"
or "¾9"
, they would view the change as a regression, but seems very unlikely. In those cases I'm not even sure we can intuit what the expected behavior ought to be.
from unidecode.
Thank you both for your comments. I'm removing the trailing space in the replacements for fractions. I'll be releasing a new version of Unidecode with this change shortly.
from unidecode.
The extra space was introduced in b8af436 to prevent fractions from merging with adjacent numbers.
from unidecode.
Yes, I think that adding the extra space at the start to prevent the merging is good, but I wonder if the extra trailing space is needed? I can't currently think of any examples where something deliberately adjacent & following a fraction such as ¾ would require a space separation. I expect other trailing numbers would already have a space in the original string. (But preceding numbers may not, in which case I agree introducing a space there is a good thing).
from unidecode.
@IamJeffG Since you contributed the commit that added the spaces, do you have any objection to removing the trailing space?
from unidecode.
Related Issues (20)
- Preserve isn't preserving the original word in a multilingual content (utf-8 file).
- 1.3.0 wheel incorrectly claiming Python 2 support. HOT 1
- Version 1.3.1 (and 1.3.0) published without python_requires metadata given to PyPI HOT 4
- Map ・ and ー HOT 8
- Normalizing fancy characters
- Add project_urls to setup for easier user discovery
- using unidecode with text file HOT 1
- Input() Method HOT 2
- syntax error Unidecode 1.3.5 on python 3.5 HOT 4
- Á → a, it should be Á → A HOT 2
- Question: why grave accent replaced with back slash? HOT 1
- Is there a way to transliterate European accent characters only, but leave Chinese characters as it is?
- License issue HOT 2
- PyPI Wheels include `__init__.pyi` HOT 2
- ə -> to e, instead of @
- Support transforming ℉ into something HOT 1
- Could not resolve host: www.tablix.org HOT 1
- Feature Request: Ignore Ranges of Codepoints HOT 2
- Not working for this use case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unidecode.