Provide option to use unicode ⁄ instead of regular /
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
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?
What fonts support this?
I think most standard web/document fonts these days do, even my original comment above renders properly:
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.
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 ⁄ character if need be.