Skip to content
Kaleidl

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.

Profile — LADL, mn112/1

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.

Labels9 resolved
elementlabelreference
c1 clauseClause 1Clause 1
c1s1 subclause1.11.1
c1s2 subclause1.21.2
c1s2n1 noteNOTE 1NOTE 1
c1s2n2 noteNOTE 2NOTE 2
c1f1 figureFigure 1Figure 1
c2 clauseClause 2Clause 2
ax1 annexAnnex AAnnex A
ax1c1 clauseA.1A.1
Document view
document — unlabeled #doc
clause · Clause 1 #c1
subclause · 1.1 #c1s1
subclause · 1.2 #c1s2
note · NOTE 1 #c1s2n1
note · NOTE 2 #c1s2n2
figure · Figure 1 #c1f1
clause · Clause 2 #c2
annex · Annex A #ax1
clause · A.1 #ax1c1

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.

DecimalNumericSequencelabeling format decimal123456789101112
ArabicNumericSequencelabeling format arabic_indic١٢٣٤٥٦٧٨٩١٠١١١٢
ArabicIndicNumericSequencelabeling format arabic_indic١٢٣٤٥٦٧٨٩١٠١١١٢
RomanUpperNumericSequencelabeling format roman_upperIIIIIIIVVVIVIIVIIIIXXXIXII
RomanLowerNumericSequencelabeling format roman_loweriiiiiiivvviviiviiiixxxixii
AlphaUpperNumericSequencelabeling format alpha_upperABCDEFGHIJKL
AlphaLowerNumericSequencelabeling format alpha_lowerabcdefghijkl
ChineseNumericSequencelabeling format chinese一二三四五六七八九十十一十二
JapaneseNumericSequencelabeling format japanese一二三四五六七八九十十一十二
KoreanNumericSequencelabeling format korean일이삼사오육칠팔구십십일십이
CyrillicUpperCharacterSequence32 characters, prepend_prefixАБВГДЕЖЗИЙКЛ
CyrillicLowerCharacterSequence32 characters, prepend_prefixабвгдежзийкл
GreekUpperCharacterSequence24 characters, prepend_prefixΑΒΓΔΕΖΗΘΙΚΛΜ
GreekLowerCharacterSequence24 characters, prepend_prefixαβγδεζηθικλμ
HebrewNumericSequence22 characters, prepend_prefixאבגדהוזחטיכל