Repository navigation
Releases
ladl 0.1.4
Labeling categories of the ISO/IEC Directives, Part 2
The bundled ISO/IEC profile (the MN 112-A worked profile instance) now declares the labeling categories that the Directives specify and that no profile previously modeled, each binding to its own element context:
- notes to figures (28.5.4) and notes to tables (29.5.1): independent counters restarting per figure and per table, a single note unnumbered
- notes to terminological entries (16.5.9): always numbered, even when a single one, restarting per entry — the designation word "Note" is its own vocabulary key (
note_to_entry), distinct from the text note "NOTE" - footnotes (26.3): sequential throughout the document, bare-number designation
- numbered bibliography entries (21.4): bracketed
[n] - Introduction subclauses (13.4):
0.1,0.2under the unnumbered Introduction
Five new label contexts (figure, table, term entry, bibliography, introduction) bind the new labellers; the additions are profile data — no engine behavior changed.
This release carries the profile set validated rule-by-rule against the ISO/IEC Directives, Part 2 (ninth edition); the validation record and the conformance vectors live in metanorma/ladl-testsuite.
ladl 0.1.3
ISO/IEC label style profile templates corrected to match MN 112: clause templates carry the bare assignment value (%n, %pn.%n) — the term word belongs to reference composition, not the assigned label. Both LML and YAML realizations updated and kept equivalent; golden-tree parity coverage landed (PR #16).
ladl 0.1.2
MN 112 labeling engine: declared context associations and a thin evaluator, {key} label-vocabulary tokens for multilingual labeling, YAML profile loading groundwork, ContentElements always carry children and id.
ladl 0.1.1
ladl 0.1.1
ISO/IEC profile completed by engine evidence; the engine ships no profiles
- The bundled ISO/IEC profile (the MN 112-A worked instance, retained as the engine's conformance fixture) now covers what the reference ISO engine labels: annex subclauses render hierarchically (A.1.1, A.1.1.1 —
AnnexSubclauseLabeller), and notes/examples inside annexes and subclauses label in their own section (AnnexNoteLabeller,AnnexExampleLabeller,SubclauseNoteLabeller,SubclauseExampleLabeller). Note/example counters restart per section — a lone note renders "NOTE", notes continue "NOTE 1, NOTE 2" within one subclause and restart in the next — matching the reference engine's per-section counters and singleton semantics. ArabicNumericSequencereturns to its MN 112 definition (Arabic-script numerals ١، ٢، ٣); the profile binds clause numbering toDecimalNumericSequence, matching the Western-digit outputs the ISO/IEC Directives specify.ArabicIndicNumericSequenceremains as the explicit RTL spelling used by the MN 112 examples.- The profile parser accepts both inheritance spellings: MN 112's
instance Foo < Barand the released LutaML grammar'sinstance "Foo" { isa Bar; }— profiles written in either syntax load and label identically. - The engine ships no bundled profiles (per the release plan, one LADL profile extraction per flavor gem and per taste): the bundled profile constants and accessors are removed —
Ladl.load_profileis the single entry point, and the MN 112-A worked instance moved to the conformance fixtures. The extracted profiles live in the flavor gems, metanorma-taste, and the metanorma/ladl-profiles staging repository. - gemspec metadata gains
changelog_uri; the repository follows the fleet CI shape (generic-rake, the plain release workflow with hand-written Release notes, Trusted Publishing).
v0.1.0
LADL — the LutaML Autographic Document Labeling engine (MN 112). First release.
.lmlprofile parser and the three-tree labeling engine (content / context / labeller), LutaML-model-only serialization- ISO/IEC profile: byte-identical labelling to the MN 112 profile table (20 labellers / 6 contexts / 39 templates)
- Golden tests reproduce the spec's Clause 1/1.1/Annex A→AA/Figure A.1/NOTE N label forms
- Spec ambiguities resolved by evidence: ArabicNumericSequence (1, 4, 7, 9) restored to the MN 112 definition