-
Notifications
You must be signed in to change notification settings - Fork 14
Provide option to use unicode ⁄ instead of regular / #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I did consider that when making this, but your caveat was all I experienced: no platform I tested had that behavior by default. What fonts support this? |
Interesting. iOS mail + whatever font iOS Firefox picks don't.On Sep 4, 2024, at 11:25 PM, Chris Petersen ***@***.***> wrote:
What fonts support this?
I think most standard web/document fonts these days do, even my original comment above renders properly:
Screenshot.2024-09-04.at.8.22.51.PM.png (view on web)
However, I've heard that most monospace fonts don't support it. E.g. 1⁄2 vs 1⁄2 use the same characters but the monospace one renders full size.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Huh. I'm on a Mac desktop w/ chrome. And yeah, it fails on iOS/Safari, too. Interesting. Well, it's in the record here now, and people can copy/paste that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unicode provides a special slash character for fractions that automatically formats regular numbers as fractional display in supported fonts.
E.g. this 1⁄2 is composed using
1 ⁄ 2
and automatically displays as the normal fraction if you remove the spaces around the slash. Unfortunately, not every font supports this, so it should be a user-specified option in the generator.More reading:
https://en.wiktionary.org/wiki/%E2%81%84
The text was updated successfully, but these errors were encountered: