fractions icon indicating copy to clipboard operation
fractions copied to clipboard

Provide option to use unicode ⁄ instead of regular /

Open ex-nerd opened this issue 1 year ago • 4 comments

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

ex-nerd avatar Sep 05 '24 02:09 ex-nerd

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?

lights0123 avatar Sep 05 '24 02:09 lights0123

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

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.

ex-nerd avatar Sep 05 '24 03:09 ex-nerd

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: @.***>

lights0123 avatar Sep 05 '24 04:09 lights0123

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.

ex-nerd avatar Sep 05 '24 05:09 ex-nerd