Skip to content
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

[H&J] Can we use Hyphenation and Justification? #13

Open
graphicore opened this issue Apr 7, 2021 · 0 comments
Open

[H&J] Can we use Hyphenation and Justification? #13

graphicore opened this issue Apr 7, 2021 · 0 comments

Comments

@graphicore
Copy link
Owner

It seems this is starting to become broadly available: mnater/Hyphenopoly#163 Hyphenopoly would also be a great fallback. (I made a request about the licensing, which may be a blocker: mnater/Hyphenopoly#164 )

So, turned it on, it works OK so far for me (Firefox, Chromium), there's a CSS code comment that needs resolution at some point:

/* FIXME/TODO: what about H&J, especially in Chrome and Safari?
* ALSO: how to detect and change the setup when hyphens are not available?
*
* As of now confirmed working with the current testing page as it is,
* in English:
* Firefox for openSuse - Tumbleweed Version 86.0.1 (64-bit)
* Chromium Version 89.0.4389.90 (openSUSE Build) (64-bit)
*
* https://css-tricks.com/almanac/properties/h/hyphenate/
*
* There are it seem related properties to configure hyphenation
* hyphenate-limit-last, hyphenate-limit-zone etc.
* Safari 5+ requires -webkit-, Firefox 6+ requires -moz-, IE 10+ requires -ms-, iOS 4.2+ requires -webkit-.
*
*
*/
word-wrap: break-word;
overflow-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
text-align: justify;

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

1 participant