knalle Posted July 22, 2020 Share Posted July 22, 2020 Is it possible to have texts split by chars and have ­ (soft hyphen) work? So bigger words are using grammatically correct hyphenation, when viewed on the phone Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 22, 2020 Share Posted July 22, 2020 Hey knalle. Can you please create a minimal demo that shows what you mean? I'm guessing that you want the words to wrap (using ­ where appropriate) and then be split by chars? Link to comment Share on other sites More sharing options...
mikel Posted July 22, 2020 Share Posted July 22, 2020 Hey Zach, Here is a test: hyphens: auto; text-align: justify; See the Pen KKVJZZr by mikeK (@mikeK) on CodePen 2 Link to comment Share on other sites More sharing options...
knalle Posted July 22, 2020 Author Share Posted July 22, 2020 Oh forgot to make a pen 😞 But Mikkel’s pen is showing the problem - e.g. “hyper-professionellen” is not understanding the soft hyphen. Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 22, 2020 Share Posted July 22, 2020 Hmm. I'm not sure how JS would be able to calculate the size of the broken up words. Maybe @GreenSock has some thoughts? Link to comment Share on other sites More sharing options...
GreenSock Posted July 23, 2020 Share Posted July 23, 2020 Nothing comes to mind right now, sorry. Link to comment Share on other sites More sharing options...
mikel Posted July 23, 2020 Share Posted July 23, 2020 "There is text and there is beautiful text This beauty becomes manifest in content and representation. I'm firmly convinced that all written text (well, most of it) deserves fine typography, that we deserve it. While hyphenation is just one of many tesserae that forms the appearance of text, it may be an important one." * Therefore I would do without a SplitText animation with narrow window widths / e.g. smartphones. Voting for cool layouts and typography ... Mikel * A quote from the hobbyist programmer of Hyphenator.js. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now