News for hackers. Stuff that matters.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by zulko on Monday April 30, 2018 @01:09PM (#16960318)
Hyphenation can be tuned via CSS but I have never been happy with it:

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.

Re:Show HN: ReLaXed – High-quality PDFs using web technologies by agussell on Monday April 30, 2018 @05:05PM (#16962339)
https://github.com/bramstein/typeset This is an implementation of the line breaking algorithm used in TeX in Javascript.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by taeric on Monday April 30, 2018 @01:22PM (#16960433)
For 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.

Re:Show HN: ReLaXed – High-quality PDFs using web technologies by ximeng on Monday April 30, 2018 @11:57PM (#16964493)
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by leephillips on Monday April 30, 2018 @01:24PM (#16960447)
As 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.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by blaisio on Monday April 30, 2018 @06:46PM (#16963169)
It is not. They have not made progress.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by gyrgtyn on Monday April 30, 2018 @03:22PM (#16961420)
maybe something like :

https://github.com/ytiurin/hyphen Franklin M. Liang's hyphenation algorithm, implemented in Javascript.

could be integrated.