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
add unicode number forms #12
Comments
Can you show an example of how it would look like using it from |
Something like |
Probably not |
While I have you here. I've been thinking about adding a method to replace unicode with the fallbacks. So you could do |
You're right. One could use
Isnt that essentially template strings? So this function would "just" be sugar on top?
|
Not really. It could be a tagged template literal [0]. The point is to let you use the original unicode character in the string and have it replaced with fallbacks when not supported. In your example you have to use the verbose descriptive property access. [0]:
|
That would be a nice addition. Not sure if it should be implemented in |
@SamVerschueren I think it should be here. Could be the main export actually. const figures = require('figures');
console.log(figures.tick);
console.log(figures`¼ yezz`); |
I'm ok with that. Just wanted to make sure you considered a separate module ;). |
My unrelated idea continues here: #14 |
Fixed by #13. |
Number Forms like
¼
would really make sense, since they are non-ASCII and have a really nice fallback (1/4
).The text was updated successfully, but these errors were encountered: