Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So since this about latex it feels appropriate to point this out. Justified works well when you have auto word hyphenation turned on, and your layouts are fixed. Web doesn't do word hyphenation (I think?), so the words have odd spacing between them, it sort of stands out right away. Justification works in latex because of word breaking, but even then one has to manually fix underfilled or overfilled lines (I.e. by slightly changing word usage). For web content where you have less control over these things (as opposed to printing for a fixed layout via PDF), ragged right often works better.


So when there are large gaps between the words on a line, I should experiment with manual hyphenation until it looks better?


CSS3 has automatic hyphenation (hyphens: auto) which you can tweak with manual soft-hyphens (­), and there are client-side hyphenators (Hyphenator.js, Hypher) available as fallbacks.


This is nice to know! Still, unless the formatting is fixed (by distilling to PDF), there is no way to deal with the under and overflows that arise from an aggressive (and hence decent looking type setter).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: