WeblateOrg / WeblateOrg/weblate
Add a check to encourage unicode punctuation instead of ascii
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
### Describe the problem
In Tor Browser a few of our translations use the ASCII `'` character instead of the unicode apostrophe `’` or single quotes `‘` and `’`. Similarly with using ASCII `"` and `...` instead of unicode `“`, or `”` or `…`.
### Describe the solution you would like
A weblate check that flags these ASCII characters and suggests the unicode alternatives.
I would be ok to try and implement this. There are two issues I can think of:
1. I don't know whether in some locales the ASCII `'` or `"` is actually more correct, or the suggested unicode symbol should be something else.
2. Depending on the format, some of these symbols might be part of the syntax, so we wouldn't want to flag them. I know the Fluent format, so I could make the check Fluent-aware. Maybe others can expand it.
### Describe alternatives you have considered
Tor Project could run a similar check privately on our gitlab CI, but really we want translators to be aware of this, and we would like to share this check with other projects.
### Screenshots
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.