basham / v4.bash.am

Portfolio, since Nov 2014.

Home Page:http://bash.am

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically inject soft hyphens during build

basham opened this issue · comments

Consider adding hyphenation in the build process to soften the raggedy line edges.

[Hyphenation is] mandatory for justified text; optional otherwise

In web browsers, you can ex­ert al­most no con­trol over au­to­matic hy­phen­ation, so if you use CSS hy­phen­ation, be pre­pared for some clunkers.

http://practicaltypography.com/hyphenation.html

Use the ­ entity.

For the hy­phen­ation in this book, I used Frank Liang’s hy­phen­ation al­go­rithm to in­sert op­tional hy­phens when each page is gen­er­ated. (I’ve re­leased this code as an open-source hy­phen­ation mod­ule for Racket.) Though CSS no­tion­ally sup­ports hy­phen­ation, it’s not im­ple­mented as widely as sup­port for the op­tional hyphen.

http://practicaltypography.com/optional-hyphens.html