TeX line breaking algorithm in HTML5 Canvas
Posted on Saturday November 7 2009
I spent some time over the last few weeks implementing the Knuth and Plass line breaking algorithm (as used in TeX and LaTeX) using JavaScript and the HTML5 canvas element. The code is still quite rough, but early results are quite promising and in my opinion better than what browsers commonly implement. The example page contains an example paragraph, some rough documentation and a rather random collection of ideas and notes.