2 comments

  • svat 5 hours ago ago

    This is great! Loved the demo and controls (and nice touch to include The Frog Prince as one of the sample texts lol). I think by doing tracking and expansion you're going even further than original Knuth TeX did/does. Maybe for the demo when hyphenation is turned off, the browser side should also turn it off? Or leave it like this, justif without hyphenation still does better than browser with hyphenation :)

    Wish this project great success!

    • lyall 5 hours ago ago

      Thank you! And yes by default TeX doesn't do tracking or expansion, but the microtype [0] package does.

      And I did struggle a bit with deciding how best to do the comparison to native browser rendering. I wanted it to be an apples-to-apples comparison, but also didn't want to unfairly handicap the browser by disabling something like hyphenation. It's already bad enough as is...

      0: https://ctan.org/pkg/microtype