gerotakke on Nostr: CSS question: How do y'all do hyphenation these days? Probably mostly relevant to the ...
CSS question: How do y'all do hyphenation these days? Probably mostly relevant to the German folks ;-)
With hyphens:auto, words still break at terrible points in my browsers and I can't find any ways to make it more restrained.
I think my solution would be to use overflow-wrap:break-word in CSS and then rewrite with JS to remove that and wrap long words with more than X characters in hyphens:auto spans. That has a very 2010 feel to it though and I wonder if there is a better CSS-only solution.
Published at
2024-12-12 10:07:57 UTCEvent JSON
{
"id": "c0ad7d05e7fe5223868d02ec2d2ab318ab7553c57b903b0b021cb3c69ccf49b0",
"pubkey": "63c417586e69e7300cab372dfb614aca2a85967f948ac504de076a311ef11ceb",
"created_at": 1733998077,
"kind": 1,
"tags": [
[
"proxy",
"https://social.bitwig.community/users/gerotakke/statuses/113639298011799205",
"activitypub"
]
],
"content": "CSS question: How do y'all do hyphenation these days? Probably mostly relevant to the German folks ;-)\nWith hyphens:auto, words still break at terrible points in my browsers and I can't find any ways to make it more restrained.\nI think my solution would be to use overflow-wrap:break-word in CSS and then rewrite with JS to remove that and wrap long words with more than X characters in hyphens:auto spans. That has a very 2010 feel to it though and I wonder if there is a better CSS-only solution.",
"sig": "5a2369320147196dc507ec7cae0b57c5ff92d376f64e278020a93af813529d51be61ecf44805f05c3bcf3434170934d981420d375d00f7f2767b9b8767a8751c"
}