The TEI ODD as static-build configuration

ODD → generate → render · one source, many rendering paths, one edition. Source code on GitHub

What is this? One text, one description of how it should look, several ways to show it.

The texts are encoded in TEI. A separate file, the ODD (tei_simler.odd), declares how each part of them should look. From these two, the edition below is produced in several ways: each tab is one. The result looks the same, but differs in what the reader downloads and what the page can do.

Try it: switch the tabs, click a page number such as [537] to see the printed page, turn JavaScript off to see which pages keep their text, or inspect the text to see which rule of the ODD made a passage.

The documents are excerpts of Simler Digital's edition, adapted for illustration.

Which rendering should I use?

For most editions: a page built in advance (unified/xast or XSLT) with the small script. It reads without JavaScript and needs no server, and one small script opens readings, notes and page images in place.

They all show the same edition; they differ in what the reader downloads and what the page can do. Sizes are uncompressed, for the document picked, and all bars share one scale; a script inside the page counts in both columns, and the list of page images (454 KB) comes only with the first one opened.

Built byWithout JavaScriptWithout a serverInteractionPageScriptReadings, notes, page images in place