8000 Provide option to use unicode ⁄ instead of regular / · Issue #7 · lights0123/fractions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
ex-nerd opened this issue Sep 5, 2024 · 4 comments
Open

Provide option to use unicode ⁄ instead of regular / #7

ex-nerd opened this issue Sep 5, 2024 · 4 comments

Comments

@ex-nerd
Copy link
ex-nerd commented Sep 5, 2024

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 ex-nerd changed the title Use unicode ⁄ instead of regular / Provide option to use unicode ⁄ instead of regular / Sep 5, 2024
@lights0123
Copy link
Owner

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?

@ex-nerd
Copy link
Author
ex-nerd commented Sep 5, 2024

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.

@lights0123
Copy link
Owner
lights0123 commented Sep 5, 2024 via email

@ex-nerd
Copy link
Author
ex-nerd commented Sep 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0