mdgriffith / design-discussion-elm-ui-2

A repo for discussing changes to Elm UI 2
17 stars 0 forks source link

Add shortcuts to common unicode chars? #7

Open mdgriffith opened 5 years ago

mdgriffith commented 5 years ago

Are there common, useful unicode chars that would benefit from having a named value in elm-ui?

Here is my current list of chars that are really useful, but underutilized:

ellipses, glue(aka "nbsp" used for ensuring a space doesn't break), em-dash, en-dash, soft-hyphen (allows a word to break with a hyphen in a specific place if it's wrapped), bullet, hollowBullet.

This came up as Im taking a look at text wrapping and having nbsp and soft-hyphen are both pretty useful in those cases. And they're whitespace characters, so you sorta have to refer to it by it's unicode ...err...code.

https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#Suggesting_line_break_opportunities

MartinSStewart commented 5 years ago

Since it would only be a minor release, maybe you could add this to the current version of elm-ui and see how well it works?

bburdette commented 5 years ago

This might be a handy library outside of elm-ui, actually. Maybe it could be a dependency?