diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-29 14:09:17 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-29 14:09:17 -0400 |
| commit | 8b3b995b6aff5c15ba31692fd29113db3c42517f (patch) | |
| tree | 4b0f7bdde11c5227b6f78229284155c979419fe6 /gleam | |
| parent | a blank first text line was being lost (diff) | |
format 2.1: .ocn_range is one of the properties
Format 2.1 adds .ocn_range, the first and last ocn a container holds,
emitted after .last_descendant: a poem, which now carries ocn 0 and
comes before its verses, is cited as the range of them. Both readers
now know it as the forty-third property, so --validate accepts a 2.1
file and --report-unknown does not list it. The validator's message
counts the list rather than naming a number.
Every document-language of the markup document samples written by
spine at 2.1 validates; neither reader uses the property, which
within a major version is conforming.
(assisted by Claude-Code)
Diffstat (limited to 'gleam')
| -rw-r--r-- | gleam/README.md | 2 | ||||
| -rw-r--r-- | gleam/src/ssp/parse.gleam | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gleam/README.md b/gleam/README.md index d41135a..42c3e57 100644 --- a/gleam/README.md +++ b/gleam/README.md @@ -12,7 +12,7 @@ specification suffices: No reference was made to spine's emitter or to the D reader while writing it. The constants it carries (the sixteen kinds, the nine sections, the -four preamble blocks, the 42 properties in their emitted order) were taken +four preamble blocks, the 43 properties in their emitted order) were taken from the specification's own tables. ## Building and running diff --git a/gleam/src/ssp/parse.gleam b/gleam/src/ssp/parse.gleam index 9458317..dff7118 100644 --- a/gleam/src/ssp/parse.gleam +++ b/gleam/src/ssp/parse.gleam @@ -27,9 +27,11 @@ pub const section_names = [ "blurb", "tail", ] -/// specification section 6.3: the 42 properties, in the order emitted +/// specification section 6.3: the 43 properties, in the order emitted +/// (43 since format 2.1, which added ocn_range) pub const properties = [ - "identifier", "part", "section", "parent", "last_descendant", "children", + "identifier", "part", "section", "parent", "last_descendant", "ocn_range", + "children", "ancestors", "ancestors_collapsed", "dom_status", "dom_status_collapsed", "heading_lev_collapsed", "parent_lev", "dummy", "ocn_off", "is_of_type", "attrib", "meta_lang", "meta_syntax", "sha256", "image", "indent", "bullet", |
