Knuth and Plass line breaking algorithm in JavaScript
41–44 of 44 posts
Re: Knuth and Plass line breaking algorithm in JavaScript
#42Earlier quoted context omitted.
But it would only apply when the web page author "opted in" with the appropriate CSS, no? Doesn't seem like it should affect performance on pages that don't use the feature.
If you made it an opt-in, that might be doable... though there would still be the danger of pages cargo-culting into the opt-in. But at that point you're also asking browsers to maintain two separate line-wrapping codepaths, of which one is not used anywhere to a first approximation. Browser vendors seem to be somewhat resistant to doing that sort of thing.
Re: Knuth and Plass line breaking algorithm in JavaScript
#43Re: Knuth and Plass line breaking algorithm in JavaScript
#44The web is now twenty and browsers are still incapable of something as basic and commonplace as hyphenation and justification. It’s a real shame that this problem has to be solved with JavaScript in 2010. How old is TeX again?
It's not only browsers. Look at Word, for god's sake.