pubid 2.0.48 → 2.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14cacbfe26bb38df44afa230ee01ae45d89ca1b4c2fcf70f8673ba140d39fa4c
4
- data.tar.gz: 2a88cd958a39b727212ed14d96fd16e9ce5f21d8becaa500a9886bdb1b97be26
3
+ metadata.gz: e911f5da1bb976372ef979985988752b2675f52f1c537056d5e2c7ca30bdf7fa
4
+ data.tar.gz: c2584ac7b8aca85ed2bf8033f42e0710eecafdaf7ccab208b71467586d4fc77d
5
5
  SHA512:
6
- metadata.gz: 12f927b0cc58ebb883eab5e023500b5d05e3505565132b9d4bf745aaf6568de2c8d8152ec01db2ea805ce17209ec57201570f34955cd3d1101032e6b1ca088ae
7
- data.tar.gz: b56b3746bb0e142b467803458a3821a798b276d419369844fbef66ddab9d0efd08028d443645fff1e7683d26fb5ff68611c5816d72b9336cf5b32d0d90bcfb2b
6
+ metadata.gz: edfe6a9635c2d7ede5b9ec94da694fc8c757d01f4a13777cf2bcb1d1bd06429e2040cf30a8d11957ce10578e68fb80dfbf54a547ef6bdf281048fb1dbdc28a96
7
+ data.tar.gz: d833cd88c649903614776170095135a3e361a6f366dbc7edb6911a04d6a67f8d026ca91efd041b1d8be3d81f8ffcde0ead7166d6bc6f6ea140ef5264554234f8
data/README.adoc CHANGED
@@ -166,12 +166,12 @@ publisher page on https://pubid.github.io/publishers[pubid.github.io].
166
166
  |link:https://pubid.github.io/publishers/un[UN]
167
167
 
168
168
  |link:https://pubid.github.io/publishers/w3c[W3C]
169
+ |link:https://pubid.github.io/publishers/wmo[WMO]
169
170
  |link:https://pubid.github.io/publishers/xsf[XSF]
170
- |link:https://pubid.github.io/publishers/adobe[Adobe]
171
171
 
172
+ |link:https://pubid.github.io/publishers/adobe[Adobe]
172
173
  |link:https://pubid.github.io/publishers/amca[AMCA]
173
174
  |link:https://pubid.github.io/publishers/calconnect[CalConnect]
174
- |
175
175
  |===
176
176
 
177
177
  (The gem's 3GPP flavor key is `3gpp`; its publisher page is `tgpp`. CEN and
@@ -2,176 +2,3 @@
2
2
  # Rules: entries need reason + ref; a pending case that passes raises
3
3
  # the pending-satisfied alarm and MUST be unmarked (TODO.correct-test-suite/04).
4
4
  ---
5
- # relaton#45: a trailing -YYYY is the year, not a part. These testsuite
6
- # rows still record part: 'YYYY'; unmark them after the pubid-testsuite
7
- # ANSI round (the pending-satisfied alarm names them).
8
- ansi.standard.0001: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
9
- ansi.standard.0002: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
10
- ansi.standard.0003: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
11
- ansi.standard.0004: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
12
- ansi.standard.0005: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
13
- ansi.standard.0006: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
14
- ansi.standard.0007: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
15
- ansi.standard.0008: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
16
- ansi.standard.0009: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
17
- ansi.standard.0010: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
18
- ansi.standard.0011: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
19
- ansi.standard.0012: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
20
- ansi.standard.0013: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
21
- ansi.standard.0014: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
22
- ansi.standard.0015: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
23
- ansi.standard.0016: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
24
- ansi.standard.0017: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
25
- ansi.standard.0018: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
26
- ansi.standard.0019: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
27
- ansi.standard.0020: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
28
- ansi.standard.0021: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
29
- ansi.standard.0022: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
30
- ansi.standard.0023: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
31
- ansi.standard.0024: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
32
- ansi.standard.0025: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
33
- ansi.standard.0026: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
34
- ansi.standard.0027: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
35
- ansi.standard.0028: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
36
- ansi.standard.0029: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
37
- ansi.standard.0030: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
38
- ansi.standard.0031: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
39
- ansi.standard.0032: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
40
- ansi.standard.0033: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
41
- ansi.standard.0034: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
42
- ansi.standard.0035: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
43
- ansi.standard.0036: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
44
- ansi.standard.0037: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
45
- ansi.standard.0038: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
46
- ansi.standard.0039: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
47
- ansi.standard.0040: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
48
- ansi.standard.0041: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
49
- ansi.standard.0042: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
50
- ansi.standard.0043: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
51
- ansi.standard.0044: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
52
- ansi.standard.0045: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
53
- ansi.standard.0046: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
54
- ansi.standard.0047: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
55
- ansi.standard.0048: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
56
- ansi.standard.0049: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
57
- ansi.standard.0050: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
58
- ansi.standard.0051: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
59
- ansi.standard.0052: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
60
- ansi.standard.0053: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
61
- ansi.standard.0054: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
62
- ansi.standard.0055: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
63
- ansi.standard.0056: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
64
- ansi.standard.0057: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
65
- ansi.standard.0058: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
66
- ansi.standard.0059: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
67
- ansi.standard.0060: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
68
- ansi.standard.0061: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
69
- ansi.standard.0062: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
70
- ansi.standard.0063: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
71
- ansi.standard.0064: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
72
- ansi.standard.0065: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
73
- ansi.standard.0066: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
74
- ansi.standard.0067: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
75
- ansi.standard.0068: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
76
- ansi.standard.0069: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
77
- ansi.standard.0070: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
78
- ansi.standard.0071: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
79
- ansi.standard.0072: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
80
- ansi.standard.0073: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
81
- ansi.standard.0074: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
82
- ansi.standard.0075: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
83
- ansi.standard.0076: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
84
- ansi.standard.0077: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
85
- ansi.standard.0078: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
86
- ansi.standard.0079: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
87
- ansi.standard.0080: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
88
- ansi.standard.0081: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
89
- ansi.standard.0082: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
90
- ansi.standard.0083: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
91
- ansi.standard.0084: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
92
- ansi.standard.0085: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
93
- ansi.standard.0086: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
94
- ansi.standard.0087: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
95
- ansi.standard.0088: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
96
- ansi.standard.0089: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
97
- ansi.standard.0090: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
98
- ansi.standard.0091: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
99
- ansi.standard.0092: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
100
- ansi.standard.0093: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
101
- ansi.standard.0094: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
102
- ansi.standard.0095: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
103
- ansi.standard.0096: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
104
- ansi.standard.0097: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
105
- ansi.standard.0098: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
106
- ansi.standard.0099: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
107
- ansi.standard.0100: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
108
- ansi.standard.0101: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
109
- ansi.standard.0102: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
110
- ansi.standard.0103: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
111
- ansi.standard.0104: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
112
- ansi.standard.0105: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
113
- ansi.standard.0106: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
114
- ansi.standard.0107: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
115
- ansi.standard.0108: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
116
- ansi.standard.0109: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
117
- ansi.standard.0110: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
118
- ansi.standard.0111: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
119
- ansi.standard.0112: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
120
- ansi.standard.0113: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
121
- ansi.standard.0114: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
122
- ansi.standard.0115: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
123
- ansi.standard.0116: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
124
- ansi.standard.0117: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
125
- ansi.standard.0118: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
126
- ansi.standard.0119: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
127
- ansi.standard.0120: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
128
- ansi.standard.0121: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
129
- ansi.standard.0122: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
130
- ansi.standard.0123: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
131
- ansi.standard.0124: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
132
- ansi.standard.0125: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
133
- ansi.standard.0126: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
134
- ansi.standard.0127: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
135
- ansi.standard.0128: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
136
- ansi.standard.0129: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
137
- ansi.standard.0130: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
138
- ansi.standard.0131: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
139
- ansi.standard.0132: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
140
- ansi.standard.0133: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
141
- ansi.standard.0137: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
142
- ansi.standard.0138: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
143
- ansi.standard.0139: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
144
- ansi.standard.0140: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
145
- ansi.standard.0141: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
146
- ansi.standard.0142: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
147
- ansi.standard.0143: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
148
- ansi.standard.0144: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
149
- ansi.standard.0145: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
150
- ansi.standard.0146: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
151
- ansi.standard.0147: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
152
- ansi.standard.0148: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
153
- ansi.standard.0149: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
154
- ansi.standard.0150: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
155
- ansi.standard.0151: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
156
- ansi.standard.0152: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
157
- ansi.standard.0153: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
158
- ansi.standard.0154: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
159
- ansi.standard.0155: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
160
- ansi.standard.0156: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
161
- ansi.standard.0157: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
162
- ansi.standard.0158: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
163
- ansi.standard.0159: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
164
- ansi.standard.0160: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
165
- ansi.standard.0161: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
166
- ansi.standard.0162: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
167
- ansi.standard.0163: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
168
- ansi.standard.0164: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
169
- ansi.standard.0165: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
170
- ansi.standard.0166: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
171
- ansi.standard.0167: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
172
- ansi.standard.0168: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
173
- ansi.standard.0169: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
174
- ansi.standard.0170: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
175
- ansi.standard.0171: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
176
- ansi.standard.0172: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
177
- ansi.standard.0173: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
data/data/parg/adobe.json CHANGED
@@ -1 +1 @@
1
- {"bindings":null,"version":"0.1.0","grammar":"PubidAdobe","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":40}},{"Str":{"pattern":"Adobe"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"TN"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":4,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,2,3,5]}},{"Str":{"pattern":"Adobe"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Technical"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Note"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":12,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"#"}},{"Repetition":{"atom":14,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":16,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[13,15,17]}},{"Repetition":{"atom":18,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[7,8,9,10,11,19]}},{"Str":{"pattern":"ATN"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":22,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[21,23]}},{"Alternative":{"atoms":[6,20,24]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":27}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[_]"}},{"Alternative":{"atoms":[30,31,32,33]}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"slug","atom":35}},{"Sequence":{"atoms":[29,36]}},{"Repetition":{"atom":37,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[25,28,38]}},{"Named":{"name":"tech_note","atom":39}},{"Entity":{"atom":44}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":42,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"tech_note_bare","atom":43}},{"Entity":{"atom":92}},{"Str":{"pattern":"Adobe Publication "}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":91}},{"Entity":{"atom":72}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":50,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[52,53]}},{"Repetition":{"atom":54,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":57,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[59,60]}},{"Repetition":{"atom":61,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[56,58,62]}},{"Repetition":{"atom":63,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[51,55,64]}},{"Named":{"name":"slug","atom":65}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":68,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":69}},{"Sequence":{"atoms":[66,67,70]}},{"Named":{"name":"publication_version","atom":71}},{"Entity":{"atom":90}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":74,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[76,77]}},{"Repetition":{"atom":78,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":81,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[83,84]}},{"Repetition":{"atom":85,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[80,82,86]}},{"Repetition":{"atom":87,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[75,79,88]}},{"Named":{"name":"slug","atom":89}},{"Alternative":{"atoms":[49,73]}},{"Sequence":{"atoms":[47,48]}},{"Alternative":{"atoms":[0,41,45]}}],"root":93},"bindings":[{"capture":"tech_note","path":"tech_note","type":"raw","card":null,"preprocess":null},{"capture":"tech_note_bare","path":"tech_note_bare","type":"string","card":null,"preprocess":null},{"capture":"publication_version","path":"publication_version","type":"raw","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"slug","path":"slug","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule publication_slug_or_version: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"Adobe TN 15","expect":{}},{"entry":"identifier","kind":"accept","input":"ATN 30","expect":{}},{"entry":"identifier","kind":"accept","input":"Adobe Technical Note #12","expect":{}},{"entry":"identifier","kind":"reject","input":"###","expect":{}}],"docs":{},"source":"# Port of lib/pubid/adobe/parser.rb: tech notes (Adobe TN 5014, legacy\n# \"Adobe Technical Note #5014\", ATN5014, bare 5014) and publications\n# (adobe-glyph-list, adobe-japan1-7 with the version split tried first).\n#\n# Edition 2: every reference inside a captured body is inlined to raw\n# terms (a rule reference materializes as a named node in the edition-2\n# tree, so only a raw capture binds a scalar span). The prefix spellings\n# and slug shapes live inline below; the wrapper captures (tech_note,\n# tech_note_bare, publication_version) keep the v1 tree shape and the\n# bindings name their scalar leaves.\n\ngrammar PubidAdobe version \"0.1.0\" edition 2 {\n\n # Capture precedence: (*rep) as name wraps the whole repetition, so a\n # digit run joins to one string instead of re-keying every character;\n # slug is captured exactly once (the bare form) or as a sibling of\n # version inside the publication_version capture. The three prefix\n # spellings are inlined longest-first (ordered choice is decisive).\n tech_note = {\n (\n ( \"Adobe\" \" \" \"TN\" [\" \"]\n / \"Adobe\" \" \" \"Technical\" \" \" \"Note\" [[\" \"] [\"#\"] [\" \"]]\n / \"ATN\" [\" \"] )\n (1*%x30-39) as number\n [(\".\" (1*(%x41-5A / %x61-7A / %x30-39 / %x5F)) as slug)]\n ) as tech_note\n }\n # The bare form captures the digit run as one span: the builder\n # stringifies the :tech_note_bare value AS the number (no nested read),\n # so an inner capture here would render the hash, not the digits.\n bare_number = (1*%x30-39) as tech_note_bare\n # Slug text: a lower-case lead segment, then dash-joined segments.\n publication_with_version = {\n (\n ( 1*%x61-7A *(%x61-7A / %x30-39)\n *(\"-\" 1*%x61-7A *(%x61-7A / %x30-39)) ) as slug\n \"-\"\n (1*%x30-39) as version\n ) as publication_version\n }\n slug_inner = {\n ( 1*%x61-7A *(%x61-7A / %x30-39)\n *(\"-\" 1*%x61-7A *(%x61-7A / %x30-39)) ) as slug\n }\n publication_slug_or_version = publication_with_version / slug_inner\n publication = [\"Adobe Publication \"] publication_slug_or_version\n identifier = tech_note / bare_number / publication\n\n entry identifier: identifier\n\n test {\n accept \"Adobe TN 15\"\n accept \"ATN 30\"\n accept \"Adobe Technical Note #12\"\n reject \"###\"\n }\n\n bindings identifier {\n # The builder dispatches on the wrapper keys and reads the leaves from\n # inside them (adobe/builder.rb build_tech_note / build_publication_version),\n # so the wrappers bind uncast — the nested hash the builder expects. The\n # scalar bindings carry the same leaves flat for typed consumers.\n tech_note -> tech_note (raw)\n tech_note_bare -> tech_note_bare (string)\n publication_version -> publication_version (raw)\n number -> number (string)\n slug -> slug (string)\n version -> version (string)\n }\n}\n","source_hash":"ebe64b2104b3e1494b9c5ba304e3b7e62f95b3430851db7f5c09549e03fcefb9","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:a56693eaf290b40d9d94ed91611d4aa108e9827d578071062b17ca072658cc25","checksum":"sha256:eaa21af1ff3767e4094ecf376637020c4db9f106a48ceaf083e49d7e281be173","validated":{"lint_errors":0,"lint_warnings":2,"tests_total":4,"tests_failures":0,"self_test":true}}
1
+ {"bindings":null,"version":"0.2.0","grammar":"PubidAdobe","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":40}},{"Str":{"pattern":"Adobe"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"TN"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":4,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,2,3,5]}},{"Str":{"pattern":"Adobe"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Technical"}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Note"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":12,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"#"}},{"Repetition":{"atom":14,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":16,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[13,15,17]}},{"Repetition":{"atom":18,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[7,8,9,10,11,19]}},{"Str":{"pattern":"ATN"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":22,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[21,23]}},{"Alternative":{"atoms":[6,20,24]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":27}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[_]"}},{"Alternative":{"atoms":[30,31,32,33]}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"slug","atom":35}},{"Sequence":{"atoms":[29,36]}},{"Repetition":{"atom":37,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[25,28,38]}},{"Named":{"name":"tech_note","atom":39}},{"Entity":{"atom":44}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":42,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"tech_note_bare","atom":43}},{"Entity":{"atom":98}},{"Str":{"pattern":"Adobe Publication "}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":97}},{"Entity":{"atom":78}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":50,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[52,53]}},{"Repetition":{"atom":54,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":57,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[59,60]}},{"Repetition":{"atom":61,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[56,58,62]}},{"Repetition":{"atom":63,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[51,55,64]}},{"Named":{"name":"slug","atom":65}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":68,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":71,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[70,72]}},{"Repetition":{"atom":73,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[69,74]}},{"Named":{"name":"version","atom":75}},{"Sequence":{"atoms":[66,67,76]}},{"Named":{"name":"publication_version","atom":77}},{"Entity":{"atom":96}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":80,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[82,83]}},{"Repetition":{"atom":84,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":87,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[89,90]}},{"Repetition":{"atom":91,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[86,88,92]}},{"Repetition":{"atom":93,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[81,85,94]}},{"Named":{"name":"slug","atom":95}},{"Alternative":{"atoms":[49,79]}},{"Sequence":{"atoms":[47,48]}},{"Alternative":{"atoms":[0,41,45]}}],"root":99},"bindings":[{"capture":"tech_note","path":"tech_note","type":"raw","card":null,"preprocess":null},{"capture":"tech_note_bare","path":"tech_note_bare","type":"string","card":null,"preprocess":null},{"capture":"publication_version","path":"publication_version","type":"raw","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"slug","path":"slug","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule publication_slug_or_version: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"Adobe TN 15","expect":{}},{"entry":"identifier","kind":"accept","input":"ATN 30","expect":{}},{"entry":"identifier","kind":"accept","input":"Adobe Technical Note #12","expect":{}},{"entry":"identifier","kind":"accept","input":"pdf-reference-1.7","expect":{}},{"entry":"identifier","kind":"accept","input":"Adobe Publication tiff-6.0","expect":{}},{"entry":"identifier","kind":"accept","input":"Adobe Publication xfa-3.3","expect":{}},{"entry":"identifier","kind":"accept","input":"adobe-japan1-7","expect":{}},{"entry":"identifier","kind":"reject","input":"###","expect":{}}],"docs":{},"source":"# Port of lib/pubid/adobe/parser.rb: tech notes (Adobe TN 5014, legacy\n# \"Adobe Technical Note #5014\", ATN5014, bare 5014) and publications\n# (adobe-glyph-list, adobe-japan1-7 with the version split tried first).\n#\n# Edition 2: every reference inside a captured body is inlined to raw\n# terms (a rule reference materializes as a named node in the edition-2\n# tree, so only a raw capture binds a scalar span). The prefix spellings\n# and slug shapes live inline below; the wrapper captures (tech_note,\n# tech_note_bare, publication_version) keep the v1 tree shape and the\n# bindings name their scalar leaves.\n\ngrammar PubidAdobe version \"0.2.0\" edition 2 {\n\n # Capture precedence: (*rep) as name wraps the whole repetition, so a\n # digit run joins to one string instead of re-keying every character;\n # slug is captured exactly once (the bare form) or as a sibling of\n # version inside the publication_version capture. The three prefix\n # spellings are inlined longest-first (ordered choice is decisive).\n tech_note = {\n (\n ( \"Adobe\" \" \" \"TN\" [\" \"]\n / \"Adobe\" \" \" \"Technical\" \" \" \"Note\" [[\" \"] [\"#\"] [\" \"]]\n / \"ATN\" [\" \"] )\n (1*%x30-39) as number\n [(\".\" (1*(%x41-5A / %x61-7A / %x30-39 / %x5F)) as slug)]\n ) as tech_note\n }\n # The bare form captures the digit run as one span: the builder\n # stringifies the :tech_note_bare value AS the number (no nested read),\n # so an inner capture here would render the hash, not the digits.\n bare_number = (1*%x30-39) as tech_note_bare\n # Slug text: a lower-case lead segment, then dash-joined segments.\n # The version face is a dot-joined digit run (\"7\", \"1.7\", \"6.0\") — the\n # PDF Reference editions, TIFF 6.0 and XFA 3.3 carry dotted versions.\n publication_with_version = {\n (\n ( 1*%x61-7A *(%x61-7A / %x30-39)\n *(\"-\" 1*%x61-7A *(%x61-7A / %x30-39)) ) as slug\n \"-\"\n ( 1*%x30-39 *( \".\" 1*%x30-39 ) ) as version\n ) as publication_version\n }\n slug_inner = {\n ( 1*%x61-7A *(%x61-7A / %x30-39)\n *(\"-\" 1*%x61-7A *(%x61-7A / %x30-39)) ) as slug\n }\n publication_slug_or_version = publication_with_version / slug_inner\n publication = [\"Adobe Publication \"] publication_slug_or_version\n identifier = tech_note / bare_number / publication\n\n entry identifier: identifier\n\n test {\n accept \"Adobe TN 15\"\n accept \"ATN 30\"\n accept \"Adobe Technical Note #12\"\n accept \"pdf-reference-1.7\"\n accept \"Adobe Publication tiff-6.0\"\n accept \"Adobe Publication xfa-3.3\"\n accept \"adobe-japan1-7\"\n reject \"###\"\n }\n\n bindings identifier {\n # The builder dispatches on the wrapper keys and reads the leaves from\n # inside them (adobe/builder.rb build_tech_note / build_publication_version),\n # so the wrappers bind uncast — the nested hash the builder expects. The\n # scalar bindings carry the same leaves flat for typed consumers.\n tech_note -> tech_note (raw)\n tech_note_bare -> tech_note_bare (string)\n publication_version -> publication_version (raw)\n number -> number (string)\n slug -> slug (string)\n version -> version (string)\n }\n}\n","source_hash":"716ecf16e7525972b7a01fa986f4e6a81898080dbdf0a84e516447e729d8e7b4","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:77a3e453cf351ab679c4295ff10126a094b6c8d390f54f67703dc8cc7799c12b","checksum":"sha256:680933a1482ee9cf4875d20f36496986cf7b2f20f2c4ca5cf6ceff6f5a093328","validated":{"lint_errors":0,"lint_warnings":2,"tests_total":8,"tests_failures":0,"self_test":true}}
data/data/parg/wmo.json CHANGED
@@ -1 +1 @@
1
- {"bindings":null,"version":"0.1.0","grammar":"PubidWmo","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":47}},{"Entity":{"atom":7}},{"Str":{"pattern":"S-"}},{"Entity":{"atom":4}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":5}},{"Sequence":{"atoms":[2,6]}},{"Entity":{"atom":9}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[10,11]}},{"Named":{"name":"annex_marker","atom":12}},{"Entity":{"atom":9}},{"Entity":{"atom":16}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":15}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":18,"positive":false}},{"Sequence":{"atoms":[14,17,20]}},{"Repetition":{"atom":21,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Entity":{"atom":9}},{"Entity":{"atom":35}},{"Entity":{"atom":4}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Str":{"pattern":"."}},{"Entity":{"atom":4}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[28,31]}},{"Repetition":{"atom":32,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,33]}},{"Named":{"name":"edition_value","atom":34}},{"Sequence":{"atoms":[24,25]}},{"Named":{"name":"edition","atom":36}},{"Entity":{"atom":44}},{"Entity":{"atom":40}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":35}},{"Sequence":{"atoms":[39,41,42]}},{"Named":{"name":"edition","atom":43}},{"Alternative":{"atoms":[23,38]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,8,13,22,46]}},{"Entity":{"atom":77}},{"Entity":{"atom":51}},{"Str":{"pattern":"WMO-No."}},{"Named":{"name":"wmomarker","atom":50}},{"Entity":{"atom":9}},{"Entity":{"atom":56}},{"Entity":{"atom":4}},{"Repetition":{"atom":54,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":55}},{"Entity":{"atom":68}},{"Entity":{"atom":59}},{"Str":{"pattern":","}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Entity":{"atom":65}},{"Entity":{"atom":4}},{"Repetition":{"atom":63,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"edition_value","atom":64}},{"Str":{"pattern":" edition"}},{"Sequence":{"atoms":[60,61,62,66]}},{"Named":{"name":"edition","atom":67}},{"Entity":{"atom":74}},{"Entity":{"atom":40}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":65}},{"Sequence":{"atoms":[70,71,72]}},{"Named":{"name":"edition","atom":73}},{"Alternative":{"atoms":[57,69]}},{"Repetition":{"atom":75,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[49,52,53,76]}},{"Entity":{"atom":84}},{"Entity":{"atom":7}},{"Entity":{"atom":37}},{"Entity":{"atom":44}},{"Alternative":{"atoms":[80,81]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[79,83]}},{"Alternative":{"atoms":[0,48,78]}}],"root":85},"bindings":[{"capture":"wmomarker","path":"wmomarker","type":"string","card":null,"preprocess":null},{"capture":"doc_number","path":"doc_number","type":"string","card":null,"preprocess":null},{"capture":"edition_value","path":"edition_value","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"WMO-No. 1364","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364:ed2025","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411:ed1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 ANNEX A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A 1.2.0","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO-No. edition","expect":{}},{"entry":"identifier","kind":"reject","input":"S-411 1234","expect":{}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364","expect":{"wmomarker":"WMO-No.","doc_number":"1364"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2025 edition","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"S-411 1.2.1","expect":{"doc_number":"411","edition_value":"1.2.1"}},{"entry":"identifier","kind":"example","input":"S-411 Annex A 1.2.0","expect":{"doc_number":"411","annex_marker":"Annex","annex_letter":"A","edition_value":"1.2.0"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364:ed2025","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}}],"docs":{},"source":"# WMO document identifiers (pubid#763): the WMO-No. publication series\n# and the WMO-published S-100 product specifications.\n#\n# WMO-No. 1364 publication, bare\n# WMO-No. 1364, 2025 edition publication, year edition (citation comma)\n# WMO-No. 1364 2025 edition publication, year edition (cover stack)\n# WMO-No. 1364:ed2025 publication, compact year edition (alias)\n# S-411 S-100 product specification, bare\n# S-411 1.2.1 dotted edition (the S-411 repo form)\n# S-411:ed1.2.1 compact dotted edition (alias)\n# S-411 Annex A annex wrapper (the DCEG docidentifier)\n# S-411 Annex A 1.2.0 annex wrapper carrying its edition\n#\n# Editions are a type-driven face: the WMO-No. series carries calendar-year\n# editions (\"2025 edition\", MRN `ed2025`); the S-100 shapes carry the IHO\n# dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value` capture;\n# the builder keys the face off the resolved type.\n#\n# Type assignment (the #763 ruling): the S-lexical form is a WMO type,\n# publisher-parameterised per IALA's S-201 — the lexical shape is the IHO\n# S-100 form, but the flavor owns the WMO-published documents\n# (metanorma/S-411-Product-Specification, mn-document-class wmo).\n#\n# Edition-2 conversion with typed model bindings, mirroring the iala\n# grammar: each alternative path carries exactly one occurrence of every\n# capture name, so the harvest delivers one flat bound map; the annex base\n# composite stays unbound (its `doc_number` hoists to the top level) and\n# the builder dispatches on `wmomarker` / `annex_marker`. The annex letter\n# guard (!lower) keeps a following edition segment from mis-capturing.\n\ngrammar PubidWmo version \"0.1.0\" edition 2 {\n wmomarker = \"WMO-No.\" as wmomarker\n doc_number = (1*digit) as doc_number\n s_code = \"S-\" (1*digit) as doc_number\n year_value = (4digit) as edition_value\n dotted_value = (1*digit 1*(dot 1*digit)) as edition_value\n edition_year_human = ([comma] space year_value \" edition\") as edition\n edition_year_compact = (colon \"ed\" year_value) as edition\n edition_dotted_human = (space dotted_value) as edition\n edition_dotted_compact = (colon \"ed\" dotted_value) as edition\n annex_identifier = {\n s_code\n space\n (\"Annex\" / \"ANNEX\") as annex_marker\n [ (space upper as annex_letter !lower) ]\n [edition_dotted_human / edition_dotted_compact]\n }\n publication_identifier = {\n wmomarker space doc_number\n [edition_year_human / edition_year_compact]\n }\n standard_identifier = {\n s_code\n [edition_dotted_human / edition_dotted_compact]\n }\n identifier = annex_identifier / publication_identifier / standard_identifier\n entry identifier: identifier\n\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n comma = \",\"\n colon = \":\"\n dot = \".\"\n space = \" \"\n\n bindings identifier {\n wmomarker -> wmomarker (string)\n doc_number -> doc_number (string)\n edition_value -> edition_value (string)\n annex_marker -> annex_marker (string)\n annex_letter -> annex_letter (string)\n }\n\n test {\n accept \"WMO-No. 1364\"\n accept \"WMO-No. 1364, 2025 edition\"\n accept \"WMO-No. 1364 2025 edition\"\n accept \"WMO-No. 1364:ed2025\"\n accept \"S-411\"\n accept \"S-411 1.2.1\"\n accept \"S-411:ed1.2.1\"\n accept \"S-411 Annex A\"\n accept \"S-411 ANNEX A\"\n accept \"S-411 Annex A 1.2.0\"\n reject \"nonsense\"\n reject \"WMO-No. edition\"\n reject \"S-411 1234\"\n example \"WMO-No. 1364\" { wmomarker: \"WMO-No.\", doc_number: \"1364\" }\n example \"WMO-No. 1364, 2025 edition\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"S-411 1.2.1\" { doc_number: \"411\", edition_value: \"1.2.1\" }\n example \"S-411 Annex A 1.2.0\" {\n doc_number: \"411\",\n annex_marker: \"Annex\",\n annex_letter: \"A\",\n edition_value: \"1.2.0\",\n }\n example \"WMO-No. 1364:ed2025\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n }\n}\n","source_hash":"c1154f8f4d15e8e1bb6cf9e72f81ff364f38a4fcdb6a51306ad9168b309e593f","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:b48a1a5ec6cdc049a19e4a5c0384c10c9bf00160cc30924a21606ac45f558819","checksum":"sha256:671bca49cef897f9c5554c6073cf7b9a2319240ecc2a82a36d559af0d44e5d09","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":18,"tests_failures":0,"self_test":true}}
1
+ {"bindings":null,"version":"0.2.0","grammar":"PubidWmo","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":47}},{"Entity":{"atom":7}},{"Str":{"pattern":"S-"}},{"Entity":{"atom":4}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":5}},{"Sequence":{"atoms":[2,6]}},{"Entity":{"atom":9}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[10,11]}},{"Named":{"name":"annex_marker","atom":12}},{"Entity":{"atom":9}},{"Entity":{"atom":16}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":15}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":18,"positive":false}},{"Sequence":{"atoms":[14,17,20]}},{"Repetition":{"atom":21,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Entity":{"atom":9}},{"Entity":{"atom":35}},{"Entity":{"atom":4}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Str":{"pattern":"."}},{"Entity":{"atom":4}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[28,31]}},{"Repetition":{"atom":32,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,33]}},{"Named":{"name":"edition_value","atom":34}},{"Sequence":{"atoms":[24,25]}},{"Named":{"name":"edition","atom":36}},{"Entity":{"atom":44}},{"Entity":{"atom":40}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":35}},{"Sequence":{"atoms":[39,41,42]}},{"Named":{"name":"edition","atom":43}},{"Alternative":{"atoms":[23,38]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,8,13,22,46]}},{"Entity":{"atom":141}},{"Entity":{"atom":58}},{"Str":{"pattern":"WMO-No."}},{"Named":{"name":"series_head","atom":50}},{"Str":{"pattern":"WMO/TD-No."}},{"Named":{"name":"series_head","atom":52}},{"Str":{"pattern":"JCOMM Technical Report No."}},{"Named":{"name":"series_head","atom":54}},{"Str":{"pattern":"GAW Report No."}},{"Named":{"name":"series_head","atom":56}},{"Alternative":{"atoms":[51,53,55,57]}},{"Entity":{"atom":9}},{"Entity":{"atom":63}},{"Entity":{"atom":4}},{"Repetition":{"atom":61,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":62}},{"Entity":{"atom":92}},{"Str":{"pattern":","}},{"Repetition":{"atom":65,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":"Volume"}},{"Entity":{"atom":9}},{"Entity":{"atom":91}},{"Entity":{"atom":82}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"X"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[72,73,74,75,76,77,78,79,80,81]}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[71,83]}},{"Entity":{"atom":29}},{"Entity":{"atom":4}},{"Repetition":{"atom":86,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[85,87]}},{"Repetition":{"atom":88,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[84,89]}},{"Named":{"name":"volume","atom":90}},{"Sequence":{"atoms":[66,67,68,69,70]}},{"Repetition":{"atom":64,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":122}},{"Str":{"pattern":","}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Entity":{"atom":108}},{"Entity":{"atom":4}},{"Repetition":{"atom":99,"min":4,"max":4,"tag":"Repetition"}},{"Entity":{"atom":102}},{"Str":{"pattern":"/"}},{"Entity":{"atom":4}},{"Repetition":{"atom":103,"min":4,"max":4,"tag":"Repetition"}},{"Sequence":{"atoms":[101,104]}},{"Repetition":{"atom":105,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[100,106]}},{"Named":{"name":"edition_value","atom":107}},{"Str":{"pattern":" edition"}},{"Entity":{"atom":120}},{"Str":{"pattern":","}},{"Entity":{"atom":9}},{"Str":{"pattern":"updated"}},{"Entity":{"atom":9}},{"Str":{"pattern":"in"}},{"Entity":{"atom":9}},{"Entity":{"atom":4}},{"Repetition":{"atom":117,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"updated_in","atom":118}},{"Sequence":{"atoms":[111,112,113,114,115,116,119]}},{"Repetition":{"atom":110,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[96,97,98,109,121]}},{"Entity":{"atom":132}},{"Str":{"pattern":","}},{"Repetition":{"atom":124,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":"Provisional"}},{"Named":{"name":"edition_status","atom":127}},{"Entity":{"atom":9}},{"Entity":{"atom":108}},{"Str":{"pattern":" edition"}},{"Sequence":{"atoms":[125,126,128,129,130,131]}},{"Entity":{"atom":138}},{"Entity":{"atom":40}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":108}},{"Sequence":{"atoms":[134,135,136]}},{"Named":{"name":"edition","atom":137}},{"Alternative":{"atoms":[94,123,133]}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[49,59,60,93,140]}},{"Entity":{"atom":148}},{"Entity":{"atom":7}},{"Entity":{"atom":37}},{"Entity":{"atom":44}},{"Alternative":{"atoms":[144,145]}},{"Repetition":{"atom":146,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[143,147]}},{"Alternative":{"atoms":[0,48,142]}}],"root":149},"bindings":[{"capture":"series_head","path":"series_head","type":"string","card":null,"preprocess":null},{"capture":"doc_number","path":"doc_number","type":"string","card":null,"preprocess":null},{"capture":"edition_value","path":"edition_value","type":"string","card":null,"preprocess":null},{"capture":"volume","path":"volume","type":"string","card":null,"preprocess":null},{"capture":"edition_status","path":"edition_status","type":"string","card":null,"preprocess":null},{"capture":"updated_in","path":"updated_in","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule series_head: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"WMO-No. 1364","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364:ed2025","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411:ed1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 ANNEX A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A 1.2.0","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 306","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Volume I","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Volume V","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 306, Volume I.1","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 9, Volume D","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 306, Volume I.1, 2020 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, 2021/2018 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2023 edition, updated in 2025","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Provisional 2026 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO/TD-No. 196","expect":{}},{"entry":"identifier","kind":"accept","input":"JCOMM Technical Report No. 14","expect":{}},{"entry":"identifier","kind":"accept","input":"GAW Report No. 312","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO-No. edition","expect":{}},{"entry":"identifier","kind":"reject","input":"S-411 1234","expect":{}},{"entry":"identifier","kind":"reject","input":"TD-No. 1265","expect":{}},{"entry":"identifier","kind":"reject","input":"TD No. 196","expect":{}},{"entry":"identifier","kind":"reject","input":"IMO/TD-No. 259","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO/GAW Report No. 285","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO/TD - No. 1469","expect":{}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364","expect":{"series_head":"WMO-No.","doc_number":"1364"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2025 edition","expect":{"series_head":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"S-411 1.2.1","expect":{"doc_number":"411","edition_value":"1.2.1"}},{"entry":"identifier","kind":"example","input":"S-411 Annex A 1.2.0","expect":{"doc_number":"411","annex_marker":"Annex","annex_letter":"A","edition_value":"1.2.0"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364:ed2025","expect":{"series_head":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"WMO-No. 306, Volume I.1","expect":{"series_head":"WMO-No.","doc_number":"306","volume":"I.1"}},{"entry":"identifier","kind":"example","input":"WMO-No. 306, Volume I.1, 2020 edition","expect":{"series_head":"WMO-No.","doc_number":"306","volume":"I.1","edition_value":"2020"}},{"entry":"identifier","kind":"example","input":"WMO-No. 8, 2021/2018 edition","expect":{"series_head":"WMO-No.","doc_number":"8","edition_value":"2021/2018"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2023 edition, updated in 2025","expect":{"series_head":"WMO-No.","doc_number":"1364","edition_value":"2023","updated_in":"2025"}},{"entry":"identifier","kind":"example","input":"WMO-No. 8, Provisional 2026 edition","expect":{"series_head":"WMO-No.","doc_number":"8","edition_status":"Provisional","edition_value":"2026"}},{"entry":"identifier","kind":"example","input":"WMO/TD-No. 196","expect":{"series_head":"WMO/TD-No.","doc_number":"196"}},{"entry":"identifier","kind":"example","input":"JCOMM Technical Report No. 14","expect":{"series_head":"JCOMM Technical Report No.","doc_number":"14"}},{"entry":"identifier","kind":"example","input":"GAW Report No. 312","expect":{"series_head":"GAW Report No.","doc_number":"312"}}],"docs":{},"source":"# WMO document identifiers (pubid#763, widened): the WMO-No. publication\n# series, the WMO-published S-100 product specifications, and the WMO\n# technical-document series (WMO/TD, JCOMM Technical Report, GAW Report).\n#\n# WMO-No. 1364 publication, bare\n# WMO-No. 1364, 2025 edition publication, year edition (citation comma)\n# WMO-No. 1364 2025 edition publication, year edition (cover stack)\n# WMO-No. 1364:ed2025 publication, compact year edition (alias)\n# WMO-No. 8, 2021/2018 edition publication, compound year-pair edition\n# (primary year first, the IMOP wording)\n# WMO-No. 1364, 2023 edition,\n# updated in 2025 publication, edition + updated-in year\n# (library record 69478)\n# WMO-No. 8, Provisional 2026\n# edition publication, status-qualified edition\n# (IMOP Knowledge-Hub)\n# WMO-No. 8, Volume I … V volume face, roman (IMOP Guide page)\n# WMO-No. 306, Volume I.1 dotted-roman sub-volume (record 35713)\n# WMO-No. 9, Volume D letter volume (Resolution 10 (SERCOM-1))\n# WMO/TD-No. 196 the Technical Document series (the\n# library serial \"WMO/TD-No.\"; the PREFIX\n# law of the widening ruling: the bare\n# \"TD-No.\" head names no publisher, so it\n# never parses)\n# JCOMM Technical Report No. 14 the joint WMO/IOC series (self-\n# identifying head)\n# GAW Report No. 312 the GAW series, bare head (WMO's own\n# library records; the prefixed\n# \"WMO/GAW Report No.\" spelling is\n# third-party citation only)\n# S-411 S-100 product specification, bare\n# S-411 1.2.1 dotted edition (the S-411 repo form)\n# S-411:ed1.2.1 compact dotted edition (alias)\n# S-411 Annex A annex wrapper (the DCEG docidentifier)\n# S-411 Annex A 1.2.0 annex wrapper carrying its edition\n#\n# Editions are a type-driven face: the publication series carry calendar-\n# year editions (\"2025 edition\", MRN `ed2025`); the S-100 shapes carry the\n# IHO dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value`\n# capture; the builder keys the face off the resolved type. The compound\n# faces widen the same capture: the year pair (\"2021/2018\") is one\n# edition value — the pair IS the identity face, the dotted-x.y.z rule of\n# the S-100 side applied to years — and the status word (\"Provisional\")\n# and the updated-in year ride their own captures beside it.\n#\n# The volume face precedes the edition face when both appear (the face\n# order of the widening ruling; both faces individually attested on\n# WMO-No. 306 Volume I.1 and the 2020-edition rows).\n#\n# Type assignment (the #763 ruling): the S-lexical form is a WMO type,\n# publisher-parameterised per IALA's S-201 — the lexical shape is the IHO\n# S-100 form, but the flavor owns the WMO-published documents\n# (metanorma/S-411-Product-Specification, mn-document-class wmo).\n#\n# Edition-2 conversion with typed model bindings, mirroring the iala\n# grammar: each alternative path carries at most one occurrence of every\n# capture name, so the harvest delivers one flat bound map; the annex base\n# composite stays unbound (its `doc_number` hoists to the top level) and\n# the builder dispatches on `series_head` / `annex_marker`. The annex\n# letter guard (!lower) keeps a following edition segment from\n# mis-capturing.\n\ngrammar PubidWmo version \"0.2.0\" edition 2 {\n series_head = {\n \"WMO-No.\" as series_head\n / \"WMO/TD-No.\" as series_head\n / \"JCOMM Technical Report No.\" as series_head\n / \"GAW Report No.\" as series_head\n }\n doc_number = (1*digit) as doc_number\n s_code = \"S-\" (1*digit) as doc_number\n year_value = ((4digit) [slash (4digit)]) as edition_value\n dotted_value = (1*digit 1*(dot 1*digit)) as edition_value\n updated_tail = {\n \",\" space \"updated\" space \"in\" space ((4digit) as updated_in)\n }\n edition_year_human = {\n [\",\"] space year_value \" edition\"\n [updated_tail]\n }\n edition_year_compact = (colon \"ed\" year_value) as edition\n edition_status_human = {\n [\",\"] space (\"Provisional\" as edition_status) space year_value \" edition\"\n }\n edition_dotted_human = (space dotted_value) as edition\n edition_dotted_compact = (colon \"ed\" dotted_value) as edition\n volume_roman = {\n \"VIII\" / \"VII\" / \"VI\" / \"III\" / \"II\"\n / \"IX\" / \"IV\" / \"X\" / \"V\" / \"I\"\n }\n volume_value = ((volume_roman / upper) *(dot 1*digit)) as volume\n volume_face = { [\",\"] space \"Volume\" space volume_value }\n annex_identifier = {\n s_code\n space\n (\"Annex\" / \"ANNEX\") as annex_marker\n [ (space upper as annex_letter !lower) ]\n [edition_dotted_human / edition_dotted_compact]\n }\n publication_identifier = {\n series_head space doc_number\n [volume_face]\n [edition_year_human / edition_status_human / edition_year_compact]\n }\n standard_identifier = {\n s_code\n [edition_dotted_human / edition_dotted_compact]\n }\n identifier = annex_identifier / publication_identifier / standard_identifier\n entry identifier: identifier\n\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n colon = \":\"\n dot = \".\"\n slash = \"/\"\n space = \" \"\n\n bindings identifier {\n series_head -> series_head (string)\n doc_number -> doc_number (string)\n edition_value -> edition_value (string)\n volume -> volume (string)\n edition_status -> edition_status (string)\n updated_in -> updated_in (string)\n annex_marker -> annex_marker (string)\n annex_letter -> annex_letter (string)\n }\n\n test {\n accept \"WMO-No. 1364\"\n accept \"WMO-No. 1364, 2025 edition\"\n accept \"WMO-No. 1364 2025 edition\"\n accept \"WMO-No. 1364:ed2025\"\n accept \"S-411\"\n accept \"S-411 1.2.1\"\n accept \"S-411:ed1.2.1\"\n accept \"S-411 Annex A\"\n accept \"S-411 ANNEX A\"\n accept \"S-411 Annex A 1.2.0\"\n # the widened publication faces\n accept \"WMO-No. 306\"\n accept \"WMO-No. 8, Volume I\"\n accept \"WMO-No. 8, Volume V\"\n accept \"WMO-No. 306, Volume I.1\"\n accept \"WMO-No. 9, Volume D\"\n accept \"WMO-No. 306, Volume I.1, 2020 edition\"\n accept \"WMO-No. 8, 2021/2018 edition\"\n accept \"WMO-No. 1364, 2023 edition, updated in 2025\"\n accept \"WMO-No. 8, Provisional 2026 edition\"\n # the new series heads (the prefix law: every head names its publisher)\n accept \"WMO/TD-No. 196\"\n accept \"JCOMM Technical Report No. 14\"\n accept \"GAW Report No. 312\"\n reject \"nonsense\"\n reject \"WMO-No. edition\"\n reject \"S-411 1234\"\n # the prefix law rejects: a series head that names no publisher (the\n # bare TD-No. spellings), a misattributed publisher (no IMO TD series\n # exists — the wild string is an OCR misread), and the third-party\n # GAW citation form\n reject \"TD-No. 1265\"\n reject \"TD No. 196\"\n reject \"IMO/TD-No. 259\"\n reject \"WMO/GAW Report No. 285\"\n # the spaced cover variant of the TD head (\"WMO/TD - No. 1469\",\n # GAW-183 cover): deliberately outside the grammar — only the glued\n # library-serial head \"WMO/TD-No.\" is defined\n reject \"WMO/TD - No. 1469\"\n example \"WMO-No. 1364\" { series_head: \"WMO-No.\", doc_number: \"1364\" }\n example \"WMO-No. 1364, 2025 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"S-411 1.2.1\" { doc_number: \"411\", edition_value: \"1.2.1\" }\n example \"S-411 Annex A 1.2.0\" {\n doc_number: \"411\",\n annex_marker: \"Annex\",\n annex_letter: \"A\",\n edition_value: \"1.2.0\",\n }\n example \"WMO-No. 1364:ed2025\" {\n series_head: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"WMO-No. 306, Volume I.1\" {\n series_head: \"WMO-No.\",\n doc_number: \"306\",\n volume: \"I.1\",\n }\n example \"WMO-No. 306, Volume I.1, 2020 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"306\",\n volume: \"I.1\",\n edition_value: \"2020\",\n }\n example \"WMO-No. 8, 2021/2018 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"8\",\n edition_value: \"2021/2018\",\n }\n example \"WMO-No. 1364, 2023 edition, updated in 2025\" {\n series_head: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2023\",\n updated_in: \"2025\",\n }\n example \"WMO-No. 8, Provisional 2026 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"8\",\n edition_status: \"Provisional\",\n edition_value: \"2026\",\n }\n example \"WMO/TD-No. 196\" { series_head: \"WMO/TD-No.\", doc_number: \"196\" }\n example \"JCOMM Technical Report No. 14\" {\n series_head: \"JCOMM Technical Report No.\",\n doc_number: \"14\",\n }\n example \"GAW Report No. 312\" {\n series_head: \"GAW Report No.\",\n doc_number: \"312\",\n }\n }\n}\n","source_hash":"19e2416ed1c54b42eda1377b7624c1fe76f7d3093665060dec831c591b04c10d","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:797692d6e72bb5823c9c17c5de2d76b2082df2b241726cc82d73e5442df28972","checksum":"sha256:f45e21fd4eb6b2bed6d5752c1f1e1ebc5036e67d58d7f8fcf1b6b2171a266fef","validated":{"lint_errors":0,"lint_warnings":18,"tests_total":43,"tests_failures":0,"self_test":true}}
data/lib/pubid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.48"
4
+ VERSION = "2.0.50"
5
5
  end
@@ -1,10 +1,12 @@
1
1
  # WMO flavor notes
2
2
 
3
3
  WMO (World Meteorological Organization) publication identifiers and
4
- their MRN URNs (pubid#763): the WMO-No. series and, since the JCOMM
5
- dissolution, the WMO-published S-100-family product specifications
6
- (consumer: metanorma/S-411-Product-Specification, authored
7
- `mn-document-class: wmo` in the metanorma-taste `data/wmo` flavor).
4
+ their MRN URNs (pubid#763, widened): the WMO-No. series, the
5
+ technical-document series (WMO/TD, JCOMM Technical Report, GAW Report)
6
+ and, since the JCOMM dissolution, the WMO-published S-100-family
7
+ product specifications (consumer: metanorma/S-411-Product-Specification,
8
+ authored `mn-document-class: wmo` in the metanorma-taste `data/wmo`
9
+ flavor).
8
10
 
9
11
  Read this before you change `lib/pubid/wmo/` or `spec/pubid/wmo/`. The
10
12
  root `CLAUDE.md` keeps the cross-flavor contract that every flavor
@@ -20,30 +22,76 @@ S-lexical form as a WMO type, publisher-parameterised, not a Pubid::Iho
20
22
  identifier. The bare `S-411` string alone still names two documents
21
23
  (IHO's and WMO's — each org assigns its own identifier), so like the
22
24
  pubid#469 dual-perspective shapes the lexical form leads NO prefix and
23
- `PREFIXES` carries only `WMO-No.`; the umbrella router reaches WMO's
24
- S-411 through the exact-round-trip preference, never through a claimed
25
- prefix.
25
+ `PREFIXES` carries only the series heads; the umbrella router reaches
26
+ WMO's S-411 through the exact-round-trip preference, never through a
27
+ claimed prefix.
28
+
29
+ ## The prefix law (the widening ruling)
30
+
31
+ "Clearly we need a PREFIX — can't just accept 'TD-No.' and assume it's
32
+ WMO, maybe it's another publisher." Every publication series head names
33
+ its publisher, and the head is what the grammar matches:
34
+
35
+ | Head | series key | MRN slug |
36
+ |------|------------|----------|
37
+ | `WMO-No.` | nil (the default) | `wmo-<n>` |
38
+ | `WMO/TD-No.` | `TD` | `wmo-td-<n>` |
39
+ | `JCOMM Technical Report No.` | `JCOMM` | `jcomm-tr-<n>` |
40
+ | `GAW Report No.` | `GAW` | `gaw-<n>` |
41
+
42
+ - The four heads are this flavor's OWN `PREFIXES` entries (routing
43
+ tokens), NOT `JOINT_PREFIXES` rows: `WMO/TD-No.` is WMO's own
44
+ technical-document series, not a co-publication.
45
+ - The rejects and WHY they reject: `TD-No. 1265` / `TD No. 196` (no
46
+ publisher named — no flavor owns them), `IMO/TD-No. 259` (no IMO TD
47
+ series exists; the wild string is an OCR misread), `WMO/GAW Report
48
+ No. 285` (third-party citation only — WMO's own records and covers
49
+ use bare GAW). The spaced cover variant `WMO/TD - No. 1469`
50
+ (GAW-183 cover at gml.noaa.gov) was examined for natural fall-out
51
+ and deliberately rejected: only the glued library-serial head
52
+ `WMO/TD-No.` is defined.
53
+ - `WMO/TD-No.` is the canonical glued form (library serial "TECHNICAL
54
+ DOCUMENT / WMO/TD-No.", typhooncommittee.org TCP-23 PDFs,
55
+ library.wmo.int `wmo-td_NNNN_en` viewers). The JCOMM Technical
56
+ Reports are self-identifying joint WMO/IOC documents cross-referenced
57
+ to TD numbers (TR 14 = TD 1086, TR 24 = TD 1215, TR 47 = TD 1466).
26
58
 
27
59
  ## Identifier space
28
60
 
29
61
  | Type | Shape | Edition face | Example |
30
62
  |------|-------|--------------|---------|
31
- | Publication | `WMO-No. <n>` | calendar year: `, 2025 edition` | `WMO-No. 1364, 2025 edition` |
63
+ | Publication | `<head> <n>` | calendar year: `, 2025 edition` | `WMO-No. 1364, 2025 edition` |
32
64
  | Standard | `S-<n>` | dotted x.y.z: ` 1.2.1` | `S-411 1.2.1` |
33
65
  | Annex | `S-<n> Annex <L>` (wrapper over Standard) | dotted, on the annex | `S-411 Annex A` |
34
66
 
35
67
  - **Editions are one string attribute with a type-driven face.** The
36
68
  issue's semantics: WMO editions are calendar years (`2025 edition`)
37
- on the WMO-No. series, the S-100 shapes carry the dotted `ed1.2.1`
38
- MRN form. The grammar binds both into the one `edition_value`
39
- capture; the renderer and the MRN generator key the face off the
40
- resolved type. There is no Components::Edition.
69
+ on the publication series, the S-100 shapes carry the dotted
70
+ `ed1.2.1` MRN form. The grammar binds both into the one
71
+ `edition_value` capture; the renderer and the MRN generator key the
72
+ face off the resolved type. There is no Components::Edition.
73
+ - **The compound faces widen the same capture** (the widening ruling):
74
+ the year pair ("2021/2018" — the IMOP wording, primary year first)
75
+ rides the ONE edition string — the pair IS the identity face, the
76
+ dotted-x.y.z law of the S-100 side applied to years; the status word
77
+ (`Provisional`, the IMOP Knowledge-Hub form) and the updated-in year
78
+ (record 69478's "updated in 2025") are their own attributes
79
+ (`edition_status`, `updated_in`), printed inside/after the edition
80
+ face. The NIST `revised_date` atom is the sibling precedent for
81
+ `updated_in`.
82
+ - **The volume face is its own attribute, printed BEFORE the edition**
83
+ (the widening ruling's face order; both faces individually attested
84
+ on record 35713's Volume I.1 and the 2020-edition rows). The values
85
+ are roman numerals (I..V attested, the grammar takes the standard
86
+ longest-first set through X), dotted-roman sub-volumes (I.1/I.2/I.3)
87
+ and letter volumes (D). Arabic volumes reject.
41
88
  - **Parse-only alternates**: the cover-stack year face
42
89
  (`WMO-No. 1364 2025 edition`), the compact aliases
43
- (`WMO-No. 1364:ed2025`, `S-411:ed1.2.1`) and the uppercase `ANNEX`
90
+ (`WMO-No. 1364:ed2025`, `S-411:ed1.2.1` — the compact year alias
91
+ also takes the pair, `:ed2021/2018`) and the uppercase `ANNEX`
44
92
  marker all parse and normalize; the canonical faces are the
45
93
  repository forms (`S-411 1.2.1`, `S-411 Annex A`) and the WMO catalog
46
- citation (`WMO-No. 1364, 2025 edition`).
94
+ citations (`WMO-No. 1364, 2025 edition`, `WMO/TD-No. 196`).
47
95
  - **The dotted S-100 edition requires a dot** (`S-411 1.2` parses,
48
96
  `S-411 1234` rejects): a bare digit run after the code is not an
49
97
  edition face in either series, and the year face (4 digits) is
@@ -51,10 +99,20 @@ prefix.
51
99
 
52
100
  ## The faces carry no publisher token
53
101
 
54
- `WMO-No.` is the series designation (the GB/GOST rule) and the S-number
55
- prints bare — the repository's docidentifiers are `S-411 Annex A` and
56
- `S-411 1.2.1`, never `WMO S-411`. `publisher_prefixes` is `[]`, so
57
- `to_s(with_publisher:)` is the identity on every type.
102
+ The series heads are designations, not publisher tokens (the GB/GOST
103
+ rule) and the S-number prints bare — the repository's docidentifiers
104
+ are `S-411 Annex A` and `S-411 1.2.1`, never `WMO S-411`.
105
+ `publisher_prefixes` is `[]`, so `to_s(with_publisher:)` is the
106
+ identity on every type.
107
+
108
+ ## MR slug (issue #142 distinctness)
109
+
110
+ The widening rows would collide without their discriminators, so
111
+ `mr_type` (the series: `wmo.td.196` vs `wmo.196`), `mr_volume`
112
+ (`wmo.8.vol-i` vs `wmo.8.vol-ii`, the ECMA law) and `mr_edition`
113
+ (`ed2021-2018`, `ed2026-provisional`, `ed2023-updated2025`) all carry
114
+ the compound faces. The year pair keeps its slash out of the slug
115
+ charset as a hyphen.
58
116
 
59
117
  ## MRN URN scheme
60
118
 
@@ -62,47 +120,58 @@ The `mrn` URN tree with WMO as assigning authority, sub-namespace
62
120
  `pub`, following the IALA pattern:
63
121
 
64
122
  ```
65
- urn:mrn:wmo:pub:wmo-<number>[:ed<year>]
123
+ urn:mrn:wmo:pub:wmo-<number>[:vol-<v>][:status-<s>][:ed<year>][:updated-<y>]
124
+ urn:mrn:wmo:pub:wmo-td-<number> / jcomm-tr-<number> / gaw-<number>
66
125
  urn:mrn:wmo:pub:s-<number>[:annex[-<letter>]][:ed<x.y.z>]
67
126
  ```
68
127
 
69
- - The WMO-No. series codes as `wmo-<number>` and its edition segment is
70
- the year (`urn:mrn:wmo:pub:wmo-1364:ed2025`); the S-100 specs keep
71
- their lexical form lowercased (`s-411`) with the dotted edition
72
- (`urn:mrn:wmo:pub:s-411:ed1.2.1`).
128
+ - The publication series code via their SERIES slugs; the segment order
129
+ mirrors the human face order (volume, status, edition, updated-in).
130
+ Volume and status segment values are caseless (downcased like the
131
+ annex letter, re-cased by the parser). The year pair keeps its slash
132
+ out of the NSS (RFC 2141 has no slash in the trans set) as a hyphen
133
+ (`ed2021-2018`).
73
134
  - **No authoritative rule exists yet.** The issue asked for a search
74
135
  before assuming the shape: neither the S-411 repository nor any local
75
136
  checkout carries a `urn:mrn:wmo:` spelling, so this generator/parser
76
137
  pair IS the namespace extension, recorded as the issue's proposed
77
- form. If WMO publishes a rule, that rule wins and this pair moves.
138
+ form (the #763 ruling keeps `urn:mrn:wmo:` as the fleet's recorded
139
+ extension). If WMO publishes a rule, that rule wins and this pair
140
+ moves.
78
141
  - The parser rebuilds the human forms and delegates to the text parser
79
142
  (one construction path). The MRN annex segment is caseless
80
143
  (`annex-a`), so the rebuild picks the attested face `Annex` — the
81
144
  uppercase `ANNEX` human form stays a parse-only alias whose URN
82
- re-renders to the attested face. Unknown/duplicate/reordered segments
83
- raise `Pubid::Errors::UrnParseError` (the ISO urn_parser strictness).
145
+ re-renders to the attested face. Unknown/duplicate segments raise
146
+ `Pubid::Errors::UrnParseError` (the ISO urn_parser strictness); the
147
+ td slug wins over the bare wmo- code by longest-match-first.
84
148
 
85
149
  ## pubid-scheme URN (docs/URN-SCHEMES.adoc, `[[urn-wmo]]`)
86
150
 
87
- `lib/pubid/wmo/pubid_urn_schema.rb`: atoms `ed-` (`edition`),
151
+ `lib/pubid/wmo/pubid_urn_schema.rb`: atoms `series-`, `vol-`, `ed-`
152
+ (`edition`), `status-` (`edition_status`), `updated-` (`updated_in`),
88
153
  `annexform-` (`annex_form`), `letter-` (`letter`); types
89
- `pub`/`std`/`annex` over the default `number` core. The annex rides the
90
- root-first chain (`urn:pubid:wmo:std:411:annex:annexform-Annex:
91
- letter-A`), so the base standard is the slug prefix. `annex_form` is an
92
- atom (identity) per the iala schema — "Annex" and "ANNEX" are two
93
- identifiers.
154
+ `pub`/`std`/`annex` over the default `number` core. The year pair
155
+ escapes through the codec (`ed-2021~2F2018`). `series` is nil on the
156
+ WMO-No. default, so every pre-widening URN is unchanged. The annex
157
+ rides the root-first chain
158
+ (`urn:pubid:wmo:std:411:annex:annexform-Annex:letter-A`), so the base
159
+ standard is the slug prefix. `annex_form` is an atom (identity) per
160
+ the iala schema — "Annex" and "ANNEX" are two identifiers.
94
161
 
95
162
  ## Corpus ground truth (attested only)
96
163
 
97
164
  `spec/fixtures/wmo/identifiers/full/identifiers.txt`, regenerated by
98
- `rake "validation:classify[wmo]"`:
99
-
100
- - `WMO-No. 8`, `WMO-No. 49`, `WMO-No. 1364` — the issue's series
101
- examples; `2025 edition` — the issue's calendar-year face.
102
- - `S-411 1.2.1` (PS), `S-411 1.2.0` (DCEG), `S-411 Annex A` (the DCEG
103
- `:docidentifier:`), `S-411 1.1.0` (the June 2014 original PDF) —
104
- metanorma/S-411-Product-Specification; `S-412` — the issue.
105
- - The MRN URN rows are the issue's proposed forms over those rows.
165
+ `rake "validation:classify[wmo]"`. The widening rounds add, with
166
+ provenance in the header comment: the A-set rows (which parse on the
167
+ #763 grammar unchanged), the volume rows (IMOP Guide page I..V, record
168
+ 35631's Volume III, Resolution 10 (SERCOM-1)'s Volume D, record
169
+ 35713's Volume I.1), the compound rows (the IMOP wording, record
170
+ 69478, the IMOP Knowledge-Hub), the TD/JCOMM/GAW rows (library serial
171
+ + records 37163/55084/69472) and the prefix-law rejects
172
+ (`TD-No. 1265`, `IMO/TD-No. 259`, `TD No. 196`, `WMO/GAW Report No.
173
+ 285`, the spaced `WMO/TD - No. 1469`). The MRN rows over the new
174
+ shapes follow the same proposed form.
106
175
 
107
176
  ## relaton-side follow-ups (not this repo)
108
177
 
@@ -6,13 +6,24 @@ module Pubid
6
6
  # the flat attribute hash the grammar's bindings block declares
7
7
  # (typed at the engine, one key per capture).
8
8
  #
9
- # Each grammar alternative path carries exactly one occurrence of
9
+ # Each grammar alternative path carries at most one occurrence of
10
10
  # `doc_number` and `edition_value`, so one flat map serves all three
11
- # types; the builder dispatches on `annex_marker` and `wmomarker`.
11
+ # types; the builder dispatches on `annex_marker` and `series_head`.
12
12
  class Builder
13
+ # The series head the grammar matched -> the model's series key
14
+ # (the widening prefix law: every head names its publisher, and
15
+ # the head face is the grammar's verbatim capture, so the key
16
+ # mapping lives on the one construction site).
17
+ SERIES_HEADS = {
18
+ "WMO-No." => nil,
19
+ "WMO/TD-No." => "TD",
20
+ "JCOMM Technical Report No." => "JCOMM",
21
+ "GAW Report No." => "GAW",
22
+ }.freeze
23
+
13
24
  def build(parsed)
14
25
  return build_annex(parsed) if parsed[:annex_marker]
15
- return build_publication(parsed) if parsed[:wmomarker]
26
+ return build_publication(parsed) if parsed[:series_head]
16
27
 
17
28
  Identifiers::Standard.new(**standard_attrs(parsed))
18
29
  end
@@ -24,7 +35,14 @@ module Pubid
24
35
  private
25
36
 
26
37
  def build_publication(hash)
27
- Identifiers::Publication.new(**standard_attrs(hash))
38
+ attrs = standard_attrs(hash).merge(
39
+ series: SERIES_HEADS.fetch(hash[:series_head]),
40
+ volume: hash[:volume],
41
+ edition_status: hash[:edition_status],
42
+ updated_in: hash[:updated_in],
43
+ ).compact
44
+
45
+ Identifiers::Publication.new(**attrs)
28
46
  end
29
47
 
30
48
  def build_annex(hash)
@@ -6,11 +6,15 @@ module Pubid
6
6
  # Pubid::Wmo::Identifier; every concrete WMO identifier
7
7
  # (Identifiers::*) descends from it.
8
8
  #
9
- # Two series share the flavor (pubid#763):
9
+ # The publication series share one type (pubid#763 widened):
10
10
  #
11
11
  # WMO-No. <number>[, <year> edition] the WMO-No. publication
12
12
  # series; editions are
13
13
  # calendar years
14
+ # WMO/TD-No. <number> the Technical Document
15
+ # series
16
+ # JCOMM Technical Report No. <number> the joint WMO/IOC series
17
+ # GAW Report No. <number> the GAW series
14
18
  # S-<number>[ <x.y.z>] the WMO-published S-100
15
19
  # product specifications;
16
20
  # editions are dotted x.y.z
@@ -18,11 +22,43 @@ module Pubid
18
22
  #
19
23
  # The edition is ONE string attribute carrying a type-driven face:
20
24
  # "2025" on a Publication, "1.2.1" on a Standard or Annex. The
21
- # renderer and the MRN URN generator key the face off the type.
25
+ # compound faces widen it: a year pair ("2021/2018" — the pair IS
26
+ # the identity face) rides the same string, while the status word
27
+ # ("Provisional") and the updated-in year carry their own
28
+ # attributes. The volume face ("I", "I.1", "D") is its own
29
+ # attribute, printed before the edition face.
22
30
  class Identifier < ::Pubid::Identifier
31
+ # The publication series beyond the WMO-No. default (the widening
32
+ # prefix law: every head token names its publisher, so the model
33
+ # carries the short key and derives the citation face and the MRN
34
+ # slug from this table). The default row stays out of the table:
35
+ # series is nil for WMO-No., so existing rows serialize without
36
+ # the key.
37
+ SERIES = {
38
+ "TD" => { face: "WMO/TD-No.", mrn: "wmo-td" },
39
+ "JCOMM" => { face: "JCOMM Technical Report No.", mrn: "jcomm-tr" },
40
+ "GAW" => { face: "GAW Report No.", mrn: "gaw" },
41
+ }.freeze
42
+ # The WMO-No. series itself: the face the grammar matches and the
43
+ # MRN slug prefix of the default series (series nil).
44
+ DEFAULT_SERIES = { face: "WMO-No.", mrn: "wmo" }.freeze
45
+
46
+ # The series config (face + MRN slug prefix) of a series key,
47
+ # defaulting to the WMO-No. row.
48
+ def self.series_config(key)
49
+ SERIES.fetch(key, DEFAULT_SERIES)
50
+ end
51
+
52
+ # The series config of this identifier's own series. A real
53
+ # instance method: lutaml's Serialize#method_missing would swallow
54
+ # anything the class only exposes statically.
55
+ def series_config
56
+ self.class.series_config(series)
57
+ end
58
+
23
59
  # Parse a WMO identifier string — human form ("WMO-No. 1364",
24
- # "S-411 1.2.1") or MRN URN ("urn:mrn:wmo:pub:s-411:ed1.2.1") —
25
- # into an identifier.
60
+ # "WMO/TD-No. 196", "S-411 1.2.1") or MRN URN
61
+ # ("urn:mrn:wmo:pub:s-411:ed1.2.1") — into an identifier.
26
62
  # @param identifier [String]
27
63
  # @return [Pubid::Wmo::Identifier]
28
64
  # @raise [Pubid::Errors::ParseError] If parsing fails
@@ -48,9 +84,20 @@ module Pubid
48
84
 
49
85
  attribute :publisher, :string, default: "WMO"
50
86
  attribute :number, :string # "1364", "411"
51
- # One edition column, type-driven face: "2025" (the WMO-No. series'
52
- # calendar-year edition) or "1.2.1" (the S-100 dotted edition).
53
- attribute :edition, :string
87
+ # The publication series key: nil (the WMO-No. default), "TD",
88
+ # "JCOMM" or "GAW". The citation face and the MRN slug prefix
89
+ # derive from SERIES.
90
+ attribute :series, :string
91
+ # One edition column, type-driven face: "2025" or the year pair
92
+ # "2021/2018" (the WMO-No. series' calendar-year edition) or
93
+ # "1.2.1" (the S-100 dotted edition).
94
+ attribute :edition, :string
95
+ # The publication volume face ("I", "I.1", "D"); publication-only.
96
+ attribute :volume, :string
97
+ # The edition status word ("Provisional"); publication-only.
98
+ attribute :edition_status, :string
99
+ # The year the edition was updated in ("2025"); publication-only.
100
+ attribute :updated_in, :string
54
101
 
55
102
  WMO_TYPE_MAP = {
56
103
  "pubid:wmo:publication" => "Pubid::Wmo::Identifiers::Publication",
@@ -61,7 +108,11 @@ module Pubid
61
108
  key_value do
62
109
  map "_type", to: :_type, polymorphic_map: WMO_TYPE_MAP
63
110
  map "number", to: :number
111
+ map "series", to: :series
64
112
  map "edition", to: :edition
113
+ map "volume", to: :volume
114
+ map "edition_status", to: :edition_status
115
+ map "updated_in", to: :updated_in
65
116
  end
66
117
 
67
118
  def to_urn
@@ -70,11 +121,39 @@ module Pubid
70
121
 
71
122
  # The edition is a plain string (the string-edition flavors precede
72
123
  # this); the base mr_edition reads edition.number of a
73
- # Components::Edition, which would crash on the string.
124
+ # Components::Edition, which would crash on the string. The
125
+ # compound faces ride the same segment so distinct identifiers
126
+ # never collide on the slug (issue #142): the year pair keeps its
127
+ # slash out of the MR charset as a hyphen ("2021/2018" rides as
128
+ # "ed2021-2018", the same hyphenation the MRN edition segment
129
+ # uses), the status word and the updated-in year suffix it.
74
130
  def mr_edition
75
131
  return nil unless edition
76
132
 
77
- "ed#{edition}"
133
+ segment = "ed#{edition.tr('/', '-')}"
134
+ segment << "-#{edition_status.downcase}" if edition_status
135
+ segment << "-updated#{updated_in}" if updated_in
136
+ segment
137
+ end
138
+
139
+ # The series is the type discriminator of the publication series:
140
+ # "WMO/TD-No. 196" and "WMO-No. 196" are two documents, so the
141
+ # slug carries the series or they collide. Downcased per the MR
142
+ # charset; nil (no segment) on the WMO-No. default.
143
+ def mr_type
144
+ return nil unless series
145
+
146
+ series.downcase
147
+ end
148
+
149
+ # The volume is an identity discriminator (the ECMA law): Volume I
150
+ # and Volume II of WMO-No. 8 are two documents sharing one
151
+ # docidentifier, so the MR slug carries the segment or the two
152
+ # collide. Downcased per the MR charset.
153
+ def mr_volume
154
+ return nil unless volume
155
+
156
+ "vol-#{volume.downcase}"
78
157
  end
79
158
 
80
159
  # "WMO-No." and the S-number are designations, not publisher
@@ -4,16 +4,28 @@ module Pubid
4
4
  module Wmo
5
5
  # Grammar for WMO identifiers.
6
6
  #
7
- # Accepts every attested shape (pubid#763):
7
+ # Accepts every attested shape (pubid#763 widened):
8
8
  #
9
9
  # WMO-No. 1364
10
10
  # WMO-No. 1364, 2025 edition
11
11
  # WMO-No. 1364 2025 edition
12
12
  # WMO-No. 1364:ed2025
13
+ # WMO-No. 8, Volume I / Volume I.1 / Volume D
14
+ # WMO-No. 306, Volume I.1, 2020 edition
15
+ # WMO-No. 8, 2021/2018 edition
16
+ # WMO-No. 1364, 2023 edition, updated in 2025
17
+ # WMO-No. 8, Provisional 2026 edition
18
+ # WMO/TD-No. 196
19
+ # JCOMM Technical Report No. 14
20
+ # GAW Report No. 312
13
21
  # S-411
14
22
  # S-411 1.2.1
15
23
  # S-411:ed1.2.1
16
24
  # S-411 Annex A
25
+ #
26
+ # The runtime is the baked artifact (data/parg/wmo.json, the
27
+ # grammar of record in pubid-grammar/grammars/wmo.parg); this class
28
+ # documents the accepted shapes.
17
29
  class Parser
18
30
  end
19
31
  end
@@ -2,17 +2,35 @@
2
2
 
3
3
  module Pubid
4
4
  module Wmo
5
- # The pubid-scheme URN of wmo (pubid#763; docs/URN-SCHEMES.adoc).
5
+ # The pubid-scheme URN of wmo (pubid#763 widened;
6
+ # docs/URN-SCHEMES.adoc).
6
7
  #
7
8
  # WMO-No. 1364, 2025 edition -> urn:pubid:wmo:pub:1364:ed-2025
9
+ # WMO/TD-No. 196 -> urn:pubid:wmo:pub:196:series-TD
10
+ # WMO-No. 306, Volume I.1 -> urn:pubid:wmo:pub:306:vol-I.1
11
+ # WMO-No. 8, 2021/2018 edition
12
+ # -> urn:pubid:wmo:pub:8:ed-2021~2F2018
13
+ # WMO-No. 8, Provisional 2026 edition
14
+ # -> urn:pubid:wmo:pub:8:ed-2026:
15
+ # status-Provisional
16
+ # WMO-No. 1364, 2023 edition, updated in 2025
17
+ # -> urn:pubid:wmo:pub:1364:ed-2023:
18
+ # updated-2025
8
19
  # S-411 1.2.1 -> urn:pubid:wmo:std:411:ed-1.2.1
9
20
  # S-411 Annex A -> urn:pubid:wmo:std:411:annex:annexform-Annex:letter-A
10
21
  #
11
- # The edition is one atom: a calendar-year face on a publication,
12
- # a dotted face on a standard or annex. The annex marker and letter
13
- # follow the iala schema (annexform- / letter-).
22
+ # The edition is one atom: a calendar-year face (the year pair
23
+ # escaped `~2F` for its slash) on a publication, a dotted face on a
24
+ # standard or annex. The series, volume, status and updated-in
25
+ # faces are atoms of the widening; series is nil on the WMO-No.
26
+ # default, so existing URNs are unchanged. The annex marker and
27
+ # letter follow the iala schema (annexform- / letter-).
14
28
  PubidUrnSchema = Pubid::PubidUrn.define("wmo") do
29
+ atom "series", "series"
30
+ atom "volume", "vol"
15
31
  atom "edition", "ed"
32
+ atom "edition_status", "status"
33
+ atom "updated_in", "updated"
16
34
  atom "annex_form", "annexform"
17
35
  atom "letter", "letter"
18
36
 
@@ -7,13 +7,24 @@ module Pubid
7
7
  # Produces strings like:
8
8
  # "WMO-No. 1364"
9
9
  # "WMO-No. 1364, 2025 edition"
10
+ # "WMO-No. 8, Volume I"
11
+ # "WMO-No. 306, Volume I.1, 2020 edition"
12
+ # "WMO-No. 8, 2021/2018 edition"
13
+ # "WMO-No. 1364, 2023 edition, updated in 2025"
14
+ # "WMO-No. 8, Provisional 2026 edition"
15
+ # "WMO/TD-No. 196"
16
+ # "JCOMM Technical Report No. 14"
17
+ # "GAW Report No. 312"
10
18
  # "S-411"
11
19
  # "S-411 1.2.1"
12
20
  # "S-411 Annex A"
13
21
  #
14
- # The faces carry no publisher token — "WMO-No." is the series
15
- # designation and the S-number prints bare (the repository form) —
16
- # so to_s(with_publisher:) is the identity on every type.
22
+ # The faces carry no publisher token — the series head ("WMO-No.",
23
+ # "WMO/TD-No.", ...) is the designation and the S-number prints bare
24
+ # (the repository form) — so to_s(with_publisher:) is the identity
25
+ # on every type. The face order is the widening ruling's: volume
26
+ # first, then the edition face (status word inside it), then the
27
+ # updated-in year.
17
28
  class Renderer < ::Pubid::Renderers::Base
18
29
  def render(context: nil, **_opts)
19
30
  id = @id
@@ -27,8 +38,16 @@ module Pubid
27
38
  end
28
39
 
29
40
  def render_publication(id)
30
- rendered = "WMO-No. #{id.number}"
31
- rendered << ", #{id.edition} edition" if id.edition
41
+ rendered = "#{id.series_config[:face]} #{id.number}"
42
+ rendered << ", Volume #{id.volume}" if id.volume
43
+ if id.edition
44
+ rendered << if id.edition_status
45
+ ", #{id.edition_status} #{id.edition} edition"
46
+ else
47
+ ", #{id.edition} edition"
48
+ end
49
+ rendered << ", updated in #{id.updated_in}" if id.updated_in
50
+ end
32
51
  rendered
33
52
  end
34
53
 
@@ -8,12 +8,30 @@ module Pubid
8
8
  # urn:mrn:wmo: rule is published — the S-411 repository carries none
9
9
  # — so this shape is the fleet's extension until one exists):
10
10
  #
11
- # urn:mrn:wmo:pub:wmo-<number>[:ed<year>] the WMO-No. series
11
+ # urn:mrn:wmo:pub:wmo-<number>[:vol-<v>][:status-<s>][:ed<year>]
12
+ # [:updated-<year>] the WMO-No. series
13
+ # urn:mrn:wmo:pub:wmo-td-<number> the Technical Document series
14
+ # urn:mrn:wmo:pub:jcomm-tr-<number> the joint WMO/IOC series
15
+ # urn:mrn:wmo:pub:gaw-<number> the GAW series
12
16
  # urn:mrn:wmo:pub:s-<number>[:ed<x.y.z>] the S-100 specs
13
17
  # urn:mrn:wmo:pub:s-<number>:annex[-<letter>][:ed<x.y.z>]
14
18
  #
19
+ # The segment order mirrors the human face order (volume, status,
20
+ # edition, updated-in). Volume and status segment values are
21
+ # caseless (downcased like the annex letter, re-cased by the
22
+ # parser). The year pair keeps its slash out of the NSS — RFC 2141
23
+ # has no slash in the trans set — as a hyphen ("2021/2018" rides as
24
+ # "ed2021-2018", the same hyphenation the MR slug uses).
25
+ #
15
26
  # Examples:
16
27
  # urn:mrn:wmo:pub:wmo-1364:ed2025
28
+ # urn:mrn:wmo:pub:wmo-306:vol-i.1
29
+ # urn:mrn:wmo:pub:wmo-8:ed2021-2018
30
+ # urn:mrn:wmo:pub:wmo-8:status-provisional:ed2026
31
+ # urn:mrn:wmo:pub:wmo-1364:ed2023:updated-2025
32
+ # urn:mrn:wmo:pub:wmo-td-196
33
+ # urn:mrn:wmo:pub:jcomm-tr-14
34
+ # urn:mrn:wmo:pub:gaw-312
17
35
  # urn:mrn:wmo:pub:s-411:ed1.2.1
18
36
  # urn:mrn:wmo:pub:s-411:annex-a
19
37
  class UrnGenerator
@@ -27,23 +45,34 @@ module Pubid
27
45
  return generate_annex if identifier.is_a?(Identifiers::Annex)
28
46
 
29
47
  parts = ["urn:mrn:wmo:pub", code_segment]
30
- parts << "ed#{identifier.edition}" if identifier.edition
48
+ parts << "vol-#{identifier.volume.downcase}" if identifier.volume
49
+ if identifier.edition_status
50
+ parts << "status-#{identifier.edition_status.downcase}"
51
+ end
52
+ parts << mrn_edition if identifier.edition
53
+ parts << "updated-#{identifier.updated_in}" if identifier.updated_in
31
54
  parts.join(":")
32
55
  end
33
56
 
34
57
  private
35
58
 
36
- # The WMO-No. series codes as "wmo-<number>" (the proposed MRN
37
- # form "urn:mrn:wmo:pub:wmo-1364:ed2025"); the S-100 specs keep
59
+ # The publication series code via its SERIES slug ("wmo-1364",
60
+ # "wmo-td-196", "jcomm-tr-14", "gaw-312"); the S-100 specs keep
38
61
  # their lexical form lowercased ("s-411").
39
62
  def code_segment
40
63
  if identifier.is_a?(Identifiers::Publication)
41
- "wmo-#{identifier.number}"
64
+ "#{identifier.series_config[:mrn]}-#{identifier.number}"
42
65
  else
43
66
  "s-#{identifier.number}"
44
67
  end
45
68
  end
46
69
 
70
+ # The edition segment: the edition value glued after "ed", with
71
+ # the year pair's slash hyphenated.
72
+ def mrn_edition
73
+ "ed#{identifier.edition.tr('/', '-')}"
74
+ end
75
+
47
76
  # URN for an annex: the base specification's code, then an "annex"
48
77
  # segment (lettered form for the "ANNEX A" style, bare for "Annex"
49
78
  # without a letter), then the annex's own edition.
@@ -5,12 +5,19 @@ module Pubid
5
5
  # Parses WMO MRN URNs back into identifiers.
6
6
  #
7
7
  # UrnGenerator emits:
8
- # urn:mrn:wmo:pub:wmo-<number>[:ed<year>]
8
+ # urn:mrn:wmo:pub:wmo-<number>
9
+ # [:vol-<v>][:status-<s>][:ed<year>][:updated-<y>]
10
+ # urn:mrn:wmo:pub:wmo-td-<number> / jcomm-tr-<number> / gaw-<number>
9
11
  # urn:mrn:wmo:pub:s-<number>[:ed<x.y.z>]
10
12
  # urn:mrn:wmo:pub:s-<number>:annex[-<letter>][:ed<x.y.z>]
11
13
  #
12
14
  # Examples:
13
15
  # urn:mrn:wmo:pub:wmo-1364:ed2025 → WMO-No. 1364, 2025 edition
16
+ # urn:mrn:wmo:pub:wmo-306:vol-i.1 → WMO-No. 306, Volume I.1
17
+ # urn:mrn:wmo:pub:wmo-8:ed2021-2018 → WMO-No. 8, 2021/2018 edition
18
+ # urn:mrn:wmo:pub:wmo-td-196 → WMO/TD-No. 196
19
+ # urn:mrn:wmo:pub:jcomm-tr-14 → JCOMM Technical Report No. 14
20
+ # urn:mrn:wmo:pub:gaw-312 → GAW Report No. 312
14
21
  # urn:mrn:wmo:pub:s-411:ed1.2.1 → S-411 1.2.1
15
22
  # urn:mrn:wmo:pub:s-411:annex-a → S-411 Annex A
16
23
  class UrnParser < Pubid::UrnParser::Base
@@ -22,10 +29,17 @@ module Pubid
22
29
  code = parts.fetch(0)
23
30
  segments = parts.drop(1)
24
31
 
25
- if (publication = code.match(/\Awmo-(\d+)\z/i))
26
- parse_publication(publication[1], segments)
27
- elsif (standard = code.match(/\As-(\d+)\z/i))
28
- parse_standard(standard[1], segments)
32
+ # Longest slug first: "wmo-td-" also starts with "wmo-".
33
+ if (match = code.match(/\Awmo-td-(\d+)\z/i))
34
+ parse_publication("TD", match[1], segments)
35
+ elsif (match = code.match(/\Awmo-(\d+)\z/i))
36
+ parse_publication(nil, match[1], segments)
37
+ elsif (match = code.match(/\Ajcomm-tr-(\d+)\z/i))
38
+ parse_publication("JCOMM", match[1], segments)
39
+ elsif (match = code.match(/\Agaw-(\d+)\z/i))
40
+ parse_publication("GAW", match[1], segments)
41
+ elsif (match = code.match(/\As-(\d+)\z/i))
42
+ parse_standard(match[1], segments)
29
43
  else
30
44
  raise ::Pubid::Errors::UrnParseError,
31
45
  "Invalid WMO URN code segment: #{code.inspect}"
@@ -43,19 +57,47 @@ module Pubid
43
57
  urn[PREFIX.length..]
44
58
  end
45
59
 
46
- # Publication segments: the single ed<year> edition. Rebuilt as the
47
- # compact year form, which the text parser normalizes to the
48
- # canonical comma face.
49
- def parse_publication(number, segments)
60
+ # Publication segments: the optional volume, status and
61
+ # updated-in segments plus the single ed<year> edition. All but
62
+ # the edition are caseless (downcased by the generator), so the
63
+ # rebuild re-cases them into the attested faces. The canonical
64
+ # comma faces are rebuilt and the text parser normalizes from
65
+ # there (one construction path).
66
+ def parse_publication(series, number, segments)
67
+ volume = nil
68
+ status = nil
50
69
  edition = nil
70
+ updated_in = nil
51
71
 
52
72
  segments.each do |seg|
53
- raise_segment!(seg, "duplicate edition") if edition
54
- edition = edition_value(seg, /\A\d{4}\z/)
73
+ case seg
74
+ when /\Avol-([a-z]+(?:\.\d+)*)\z/i
75
+ raise_segment!(seg, "duplicate volume") if volume
76
+ volume = Regexp.last_match(1).upcase
77
+ when /\Astatus-([a-z]+)\z/i
78
+ raise_segment!(seg, "duplicate status") if status
79
+ status = Regexp.last_match(1).capitalize
80
+ when /\Aed(\d{4}(?:-\d{4})?)\z/i
81
+ raise_segment!(seg, "duplicate edition") if edition
82
+ edition = Regexp.last_match(1).tr("-", "/")
83
+ when /\Aupdated-(\d{4})\z/i
84
+ raise_segment!(seg, "duplicate updated") if updated_in
85
+ updated_in = Regexp.last_match(1)
86
+ else
87
+ raise_segment!(seg)
88
+ end
55
89
  end
56
90
 
57
- text = "WMO-No. #{number}"
58
- text += ":ed#{edition}" if edition
91
+ text = "#{Identifier.series_config(series)[:face]} #{number}"
92
+ text << " Volume #{volume}" if volume
93
+ if edition
94
+ text << if status
95
+ ", #{status} #{edition} edition"
96
+ else
97
+ ", #{edition} edition"
98
+ end
99
+ end
100
+ text << ", updated in #{updated_in}" if updated_in
59
101
  flavor_parse(text)
60
102
  end
61
103
 
data/lib/pubid/wmo.rb CHANGED
@@ -3,11 +3,22 @@
3
3
  require "pubid"
4
4
  module Pubid
5
5
  # WMO (World Meteorological Organization) document identifiers
6
- # (pubid#763): the WMO-No. publication series and, since the JCOMM
7
- # dissolution, the WMO-published S-100-family product specifications.
6
+ # (pubid#763 widened): the WMO-No. publication series and the other
7
+ # WMO technical-document series (WMO/TD, JCOMM Technical Report, GAW
8
+ # Report) and, since the JCOMM dissolution, the WMO-published
9
+ # S-100-family product specifications.
8
10
  #
9
11
  # WMO-No. 1364 the WMO-No. series, bare
10
12
  # WMO-No. 1364, 2025 edition year edition (calendar years)
13
+ # WMO-No. 8, Volume I volume face (before the edition)
14
+ # WMO-No. 8, 2021/2018 edition compound year-pair edition
15
+ # WMO-No. 8, Provisional 2026
16
+ # edition status-qualified edition
17
+ # WMO-No. 1364, 2023 edition,
18
+ # updated in 2025 edition + updated-in year
19
+ # WMO/TD-No. 196 the Technical Document series
20
+ # JCOMM Technical Report No. 14 the joint WMO/IOC series
21
+ # GAW Report No. 312 the GAW series
11
22
  # S-411 WMO-published S-100 spec, bare
12
23
  # S-411 1.2.1 dotted edition (the S-411 repo form)
13
24
  # S-411 Annex A annex wrapper (the DCEG docidentifier)
@@ -19,12 +30,21 @@ module Pubid
19
30
  module Wmo
20
31
  extend Pubid::PrefixesSupport
21
32
 
22
- # The leading series token of the WMO-No. publication series. The
23
- # S-100 lexical form ("S-411") deliberately leads NO prefix: a bare
24
- # S-number is the shared S-100 shape of two assigning authorities
25
- # (IHO and WMO), so each flavor parses it and neither owns the
26
- # routing (the pubid#469 dual-perspective policy).
27
- PREFIXES = ["WMO-No."].freeze
33
+ # The leading series tokens of the publication series (the widening
34
+ # prefix law: a head token names its publisher — the bare "TD-No."
35
+ # spelling names no publisher and parses in no flavor). These are
36
+ # this flavor's OWN tokens, not joint publications, so they live
37
+ # here and not in JOINT_PREFIXES. The S-100 lexical form ("S-411")
38
+ # deliberately leads NO prefix: a bare S-number is the shared S-100
39
+ # shape of two assigning authorities (IHO and WMO), so each flavor
40
+ # parses it and neither owns the routing (the pubid#469
41
+ # dual-perspective policy).
42
+ PREFIXES = [
43
+ "WMO-No.",
44
+ "WMO/TD-No.",
45
+ "JCOMM Technical Report No.",
46
+ "GAW Report No.",
47
+ ].freeze
28
48
 
29
49
  autoload :Builder, "#{__dir__}/wmo/builder"
30
50
  autoload :Identifier, "#{__dir__}/wmo/identifier"
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.48
4
+ version: 2.0.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-11-24 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: lutaml-model
@@ -59,8 +60,8 @@ email:
59
60
  executables: []
60
61
  extensions: []
61
62
  extra_rdoc_files:
62
- - LICENSE.txt
63
63
  - README.adoc
64
+ - LICENSE.txt
64
65
  files:
65
66
  - LICENSE.txt
66
67
  - README.adoc
@@ -1250,6 +1251,7 @@ metadata:
1250
1251
  changelog_uri: https://github.com/pubid/pubid/releases
1251
1252
  documentation_uri: https://rubydoc.info/gems/pubid
1252
1253
  rubygems_mfa_required: 'true'
1254
+ post_install_message:
1253
1255
  rdoc_options: []
1254
1256
  require_paths:
1255
1257
  - lib
@@ -1264,7 +1266,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1264
1266
  - !ruby/object:Gem::Version
1265
1267
  version: '0'
1266
1268
  requirements: []
1267
- rubygems_version: 4.0.23
1269
+ rubygems_version: 3.5.22
1270
+ signing_key:
1268
1271
  specification_version: 4
1269
1272
  summary: The international publication identifier (PubID) library for Ruby.
1270
1273
  test_files: []