Playground
The playground is a development bench for LADL profiles. Each preset loads a profile in YAML, a document tree in JSON and a vocabulary catalog into three editing panes, and every edit re-runs the full labeling walk in the browser through kaleidl-ts, the same engine the npm package ships.
Three presets cover the range. The compact demo resolves nine labels from a miniature mn112/1 profile. The ISO/IEC Directives Part 2 preset runs the full MN 112-A worked profile, whose forty labels exercise conditional notes and examples, annex hierarchies, figures and tables with subfigures, formulas, footnotes, a numbered bibliography, Introduction subclauses numbered 0.1 and 0.2, and ordered-list ladders. The French catalog preset loads that same profile with a French vocabulary, so label words resolve through Fluent patterns such as "Note { $n } à l'article".
One thing to watch for: elements inherit a context from their ancestors — the figure under clause 1 is labeled by the figure labeller because it sits in the clause's context world. Give an element no reachable context and it stays unlabeled, which the bench reports under the tree pane. The sequence explorer at the foot of the page lists positions 1 through 12 of all fifteen built-in sequences.
A miniature mn112/1 profile labels clauses, subclauses, annexes, figures and conditional notes; the walk resolves nine labels.
The catalog maps vocabulary keys to strings and is passed to the engine as its labels argument. Fluent patterns such as "Note { $n } to entry" resolve their placeables during rendering; an empty catalog falls back to the English default vocabulary.
| element | label | reference |
|---|---|---|
| c1 clause | Clause 1 | Clause 1 |
| c1s1 subclause | 1.1 | 1.1 |
| c1s2 subclause | 1.2 | 1.2 |
| c1s2n1 note | NOTE 1 | NOTE 1 |
| c1s2n2 note | NOTE 2 | NOTE 2 |
| c1f1 figure | Figure 1 | Figure 1 |
| c2 clause | Clause 2 | Clause 2 |
| ax1 annex | Annex A | Annex A |
| ax1c1 clause | A.1 | A.1 |
Rendered live by the same engine that ships to kaleidl-ts — the TypeScript port of the Ruby reference. The label column carries the element's local value; the reference column carries the global cross-reference form.
Sequence explorer
Every LADL-compliant runtime carries fifteen built-in sequences. The chips list positions 1 through 12 of each sequence, rendered by the engine's formatters from the built-in specifications, so the actual values stand next to their names.