New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[articles/typography/linebreak] Existence of higher-quality line breaking algorithms #166
Comments
+1, like the TeX algorithm which tries to find something globally optimal over the entire paragraph. (Great read: Knuth and Plass, Breaking Paragraphs Into Lines.) |
@jfkthame this article is about line-breaking, and there's already another article about justification, however, i think it is worth mentioning what you say, so i added a note, and since you expressed it well, so i largely used your words. Thanks. @shreevatsa yes i'm aware of what you mention, thanks, but think it's better covered in the article on justification than here. Closing now. Reopen if more on this topic. |
@r12a Thanks. Yes, I saw there's also an article about justification; but skimming that article, it seemed to focus on the justification of individual lines and didn't mention (AFAIR) the potential interaction between justification and line-breaking. So I thought it worth adding a comment somewhere. |
@jfkthame yes, i too noticed, with surprise, that i hadn't mentioned more complex approaches to justification in the other article, and made a note to myself to add something. |
[source] (http://w3c.github.io/i18n-drafts/articles/typography/linebreak.en) [en]
The description of "space delimited words" describes only the simplest of algorithms:
While it's true that this simple approach is commonly used, it might be worth mentioning that there are more sophisticated options that may be appropriate in applications where typographic quality is valued. E.g. it may be possible to reduce the inter-word spacing on a line, in order to allow a word to fit when it would naturally overflow slightly; or conversely, it may be better to choose an earlier break than the immediately-preceding space, moving a word down even though it could fit, in order to improve a following line.
The text was updated successfully, but these errors were encountered: