The SILE Typesetter
  • Home
  • What is SILE?
  • Examples
    • Global Scripts
    • Packages
  • Manual (PDF)
  • Lua API
  • Rust API
  • SIL Grammar
  • Download
GitHub

Snake Justification

04 May 2016 — Simon Cozens

(Note: This blog post was edited when the proof of concept example was moved from a package in an unreleased branch to this website’s example section.)

The ever-excellent xkcd has produced a table of full-width justification strategies:

XKCD

Naturally, SILE can support snake-based justification. Check out the code in the “Snake Justification” example on this site. You can see the result in PDF form here, and it looks like this:

snake-justification

Because SILE is an extremely flexible typesetting engine, this took less than 20 lines of Lua code to implement.

We have been doing lots of other SILE development too, but snakes are fun.