What does HackerNews think of hypher?
A fast and small JavaScript hyphenation engine
[unjustifiable]: https://www.npmjs.com/package/unjustifiable?activeTab=readme [Hypher]: https://github.com/bramstein/hypher
https://www.gatsbyjs.com/plugins/gatsby-remark-hypher/
and
https://github.com/siawyoung/remark-hypher
(An example of how it looks like: https://siawyoung.com)
Also this tends to be sort of overkill for what most people want so - as with most tech - gotta evaluate if it's worth the time and effort.
Browser inserted Soft-Hyphens could fix this, but since they are language dependent browser support is spotty: https://developer.mozilla.org/en/docs/Web/CSS/hyphens#Sugges...
By itself most browsers can break soft-hyphens pretty reliable, but they have to be generated first: See https://github.com/mnater/Hyphenator or https://github.com/bramstein/hypher
https://code.google.com/p/hyphenator/
https://github.com/bramstein/hypher
Also this tool shouldn't obfuscate the text content if not explicitly wanted, which in the days of captcha reading OCRs is a desperate measure anyways and doesn't add to the accessibility of the page. Please add the rendered text in the alt attribute of the canvas by default. Or even better make it degrade gracefully to proper HTML by using some CSS replacement technique linking to the dataURL of the dynamically created off-screen canvas image.
See HTMLCanvasElement.toDataURL()
* http://code.google.com/p/hyphenator/ * https://github.com/bramstein/hypher/