3 ms·
Hyphenation can be tuned via CSS but I have never been happy with it: https://www.w3schools.com/cssref/css3_pr_word-break.asp https://www.w3schools.com/cssref/
by zulko 8y ago
Hyphenation can be tuned via CSS but I have never been happy with it:
https://www.w3schools.com/cssref/css3_pr_word-break.asp https://www.w3schools.com/cssref/css3_pr_word-break.asp
From what I remember LaTeX has better algorithms, both in how to distribute words between lines, and in knowing where in a word it is ok to cut.
- taeric 8y agoFor anyone that wants to have a good read, try reading the TeX-book's section on hyphenation. Tons of fun that goes over some of the difficulties. As a fun trivia, think where to hyphenate the word record. In all forms.
- ximeng 8y agohttp://www.ctex.org/documents/shredder/src/texbook.pdf http://www.ctex.org/documents/shredder/src/texbook.pdf Page 449
- leephillips 8y agoAs recently as a year ago, Chrome support of automatic hyphenation only worked on some platforms. If the support is better now, I'm glad to hear it.
- blaisio 8y agoIt is not. They have not made progress.
- gyrgtyn 8y agomaybe something like : https://github.com/ytiurin/hyphen https://github.com/ytiurin/hyphen Franklin M. Liang's hyphenation algorithm, implemented in Javascript. could be integrated.
- agussell 8y agohttps://github.com/bramstein/typeset https://github.com/bramstein/typeset This is an implementation of the line breaking algorithm used in TeX in Javascript.